1 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
5 (directory_files_internal) [WINDOWSNT]: Bind
6 w32-get-true-file-attributes to either t or nil, depending whether
7 the filesystem of the directory is fast or slow.
9 * w32.c (logon_network_drive): Don't assume PATH is an absolute
11 (is_slow_fs): New function.
12 (stat): Use it to determine whether to issue more system calls to
13 get accurate file attributes, when w32-get-true-file-attributes is
16 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
18 * xfns.c (Fx_select_font): Remember last font selected in
19 x_last_font_name and use that the next time. Also try the frame
20 parameter font-parameter as default to the font dialog.
22 2009-07-10 Kenichi Handa <handa@m17n.org>
24 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
26 2009-07-09 Eli Zaretskii <eliz@gnu.org>
28 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc
31 * w32.c (stat): Treat UNC file names as residing on remote
34 2009-07-09 Kenichi Handa <handa@m17n.org>
36 * fontset.c (fontset_find_font): Fix previous change.
38 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
40 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
41 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
44 2009-07-08 Kenichi Handa <handa@m17n.org>
46 * fontset.c (fontset_find_font): Fix the logic of handling
48 (font_for_char): Delete unused var.
49 (generate_ascii_font_name): Delete it.
51 * coding.h (JIS_TO_SJIS2): Fix the code range check.
53 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
54 (encode_coding_sjis): Fix the code range check.
56 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
58 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
59 (Fexpand_file_name): Copy string data properly (Bug#3772).
61 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
63 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
66 2009-07-07 Kenichi Handa <handa@m17n.org>
68 * character.h (unibyte_has_multibyte_table): Delete extern.
69 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
71 * charset.c (Fset_charset_priority): Update charset_unibyte.
72 (syms_of_charset): Initialize charset_unibyte.
74 * character.c (unibyte_has_multibyte_table): Delete it.
75 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
77 (multibyte_char_to_unibyte_safe): Likewise.
78 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
80 * xdisp.c (get_next_display_element): Decode it->c by
82 (x_produce_glyphs): Likewise.
84 * .gdbinit (xcharset): Fix the treating $arg0.
86 2009-07-04 Eli Zaretskii <eliz@gnu.org>
88 Emulation of `getloadavg' on MS-Windows.
89 * w32.c: Include float.h
90 (g_b_init_get_native_system_info, g_b_init_get_system_times)
91 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
92 (get_native_system_info, get_system_times): New functions.
93 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
94 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
95 (globals_of_w32): Initialize g_b_init_get_native_system_info,
96 g_b_init_get_system_times, and num_of_processors.
98 2009-07-03 Jason Rumney <jasonr@gnu.org>
100 * w32term.c (w32_initialize): Use standard types.
102 2009-07-03 Eli Zaretskii <eliz@gnu.org>
104 * dired.c (Ffile_attributes): Decode user and group names by the
105 locale's encoding. (Bug#3443)
107 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
109 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
110 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
112 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
114 * term.c (init_tty): Remove spurious #ifdef.
116 * m/mips.h: Mention this file is also used for netbsd.
117 * m/pmax.h: Remove file.
119 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
121 * xterm.h (struct x_display_info): Add invisible_cursor.
122 (struct x_output): Add current_cursor.
124 * xterm.c (XTtoggle_invisible_pointer): New function.
125 (x_define_frame_cursor): Don't define cursor if invisible or the
126 same as before. Set current_cursor.
127 (x_create_terminal): Set toggle_invisible_pointer_hook.
129 * xfns.c (make_invisible_cursor): New function.
130 (x_set_mouse_color): Call make_invisible_cursor.
132 (x_window): Set current_cursor.
134 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
136 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
137 inserting a character.
138 (read_avail_input): Call frame_make_pointer_visible.
140 * frame.c (Vmake_pointer_invisible): New variable.
141 (frame_make_pointer_invisible, frame_make_pointer_visible): New
143 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
145 * frame.h: Declare frame_make_pointer_invisible and
146 frame_make_pointer_visible.
147 (struct frame): Add pointer_invisible.
149 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
151 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
153 (xg_frame_resized): If width/height is -1, get size of window
156 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
159 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
160 here or call change_frame_size. Just call flush_and_sync.
161 (flush_and_sync): Reintroduced.
163 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
165 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
167 * xterm.c (x_handle_net_wm_state): Also look for sticky.
168 (x_term_init): Initialize Xatom_net_wm_state_sticky.
170 * frame.h: Declare Qsticky.
172 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
174 * nsfns.m (ns_frame_parm_handlers): Ditto.
176 * frame.c: Declare Qsticky.
177 (frame_parms): Add sticky.
179 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
181 * xterm.h: Declare x_set_sticky.
183 * xterm.c (x_set_sticky): New function.
185 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
186 (xg_tool_bar_menu_proxy): Attach enter/leave events to
187 xg_tool_bar_proxy_help_callback.
189 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
191 * frame.c: Qmaximized is new.
192 (x_set_frame_parameters): Do not handle fullscreen specially.
193 Only set width and height if explicitly set.
194 (x_set_fullscreen): Handle Qmaximized.
195 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
196 (syms_of_frame): Initialize Qmaximized.
198 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
199 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
201 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
202 for Expose event. Add call to x_check_fullscreen for MapNotify event.
203 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
204 set gravity to NorthWestGravity when USE_GTK.
205 (set_wm_state): New function.
206 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
207 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
208 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
209 or the case when no window manager is running. That means remove calls
210 to x_real_positions and x_fullscreen_adjust.
212 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
213 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
215 (xg_height_changed): New function.
216 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
217 and gtk_window_set_policy. Set frame gravity after parsing the geometry
219 (xg_update_frame_menubar, free_frame_menubar)
220 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
221 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
222 Remove calls to xg_frame_set_char_size.
224 2009-07-01 Kenichi Handa <handa@m17n.org>
226 * keyboard.c (decode_keyboard_code): New function.
227 (tty_read_avail_input): Decode the input bytes if necessary.
229 * coding.c (setup_coding_system): Initialize
230 coding->carryover_bytes to 0.
231 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
234 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
236 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
238 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
240 * xftfont.c (xftfont_open): Avoid passing NULL argument to
243 2009-06-30 Jason Rumney <jasonr@gnu.org>
245 * w32term.c (w32_initialize): Use GetModuleHandle for library that
247 Set user model ID if supported (bug#1849).
249 2009-06-29 Jim Meyering <meyering@redhat.com>
251 Remove useless if-before-xfree test.
252 * nsfont.m (nsfont_close): Remove useless test.
253 * term.c (delete_tty): Likewise.
254 * w32.c (system_process_attributes): Likewise.
255 * w32font.c (w32font_close): Likewise.
256 * xfaces.c (x_free_gc): Likewise.
257 * xselect.c (buffer): Likewise.
259 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
261 * process.c (send_process): Keep decoded string in a local
262 variable and protect it from GC. (Bug#3521)
264 2009-06-28 Eli Zaretskii <eliz@gnu.org>
266 * term.c (create_tty_output) [MSDOS]: #ifdef away.
267 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
269 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
271 * xdisp.c (start_display, handle_face_prop)
272 (move_it_vertically_backward, cursor_row_fully_visible_p)
273 (redisplay_window, try_window_id, produce_image_glyph): Delete
274 some #ifdef-ed out code chunks that are now obsolete.
276 * xterm.c (x_update_window_begin, x_new_focus_frame)
277 (x_scroll_bar_handle_click, handle_one_xevent)
278 (handle_one_xevent, XTread_socket, x_focus_on_frame)
279 (x_make_frame_visible, x_make_frame_invisible)
280 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
281 code chunks that are now obsolete.
283 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
285 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
286 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
287 for hours, when optimzation is enabled.
288 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
289 (xd_read_message): Make them static.
291 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
293 * term.c (turn_on_face): Allow simultaneously bold and dim
294 terminal faces (Bug#3530).
296 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
298 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
300 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
301 truncation glyphs (Bug#3686).
303 2009-06-27 Glenn Morris <rgm@gnu.org>
305 * m/pmax.h: Restore file, with only netbsd portions.
307 2009-06-26 David Reitter <david.reitter@gmail.com>
309 * nsterm.m (keydown): Avoid infinite loop.
311 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
313 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
314 the arg FORCE_SYMBOL.
316 2009-06-25 Kenichi Handa <handa@m17n.org>
318 * fontset.c (fontset_find_font): When a usable rfont_def is found
319 in a fallback font-group, make it the first element of the group.
321 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
323 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
325 2009-06-24 Kenichi Handa <handa@m17n.org>
327 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
329 (fontset_font): Record the availability of a font for C both in
330 the realized fontsets of the current one and the default one.
332 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
334 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
335 conditional, it is always defined on AIX.
337 2009-06-23 Miles Bader <miles@gnu.org>
339 * window.c (Vrecenter_redisplay): New variable.
340 (syms_of_window): Initialize it.
341 (Qtty): New extern declaration.
342 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
344 2009-06-23 Jim Meyering <meyering@redhat.com>
346 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
347 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
348 pointer dereferences are guaranteed to be valid.
350 2009-06-23 Kenichi Handa <handa@m17n.org>
352 * emacs.c (main): Call init_font ().
354 * font.h (Vfont_log): Extern it.
355 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
357 * font.c (font_sort_entities, font_list_entities)
358 (font_matching_entity, font_open_entity)
359 (font_close_object): Change font_add_log to FONT_ADD_LOG.
360 (Vfont_log): Delete static.
361 (font_log_env_checked): Delete this variable.
362 (font_add_log): Don't check font_log_env_checked.
363 (font_deferred_log): Check Vfont_log.
364 (init_font): New function.
366 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
368 * w32font.c: Change font_add_log to FONT_ADD_LOG.
370 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
372 * xfont.c: Change font_add_log to FONT_ADD_LOG.
374 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
375 (face_for_char): Don't call font_deferred_log here.
376 (font_for_char): Likewise.
378 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
380 * w32term.c (x_draw_glyph_string): Use the glyph string's width
381 rather than its background_width for drawing the overline and
384 * xterm.c (x_draw_glyph_string): Use the glyph string's width
385 rather than its background_width for drawing the overline and
387 (xg_default_icon_file): New variable.
388 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
389 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
391 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
392 (load_overlay_strings): Remove externs.
393 (fast_find_position): Function deleted.
394 (mouse_face_from_buffer_pos): New function, based on
395 fast_find_position. Correctly handle before-strings,
396 display-strings, and after-strings (Bug#1220).
397 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
399 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
401 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
403 (move_it_in_display_line_to, move_it_in_display_line_to)
404 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
406 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
410 2009-06-21 Jason Rumney <jasonr@gnu.org>
412 * w32term.c (keyboard_codepage): New static variable.
413 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
414 (w32_read_socket) [WM_CHAR]: Use it to decode character
416 (w32_initialize): Initialize it.
417 (codepage_for_locale): New function.
419 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
421 * process.c (status_message): Pass Faset index argument as a lisp
422 object, so as to work with USE_LISP_UNION_TYPE.
424 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
426 * coding.c (Ffind_coding_systems_region_internal):
427 Cache checked characters.
429 2009-06-18 Kenichi Handa <handa@m17n.org>
431 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
434 2009-06-18 Andreas Schwab <aschwab@redhat.com>
436 * xdisp.c (redisplay_internal): Check that the frame is still
437 live after redisplay of its windows.
438 (redisplay_windows): Check that the window is still live.
440 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
442 * coding.c (detect_coding_utf_16): Fix previous change.
444 2009-06-16 Kenichi Handa <handa@m17n.org>
446 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
447 UTF-16 by checking the dispersion of Eth and Oth bytes.
449 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
451 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
453 2009-06-15 Kenichi Handa <handa@m17n.org>
455 * process.c (status_message): Fix previous change. Be sure to
456 decode a localized string.
458 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
460 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
461 add comment explaining why.
463 2009-06-14 Sidney Markowitz <sidney@sidney.com>
465 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
467 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
469 * nsfont.m (ns_attribute_value): Remove.
470 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
471 (ns_has_attribute): Shrink the normal range.
472 (ns_findfonts): Don't worry about requested spec in determining
474 (ns_get_covering_families): Retain scriptToFamilies.
476 2009-06-14 Seiji Zenitani <zenitani@mac.com>
478 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
480 2009-06-11 Kenichi Handa <handa@m17n.org>
482 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
483 overhang for the static composition case.
485 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
487 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
488 overhang for the automatic composition case.
490 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
493 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
495 * xdisp.c (get_next_display_element): When handling wrap-prefix
496 and line-prefix, treat \n as a control character (bug#3502).
498 2009-06-10 Kenichi Handa <handa@m17n.org>
500 * font.c (font_parse_family_registry): Fix for one-char foundry.
501 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
503 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
505 * process.c (status_message): Fix handling of multibyte signal
508 2009-06-09 Jim Meyering <meyering@redhat.com>
510 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
511 color name is missing.
513 2009-06-09 Kenichi Handa <handa@m17n.org>
515 * charset.c (Fmap_charset_chars): In docstring, state clearly that
516 FROM-CODE and TO-CODE are codepoints of CHARSET.
518 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
520 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
522 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
524 Changes to support :script/:lang/:otf in NS font driver.
525 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
526 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
527 indicate not part of font driver interface, and change callers.
528 (ns_get_family): Remove pointless null check.
529 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
530 ns_spec_to_descriptor, ns_descriptor_to_entity.
531 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
532 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
533 (ns_spec_to_descriptor, ns_descriptor_to_entity)
534 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
535 (ns_get_req_script, ns_accumulate_script_ranges)
536 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
538 (nsfont_list, nsfont_match): Use ns_findfonts.
539 (nsfont_open): Use font descriptor instead of traits.
540 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
541 (dump_glyphstring): Rename to ns_dump_glyphstring.
543 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
545 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
547 * fontset.c (fontset_from_font): Remove NS-specific code.
549 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
551 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
554 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
556 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
559 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
561 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
563 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
565 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
566 account for the overflowing of newlines into the last glyph on the
567 display line (Bug#3482).
569 2009-06-05 David Reitter <david.reitter@gmail.com>
571 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
572 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
573 Fns_selection_exists_p, Fns_selection_owner_p.
575 2009-06-03 Jason Rumney <jasonr@gnu.org>
577 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
578 available. (Bug#3379)
580 2009-05-29 Kenichi Handa <handa@m17n.org>
582 * coding.c (get_translation_table): Check
583 Venable_character_translation.
585 2009-05-26 David Reitter <david.reitter@gmail.com>
587 * nsterm.m (ns_raise_frame): Only raise frame if visible.
588 (x_make_frame_visible): Move frame to front rather than calling
590 (keyDown:): Do not swallow events that aren't re-sent if frame
592 (drawRect:): Do not set visibility/iconified flags because
593 drawRect may be called by NSView even if the frame is hidden.
595 * nsfns.m (Fx_create_frame): Follow other ports in
596 determining visibility; default to t. Ensure async_visible is set.
598 2009-05-23 Eli Zaretskii <eliz@gnu.org>
600 * dired.c (Ffile_attributes): Doc fix.
602 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
604 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
606 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
608 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
609 and xfont_scratch_props.
610 (syms_of_xfont): Do it here instead.
611 (xfont_find_ccl_program): Delete, unused.
612 (xfont_open): Delete unused var `i'.
614 2009-05-21 Kenichi Handa <handa@m17n.org>
616 * fontset.c (Qlatin): Don't make it static.
618 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
620 (xfont_scripts_cache, xfont_scratch_props): New variables.
621 (Qlatin, Vscalable_fonts_allowed): Extern it.
622 (xfont_list_pattern): Argument changed. Callers changed.
623 Check Vscalable_fonts_allowed. Check the support of a script.
624 (xfont_list): Don't reject a font spec with :script property.
625 (xfont_has_char): Fix setting of encoding.
626 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
629 2009-05-19 Kenichi Handa <handa@m17n.org>
631 * font.c (font_sort_entities): Rename from font_sort_entites.
634 2009-05-18 Kenichi Handa <handa@m17n.org>
636 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
638 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
640 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
641 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
643 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
645 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
646 (x_delete_terminal): Dissociate resource database from display and
647 then call XrmDestroyDatabase before closing display.
649 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
651 * nsterm.m (ns_read_socket): Remove unused variable.
652 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
653 whether selected frame is viable before raising it (based on patch
654 by David Reitter), and improve commentary.
655 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
657 2009-05-15 Kenichi Handa <handa@m17n.org>
659 * font.c (Ffont_spec): Check arguments.
661 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
663 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
664 weight when testing attributes (Bug#3282).
666 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
668 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
669 what we expect to get in the next ConfigureNotify event.
671 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
672 before Xft one (Bug#1696).
674 2009-05-07 David Reitter <david.reitter@gmail.com>
676 * nsfns.m (Fx_display_planes): Compute bitplanes using
677 NSBitsPerPixelFromDepth (Bug#3207).
679 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
681 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
683 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
685 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
687 2009-05-07 David Reitter <david.reitter@gmail.com>
689 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
690 Respect mouse face background.
692 2009-05-07 David Reitter <david.reitter@gmail.com>
694 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
695 Mouse movement/highlight: bracket drawing operations
696 in ns_update_begin and ns_update_end.
698 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
700 * nsfns.m (ns_get_screen): Rewrite.
701 Don't presume selected-frame is of type `ns'.
703 * font.c (font_update_drivers): Sanity fallback to avoid disabling
706 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
708 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
710 * keyboard.h (add_user_signal): Fix typo in extern.
712 * lisp.h (add_user_signal): Remove extern.
714 * unexelf.c (unexec): Consider a section to precede the .bss section
715 if its addresses overlap that of .bss.
716 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
717 instead of dumping process.
719 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
721 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
723 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
725 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
727 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
729 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
732 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
734 * process.c (read_process_output): Make sure the current buffer is
737 * coding.c (record_conversion_result): Don't modify
738 Vlast_code_conversion_error for successful result.
739 (alloc_destination): Don't clobber conversion result. (Bug#1650)
741 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
743 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
744 (load_charset_map): Remove unnecessary code.
746 2009-04-30 David Reitter <david.reitter@gmail.com>
748 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
751 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
753 * xfaces.c (face_at_buffer_position): New arg base_face_id.
755 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
756 face_at_buffer_position.
757 (face_before_or_after_it_pos, get_next_display_element)
758 (note_mouse_highlight): Update face_at_buffer_position call.
760 * term.c (term_mouse_highlight):
761 * msdos.c (IT_note_mouse_highlight):
762 * fontset.c (Finternal_char_font):
763 * font.c (font_at, font_range): Update face_at_buffer_position call.
765 * dispextern.h (face_at_buffer_position): Update prototype.
767 2009-04-30 Kenichi Handa <handa@m17n.org>
769 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
771 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
773 * callproc.c (Fcall_process): Fix GC protection. Make sure
774 current buffer is always restored.
776 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
778 * atimer.c (init_atimer): Also clear stopped_atimers.
780 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
782 * process.c (create_process): Clean up merger residues of
785 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
787 * lread.c (Vread_circle): New variable.
788 (read1): Disable recursive read if Vread_circle is nil.
790 2009-04-29 Kenichi Handa <handa@m17n.org>
792 * fontset.h (set_default_ascii_font): Delete extern.
794 * fontset.c (set_default_ascii_font): Delete this unused function.
796 * frame.c (x_set_font): When ARG is a font-object, check if the
797 font-object matches with the ASCII font-spec of the frame's
798 fontset. If not, create a new fontset for the frame. (Bug #3075)
800 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
802 * fns.c (Flocale_info): Protect vector from GC during decoding.
804 * process.c (Fstart_process): Protect argv strings from GC during
807 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
809 * sysdep.c: Include <ctype.h>.
811 2009-04-27 David Reitter <david.reitter@gmail.com>
813 * nsfont.m (nsfont_open): Remove unused variable shrink.
814 Remove commented-out code.
816 2009-04-26 Johan Bockgård <bojohan@gnu.org>
818 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
820 2009-04-25 Jason Rumney <jasonr@gnu.org>
822 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
824 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
826 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
827 Swap bytes in short integer if fringe bitmap width > 8.
829 2009-04-23 Kenichi Handa <handa@m17n.org>
831 * xfaces.c (Fx_list_fonts): If a font size is specified in
832 PATTERN, set it in returned scalable fonts.
834 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
836 * keyboard.c (Fset_input_meta_mode): Doc fix.
838 * dispnew.c (Fsend_string_to_terminal): Doc fix.
840 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
843 * coding.c (Fterminal_coding_system): Doc fix.
845 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
846 (Fx_display_pixel_height, Fx_display_planes)
847 (Fx_display_color_cells, Fx_server_max_request_size)
848 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
849 (Fx_display_mm_height, Fx_display_mm_width)
850 (Fx_display_backing_store, Fx_display_visual_class)
851 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
852 fixes, replacing "terminal id" with "terminal object".
853 (check_x_display_info): Handle terminal objects instead of
856 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
857 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
858 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
859 fixes, replacing "terminal id" with "terminal object".
861 2009-04-21 Kenichi Handa <handa@m17n.org>
863 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
864 (font_score): Check AVGWIDTH too.
866 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
868 (decode_coding_emacs_mule, decode_coding_iso_2022)
869 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
872 2009-04-19 Jason Rumney <jasonr@gnu.org>
874 The following changes fix Bug#3005 for wide glyphs on each platform,
875 without reintroducing Bug#1258 for stretch glyphs.
877 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
878 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
879 get_phys_cursor_geometry.
881 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
882 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
883 using get_phys_cursor_geometry.
885 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
886 correctly calculated.
888 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
890 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
891 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
892 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
895 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
897 * font.c (font_put_frame_data): Use xfree instead of free.
899 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
901 * w32font.c (Qja, Qko): Remove declarations.
902 (syms_of_w32font): Don't DEFSYM them.
904 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
906 * font.c (Qja, Qko): Move definitions here from ftfont.c.
908 * font.h (Qja, Qko): Extern them.
910 * ftfont.c (Qja, Qko): Remove declarations.
912 * xfont.c (Qja, Qko): Remove declarations.
914 2009-04-17 Kenichi Handa <handa@m17n.org>
916 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
917 string from a vector to handle Latin-1 characters correctly.
919 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
920 entity even if the cache hits.
922 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
924 * search.c (boyer_moore): Use zero as marker value for a possible
925 match instead of depending on overflow behavior. (Bug#2844)
927 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
928 * lisp.h: Adjust prototypes.
930 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
932 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
935 2009-04-16 Kenichi Handa <handa@m17n.org>
937 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
940 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
943 * ftfont.c (Qja, Qko): Don't make them static.
944 (enum ftfont_cache_for): New enum.
945 (fc_charset_table): Undo the previous change.
946 (ftfont_get_latin1_charset): Delete it.
947 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
948 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
949 non-scarable font, try to get AVERAGE_WIDTH.
950 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
951 Change ft_face_cache from a list of a hash-table. Don't check
952 `ja' and `ko' adstyle here.
953 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
954 FTFONT_CACHE_FOR_CHARET.
955 (ftfont_get_charset): Undo the previous change.
956 (ftfont_open): Call ftfont_lookup_cache with
957 FTFONT_CACHE_FOR_FACE.
958 (ftfont_close): Likewise.
959 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
961 * font.c (font_sort_entites): Change the meaning of the arg
962 BEST-ONLY. Don't optimize for VEC of lenght 1.
963 (font_select_entity): Just return the value of font_sort_entites.
965 * xfaces.c (merge_face_vectors): Reflect font properties in
966 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
967 font_clear_prop if a face attribute doesn't change.
969 * charset.h (charset_ksc5601): Extern it.
971 * charset.c (charset_ksc5601): New variable.
972 (Fdefine_charset_internal): Set charset_ksc5601.
973 (init_charset_once): Initialize charset_ksc5601 to -1.
975 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
977 * fileio.c (history_delete_duplicates): Remove unused declaration.
979 * callint.c (history_delete_duplicates): New declaration.
980 (Fcall_interactively): Remove command history duplicates when
981 history_delete_duplicates is true.
983 2009-04-14 Eli Zaretskii <eliz@gnu.org>
985 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
987 2009-04-14 Kenichi Handa <handa@m17n.org>
989 * font.c (Ffont_info): Fix docstring. Fix the second element of
990 the returned value (bug#2949).
992 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
994 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
996 2009-04-14 Kenichi Handa <handa@m17n.org>
998 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
999 encoding charset is ascii_compatible.
1001 * charset.c (Fdefine_charset_internal): Make charset
1002 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1003 code_offset is 0, and covers all ASCII characters.
1005 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1007 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1008 (ns_string_to_pasteboard_internal):
1009 * nsmenu.m (process_dialog):
1010 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1011 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1012 * lisp.h (Fx_load_color_file): Declare.
1014 2009-04-13 Kenichi Handa <handa@m17n.org>
1016 * font.c (font_delete_unmatched): Preserve the order of list
1018 (font_select_entity): Suppress the code to optimize for the same
1020 (font_load_for_lface): Get a font that supports at least ASCII
1023 * ftfont.c (Qja, Qko): New variables.
1024 (fc_charset_table): Delete uniquifier data for iso8859-1.
1025 (ftfont_get_latin1_charset): New function.
1026 (get_adstyle_property): New function.
1027 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1029 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1030 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1032 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1033 (ftfont_get_charset): For iso8859-1, call
1034 ftfont_get_latin1_charset.
1035 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1037 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1038 (syms_of_ftfont): DEFSYM Qja and Qko.
1040 2009-04-09 Kenichi Handa <handa@m17n.org>
1042 * charset.c (map_charset_chars): For a charset of `superset'
1043 method, fix calculation of code range.
1045 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1046 from the list of extra properties.
1047 (font_clear_prop): Be sure to delete `:name' font property.
1049 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1051 * dispnew.c (redraw_overlapping_rows): Fix detection of
1052 overlapping for topmost and bottommost rows.
1054 * ftfont.c (ftfont_text_extents): Fix calculation of
1057 2009-04-06 Jason Rumney <jasonr@gnu.org>
1059 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1061 2009-04-06 Kenichi Handa <handa@m17n.org>
1063 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1065 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1067 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1069 * ftfont.c (ftfont_open): Fix checking of the return value of
1070 FT_Load_Char. Fix setting font->underline_thickness.
1072 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
1074 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1075 (Fterminal_parameters, Fterminal_parameter)
1076 (Fset_terminal_parameter): In doc string, refer to terminal
1077 objects rather than terminal ids.
1079 2009-04-04 Eli Zaretskii <eliz@gnu.org>
1081 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1082 ret_lim_data. (Bug#2867)
1084 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
1086 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1087 so they don't get wider than the window, matching 2006-01-23
1088 change to the partner function in xdisp.c (Bug#2800).
1090 2009-04-03 Kenichi Handa <handa@m17n.org>
1092 * print.c (print_object): Make each lowest sub_char_table start a
1093 new line (Bug#2866).
1095 2009-04-02 Kenichi Handa <handa@m17n.org>
1097 * fontset.c (fontset_font): Record no-font when a fontset
1098 explicitly tells not to try another font-specs.
1100 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1102 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1104 2009-03-30 Kenichi Handa <handa@m17n.org>
1106 * fontset.c (fontset_from_font): Specify only registry in a
1107 font-spec for all characters supported by that registry.
1109 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1110 even if HAVE_M17N_FLT is not defined.
1112 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1114 * ftfont.c: Conditionalize prototyping and use of
1115 ftfont_variation_glyphs.
1117 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1119 * frame.c (delete_frame): Work around compiler bug.
1121 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1122 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1123 Some more EMACS_INT.
1124 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1126 * xdisp.c (dump_glyph): Fix typo.
1128 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1129 (adjust_markers_gap_motion, adjust_markers_for_delete)
1130 (adjust_markers_for_insert, adjust_point)
1131 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1132 (make_gap, copy_text, count_size_as_multibyte, insert)
1133 (insert_and_inherit, insert_before_markers)
1134 (insert_before_markers_and_inherit, insert_1)
1135 (count_combining_before, count_combining_after, insert_1_both)
1136 (insert_from_string, insert_from_string_before_markers)
1137 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1138 (insert_from_buffer_1, adjust_after_replace)
1139 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1140 (replace_range_2, del_range, del_range_1, del_range_byte)
1141 (del_range_both, del_range_2, modify_region)
1142 (prepare_to_modify_buffer, signal_before_change)
1143 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1144 for buffer positions and sizes.
1145 * lisp.h: Adjust prototypes accordingly.
1147 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1148 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1149 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1151 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1153 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1155 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1156 lines and columns so we keep the same pixel height and width.
1158 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1159 the property _NET_WM_STATE has changed.
1160 (x_handle_net_wm_state): New function to update frame parameter
1162 (x_term_init): Initialize atoms for _NET_WM_STATE.
1164 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1166 2009-03-27 Kevin Ryde <user42@zip.com.au>
1168 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1169 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1170 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1171 (Fgpm_mouse_stop): Pass that new parameter.
1172 * termhooks.h (close_gpm): Adjust prototype.
1174 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1176 * lisp.h (Fx_focus_frame): Declare.
1178 * callint.c (Fcall_interactively): For '^' just delegate the work to
1179 handle-shift-selection.
1180 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1182 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
1184 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1186 * data.c (Qinteractive_form): New variable.
1187 (Finteractive_form): Use it.
1189 * eval.c (Fcommandp): Use Qinteractive_form.
1191 2009-03-24 Jason Rumney <jasonr@gnu.org>
1193 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1194 Calculate total size precisely. Decode environment variables
1195 before substituting. (Bug#38)
1197 2009-03-24 Kenichi Handa <handa@m17n.org>
1199 * font.c (find_font_encoding): Return Qnil for unsupported
1200 encoding (Bug#2722).
1202 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1204 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1207 2009-03-22 Alan Mackenzie <acm@muc.de>
1209 * callint.c (Finteractive): Clarify the doc string - even
1210 promptless elements need \n separators.
1212 2009-03-22 Jason Rumney <jasonr@gnu.org>
1214 * w32term.c (syms_of_w32term): Doc fix for
1215 x-use-underline-position-properties.
1217 2009-03-21 Eli Zaretskii <eliz@gnu.org>
1219 * w32.c (getpwuid): Change argument type to unsigned.
1220 (struct w32_id): Change type of `rid' member to unsigned.
1221 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1222 argument ID to unsigned. All callers changed.
1223 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1225 2009-03-20 Eli Zaretskii <eliz@gnu.org>
1227 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1228 negative, produce a float value.
1230 * dired.c (make_uid, make_gid): New functions.
1231 (Ffile_attributes): Use them to avoid negative UID and GID.
1233 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
1235 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1236 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1237 Fix typos in docstrings.
1239 2009-03-19 Kenichi Handa <handa@m17n.org>
1241 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
1242 changed, use font_load_for_lface to get a new font object.
1243 Call free_realized_fontset after handling ASCII font change.
1245 * frame.c (x_set_font): Handle the case that ARG is a cons.
1247 2009-03-19 Glenn Morris <rgm@gnu.org>
1249 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1251 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
1253 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1255 2009-03-19 Kenichi Handa <handa@m17n.org>
1257 * charset.c (load_charset_map_from_file): When a mapfile can't be
1258 loaded, signal an error.
1260 2009-03-18 Eli Zaretskii <eliz@gnu.org>
1262 * dired.c (Ffile_attributes): Make sure UID and GID are always
1263 positive, even if the value is too large for a positive EMACS_INT.
1266 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1268 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1270 * xmenu.c (xdialog_show): Move Fredisplay call ...
1271 (Fx_popup_dialog): ... here.
1273 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1275 * dired.c (file_name_completion): Disable the first optimization just
1276 installed, since it is not implemented correctly.
1278 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1280 * dired.c (file_name_completion): Check completion-ignored-extensions
1281 only if the entry can affect bestmatch.
1282 Stop the search early, as Ftry_completion already does.
1284 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
1286 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
1288 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
1290 * keyboard.c (parse_menu_item): Don't display remappings as menu
1291 equivalent bindings (Bug#788).
1293 2009-03-15 Jason Rumney <jasonr@gnu.org>
1295 * w32term.h (WM_EMACS_PAINT): New message.
1296 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1297 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1298 before passing to lisp thread. (Bug#950)
1300 2009-03-14 David Reitter <david.reitter@gmail.com>
1302 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1303 variable as it was never reset.
1304 (ns_term_init): Remove initialization of Lisp-settable defaults
1305 and ns_expand_space.
1306 (-setPanelFromDefaultValues): Remove ns_expand_space.
1307 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1308 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
1309 i.e. no additional spacing, similar to Carbon port.
1311 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1312 * nsfns.m (ns-popup-prefs-panel): Remove.
1314 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1316 * sound.c (alsa_configure): Remove call to deprecated
1317 snd_pcm_sw_params_set_xfer_align.
1319 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
1321 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1322 after clicking in a detached tool bar.
1323 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1325 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1327 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1328 int/Lisp_Object mixup).
1330 2009-03-13 Kenichi Handa <handa@m17n.org>
1332 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
1333 Handle NAME nil and t correctly. Callers changed.
1334 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1335 (set_fontset_font): Change ARG to a vector. Handle range_list in
1337 (Fset_fontset_font): Fix the case that TARGET is both a script
1338 name and charset name. Adjust the arg to set_fontset_font for
1340 (fontset_from_font): Fix previous change.
1341 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
1342 entry. If FONTSET is the default fontset, don't set the extra
1343 slot of the returning char-table.
1345 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
1347 * nsfns.m (Fx_close_connection): Doc fix.
1348 (Fns_do_applescript): Reflow docstring.
1349 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1350 (Fx_display_pixel_width, Fx_display_pixel_height)
1351 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1352 Fix typos in docstrings.
1353 (Fns_set_alpha): Fix typos in error messages.
1355 2009-03-12 David Reitter <david.reitter@gmail.com>
1357 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
1358 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1359 were used for such events.
1361 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1362 (toggleToolbar, performDragOperation, runHelp): Use it.
1364 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
1365 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1367 2009-03-11 Kenichi Handa <handa@m17n.org>
1369 * font.h (font_open_by_spec): Extern it.
1371 * font.c (font_open_by_spec): New function.
1372 (font_open_by_name): Use font_open_by_spec.
1374 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1375 fontset of the frame.
1377 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1378 modify the default font of frames that use this fontset.
1379 (num_auto_fontsets): New variable.
1380 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1381 name. Be sure to set FONTSET_ASCII to the correct font name.
1382 (update_auto_fontset_alist): New function.
1384 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
1386 * makefile.w32-in: Update dependencies.
1388 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1390 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1392 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1394 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1396 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
1398 * lread.c (Feval_buffer): Doc fix.
1400 2009-03-09 Kenichi Handa <handa@m17n.org>
1402 * charset.c (Qfile_name_handler_alist): Extern it.
1403 (load_charset_map_from_file): Temporarily bind
1404 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1406 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
1408 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1409 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
1411 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1413 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1414 (x_set_window_size): Change back to calculated method of setting
1415 toolbar height under Cocoa. (Bug#2546)
1416 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1417 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1419 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1421 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1422 accelerator in parens under GNUstep.
1424 2009-03-06 Kenichi Handa <handa@m17n.org>
1426 These changes are to detect incorrect composition sequence without
1427 looking ahead the source. (Bug#2370)
1429 * coding.h: Include "composite.h".
1430 (enum compisition_state): New enum.
1431 (struct compisition_status): New struct.
1432 (struct iso_2022_spec): New member cmp_status.
1433 (struct emacs_mule_spec): New struct.
1434 (struct coding_system): New members ctext_extended_segment_len and
1435 embedded_utf_8. Change the union member
1436 spec.emacs_mule_full_support to spec.emacs_mule.
1438 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1439 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
1440 (MAX_ANNOTATION_LENGTH): Define to 5.
1441 (ADD_COMPOSITION_DATA): New arg nbytes.
1442 (emacs_mule_char): New arg cmp_status.
1443 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1444 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1445 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1446 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1447 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1448 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1449 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1450 (EMACS_MULE_COMPOSITION_END): New macro.
1451 (emacs_mule_finish_composition): New function.
1452 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1453 (decode_coding_emacs_mule): Avoid long looking ahead while
1454 handling composition.
1455 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1456 (ENCODE_COMPOSITION_RULE): New macro.
1457 (finish_composition): New function.
1458 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1459 (DECODE_COMPOSITION_START): New implementation.
1460 (DECODE_COMPOSITION_END): Likewise.
1461 (STORE_COMPOSITION_RULE): New macro.
1462 (decode_coding_iso_2022): Avoid long looking ahead while handling
1463 composition, CTEXT extended segment, and embedded UTF-8.
1464 (setup_coding_system): For a coding of type iso-2022, reset
1465 CODING_ISO_EXTSEGMENT_LEN (coding) and
1466 CODING_ISO_EMBEDDED_UTF_8 (coding).
1467 (get_translation): Delete arguments last_block, from_nchars,
1468 to_nchars. Callers changed.
1469 (produce_chars): Don't modify charbuf. Adjusted for the change of
1471 (produce_composition): Adjust for the new annotation sequence.
1472 (handle_composition_annotation): Likewise.
1473 (consume_chars): Adjust for the change of get_translation.
1475 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1477 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
1479 2009-03-05 Kenichi Handa <handa@m17n.org>
1481 * font.c (font_select_entity): New function.
1482 (font_find_for_lface): Use font_select_entity to select a font.
1484 * fontset.c (fontset_find_font): If a font found without
1485 restricting to the characters C doesn't support C, try to find a
1486 font with C restriction.
1488 2009-03-04 Nikolaj Schumacher <me@nschum.de>
1490 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
1492 2009-03-04 Jason Rumney <jasonr@gnu.org>
1494 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
1495 characters that have already been read. (Bug#2569)
1497 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1498 Log an error message if check_image_size failed.
1499 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
1500 (gs_load): Mention max-image-size in size error message. (Bug#2560)
1502 2009-03-02 Eli Zaretskii <eliz@gnu.org>
1504 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1505 when decoding process output.
1507 2009-03-01 Richard M Stallman <rms@gnu.org>
1509 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1511 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1513 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1515 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1516 (decode_coding_emacs_mule, decode_coding_iso_2022)
1517 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1518 (decode_coding_raw_text, decode_coding_charset)
1519 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1520 Honor inhibit-eol-conversion. (Bug #2186)
1522 2009-02-28 Jason Rumney <jasonr@gnu.org>
1524 * coding.c (detect_coding_charset): If not checking latin extra,
1525 fail on characters between 0x80 and 0xA0. (Bug#2354)
1527 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1529 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
1530 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
1532 2009-02-27 Glenn Morris <rgm@gnu.org>
1534 * callint.c (Finteractive): Doc fix.
1536 2009-02-27 Kenichi Handa <handa@m17n.org>
1538 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1540 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
1542 * font.c (font_style_to_value): Set value for unknown symbols to
1544 (weight_table, slant_table, width_table): Treat "unspecified" as
1547 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
1549 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1551 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
1553 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1554 error as soon as a recursive load is detected.
1556 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1558 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1561 2009-02-24 Kenichi Handa <handa@m17n.org>
1563 * fontset.c (fontset_find_font): Fix the condition for checking
1566 2009-02-24 Glenn Morris <rgm@gnu.org>
1568 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1569 whitespace that confuses documentation.
1571 2009-02-23 Miles Bader <miles@gnu.org>
1573 * process.c (Flist_system_processes, Fprocess_attributes)
1574 (syms_of_process): Rename `system-process-attributes' to
1575 `process-attributes'.
1577 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1579 * coding.h (struct coding_system): Make safe_charsets a pointer to
1581 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1583 (SAFE_CHARSET_P): Likewise.
1584 (setup_iso_safe_charsets): Properly setup safe_charsets.
1585 (Fdefine_coding_system_internal): Likewise.
1586 (setup_coding_system): Likewise. Remove unneeded casts.
1587 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1588 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1591 * insdel.c (del_range_2): Don't modify gap contents when called
1592 from decode_coding_object. (Bug#1809)
1594 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
1596 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1598 (Ftype_of): Recognize font objects.
1600 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1602 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1605 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1607 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1608 async_iconified. Based on a patch by Christian Lynbech
1609 <christian.lynbech@tieto.com>.
1610 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1612 2009-02-20 Glenn Morris <rgm@gnu.org>
1614 * syntax.c (Fskip_chars_forward): Fix doc typo.
1616 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
1618 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1620 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
1622 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1624 2009-02-19 Kenichi Handa <handa@m17n.org>
1626 * coding.c (detect_coding): Preserve coding->mode.
1627 Don't overflow coding->carryover. (Bug#2370)
1629 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1631 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1633 2009-02-18 Kenichi Handa <handa@m17n.org>
1635 * font.c (font_check_otf_features): Fix handling of `nil' element.
1636 (Ffont_spec): Describe :lang and :otf in the docstring.
1638 2009-02-16 Andreas Schwab <schwab@suse.de>
1640 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1643 2009-02-16 Kenichi Handa <handa@m17n.org>
1645 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
1648 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
1650 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
1652 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1653 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1655 2009-02-14 Eli Zaretskii <eliz@gnu.org>
1657 * msdos.c (MAX_SCREEN_BUF): New macro.
1658 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1659 Encode the entire run of glyphs sharing the same face, instead of
1660 doing that one glyph at a time (fixes a bug with displaying
1661 double-size characters).
1663 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1665 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1667 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1668 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
1669 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
1671 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
1672 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
1674 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1676 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1679 2009-02-12 Jason Rumney <jasonr@gnu.org>
1681 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1682 (add_font_entity_to_list): Call check_face_name even when family
1685 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1686 Release DC when finished. Use NULL window to refer to desktop.
1687 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
1689 * w32font.c (add_font_entity_to_list): Fix check for substituted
1690 raster fonts. (Bug#2219)
1692 2009-02-12 Kenichi Handa <handa@m17n.org>
1694 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1695 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1696 (autocmp_chars): Use fast_looking_at. Don't compose more
1697 characters than MAX_COMPOSITION_COMPONENTS.
1698 (find_automatic_composition): While looking forward and backward,
1699 check static composition. Fix where to stop looking forward.
1700 (composition_adjust_point): Fix checking of static composition.
1701 (Fcomposition_get_gstring): Pay attention to
1702 MAX_COMPOSITION_COMPONENTS.
1704 * lisp.h (fast_looking_at): Extern it.
1706 * search.c (fast_looking_at): New function.
1708 * term.c (encode_terminal_code): Adjust for the change of
1709 <struct glyph>.u.cmp.to.
1710 (append_composite_glyph): Likewise.
1712 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
1713 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1715 (append_composite_glyph): Adjust for the change of
1716 <strcut glyph>.u.cmp.to.
1718 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
1720 * casetab.c (init_casetab_once):
1721 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1722 * font.c (font_update_lface):
1723 * fontset.c (Fnew_fontset):
1724 * ftfont.c (ftfont_drive_otf):
1725 * xfont.c (xfont_open):
1726 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1728 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1730 * fileio.c (Fwrite_region): !NILP -> CONSP.
1732 2009-02-10 Andreas Schwab <schwab@suse.de>
1734 * process.c (send_process): Properly relocate pointer into data
1735 when using encoded data. (Bug#2272)
1737 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1739 * coding.c (detect_coding_charset): Fix previous change.
1741 2009-02-08 Jason Rumney <jasonr@gnu.org>
1743 * w32fns.c (w32_hide_hourglass): Handle case where frame
1744 disappeared while hourglass was displayed. (Bug #2193)
1746 2009-02-07 Andreas Schwab <schwab@suse.de>
1748 * unexelf.c (unexec): Fix error message.
1750 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1752 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
1753 when modal window is active. (Bug #2152)
1754 (applicationShouldTerminate:): Remove now-unneeded while loop
1755 around NSRunAlertPanel.
1757 * nsmenu.m (popupSession): New file-global variable.
1758 (pop_down_menu): End the popupSession before closing dialog.
1759 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1760 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1761 don't query NSApp for events (just sleep instead).
1763 2009-02-07 Eli Zaretskii <eliz@gnu.org>
1765 * coding.c (syms_of_coding) <translation-table-for-input>:
1766 Modify doc string to discourage use for character code unification.
1768 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1770 * atimer.c (run_timers): Update pending_atimers.
1772 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
1774 * image.c (svg_load_image): Fix last change.
1776 * xfns.c (Fx_create_frame): Signal an error if no font is
1779 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
1781 * character.c (syms_of_character) <script-representative-chars>:
1782 Fix typo in docstring.
1784 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1786 * nsmenu.m (pop_down_menu): New function.
1787 (ns_popup_dialog): Call it on unwind.
1788 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1789 call timer_check() (Bug#2154).
1790 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1791 handling_signal is set.
1792 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1794 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1796 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1798 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1800 * keyboard.c (poll_for_input_1, handle_async_input):
1801 Set handling_signal under HAVE_NS.
1803 2009-02-04 Glenn Morris <rgm@gnu.org>
1805 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1807 2009-02-04 Kenichi Handa <handa@m17n.org>
1809 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1811 * charset.c (Fchar_charset): New optional arg restriction.
1813 * coding.h (coding_system_charset_list): Extern it.
1815 * coding.c (coding_system_charset_list): New function.
1817 * composite.c: Include coding.h and termhooks.h.
1818 (composition_gstring_p): Fix for the terminal case.
1819 (composition_gstring_width): Likewise.
1820 (fill_gstring_body): Likewise.
1821 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1823 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1824 is within a composition.
1825 (Fcomposition_get_gstring): Fix the terminal case.
1827 * term.c (encode_terminal_code): Fix handling of composition.
1828 (produce_composite_glyph): For static composition, get pixel_width
1829 from struct composition.
1831 2009-02-02 Andreas Schwab <schwab@suse.de>
1833 * unexelf.c (unexec): Handle unaligned bss offset.
1835 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1837 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1838 XT,w32read_socket changes to ns_read_socket.
1840 * keyboard.c (handle_interrupt): Don't call
1841 quit_throw_to_read_char() under NS.
1843 * blockinput.h: Remove NS-specific code.
1845 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1847 * dispnew.c (window_change_signal): Don't try to get the size of a
1848 suspended tty frame.
1849 * term.c (Fresume_tty): Resize if the size has changed while the
1852 * alloc.c (mark_stack): Properly conditionalize previous change.
1854 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1856 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1857 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1858 Remove; this code is not used on Windows.
1860 2009-01-30 Eli Zaretskii <eliz@gnu.org>
1862 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1863 EOLs that also has stray ^M characters.
1865 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1867 * atimer.c (run_timers, alarm_signal_handler):
1868 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1869 * w32inevt.c (w32_console_read_socket):
1870 * w32term.c (w32_read_socket):
1871 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1873 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
1875 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1876 Initialize it as a relative filename pattern.
1877 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1878 (Fcall_process_region): Simplify temp file creation using
1879 temporary-file-directory.
1881 2009-01-29 Eli Zaretskii <eliz@gnu.org>
1883 * msdos.c: Rename pending_signals to msdos_pending_signals.
1884 (sig_suspender, sigprocmask): Adjust.
1886 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
1888 * keyboard.c (pending_signals): New var.
1889 (poll_for_input, input_available_signal, init_keyboard): Set it.
1890 (process_pending_signals): New function.
1892 * lisp.h (QUIT): Check pending_signals instead of
1893 interrupt_input_pending. Use process_pending_signals.
1895 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
1897 * process.c (wait_reading_process_output): Use process_pending_signals.
1899 * sysdep.c (emacs_write): Use process_pending_signals.
1901 * xterm.c (XTread_socket): Update pending_signals.
1903 * w32term.c (w32_read_socket): Update pending_signals.
1905 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1907 2009-01-29 Kenichi Handa <handa@m17n.org>
1909 * xftfont.c (xftfont_has_char): New function.
1910 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1912 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1914 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1916 (ns_query_color): New declaration.
1918 * nsterm.m (ns_confirm_quit): New variable.
1919 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1920 (EmacsApp-applicationShouldTerminate:): Use it.
1921 (EmacsPrefsController): Let user set it.
1922 (ns_query_color): New function.
1923 (ns_defined_color): Use it.
1924 (ns_initialize): Drop.
1925 (ns_term_init): Add two lines from ns_initialize(), and set
1926 input_interrupt_mode to nil.
1928 * image.c (svg_load_image): Don't right-shift background RGB when
1929 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
1931 2009-01-28 Kenichi Handa <handa@m17n.org>
1933 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1934 (fontset_get_font_group): Remember that no font-group is specified
1937 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
1939 * fns.c (concat): Check for string overflow (bug#1787).
1941 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1942 Quadruple undo limits (bug#1501).
1944 2009-01-27 Kenichi Handa <handa@m17n.org>
1946 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1947 directly use GT_Get_Char_index.
1949 * xftfont.c (struct xftfont_info): New member `index'.
1951 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1952 (Ffontset_font): Adjust for the change of fontset entry.
1954 2009-01-26 Kenichi Handa <handa@m17n.org>
1956 * fontset.c (fontset_find_font): Fix handling of non-cons return
1957 value of fontset_get_font_group.
1958 (fontset_font): Revert last change.
1960 2009-01-26 Jason Rumney <jasonr@gnu.org>
1962 * w32font.c (w32font_list_internal): Return quickly if registry is
1963 unknown. Simplify final return.
1964 (add_font_entity_to_list): Break complex logic down into more
1965 manageable chunks. Move unknown registry check to
1966 w32font_list_internal.
1968 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1970 Changes to remove Feval calls from GUI under NS.
1972 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1973 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
1974 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1976 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1977 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1978 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1979 instead of NON_ASCII_KEYSTROKE_EVENT.
1980 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1981 (EmacsApp-applicationShouldTerminate:): Query user.
1982 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1985 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1987 * keyboard.c (kbd_buffer_get_event): Check for it.
1988 (keys_of_keyboard): Define lispy keys for
1989 ns-put/unput-working-text.
1991 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1993 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1995 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
1997 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
1998 setting current_buffer directly. (Bug#2044)
2000 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
2002 * fontset.c (fontset_font): If we know there is no font, don't do
2003 any work. (Bug#1952, bug#1990).
2005 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
2007 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2009 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
2010 (ns_no_defaults): New declaration.
2013 * nsterm.h (ns_no_defaults): New declaration.
2015 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
2017 * nsterm.m (ns_no_defaults): New variable.
2018 (ns_initialize): Don't read defaults when ns_no_defaults.
2019 (EmacsView-readSelectionFromPasteboard:)
2020 (writeSelectionToPasteboard:types:): New stubbed-out methods for
2021 NSServicesRequests protocol. (Bug#1435)
2022 (ns_dumpglyphs_stretch): New function.
2023 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
2024 of 2008-11-15 to other terms. (Bug#615)
2026 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2028 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2030 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2033 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2040 * nsterm.m: Remove '23' comments that indicated code added during
2041 update from emacs-20 -> emacs-23.
2043 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2045 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
2046 ns_alternate_modifier. (Bug#1217)
2048 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2049 Display all shortcuts, including those w/o super modifier.
2051 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2053 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
2055 * fileio.c (Vwrite_region_post_annotation_function)
2056 (Vwrite_region_annotation_buffers): New vars.
2057 (build_annotations_unwind): Just reset
2058 Vwrite_region_annotation_buffers.
2059 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2060 Call write-region-post-annotation-function.
2061 (build_annotations): Add to Vwrite_region_annotation_buffers if
2064 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2066 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2068 * nsfns.m (ns_do_applescript):
2069 Conditionalize typeUTF16ExternalRepresentation on Tiger.
2071 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2073 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2075 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2077 * nsmenu.m (NSMENUPROFILE): Change #if style.
2079 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2081 * nsterm.m (x_set_frame_alpha): Add prototype.
2082 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2083 handle Ctrl-tab. (Bug#1841)
2084 (ns_get_color): Use unsigned long long for scanned hex string value.
2085 (ns_term_shutdown): Abort on non SIGTERM signals.
2086 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
2087 (EmacsPrefsController-setPanelFromDefaultValues): New function.
2088 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
2089 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
2090 (ns_defined_color): Fix settings of the XColor variable fields:
2091 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
2093 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
2095 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2096 values in onTiger section.
2098 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
2100 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2101 Check return value of font_spec_from_name.
2102 (Fx_list_fonts): Doc fix. (Bug#1951)
2104 * font.c (font_spec_from_name): Return Qnil if font name could not
2106 (font_parse_name): Treat a `?' character as part of an XLFD.
2108 * fns.c (Fsubstring): Doc fix.
2110 2009-01-19 Kenichi Handa <handa@m17n.org>
2112 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
2113 (ftfont_list): Likewise.
2115 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
2117 * dbusbind.c (Fdbus_register_signal):
2118 * process.c (conv_sockaddr_to_lisp):
2119 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2121 * callproc.c (Fgetenv_internal): Doc fix.
2123 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
2125 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2126 it is not even used.
2128 2009-01-16 Glenn Morris <rgm@gnu.org>
2130 * font.c (Ffont_variation_glyphs): Silence compiler.
2132 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
2134 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2135 Reported by David Robinow <drobinow@gmail.com>.
2137 2009-01-15 Kenichi Handa <handa@m17n.org>
2139 * coding.c (detect_coding_system): Fix handling of null_byte_found.
2141 2009-01-14 Jason Rumney <jasonr@gnu.org>
2143 * frame.c (x_set_font): Always store a font to the font parameter,
2144 never a fontset. (Bug#1562)
2146 2009-01-14 Kenichi Handa <handa@m17n.org>
2148 * coding.c (TWO_MORE_BYTES): New macro.
2149 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
2151 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
2153 * font.c (font_clear_prop): If clearing the family, clear the font
2156 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
2158 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
2160 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2161 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2162 functions, use sizeof.
2164 2009-01-12 Martin Rudalics <rudalics@gmx.at>
2166 * keyboard.c (read_char): Fix case where last_nonmenu_event
2167 returned a bad value with submenus. (Bug#447)
2169 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
2171 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2172 family, clear the font width index too.
2174 2009-01-11 Jason Rumney <jasonr@gnu.org>
2176 * keyboard.c (cmd_error_internal): Exit when errors occur before
2177 frame creation and not in daemon mode. (Bug#1836)
2179 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
2181 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2182 of a display vector, backtrack.
2183 (try_window_reusing_current_matrix): Check glyph type before
2184 referencing charpos member.
2186 2009-01-10 Eli Zaretskii <eliz@gnu.org>
2190 * coding.c (inhibit_null_byte_detection): New variable.
2191 (detect_coding, detect_coding_system): Don't pay attention to null
2192 bytes if inhibit_null_byte_detection is non-zero.
2193 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
2194 <inhibit-iso-escape-detection>: Doc fix.
2196 2009-01-09 Jason Rumney <jasonr@gnu.org>
2198 * w32font.c (add_font_entity_to_list): Don't report unknown
2199 Windows charset as any unrecognized registry. (Bug#1548)
2200 Only report Unicode Plane 2 fonts as unicode-sip.
2202 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
2204 * xfaces.c (Fx_font_family_list): Delete function.
2205 Move compatibility version to faces.el.
2207 * font.c (Ffont_family_list): Return a list of strings, not symbols.
2209 2009-01-09 Martin Rudalics <rudalics@gmx.at>
2211 * frame.c (x_set_frame_parameters): Remember requested value for
2212 fullscreen before it's reset by the parameter handler.
2214 2009-01-09 Glenn Morris <rgm@gnu.org>
2216 * keyboard.c (last_command_char): For clarity, rename to...
2217 (last_command_event): ... and update all users.
2218 (last_input_char): For clarity, rename to...
2219 (last_input_event): ... and update all users.
2220 (last-command-char, last-input-char): Move to subr.el as aliases.
2221 * cmds.c, commands.h: Update for last_command_char rename.
2223 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
2225 * font.c (font_open_for_lface): Handle unspecified height attribute.
2227 2009-01-08 Jason Rumney <jasonr@gnu.org>
2229 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2230 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2231 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2233 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
2234 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2236 2009-01-07 Kenichi Handa <handa@m17n.org>
2238 * fileio.c (Finsert_file_contents): In the case of replace,
2239 remember the coding system used for decoding in
2240 coding_system (Bug#1039).
2242 * coding.c (decode_coding_utf_8): Check byte_after_cr before
2243 breaking the loop. (Bug#870)
2244 (decode_coding_utf_16, decode_coding_emacs_mule)
2245 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2246 (decode_coding_charset): Likewise.
2248 2009-01-05 Martin Rudalics <rudalics@gmx.at>
2250 * frame.c (x_set_frame_parameters): Make sure height (width) get
2251 applied when fullwidth (fullheight) is set. (Bug#1522)
2253 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
2255 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2256 (utc_base): Declare as ULONGLONG, not long double.
2257 (convert_time_raw): Delete.
2258 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2259 (initialize_utc_base): New function.
2260 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2261 (convert_from_time_t): Use initialize_utc_base; compute result with
2263 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2265 2009-01-03 Eli Zaretskii <eliz@gnu.org>
2267 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
2268 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2269 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2270 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2271 [!subprocesses]: Define.
2272 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2273 (Flist_system_processes, Fsystem_process_attributes)
2274 [!subprocesses]: Call list_system_processes and
2275 system_process_attributes instead of returning Qnil.
2277 * dosfns.c (system_process_attributes, list_system_processes):
2280 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2282 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2283 Don't use the default (no-op) implementation.
2285 2009-01-03 Jason Rumney <jasonr@gnu.org>
2287 * keyboard.c (parse_modifiers_uncached): Wheel events are
2290 * w32term.c (x_query_colors, x_query_color): New functions.
2292 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2293 (svg_load_image): Cast returned pointers from dynamically loaded
2294 functions. Eliminate W32 specific code.
2296 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2298 * nsfns.m (x_set_foreground_color, x_set_background_color)
2299 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2300 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2301 x_ prefix instead of ns_. Update references.
2302 (syms_of_nsfns): Add a FIXME comment.
2304 * nsterm.m (x_set_cursor_type): New prototype.
2305 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2307 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2308 for Solaris instead of incorrectly providing Qutime and Qcutime.
2310 2009-01-02 Eli Zaretskii <eliz@gnu.org>
2312 * w32.c (process_times): Compute sum of utime and stime.
2313 (system_process_attributes): Add Qtime to the alist.
2315 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2316 and add them to the alist.
2318 * process.c (top level) <Qtime, Qctime>: New variables.
2319 (syms_of_process): staticpro them.
2320 (Fsystem_process_attributes): Add their documentation to the doc
2323 * process.h: Declare Qtime and Qctime.
2325 2009-01-02 Jason Rumney <jasonr@gnu.org>
2327 * image.c (Qgobject): New symbol.
2328 (syms_of_image): Initialize it.
2329 (init_svg_functions): Load some functions from gobject library.
2331 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2333 * frame.c (make_terminal_frame): Remove redundant code and useless
2336 2009-01-01 Andreas Schwab <schwab@suse.de>
2338 * process.c (conv_sockaddr_to_lisp): Add workaround for
2339 getsockname bug on BSD.
2341 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
2343 * xfns.c (x_create_tip_frame): Set border width of the X window.
2345 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
2347 2009-01-01 Jason Rumney <jasonr@gnu.org>
2349 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
2350 Don't block input, as per earlier xterm.c changes.
2352 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2354 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2355 (ns_appkit_version_int): New function.
2356 (x-server-version): Use ns_appkit_version_int and follow 21+
2357 convention of returning 3 integers.
2359 2008-12-30 Kenichi Handa <handa@m17n.org>
2361 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2362 (CHAR_SURROGATE_PAIR_P): New macro.
2364 * font.h (struct font_driver): New member get_variation_glyphs.
2366 * font.c (font_range): Don't require a font for a variation selector.
2367 (Ffont_variation_glyphs): New function.
2368 (syms_of_font): Defsubr it.
2370 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2371 ftfont_variation_glyphs.
2372 (setup_otf_gstring): New function.
2373 (ftfont_drive_otf): Use it.
2374 (ftfont_shape_by_flt): Handle variation selector.
2375 (ftfont_variation_glyphs): New function.
2377 2008-12-30 Martin Rudalics <rudalics@gmx.at>
2379 * frame.c (Vemacs_iconified): Remove.
2381 2008-12-30 Jason Rumney <jasonr@gnu.org>
2383 * frame.c (store_frame_param, x_get_arg): Enable newer code on
2384 WINDOWSNT too, as related changes have already been synced. (Bug#117)
2386 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
2388 * indent.c (Fvertical_motion): Don't advance iterator if we have
2389 reseated to the desired position.
2391 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2392 checking for pos match.
2394 2008-12-30 Kenichi Handa <handa@m17n.org>
2396 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2397 just get the low 8-bit of the code.
2399 * font.c (font_intern_prop): Validate str as multibyte.
2401 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2403 * dispextern.h (struct face): Move lface and hash from the middle
2406 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2408 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2410 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2411 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2412 instead of intervals.h.
2414 2008-12-26 Andreas Schwab <schwab@suse.de>
2416 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2419 2008-12-26 Martin Rudalics <rudalics@gmx.at>
2421 * textprop.c (Qminibuffer_prompt): New variable.
2422 (syms_of_textprop): Initialize it.
2423 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2424 in minibuffer-prompt face. (Bug#1662)
2426 2008-12-25 Jason Rumney <jasonr@gnu.org>
2428 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2430 2008-12-24 Jason Rumney <jasonr@gnu.org>
2432 * ralloc.c (r_alloc_reset_variable): New function.
2434 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
2435 record of what points where. (Bug#716)
2437 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2439 * minibuf.c (read_minibuf): Follow the non-interactive case when
2440 running as a daemon, before detaching.
2442 2008-12-22 Andreas Schwab <schwab@suse.de>
2444 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2445 * gtkutil.c (free_widget_value): Use xfree instead of free.
2447 2008-12-22 Martin Rudalics <rudalics@gmx.at>
2449 * frame.c (delete_frame): New function derived from
2450 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2451 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2452 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2453 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2454 * frame.h: Extern delete_frame.
2455 * window.c (window_loop):
2456 * terminal.c (delete_terminal):
2457 * xterm.c (x_connection_closed):
2458 * xfns.c (Fx_hide_tip):
2459 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
2461 2008-12-21 Jason Rumney <jasonr@gnu.org>
2463 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2464 when character maps to .notdef character.
2466 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2468 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2470 2008-12-20 Jason Rumney <jasonr@gnu.org>
2472 * frame.c (Fmake_terminal_frame): Raise an error when called from
2473 a graphical frame on Windows. (Bug#1325)
2475 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2477 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2479 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
2481 * minibuf.c (Fread_buffer): Doc fix.
2483 2008-12-20 Jason Rumney <jasonr@gnu.org>
2485 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
2486 server name in UNC paths. (Bug#719)
2488 * coding.c (decode_coding): Clear chars_at_source flag when using
2491 2008-12-19 Daniel Engeler <engeler@gmail.com>
2493 * sysdep.c (serial_configure): Fix typo.
2495 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2497 * sysdep.c: Include alloca.h.
2498 (system_process_attributes): Add implementation for Solaris.
2500 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2502 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2504 Reorganize implementation of Flist_system_processes and
2505 Fsystem_process_attributes. No functional changes.
2506 * process.c: Don't #include pwd.h, grp.h and limits.h.
2507 (Flist_system_processes): Just call list_system_processes.
2508 (Fsystem_process_attributes): Just call system_process_attributes.
2509 (procfs_list_system_processes, time_from_jiffies)
2510 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2511 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2513 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2514 (list_system_processes): Rename from
2515 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2516 Provide a do nothing implementation.
2517 (system_process_attributes): Rename from
2518 procfs_list_system_processes.
2519 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2520 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
2522 * w32.c (list_system_processes): Rename from
2523 w32_list_system_processes.
2524 (system_process_attributes): Rename from
2525 w32_system_process_attributes.
2527 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2529 * process.h (w32_list_system_processes)
2530 (w32_system_process_attributes): Remove.
2531 (list_system_processes, system_process_attributes): New
2534 2008-12-19 Kenichi Handa <handa@m17n.org>
2536 * xfont.c (xfont_decode_coding_xlfd): New function.
2537 (xfont_encode_coding_xlfd): New function.
2538 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2539 (xfont_list): Decode and encode XLFD by iso-8859-1.
2540 (xfont_match): Likewise.
2541 (xfont_list_family): Likewise.
2542 (xfont_open): Likewise.
2544 * ftfont.c (ftfont_open): Generate a multibyte string if given
2547 * xftfont.c (xftfont_open): Generate a multibyte string if given
2550 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2552 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2554 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2555 clicked on a detached tool bar button.
2557 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2559 * emacs.c (main): Print and error and exit when no data is read
2562 2008-12-17 Jason Rumney <jasonr@gnu.org>
2564 * w32font.c (w32font_has_char): Always return -1.
2566 2008-12-16 Kenichi Handa <handa@m17n.org>
2568 * font.c (font_open_entity): Fix previous change.
2570 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2572 * process.c: Include <limits.h>.
2574 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
2576 * font.c (font_update_drivers): Fix mistake in reconstructing the
2579 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
2581 * font.c (font_clear_cache): Fix format of font cache data.
2583 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
2585 * xftfont.c (xftfont_open): Free Xft font pattern if
2586 XftFontOpenPattern fails.
2588 * xterm.c (x_free_frame_resources): Remove extraneous call to
2591 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2593 * xterm.c (x_delete_display): Move xim_close_dpy call to
2595 (x_delete_terminal): Call xim_close_dpy.
2597 2008-12-13 Jason Rumney <jasonr@gnu.org>
2599 * w32font.c (intern_font_name): New function.
2600 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2601 (w32font_open_internal, Fx_select_font): Decode font name.
2602 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2604 * w32font.h (intern_font_name): Declare new function.
2606 * w32uniscribe.c (add_opentype_font_name_to_list):
2607 Use intern_font_name.
2609 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2611 * frame.c (Fdelete_frame): Call free_font_driver_list.
2613 * font.c (free_font_driver_list): Implement missing function.
2615 * w32term.c (w32_term_init): Don't initialize the image cache
2616 here; it will be done in init_frame_faces.
2618 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2619 (struct x_display_info): Remove unused member null_pixel. New
2620 member xim_callback_data.
2622 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2623 (xim_initialize): Save pointer to callback function data.
2624 (xim_close_dpy): Free callback function data. Call XCloseIM,
2625 reverting 2008-11-04 change by David Smith.
2626 (x_term_init): Don't initialize the image cache here; it will be
2627 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2628 (x_delete_display): Free x_dnd_atoms member.
2630 2008-12-13 Kenichi Handa <handa@m17n.org>
2632 * font.c (font_rescale_ratio): Moved from xfaces.c.
2633 Argument type changed. Handle a font-spec too.
2634 (font_score): Check Vface_font_rescale_alist.
2635 (font_open_entity): Likewise. (Bug#1547)
2637 * xfaces.c (font_rescale_ratio): Moved to font.c.
2639 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2641 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2643 2008-12-12 Jason Rumney <jasonr@gnu.org>
2645 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2646 Vwindow_system_version to the real w32 major version.
2648 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2650 * term.c (init_tty): Move setting the terminal name before the
2651 potential user: maybe_fatal.
2653 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
2655 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2656 all callers changed. Call free_frame_faces to free the face cache.
2658 2008-12-11 Jason Rumney <jasonr@gnu.org>
2660 * w32font.c (fill_in_logfont): Don't assume symbol script means
2661 SYMBOL_CHARSET. (Bug#547)
2663 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
2664 size for surrogates. (Bug#1096, bug#872)
2666 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2668 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2670 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2672 * process.c (Fsystem_process_attributes, syms_of_process):
2673 Fix typo in name of Ssystem_process_attributes.
2674 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2676 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2678 * syntax.c (Fmodify_syntax_entry): Doc fix.
2680 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2682 * font.c (Ffont_spec): Move usage to end of docstring.
2684 2008-12-10 Jason Rumney <jasonr@gnu.org>
2686 * w32font.c (Qcham): New symbol.
2687 (font_supported_scripts): Add cham, and comments for other new
2688 scripts in bitfield from OpenType spec.
2689 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2690 contain characters beyond the bmp.
2692 2008-12-10 Kenichi Handa <handa@m17n.org>
2694 * ftfont.c (fc_charset_table): Add "unicode-sip".
2695 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
2698 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2700 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2701 (Fcoding_system_put): Use QCdefault_char.
2702 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2704 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
2706 * xftfont.c (syms_of_xftfont): Fix typo.
2708 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
2710 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2712 * emacs.c (main): Close daemon_pipe on exec.
2714 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
2716 * termchar.h (struct tty): New members termcap_term_buffer and
2717 termcap_strings_buffer.
2719 * term.c (encode_terminal_code): Free any previous memory blocks
2720 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
2721 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2722 All callers changed.
2723 (init_tty): Store termcap data and string buffers in new struct
2724 tty members termcap_term_buffer and termcap_strings_buffer.
2725 (delete_tty): Free them.
2726 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
2728 2008-12-07 Seiji Zenitani <zenitani@mac.com>
2730 * nsfns.m (ns_set_background_color): Remove code duplication.
2731 It was a substitute for face-transparency on OS X 10.3.
2733 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
2735 * coding.c (make_conversion_work_buffer): Disable buffer
2736 modification hooks in the work buffer.
2738 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2740 * process.c (procfs_system_process_attributes): If `nread' has a
2741 negative value, assign zero to it.
2743 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
2745 * eval.c (Vdebug_on_error): Doc fix.
2747 2008-12-05 Kenichi Handa <handa@m17n.org>
2749 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2750 second character is a combining character.
2752 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2754 * process.c (procfs_system_process_attributes): Don't use cmd,
2755 cmdsize, and q without initializing them first.
2757 2008-12-04 Jason Rumney <jasonr@gnu.org>
2759 * w32font.c (w32font_draw): Initialize orig_clip before getting
2760 it, and delete it when finished.
2762 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2764 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2765 case when running as a daemon before detaching.
2767 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
2769 * w32.c (init_environment): Don't unload library shell32.dll.
2771 2008-12-03 Kenichi Handa <handa@m17n.org>
2773 * font.c (font_at): Set `multibyte' at first.
2775 * coding.c (decode_coding_charset): Check type of an element of
2777 (encode_coding_emacs_mule): Be sure to set `code'.
2779 * fontset.c (face_for_char): Handle invalid charset property correctly.
2780 (font_for_char): Likewise.
2782 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
2784 * font.c (Fopen_font): Compute pixel size correctly.
2785 (font_update_lface): Handle fonts with corrupted size specs,
2786 i.e. non-int and non-float.
2788 * ftfont.c (ftfont_match): Initialize entity variable.
2789 (ftfont_resolve_generic_family): Avoid using uninitialized var.
2790 (ftfont_list_family): Initialize list var earlier.
2792 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2794 * xterm.c (x_draw_glyph_string): Fall back on
2795 underline_minimum_offset for underline position.
2797 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2799 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2801 * character.c (c_string_width): Specify the type for LEN.
2803 2008-12-03 Kenichi Handa <handa@m17n.org>
2805 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
2806 (decode_coding_utf_8): Likewise.
2807 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
2808 (produce_chars): Initialize consumed_chars to 0.
2810 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2812 * keyboard.c (make_lispy_position): Only use PT if the selected
2815 2008-12-02 Andreas Schwab <schwab@suse.de>
2817 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2819 * doprnt.c (doprnt1): Fix size of charbuf.
2821 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2823 * keyboard.c (timer_check): Revert last change.
2825 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
2827 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2829 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
2831 * makefile.w32-in: Update dependencies.
2832 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2834 2008-12-01 Andreas Schwab <schwab@suse.de>
2836 * font.c (register_font_driver): Use xmalloc.
2837 (font_put_frame_data): Likewise.
2839 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
2841 * xfaces.c (realize_x_face): Make abort condition clearer.
2843 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2845 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
2847 * keyboard.c (timer_check): After a timer runs, ensure that the
2848 selected window's buffer is current.
2850 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
2852 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2853 It was accidentally restored by the Unicode merge.
2855 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2857 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
2859 * w32proc.c: Include "coding.h".
2860 (Fw32_short_file_name): Encode filename passed to Windows API.
2861 (Fw32_long_file_name): Encode filename passed to Windows API and
2862 decode back the result. (Bug#1433)
2864 2008-11-29 Kenichi Handa <handa@m17n.org>
2866 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2867 not before accessing it.
2869 * charset.c (Fdefine_charset_internal): After calculating
2870 min_char, max_char, and fastmap, copy the charset structure again.
2871 (encode_char): Fix the previous change.
2873 2008-11-28 Seiji Zenitani <zenitani@mac.com>
2875 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2877 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2879 * nsterm.m (x_set_frame_alpha): New function.
2881 2008-11-27 Eli Zaretskii <eliz@gnu.org>
2883 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2885 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
2887 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2888 pointer to check_face_name.
2890 2008-11-27 Kenichi Handa <handa@m17n.org>
2892 * category.h (SET_CATEGORY_SET): Call set_category_set.
2893 (set_category_set): Extern it.
2895 * category.c (hash_get_category_set): New function.
2896 (Fmodify_category_entry): Adjusted for the change of
2897 char_table_ref_and_range. Call hash_get_category_set to get a
2898 category set to store in the table.
2900 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2903 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
2904 (DECODE_CHAR): Check if the decoder vector is ready.
2905 (ENCODE_CHAR): Check if the encoder char-table is ready.
2906 (maybe_unify_char): Extern it.
2908 * charset.c (Vchar_unified_charset_table): Delete it.
2909 (inhibit_load_charset_map): New variable.
2910 (temp_charset_work): New variable.
2911 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2912 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2914 (load_charset_map): Meaning of control_flag changed. If
2915 inhibit_load_charset_map is nonzero, setup a table in
2917 (load_charset): New argument control_flag.
2918 (map_charset_for_dump): New function.
2919 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2920 map_charset_for_dump.
2921 (Fdefine_charset_internal): If the charset method is MAP, load
2922 mapping tables by calling load_charset.
2923 (Funify_charset): Don't load a mapping table but directly set
2925 (maybe_unify_char): New function.
2926 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2927 Handle the case of inhibit_load_charset_map being nonzero.
2928 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2929 Handle the case of inhibit_load_charset_map being nonzero.
2930 (Fclear_charset_maps): Just free temp_charset_work.
2931 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2934 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2935 change of char_table_ref_and_range.
2936 (char_table_ref_and_range): Change the meaning of argument FROM
2937 and TO. Now the caller must provide initial values for *FROM
2940 * fontset.c (fontset_add): Adjusted for the change of
2941 char_table_ref_and_range.
2942 (fontset_get_font_group): Likewise.
2943 (Ffontset_info): Likewise.
2945 * keymap.c (describe_vector): Adjusted for the change of
2946 char_table_ref_and_range. For char-table, put boundary between
2947 non-ASCII and 8-bit characters.
2949 * print.c (print_object): For bool-vector, delete unnecessary
2950 check of ASCII_BYTE_P.
2952 2008-11-26 Jason Rumney <jasonr@gnu.org>
2954 * w32font.c (w32font_open_internal): Don't include external
2955 leading in font height. (Bug#879)
2957 2008-11-26 Glenn Morris <rgm@gnu.org>
2959 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2960 redefinition with ifdef. (Bug#1383)
2962 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2964 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2966 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2968 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2969 New EmacsView methods.
2970 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2971 Fixes bug #1048,1357,1414.
2973 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2976 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2977 is not an indexed color.
2978 * nsterm.m (free_indexed_color): Add argument checking.
2979 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2981 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
2983 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2984 Document confirm-after-completion value for
2985 minibuffer-completion-confirm.
2987 2008-11-24 Jason Rumney <jasonr@gnu.org>
2989 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2992 2008-11-23 Jason Rumney <jasonr@gnu.org>
2994 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2995 restored before returning.
2997 * w32font.c (check_face_name): New function.
2998 (add_font_entity_to_list): Use it to filter out common substituted
3001 2008-11-22 Martin Rudalics <rudalics@gmx.at>
3003 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3004 confirm-nonexistent-file-or-buffer in doc-string.
3006 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3008 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3009 Fix copy/paste typo. Add checks.
3011 2008-11-21 Kenichi Handa <handa@m17n.org>
3013 * coding.c (detect_coding_iso_2022): Reject invalid composition
3015 (DECODE_COMPOSITION_START): If the current source is the last
3016 block, and the current composition doesn't end, regard this
3017 sequence as invalid.
3018 (decode_coding_iso_2022): Handle invalid composition sequence.
3020 2008-11-20 Martin Rudalics <rudalics@gmx.at>
3022 * window.c (coordinates_in_window): Don't return
3023 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3024 line when the window is not the rightmost one. (Bug#1372)
3026 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3028 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3030 2008-11-15 Eli Zaretskii <eliz@gnu.org>
3032 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3033 and bright_bg if noninteractive is non-zero.
3035 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3037 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3038 x_draw_glyph_string_background.
3040 * w32term.c (x_draw_glyph_string): Likewise.
3042 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
3044 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3045 the next glyph string once past the overhang width.
3047 * nsterm.m (ns_draw_glyph_string): Likewise.
3049 * w32term.c (x_draw_glyph_string): Likewise.
3051 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3053 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3056 2008-11-14 Martin Rudalics <rudalics@gmx.at>
3058 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3059 dedicated status of window before attempting to display another
3062 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
3064 * msdos.c (Fmsdos_long_file_names):
3065 (syms_of_msdos) <dos-unsupported-char-glyph>:
3066 * dosfns.c (Fint86): Fix typos in docstrings.
3068 2008-11-14 Eli Zaretskii <eliz@gnu.org>
3070 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3072 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3074 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3076 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3078 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3080 * frame.h: Negative alpha means "don't touch".
3082 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3084 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3086 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3090 * acldef.h: Remove files used only for systems no longer supported.
3092 * Makefile.in: Fix .o alphabetical ordering.
3093 (hftctl.o): Remove dependency, file removed.
3094 (keymap.o, print.o): Depend on charset.h.
3096 2008-11-10 Kenichi Handa <handa@m17n.org>
3098 * character.c (Fget_byte): Fix and make it faster for unibyte target.
3100 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
3102 * dired.c (file_name_completion): If completion_ignore_case is
3103 enabled, ignore case when checking completion-regexp-list.
3105 2008-11-08 Eli Zaretskii <eliz@gnu.org>
3107 * vm-limit.c (get_lim_data): Fix last change.
3109 2008-11-08 Kenichi Handa <handa@m17n.org>
3111 * character.c (Fget_byte): New function.
3112 (syms_of_character): Defsubr Fget_byte.
3114 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
3116 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3117 cursor position is valid after scrolling.
3119 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
3121 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3123 2008-11-06 Glenn Morris <rgm@gnu.org>
3125 * xterm.c (handle_one_xevent): Don't let popup menus cause
3126 mouse-autoselect-window related window switching. (Bug#1261)
3128 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3130 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3132 2008-11-04 Andreas Schwab <schwab@suse.de>
3134 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3136 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
3138 * xfns.c (Fx_wm_set_size_hint): New function.
3140 2008-11-03 Martin Rudalics <rudalics@gmx.at>
3142 * textprop.c (Fprevious_single_char_property_change): Return 0
3143 when there's no change in a string. (Bug#1301)
3145 2008-11-02 Martin Rudalics <rudalics@gmx.at>
3147 * frame.c (do_switch_frame): New argument NORECORD passed to
3149 (Fselect_frame): New argument NORECORD passed to
3151 (Fset_frame_selected_window): New argument NORECORD passed to
3153 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3154 in call of do_switch_frame.
3155 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3156 Handle NORECORD argument in call of Fselect_frame.
3157 * lisp.h (do_switch_frame, Fselect_frame)
3158 (Fset_frame_selected_window): Adjust declarations.
3159 * window.c (select_frame_norecord): New function.
3160 (run_window_configuration_change_hook): Use it and call
3161 Fselect_frame with NORECORD set.
3162 (Fselect_window): Pass NORECORD to Fselect_frame.
3163 (Fset_window_configuration): Handle NORECORD argument in call of
3165 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3166 Fset_frame_selected_window.
3167 * keyboard.c (command_loop_1): Handle NORECORD in call of
3168 Fselect_frame (currently ifdefd).
3170 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3172 * emacs.c (USAGE2): Untabify.
3174 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3176 * composite.c (fill_gstring_header): Fix copy/paste typo.
3178 2008-10-31 Martin Rudalics <rudalics@gmx.at>
3180 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3181 (Fother_window): Rename argument and rewrite doc-string.
3182 (select_window_norecord): Fix return value. (Bug#1276)
3184 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
3186 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3187 new frames overriding foreground for tooltips. Based on similar patch
3188 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3190 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
3192 * emacs.c (Fdaemon_initialized): Initialize nfd.
3194 2008-10-29 Martin Rudalics <rudalics@gmx.at>
3196 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3197 (Fwindow_text_height): Clarify doc-strings.
3198 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3199 doc-string of window-scroll-functions.
3201 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3203 * category.c (syms_of_category): Fix typo in docstring.
3205 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
3207 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3208 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3209 Fix typos in docstrings.
3211 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3213 * emacs.c (daemon_pipe): Make non-static.
3214 (IS_DAEMON): Move definition ...
3215 * lisp.h (IS_DAEMON): ... here.
3216 (daemon_pipe): Declare.
3217 (is_daemon): Remove.
3218 * dispnew.c (init_display): Use IS_DAEMON.
3220 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3222 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3223 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3225 * emacs.c (is_daemon): Remove.
3226 (main): Don't set is_daemon.
3227 (IS_DAEMON): New macro.
3228 (Fdaemonp, Fdaemon_initialized): Use it.
3229 (Fdaemon_initialized): Write a char into the pipe to make sure the
3231 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3233 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
3235 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3236 over-sized glyph, draw it with the default glyph width.
3238 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3239 glyph, draw it with the default glyph width.
3241 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3242 glyph, draw it with the default glyph width.
3244 * xdisp.c (try_scrolling): When computing the distance from the
3245 scroll margin to PT, try moving some distance past the window
3246 bottom before giving up.
3248 2008-10-27 Martin Rudalics <rudalics@gmx.at>
3250 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3251 (Fset_window_buffer): Explain in doc-string that a window can be
3252 "strongly" dedicated to its buffer.
3254 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3256 * emacs.c (daemon_name): New variable.
3257 (main): Deal with --daemon=SERVER_NAME.
3258 (Fdaemonp): Return a name if one was passed to --daemon.
3260 2008-10-26 Romain Francoise <romain@orebokech.com>
3262 * emacs.c (daemon_pipe): New variable.
3263 (main): Create a pipe before forking, make the parent exit only after
3264 the child has closed its end of the pipe. Move closing the
3266 (Fdaemon_initialized): ... here. New function.
3268 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3270 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3271 the previous unoptimized table.
3273 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3274 the distinction between non-nil and non-t value of `dedicated'.
3276 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
3278 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
3279 read_char_minibuf_menu_text is large enough to hold the menu string.
3281 2008-10-25 Martin Rudalics <rudalics@gmx.at>
3283 * window.c (Fget_buffer_window, Fdelete_windows_on)
3284 (Freplace_buffer_in_windows): Make buffer argument optional and
3285 rename to buffer_or_name.
3287 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
3289 * xdisp.c (handle_single_display_spec, handle_display_prop):
3290 Undo 2005-05-16 change.
3291 (handle_stop): Pop iterator if it's loaded with an empty string.
3292 (get_overlay_strings_1): Don't save iterator if it's loaded with
3293 an empty string (bug#1201).
3295 2008-10-24 Kenichi Handa <handa@m17n.org>
3297 * ftfont.c (ftfont_otf_features): Fix previous change.
3298 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3299 calling ftfont_otf_features.
3301 2008-10-24 Kenichi Handa <handa@m17n.org>
3303 * font.c (font_match_p): Fix for the case that a vector of
3304 characters is in script-representative-chars.
3306 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
3308 * dbusbind.c (xd_in_read_queued_messages): New variable.
3309 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
3310 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3311 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3314 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
3316 * s/sol2-10.h: New file.
3318 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3320 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3321 poor beast has survived 9+ years and the jump from xterm.c!).
3323 2008-10-23 Martin Rudalics <rudalics@gmx.at>
3325 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3327 (Fbury_buffer): In doc-string say what happens to the buffer's window.
3329 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3331 * character.c (syms_of_character) <script-representative-chars>:
3332 <unicode-category-table>: Doc fixes.
3334 2008-10-23 Noah Friedman <friedman@splode.com>
3336 * coding.c (make_conversion_work_buffer): Check that
3337 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3340 2008-10-23 Kenichi Handa <handa@m17n.org>
3342 * font.c (font_add_log): Check the values of extra properties.
3344 2008-10-22 Martin Rudalics <rudalics@gmx.at>
3346 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3348 (Fset_window_parameter): Use NILP.
3349 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
3350 (Frecenter): Use "selected" instead of "current" window in doc-strings.
3352 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3354 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3356 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3358 * nsfns.m (ns_appkit_version): New function.
3359 (x-server-version): Use it.
3360 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3361 (x-server-vendor): Don't check_ns().
3363 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3365 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3367 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3368 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3370 2008-10-22 Kenichi Handa <handa@m17n.org>
3372 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3375 * category.c (word_boundary_p): Check scripts instead of charset.
3376 Handle nil value in word-separating-categories and
3377 word-combining-categories.
3378 (syms_of_category): Fix docstrings of word-separating-categories
3379 and word-combining-categories.
3381 2008-10-21 Eli Zaretskii <eliz@gnu.org>
3383 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3384 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3386 2008-10-21 Martin Rudalics <rudalics@gmx.at>
3388 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3389 Rename arg "buffer" to "buffer_or_name".
3390 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3392 (no_switch_window): Remove since the return value is not used.
3393 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
3394 Consider window as dedicated when Fwindow_dedicated_p returns a
3396 * lisp.h: Remove prototype for no_switch_window.
3398 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3400 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
3401 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
3403 2008-10-21 Kenichi Handa <handa@m17n.org>
3405 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3406 check Vlatin_extra_code_table.
3408 2008-10-20 Eli Zaretskii <eliz@gnu.org>
3410 * fileio.c (Fset_file_modes): Doc fix.
3412 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
3414 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3417 2008-10-19 Martin Rudalics <rudalics@gmx.at>
3419 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3420 Mention kill-buffer in doc-string.
3421 (Fset_window_buffer): Reinsert tem check removed in last commit.
3422 (Fenlarge_window, Fshrink_window): Have argument names and
3423 doc-string follow Elisp manual more closely.
3425 2008-10-18 Eli Zaretskii <eliz@gnu.org>
3427 * fileio.c (Fset_file_modes): Doc fix.
3429 2008-10-18 Martin Rudalics <rudalics@gmx.at>
3431 * window.c (Fwindow_width, Fset_window_start)
3432 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
3433 (Fdelete_windows_on, Freplace_buffer_in_windows):
3434 Make doc-strings follow code and Elisp manual more closely.
3435 (Fwindow_dedicated_p): Make window argument optional.
3436 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3437 (Fset_window_buffer): Respect any non-nil dedicated value for
3438 window. Rename "buffer" argument to "buffer_or_name".
3440 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
3442 * m/sh3.h: New file, machine description for SuperH.
3444 2008-10-17 Martin Rudalics <rudalics@gmx.at>
3446 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3448 2008-10-17 Kenichi Handa <handa@m17n.org>
3450 * ftfont.c (ftfont_otf_features): Fix indexing
3451 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3453 2008-10-16 Magnus Henoch <mange@freemail.hu>
3455 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3456 (Fdbus_call_method_asynchronously): Ditto.
3457 This change makes C-h f display the argument list.
3459 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
3461 * fileio.c (Fexpand_file_name): Doc fix.
3463 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3464 of :foreground and :background equivalent to unspecified (20.x
3467 2008-10-15 Eli Zaretskii <eliz@gnu.org>
3469 * buffer.c (syms_of_buffer): Doc fix.
3471 2008-10-14 Kenichi Handa <handa@m17n.org>
3473 * font.c (font_clear_prop): When clearing font width, clear the
3474 average width field too.
3476 2008-10-12 Andreas Schwab <schwab@suse.de>
3478 * ftfont.c (ftfont_shape_by_flt): Make static.
3479 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3481 * font.c: Don't include <m17n-flt.h>.
3483 2008-10-10 Eli Zaretskii <eliz@gnu.org>
3485 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3487 2008-10-09 Eli Zaretskii <eliz@gnu.org>
3489 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3492 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
3494 * dispnew.c (update_text_area): Avoid looping due to large glyph
3495 overhangs (bug#1070).
3497 2008-10-09 Kenichi Handa <handa@m17n.org>
3499 * fontset.c (face_for_char): If face->fontset is negative, just
3502 * font.c (font_delete_unmatched): Fix previous change.
3503 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
3505 2008-10-09 Martin Rudalics <rudalics@gmx.at>
3507 * frame.c (Fraise_frame): On text-only terminals select frame in
3508 order to make it visible. (Bug#1061)
3510 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
3512 * fontset.c (fontset_find_font): Check frame validity.
3514 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
3516 * gtkutil.c (xg_display_open): Reset default display if none exists.
3517 (xg_display_close): Allow Emacs to close all displays (bug#985).
3519 2008-10-06 Andreas Schwab <schwab@suse.de>
3521 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
3523 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
3525 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
3527 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
3529 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3530 during initialization.
3532 2008-10-04 Eli Zaretskii <eliz@gnu.org>
3534 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3535 whole thing on MSDOS frames as well as on a TTY.
3537 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3539 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3542 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3545 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3547 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3548 MSDOS frames as well.
3550 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3552 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3554 * menu.c (find_and_return_menu_selection): Add cast.
3556 2008-10-03 Glenn Morris <rgm@gnu.org>
3558 * emacs.c (USAGE1): Add --daemon.
3560 2008-10-02 Eli Zaretskii <eliz@gnu.org>
3562 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3563 100, so it's in percents as advertised.
3565 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3567 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3568 (ns_output.current_cursor, ns_output.desired_cursor)
3569 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3570 (FRAME_NEW_CURSOR_COLOR): Remove.
3572 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
3573 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
3574 enumeration (HOLLOW_BOX_CURSOR, etc.).
3576 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3577 (draw_window_cursor): Simplify code.
3578 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3579 Don't change cursor type. In latter, call rehighlight instead of doing
3581 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3582 Use core Emacs cursor types.
3584 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
3586 2008-10-02 Martin Rudalics <rudalics@gmx.at>
3588 * process.c (Faccept_process_output): Fix doc-string.
3590 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3592 * gmalloc.c (__sbrk): Also define for uClibc.
3594 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3597 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3599 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3601 (nsfont_open): Reenable the cache.
3603 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3605 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3606 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3608 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3610 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3611 a suspended terminal.
3613 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
3615 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3617 2008-09-30 Eli Zaretskii <eliz@gnu.org>
3619 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3621 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
3623 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3624 in a continued line coincides with a line beginning.
3626 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3628 * nsfont.m (nsfont_trait_distance): Fix bug.
3629 (nsfont_list): Return a list rather than a vector (syncs with Handa
3630 changes of 2008-05-14).
3631 (nsfont_open): Improve logging.
3633 2008-09-29 Andreas Schwab <schwab@suse.de>
3635 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3637 2008-09-28 Martin Rudalics <rudalics@gmx.at>
3639 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3640 name as char-resolve-modifiers.
3641 Reported by: Markus Triska <markus.triska@gmx.at>
3643 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3645 * dispnew.c (init_display): Return earlier when running as a daemon.
3647 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3649 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3651 2008-09-27 Eli Zaretskii <eliz@gnu.org>
3653 * composite.c (Fcomposition_get_gstring)
3654 (Fcompose_region_internal, Fcompose_string_internal)
3655 (Ffind_composition_internal): Doc fix.
3656 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3657 (syms_of_composite) <auto-composition-function>: Doc fix.
3658 (syms_of_composite) <composition-function-table>: Doc fix.
3660 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
3662 * search.c (wordify): New argument for lax word-ends.
3663 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3665 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3667 * lisp.h (is_daemon): Declare.
3668 * dispnew.c (init_display): Do not try to initialize the terminal
3669 when running as a daemon.
3671 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
3673 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3674 x_display_pixel_height.
3676 2008-09-22 Martin Rudalics <rudalics@gmx.at>
3678 * undo.c (record_point): Don't call Fundo_boundary for first
3681 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
3683 * emacs.c (Fdaemonp): Doc fix.
3685 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3687 * emacs.c (main): Place #ifdef in the proper place.
3689 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3691 * emacs.c (standard_args): Add --daemon.
3692 (main): Disconnect from the terminal when --daemon is passed.
3693 (is_daemon): New variable.
3694 (Fdaemonp): New function.
3695 (syms_of_emacs): Defsubr it.
3697 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
3699 * xdisp.c (get_next_display_element): Handle string display
3700 correctly when checking for the end of a box run.
3702 2008-09-20 Glenn Morris <rgm@gnu.org>
3704 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3705 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3706 (Frename_file): Avoid copying to trash if a rename involves
3707 a delete. (Bug#964).
3709 2008-09-20 Eli Zaretskii <eliz@gnu.org>
3711 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3712 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3713 frames as well as termcap frames.
3714 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3717 2008-09-19 Eli Zaretskii <eliz@gnu.org>
3719 * process.c (procfs_system_process_attributes): Fix cmdline in
3720 case /proc/PID/cmdline is empty.
3722 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3723 x_display_pixel_height.
3725 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
3727 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3729 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3730 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3732 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3734 * dispextern.h (struct it): Move line_wrap away from the middle of
3735 bitfields. Move voffset in struct iterator_stack_entry after the
3736 bitfields. Move tab_width near after another short.
3738 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3740 * frame.h (struct frame): Move alpha from the middle of bitfields.
3742 * window.h (struct window): Move frozen_window_start_p after the
3743 rest of the bitfields to reduce padding.
3745 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
3747 * xterm.h (x_display_info): Remove `height' and `width' members.
3749 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3751 * w32term.h (w32_display_info): Remove `height', `width',
3752 `height_in', and `width_in' members.
3754 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3756 (x_calc_absolute_position): Use them.
3757 (x_term_init): Omit removed `height' and `width' members.
3759 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3761 (w32_read_socket, x_calc_absolute_position): Use them.
3762 (w32_initialize_display_info, w32_term_init): Omit removed members
3763 of w32_display_info.
3765 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3767 (ns_initialize_display_info): Omit removed members of ns_display_info.
3769 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3771 (x_calc_absolute_position): Use them.
3772 (x_term_init): Omit removed `height' and `width' members.
3774 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3776 * frame.c (x_fullscreen_adjust):
3777 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3778 x_display_pixel_width.
3780 2008-09-18 Kenichi Handa <handa@m17n.org>
3782 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3783 (composition_compute_stop_pos): Fix handling of static composition.
3784 (Fcomposition_get_gstring): Check FROM and TO at first.
3786 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3788 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
3791 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
3793 * indent.c (Fvertical_motion): Use position reported by iterator
3794 instead of PT for determining screen motion (bug#943).
3796 2008-09-17 Romain Francoise <romain@orebokech.com>
3798 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3800 2008-09-17 Kenichi Handa <handa@m17n.org>
3802 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3804 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3807 2008-09-16 Kenichi Handa <handa@m17n.org>
3809 * coding.c (make_conversion_work_buffer): Avoid calling
3810 Fget_buffer_create if it is not necessary.
3812 2008-09-15 Martin Rudalics <rudalics@gmx.at>
3814 * window.c (Fselect_window): Don't update window_select_count and
3815 use_time when norecord is not nil.
3817 2008-09-14 Kenichi Handa <handa@m17n.org>
3819 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3822 2008-09-12 Kenichi Handa <handa@m17n.org>
3824 * indent.c (scan_for_column): Don't handle automatic composition
3825 if the current buffer is not associated with a window.
3827 * composite.c (composition_reseat_it): If the current buffer is
3828 not associated with a window, ignore the automatic composition.
3829 (find_automatic_composition): Likewise.
3831 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3833 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3834 (Fgpm_mouse_stop): Use it.
3835 * termhooks.h (close_gpm): Declare.
3836 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3837 connection if Gpm_GetEvent fails.
3839 * window.c (set_window_buffer): Always preserve current-buffer.
3841 2008-09-12 Glenn Morris <rgm@gnu.org>
3843 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3845 2008-09-11 Glenn Morris <rgm@gnu.org>
3847 * charset.c (charset-map-path): Doc fix.
3849 2008-09-10 Kenichi Handa <handa@m17n.org>
3851 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3853 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3854 compose a grapheme cluster with the preceding base glyph.
3856 * composite.c (composition_compute_stop_pos): Fix previous change.
3857 Reset cmp_it->id to -1 at first.
3859 2008-09-10 Glenn Morris <rgm@gnu.org>
3861 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3863 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
3865 * keyboard.c (read_key_sequence): Reapply translation maps when
3866 switching keyboards.
3868 2008-09-09 Kenichi Handa <handa@m17n.org>
3870 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3873 * composite.c (FORWARD_CHAR): Fix calculation
3874 of (POSITION).pos_byte.
3875 (composition_compute_stop_pos): Limit the search of composition to
3876 at most 500 characters ahead. If we reach the limit or find a
3877 newline, set cmp_it->ch to -2 and return 0.
3878 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3880 2008-09-08 Kenichi Handa <handa@m17n.org>
3882 * indent.c (Fvertical_motion): Be sure to set
3883 it_overshoot_expected if it.cmp_it.id is non-negative.
3885 2008-09-07 Andreas Schwab <schwab@suse.de>
3887 * callproc.c (Fcall_process): Don't hold references to string data
3888 across garbage collection. Move initialisation of new_argv down
3889 to avoid compiler bug.
3891 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3893 * process.c (Fsystem_process_attributes): Doc fix.
3895 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
3897 * callproc.c (Fcall_process): Canonicalize current directory name.
3899 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3900 iterator advances to the next line if the current line ends in a
3903 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3905 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3906 member to point to cmp_from.
3908 * xdisp.c: Doc fix for references to gidx data member.
3910 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3912 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3914 2008-09-07 Kenichi Handa <handa@m17n.org>
3916 * composite.c (FORWARD_CHAR): Check STOP after
3917 incrementing (POSITION).pos.
3919 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3921 * process.c (Fsystem_process_attributes): Doc fix.
3923 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
3925 * keyboard.c (Ftop_level): Doc fix.
3927 2008-09-06 Eli Zaretskii <eliz@gnu.org>
3929 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3930 minibuffer, don't let lower part of menu invade the echo area.
3932 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3933 "char *q" to access menu text and advance through it. Revert the
3934 change that displayed ">" instead of ASCII character 0x10.
3936 2008-09-05 Eli Zaretskii <eliz@gnu.org>
3938 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3939 toggle boxes and radio buttons on MS-DOS as well.
3941 2008-09-05 Kenichi Handa <handa@m17n.org>
3943 * composite.c (autocmp_chars): Check lookback count.
3944 (composition_compute_stop_pos): Set cmp_it->lookback.
3945 (composition_reseat_it): Check lookback count.
3946 (struct position_record): New struct.
3947 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3948 (find_automatic_composition): New function.
3949 (composition_adjust_point): Use find_automatic_composition.
3951 * dispextern.h (struct composition_it): New member lookback.
3953 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
3955 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3956 if moving by a single line.
3958 2008-09-02 Andreas Schwab <schwab@suse.de>
3960 * xterm.c (x_delete_display): Fix merge error.
3962 * fileio.c (Fexpand_file_name): Remove unused variables.
3964 2008-09-02 Eli Zaretskii <eliz@gnu.org>
3966 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3967 storage on all platforms, not just on DOS_NT.
3969 2008-09-02 Jason Rumney <jasonr@gnu.org>
3971 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3972 Ensure mouse is not grabbed after menu is finished.
3974 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
3976 * xfaces.c (Finternal_set_alternative_font_family_alist)
3977 (Finternal_set_alternative_font_registry_alist): Properly copy
3978 entire alist structure.
3980 2008-09-01 Kenichi Handa <handa@m17n.org>
3982 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
3983 representative chars of the script is a vector.
3984 (ftfont_list): Handle the case where the representative chars of
3985 the script is a vector.
3987 * character.c (syms_of_character): Docstring of
3988 script-representative-chars fixed.
3990 2008-08-31 Eli Zaretskii <eliz@gnu.org>
3992 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3993 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3994 the menu. Allocate larger buffer for `text', to account for
3995 possible ^C characters.
3997 2008-08-31 Martin Rudalics <rudalics@gmx.at>
3999 * xdisp.c (prepare_menu_bars): Don't call
4000 Vwindow_size_change_functions with arg Qt.
4002 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4004 * font.h (font_range):
4005 * fileio.c (report_file_error):
4006 * composite.c (composition_update_it): Yet another int/Lisp_Object
4009 2008-08-30 Glenn Morris <rgm@gnu.org>
4011 * data.c (Fmake_variable_frame_local): Doc fix.
4013 * frame.c (Fmodify_frame_parameters): Doc fix.
4015 2008-08-30 Eli Zaretskii <eliz@gnu.org>
4017 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4018 needed by GetTokenInformation.
4019 (w32_system_process_attributes): Check return values of all system
4022 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4023 only when the state changes.
4024 (IT_update_begin, IT_update_end): Add termscript trace.
4026 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4027 clipboard is unavailable. Set dst to NULL if it doesn't point to
4029 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4030 passing random values to xfree.
4032 * dispnew.c (init_display): Set `tty's association in frame's
4033 parameters alist to the name of the terminal device, if that is known.
4035 2008-08-29 Jason Rumney <jasonr@gnu.org>
4037 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4039 2008-08-29 Eli Zaretskii <eliz@gnu.org>
4041 * composite.c (fill_gstring_body): Avoid compiler warnings.
4043 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4044 LGLYPH_SET_CODE to avoid compiler warnings.
4046 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
4048 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4050 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4053 2008-08-29 Kenichi Handa <handa@m17n.org>
4055 * fileio.c (report_file_error): Don't downcase the first character
4056 of errstring if it is still unibyte.
4058 2008-08-29 Kenichi Handa <handa@m17n.org>
4060 These changes are to re-implement the automatic composition so
4061 that it doesn't use text properties.
4063 * Makefile.in (ftfont.o): Depend on composite.h.
4064 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4066 * character.h (Vunicode_category_table): Extern it.
4068 * character.c (Vunicode_category_table): New variable.
4069 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4071 * chartab.c (optimize_sub_char_table): Perform more greedy
4074 * composite.h (enum composition_method):
4075 Delete COMPOSITION_WITH_GLYPH_STRING.
4076 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4077 (Vcomposition_function_table): Extern it.
4078 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4079 (composition_gstring_put_cache, composition_gstring_from_id)
4080 (composition_gstring_p, composition_gstring_width)
4081 (composition_compute_stop_pos, composition_reseat_it)
4082 (composition_update_it, composition_adjust_point): Extern them.
4083 (Fcomposition_get_gstring): EXFUN it.
4085 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
4086 (Vcomposition_function_table)
4087 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
4088 (gstring_hash_table, gstring_work, gstring_work_headers):
4090 (gstring_lookup_cache, composition_gstring_put_cache)
4091 (composition_gstring_from_id, composition_gstring_p)
4092 (composition_gstring_width, fill_gstring_header)
4093 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4094 (composition_reseat_it, composition_update_it)
4095 (composition_adjust_point, Fcomposition_get_gstring): New functions.
4096 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4097 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4098 Defsubr compostion_get_gstring.
4100 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4102 (struct glyph_string): Delete the member gidx. New members
4103 cmp_id, cmp_from, and cmp_to.
4104 (enum it_method): Delete GET_FROM_COMPOSITION.
4105 (struct composition_it): New struct.
4106 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4107 Delete c, len, cmp_id, cmp_len in u.comp.
4109 * font.h (enum lgstring_indices): Delete it.
4110 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
4111 (enum lglyph_indices): Likewise.
4112 (font_range): Adjust extern.
4113 (font_fill_lglyph_metrics): Extern it.
4115 * font.c (QCf): New variable.
4116 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4117 (font_prepare_composition): Delete this function.
4118 (font_range): Type and arguments changed.
4119 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4120 (font_fill_lglyph_metrics): New function.
4121 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
4122 (syms_of_font): DEFSYM QCf. Delete defsubr for
4123 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4124 Defsubr Sfont_shape_gstring.
4126 * fontset.h (font_for_char): Extern it.
4128 * fontset.c (font_for_char): New function.
4130 * ftfont.c: Include composite.h.
4131 (ftfont_resolve_generic_family): Add langset "en" to pattern.
4132 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4134 * indent.c: Include composite.h and dispextern.h.
4135 (check_composition): Delete this function.
4136 (scan_for_column): Handle composition by
4137 composition_compute_stop_pos, composition_reseat_it, and
4138 composition_update_it.
4139 (compute_motion): Likewise.
4140 (Fvertical_motion): Fix checking of composition.
4142 * keyboard.c (adjust_point_for_property): Check composition by
4143 composition_adjust_point.
4145 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
4146 struct glyph_string.
4148 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4149 (append_composite_glyph): Adjust for the change of struct it and
4151 (produce_composite_glyph): Likewise.
4153 * w32term.c (x_draw_composite_glyph_string_foreground):
4154 Adjust for the change of struct glyph_string.
4155 (x_draw_glyph_string): Likewise.
4157 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4158 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4160 * xdisp.c: Include font.h.
4161 (it_props): Delete the entry for Qauto_composed.
4162 (init_iterator): Initialize it->cmp_it.id to -1.
4163 (compute_stop_pos): Call composition_compute_stop_pos.
4164 (face_before_or_after_it_pos): Adjust for the change of struct it.
4165 (handle_auto_composed_prop): Delete it.
4166 (handle_composition_prop): Handle only static composition.
4167 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4168 from xassert. Initialize it->cmp_it.stop_pos.
4169 (push_it): Adjust for the change of struct it.
4171 (get_next_element): Delete next_element_from_composition.
4172 (CHAR_COMPOSED_P): New macro.
4173 (get_next_display_element): For automatic composition, get a face
4174 from the font in the glyph-string.
4175 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
4176 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
4177 (next_element_from_string): Check if the character at the current
4178 position is composed by CHAR_COMPOSED_P.
4179 (next_element_from_buffer): Likewise.
4180 (next_element_from_composition): Adjust for the change of struct it.
4182 (dump_glyph): Adjust for the change of struct glyph.
4183 (fill_composite_glyph_string): Adjust for the change of struct
4184 it and struct glyph. Don't handle automatic composition here.
4185 (fill_gstring_glyph_string): New function.
4186 (x_get_glyph_overhangs): Handle automatic composition.
4187 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
4188 (BUILD_GSTRING_GLYPH_STRING): New macro.
4189 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4190 automatic composition.
4191 (append_composite_glyph): Adjust for the change of struct it and
4193 (x_produce_glyphs): Adjust for the change of struct it.
4195 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4196 the change of struct glyph_string.
4197 (x_draw_glyph_string): Likewise.
4199 2008-08-29 Glenn Morris <rgm@gnu.org>
4201 * buffer.c (word-wrap): Doc fix.
4202 * xdisp.c (truncate-partial-width-windows): Doc fix.
4203 Increase default to 50.
4205 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
4207 * xdisp.c (update_tool_bar_unwind): New function.
4208 (update_tool_bar): Temporarily set selected frame before building
4211 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
4213 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4214 snprintf, respectively.
4215 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4217 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
4219 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4220 LDFLAGS to GNUstep CC invocation.
4222 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
4224 * indent.c (Fvertical_motion): Revert last change. Handle the
4225 general case where we are moving forward, and PT spans multiple
4228 * eval.c (find_handler_clause): Temporarily increase
4229 max-lisp-eval-depth while printing the backtrace buffer, to
4230 guarantee that help-mode code can run.
4232 2008-08-27 Eli Zaretskii <eliz@gnu.org>
4234 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4236 (IT_set_frame_parameters): Don't swap foreground and background
4237 colors if `(reverse . t)' is present in the frame properties.
4238 (internal_terminal_init): Call init_frame_faces only for the
4241 2008-08-27 Andreas Schwab <schwab@suse.de>
4243 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4245 2008-08-27 Andreas Schwab <schwab@suse.de>
4247 * search.c (search_buffer): Set char_base to zero only at the end.
4249 2008-08-27 Kenichi Handa <handa@m17n.org>
4251 * fileio.c (report_file_error): Fix handling of multibyte error string.
4253 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4255 * xterm.c (x_term_init): Temporarily hide the partially
4256 initialized terminal while calling vendor-specific-keysyms.
4258 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4260 * msdos.c (internal_terminal_init): Most initializations done only
4261 once, especially initial_screen_colors[] and termscript open.
4263 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4265 * eval.c (Fcondition_case): Doc fix.
4267 * widgetprv.h (EmacsFramePart): Change font member to the new font
4270 * widget.c: Include character.h and font.h for XSETFONT.
4271 (setup_frame_gcs): Compute X font id from font struct, just once.
4273 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4275 * term.c (get_named_tty): Fix last change.
4277 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4279 * indent.c (Fvertical_motion): If moving forward starting from a
4280 multi-line string, move the iterator to the last line of that string.
4282 2008-08-25 Eli Zaretskii <eliz@gnu.org>
4284 * frame.c (do_switch_frame): Mark previously displayed frame as
4285 obscured for FRAME_MSDOS_P frames as well.
4287 2008-08-24 Eli Zaretskii <eliz@gnu.org>
4289 * frame.c (make_terminal_frame): Initialize f->terminal,
4290 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4291 Set the top frame to newly created frame.
4292 (Fmake_terminal_frame): Reuse the_only_display_info.
4294 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4295 estimating available memory.
4297 2008-08-23 David Reitter <david.reitter@gmail.com>
4299 * nsterm.m (ns_draw_window_cursor): Don't call
4300 NSDisableScreenUpdates and NSEnableScreenUpdates on
4301 non-NS_IMPL_COCOA systems.
4303 2008-08-23 Andreas Schwab <schwab@suse.de>
4305 * process.c (procfs_system_process_attributes): Fix use of
4306 uninitialized variables.
4308 2008-08-23 Eli Zaretskii <eliz@gnu.org>
4310 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4312 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4313 calling tty-set-up-initial-frame-faces.
4315 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4316 Allow MSDOS frames along with X frames.
4318 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4319 addition to output_termcap.
4321 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4323 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4324 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4327 * process.c [!subprocesses]: Define QCname.
4328 (syms_of_process): Intern and staticpro it.
4330 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4331 Adjust for changes in encoding/decoding routines.
4332 Use encode_coding_object and decode_coding_object instead of
4333 encode_coding and decode_coding.
4335 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
4337 * dosfns.c: Include frame.h before termhooks.h.
4338 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4339 variable termscript.
4341 * s/msdos.h (USER_FULL_NAME): Define.
4342 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4344 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4345 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4348 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4349 SELECTED_FRAME as additional (1st) argument.
4350 (tty_read_avail_input): Handle output_msdos_raw in
4351 addition to output_termcap.
4353 * msdos.c: Include frame.h before termhooks.h.
4354 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4355 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4356 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4357 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4358 (IT_set_terminal_modes, IT_reset_terminal_modes)
4359 (IT_set_frame_parameters): Use tty->termscript instead of a global
4360 variable termscript.
4361 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4362 global variable terminal_coding. Don't refer to
4363 Vnonascii_translation_table.
4364 (internal_terminal_init): Set Vwindow_system in current_kboard.
4365 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4366 Announce date and time of session start, if termscript is open.
4367 Don't zero out the_only_display_info (it is done in
4368 term.c:init_tty). Open termscript only of not already open.
4369 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
4370 here instead of dos_ttraw. Don't initialize display if this is an
4371 initial tty. Don't set FRAME_FONT.
4372 (Vwindow_system_version): Bump to 23.
4373 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4374 is available, set up mouse_position_hook.
4375 (dos_ttraw, IT_set_terminal_modes): If called with initial
4376 terminal, do nothing.
4377 (IT_set_frame_parameters): Handle the Qtty_type frame
4378 parameter by calling internal_terminal_init.
4379 (dos_set_window_size, show_mouse_face)
4380 (clear_mouse_face, IT_note_mode_line_highlight)
4381 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4382 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4383 (initialize_msdos_display): New function.
4384 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4385 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4386 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4387 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
4388 Accept additional argument: a pointer to a frame. Update all callers.
4389 (request_sigio, unrequest_sigio): Don't define, now defined on
4391 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4393 * term.c [MSDOS]: Include msdos.h.
4394 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4395 conditional to DOS_NT. Allow only one call to this function in a
4396 session. Don't allocate a new struct tty_display_info; instead,
4397 reuse the_only_display_info. Call get_tty_size to get screen
4398 dimensions. Call init_baud_rate to set bad_rate.
4399 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4400 (Fsuspend_tty) [MSDOS]: Don't close input and output.
4401 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
4402 (get_tty_terminal, get_named_tty, Ftty_type)
4403 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4405 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4406 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
4407 only when subprocesses are supported.
4409 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4411 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4414 * msdos.h: Remove definition of struct x_display_info and struct
4416 (FRAME_FONT): Use output_data.tty.
4417 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
4418 (struct x_display_info): Rename from display_info. Update all users in
4420 (struct x_output): Remove background_pixel and foreground_pixel.
4421 (the_only_display_info): Rename from the_only_x_display.
4422 (dos_ttraw): Update prototype.
4424 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4425 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4427 2008-08-23 Jason Rumney <jasonr@gnu.org>
4429 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4430 (fn_TIFFSetDirectory): New library function used.
4431 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4432 (tiff_load): Use :index to select among multiple images. Set count
4433 property when multiple images exist.
4434 (gif_format): Use :index, not :image.
4436 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
4438 * xdisp.c (try_scrolling): Check INT_MAX instead of
4439 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4442 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4444 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4446 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4448 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4449 GNUstep library location.
4451 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
4453 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4456 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4458 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4460 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4461 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4462 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4463 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4464 (EmacsApp-cursor_blink_handler): Remove declaration.
4465 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4466 match 01 Feb 2008 changes in xterm.c.
4467 (ns_read_socket): Add cast to avoid warning.
4468 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4471 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
4473 * xselect.c (x_get_foreign_selection): Return nil if desired
4474 selection could not be obtained, instead of signalling an error.
4476 2008-08-20 David Reitter <david.reitter@gmail.com>
4478 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4479 * nsterm.m: Remove ns-specific code for cursor blinking.
4480 (ns_draw_window_cursor): Clear cursor properly rather than
4481 redrawing the area. Respect width of bar cursors.
4482 These changes enable the use of generic blink-cursor-mode and
4483 generic cursor types in NS and support smooth cursor movements (do
4484 not blink off after command).
4485 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4488 2008-08-19 Kenichi Handa <handa@m17n.org>
4490 * font.c (Vfont_log_deferred): New variable.
4491 (font_add_log): Check Vfont_log_deferred.
4492 (font_deferred_log): New function.
4494 * font.h (font_deferred_log): Extern it.
4496 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4498 (face_for_char): Use deferred log.
4500 2008-08-18 Kenichi Handa <handa@m17n.org>
4502 * fontset.c (face_for_char): Add font log.
4504 * font.c (font_add_log): Add the font properties :script, :lang,
4505 and :otf in the log.
4507 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
4509 * xdisp.c: Remove dead code.
4510 (handle_invisible_prop, next_overlay_string): Defer call to
4512 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4514 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
4516 * xfaces.c (lookup_derived_face): Properly handle possible zero
4517 return value of get_lface_attributes.
4518 (merge_faces): Don't tell lookup_derived_face to signal an error
4519 if face is not found.
4521 * dired.c (Fdirectory_files): Doc fix.
4523 * process.c (make_process): Initialize kill_without_query struct
4526 2008-08-15 Eli Zaretskii <eliz@gnu.org>
4528 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4529 Alternative calculation of totphys for Visual Studio 6.
4531 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4533 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4534 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4536 (stat): Only root directory passed to GetDriveType. Allow RAM
4537 disk as well as local fixed disk when w32-get-true-file-attributes
4539 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4540 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4541 (w32_cached_id, w32_add_to_cache): New functions.
4542 (get_name_and_id): Look account names in the cache before calling
4544 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4545 New initialization flags.
4546 (globals_of_w32): Initialize them to zero.
4547 (w32_system_process_attributes): Use w32_cached_id and
4550 2008-08-14 Lawrence Mitchell <wence@gmx.li>
4552 * lread.c (Fread_char, Fread_char_exclusive): If no character
4553 event is read before timeout is reached, return nil, rather than
4554 converting to a number.
4556 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
4558 * fns.c (use_dialog_box): Doc fix.
4560 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4563 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
4565 * frame.c (Qns_parse_geometry): New var.
4566 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4568 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
4570 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4571 space character in calculating tabs.
4573 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4575 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4577 2008-08-10 Glenn Morris <rgm@gnu.org>
4579 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4580 silence gcc "limited range of data type" warnings in some
4581 make_fixnum_or_float calls.
4583 2008-08-09 Eli Zaretskii <eliz@gnu.org>
4585 * w32.c (w32_system_process_attributes): If the process does not
4588 * w32.c: Include thelp32.h, psapi.h and coding.h.
4589 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4591 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4592 (Process32Next_Proc): New typedefs.
4593 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4594 (g_b_init_process32_next, g_b_init_open_thread_token)
4595 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4596 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4597 (g_b_init_get_process_working_set_size)
4598 (g_b_init_global_memory_status_ex): New static variables.
4599 (globals_of_w32): Initialize them.
4600 (create_toolhelp32_snapshot, process32_first, process32_next)
4601 (open_thread_token, impersonate_self, revert_to_self)
4602 (get_process_memory_info, get_process_working_set_size)
4603 (global_memory_status, global_memory_status_ex): New wrapper
4605 (w32_list_system_processes, w32_system_process_attributes)
4606 (enable_privilege, restore_privilege, ltime, process_times):
4608 (convert_time_raw): New function.
4609 (convert_time): Remove conversion of FILETIME into time in 100
4610 nsec units, call convert_time_raw instead.
4612 * process.h (w32_list_system_processes, w32_system_process_attributes):
4614 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4615 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4616 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4617 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4619 * process.c (Fsystem_process_attributes): Doc fix.
4621 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
4623 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4624 a continued multi-char glyph; if so, advance to the actual glyph.
4626 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4628 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4630 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4632 * config.in: Regenerate.
4634 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
4636 * xdisp.c (redisplay_window): Revert last change.
4637 (try_window): Check bottom scroll margin too.
4639 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4641 * config.in: Regenerate.
4643 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4644 -list-load-path-shadows'.
4645 (nsgui.h): Reduce number of things depending on it.
4647 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
4649 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4650 instead of window-end which does the wrong thing at eob.
4651 (try_cursor_movement): Minor optimization.
4652 (redisplay_window): If scroll margin is defined, don't assume
4653 window doesn't need scrolling.
4655 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4657 * config.in: Regenerate.
4659 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4660 (mostlyclean): Don't delete *.d under NS.
4662 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4664 2008-08-06 Kenichi Handa <handa@m17n.org>
4666 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4668 2008-08-06 Andreas Schwab <schwab@suse.de>
4670 * config.in: Regenerate.
4672 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
4674 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4675 forcing a window start.
4677 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4678 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4680 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4682 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4685 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
4687 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4688 <scroll-down-aggressively, before-change-functions>:
4689 <after-change-functions>: Reflow docstrings.
4691 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4692 Ken Raeburn <raeburn@gnu.org>
4694 Dock menu customization, based on a patch by Ken Raeburn, plus some
4696 * nsmenu.m (dockMenu): New variable.
4697 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4699 * nsterm.h (dockMenu): Declare.
4701 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4702 (ns_term_init): Initialize dockMenu.
4703 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4704 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4707 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4709 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4711 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4713 * config.in: Regenerate.
4715 2008-08-04 Seiji Zenitani <zenitani@mac.com>
4717 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4719 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4721 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4723 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4725 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4727 * keyboard.h: Comment an #endif.
4729 * lisp.h (have_menus_p): Adjust comment.
4731 * menu.c (find_and_return_menu_selection): Fix comparison with
4734 * nsmenu.m (popup_activated_flag): New variable.
4735 (popup_activated): New function.
4736 (menu-or-popup-active-p): New exported lisp definition.
4737 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4739 (ns_popup_dialog): Set popup_activated_flag.
4741 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4742 version for GNUstep (handled by conditional typedef in nsterm.m).
4743 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4746 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4748 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4750 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4752 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4753 shortcircuit if popup_activated like GTK and X toolkit.
4755 * m/inter386.h: Change DARWIN to DARWIN_OS.
4757 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4758 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4759 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4760 comment on NO_SOCK_SIGIO.
4762 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
4764 * nsterm.m (windowDidResize): Remove stopModal call.
4766 2008-08-03 Andreas Schwab <schwab@suse.de>
4768 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4769 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4771 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
4773 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4774 Don't use uninitialized pointer variable when using getrlimit.
4776 2008-08-02 Jason Rumney <jasonr@gnu.org>
4778 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4780 2008-08-02 Eli Zaretskii <eliz@gnu.org>
4782 * alloc.c (NSTATICS): Bump to 0x640.
4784 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4786 * lisp.h: Add prototype for directory_files_internal.
4788 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4790 (syms_of_process): Defsubr them. Add initializations for various
4791 Q* symbols used in procfs_system_process_attributes.
4792 (procfs_list_system_processes, procfs_system_process_attributes)
4793 [HAVE_PROCFS]: New functions.
4794 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4795 (procfs_get_total_memory): New functions.
4797 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4799 * xfaces.c (Fx_load_color_file): Fix previous change;
4800 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4802 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
4804 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4806 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4808 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4810 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
4812 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4814 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4815 define NSApplicationDelegateReplySuccess.
4816 (EmacsView -converstationIdentifier): Use long instead of
4817 NSInteger for GNUstep, since it doesn't have NSInteger.
4819 * xmenu.c: Revert last change.
4821 * keyboard.h: Fix last change.
4823 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4825 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4828 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4830 Warning clearing and clean-up in NS port.
4831 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4833 * nsgui.h (FACE_DEFAULT): Remove, unused.
4834 (XGCValues): Change colors to unsigned long.
4835 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4837 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4838 (ns_list_fonts): Remove, unused.
4839 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4840 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4841 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4842 (nsfont_draw): Compare face colors to 0, not nil.
4843 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4844 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4845 (-addSubmenuWithTitle:): Use NSMenuItem class.
4846 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4847 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4848 (ns_clip_to_row): Make gc arg a BOOL.
4849 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4850 ns_clip_to_row() call.
4851 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4852 used). Cast FRAME_FONT assignments.
4853 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4854 (ns_string_to_lispmod): Change arg to const char.
4855 (ns_term_init): Use NSMenuItem class.
4856 (EmacsApp -openFile:): Move to different section of file.
4857 (EmacsApp -application:openFiles:): Don't return a value, call
4858 -replyToOpenOrPrint:.
4859 (EmacsView -keyDown:): Fix up cast.
4860 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4861 (EmacsView -menuDown:): Cast tag in call to
4862 find_and_call_menu_selection().
4863 (ns_list_fonts): Remove, unused.
4864 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4865 (ns_fontname_to_xlfd): Make static.
4866 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4867 Remove prototypes (now in keyboard.h).
4868 (next_menubar_widget_id): Remove, unused.
4869 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4870 Remove prototypes (now in keyboard.h).
4871 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4873 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4875 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4876 (floatfns.o): Depend on syssignal.h.
4877 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4879 * systty.h: Fix previous change that removed BSD_TERMIOS.
4880 Add comments to #ifdefs.
4882 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4884 * w32fns.c (w32-load-color-file): Remove.
4885 (x-open-connection): Use renamed Fx_load_color_file.
4886 * xfaces.c (x-load-color-file): Add.
4887 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4889 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4891 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
4893 * dbusbind.c (Fdbus_call_method_asynchronously)
4894 (Fdbus_method_error_internal): New defuns.
4895 (xd_read_message): Handle also reply messages.
4896 (Vdbus_registered_functions_table): Extend docstring.
4898 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
4900 * keyboard.c (gobble_input): Fix previous change.
4902 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4933 * m/vax.h: Remove VMS support.
4939 * ioctl.h: Remove file.
4941 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4943 * s/ms-w32.h (MULTI_KBOARD): Remove.
4958 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4959 * config.in: Regenerate.
4961 2008-07-30 Jason Rumney <jasonr@gnu.org>
4963 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4965 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4966 (w32font_open_internal): Get unicode version of textmetrics.
4967 Don't enable or disable glyph indices here.
4968 (w32font_open): Disable use of glyph indices.
4970 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4972 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
4974 * minibuf.c (Vread_buffer_function): Doc fix.
4976 2008-07-30 John Paul Wallington <jpw@pobox.com>
4978 * minibuf.c (read_buffer_completion_ignore_case): New var.
4979 (Fread_buffer): Use it.
4981 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4983 * systty.h (sensemode): Remove empty #if. Remove reference to
4984 BSD_TERMIOS, unused.
4986 * sysdep.c: Remove reference to DGUX.
4987 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4989 * config.in: Regenerate.
4991 2008-07-30 Jason Rumney <jasonr@gnu.org>
4993 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4995 2008-07-29 Jason Rumney <jasonr@gnu.org>
4997 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4999 (uniscribe_encode_char): Always use uniscribe.
5000 Avoid using context if cache is populated.
5002 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5004 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5007 * gtkutil.c (menu_nav_ended): Remove.
5008 (create_menus): Remove signal connect for menu_nav_ended.
5010 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
5012 * xdisp.c (redisplay_window): Check return value of
5013 compute_window_start_on_continuation_line before forcing a window
5016 2008-07-28 Jason Rumney <jasonr@gnu.org>
5018 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5020 * w32term.c (w32_enable_unicode_output, cleartype_active):
5021 Remove obsolete display options.
5022 (x_draw_glyph_string_background): Don't use old cleartype_active
5024 (w32_initialize): Remove cleartype_active initialization.
5025 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5027 2008-07-28 Andreas Schwab <schwab@suse.de>
5029 * lisp.h (init_weak_hash_tables, syms_of_font)
5030 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5031 (remove_hash_entry): Don't declare.
5032 * eval.c (maybe_call_debugger): Make static and move before use.
5033 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5034 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5035 * xterm.h (x_set_frame_alpha): Declare.
5037 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5039 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5040 (create_menus): Connect selection-done to menu_nav_ended.
5042 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5044 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5045 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5046 parameter with read of 'alpha' one.
5047 (Qns_frame_parameter): Remove.
5048 * nsselect.m (selection-coding-system)
5049 (next-selection-coding-system, Vselection_coding_system)
5050 (Vnext_selection_coding_system): Drop.
5052 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5054 * nsfns.m (do-applescript, do_applescript): Rename to
5055 ns-do-applescript, ns_do_applescript, and move within file.
5057 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5059 Remove support for Mac Carbon.
5067 * mac.c: Remove file.
5098 * Makefile.in: Remove code for Carbon.
5100 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5102 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5104 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5106 * macterm.h (kCGBitmapByteOrder32Host): New define for
5109 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5110 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5112 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5113 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5115 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5117 * w32inevt.c: Include dispextern.h.
5119 2008-07-26 Andreas Schwab <schwab@suse.de>
5121 * print.c (print_object): Fix off-by-one in last change.
5123 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
5125 * term.c (syms_of_term): Don't initialize default_orig_pair,
5126 default_set_foreground and default_set_background on Windows.
5128 2008-07-25 Jason Rumney <jasonr@gnu.org>
5130 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5131 ScriptItemize. Clean up return value checking. Remove unused
5133 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5136 * w32font.c (w32font_has_char): Handle the case where we can't
5137 determine the script for a character.
5139 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5141 * term.c (syms_of_term): Initialize default_orig_pair,
5142 default_set_foreground, and default_set_background.
5144 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5146 (getloadavg): Callers changed.
5148 * image.c (svg_load_image): Fix last change.
5149 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5150 image size is valid. Use g_object_unref instead of deprecated
5151 rsvg_handle_free to free rsvg handle.
5152 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5154 2008-07-25 Jason Rumney <jasonr@gnu.org>
5156 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5157 surrogates before looking up glyph index.
5158 (w32font_text_extents): Encode as surrogates if falling back to
5159 functions that need UTF-16 wide chars.
5161 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5162 BMP as surrogates before looking up glyph index.
5164 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
5166 * image.c (svg_load_image): Check for failure in return value of
5167 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5169 2008-07-25 Jason Rumney <jasonr@gnu.org>
5171 * w32font.c (Fx_select_font): Reverse sense of second arg.
5173 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5175 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5176 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5178 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5181 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5183 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5184 * m/alpha.h (TEXT_END):
5185 * m/ibmrs6000.h (TEXT_END):
5186 * m/macppc.h (TEXT_END):
5187 * s/darwin.h (TEXT_END):
5188 * s/msdos.h (TEXT_END): Remove, unused.
5189 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5190 * s/cygwin.h: Remove comment.
5192 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5193 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5194 * m/intel386.h (DOT_GLOBAL_START):
5195 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5196 (USG): Remove, file not used on USG platforms.
5198 * Makefile.in (HAVE_X11): Remove empty #else.
5200 2008-07-24 Andreas Schwab <schwab@suse.de>
5202 * fileio.c (Finsert_file_contents): Properly adjust undo list
5203 after format conversion.
5205 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5207 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5208 (menu_nav_ended): Remove.
5209 (create_menus): Remove signal connect for menu_nav_ended.
5210 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5212 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5214 2008-07-23 Jason Rumney <jasonr@gnu.org>
5216 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5218 (w32font_open): Set font type to gdi.
5220 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5222 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5224 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5225 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5227 * unexec.c (ADDR_CORRECT): Define unconditionally.
5229 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5231 * unexec.c: Remove code depending on !COFF and USG, the file is
5232 not used for such systems.
5234 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5235 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5236 (LD_SWITCH_SYSTEM_1): Remove, update users.
5238 * s/darwin.h (DATA_END):
5239 * m/intel386.h (DATA_END):
5240 * m/ibmrs6000.h (DATA_END):
5241 * m/alpha.h (DATA_END): Remove, unused.
5243 * config.in: Regenerate.
5244 * s/ms-w32.h (subprocesses): Define unconditionally.
5245 * s/template.h (subprocesses): Update comment.
5246 * s/vms.h (subprocesses):
5247 * s/usg5-4.h (subprocesses):
5248 * s/hpux10-20.h (subprocesses):
5249 * s/gnu-linux.h (subprocesses):
5250 * s/cygwin.h (subprocesses):
5251 * s/bsd-common.h (subprocesses):
5252 * s/aix4-2.h (subprocesses):
5253 * s/darwin.h (subprocesses): Do not define, defined by default now.
5255 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5256 Remove all references.
5257 (temacs): Add GNUstep specific ld flags.
5259 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5260 similarly to what X does.
5262 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5264 * nsfns.m (x-list-fonts): Remove.
5265 (syms_of_nsfns): Drop the x-list-fonts declaration.
5266 * nsterm.m: Get rid of remaining "//" comments.
5268 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
5270 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5272 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5273 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5274 (Fns_own_selection_internal, Fx_disown_selection_internal)
5275 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5277 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5278 ... */' style of docstrings. Doc fixes.
5280 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5282 * terminfo.c (UP, BC, PC): Undo previous change.
5284 * nsfns.m: Rename ns prefixed functions/variables to the
5285 corresponding x versions. Update references.
5287 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5289 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5291 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5293 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5294 Remove forwarding functions.
5295 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5297 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5299 (ns_frame_parm_handlers): Use the new names.
5300 (syms_of_nsfns): Move to the end of file.
5302 * nsterm.m (syms_of_nsterm): Move to the end of file.
5304 * dispnew.c (init_display): Remove code for X10.
5306 2008-07-22 Jason Rumney <jasonr@gnu.org>
5308 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5311 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5313 * nsterm.m (syms_of_nsterm): Remove debugging println.
5315 2008-07-22 David Reitter <david.reitter@gmail.com>
5317 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5318 Carbon implementation of the same functionality: execute arbitrary
5321 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5323 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5324 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5325 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5326 (Fx_display_mm_height, Fx_display_mm_width)
5327 (Fx_display_backing_store, Fx_display_visual_class)
5328 (Fx_display_save_under, Fx_open_connection)
5329 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5330 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5331 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5332 (Fx_display_pixel_width, Fx_display_pixel_height)
5333 (Fx_display_usable_bounds, Fx_display_planes)
5334 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5335 ... */' style of docstrings.
5337 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5339 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5342 * m/iris4d.h (mips): Do not define.
5343 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5345 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5351 * nsterm.m: Rename ns prefixed functions/variables to the
5352 corresponding x versions. Update references.
5354 * m/ibms390x.h (NO_REMAP): Do not undefine.
5356 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5358 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
5360 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5361 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5362 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5363 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5364 (Fns_display_mm_height, Fns_display_mm_width)
5365 (Fns_display_backing_store, Fns_display_visual_class)
5366 (Fns_display_save_under, Fns_open_connection)
5367 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5368 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5369 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5370 (Fns_display_pixel_width, Fns_display_pixel_height)
5371 (Fns_display_usable_bounds, Fx_display_planes)
5372 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5374 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5376 * print.c (print_object): Check print_depth before searching for
5379 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
5381 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5384 2008-07-21 Kenichi Handa <handa@m17n.org>
5386 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5388 2008-07-20 Andreas Schwab <schwab@suse.de>
5390 * syntax.c (find_start_pos, find_start_value)
5391 (find_start_value_byte, find_start_begv, find_defun_start)
5392 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5394 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5396 * s/sol2-3.h: Insert contents of s/sol2.h.
5397 (LD_SWITCH_SYSTEM): Remove redundant definition.
5398 * s/sol2.h: Remove, unused.
5400 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5402 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5404 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5406 * Makefile.in (ns_appdir): Fix typo in find command.
5408 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5410 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5412 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5413 added not supported anymore.
5415 * s/usg5-4-2.h (LIBS_SYSTEM):
5416 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5418 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5419 * s/lynxos.h (GETPGRP_NO_ARG):
5420 * s/hpux10-20.h (NO_SIOCTL_H):
5421 * s/gnu.h (GETPGRP_NO_ARG):
5422 * s/gnu-linux.h (NO_SIOCTL_H):
5423 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5424 * s/cygwin.h (GETPGRP_NO_ARG):
5425 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5426 (C_DEBUG_SWITCH): Remove duplicate definition.
5428 * m/ibms390.h: Remove boilerplate comments.
5430 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5432 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5433 (wait_reading_process_output): Remove code for SunOS, platform not
5434 supported anymore. Use SOLARIS2 instead of sun.
5436 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5438 * font.c (font_open_by_name): Under NS, default lface height to zero.
5439 (font_open_for_lface): Under NS, set size based on frame fontsize.
5440 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5441 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5443 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5445 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5446 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5447 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5449 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5450 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5451 * Makefile.in (clean): Clear out build destination dir.
5453 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5455 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5457 * lisp.h: Remove declaration of hash_remove.
5458 * nsgui.h: Remove redefinitions of hash_remove.
5459 * fns.c (hash_remove): Rename to hash_remove_from_table.
5461 2008-07-19 Seiji Zenitani <zenitani@mac.com>
5463 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5464 strdup() the family UTF8String before modifying it.
5466 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5468 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5469 NS_FACE_BACKGROUND with 0 instead of nil.
5470 * nsfont.m (nsfont_draw): Same.
5472 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
5474 * nsfns.m (ns_set_background_color): Fix crash.
5476 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
5478 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5480 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5482 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5484 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5486 * gtkutil.c: Include <config.h> instead of "config.h".
5488 * lisp.h (Foverlay_buffer): Add EXFUN.
5490 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5491 child process to complete child_setup. Undo 2005-09-21 change.
5493 * s/darwin.h: Mention setsid after vfork.
5495 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5497 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5500 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5501 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5503 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5505 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5507 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5508 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5511 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5512 Check if FACE_FROM_ID returns NULL.
5514 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5516 * w32inevt.c (change_frame_size): Remove extern declaration.
5517 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5520 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5522 * getloadavg.c: Revert last change (2008-07-15).
5524 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5526 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5527 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5530 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5533 * s/sol2-4.h: Reorganize conditionals.
5535 * ecrt0.c: Remove code depending on m68000, not used anymore.
5537 * fns.c (hash_remove): Make static.
5538 * lisp.h (hash_remove): Don't prototype.
5542 * m/macppc.h: Remove boilerplate comments.
5544 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5545 Solaris, which does not need them.
5547 * m/vax.h: Remove comments about unsupported systems.
5549 * s/darwin.h: Reorganize ifdefs.
5551 2008-07-17 Andreas Schwab <schwab@suse.de>
5553 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5555 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5557 Use SDATA. Follow coding convention of placing operators at
5558 beginning of next line rather than end of previous line, and placing
5559 spaces around infix operators.
5561 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5562 in case it was defined already.
5563 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5564 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5566 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5568 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5569 (ns_defined_color, ns_color_to_lisp): Declare.
5570 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5571 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5572 it's accepted even with USE_LISP_UNION_TYPE.
5573 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5574 (update_frame_tool_bar): Remove apparently obsolete tests for
5575 non-integerness of f->tool_bar_lines.
5576 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5577 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5578 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5579 (nsfont_open): Don't confuse NULL for Qnil.
5580 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5581 * menu.h (find_and_call_menu_selection):
5582 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5583 (find_and_return_menu_selection): Always return something.
5584 * frame.h: Include dispextern.h for Display_Info.
5585 (display_x_get_resource): Declare.
5587 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5589 * syntax.c: Remove stdio.h include accidentally introduced in
5591 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5593 * keyboard.c (handle_async_input, input_available_signal): Remove
5594 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5596 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5598 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5599 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5600 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5603 * keymap.c: Remove all NS-specific code.
5604 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5605 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5606 where_is_preferred_modifier, return a different value depending on how
5607 preferred is the binding.
5608 (where_is_internal): Adjust accordingly.
5609 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5610 Adjust to new preferred_sequence_p.
5611 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5612 * keyboard.c (parse_solitary_modifier): Not static any more.
5613 * keyboard.h (parse_solitary_modifier): Declare.
5615 2008-07-16 Andreas Schwab <schwab@suse.de>
5617 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5620 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
5622 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5623 that we don't move off the line.
5625 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5627 * keyboard.c (Qsuper): Remove.
5628 (parse_menu_item): Don't call where_is_internal specially for NS.
5630 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5632 * s/gnu-linux.h: Remove boilerplate comments.
5634 * m/alpha.h (__ELF__): Consolidate conditions.
5636 * m/m68k.h (linux): Use GNU_LINUX instead.
5637 Remove boilerplate comments.
5639 * m/intel386.h: Undo refactoring from previous change.
5640 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5641 too, remove dead code.
5642 (linux): Use GNU_LINUX instead.
5644 2008-07-16 Jason Rumney <jasonr@gnu.org>
5646 * w32gui.h: Repeat 26 June changes lost by last change.
5648 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5650 * systty.h: Remove code for Aix on 386, unsupported platform.
5652 * s/ms-w32.h: Remove boilerplate comments.
5653 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5655 * s/gnu-linux.h (TERM): Remove support.
5656 (HAVE_SYSVIPC): Remove, unused.
5657 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5660 * process.c: Remove support for IRIS, unused.
5661 Remove support for TERM, not relevant anymore.
5663 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5664 used with the definition.
5666 * s/aix4-2.h (static): Do not undef.
5668 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5670 (HAVE_SYSVIPC): Remove, unused.
5672 * m/hp800.h (CANNOT_DUMP): Do not undef.
5674 * m/alpha.h: Fix comment.
5676 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5677 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5678 used by this configuration.
5679 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5680 * unexec.c: Remove code depending on HPUX and
5681 USG_SHARED_LIBRARIES, not used with this file. Remove code
5682 depending on IRIS, unused. Remove if 0-ed code.
5684 * s/template.h: Remove comments about static.
5686 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5687 Remove if 0-ed code.
5688 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5689 were the same as the default.
5690 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5691 Remove boilerplate comments.
5692 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5693 (HAVE_SYSVIPC): Remove, unused.
5694 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5696 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5697 Remove boilerplate comments.
5698 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5699 Remove boilerplate comments.
5700 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5701 Remove boilerplate comments.
5702 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5704 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5705 USG systems which do not use DATA_SEG_BITS.
5706 Refactor code. Remove boilerplate comments.
5715 * s/msdos.h: Remove boilerplate comments.
5717 * m/iris4d.h: Remove boilerplate comments and code for systems that
5718 do not use this file.
5719 (IRIS_4D): Remove, unused.
5721 * m/mips.h: Remove boilerplate comments and code for systems that
5722 do not use this file.
5724 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5725 * unexmips.c: Remove file, unused.
5727 * editfns.c (Fuser_full_name): Replace the only use of
5728 USER_FULL_NAME with its value.
5729 * config.in: Regenerate.
5731 2008-07-16 David Reitter <david.reitter@gmail.com>
5733 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5734 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5736 2008-07-16 Glenn Morris <rgm@gnu.org>
5738 * emacs.c (system-type): Doc fix.
5740 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5742 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5743 If the cache doesn't work, let's fix it, rather than work around it.
5745 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5747 * Makefile.in: Correct additions for nsfont.o in last commit.
5748 * nsfont.m: New file (forgot last commit).
5750 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5752 * callproc.c (set_initial_environment): Initialize
5753 Vprocess_environment under CANNOT_DUMP (fixes crash when
5754 batch-compiling for bootstrap).
5756 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5757 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5759 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5760 fix crash due to different init order.
5762 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5764 Changes and additions for NeXTstep windowing system (Cocoa and
5768 * config.in: Support defines and build commands for NS port.
5769 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5770 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5771 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5773 (struct face): Add synth_ital field.
5774 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5775 (init_display): Initialize Vinitial_window_system to "ns" when so
5777 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5778 (display_arg): Use under NS.
5779 (main): Under NS, allocate autorelease pool and handle command line
5780 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5781 (standard_args): Add NS-specific args.
5782 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5783 * font.c (DEFAULT_ENCODING): New variable.
5784 (font_find_for_lface): Use it.
5785 (syms_of_font): Load syms_of_nsfont under NS.
5786 * font.h: Declare nsfont_driver when compiled under NS.
5787 * fontset.c: When compiling under NS, include nsterm.h.
5788 (fontset_from_font): Autoconstruct fontset under NS.
5789 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5790 symbol, document and use it.
5791 (do_switch_frame): When for_deletion under Cocoa, add
5793 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5794 (x_get_arg): Allow "yes" and "no" as boolean values.
5795 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5797 (focus-follows-mouse): Default to 0 under NS.
5798 * frame.h (enum output_method): Add output_ns.
5799 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5800 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5801 (FRAME_WINDOW_P): NS-specific definition.
5802 * fringe.c (max_used_fringe_bitmap): Make public.
5803 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5804 (getloadavg): Use NeXT code under descendant OS's.
5805 * image.c (includes and header section, x_create_bitmap_from_data)
5806 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5807 (image_background_transparent, x_clear_image_1)
5808 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5809 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5810 (x_to_xcolors, x_from_xcolors, x_disable_image)
5811 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5812 other GUIs, including XPM support using code originally written for
5814 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5816 (image_ascent): Use font metrics macros instead of direct struct field
5818 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5819 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5820 Also, handle NS as GTK for menu bar purposes.
5821 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5822 toolkit where they differ.
5823 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5824 use cachelist, still needed under NS.
5825 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5826 (struct widget_value): Define it here for menu.c.
5827 * keymap.c (includes): Include modifier internals.
5828 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5830 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5831 support for preferring sequences using certain modifiers, specified by
5832 the FIRSTONLY argument.
5833 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5834 under NS GNUstep implementation.
5835 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5836 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5837 * menu.c: Include nsterm.h under NS.
5838 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5839 (free_menubar_widget_tree_value, update_submenu_strings)
5840 (find_and_call_menu_selection): Treat NS as X and NT.
5841 (find_and_return_menu_selection): New function, used for popup menus.
5848 * nsterm.m: New files.
5849 * process.c (wait_reading_process_output): Under NS, call ns_select()
5850 instead of plain select().
5851 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5852 beginning of buffer.
5853 * sysselect.h (init_process): Rename when compiling under Cocoa to
5854 avoid name conflict.
5855 * termhooks.h (display_info): Add ns_display_info to union.
5856 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5857 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5859 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5860 unexec() signature. (Note, this will dump, but the resulting file
5861 crashes; unexosx is used instead; keeping around for reference and
5862 possible aid in getting dump working under GNUstep.)
5863 * w32gui.h (button_type, widget_value): Remove definitions (now in
5865 * window.c: Include nsterm.h when compiling under NS.
5866 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5867 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5868 other GUI windowing systems.
5869 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5871 (x_consider_frame_title): Under NS, set icon type and frame
5872 modified-state indicator; use ns_set_name_as_filename() when using
5874 (update_window_cursor): Make public when compiling under NS.
5875 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5876 (hourglass_atimer, Vhourglass_delay
5877 * xfaces.c (header section, init_frame_faces, clear_font_table)
5878 (defined_color, unload_color, x_face_list_fonts)
5879 (prepare_face_for_display): Add NS support parallel to other GUIs.
5880 Emulate GCs like other non-X GUIs.
5881 (split_font_name): Don't lowercase font name under NS.
5882 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5884 * s/darwin.h: Add support for compilation under NS.
5886 2008-07-15 Jason Rumney <jasonr@gnu.org>
5888 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5889 (w32_show_hourglass): Rename from show_hourglass.
5890 (w32_hide_hourglass): Rename from hide_hourglass.
5891 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5892 (Vhourglass_delay): Declare extern.
5893 (hourglass_started): Remove.
5895 * xdisp.c (Vhourglass_delay): Remove static.
5896 (hourglass_started, start_hourglass, cancel_hourglass):
5897 Don't include these versions on WINDOWSNT.
5899 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5901 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5902 variables (formerly in xfns.c).
5903 (show_hourglass, hide_hourglass): New prototypes (same).
5904 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5905 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5907 (syms_of_xdisp): Declare/initialize display-hourglass,
5908 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5909 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5911 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5912 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5913 (start_hourglass, cancel_hourglass): Remove.
5914 (show_hourglass, hide_hourglass): Remove prototypes and static
5916 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5917 hourglass_atimer, hourglass_shown_p declaration/initialization.
5918 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5919 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5920 (start_hourglass, cancel_hourglass): Remove.
5921 (show_hourglass, hide_hourglass): Remove prototypes and static
5923 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5924 hourglass_atimer, hourglass_shown_p declaration/initialization.
5925 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5926 (DEFAULT_HOURGLASS_DELAY): Remove.
5927 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5928 hourglass_shown_p declaration/initialization.
5930 2008-07-14 Jason Rumney <jasonr@gnu.org>
5932 * w32fns.c (w32_get_arg): Remove wrapper function.
5933 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5935 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5937 2008-07-14 Kenichi Handa <handa@m17n.org>
5939 * xfont.c (xfont_open): Add workaround for X's bug.
5941 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5943 * fontset.c: Include <stdio.h> unconditionally.
5945 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
5947 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5950 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5952 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5955 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5957 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5958 (SPECIAL_EMACS_INT):
5959 * m/ia64.h (SPECIAL_EMACS_INT):
5960 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5961 * s/gnu.h (NLIST_STRUCT):
5962 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5963 * s/gnu-linux.h (LINUX):
5964 * s/msdos.h (HAVE_FACES):
5965 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5968 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5971 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5973 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5974 always defined as int.
5976 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5977 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5978 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5979 * s/freebsd.h (HAVE_WAIT_HEADER):
5980 * s/bsd-common.h (HAVE_UNION_WAIT):
5981 * s/aix4-2.h (HAVE_WAIT_HEADER):
5982 * m/mips.h (HAVE_UNION_WAIT):
5983 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5984 (COFF, static): Do not define, they are undefined later in the file.
5986 * process.c (update_status): Don't use a union.
5988 (sigchld_handler): Use int instead of WAITTYPE.
5990 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
5992 * indent.c (Fvertical_motion): Restore hscroll before moving to
5995 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5997 * lisp.h: Remove left over code.
5999 2008-07-11 Andreas Schwab <schwab@suse.de>
6001 * lisp.h: Fix logic in last change.
6004 * menu.c: Include it.
6005 * xmenu.c: Likewise.
6006 * Makefile.in: Update dependencies.
6008 2008-07-11 Kenichi Handa <handa@m17n.org>
6010 * fontset.c (fontset_from_font): Cancel the previous change.
6012 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6017 * alloc.c: Replace all references of NO_UNION_TYPE with
6018 USE_LISP_UNION_TYPE.
6020 * m/xtensa.h (NO_UNION_TYPE):
6021 * m/vax.h (NO_UNION_TYPE):
6022 * m/template.h (NO_UNION_TYPE):
6023 * m/sparc.h (NO_UNION_TYPE):
6024 * m/mips.h (NO_UNION_TYPE):
6025 * m/macppc.h (NO_UNION_TYPE):
6026 * m/m68k.h (NO_UNION_TYPE):
6027 * m/iris4d.h (NO_UNION_TYPE):
6028 * m/intel386.h (NO_UNION_TYPE):
6029 * m/ibms390x.h (NO_UNION_TYPE):
6030 * m/ibms390.h (NO_UNION_TYPE):
6031 * m/ibmrs6000.h (NO_UNION_TYPE):
6032 * m/ia64.h (NO_UNION_TYPE):
6033 * m/hp800.h (NO_UNION_TYPE):
6034 * m/arm.h (NO_UNION_TYPE):
6035 * m/amdx86-64.h (NO_UNION_TYPE):
6036 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6037 defining it the same.
6039 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
6041 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6043 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6060 * s/vms.h: Remove references to unused variables.
6062 2008-07-10 Andreas Schwab <schwab@suse.de>
6064 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6065 pattern before matching the generic family.
6067 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6074 * s/darwin.h: Remove dead code.
6087 * m/amdx86-64.h: Remove dead code and references to unused
6088 and compiler defined symbols.
6091 * unexelf.c: Remove references to desupported systems.
6093 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6095 * m/powermac.h: Remove boilerplate comments.
6096 (NO_REMAP): Remove unused definition.
6098 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6101 2008-07-10 Kenichi Handa <handa@m17n.org>
6103 * xfont.c (xfont_open): Log the reason of failure.
6105 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6107 * fontset.c (fontset_get_font_group):
6108 * font.c (font_check_otf): Specify argument types.
6110 2008-07-09 Kenichi Handa <handa@m17n.org>
6112 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6113 non-ASCII char is found.
6115 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6116 (reorder_font_vector): Change the arg preferred_family to font.
6117 Prefer the spec matching with font.
6118 (fontset_get_font_group): New function.
6119 (fontset_find_font): Change the format of an element of a realized
6120 fontset. Use fontset_get_font_group.
6121 (fontset_font): Try the current fontset, the default fontset, the
6122 fallbacks of the current fontset, and the fallbacks of the default
6123 fontset in this order.
6124 (face_for_char): Delete the shortcut to use the current font.
6125 (fontset_from_font): Don't set fonts for Latin in the fontset.
6127 * font.h (font_make_object, font_match_p): Adjust prototypes.
6129 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6131 * font.c (font_make_object): New arg entity and pixelsize.
6132 (font_check_otf_features, font_check_otf): New functions.
6133 (font_match_p): Check :lang, :script, and :otf properties.
6135 * xfont.c (xfont_open): Adjust it for the change of
6137 (xfont_text_extents): Fix initial setting of metrics.
6139 * ftfont.c (struct ftfont_info): New member index, delete member
6140 fc_charset_idx. Make the member order compatible with struct
6142 (fc_charset_table): Change charset names to registry names.
6143 (ftfont_pattern_entity): Delete the args registry and
6144 fc_charset_idx. Change the value of :font-entity property
6145 to (FONTNAME . INDEX). Always set :registry property to
6147 (struct ftfont_cache_data): New struct.
6148 (ftfont_lookup_cache): New arg for_face.
6149 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6150 (ftfont_driver): Set the member otf_capability.
6151 (ftfont_get_charset): Adjust it for the change of
6153 (OTF_TAG_SYM): New macro.
6154 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6155 for the change of fc_charset_table.
6156 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6157 ftfont_pattern_entity. Add FC_INDEX to objset.
6158 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6159 and ftfont_pattern_entity.
6160 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6161 font_make_object, struct ftfont_info.
6162 (ftfont_has_char): Use ftfont_get_fc_charset.
6163 (ftfont_otf_features, ftfont_otf_capability): New functions.
6164 (ftfont_shape): Use ftfont_get_otf.
6165 (ftfont_text_extents): Fix initial setting of metrics.
6167 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6168 member order compatible with struct ftfont_info.
6169 (xftfont_open): Add FC_CHARSET to the pattern. Set
6170 xftfont_info->ft_size. Don't unlock the face. Check BDF
6171 properties if appropriate.
6172 (xftfont_close): Unlock the face.
6173 (xftfont_anchor_point, xftfont_shape): Deleted.
6174 (syms_of_xftfont): Don't set members anchor_point and shape of
6177 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6180 * w32font.c (w32font_open): Adjust it for the change of
6182 (w32font_open_internal): Don't set properties of font_object here.
6184 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
6186 * macfns.c (x_create_tip_frame):
6187 * w32fns.c (x_create_tip_frame):
6188 * xfns.c (x_create_tip_frame): Pass parameter argument to
6189 face-set-after-frame-default.
6191 * xfaces.c (Finternal_merge_in_global_face): Save merged
6192 attributes for the default face back into the face vector.
6194 2008-07-08 Andreas Schwab <schwab@suse.de>
6196 * fontset.h: Declare fontset_from_font. Don't declare
6197 new_fontset_from_font and fontset_from_font_name.
6198 * xterm.c: Include "fontset.h".
6199 * Makefile.in (xterm.o): Update dependencies.
6201 2008-07-08 Glenn Morris <rgm@gnu.org>
6203 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6204 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6206 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
6208 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6209 (x_set_frame_parameters): Don't bind it.
6211 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
6213 * w32fns.c (map_w32_filename): Declare extern.
6215 2008-07-07 Jason Rumney <jasonr@gnu.org>
6217 * w32term.c (WS_EX_LAYERED): Define if not already.
6219 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
6221 * xfaces.c (set_font_frame_param): Don't try to set the font
6222 parameter if it is still unspecified in the lface.
6224 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6226 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6227 face if it didn't already exist.
6229 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6231 2008-07-05 Andreas Schwab <schwab@suse.de>
6233 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6235 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6237 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6239 (IT_DISPLAYING_WHITESPACE): New macro.
6240 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6241 when word-wrapping. Simplify word-wrapping logic. Use correct
6242 pixel positions when saving copies of the iterator.
6243 (display_line): Use proper wrap point if the last character on a
6244 line was preceded by whitespace.
6246 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6248 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6250 2008-07-04 Kenichi Handa <handa@m17n.org>
6252 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6254 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6256 2008-07-02 Jason Rumney <jasonr@gnu.org>
6258 * xfns.c (syms_of_xfns): Only define x-select-font when both
6259 HAVE_FREETYPE and USE_GTK.
6261 * xdisp.c (next_element_from_display_vector): Move assignment out
6264 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6266 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6268 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6269 (syms_of_fileio): Initialize and export them.
6270 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6272 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6273 (Fsystem_move_file_to_trash): New function.
6274 (syms_of_w32fns): Export it to lisp.
6276 2008-07-01 Jason Rumney <jasonr@gnu.org>
6278 * w32font.c (w32font_text_extents): Don't count overhang as part
6281 2008-06-30 Miles Bader <miles@gnu.org>
6283 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6284 Add `avoid_cursor_p' field.
6286 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6287 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6288 (append_glyph, append_composite_glyph, produce_image_glyph)
6289 (append_stretch_glyph): Initialize avoid_cursor_p.
6290 (get_it_property): Rename from `get_line_height_property'.
6291 (x_produce_glyphs): Use get_it_property.
6292 (handle_line_prefix, push_display_prop): New functions.
6293 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6294 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6296 (syms_of_xdisp): Initialize them.
6298 2008-06-30 Kenichi Handa <handa@m17n.org>
6300 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6301 XftDefaultSubstitute (they are called in XftFontMatch).
6302 (xftfont_open): Fix args to ftfont_font_format.
6304 * ftfont.c (fc_charset_table): New member lang.
6305 (ftfont_resolve_generic_family): New arg pattern.
6306 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
6307 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6308 (ftfont_open): Fix args to ftfont_font_format.
6309 (ftfont_font_format): New arg filename.
6311 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
6313 * xfaces.c (Finternal_merge_in_global_face): If default face was
6314 modified, realize it again. Update the font face attribute.
6316 2008-06-29 Jason Rumney <jasonr@gnu.org>
6318 * w32term.c (x_set_frame_alpha): Fix logic.
6320 2008-06-29 Kenichi Handa <handa@m17n.org>
6322 * fontset.c (Finternal_char_font): Return font-object instead of
6325 * composite.c (get_composition_id): Fix the width calculation for TAB.
6327 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6329 * indent.c (Fvertical_motion): Properly handle float column arg.
6331 2008-06-28 Jason Rumney <jasonr@gnu.org>
6333 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6334 (pfnSetLayeredWindowAttributes): New function pointer.
6335 (w32_initialize): Initialize it when supported.
6336 (x_set_frame_alpha): New function.
6338 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6339 (w32_frame_parm_handlers): Set alpha handler.
6341 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6343 2008-06-27 Jason Rumney <jasonr@gnu.org>
6345 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6346 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6347 (w32_to_x_charset, x_to_w32_charset)
6348 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6349 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6350 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6351 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6352 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6353 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6354 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6355 (Qw32_charset_unicode): Remove.
6356 (syms_of_w32fns): Update for above changes.
6358 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6359 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6360 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6361 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6362 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6363 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6364 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6365 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6366 (syms_of_w32font): Update for above changes.
6368 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6370 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6372 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6374 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6375 Eli Zaretskii <eliz@gnu.org>
6377 * makefile.w32-in (LOCAL_FLAGS):
6378 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6380 * sysdep.c (_spawnlp, _getpid):
6381 Declare with explicit _cdecl instead of _CRTAPI1.
6383 * editfns.c (Fget_internal_run_time):
6384 Check for WINDOWSNT with #ifdef, not #if.
6386 2008-06-26 Jason Rumney <jasonr@gnu.org>
6388 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6390 * w32term.c (x_draw_glyph_string_foreground)
6391 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6392 Use FONT_HANDLE macro.
6393 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6395 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6396 (uniscribe_encode_char): Use FONT_HANDLE macro.
6398 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6399 (w32font_text_extents): Use precast w32_font.
6400 (w32font_close): Free cached metrics.
6401 (w32font_open_internal): Allocate space for name on stack.
6403 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
6405 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6407 2008-06-26 Jason Rumney <jasonr@gnu.org>
6409 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6410 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6412 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6414 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6416 2008-06-26 Jason Rumney <jasonr@gnu.org>
6418 * w32bdf.c, w32bdf.h: Remove obsolete files.
6420 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6422 * w32gui.h: Don't include w32bdf.h.
6423 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6424 Remove obsolete font support.
6426 * w32font.h (struct w32font_info): Remove compat_w32_font.
6428 (FONT_COMPAT): Remove obsolete macro.
6430 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6431 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6432 (w32font_open_internal): Remove compat code. Set new hfont member.
6433 (Fx_select_font): Use new hfont member.
6435 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6436 (uniscribe_encode_char): Use new hfont member.
6438 * w32term.c (x_draw_glyph_string_foreground)
6439 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6440 (x_draw_glyph_string): Use metrics in w32font_info.
6442 2008-06-26 Kenichi Handa <handa@m17n.org>
6444 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6446 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6474 * s/uxpv.h: Remove support for obsolete systems.
6475 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
6476 Remove, insert contents in s/hpux10-20.h.
6477 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6478 Remove, insert contents in s/aix4-2.h.
6479 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6480 * s/bsd4-3.h: Rename to ...
6481 * s/bsd-common.h: ... this.
6510 * s/template.h: Remove references to obsolete variables.
6512 * Makefile.in: Add dependencies for all unexec files.
6513 (admindir): Remove unused variable.
6514 (UNEXEC_SRC): Remove references.
6516 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
6518 * xfns.c (x_default_font_parameter): If Xft is available, first
6519 try Monospace-12 for the default font.
6521 2008-06-25 Jason Rumney <jasonr@gnu.org>
6523 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6525 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6527 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6529 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6531 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
6533 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6534 <scroll-conservatively>: Fix typo in docstring.
6536 * xselect.c (Fx_send_client_event): Doc fix.
6538 2008-06-25 Kenichi Handa <handa@m17n.org>
6540 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6542 * font.c (font_parse_fcname): Remove unused variables.
6543 (font_sort_entites): Delete the arg SPEC. Caller changed.
6544 Fix for the case of ! best_only.
6545 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6547 * lisp.h (Fstring_to_unibyte): EXFUN it.
6549 * character.h (str_to_unibyte): Extern it.
6551 * character.c (str_to_unibyte): New function.
6553 * fns.c (Fstring_to_unibyte): New function.
6554 (syms_of_fns): Defsubr it.
6556 2008-06-24 Kenichi Handa <handa@m17n.org>
6558 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6560 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6562 2008-06-24 Andreas Schwab <schwab@suse.de>
6564 * Makefile.in (${lispsource}loaddefs.el): Rename from
6565 ../lisp/loaddefs.el.
6566 (bootstrap-clean): Do what distclean does but don't remove
6568 (distclean): Depend on bootstrap-clean and remove Makefile.
6570 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
6572 * buffer.h (struct buffer): New member word_wrap.
6574 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6576 (init_buffer_once): Initialize them.
6578 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6579 line_wrap enum possessing three possible values.
6581 * termopts.h: Replace truncate_partial_width_windows with
6582 Vtruncate_partial_width_windows.
6584 * dispnew.c (direct_output_for_insert): Avoid direct output when
6585 inserting a space with word wrap on.
6587 * indent.c (compute_motion): Obey integer values of
6588 truncate-partial-width-windows.
6590 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6591 replacing truncate_partial_width_windows.
6592 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6593 truncate only if the window width is below that integer.
6594 (start_display, resize_mini_window, produce_stretch_glyph)
6595 (display_string, move_it_in_display_line_to): Use line_wrap.
6596 (back_to_previous_visible_line_start, reseat_1): Reset
6597 string_from_display_prop_p.
6598 (display_line): Extend default face to end of line when wrapping.
6600 2008-06-24 Kim F. Storm <storm@cua.dk>
6602 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6603 to wrap continued lines at word boundaries.
6605 2008-06-24 Jason Rumney <jasonr@gnu.org>
6607 * font.c (Ffont_face_attributes): Multiply pixel size before point
6608 conversion to avoid multiplying rounding error.
6610 2008-06-23 Jason Rumney <jasonr@gnu.org>
6612 * w32term.c (x_draw_glyph_string_background)
6613 (x_draw_glyph_string): Remove old bdf font code.
6615 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6617 2008-06-22 Kenichi Handa <handa@m17n.org>
6619 * font.c (font_find_for_lface): Try the adstyle specified in
6620 the property of LFACE_FONT of LFACE (if any).
6622 2008-06-21 Seiji Zenitani <zenitani@mac.com>
6623 Ryo Yoshitake <ryo@shiftmode.net>
6625 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6627 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6629 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6630 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6631 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6632 (witness-emacs): Remove.
6633 (lisp, shortlisp): Move loaddefs.el earlier.
6634 (mostlyclean): Forget about witness-emacs.
6636 2008-06-22 Glenn Morris <rgm@gnu.org>
6638 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6639 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6641 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6643 * Makefile.in (PRECOMP): Remove.
6644 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6645 (witness-emacs): Run `compile-first'.
6646 (.el.elc): Use the new compile-onefile target.
6648 2008-06-21 Kenichi Handa <handa@m17n.org>
6650 * xftfont.c (xftfont_open): Handle QCembolden only when
6651 FC_EMBOLDEN is defined.
6653 2008-06-21 Andreas Schwab <schwab@suse.de>
6655 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6656 (.el.elc): Likewise.
6658 2008-06-21 Miles Bader <miles@gnu.org>
6660 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6661 build dir, not the lisp source dir.
6663 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6665 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6666 (bootstrapclean): Remove.
6667 (.el.elc): New rule.
6669 (../lisp/subdirs.el): Remove.
6670 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6671 (witness-emacs): New target.
6672 (mostlyclean): Remove witness-emacs as well.
6673 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6674 Add witness-emacs dependency.
6676 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
6678 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6679 defined by the font.
6681 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6683 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6684 (bootstrap-clean): New target that keeps TAGS around.
6685 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6686 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6688 2008-06-20 Jason Rumney <jasonr@gnu.org>
6690 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6691 Remove obsolete font code.
6693 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6694 to determine language support.
6696 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6698 * sysdep.c (cfsetspeed): New fun extracted from the code.
6699 (cfmakeraw): Move before first use.
6701 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6703 * sysdep.c (cfmakeraw): Provide fallback implementation.
6704 (serial_configure): Provide fallback implementation of cfsetspeed.
6706 2008-06-20 Kenichi Handa <handa@m17n.org>
6708 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6711 * fontset.c (fontset_from_font): Copy font_spec before changing
6714 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6716 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6718 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6719 for explicit `font' parameters.
6721 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6723 2008-06-19 Kenichi Handa <handa@m17n.org>
6725 * frame.c: Include <ctype.h>.
6726 (x_set_font_backend): Allow spacing characters in the X resource
6729 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6731 * w32fns.c, xfns.c (Qfont_param): New var.
6732 (syms_of_w32fns): Initialize it.
6733 (x_default_font_parameter): Record explicit `font' into
6736 2008-06-18 Kenichi Handa <handa@m17n.org>
6738 * font.c (font_parse_xlfd): Fix previous change.
6739 (font_parse_fcname): Don't use :fc-unknown-spec.
6740 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6741 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6742 (font_add_log): Prepend the driver name to the resulting fonts.
6744 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6745 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6746 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6748 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6749 (QCembolden): New variables.
6750 (syms_of_xftfont): DEFSYM them.
6751 (xftfont_open): Call XftFontMatch. Don't trust the result of
6752 XftTextExtents8 if the pixel_size is less than 5.
6754 2008-06-18 Andreas Schwab <schwab@suse.de>
6756 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6757 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6759 2008-06-18 Jason Rumney <jasonr@gnu.org>
6761 * w32font.c (w32font_list, w32font_match): Add logging.
6763 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6765 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
6767 * font.c (font_parse_fcname): Store divider characters for
6768 unknown-spec list. For known key symbols, intern using correct
6771 2008-06-17 Kenichi Handa <handa@m17n.org>
6773 * xfaces.c (realize_default_face): If the frame is not on window
6774 system, set the fontset of face to nil.
6776 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6778 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6780 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6782 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6783 (build_font_name_from_vector): Delete externs.
6785 * xfaces.c (struct font_name): Don't declare.
6787 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6789 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6791 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6793 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6795 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6797 * font.c (Ffont_spec): Fix usage in docstring.
6798 (Ffont_face_attributes): Doc fix.
6800 2008-06-16 Andreas Schwab <schwab@suse.de>
6802 * font.c (Ffont_face_attributes): Fix definition.
6804 2008-06-16 Jason Rumney <jasonr@gnu.org>
6806 * font.h (font_style_symbolic_from_value): Remove.
6808 * font.c (font_style_symbolic_from_value): Remove.
6809 (font_style_symbolic): Revert to pre 2008-06-13 version.
6811 * w32font.c (w32_to_fc_weight): New function.
6812 (w32font_full_name, logfont_to_fcname): Use it.
6814 2008-06-16 Kenichi Handa <handa@m17n.org>
6816 * font.c (font_check_object): Delete it.
6817 (font_clear_cache): Check if a font-object is alive.
6818 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6820 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6821 (font_at): Don't call font_check_object.
6822 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6824 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6826 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6828 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6830 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6832 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
6834 * font.c (font_parse_fcname): Only one decimal point.
6835 (font_unparse_fcname): Handle data in family and foundry indices
6836 as symbols, not strings.
6837 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6839 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6841 * font.h (font_unparse_gtkname): Add prototype.
6843 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6845 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6847 2008-06-15 Andreas Schwab <schwab@suse.de>
6849 * font.c (font_update_drivers): Fix crash when no drivers match.
6851 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6853 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6854 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6856 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6858 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6860 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6862 * process.c (Fserial_process_configure, Fprocess_send_eof):
6863 Use EQ to compare Lisp_Objects.
6865 2008-06-13 Jason Rumney <jasonr@gnu.org>
6867 * w32fns.c (Fw32_select_font): Remove old font API function.
6869 * w32font.c (logfont_to_fcname): New function.
6870 (Fx_select_font): New font dialog function compatible with
6871 GTK/fontconfig version.
6873 * font.c (font_style_symbolic_from_value): New function.
6874 (font_style_symbolic): Use it.
6876 * font.h (font_style_symbolic_from_value): Declare new function.
6878 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
6880 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6881 <font-width-table>: Fix typos in docstrings.
6883 2008-06-13 Daniel Engeler <engeler@gmail.com>
6885 These changes add serial port access.
6886 * process.c: Add HAVE_SERIAL.
6887 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6888 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6889 (list_processes_1, select_wrapper, Fstop_process)
6890 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6891 (status_notify): Modify to handle serial processes.
6892 [HAVE_SERIAL] (Fserial_process_configure)
6893 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6895 * process.h (struct Lisp_Process): Add `type'.
6896 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6898 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6900 (serial_open, serial_configure): New functions.
6901 * w32.h: Add FILE_SERIAL.
6902 (struct _child_process): Add ovl_read, ovl_write.
6904 2008-06-13 Kenichi Handa <handa@m17n.org>
6906 * dispextern.h (enum lface_attribute_index): New member
6907 LFACE_FOUNDRY_INDEX.
6909 * font.c (font_score): Delete arg alternate_families. Check only
6910 weight, slant, width, and size. Ignore the difference of alias
6912 (font_sort_entites): Adjust for the above change. Reflect the
6913 order of font-driver to scores.
6914 (font_list_entities): Don't check alternate_familes here.
6915 (font_clear_prop): Handle foundry.
6916 (font_update_lface): Don't parse "foundry-family" form here.
6917 Handle FONT_FOUNDRY_INDEX.
6918 (font_find_for_lface): Likewise. Handle alternate families here.
6919 If registry is nil, try iso8859-1 and ascii-0.
6920 (font_open_for_lface): Pay attention to size in ENTITY.
6921 (font_open_by_name): Simplify by calling font_load_for_lface.
6922 (free_font_driver_list): Delete it.
6923 (font_update_drivers): Preserve the order of backends.
6924 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6925 of font_score and font_sort_entites.
6926 (font_update_sort_order): Likewise.
6928 * xfaces.c (LFACE_FOUNDRY): New macro.
6929 (check_lface_attrs): Check foundry.
6930 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6931 (merge_face_vectors): Check foundry.
6932 (merge_face_ref): Likewise.
6933 (Finternal_set_lisp_face_attribute): Likewise.
6934 (x_update_menu_appearance): Likewise.
6935 (Finternal_get_lisp_face_attribute): Likewise.
6936 (lface_hash): Likewise.
6937 (lface_same_font_attributes_p): Likewise.
6938 (x_supports_face_attributes_p): Likewise.
6939 (tty_supports_face_attributes_p): Likewise.
6940 (Finternal_set_alternative_font_family_alist): Intern strings.
6941 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6942 (realize_default_face): Set LFACE_FOUNDRY (lface).
6944 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6945 font-driver at first.
6947 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6949 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6951 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6953 2008-06-12 Jim Meyering <meyering@redhat.com>
6955 Make unexec_free handle NULL the same way free does.
6956 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6958 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6960 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6961 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6962 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6963 (WEAK_ALIAS): Simplify.
6964 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6965 when searching a unibyte buffer.
6967 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
6969 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6971 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
6973 * w32font.c: Include ctype.h.
6975 2008-06-11 Jason Rumney <jasonr@gnu.org>
6977 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6978 misreported as space.
6979 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6980 as aliases for registry iso10646-1.
6982 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6984 * buffer.c (clone_per_buffer_values): Skip `name'.
6986 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
6988 * font.c (font_parse_fcname): Fix last change; accept decimal
6989 points in font size.
6991 2008-06-10 Jason Rumney <jasonr@gnu.org>
6993 * w32uniscribe.c (add_opentype_font_name_to_list):
6994 Skip non unicode fonts.
6996 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
6998 * xfns.c (Fx_font_dialog): New function.
7000 * gtkutil.c (xg_dialog_response_cb): Rename from
7001 xg_file_response_callback.
7002 (pop_down_dialog): Rename from pop_down_file_dialog.
7003 (xg_get_file_name): Callers changed.
7004 (xg_get_font_name): New function.
7006 * gtkutil.h (xg_get_font_name): Insert prototype.
7008 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7010 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7011 x_underline_minimum_display_offset.
7012 (syms_of_xdisp): Declare it here rather than in xterm.c.
7013 * dispextern.h (underline_minimum_offset): Declare it.
7014 * w32term.c (x_draw_glyph_string): Use it.
7015 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7016 (syms_of_xterm): Don't declare it any more.
7017 (x_draw_glyph_string): Adjust to the new name.
7019 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7021 * xterm.c (x_underline_minimum_display_offset): New var.
7022 (x_draw_glyph_string): Use it.
7023 (syms_of_xterm): Declare it.
7025 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
7027 * font.c (font_parse_fcname): Accept GTK-style font names too.
7029 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7031 * dired.c (file_name_completion): Don't return t if the match is exact
7032 but with different capitalization.
7033 * minibuf.c (Ftry_completion): Simplify.
7035 * window.c (Vwindow_point_insertion_type): New var.
7036 (set_window_buffer): Use it.
7037 (syms_of_window): Init and export it to Lisp.
7039 2008-06-10 Kenichi Handa <handa@m17n.org>
7041 * font.h (font_intern_prop): Prototype adjusted.
7043 * font.c (font_intern_prop): New arg force_symbol.
7044 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7045 Adjust for the change of font_intern_prop.
7047 * ftfont.c (ftfont_pattern_entity):
7048 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7050 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7051 the change of font_intern_prop.
7053 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
7055 * w32menu.c (digest_single_submenu): Declare extern.
7057 2008-06-09 Jason Rumney <jasonr@gnu.org>
7059 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7061 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7062 (parse_single_submenu): Remove.
7063 (digest_single_submenu): Remove.
7064 (syms_of_w32menu): Don't initialise variables that have moved
7066 (set_frame_menubar): Sync with version in xmenu.c.
7067 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7069 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7072 2008-06-09 Jason Rumney <jasonr@gnu.org>
7074 Changes to w32 files related to the move of common menu code
7075 to menu.c on 2008-06-08 by Chong Yidong.
7077 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7079 (single_keymap_panes, push_menu_item, push_menu_pane):
7080 Make globally visible.
7082 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7083 (local_free, malloc_widget_value, free_widget_value)
7084 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7085 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7086 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7087 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7088 (menu_items, menu_items_allocated, menu_items_used)
7089 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7090 (init_menu_items, finish_menu_items, discard_menu_items)
7091 (grow_menu_items, push_submenu_start, push_submenu_end)
7092 (push_left_right_boundary, push_menu_pane, push_menu_item)
7093 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7094 (free_menubar_widget_tree_value, parse_single_submenu)
7095 (update_submenu_strings): Remove functions.
7096 (xmalloc_widget_value): Remove and declare extern.
7098 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7101 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7102 (local_heap, local_alloc, local_free, malloc_widget_value)
7103 (free_widget_value): Define here.
7105 2008-06-09 Kenichi Handa <handa@m17n.org>
7107 * font.h (Qascii_0): Extern it.
7109 * font.c (Qascii_0): New variable.
7110 (syms_of_font): DEFSYM it.
7111 (font_open_by_name): If the registry "iso8859-1" fails, try also
7114 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7116 2008-06-08 Kenichi Handa <handa@m17n.org>
7118 * .gdbinit (xfont): New command.
7120 2008-06-08 Andreas Schwab <schwab@suse.de>
7122 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7123 * Makefile.in (menu.o): Update dependencies.
7125 * Makefile.in (obj): Always add menu.o.
7126 * emacs.c (main): Always call syms_of_menu.
7127 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7129 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
7131 * Makefile.in: Compile menu.c.
7133 * lisp.h: Declare syms_of_menu.
7135 * emacs.c (main): Call syms_of_menu.
7137 * keyboard.h: Relocate platform-independent menu definitions from
7140 * menu.c: New file. Relocate platform-independent menu
7141 definitions from xmenu.c. Suggested by Adrian Robert.
7143 * xmenu.c: Remove platform-independent menu definitions.
7144 (menu_items menu_items_inuse, menu_items_allocated)
7145 (menu_items_used, menu_items_n_panes)
7146 (menu_items_submenu_depth): Move to keyboard.h.
7147 (init_menu_items, finish_menu_items, unuse_menu_items)
7148 (discard_menu_items, restore_menu_items, save_menu_items)
7149 (grow_menu_items, push_submenu_start, push_submenu_end)
7150 (push_left_right_boundary, push_menu_pane, push_menu_item)
7151 (keymap_panes, single_keymap_panes, single_menu_item)
7152 (list_of_panes, list_of_items, find_and_call_menu_selection)
7153 (xmalloc_widget_value, free_menubar_widget_value_tree)
7154 (parse_single_submenu, digest_single_submenu)
7155 (update_submenu_strings): Move to menu.c.
7157 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7159 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7161 2008-06-06 Miles Bader <miles@gnu.org>
7163 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7164 face, not frame default.
7166 2008-06-05 Martin Rudalics <rudalics@gmx.at>
7168 * window.c (pop_up_windows, pop_up_frames)
7169 (display_buffer_reuse_frames, Vpop_up_frame_function)
7170 (Vdisplay_buffer_function, Veven_window_heights)
7171 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7172 (Vspecial_display_function, Vsame_window_buffer_names)
7173 (Vsame_window_regexps, split_height_threshold)
7174 (Vsplit_window_preferred_function): Move those vars to window.el.
7175 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7176 (Fdisplay_buffer): Move those functions to window.el.
7177 (syms_of_window): Remove corresponding declarations.
7178 (display_buffer): New function.
7179 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7180 * dispnew.c (Flast_nonminibuf_frame): New function.
7181 * buffer.c (Fpop_to_buffer): Move to window.el.
7183 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7185 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7187 2008-06-05 Kenichi Handa <handa@m17n.org>
7189 * coding.c (detect_coding): Fix previous change.
7190 (detect_coding_system): Likewise.
7192 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7194 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7196 * keymap.c (Vminibuffer_local_filename_must_match_map):
7197 Rename from Vminibuffer_local_must_match_filename_map.
7199 * minibuf.c (Fcompleting_read): Adjust accordingly.
7200 * commands.h: Rename declaration as well.
7202 2008-06-05 Kenichi Handa <handa@m17n.org>
7204 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7206 (Ffont_put): Likewise.
7208 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7211 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7214 * xfaces.c (realize_x_face): If the font-related face attributes
7215 are the same as those of default face, realize a new fontset from
7217 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7219 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7221 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7222 (move_it_in_display_line): New wrapper.
7224 * window.c (window_scroll_pixel_based_preserve_x)
7225 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7226 (window_scroll_pixel_based, window_scroll_line_based):
7227 Use them to preserve column positions.
7228 (syms_of_window): Initialize them.
7230 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7233 * dispextern.h (move_it_in_display_line): Declare.
7235 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
7237 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7238 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7239 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7241 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
7243 * window.c (Fset_window_parameter): Doc fix.
7244 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7246 2008-06-04 Joakim Verona <joakim@verona.se>
7248 * window.h (struct window): Add new member window_parameters.
7250 * window.c (Fwindow_parameters, Fwindow_parameter)
7251 (Fset_window_parameter): New defuns.
7252 (syms_of_window): Defsubr the new defuns.
7253 (make_window): Initialize window_parameters to nil.
7255 2008-06-04 John Paul Wallington <jpw@pobox.com>
7257 * eval.c (Fdefmacro): Doc fix.
7259 2008-06-04 Kenichi Handa <handa@m17n.org>
7261 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7262 Be sure to call setup_coding_system when we find a proper coding system.
7263 (detect_coding_system): Fix handling of coding->head_ascii.
7265 2008-06-03 Andreas Schwab <schwab@suse.de>
7267 * font.c (font_prop_validate_spacing): Fix last change.
7269 2008-06-03 Kenichi Handa <handa@m17n.org>
7271 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7272 (font_parse_fcname): Fix handling of unknown key.
7274 * xfont.c (xfont_list): Try an alias.
7276 * charset.c (char_charset): Return NULL if the arg charset_list is
7277 specified and C doesn't belong to any of them.
7279 2008-06-02 Chip Coldwell <coldwell@redhat.com>
7281 * font.c (font_pixel_size): Don't take cdr of an integer.
7283 2008-06-02 Jim Meyering <meyering@redhat.com>
7285 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7286 * alloc.c (xfree): Return right away for a NULL arg.
7287 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7288 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7289 * mac.c (create_apple_event_from_event_ref): Likewise.
7290 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7292 * doprnt.c (doprnt1): Likewise.
7293 * frame.c (frame): Likewise.
7294 * keyboard.c (wipe_kboard): Likewise.
7295 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7296 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7297 * term.c (tty_default_color_capabilities, maybe_fatal)
7298 (delete_tty): Likewise.
7299 * w16select.c (string): Likewise.
7300 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7301 * w32bdf.c (w32_free_bdf_font): Likewise.
7302 * w32fns.c (w32_unload_font): Likewise.
7303 * w32font.c (w32font_close): Likewise.
7304 * window.c (size_window): Likewise.
7305 * xselect.c (receive_incremental_selection): Likewise.
7306 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7307 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7308 * w32.c (stat): Likewise.
7310 Remove useless if-before-free tests.
7311 * editfns.c (Fset_time_zone_rule): Likewise.
7312 * lread.c (nosuffix): Likewise.
7313 * ralloc.c (get_bloc): Likewise.
7314 * regex.c (reg_free): Likewise.
7315 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7316 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7317 * xsmfns.c (smc_save_yourself_CB): Likewise.
7319 2008-06-02 Kenichi Handa <handa@m17n.org>
7321 * font.c (font_find_for_lface): Handle float font size.
7322 (font_open_for_lface): Likewise.
7324 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7325 comparing the properties.
7327 2008-06-01 Jason Rumney <jasonr@gnu.org>
7329 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7330 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7331 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7332 Don't add empty script list.
7333 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7335 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7337 * Makefile.in (dot, dotdot): Remove, update users.
7338 ".." has been used elsewhere in the file for a long time.
7339 (LIBXT_STATIC): Remove conditional based on unused variable.
7341 2008-06-01 Miles Bader <miles@gnu.org>
7343 * xfaces.c (Vface_remapping_alist): New variable.
7344 (syms_of_xfaces): Initialize it.
7345 (enum named_merge_point_kind): New type.
7346 (struct named_merge_point): Add `named_merge_point_kind' field.
7347 (push_named_merge_point): Make cycle detection respect different
7348 named-merge-point kinds.
7349 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7350 Remove face-name alias resolution.
7351 (lface_from_face_name): New definition using
7352 `lface_from_face_name_no_resolve'.
7353 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7354 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7355 (get_lface_attributes): New definition that layers face-remapping on
7356 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7357 (lookup_basic_face): New function.
7358 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7359 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7360 `get_lface_attributes'.
7361 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7362 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7363 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7365 * xdisp.c (init_iterator): Pass base_face_id through
7366 `lookup_basic_face' when we actually use it as a face-id.
7367 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7370 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7371 lookup the initial face-id.
7373 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7375 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
7377 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7378 (Fremove_text_properties): Fix typos in docstrings.
7380 2008-05-31 Kenichi Handa <handa@m17n.org>
7382 * font.c (font_list_entities): Fix the car part of data to be
7383 stored in the cache.
7385 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7387 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7389 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7390 Add a `test' argument so another predicate than `equal' can be used.
7391 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7392 (map_char_table): Remove unused vars `c' and `i'.
7393 * lisp.h (Foptimize_char_table): Adjust declaration.
7394 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7396 2008-05-30 Kenichi Handa <handa@m17n.org>
7398 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7399 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7402 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7404 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7405 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7406 frame-local settings for the same variable.
7408 2008-05-30 Kenichi Handa <handa@m17n.org>
7410 * fontset.c (Ffont_info): Move to font.c.
7411 (syms_of_fontset): Delete defsubr of Sfont_info.
7413 * font.c (font_style_to_value, font_score): Delete casting of the
7415 (register_font_driver): Increment num_font_drivers only when
7416 registering the driver globally.
7417 (Ffont_info): Move from fontset.c. Handle a font object too.
7418 (syms_of_font): Defsubr Sfont_info.
7420 2008-05-29 Kenichi Handa <handa@m17n.org>
7422 * coding.h (enum define_coding_utf8_arg_index): New enum.
7423 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7424 coding_attr_utf_bom.
7425 (enum utf_bom_type): Rename from utf_16_bom_type.
7426 (struct utf_16_spec): Adjust for the above change.
7427 (struct coding_system): Add utf_8_bom in `spec' union.
7429 * coding.c (CODING_UTF_8_BOM): New macro.
7430 (enum coding_category): Delete coding_category_utf_8, add
7431 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7432 coding_category_utf_8_sig.
7433 (CATEGORY_MASK_UTF_8): Delete it.
7434 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7435 (CATEGORY_MASK_UTF_8_SIG): New macros.
7436 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7437 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7438 CATEGORY_MASK_UTF_8_SIG.
7439 (CATEGORY_MASK_UTF_8): New macro.
7440 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7441 (detect_coding_utf_8): Check BOM.
7442 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7443 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7444 (encode_coding_utf_16): Likewise.
7445 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7446 (detect_coding, detect_coding_system): Handle utf-8-auto.
7447 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7448 (syms_of_coding): Fix setting up of Vcoding_category_table.
7450 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7452 * process.c (Faccept_process_output): If `millisec' is non-nil,
7453 `seconds' default to 0.
7454 (wait_reading_process_output): Also return non-nil if we read output
7455 from a non-running process.
7457 2008-05-29 Jason Rumney <jasonr@gnu.org>
7459 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7461 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7462 in the uniscribe backend, but disallow any font that has no
7463 unicode subrange support.
7465 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
7467 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7468 Fix typos in docstrings.
7470 2008-05-29 Kenichi Handa <handa@m17n.org>
7472 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7473 (Fx_family_fonts): Set frame correctly.
7475 2008-05-28 Jason Rumney <jasonr@gnu.org>
7477 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7479 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7481 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7482 calling build_annotations.
7484 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
7486 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7487 (Fencode_coding_string):
7488 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7489 <latin-extra-code-table>: Fix typos in docstrings.
7490 (syms_of_coding) <coding-system-alist>: Doc fix.
7491 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7493 2008-05-28 Kenichi Handa <handa@m17n.org>
7495 * fontset.c (Ffont_info): Don't call font_close_object.
7497 * font.c (font_parse_family_registry): Use Ffont_put to validate
7499 (font_delete_unmatched): Don't check spacing.
7500 (font_list_entities): Add spacing to the spec to list fonts.
7502 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7503 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7505 * coding.c (encode_coding_raw_text): Fix previous change.
7506 (encode_coding_object): When the dst_object is a buffer and is
7507 different from src_object, move gap to PT.
7509 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7511 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7513 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7515 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7516 all branches. Compute it differently.
7518 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7520 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
7522 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7523 into "else if () ... else ...".
7525 2008-05-27 Jason Rumney <jasonr@gnu.org>
7527 * w32font.c (w32font_open_internal): Determine if glyph indices
7528 are likely to work here.
7530 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7532 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7533 draw overlap glyphs with appropriate highlighting.
7535 2008-05-27 Kenichi Handa <handa@m17n.org>
7537 * xfont.c (xfont_open): Fix calculation of font->average_width.
7539 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7541 * casefiddle.c (casify_object): Try to guess better whether the
7542 argument is a byte or a char.
7544 2008-05-26 Andreas Schwab <schwab@suse.de>
7546 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7547 Always send multiples of format size.
7549 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7551 2008-05-26 Jason Rumney <jasonr@gnu.org>
7553 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7554 (compute_metrics): Don't set failure if we just cleared the cache.
7555 (w32_weight_table): Remove unused variable.
7556 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7557 backwards compatibility.
7559 2008-05-25 Kenichi Handa <handa@m17n.org>
7561 * w32term.c (x_draw_glyph_string):
7562 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7564 * xfaces.c: Delete unused function prototypes.
7565 (xstrlwr, font_frame): Delete them.
7566 (clear_face_cache): Delete unused variable.
7568 * xftfont.c (xftfont_open): Delete unused variable.
7569 If underline_thickness is not 1, adjust underline_position.
7571 * ftxfont.c (ftxfont_open): Delete unused variable.
7573 * fontset.c (face_for_char): Optimize for the case of no charset
7576 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7577 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7578 (otf_open, font_otf_capability, generate_otf_features)
7579 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7580 Comment out by surrounding "#if 0" and "#endif" for the moment.
7581 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7582 (syms_of_font): Codes for accessing above commented out.
7584 2008-05-24 Eli Zaretskii <eliz@gnu.org>
7586 * w32proc.c: Include dispextern.h.
7588 * w32.c: Include dispextern.h.
7590 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
7592 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7593 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7594 Fix typos in docstrings.
7596 2008-05-23 Jason Rumney <jasonr@gnu.org>
7598 * xsmfns.c: Remove includes that are already included by config.h.
7600 2008-05-23 Kenichi Handa <handa@m17n.org>
7602 * charset.c (Qemacs, charset_emacs): New variables.
7603 (char_charset): Fix for non-Unicode characters.
7604 (syms_of_charset): Define charset_emacs.
7606 * w32term.c (x_draw_glyph_string): Be sure to update
7607 s->underline_thickness and s->underline_position. Be sure to draw
7608 underline within the current line area.
7610 * xterm.c (x_draw_glyph_string): Be sure to update
7611 s->underline_thickness and s->underline_position. Be sure to draw
7612 underline within the current line area.
7614 * fontset.c: Delete unused variables and add casting for char *
7615 throughout the file.
7616 (fontset_font): Try the fallback fonts of the current fontset
7617 before consulting the default fontset.
7619 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7621 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7623 2008-05-22 Jason Rumney <jasonr@gnu.org>
7625 * font.c: Don't include strings.h.
7627 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7629 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7630 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7631 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7632 to call xstrcasecmp.
7634 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7636 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7638 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7640 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7642 2008-05-22 Kenichi Handa <handa@m17n.org>
7644 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7646 * font.c (font_prop_validate_style): Adjust for the format
7647 change of font_style_table.
7649 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7652 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7655 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7657 * minibuf.c (keys_of_minibuf): Delete.
7658 * lisp.h (keys_of_minibuf): Delete.
7659 * emacs.c (main): Don't call keys_of_minibuf.
7661 2008-05-22 Kenichi Handa <handa@m17n.org>
7663 * ftfont.c (ftfont_resolve_generic_family): Rename from
7664 ftfont_list_generic_family. Return a single family for each
7666 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7667 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7669 (ftfont_match): Call font_add_log.
7671 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7672 (FONT_DEBUG): Define it.
7673 (font_add_log): Extern it.
7674 (font_assert): Rename from xassert.
7676 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7677 (xfont_list_family): Call font_add_log.
7678 (xfont_match): Likewise.
7679 (memq_no_quit): Delete.
7681 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7682 call of Ffont_xlfd_name.
7684 * xfaces.c (struct table_entry, slant_table, weight_table)
7685 (swidth_table): Move to font.c.
7687 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7688 xassert are changed to font_assert. Delete many unused variables.
7689 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7691 (struct table_entry): Move from xfaces.c and modified.
7692 (weight_table, slant_table, width_table): Move from xfaces.c and
7693 contents adjusted for the change of struct table_entry.
7694 (font_style_to_value, font_style_symbolic): Adjust for the
7695 format change of font_style_table.
7696 (font_parse_family_registry): Don't overwrite existing foundry and
7697 family of font_spec.
7698 (font_score): Fix calculation of diff for sizes.
7699 (font_sort_entites): Call font_add_log.
7700 (font_delete_unmatched): Return a newly created list.
7701 (font_list_entities): Fix previous change. Call font_add_log.
7702 (font_matching_entity, font_open_entity, font_close_entity):
7704 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7705 (Finternal_set_font_style_table): Delete.
7706 (BUILD_STYLE_TABLE): New macro.
7707 (build_style_table): New function.
7708 (Vfont_log, font_log_env_checked): New variables.
7709 (font_add_log): New function.
7710 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7711 Declare Lisp variables "font-weight-table", "font-slant-table",
7712 "font-width-table", and "font-log". Initialize font_style_table.
7714 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7716 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7718 2008-05-21 Seiji Zenitani <zenitani@mac.com>
7719 Ryo Yoshitake <ryo@shiftmode.net>
7721 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7722 (Vframe_alpha_lower_limit): New variable.
7723 (x_set_alpha): New function.
7725 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7727 * xfns.c (x-create-frame, Qalpha):
7728 Initialize the frame parameter `alpha'.
7729 * xterm.c (OPAQUE, OPACITY): New.
7730 (x_set_frame_alpha): New function.
7731 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7733 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7734 * w32fns.c (w32_frame_parm_handlers): Likewise.
7736 2008-05-20 Jason Rumney <jasonr@gnu.org>
7738 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7739 truetype fonts to opentype list.
7741 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
7743 * fontset.c (Ffontset_info): Doc fix.
7744 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7745 <ignore-relative-composition>: Fix typos in docstrings.
7747 * font.c (syms-of-font) <font-encoding-alist>:
7748 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7749 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7750 (Ffont_otf_alternates): Doc fixes.
7752 2008-05-20 Kenichi Handa <handa@m17n.org>
7754 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7755 font.h through out the file.
7756 (FONT_DRIVERS): Rename from FONTOBJ.
7757 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7758 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7760 * emacs.c (main): Call syms_of_font unconditionally.
7762 * font.h (find_font_encoding): Extern it.
7764 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7766 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7767 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7768 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7769 only when HAVE_WINDOW_SYSTEM is defined.
7770 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7771 when HAVE_WINDOW_SYSTEM is defined.
7773 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7774 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7776 * xfaces.c: Include font.h unconditionally.
7777 (merge_face_ref, merge_face_vectors)
7778 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7780 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7782 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7784 * eval.c (lisp_indirect_variable): New fun.
7785 (Fuser_variable_p): Use it.
7787 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7789 * lisp.h (indirect_variable):
7790 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7791 Use Lisp_Symbol pointers rather than Lisp_Object.
7793 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7794 To this end, change calling-convention.
7796 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7797 if some non-hidden buffers are selected by string&pred.
7799 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
7801 * process.c (wait_reading_process_output): Always check status
7804 2008-05-19 Kenichi Handa <handa@m17n.org>
7806 * font.c (font_list_entities): Fix handling of cache.
7807 (font_matching_entity): Likewise.
7809 * ftfont.c (cs_iso8859_1): Delete.
7810 (ft_face_cache): New variable.
7811 (struct ftfont_info): New member fc_charset_idx.
7812 (ftfont_build_basic_charsets): Delete.
7813 (fc_charset_table): New variable.
7814 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7815 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7817 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7818 (ftfont_spec_pattern): New argument fc_charset_idx.
7819 Check registry more rigidly. Change callers.
7820 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7821 change of :font-entity property of the font.
7823 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7824 property of the font.
7826 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
7828 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7829 (Funencodable_char_position, Fcheck_coding_systems_region)
7830 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7831 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7832 (Ffind_operation_coding_system, Fset_coding_system_priority)
7833 (Fcoding_system_eol_type): Doc fixes.
7835 2008-05-17 Glenn Morris <rgm@gnu.org>
7837 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7839 2008-05-16 Eli Zaretskii <eliz@gnu.org>
7841 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7844 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7845 HAVE_WINDOW_SYSTEM is not defined.
7847 * xfaces.c (merge_face_ref, merge_face_vectors)
7848 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7849 HAVE_WINDOW_SYSTEM is defined.
7850 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7852 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7854 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7856 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7858 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7860 2008-05-15 Kenichi Handa <handa@m17n.org>
7862 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7865 2008-05-15 Glenn Morris <rgm@gnu.org>
7867 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7869 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
7871 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7872 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7874 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7876 2008-05-15 Kenichi Handa <handa@m17n.org>
7878 * ftfont.c (ftfont_list): Downcase family name to check generic
7881 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7882 font-spec for QCfont value.
7884 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7885 buffer. Check the return value of it.
7887 2008-05-14 Jason Rumney <jasonr@gnu.org>
7889 * w32term.c (w32_get_glyph_overhangs): Remove.
7890 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7892 2008-05-14 Kenichi Handa <handa@m17n.org>
7894 * font.c (font_prop_validate): Make nil a valid value.
7895 (font_clear_cache): Check if the cached vector of entities is nil
7898 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7900 * emacs.c (main_thread): Conditionalize on
7901 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7902 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7904 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7905 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7906 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7908 2008-05-14 Kenichi Handa <handa@m17n.org>
7910 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7911 has no corresponding coding system.
7913 2008-05-14 Jason Rumney <jasonr@gnu.org>
7915 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7917 * w32font.h (w32font_open_internal): Update declaration.
7919 * w32font.c (w32font_open_internal): Change last argument from
7920 w32font_info struct to font object. Fill in font object from
7921 font_entity. Get Outline metrics if possible. Use them to
7922 calculate underline position and thickness. Use xlfd name as name
7923 property. Don't set codepage.
7924 (w32font_open): Pass font_object to w32font_open_internal. Don't
7925 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7926 (w32font_draw): Use s->font.
7927 (clear_cached_metrics): Don't clear non-existent blocks.
7929 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7931 (x_draw_glyph_string): Use underline position and thickness from font.
7933 * w32uniscribe.c (uniscribe_open): Pass font_object to
7934 w32font_open_internal.
7936 2008-05-14 Kenichi Handa <handa@m17n.org>
7938 These changes are to delete all legacy font-handling codes, and
7939 make Emacs use only font-backends.
7941 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7942 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7944 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7946 * charset.h (Vcharset_non_preferred_head)
7947 (Vcurrent_iso639_language): Extern them.
7949 * charset.c (Vcharset_non_preferred_head): New variable.
7950 (Vcurrent_iso639_language): New variable.
7951 (syms_of_charset): Declare it as a Lisp variable.
7952 (char_charset): Don't check non preferred charsets. As a last
7953 resort, return charset_unicode.
7954 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7956 * composite.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.
7960 * dispextern.h (struct glyph_string): Change type of `font' to
7962 (struct glyph_string): New member underline_position and
7963 underline_thickness.
7964 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7965 (struct face): Change type of `font' to `struct font *'. Remove
7966 members `font_name', `font_info_id'.
7967 (per_char_metric, encode_char): Delete externs.
7968 (calc_pixel_width_or_height): Adjust the prototype.
7970 * emacs.c (enable_font_backend): Delete extern.
7971 (main): Don't set enable_font_backend. Don't check the command
7972 line argument "-disable-font-backend".
7974 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7975 (enum font_property_index): New members FONT_DPI_INDEX,
7976 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7977 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7978 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7979 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7980 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7981 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7982 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7983 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7984 (struct font_spec, struct font_entity): New structs.
7985 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7986 (struct font): Many members from old "struct font_info" moved to
7987 here. Members font and entity deleted.
7988 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7989 the new font-related objects.
7990 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7991 (CHECK_FONT_GET_OBJECT): Likewise.
7992 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7993 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7994 (struct font_driver): New members case_sensitive anc check. Type
7995 of the member list and open changed.
7996 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7997 (font_symbolic_width, font_find_object, font_get_spec)
7998 (font_set_lface_from_name): Delete extern.
7999 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8001 * font.c: Include <strings.h>.
8002 (enable_font_backend): Delete it.
8003 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8004 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8005 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8006 (null_string): Delete it.
8007 (null_vector): Make it static.
8008 (font_family_alist): Delete it.
8009 (Qnormal): Extern it.
8010 (QCextra, QClanguage): Delete it.
8011 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8012 (font_make_spec, font_make_entity, font_make_object)
8013 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8014 the string. Callers changed.
8015 (font_pixel_size): Adjusted for the format change of font-related
8017 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8018 (font_style_to_value, font_style_symbolic): New function.
8019 (build_font_family_alist): Delete it.
8020 (font_registry_charsets): Use Fassoc_string instead of
8022 (font_prop_validate_symbol): Don't return null_string.
8023 (font_prop_validate_style): Adjusted for the change of
8024 style-related values in a font vector.
8025 (font_property_table): Delete entries for QClanguage and
8026 QCantialias, add entries for QCavgwidth.
8027 (get_font_prop_index): Delete the 2nd argument FROM.
8028 (font_prop_validate): Arguments changed.
8029 (font_put_extra): Adjusted for the change of font-related objects.
8030 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8031 (font_parse_fcname, font_unparse_fcname)
8032 (font_prepare_composition): Likewise.
8033 (font_parse_family_registry): Renamed from font_merge_old_spec.
8034 (otf_open): Delete the 1st arg entity.
8035 (font_otf_capability): Adjusted for the above change.
8036 (font_score): New arg alternate_families. Adjusted for the change
8037 of font-related objects.
8038 (font_sort_entites): New arg best_only.
8039 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8041 (font_match_p): Check alternate families.
8042 (font_find_object): Delete it.
8043 (font_check_object): New function.
8044 (font_clear_cache): Adjusted for the change of font-related objects.
8045 (font_delete_unmatched): New arg.
8046 (font_list_entities): Call font_driver->list with a spec that
8047 doesn't specify style-related properties.
8048 (font_matching_entity): Arguments changed. Caller changed.
8049 (font_open_entity): Adjusted for the change of font-related objects.
8050 (font_close_object, font_has_char, font_encode_char)
8051 (font_get_name, font_get_spec): Likewise.
8052 (font_spec_from_name, font_clear_prop, font_update_lface):
8054 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8055 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8056 (font_at): Adjusted for the change of font-related objects.
8057 (font_range): New function.
8058 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8059 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8060 (Fcopy_font_spec, Fmerge_font_spec): New function.
8061 (Ffont_family_list): Renamed from list-families.
8062 (Finternal_set_font_style_table): Arguments changed.
8063 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8064 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8065 change of font-related objects.
8066 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8068 * fontset.h (struct font_info): Delete it. Most members go to
8070 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8071 (enum FONT_SPEC_INDEX): Delete it.
8072 (font_info, list_fonts_func, load_font_func, query_font_func)
8073 (set_frame_fontset_func, find_ccl_program_func)
8074 (get_font_repertory_func, new_fontset_from_font_name): Delete
8076 (fontset_from_font_name): Extern it.
8077 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8078 (FONT_INFO_FROM_FACE): Deleted.
8079 (face_for_font): Adjust prototype.
8081 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8082 conditionals. Don't check enable_font_backend. Delete all codes
8083 used only when USE_FONT_BACKEND is not defined.
8084 (get_font_info_func, list_font_func, load_font_func)
8085 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8086 (get_font_repertory_func): Delete them.
8087 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8088 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8089 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8090 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8091 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8092 (fontset_compare_rfontdef): New function.
8093 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8094 rfont-defs by qsort. Adjusted for the change of font-group vector.
8095 (load_font_get_repertory): Deleted.
8096 (fontset_find_font): Use new macros to ref/set elements of
8097 font-def and rfont-def.
8098 (fontset_font): Fix the timing of remembering that no font for C.
8099 (free_face_fontset): Do nothing if the face has no fontset.
8100 (face_suitable_for_char_p): Use new macros to ref/set elements of
8102 (face_for_char): Likewise. Call face_for_char with font_object.
8103 (fs_load_font): Delete. Delete #pragma surrounding it.
8104 (fs_query_fontset): Use strcasecmp instead of strcmp.
8105 (generate_ascii_font_name): Adjusted for the format change of
8107 (Fset_fontset_font): Likewise. Use new macros to set elements of
8109 (Fnew_fontset): Use font_unparse_xlfd to generate
8110 FONTSET_ASCII (fontset).
8111 (new_fontset_from_font_name): Deleted.
8112 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8113 a fontset is already created for the font. FIx updating of
8114 Vfontset_alias_alist.
8115 (fontset_ascii_font): Deleted.
8116 (Ffont_info): Adjusted for the format change of font-spec.
8117 (Finternal_char_font): Likewise.
8118 (Ffontset_info): Likewise.
8119 (syms_of_fontset): Don't check load_font_func.
8121 * fns.c (internal_equal): Handle PREV_FONT.
8123 * frame.h: Delete USE_FONT_BACKEND conditional.
8125 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8126 conditionals. Don't check enable_font_backend. Delete all codes
8127 used only when USE_FONT_BACKEND is not defined.
8128 (x_set_font): Call x_new_font, not x_new_fontset2.
8129 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8130 already set for the frame.
8132 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8133 a font-entity by font_make_entity. Use font_intern_prop instead
8134 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8135 font property. If a font is scalable, set avgwidth property to 0.
8136 Set font-entity property by font_put_extra.
8137 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8138 (ffont_driver): Adjusted for the change of struct font_driver.
8139 (ftfont_spec_pattern): New function.
8140 (ftfont_list): Return a list, not vector.
8141 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8142 (ftfont_list_family): Don't downcase names.
8143 (ftfont_free_entity): Deleted.
8144 (ftfont_open): Return a font-object. Adjusted for the change of
8145 struct font. Get underline_thickness and underline_position from
8146 font property. Don't update dpyinfo->smallest_font_height and
8147 dpyinfo->smallest_char_width.
8148 (ftfont_close): Don't free `struct font'.
8149 (ftfont_has_char): Adjusted for the format change of font-entity.
8150 (ftfont_encode_char, ftfont_text_extents): Likewise.
8152 * ftxfont.c (ftxfont_list): Return a list, not vector.
8153 (ftxfont_open): Return a font-object. Adjusted for the change of
8154 struct font. Get underline_thickness and underline_position from
8155 font property. Don't update dpyinfo->smallest_font_height and
8156 dpyinfo->smallest_char_width.
8157 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8158 (ftxfont_draw): Adjusted for the change of struct font.
8160 * image.c (image_ascent): Don't include "charset.h". Include
8161 "character.h" and "font.h".
8163 * lisp.h (enum pvec_type): New member PREV_FONT.
8164 (Fassoc_string): EXFUN it.
8166 * print.c: Include font.h.
8167 (print_object): Handle font-related objects.
8169 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8170 conditionals. Don't check enable_font_backend. Delete all codes
8171 used only when USE_FONT_BACKEND is not defined.
8172 (handle_auto_composed_prop): Do nothing if it->f is not on a
8173 window system. Check how many following characters can be
8174 displayed by the same font.
8175 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8177 (get_char_face_and_encoding): Assign the whole encoding task to
8178 the `encode-char' method of a font driver.
8179 (fill_composite_glyph_string): Adjusted for the change of `struct
8180 face' and `struct glyph_string'.
8181 (fill_glyph_string): Likewise.
8182 (get_per_char_metric): Arguments changed.
8183 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8184 and `struct glyph_string'.
8185 (produce_stretch_glyph, calc_line_height_property)
8186 (x_produce_glyphs): Likewise.
8188 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8189 conditionals. Don't check enable_font_backend. Delete all codes
8190 used only when USE_FONT_BACKEND is not defined. Use
8191 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8192 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8194 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8196 (struct font_name): Deleted.
8197 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8198 (compare_fonts_by_sort_order): New function.
8199 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8200 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8202 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8203 compare_fonts_by_sort_order.
8204 (Fx_font_family_list): Call Ffont_family_list.
8205 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8206 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8207 (face_symbolic_slant, face_symbolic_swidth)
8208 (split_font_name_into_vector, build_font_name_from_vector)
8209 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8210 (font_rescale_ratio, split_font_name, build_font_name)
8211 (free_font_names, sort_fonts, x_face_list_fonts)
8212 (face_font_available_p, sorted_font_list, cmp_font_names)
8213 (font_list_1, concat_font_list, font_list, remove_duplicates):
8215 (Fx_list_fonts): Use Ffont_list.
8216 (LFACE_AVGWIDTH): Deleted.
8217 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8219 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8220 (set_lface_from_font_name): Delete it.
8221 (set_lface_from_font): Renamed from
8222 set_lface_from_font_and_fontset. Caller changed. Don't set
8223 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8225 (merge_face_vectors): Copy font-spec if necessary.
8226 Clear properties of the font-spec if necessary.
8227 (merge_face_ref): Clear properties of the font-spec if necessary.
8228 (Finternal_set_lisp_face_attribute): Likewise.
8229 (set_font_frame_param): Use font_load_for_lface to load a
8230 font-object, and call Fmodify_frame_parameters with it.
8231 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8232 font name by Ffont_xlfd_name.
8233 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8234 QCslant, and QCwidth.
8235 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8236 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8237 Compare fonts by EQ.
8238 (lookup_non_ascii_face): Deleted.
8239 (face_for_font): The 2nd argument changed.
8240 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8241 Check atomic font properties by case insensitive.
8242 (realize_non_ascii_face): Set face->overstrike correctly.
8243 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8244 (dump_realized_face): Get font name from
8245 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8247 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8248 conditionals. Don't check enable_font_backend. Delete all codes
8249 used only when USE_FONT_BACKEND is not defined.
8250 (xic_create_xfontset): Original code deleted and renamed from
8251 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8252 (x_make_gc): Don't set GCFont in GCs.
8253 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8255 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8256 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8257 get_font_repertory_func.
8259 * xfont.c: Include <stdlib.h> and "ccl.h".
8260 (struct xfont_info): New structure.
8261 (xfont_query_font): Deleted.
8262 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8264 (xfont_driver): Adjusted for the change of struct font_driver.
8265 (compare_font_names): New function.
8266 (xfont_list_pattern): Sort font names case insensitively. Make
8267 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8268 (xfont_list): Return a list, not vector.
8269 (xfont_match): If the font doesn't have QCname property, generate
8270 a name from the other font properties.
8271 (xfont_open): Return a font-object. Adjusted for the change of
8272 struct font. Get underline_thickness and underline_position from
8273 font property. Don't update dpyinfo->smallest_font_height and
8274 dpyinfo->smallest_char_width.
8275 (xfont_close): Don't free struct font.
8276 (xfont_prepare_face): Adjusted for the change of struct font.
8277 (xfont_done_face): Deleted.
8278 (xfont_has_char): Adjusted for the change of struct font.
8279 (xfont_encode_char, xfont_draw): Likewise.
8280 (xfont_check): New function.
8282 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8284 (xftfont_match): Adjusted for the format change of font-entity.
8285 (xftfont_open): Adjusted for the format change of font-entity and
8286 font-object. Adjusted for the change of struct font. Return a
8287 font-object. Don't update dpyinfo->smallest_font_height and
8288 dpyinfo->smallest_char_width.
8289 (xftfont_close): Block input while calling XftFontClose.
8290 (xftfont_prepare_face): Don't block input while calling
8291 xftfont_get_colors. Adjusted for the change of struct font.
8292 (xftfont_shape): Return value of error case fixed.
8294 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8296 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8298 (FONT_WIDTH): Return (f)->max_width.
8299 (struct x_display_info): Delete member `font'.
8300 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8301 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8302 (struct x_output): Change type of `font' to `struct font *'.
8304 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8305 conditionals. Don't check enable_font_backend. Delete all codes
8306 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8307 (x_per_char_metric, x_encode_char): Deleted.
8308 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8309 (x_compute_glyph_string_overhangs): Adjusted for the change of
8311 (x_draw_glyph_string_foreground)
8312 (x_draw_composite_glyph_string_foreground): Likewise.
8313 (x_draw_glyph_string): Likewise. Use font->underline_position and
8314 font->underline_thickness.
8315 (x_new_font): Renamed from x_new_fontset2.
8316 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8317 (x_check_font): Call `check' method of a font driver.
8318 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8319 (x_query_font, x_get_font_repertory): Deleted.
8320 (x_find_ccl_program): Renamed and moved to xfont.c.
8321 (x_redisplay_interface): Adjusted for the change of `struct
8322 redisplay_interface'.
8324 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8325 conditionals. Don't check enable_font_backend. Delete all codes
8326 used only when USE_FONT_BACKEND is not defined. Surround non-used
8327 code by "#ifdef OLD_FONT" and "endif".
8328 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8330 * w32font.h (struct w32font_info): New member.
8331 (FONT_COMPAT): New macro.
8332 (w32font_open_internal): Prototype adjusted.
8334 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8335 OLD_FONT" and "endif".
8337 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8338 conditionals. Don't check enable_font_backend. Delete all codes
8339 used only when USE_FONT_BACKEND is not defined.
8340 (w32font_open): Return a font-object. Make a font-object by
8341 font_make_object. Adjusted for the change of struct w32font_info.
8342 (w32font_close): Don't free struct font. Adjusted for the change
8343 of struct w32font_info.
8344 (w32font_encode_char, w32font_text_extents, w32font_draw):
8345 Adjusted for the change of struct w32font_info.
8346 (w32font_draw): Likewise.
8347 (w32font_list_internal): Return a list, not vector.
8348 (w32font_open_internal): Change the 4th arg to font-object.
8349 Adjusted for the change of struct w32font_info and font-object format.
8350 (add_font_name_to_list): Don't downcase names.
8351 (w32_enumfont_pattern_entity): Make a font-entity by
8352 font_make_entity. Adjusted for the format change of font-entity.
8353 Use FONT_SET_STYLE to set a style-related font property. If a
8354 font is scalable, set avgwidth property to 0. Set font-entity
8355 property by font_put_extra.
8356 (font_matches_spec): Adjusted for the format change of font-entity.
8357 (w32_weight_table, w32_decode_weight): New variables.
8358 (w32_encode_weight): New function.
8359 (fill_in_logfont): Adjusted for the format change of font-spec.
8360 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8362 (w32font_driver): Adjusted for the change of struct font_driver.
8364 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8365 conditionals. Don't check enable_font_backend. Surround non-used
8366 code by "#ifdef OLD_FONT" and "endif".
8367 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8368 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8370 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8371 conditionals. Don't check enable_font_backend. Delete all codes
8372 used only when USE_FONT_BACKEND is not defined. Surround non-used
8373 code by "#ifdef OLD_FONT" and "endif".
8375 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8376 (uniscribe_open): Return value changed to font-object.
8377 Adjusted for the format change of font-object.
8378 (uniscribe_otf_capability): Adjusted for the change of struct font.
8379 (add_opentype_font_name_to_list): Don't downcase names.
8380 (uniscribe_font_driver): Adjusted for the change of struct
8383 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
8385 * dispnew.c (update_frame_1): Check if tty output is still valid
8388 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8390 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8393 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8395 * dired.c (file_name_completion): Tweak the code so as to always do it
8396 in a single pass. Tighten the scope of some variables.
8398 * dired.c (Qdefault_directory): New var.
8399 (file_name_completion): Use it instead of Fexpand_file_name.
8400 (syms_of_dired): Initialize it.
8402 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8404 * fileio.c (double_dollars): Remove dead code.
8406 2008-05-10 Eli Zaretskii <eliz@gnu.org>
8408 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8409 Mention w32-get-true-file-attributes in doc string.
8411 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8413 2008-05-09 Glenn Morris <rgm@gnu.org>
8415 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8418 2008-05-09 Eli Zaretskii <eliz@gnu.org>
8420 Support for reporting owner and group of each file on MS-Windows:
8421 * dired.c (stat_uname, stat_gname): New functions, with special
8422 implementation for w32.
8423 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8425 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8426 (dflt_group_name): New static variable.
8427 (dflt_group): Rename from the_group.
8428 (init_user_info): Init dflt_group fields. Get user's group name
8429 from LookupAccountSid.
8430 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8431 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8432 New initialization states.
8433 (globals_of_w32): Initialize them to zero. Initialize the default
8434 group name to "None".
8435 (GetFileSecurity_Name): New global var, the name of the function
8436 to call for GetFileSecurity.
8437 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8438 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8439 (get_file_security, get_security_descriptor_owner)
8440 (get_security_descriptor_group, is_valid_sid)
8441 (get_file_security_desc, get_rid, get_name_and_id)
8442 (get_file_owner_and_group): New functions.
8443 (stat): Use get_file_security_desc and get_file_owner_and_group to
8444 report the owner and primary group of each file. Don't ignore the
8445 high 32 bits of file's size, now that st_size is 64-bit wide.
8446 Fix test when to get true file attributes.
8447 (init_user_info): Use get_rid instead of equivalent inline code.
8448 (fstat): Don't ignore the high 32 bits of file's size.
8450 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
8452 * image.c (png_load): Use correct bit-depth for setting background
8455 2008-05-08 Eli Zaretskii <eliz@gnu.org>
8457 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8460 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
8462 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8464 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8466 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8467 because the original parameters are in pure storage now.
8468 (mac_window): Remove unused params. Update callers.
8470 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8472 * lread.c (substitute_object_recurse): Use lower-level primitives.
8473 Don't signal errors when traversing sub-char-tables.
8474 Don't loop over all the possible characters when traversing char-tables.
8476 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8477 just like we do in print.c.
8479 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8481 * minibuf.c (Ftry_completion): Remove code left over from when we used
8482 scmp instead of Fcompare_strings.
8484 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
8486 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8488 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8490 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8491 Create bitmap context in native byte order.
8493 * macterm.c (XDrawLine)
8494 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8495 context in native byte order.
8497 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8499 * config.in: Regenerate.
8501 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8502 New definitions for Image I/O support.
8503 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8504 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8505 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8506 (mac_data_provider_release_data, image_load_image_io)
8507 [USE_MAC_IMAGE_IO]: New functions.
8508 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8509 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8510 (init_image_func_pointer) [MAC_OSX]: Remove function.
8511 (image_load_quartz2d) [MAC_OSX]: Check availability of
8512 CGImageCreateWithPNGDataProvider at compile time.
8513 Use lowercase `false' for boolean constant.
8514 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8515 Use image_load_image_io.
8516 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8517 Don't check MyCGImageCreateWithPNGDataProvider.
8518 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8519 Don't call init_image_func_pointer.
8521 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8523 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8524 Make variable non-static.
8525 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8526 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8528 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8529 (RED_FROM_ULONG): Mask off higher bits.
8530 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8532 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8533 Include AvailabilityMacros.h.
8534 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8535 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8537 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8539 * chartab.c (Fset_char_table_range): If range is t, really set all
8540 chars to that value.
8542 2008-05-03 Eli Zaretskii <eliz@gnu.org>
8544 * dired.c (Ffile_attributes): Don't allow the device number become
8547 2008-05-02 Daiki Ueno <ueno@unixuser.org>
8549 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8551 2008-05-02 Juri Linkov <juri@jurta.org>
8553 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8554 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8555 DEFAULT argument as a list of default values in docstrings.
8557 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
8559 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8561 2008-05-01 Martin Rudalics <rudalics@gmx.at>
8563 * dispnew.c (change_frame_size_1): Preserve small windows when
8564 shrinking frames by calling set_window_height|width with third
8567 * window.h (struct window): Replace field too_small_ok by field
8568 resize_proportionally.
8570 * window.c (make_window): Initialize resize_proportionally.
8571 (enlarge_window): Temporarily set resize_proportionally to make
8572 sure that shrink_windows does scale the window proportionally.
8573 (shrink_windows): When window has resize_proportionally set try
8574 to shrink it proportionally by stealing from other windows.
8575 (struct saved_window, Fset_window_configuration)
8576 (compare_window_configurations): Handle resize_proportionally.
8577 (WINDOW_TOTAL_SIZE): New macro.
8578 (window_min_size, shrink_windows, size_window): Use it.
8579 (check_min_window_sizes): Remove. Invalid values of
8580 window-min-height|width are handled by window_min_size_2 now.
8581 (size_window, Fsplit_window, enlarge_window)
8582 (adjust_window_trailing_edge, grow_mini_window): Don't call
8583 check_min_window_sizes.
8584 (window_min_size_2, window_min_size_1, window_min_size):
8585 New argument safe_p for retrieving "safe" minimum sizes.
8586 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8587 (adjust_window_trailing_edge, grow_mini_window):
8588 Adjust arguments of window_min_size... functions.
8589 (shrink_windows): Argument min_size removed. New argument
8590 safe_p allows shrinking windows to their safe minimum sizes.
8591 Calculate minimum size and decide whether a window shall be
8592 deleted for each window individually.
8593 (size_window): When nodelete_p equals 2, tell shrink_windows to
8594 delete windows only if their new minimum size is no more safe.
8595 (shrink_window_lowest_first): Call window_min_size_1 to make
8596 sure to preserve modeline of bottom-most window when resizing
8598 (Fset_window_configuration, Fcurrent_window_configuration)
8599 (compare_window_configurations): Do not handle
8600 window-min-height|width any more.
8601 (syms_of_window): Clarify window-min-height|width doc-strings.
8603 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8605 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8606 some more. Copy some of the code from Ftry_completions.
8607 Remove special case code that dates back to initial revision when the
8608 slash was only added when necessary and that can't trigger nowadays.
8610 2008-04-27 Kenichi Handa <handa@m17n.org>
8612 * font.c (font_prop_validate): Signal `error' instead of `font'.
8614 2008-04-29 Jason Rumney <jasonr@gnu.org>
8616 * w32fns.c (Fw32_battery_status): New defun.
8617 (syms_of_w32fns): Defsubr it.
8619 2008-04-28 Andreas Schwab <schwab@suse.de>
8621 * dired.c (file_name_completion): Fix another mixing of encoded
8624 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
8626 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8628 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
8630 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8632 2008-04-27 Andreas Schwab <schwab@suse.de>
8634 * dired.c (file_name_completion): Fix inappropriate mixing of
8635 encoded and decoded names.
8637 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8639 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8641 2008-04-26 Eli Zaretskii <eliz@gnu.org>
8643 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8644 2008-03-31, it's not needed anymore with `struct stat' definition
8645 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8646 for the same reasons.
8648 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8650 * m/sparc.h: Additional redefinitions for GNU/Linux.
8652 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8654 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8655 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8656 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8657 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8658 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8659 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8660 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8663 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8664 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8665 (mac_ax_number_of_characters): Add externs.
8666 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8667 [USE_MAC_TSM]: Likewise.
8668 (mac_handle_text_input_event) [MAC_OSX]:
8669 Handle kEventTextInputOffsetToPos for no active input area case.
8670 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8671 (mac_handle_document_access_event)
8672 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8673 (install_application_handler) [MAC_OSX]: Register handlers for
8674 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8675 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8676 Register mac_handle_document_access_event.
8678 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8679 Make functions non-static.
8681 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8683 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8684 (read_file_name_completion_ignore_case, insert_default_directory)
8685 (Qdefault_directory): Move to minibuffer.el.
8686 (Fread_file_name): Call the new `read-file-name' instead.
8688 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8690 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8691 Make function non-static.
8692 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8694 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8695 Move to mactoolbox.c.
8696 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8698 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8699 (mac_rect_make): New macro.
8701 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8703 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8704 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8705 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8706 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8708 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8709 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8710 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8711 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8712 instead of WindowRef in argument type.
8713 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8714 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8715 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8716 instead of DISPLAY. All uses changed.
8717 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8718 (x_calc_absolute_position): Simplify so as not to use
8719 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8721 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8722 instead of WindowRef in argument type.
8723 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8724 [TARGET_API_MAC_CARBON]: Remove externs.
8725 (create_apple_event, mac_event_parameters_to_lisp)
8726 [TARGET_API_MAC_CARBON]: Add externs.
8728 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8729 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8730 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8732 (x_activate_menubar): Remove extern for saved_menu_event_location.
8733 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8736 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8738 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8739 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8741 2008-04-23 Jason Rumney <jasonr@gnu.org>
8743 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8744 attributes only for local files.
8746 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8749 2008-04-22 Juri Linkov <juri@jurta.org>
8751 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8752 read-buffer-to-switch instead of using the letter "B".
8754 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8756 * fileio.c (Qdefault_directory): New variable.
8757 (Fread_file_name): Use it to pass `dir' to the completion functions.
8759 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
8761 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8763 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8765 * keyboard.c (Vpre_help_message): Remove.
8766 (show_help_echo): Remove default C code.
8768 * dired.c (directory_files_internal, file_name_completion):
8769 Only call ENCODE_FILE if the string is indeed decoded.
8771 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8773 * Makefile.in (TOOLKIT_DEFINES): Remove.
8774 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8776 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8778 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8779 (mactoolbox.o): New target.
8781 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8782 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8784 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8785 Use mac_set_frame_window_background instead of XSetWindowBackground.
8786 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8787 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8788 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8789 instead of SetWindowTitleWithCFString.
8790 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8791 Move function to mactoolbox.c.
8792 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8793 Use mac_set_window_modified instead of SetWindowModified.
8794 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8795 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8796 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8797 FrontNonFloatingWindow. Use mac_activate_window instead of
8798 ActivateWindow. Use mac_active_non_floating_window instead of
8799 ActiveNonFloatingWindow.
8800 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8801 Use mac_show_hourglass and mac_hide_hourglass.
8802 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8803 instead of GetGlobalMouse.
8804 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8805 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8806 Use mac_bring_window_to_front instead of BringToFront.
8807 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8809 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8810 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8811 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8814 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8815 (XtPointer): Move typedef from macmenu.c.
8816 (enum button_type): Move enum from macmenu.c.
8817 (widget_value): Move typedef from macmenu.c.
8818 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8819 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8820 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8821 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8822 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8823 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8824 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8825 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8826 (Selection): Move typedef from macselect.c.
8827 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8829 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8830 (mac_is_window_collapsed, mac_bring_window_to_front)
8831 (mac_send_window_behind, mac_hide_window, mac_show_window)
8832 (mac_collapse_window, mac_front_non_floating_window)
8833 (mac_active_non_floating_window, mac_activate_window)
8834 (mac_move_window_structure, mac_move_window, mac_size_window)
8835 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8837 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8838 (enum mac_menu_kind): Move enum to mactoolbox.c.
8839 (min_menu_id): Move variable to mactoolbox.c.
8840 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8841 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8842 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8843 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8844 [TARGET_API_MAC_CARBON]: Likewise.
8845 (XtPointer): Move typedef to macgui.h.
8846 (enum button_type): Move enum to macgui.h.
8847 (widget_value): Move typedef to macgui.h.
8848 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8849 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8850 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8851 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8852 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8853 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8854 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8855 (popup_activated_flag): Make variable non-static.
8856 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8857 (add_menu_item, fill_menu, dispose_menus):
8858 Move functions to mactoolbox.c.
8859 (restore_show_help_function, menu_target_item_handler)
8860 (install_menu_target_item_handler, mac_handle_dialog_event)
8861 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8862 [TARGET_API_MAC_CARBON]: Likewise.
8863 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8864 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8865 (find_and_call_menu_selection, name_is_separator): Make function
8867 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8869 (set_frame_menubar): Don't call install_menu_quit_handler.
8870 (menu_item_selection): New variable.
8871 (mac_menu_show): Use create_and_show_popup_menu.
8872 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8873 selection but set variable menu_item_selection. All uses changed.
8874 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8875 Call install_menu_quit_handler. Move to mactoolbox.c.
8877 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8878 (Selection): Move typedef to macgui.h.
8879 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8880 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8881 Make variables non-static.
8882 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8883 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8884 Make functions non-static.
8885 (Vmac_service_selection) [MAC_OSX]: Likewise.
8886 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8887 (mac_valid_selection_target_p, mac_clear_selection)
8888 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8889 (mac_put_selection_value, mac_selection_has_target_p)
8890 (mac_get_selection_value, mac_get_selection_target_list)
8891 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8892 Move functions to mactoolbox.c.
8893 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8895 (copy_scrap_flavor_data, mac_handle_service_event)
8896 (install_service_handler) [MAC_OSX]: Likewise.
8897 (syms_of_macselect) <Vmac_dnd_known_types>:
8898 Use mac_dnd_default_known_types.
8900 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8901 Move to mactoolbox.c.
8902 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8903 (Fx_selection_owner_p): Add EXFUN.
8904 (install_window_handler, remove_window_handler, XSetWindowBackground):
8906 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8907 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8908 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8909 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8910 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8911 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8912 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8913 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8914 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8915 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8916 (mac_valid_selection_target_p, mac_clear_selection)
8917 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8918 (mac_put_selection_value, mac_selection_has_target_p)
8919 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8920 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8921 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8922 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8923 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8924 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8925 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8926 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8927 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8929 * mactoolbox.c: New file.
8931 2008-04-18 Jason Rumney <jasonr@gnu.org>
8933 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8935 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8937 * character.c (Fmultibyte_char_to_unibyte):
8938 Return latin1 chars unchanged.
8940 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8941 relocated if it points to `name'.
8943 2008-04-17 Kenichi Handa <handa@m17n.org>
8945 * data.c (Faset): Allow setting a multibyte character in an
8946 ASCII-only unibyte string.
8948 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8950 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8952 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8955 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
8957 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8958 (Fchar_direction): Add usage in the docstring.
8960 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
8962 * keyboard.c (read_key_sequence): Remove always-true checks.
8964 2008-04-14 Jason Rumney <jasonr@gnu.org>
8966 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8967 compatibility struct, for better underline positioning.
8969 2008-04-13 David Hansen <david.hansen@gmx.net>
8971 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8974 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8976 * m/hp800.h (XUINT, XSET): Remove.
8978 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
8980 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8983 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8985 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8986 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8988 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8990 * keymap.h (map_keymap_canonical): Declare.
8991 * xmenu.c (single_keymap_panes): Use it.
8993 2008-04-11 Glenn Morris <rgm@gnu.org>
8995 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8996 set the target's value to that of the alias.
8998 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9000 * term.c (set_tty_color_mode): Left over typo.
9002 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
9004 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9005 only after check for file name handler functions. Signal, when
9006 native functionality is not supported.
9007 (syms_of_fileio): Declare it unconditionally.
9009 2008-04-10 Jason Rumney <jasonr@gnu.org>
9011 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9012 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9014 * w32.c (logon_network_drive): Also logon to remote drives that
9015 are mapped to drive letters.
9017 2008-04-10 Glenn Morris <rgm@gnu.org>
9019 * xdisp.c (truncate-partial-width-windows): Doc fix.
9021 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9023 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9024 Move functions to minibuffer.el.
9025 (syms_of_fileio): Don't declare them.
9027 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9029 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9030 (syms_of_minibuf): Remove its initialization.
9032 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9034 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
9036 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9038 2008-04-09 Jason Rumney <jasonr@gnu.org>
9040 * makefile.w32-in (distclean): Delete makefile too.
9041 (maintainer-clean): New target.
9043 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9045 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9046 for new font backend and composite cases.
9048 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9050 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9051 Most of the code moved to run_timers.
9052 (do_pending_atimers): Call run_timers.
9053 (run_timers): New function.
9055 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9058 * process.c (wait_reading_process_output): The same as above.
9060 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9062 * minibuf.c (last_exact_completion): Remove variable.
9063 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9064 (complete_and_exit_1, complete_and_exit_2)
9065 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9066 (Fdisplay_completion_list, display_completion_list_1)
9067 (Fminibuffer_completion_help, Fself_insert_and_exit)
9068 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9070 (syms_of_minibuf): Remove corresponding initializations.
9072 * keyboard.c (Qdeactivate_mark): New var.
9073 (command_loop_1): Use it to call `deactivate-mark'.
9074 (syms_of_keyboard): Initialize it.
9076 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9078 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9079 Don't call set_tty_color_mode.
9080 (store_frame_param): Reset previous_frame rather than call
9082 * term.c (set_tty_color_mode): Rewrite.
9083 * dispextern.h (set_tty_color_mode): New type.
9084 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9086 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9088 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9089 for generic chars, which do not exist any more in emacs-unicode.
9091 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
9093 * coding.c (detect_coding_emacs_mule)
9094 (Ffind_operation_coding_system): Fix typo.
9096 2008-04-08 Jason Rumney <jasonr@gnu.org>
9098 * w32uniscribe.c (SNAME): Extract only symbol name.
9100 * w32font.h (struct w32_metric_cache): New struct.
9101 (w32font_info): Use it.
9102 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9103 (CACHE_BLOCKSIZE): New constants.
9105 * w32font.c (Qja, Qko, Qzh): New symbols.
9106 (syms_of_w32font): Initialise them.
9107 (font_matches_spec): Use them to filter by language.
9108 (recompute_cached_metrics): Remove function.
9109 (compute_metrics, clear_cached_metrics): New functions.
9110 (w32font_encode_char): Use them to manage metric cache.
9111 (w32font_text_extents): Cache metrics for all glyphs on demand.
9112 Delay converting glyph indices to WORD until needed.
9113 (w32font_open_internal): Initialize metric cache to empty.
9114 (registry_to_w32_charset): Charset should always be a symbol.
9115 (fill_in_logfont, list_all_matching_fonts): Family should
9118 2008-04-06 Jason Rumney <jasonr@gnu.org>
9120 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9121 Give up if glyph indices not supported. Use uniscribe obtained
9122 ABC widths for individual metrics. Map glyph clusters back to
9123 characters using fClusterStart flag. Return number of glyphs
9124 produced, not chars processed.
9125 (uniscribe_shape): Map char at FROM to current glyph.
9127 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9129 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9130 Use SetMenuItemHierarchicalMenu.
9132 2008-04-05 Jason Rumney <jasonr@gnu.org>
9134 * image.c (pbm_load): Allow color values up to 65535.
9135 Throw an error if max_color_idx is outside the supported range.
9136 Report an error when image size is invalid.
9137 Read two bytes at a time when raw images have max_color_idx above 255.
9139 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9141 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9142 cFileName a file name that includes `?' characters, use the 8+3
9143 alias in cAlternateFileName instead.
9145 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9147 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9148 append "CCL: Quitted" when the CCL program is quitted.
9149 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9151 * ccl.h (struct ccl_program): New member quit_silently.
9153 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
9155 * search.c (compile_pattern_1): Treat non-nil and non-string of
9156 search-spaces-regexp as nil.
9158 * minibuf.c (Fassoc_string): Tweak docstring.
9160 2008-04-05 Eli Zaretskii <eliz@gnu.org>
9162 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9163 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9164 2008-03-14 to force inode be positive.
9166 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9167 _S_* ones, since we now use our own sys/stat.h.
9168 (stat, fstat): Don't mangle the inode number.
9169 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9171 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9173 * frame.h (struct frame): Give one more bit to `visible' since we use
9174 values larger than 1 to indicate obscured frames on ttys.
9176 * keymap.c (Qkeymap_canonicalize): New var.
9177 (Fmap_keymap_internal): New fun.
9178 (describe_map): Use keymap-canonicalize.
9180 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9181 (Fundo_boundary): Set them.
9182 (syms_of_undo): Initialize them.
9183 (record_point): Use them instead of last_point_position*.
9184 (last_undo_buffer): Change type.
9186 2008-04-04 Jason Rumney <jasonr@gnu.org>
9188 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9189 (recompute_cached_metrics): Don't set ascent and descent per char.
9191 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9192 (uniscribe_check_otf): Add GC protection before consing.
9193 Rearrange loop for counting features.
9195 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9197 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9198 buffer with byte-size of source buffer.
9200 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
9202 * callint.c (Fcall_interactively): Handle temporary region even
9203 when shift-select-mode is off.
9205 2008-04-03 Jason Rumney <jasonr@gnu.org>
9207 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9209 2008-04-03 Kenichi Handa <handa@m17n.org>
9211 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9212 (CATEGORY_MASK_UTF_16): Likewise.
9213 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9215 (detect_coding): Add null-byte detection for a binary file.
9216 (detect_coding_system): Likewise.
9218 2008-04-03 Jason Rumney <jasonr@gnu.org>
9220 * w32uniscribe.c: New file.
9222 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9224 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9226 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9227 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9228 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9229 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9230 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9231 (Qphonetic): New symbols.
9232 (syms_of_w32font): Initialize them.
9233 (font_supported_scripts): Use them.
9234 (w32font_list_family): List all charsets.
9235 (w32font_text_extents, recompute_cached_metrics): Fix metric
9237 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9238 Give opentype fonts their own format.
9239 (font_matches_spec): New arguments backend and logfont.
9240 Handle :otf spec for uniscribe backend.
9241 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9242 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9244 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9246 (globals_of_w32fns): Initialize uniscribe font backend.
9248 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9250 (w32uniscribe.$(O)): New file to build.
9251 (FONT_OBJ): Include w32uniscribe.$(O).
9252 (LIBS): Add uniscribe libraries.
9254 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9256 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
9258 * callint.c (Vshift_select_mode): New var.
9259 (Finteractive): Document new ^ spec.
9260 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9263 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9264 (command_loop_1): Avoid running the direct display versions of
9265 forward-char and backward-char if shift-selection may occur.
9266 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9267 shift-translation takes place.
9269 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9270 avoid clobbering by define-minor-mode.
9272 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9273 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9275 * syntax.c (Fforward_word): Add ^ interactive spec.
9277 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9278 (Fscroll_right): Add ^ interactive spec.
9280 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9282 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9284 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9286 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9288 2008-03-31 Juri Linkov <juri@jurta.org>
9290 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9292 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9294 * gtkutil.c (xg_set_geometry): Fix indentation.
9295 (xg_resize_outer_widget): Remove.
9296 (x_wm_size_hint_off): Fix indentation.
9297 (xg_frame_set_char_size): Call flush_and_sync after
9299 (x_wm_set_size_hint): Pass NULL as geometry window to
9300 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9301 Add menu bar and tool bar height to base height.
9302 (xg_update_frame_menubar, free_frame_menubar)
9303 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9304 (update_frame_tool_bar, free_frame_tool_bar):
9305 Change xg_resize_outer_widget to xg_frame_set_char_size.
9307 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
9309 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9310 (Fdbus_call_method): New parameter TIMEOUT.
9311 (dbus-send-signal): Optimize UNGCPRO call.
9313 2008-03-29 Juri Linkov <juri@jurta.org>
9315 * window.c (Fdisplay_buffer): Move call to
9316 Vsplit_window_preferred_function out of conditions that check
9317 if window is eligible for vertical splitting.
9318 When Vsplit_window_preferred_function is non-nil, call it and use
9319 its non-nil return value as window. Otherwise, continue doing
9320 vertical splitting using Fsplit_window with arg horflag=nil.
9321 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9322 default value from `split-window' to nil.
9324 2008-03-29 Juri Linkov <juri@jurta.org>
9326 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9327 for interactive code letters 'b' and 'B'.
9329 2008-03-29 Eli Zaretskii <eliz@gnu.org>
9331 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9334 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9336 * keyboard.c (pending_funcalls): New var.
9337 (timer_check): Run it.
9338 (syms_of_keyboard): Initialize it.
9339 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9340 (Vdelete_terminal_functions): New vars.
9341 (syms_of_terminal): Initialize them.
9342 (Fdelete_terminal): Run delete-terminal-functions.
9343 * xdisp.c (safe_eval): Rewrite.
9344 (safe_call2): New fun.
9345 * frame.c (Qdelete_frame_functions): New var.
9346 (syms_of_frame): Initialize it.
9347 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9348 * lisp.h (safe_call2, pending_funcalls): Declare.
9350 2008-03-28 Andreas Schwab <schwab@suse.de>
9352 * indent.c (Fmove_to_column): Move declaration before statements.
9354 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9356 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9357 (struct frame): Use bit fields for boolean vars.
9359 * process.c (server_accept_connection): Simplify naming.
9360 (emacs_get_tty_pgrp): Use SDATA.
9362 * coding.c (decode_coding_object): Fix last change.
9364 2008-03-27 Jason Rumney <jasonr@gnu.org>
9366 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9368 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9370 * charset.c (Fdefine_charset_internal): Change the way of
9371 registering charsets in Vcharset_order_list.
9372 (syms_of_charset): Make the charset `eight-bit' supplementary.
9374 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9376 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9377 operations, to avoid having the difference between pointers
9380 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9382 * indent.c (check_display_width): New fun.
9383 (scan_for_column): Use it.
9385 * data.c (syms_of_data): Mark most-positive-fixnum and
9386 most-negative-fixnum as constants.
9388 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9390 * indent.c (scan_for_column): Extract from current_column_1.
9391 Merge with the same code from Fmove_to_column.
9392 (current_column_1, Fmove_to_column): Use it.
9394 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9396 * keymap.c (map_keymap_internal): New fun.
9397 (map_keymap): Use it.
9398 (Fmap_keymap_internal): New fun.
9399 (Fmap_keymap): Remove left-out test from before make_save_value.
9401 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9403 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9406 * process.h (struct Lisp_Process): Remove filter_multibyte.
9407 * process.c (QCfilter_multibyte): Remove.
9408 (setup_process_coding_systems): Don't use filter_multibyte.
9409 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9410 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9411 (Fset_process_filter_multibyte): Change the coding-system to
9412 approximate the previous behavior.
9413 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9416 * coding.c (decode_coding_object): When not decoding into a buffer,
9417 obey the coding system's preference of (uni|multi)byte.
9419 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9421 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9422 every char is changed and has a different byte-length.
9423 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9424 Fix int -> EMACS_INT.
9426 2008-03-23 David Hansen <david.hansen@gmx.net>
9428 * dbusbind.c (xd_read_message): Remove extra copying of message
9429 strings. Check for NULL `interface' or `member'.
9431 2008-03-22 Eli Zaretskii <eliz@gnu.org>
9433 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9434 cFileName a file name that includes `?' characters, use the 8+3
9435 alias in cAlternateFileName instead.
9437 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9439 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9441 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9443 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9444 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9445 work on current_buffer only instead (that was already the case
9446 for some of the code anyway).
9447 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9448 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9449 (SET_PT, SET_PT_BOTH): Adjust.
9450 * intervals.h (set_point, temp_set_point, set_point_both)
9451 (temp_set_point_both): Remove redundant declarations.
9453 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9455 * fileio.c (Finsert_file_contents):
9456 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9457 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9458 when buffer != current_buffer anyway.
9460 2008-03-20 Andreas Schwab <schwab@suse.de>
9462 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9465 2008-03-19 Jason Rumney <jasonr@gnu.org>
9467 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9468 (syms_of_w32fns): Initialize them.
9469 (HOURGLASS_ID): New constant.
9470 (x_window_to_frame): Don't check hourglass_window.
9471 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9472 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9473 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9474 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9475 Only change the cursor if hourglass is not active.
9476 (Fx_create_frame): Initialize frame's current_cursor.
9477 (hourglass_atimer): Remove.
9478 (hourglass_started): New function.
9479 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9480 (show_hourglass): Adapt to w32, changing argument to frame.
9482 * w32term.h (struct w32_output): Remove hourglass_window.
9485 * eval.c (call_debugger, Fsignal):
9486 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9487 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9488 (Fexecute_extended_command, cancel_hourglass_unwind):
9489 * minibuf.c (read_minibuf):
9490 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9492 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9494 * window.c (run_funs): New fun.
9495 (run_window_configuration_change_hook): Use it to run the buffer-local
9496 and the global part of the hook.
9498 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9499 (unwind_format_mode_line): Restore selected window.
9500 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9502 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9504 * editfns.c (Fchar_equal): Check they are valid characters.
9506 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9508 2008-03-17 Andreas Schwab <schwab@suse.de>
9510 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9513 * lisp.h (Fbuffer_list): Declare.
9515 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
9517 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9518 handlebox_widget is != 0.
9520 2008-03-16 Juri Linkov <juri@jurta.org>
9522 * callint.c (Fcall_interactively): For interactive code letters
9523 'b' and 'B' put the buffer list into the list of default "future"
9524 values of the minibuffer.
9526 2008-03-16 Andreas Schwab <schwab@suse.de>
9528 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9531 * regex.c (re_match_2_internal): Correct matching of a charset
9532 against latin-1 characters.
9534 2008-03-16 Kenichi Handa <handa@m17n.org>
9536 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9537 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9538 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9539 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9540 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9541 CHAR_STRING_ADVANCE.
9542 (produce_chars): Fix for the case that the source and the
9543 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9544 instead of CHAR_STRING_ADVANCE.
9545 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9546 STRING_CHAR_ADVANCE.
9548 2008-03-15 Andreas Schwab <schwab@suse.de>
9550 * regex.c (re_match_2_internal): Correct matching of eight bit
9551 characters in unibyte strings.
9553 2008-03-15 Martin Rudalics <rudalics@gmx.at>
9555 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9556 at end of range when it coincides with the end of the buffer.
9558 2008-03-14 Eli Zaretskii <eliz@gnu.org>
9560 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9562 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9564 2008-03-14 Jason Rumney <jasonr@gnu.org>
9566 * editfns.c (initial_tz): New variable.
9567 (syms_of_editfns): Initialize it.
9568 (Fset_time_zone_rule): Set it when first called.
9569 Use it when TZSTRING is nil.
9571 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9572 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9573 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9574 (globals_of_w32fns): Initialize them.
9575 (compute_tip_xy): Use them to position tooltips.
9577 2008-03-14 Glenn Morris <rgm@gnu.org>
9579 * emacs.c (main): Revert previous change.
9580 (standard_args): Revert -internal-script back to -scriptload,
9581 and remove the long-option form.
9583 2008-03-13 Glenn Morris <rgm@gnu.org>
9585 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9586 Remove option -enable-font-backend.
9588 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9590 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9592 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9594 * xterm.c (x_connection_closed): For GTK: If this is the last
9595 terminal just exit without closing the display.
9597 2008-03-11 Jason Rumney <jasonr@gnu.org>
9599 * w32font.c (w32font_full_name): Use floor to round.
9601 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
9603 * sound.c (alsa_configure): Declare vol at beginning of block.
9605 * fontset.c (Ffontset_info): Remove extra semicolon.
9607 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9609 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9610 size of resulting string.
9612 2008-03-10 Jason Rumney <jasonr@gnu.org>
9614 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9616 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9618 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9619 Don't pretend as if characters with display property haven't been
9620 consumed for string-replacing-string case.
9622 2008-03-08 Kim F. Storm <storm@cua.dk>
9624 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9625 (get_next_display_element, next_element_from_string)
9626 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9628 2008-03-08 Andreas Schwab <schwab@suse.de>
9630 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9632 2008-03-06 Jason Rumney <jasonr@gnu.org>
9634 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9635 when charset not specified. Only translate ANSI to unicode when
9636 font_type is truetype.
9637 (w32font_coverage_ok): New function.
9638 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9640 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9642 * lread.c (Fread_char): Resolve modifiers.
9643 (Fread_char_exclusive): Likewise.
9645 * character.c (char_resolve_modifier_mask): New function.
9646 (char_string): Use char_resolve_modifier_mask.
9647 (Fchar_resolve_modifiers): New function.
9648 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9651 2008-03-04 Jason Rumney <jasonr@gnu.org>
9653 * makefile.w32-in: Always include w32font.c in the build.
9654 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9656 2008-03-04 Andreas Schwab <schwab@suse.de>
9658 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9659 (versionclean): Likewise.
9661 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
9663 * .cvsignore: Add oo.
9665 2008-03-03 Andreas Schwab <schwab@suse.de>
9667 * coding.c (decode_coding_object): Inhibit gap shrinking while
9670 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9672 * w32term.c: Remove unused include "gnu.h".
9673 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9675 * gnu.h: Rename to ...
9676 * emacs-icon.h: ... this.
9677 * xterm.c: Use emacs-icon.h instead of gnu.h.
9678 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9680 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
9682 * w32font.c: Include math.h.
9684 2008-03-03 Jason Rumney <jasonr@gnu.org>
9686 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9687 Compute options separately.
9688 (w32font_open_internal): Set glyph_idx before caching metrics.
9690 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9691 Define if system headers don't.
9692 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9693 (w32font_encode_char): Don't declare here.
9695 * w32font.c (Quniscribe, QCformat): New symbols.
9696 (syms_of_w32font): Define them.
9697 (w32font_has_char): Indicate uncertainty.
9698 (w32font_encode_char): Encode as glyph point. Make static.
9699 (recompute_cached_metrics): New function.
9700 (w32font_open_internal): Use it. Set font to use glyph points
9701 initially. Set format based on type of font.
9702 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9703 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9704 on it. Set format based on information available here.
9705 (add_font_entity_to_list): Identify backend based on opentype_only.
9707 2008-03-02 Andreas Schwab <schwab@suse.de>
9709 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9711 * coding.c (decode_coding_big5, produce_chars):
9712 Fix typos in last change.
9714 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9718 2008-03-02 Kenichi Handa <handa@m17n.org>
9720 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9721 `dos', don't decode '\r' if that is the last in the source.
9722 (decode_coding_utf_16, decode_coding_emacs_mule)
9723 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9724 (decode_coding_raw_text, decode_coding_charset): Likewise.
9725 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9727 2008-03-01 Jason Rumney <jasonr@gnu.org>
9729 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9731 2008-03-01 Kim F. Storm <storm@cua.dk>
9733 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9735 2008-03-01 Jason Rumney <jasonr@gnu.org>
9737 * w32font.c (w32font_full_name): New function.
9738 (w32font_open_internal): Use it.
9740 2008-03-01 Kim F. Storm <storm@cua.dk>
9742 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9744 2008-03-01 Jason Rumney <jasonr@gnu.org>
9746 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9748 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9750 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9751 xg_frame_resized when the event is for the edit widget.
9753 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9755 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9757 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9758 operations on widgets here. Just set frame size if needed.
9759 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9760 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9761 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9763 (xg_create_tool_bar): Move attachment of the tool bar to
9764 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9765 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9767 2008-03-01 Jason Rumney <jasonr@gnu.org>
9769 * w32fns.c (w32_msg_pump): Disable debug code.
9771 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9773 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9775 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9777 * xdisp.c (next_overlay_string): Don't set
9778 overlay_strings_at_end_processed_p if we're currently reading from
9781 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9783 * xdisp.c (get_overlay_strings_1): Fix typo.
9785 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9787 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9789 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9791 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9793 * xdisp.c (display_mode_element): Cancel the previous change.
9794 (decode_mode_spec): Likewise.
9795 (handle_auto_composed_prop): Don't make composition if it->string
9798 2008-02-27 Kim F. Storm <storm@cua.dk>
9800 * lisp.h (GLYPH): Change type from int to struct with separate char
9801 and face_id members.
9802 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9803 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9804 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9805 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9806 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9807 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9808 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9809 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9810 handle new Lisp glyph code encoding, either an integer or a cons.
9812 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9813 (GLYPH_ALIAS): Delete.
9814 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9815 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9816 (GLYPH_FROM_CHAR): Replace macro by ...
9817 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9819 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9820 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9821 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9822 (GLYPH_INVALID_P): New macro.
9823 (spec_glyph_lookup_face): Update prototype.
9825 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9826 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9827 new glyph code encoding.
9828 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9829 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9831 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9832 Adapt to new glyph type and new glyph code encoding.
9834 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9836 * indent.c (current_column, current_column_1, Fmove_to_column)
9837 (compute_motion): Adapt to new glyph code encoding.
9839 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9841 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
9843 * process.c (wait_reading_process_output): Check for window
9844 changes caused by timers.
9845 Suggested by Johan Bockgård.
9847 2008-02-27 Glenn Morris <rgm@gnu.org>
9849 * emacs.c (USAGE1): Add `--disable-font-backend'.
9851 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9853 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9854 is made to the buffer.
9856 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9858 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9859 (face_at_string_position):
9860 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9861 (face_at_string_position):
9862 * xdisp.c (display_string, next_overlay_change):
9863 * buffer.h (overlays_at):
9864 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9867 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
9869 * editfns.c (Fformat): Doc fix.
9871 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
9873 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9874 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9875 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9877 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9879 * buffer.c (Fbuffer_swap_text): New function.
9880 (syms_of_buffer): Defsubr it.
9882 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
9884 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9886 2008-02-25 Jason Rumney <jasonr@gnu.org>
9888 * w32font.c (w32font_draw): Draw one character at a time when padding.
9890 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9892 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9893 Handle a nil arg. Use run_window_configuration_change_hook.
9894 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9895 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9896 Use run_window_configuration_change_hook.
9898 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9900 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9903 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9905 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9906 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9907 if the glyph in the font is zero pixel with.
9909 * dispextern.h (struct glyph_string): New member padding_p.
9911 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9913 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9915 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9917 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9919 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9921 2008-02-25 Jason Rumney <jasonr@gnu.org>
9923 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9925 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9927 Allow fine-grained image-cache flushing.
9928 * dispextern.h (struct image): Add `dependencies' field.
9929 (clear_image_caches): Change arg to Lisp_Object.
9930 * image.c (make_image): Initialize `dependencies' field.
9931 (clear_image_cache): Change arg to allow fine-grained flushing.
9932 Perform the flush even if image-cache-eviction-delay is nil.
9933 (clear_image_caches): Change arg to Lisp_Object.
9934 (Fclear_image_cache): Expand meaning of the argument.
9935 (mark_image): Mark `dependencies' field.
9936 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9937 (lface_hash): Use XHASH rather than XFASTINT.
9938 (face_at_buffer_position): Fix int -> EMACS_INT position.
9939 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9940 (select_frame_for_redisplay): Remove code duplication.
9941 (redisplay_internal): Adapt arg to call to clear_image_caches.
9943 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9948 * s/vms5-5.h: Remove, unused.
9954 * m/mips4.h: Remove files for obsolete systems.
9967 * s/usg5-3.h: Remove references to obsolete variables.
9969 * s/irix5-0.h: Remove, move all the contents ...
9970 * s/irix6-5.h: ... here. Simplify.
9971 * config.in: Regenerate.
9973 2008-02-24 Jason Rumney <jasonr@gnu.org>
9975 * w32term.c (x_draw_glyph_string_background): Clear the background
9976 manually when cleartype is in use.
9977 (x_draw_glyph_string_foreground): Draw text transparently when
9978 cleartype is in use.
9980 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9981 a font into it unless we have to.
9983 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9985 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9986 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
9988 2008-02-18 Jason Rumney <jasonr@gnu.org>
9990 * w32fns.c (Fw32_shell_execute): Encode parameters.
9992 2008-02-09 Eli Zaretskii <eliz@gnu.org>
9994 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9996 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
9998 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10000 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10002 * xterm.c (x_set_offset): Don't change the gravity if
10003 CHANGE_GRAVITY is -1.
10005 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
10007 * fileio.c (auto_save_error_occurred): New var.
10008 (auto_save_error): Set it.
10009 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10012 2008-02-23 Eli Zaretskii <eliz@gnu.org>
10014 * w32.c (globals_of_w32): Add initializations for
10015 g_b_init_get_sid_sub_authority and
10016 g_b_init_get_sid_sub_authority_count.
10018 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10020 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10021 (font_parse_xlfd): Use them for sanity check.
10022 (Finternal_set_font_style_table): Make sure the table is bijective.
10024 Consolidate the image_cache to the terminal struct.
10025 * termhooks.h (P_): Remove redundant def.
10026 (struct terminal): New field `image_cache'.
10027 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10028 of FRAME_X_IMAGE_CACHE.
10029 * xterm.h (struct x_display_info): Remove image_cache field.
10030 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10031 * w32term.h (struct w32_display_info): Remove image_cache field.
10032 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10033 * macterm.h (struct mac_display_info): Remove image_cache field.
10034 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10035 * xterm.c (x_term_init):
10036 * w32term.c (w32_term_init):
10037 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10038 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10039 Remove declarations.
10040 (clear_image_caches, mark_image_cache): New declarations.
10041 * xfaces.c (clear_face_cache):
10042 * xdisp.c (redisplay_internal): Use clear_image_caches.
10043 * image.c (clear_image_cache): Don't check that a frame is on
10044 a window-system before checking if it shares the same cache.
10045 (clear_image_caches): New function.
10046 (Fclear_image_cache): Use it.
10047 (mark_image): Move from allo.c.
10048 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10049 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10050 (mark_object): Don't call mark_image_cache for frames.
10051 (mark_terminals): Call mark_image_cache.
10053 * lisp.h (Fdelete_terminal): Declare.
10055 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10056 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10057 wrong_type_argument.
10059 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10061 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10062 malayalam.el, and tamil.el. Add sinhala.el.
10064 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10066 * xterm.c (x_connection_closed): Consolidate identical tests.
10067 (x_delete_terminal): Don't crash if called via x_connection_closed.
10069 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10071 * xdisp.c (decode_mode_spec): New arg string.
10072 (display_mode_element): Adjust for the above change.
10074 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10076 * callint.c (Fcall_interactively): Use AREF.
10078 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10080 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10082 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10084 * xfns.c (Fx_show_tip): Set string to " " if empty.
10086 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10088 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10091 2008-02-17 Kenichi Handa <handa@m17n.org>
10093 * ftfont.c (ftfont_shape): Return Lispy number.
10095 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10097 (Finternal_set_font_selection_order): Call font_update_sort_order
10098 only when enable_font_backend is set.
10099 (realize_x_face): Set face->font_info to that of default face only
10100 when enable_font_backend is set.
10102 * xdisp.c (handle_composition_prop): Set it->c to the fist
10103 character of the composed region.
10104 (fill_composite_glyph_string): Set base_face->font_info to
10105 s->font_info. Get a face for ascii from base_face->ascii_face.
10106 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10107 with a face already decided.
10108 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10110 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10111 call font_prepare_composition unconditionally.
10113 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10115 * xterm.h (struct x_display_info): New member font.
10117 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10118 (x_set_mouse_face_gc, x_new_font): Likewise.
10119 (x_term_init): Setup display_info->font.
10120 (x_delete_terminal): Free display_info->font.
10122 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10124 * ftxfont.c (ftxfont_default_fid): Delete it.
10125 (ftxfont_open): Set xfont->fid to 0.
10126 (ftxfont_end_for_frame): Clear data specific to the frame and the
10129 * xftfont.c (xftfont_default_fid): Delete it.
10130 (xftfont_open): Set xfont->fid to 0.
10132 * fontset.c (FONTSET_OBJLIST): New macro.
10133 (fontset_find_font): Update font-object list of the fontset.
10134 (free_realized_fontset): New function.
10135 (free_face_fontset): Call free_realized_fontset.
10136 (Ffont_info): Call font_close_object only when enable_font_backend
10139 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10140 [HAVE_NTGUI]: Include w32term.h.
10141 [MAC_OS]: Include macterm.ch.
10142 (font_otf_ValueRecord): Use make_number.
10143 (font_finish_cache): Fix handling of reference count.
10144 (font_clear_cache): Update num_fonts.
10145 (font_open_entity): Update smallest_char_width and
10146 smallest_font_height of the frame.
10147 (font_close_object): Update num_fonts.
10148 (Fclear_font_cache): Fix finding the target cache data.
10150 2008-02-16 Glenn Morris <rgm@gnu.org>
10152 * fontset.c (Finternal_char_font): Fix compilation warning.
10154 2008-02-16 Eli Zaretskii <eliz@gnu.org>
10156 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10157 instead of char arrays. Enlarge the size of array passed to
10158 get_token_information.
10160 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10163 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10165 * .gdbinit: Don't set `args', it breaks gdb --args.
10167 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10169 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10170 within a narrowed buffer.
10172 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10174 * coding.c (decode_coding_object, encode_coding_object):
10175 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10177 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10179 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10181 (detect_coding_system):
10182 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10183 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10184 * insdel.c (insert_from_gap):
10185 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10186 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10187 (string_to_multibyte):
10188 * character.c (chars_in_text, multibyte_chars_in_text):
10189 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10191 * character.h (FETCH_STRING_CHAR_ADVANCE)
10192 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10193 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10194 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10196 * casefiddle.c (casify_region): Only call after-change and composition
10197 functions on the part of the region that was changed.
10199 * keyboard.c (read_avail_input):
10200 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10202 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10204 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10205 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10207 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
10209 * w32menu.c (push_submenu_start, push_submenu_end)
10210 (push_left_right_boundary, push_menu_pane, push_menu_item):
10211 * keyboard.c (read_key_sequence): Don't pass args with side effects
10212 to AREF, it fails when compiling with -DENABLE_CHECKING.
10214 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10216 * Makefile.in (${lispsource}international/charprop.el):
10217 Delete this target.
10219 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10222 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10224 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10226 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10228 * frame.c (Qnoelisp): New symbol.
10229 (syms_of_frame): Initialize it.
10230 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10231 harmless Elisp code, from a strong `force' from x_connection_closed.
10232 * frame.h (Qnoelisp): Declare.
10233 * xterm.c (x_connection_closed): Pass `noelisp'.
10235 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10236 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10237 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10238 rather than `int' for the type of `type'.
10240 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10242 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10244 * Makefile.in (GNUC): Remove support for gcc-1.x.
10246 2008-02-10 Richard Stallman <rms@gnu.org>
10248 * lisp.h (ASET): Use AREF, not ASLOT.
10250 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10252 * lisp.h (ASET): Check bounds.
10254 2008-02-10 Glenn Morris <rgm@gnu.org>
10256 * buffer.c (mode-name): Doc fix.
10258 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10275 * xterm.c: Remove code that deals with obsolete variables.
10277 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10279 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10280 nothing else needs it anymore.
10282 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10284 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10285 instead of unibyte_char_to_multibyte.
10287 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10289 * s/gnu-linux.h: Remove commented out code.
10291 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10293 * Makefile.in: Update what RMS says about using autoconf.
10294 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10295 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10296 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10297 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10299 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10301 * keymap.c (Fkey_description): Move side effect outside of macro call.
10303 * xfaces.c (Finternal_make_lisp_face):
10304 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10306 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10307 (syms_of_fontset): Use ASET.
10309 * fns.c (concat): Move side effect outside of macro call.
10310 (hash_clear): Use ASET.
10312 2008-02-08 Richard Stallman <rms@gnu.org>
10314 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10315 If FORCE, and frame has a surrogate minibuffer for another frame,
10316 delete the other frame first.
10318 2008-02-07 Timo Savola <timo.savola@iki.fi>
10320 * xterm.c (x_detect_focus_change): Handle embed client message.
10321 (handle_one_xevent): Ditto.
10322 (handle_one_xevent): If embedded and we get a button press/release,
10324 (xembed_set_info, xembed_send_message): New functions.
10325 (x_make_frame_visible): Call xembed_set_info if embedded.
10326 (x_make_frame_invisible): Call xembed_set_info if embedded.
10327 (x_term_init): Initialize Xatom_XEMBED.
10328 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10329 (x_iconify_frame): Ditto.
10331 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10332 (enum xembed_info, enum xembed_message, enum xembed_focus)
10333 (enum xembed_modifier, enum xembed_accelerator): New.
10334 (xembed_set_info, xembed_send_message): Declare.
10335 (FRAME_X_EMBEDDED_P): New.
10337 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10340 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10341 window ID of a frame.
10342 (x_window): Reparent frame if embedded.
10343 (Fx_create_frame): Don't set border width if embedded.
10345 * emacs.c (USAGE3): Add --parent-id.
10346 (standard_args): Ditto.
10348 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10350 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10352 2008-02-07 Jim Meyering <meyering@redhat.com>
10354 Use "do...while (0)", not "if (1)...else" in macro definitions.
10355 The latter provokes a warning from gcc about the empty else, when
10356 followed by ";". Also, without that trailing semicolon, it would
10357 silently swallow up any following statement.
10358 * syntax.h (SETUP_SYNTAX_TABLE)
10359 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10360 * buffer.h (DECODE_POSITION): Likewise.
10361 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10362 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10363 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10364 (FETCH_CHAR_ADVANCE): Likewise.
10365 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10367 2008-02-07 Jim Meyering <meyering@redhat.com>
10369 * lread.c [lint]: Don't include <sys/inode.h>.
10371 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10373 * xselect.c (x_handle_dnd_message):
10374 * xmenu.c (digest_single_submenu, xmenu_show):
10375 * xdisp.c (with_echo_area_buffer_unwind_data)
10376 (format_mode_line_unwind_data, unwind_format_mode_line)
10377 (display_menu_bar):
10378 * eval.c (Ffetch_bytecode):
10379 * doc.c (store_function_docstring):
10380 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10381 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10382 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10384 2008-02-07 Kenichi Handa <handa@m17n.org>
10386 * ftxfont.c (ftxfont_open): Don't set
10387 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10389 * ftfont.c (ftfont_open): Fix previous change.
10391 2008-02-06 Jason Rumney <jasonr@gnu.org>
10393 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10394 Use cached metrics for ASCII characters.
10395 (w32font_open_internal): Don't set font's owning_frame.
10396 Cache metrics for ASCII characters.
10398 * w32font.h (struct w32font_info): Add ascii_metrics.
10399 Remove owning_frame.
10401 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10403 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10406 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10408 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10410 * charset.c (syms_of_charset): Set QCtest and Qeq.
10412 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10414 * process.c (Fstart_process):
10415 * callproc.c (Fcall_process): Handle the case where
10416 Funhandled_file_name_directory returns nil.
10418 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10419 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10420 * font.c (check_gstring): Use them and AREF to access the vector before
10421 we know it's really a gstring.
10422 (Ffont_shape_text): Fix typo.
10423 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
10425 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10428 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10430 2008-02-05 Jason Rumney <jasonr@gnu.org>
10432 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10433 Set smallest_font_height and smallest_char_width in display info.
10435 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10437 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10439 2008-02-05 Miles Bader <miles@gnu.org>
10441 * xfaces.c (get_lface_attributes, merge_named_face)
10442 (lookup_named_face, lookup_derived_face, realize_named_face):
10443 Revert 2008-02-01 change by cyd@stupidchicken.com.
10445 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10447 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10449 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10451 2008-02-04 Jason Rumney <jasonr@gnu.org>
10453 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10455 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10457 2008-02-03 Jason Rumney <jasonr@gnu.org>
10459 * makefile.w32-in (OBJ1): Include font.o here.
10460 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10462 2008-02-02 Jason Rumney <jasonr@gnu.org>
10464 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10466 2008-02-01 Jason Rumney <jasonr@gnu.org>
10468 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10470 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10472 2008-02-01 Andreas Schwab <schwab@suse.de>
10474 * Makefile.in (shortlisp, lisp): Update for rename of
10475 ../lisp/language/myanmar.el.
10477 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
10479 * xfaces.c (get_lface_attributes): Delete function.
10480 (merge_named_face, lookup_named_face, lookup_derived_face)
10481 (realize_named_face): Call lface_from_face_name directly, and use
10482 the fact that merge_face_vectors does not alter its FROM argument.
10484 2008-02-01 Jason Rumney <jasonr@gnu.org>
10486 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10487 input in the default locale. Handle non-Unicode multibyte input.
10489 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10491 * fontset.c (reorder_font_vector): Exclude nil elements from the
10492 font group. Don't try multiple fonts.
10493 (fontset_font): Adjust for the above change.
10494 (Finternal_char_font): Return nil if the found font doesn't
10495 contain the character ch.
10497 * Makefile.in (lisp, shortlisp): Add cham.el.
10499 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10501 * font.h (FONTP): Make it return 1 also for a font-object.
10503 * .gdbinit (xfontset): New function.
10505 * font.c (font_find_for_lface): Check if the character C is
10506 supported or not only for the first font.
10508 * fontset.c (reorder_font_vector): Fix typo.
10509 (fontset_find_font): Don't add a font-spec specifying a script.
10510 Use 0 (not Qt) for the indication of empty font-group. Change the
10511 format of RFONT-DEF. Return Qt if no font in the font-group
10512 support the character.
10513 (fontset_font): Adjust for the above change. If no font was
10514 found the character, remember that.
10515 (face_for_char): Adjust for the change of RFONT-DEF.
10516 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10517 no font for the target.
10518 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10520 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10522 * font.c (font_load_for_face): Handle the case that the font in
10523 face->lface is a string.
10525 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10527 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10529 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10531 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10532 Fix previous change. If the frame is not on a window system,
10535 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10537 * coding.c (decode_coding_object, encode_coding_object): Adjust
10538 marker positions after conversion.
10540 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10542 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10544 * font.c (font_find_for_lface): Fix the handling of the return
10545 value of font_has_char.
10546 (Ffont_shape_text): Fix previous change.
10548 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10549 (fontset_ref_and_range): Delete it.
10550 (fontset_find_font): Call char_table_ref_and_range instead of
10551 FONTSET_REF_AND_RANGE.
10552 (make_fontset): Don't setup font groups of Latin here.
10553 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10554 (new_fontset_from_font): Make the specified font the default for
10555 all Latin characters.
10557 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10559 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10560 is on a window system before accessing the fontset of the frame.
10562 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10564 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10566 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10567 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10569 * font.c (Ffont_shape_text): If the font driver doesn't have a
10570 shaper function, make zero-width glyphs to have at least one-pixel
10571 width. Fix setting of `to' field of glyphs.
10573 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10575 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10578 * font.h (struct font_driver): Improve docstring of member `shape'.
10580 2008-02-01 Kenichi Handa <handa@m17n.org>
10582 * composite.c (syms_of_composite): Fix docstring of
10583 auto-composition-function.
10585 * font.h (LGLYPH_SIZE): New macro.
10587 * font.c (Ffont_fill_gstring): Stop filling when a character not
10588 supported by the font is found.
10589 (Ffont_shape_text): When a shape callback function returns nil,
10590 try at most two more times with larger gstring.
10591 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10593 * xdisp.c (handle_auto_composed_prop): Change the argument to
10594 auto-composition-function.
10596 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10597 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10598 Lispy glyph and store it in the lgstring.
10600 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10602 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10604 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10606 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10608 * fontset.c (Vfont_encoding_charset_alist): New variable.
10609 (syms_of_fontset): DEFVAR it.
10610 (reorder_font_vector, fontset_find_font): Optimize for the case of
10611 no need of reordering.
10612 (face_for_char): Map the charset property by
10613 Vfont_encoding_charset_alist.
10615 2008-02-01 Jason Rumney <jasonr@gnu.org>
10617 * w32font.c (logfonts_match): Don't check adstyle here.
10618 (font_matches_spec): Check here against physical font instead.
10619 (add_font_entity_to_list): Avoid some substitutions.
10621 * font.c (font_parse_fcname): Default weight and slant to normal.
10622 (font_score): Prefer normal fonts if weight or slant unspecified.
10623 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10624 match freetype scores.
10626 2008-02-01 Jason Rumney <jasonr@gnu.org>
10628 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10629 font, as it may have been deleted.
10630 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10631 most common hyphenless variation.
10632 (logfonts_match): Check generic family.
10633 (font_matches_spec): Don't check generic family here.
10634 (fill_in_logfont): Set generic family based on adstyle.
10636 * w32font.h (w32font_get_cache): Update declaration.
10638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10640 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10642 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10643 If none of the new drivers are available, call font_update_drivers
10644 with the old drivers.
10646 * w32font.c (w32font_get_cache): Adjust the argument type.
10648 * xfont.c (xfont_get_cache): Adjust the argument type.
10650 * font.h (struct font_driver): Change argument type of get_cache.
10652 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10654 * font.c (Ffont_get): Fix arguments to Fassoc.
10655 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10656 (font_clear_cache): New function.
10657 (font_list_entities, font_matching_entity): Use font_get_cache.
10658 (font_update_drivers): Call font_clear_cache when finishing a driver.
10660 * fontset.c (fontset_find_font): Fix previous change.
10662 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10664 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10665 dpyinfo->font_table.
10666 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10667 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10669 * font.c (font_at): Handle the case that the arg C is negative.
10670 Handle the unibyte case.
10671 (Ffont_at): Call font_at with the arg C -1.
10673 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10674 the position here, and call font_at with the arg C -1.
10675 Don't check the range of the existing composition at the point.
10677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10679 * fontset.c (fontset_add): New args charset_id and family.
10681 (load_font_get_repertory, fontset_find_font): Assume that
10682 font_spec is always a font-spec object.
10683 (Fset_fontset_font): Always store a font-spec object in a fontset.
10685 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10686 instead of get_property_and_range.
10688 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10690 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10691 (xftfont_open): Don't keep locking face.
10692 (xftfont_close): Don't unlock face.
10693 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10695 * fontset.c (fontset_find_font): Don't prefer a font of
10696 supplementary charset.
10698 2008-02-01 Kenichi Handa <handa@m17n.org>
10700 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10701 script, langsys_tag to langsys, new member script.
10702 (OTF_TAG_STR): Terminate by '\0'.
10703 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
10704 listing to the script specified in that property. Fix arg to
10705 OTF_check_features.
10707 2008-02-01 Jason Rumney <jasonr@gnu.org>
10709 * w32font.h: New file.
10711 * w32font.c: Include it.
10712 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10713 (w32font_open): Set owning_frame.
10714 (w32font_text_extents): Use owning_frame.
10715 (struct font_callback_data): Add opentype_only field.
10716 (add_font_entity_to_list): Use it to filter fonts.
10717 Don't check against full name.
10718 (w32font_list_internal): New function.
10719 (w32font_list): Use it.
10720 (w32font_match_internal): New function.
10721 (w32font_match): Use it.
10722 (w32font_open_internal): New function.
10723 (w32font_open): Use it.
10724 (w32font_get_cache, w32font_close, w32font_has_char)
10725 (w32font_encode_char, w32font_text_extents, w32font_draw):
10728 * makefile.w32-in (w32font.o): Depend on w32font.h.
10730 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10732 * charset.c (Fdefine_charset_internal): Record a supplementary
10733 charset at the tail of Vcharset_order_list.
10735 * font.c (Ffont_shape_text): Fix the return value.
10737 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10739 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10741 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10743 * ftfont.c (struct OpenTypeSpec): New struct.
10744 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10745 (ftfont_get_open_type_spec): New function.
10746 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10748 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10750 2008-02-01 Jason Rumney <jasonr@gnu.org>
10752 * w32font.c (add_font_entity_to_list): Compare only the beginning
10755 2008-02-01 Kenichi Handa <handa@m17n.org>
10757 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10758 Never return HANDLED_RECOMPUTE_PROPS.
10760 2008-02-01 Kenichi Handa <handa@m17n.org>
10762 * font.c (font_gstring_produce): Delete it.
10764 * composite.h (COMPOSITION_METHOD):
10765 Handle COMPOSITION_WITH_GLYPH_STRING.
10767 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10769 * xfont.c (Qx): Delete.
10770 (syms_of_xfont): Don't initialize Qx.
10772 * composite.h (enum composition_method):
10773 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10775 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10777 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10778 (choose_face_font): Accept new form of font-spec.
10780 * frame.h (font_driver_list): Declare it unconditionally.
10781 (struct frame): Define members font_driver_list and font_data_list
10784 * fontset.c: Include "font.h" unconditionally.
10785 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10786 (Fset_fontset_font): Accept a font-spec object.
10788 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10789 PIXEL_SIZE part a wild card.
10791 * dispextern.h (struct glyph_string): Define members clip and
10792 num_clips unconditionally.
10793 (struct face): Define members font_info and extra unconditionally.
10795 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10796 ftfont_info only when HAVE_LIBOTF is defined.
10798 2008-02-01 Andreas Schwab <schwab@suse.de>
10800 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10803 2008-02-01 Jason Rumney <jasonr@gnu.org>
10805 * w32font.c (w32font_driver): Add new fields.
10807 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10809 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10810 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10811 (LIBES): Add @M17N_FLT_CFLAGS@.
10813 * composite.c (compose_text): Don't treat the new style
10814 composition specially.
10816 * emacs.c (main): Call syms_of_font unconditionally.
10818 * font.h (FONT_ENTITY_NOT_LOADABLE)
10819 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10820 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10821 (struct font_driver): New member shape.
10822 (font_registry_charsets): Extern it.
10823 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10824 (font_otf_capability, font_drive_otf): Delete their externs.
10826 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10827 (font_charset_alist, font_registry_charsets): Move from xfont.c
10829 (font_prop_validate_otf): New function.
10830 (font_property_table): Register it for QCotf.
10831 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10832 (font_drive_otf): Delete.
10833 (font_prepare_composition): New arg F. Adjust for the change of
10835 (font_find_for_lface): New arg C.
10836 (font_load_for_face): Adjust for the change of font_find_for_lface.
10837 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10839 (Ffont_shape_text): New function.
10840 (Fopen_font): If the font size is not given, use 12-pixel.
10841 (Ffont_at): New arg STRING.
10842 (syms_of_font): Initalize font_charset_alist.
10843 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10846 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10847 fonts of the same font-spec. Change the format of RFONT-DEF.
10848 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10849 Adjust for the change of RFONT-DEF.
10850 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10852 * ftfont.h: New file.
10854 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10855 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10856 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10857 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10858 font_otf_capability and font_drive_otf, set ftfont_shape.
10859 (ftfont_list): Adjust for the change of :otf property value.
10860 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10861 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10862 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10863 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10864 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10865 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10867 * w32term.c (x_draw_composite_glyph_string_foreground):
10868 Adjust for the change of lispy gstring.
10870 * xdisp.c (handle_composition_prop): Adjust for the change of
10871 lispy gstring. Call a function for auto-composition with the
10872 third arg it->window.
10873 (fill_composite_glyph_string): Adjust for the change of lispy string.
10874 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10876 * xfaces.c (set_font_frame_param): Adjust for the change of
10877 font_find_for_lface.
10879 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10880 (xfont_registry_charsets): Likewise. Change caller.
10881 (syms_of_xfont): Don't handle x_font_charset_alist.
10883 * xftfont.c: Include "ftfont.h".
10884 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10885 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10886 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10887 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10888 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10889 Set xftfont_driver.shape to xftfont_shape.
10891 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10892 the change of lispy gstring.
10894 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10896 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10898 2008-02-01 Jason Rumney <jasonr@gnu.org>
10900 * w32font.c (w32font_draw): Fill background manually.
10902 2008-02-01 Jason Rumney <jasonr@gnu.org>
10904 * font.c (Qfontp): Remove unused symbol.
10905 (QCantialias): New symbol.
10906 (syms_of_font): Define it.
10907 (font_property_table): Set a validator for QCantialias.
10909 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10910 Define if not already.
10911 (QCfamily): Share with xfaces.c.
10912 (Qstandard, Qsubpixel, Qnatural): New symbols.
10913 (syms_of_w32font): Define them. Don't define QCfamily here.
10914 (w32_antialias_type, lispy_antialias_type): New functions.
10915 (w32_enumfont_pattern_entity): New arg requested_font.
10916 Set antialias parameter if non-default was requested.
10917 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10919 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10921 * lread.c (read1): Undo the previous change.
10923 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10925 * frame.c (Fdelete_frame): Call font_update_drivers only when
10926 USE_FONT_BACKEND is defined.
10928 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10930 * font.h (struct font_bitmap): New member bits_per_pixel.
10931 (struct font_driver): New members start_for_frame and end_for_frame.
10932 (struct font_data_list): New struct.
10933 (font_put_frame_data, font_get_frame_data): Extern them.
10935 * frame.h (struct frame): New member font_data_list.
10937 * font.c (font_update_drivers): Call driver->start_for_frame and
10938 driver->end_for_frame at proper timings.
10939 (font_put_frame_data, font_get_frame_data): New functions.
10940 (Ffont_spec): Add usage in the docstring.
10942 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10943 (Fdelete_frame): Call font_update_drivers.
10945 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10946 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10947 (xftfont_get_xft_draw): New function.
10948 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10949 (xftfont_end_for_frame): New function.
10950 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10952 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10953 Change argument. Cache GCs in the per-frame data.
10954 (struct ftxfont_frame_data): New struct.
10955 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10956 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10957 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10958 (ftxfont_end_for_frame): New function.
10959 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10961 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10963 2008-02-01 Kenichi Handa <handa@m17n.org>
10965 * xselect.c (Vselection_coding_system)
10966 (Vnext_selection_coding_system): Delete them.
10967 (syms_of_xselect): Don't declare selection-coding-system and
10968 next-selection-coding-system. They are declared in select.el.
10970 2008-02-01 Jason Rumney <jasonr@gnu.org>
10972 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10974 * w32fns.c: Include imm.h.
10975 (get_composition_string_fn, get_ime_context_fn): New optional
10977 (globals_of_w32fns): Load them from imm32.dll.
10978 (ignore_ime_char): New flag.
10979 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10980 WM_IME_ENDCOMPOSITION messages.
10982 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10983 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10985 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10987 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10988 (READCHAR_REPORT_MULTIBYTE): New macro.
10989 (readchar): New 2nd arg MULTIBYTE.
10990 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10991 Make symbol's name multibyte according to the multibyteness of the
10994 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10996 * xfaces.c (face_for_overlay_string): Call lookup_face with
10997 correct arguments (fix of synching with the trunk).
10999 2008-02-01 Kenichi Handa <handa@m17n.org>
11001 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11002 (font_prop_validate_non_neg, font_prop_validate_spacing):
11003 Delete argument prop_index.
11004 (font_property_table): Change arguments to validater. Change Callers.
11005 (font_lispy_object): Delete.
11006 (font_at): Use font_find_object instead fo font_lispy_object.
11008 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11010 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11013 2008-02-01 Jason Rumney <jasonr@gnu.org>
11015 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11016 (font_matches_spec): Remove debug output.
11017 (add_font_entity_to_list): Avoid using substituted fonts.
11019 2008-02-01 Jason Rumney <jasonr@gnu.org>
11021 * doc.c (Fsnarf_documentation):
11022 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11024 2008-02-01 Miles Bader <miles@gnu.org>
11026 * dispextern.h (struct glyph_row): Only define "clip" field if
11027 HAVE_WINDOW_SYSTEM is defined.
11029 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11031 Fix up multi-tty merge.
11033 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11036 * xfaces.c (free_realized_face, clear_face_gcs):
11037 Include font_done_for_face in the input_blocked section, just in case.
11039 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11040 (get_char_face_and_encoding): Undo last change and remove the *other*
11041 duplicate definition (i.e. keep the one that's better scoped and that
11042 includes code for the font-backend).
11044 * terminal.c (create_terminal): Default keyboard_coding to
11045 `no-conversion' and terminal_coding to `undecided'.
11047 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11049 * fontset.c (free_realized_fontsets): Check that the table entry does
11050 contain a fontset before trying to compare it to `base'.
11052 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11053 syms_of_charset, and syms_of_coding earlier because init_window_once
11054 now needs Vcoding_system_hash_table to be setup.
11056 * coding.h (default_buffer_file_coding): Remove.
11058 * coding.c (default_buffer_file_coding): Remove.
11059 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11060 than ->symbol, and use the terminal-local coding system.
11061 (syms_of_coding): Don't setup the coding-systems that are not
11063 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11065 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11066 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11068 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11069 in chartab.c and were re-added here by mistake.
11070 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11072 * doc.c (Fsnarf_documentation):
11073 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11076 * ChangeLog.10: Add mistakenly removed entry.
11078 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11080 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11082 2008-02-01 Miles Bader <miles@gnu.org>
11084 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11085 Add extra args to FACE_FOR_CHAR.
11087 2008-02-01 Kenichi Handa <handa@m17n.org>
11089 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11092 * chartab.c (map_sub_char_table, map_char_table): If the range
11093 contains just one character, call the function with that character
11094 even if the depth is not 3.
11096 2008-02-01 Jason Rumney <jasonr@gnu.org>
11098 * w32font.c (w32font_text_extents): Calculate metrics for the
11101 2008-02-01 Jason Rumney <jasonr@gnu.org>
11103 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11105 2008-02-01 Jason Rumney <jasonr@gnu.org>
11107 * w32term.c (x_set_glyph_string_clipping): Use
11108 get_glyph_string_clip_rects.
11109 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11110 Adjust for the change of struct glyph_string.
11112 * w32font.c (w32font_draw): Do clipping here.
11114 2008-02-01 Kenichi Handa <handa@m17n.org>
11116 * xftfont.c (xftfont_draw): Adjust for the change of struct
11119 * xterm.c (x_set_glyph_string_clipping): Use
11120 get_glyph_string_clip_rects.
11121 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11122 Adjust for the change of struct glyph_string.
11124 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11125 the resulting clip(s}.
11126 (expose_overlaps): Add arg r. Change callers. Set it to
11127 row->clip temporarily.
11128 (expose_window): Redraw rows overlapping the exposed area.
11130 * dispextern.h (struct glyph_row): New member clip.
11131 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11132 clip_height, new member clip, and num_clips.
11134 2008-02-01 Kenichi Handa <handa@m17n.org>
11136 * data.c (Fchar_or_string_p): Fix docstring.
11138 2008-02-01 Kenichi Handa <handa@m17n.org>
11140 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11141 create a temporary XftDraw object.
11143 2008-02-01 Kenichi Handa <handa@m17n.org>
11145 * font.c (Ffontp): Fix docstring.
11147 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11148 strong evidence of ISO-2022.
11150 2008-02-01 Kenichi Handa <handa@m17n.org>
11152 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11153 SYNTAX_ENTRY_FOLLOW_PARENT.
11155 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11157 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11159 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11160 Update to the new type of weak_hash_tables and next_weak.
11162 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11163 a plain C pointer to Lisp_Hash_Table.
11165 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11166 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11167 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11168 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11169 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11170 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11171 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11172 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11173 (GC_EQ): Remove since they've been identical to their non-GC_
11174 alter-egos ever since the markbit was eradicated.
11193 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11195 2008-02-01 Kenichi Handa <handa@m17n.org>
11197 * chartab.c (map_sub_char_table): Make it work for the top-level
11198 char-table. Fix handling of parent char-table.
11199 (map_char_table): Adjust for the above change.
11201 2008-02-01 Jason Rumney <jasonr@gnu.org>
11203 * w32font.c (Qgdi): Rename from Qw32.
11205 2008-02-01 Jason Rumney <jasonr@gnu.org>
11207 * w32bdf.c (get_quoted_string): Make function static.
11209 2008-02-01 Kenichi Handa <handa@m17n.org>
11211 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11212 bigger ascent and descent than those of the font, use them as
11213 font's ascent and descent.
11215 2008-02-01 Kenichi Handa <handa@m17n.org>
11217 * Makefile.in (${lispsource}international/charprop.el): Move this
11218 target within "#ifdef HAVE_UNIDATA" and "#endif".
11220 2008-02-01 Kenichi Handa <handa@m17n.org>
11222 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11223 (shortlisp): Add ../lisp/language/tai-viet.el.
11225 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
11227 * Makefile.in (${lispsource}international/charprop.el): Depend on
11230 2008-02-01 Jason Rumney <jasonr@gnu.org>
11232 * w32font.c (w32font_close): Delete the GDI font object.
11234 * w32menu.c: Include character.h.
11236 * w32proc.c: Likewise.
11238 * w32select.c: Likewise.
11240 * makefile.w32-in (w32proc.o): Depend on character.h.
11242 2008-02-01 Jason Rumney <jasonr@gnu.org>
11244 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11246 * w32menu.c (syms_of_w32menu): Likewise.
11248 * w32proc.c (syms_of_ntproc): Likewise.
11250 * w32select.c (syms_of_w32select): Likewise.
11252 * w32term.c (syms_of_w32term): Likewise.
11254 2008-02-01 Jason Rumney <jasonr@gnu.org>
11256 * w32font.c (w32font_draw): Delete brush after using it.
11258 2008-02-01 Jason Rumney <jasonr@gnu.org>
11260 * w32font.c (w32font_open): Don't set font_idx.
11261 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11263 (w32font_draw): Fill background explicitly.
11265 2008-02-01 Jason Rumney <jasonr@gnu.org>
11267 * w32term.c (w32_initialize): Don't call w32font_initialize.
11269 * w32font.c (w32font_info): Remove subranges.
11270 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11271 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11272 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11273 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11274 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11275 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11276 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11277 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11278 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11279 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11281 (font_callback_data): New struct.
11282 (w32font_list, w32font_match): Use it.
11283 (w32font_open): Don't populate subranges.
11284 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11285 (w32font_encode_char): Always return unicode code-point as-is.
11286 (w32font_text_extents): Supply a transformation matrix to
11287 GetGlyphOutline. Never look up by glyph index. Avoid looping
11288 twice. Use unicode version of GetTexExtentPoint32 instead of
11289 glyph index version.
11290 (set_fonts_frame): Remove.
11291 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11292 set frame parameter. Use backward compatible fake foundries.
11293 Save generic family in extra slot under QCfamily. Make width slot
11294 constant. Save QCspacing value. Save list of scripts instead of
11296 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11297 (add_font_entity_to_list): Use font_callback_data struct. Filter
11299 (add_one_font_entity_to_list): Use font_callback_data struct.
11300 (w32_registry): Default to iso10646_1.
11301 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11302 string font registries. Don't fill in font name if it is a generic
11303 family name, fill family instead. Use spacing, family and script
11304 extra info to fill pitch, family and charset fields.
11305 (list_all_matching_fonts): Use font_callback_data struct.
11306 (unicode_range_for_char): Remove.
11307 (font_supported_scripts): New function.
11308 (w32font_initialize): Remove.
11309 (syms_of_w32font): Update which symbols are defined.
11311 2008-02-01 Jason Rumney <jasonr@gnu.org>
11313 * font.c (font_pixel_size): Reverse assq_no_quit args.
11315 * w32term.h (FONT_WIDTH): Report max width, not average.
11316 (FONT_MAX_WIDTH): Remove.
11317 (FONT_AVG_WIDTH): New macro.
11319 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11320 redefinition of FONT_WIDTH.
11322 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11323 (w32_cache_char_metrics): Use FONT_WIDTH.
11325 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11327 2008-02-01 Jason Rumney <jasonr@gnu.org>
11329 * w32font.c (w32font_open): Make lfHeight negative.
11331 * w32fns.c (x_default_font_parameter): Use new style font name.
11332 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11334 2008-02-01 Jason Rumney <jasonr@gnu.org>
11336 * w32font.c (QCsubranges): New symbol.
11337 (w32font_open, w32font_has_char): Get subranges from subproperty
11339 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11340 (syms_of_w32font): Define :subranges symbol.
11342 * font.c (font_put_extra): Expose externally.
11344 * font.h (font_put_extra): Move declaration from font.c.
11346 * font.c (Ffont_get): Use font driver to determine otf capability.
11347 (adjust_anchor): Check if driver defines anchor_point before using.
11349 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11350 (w32font_draw): Use options.
11351 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11352 Fix detection of truetype fonts.
11353 (registry_to_w32_charset): Handle charsets other than iso8859-1
11354 expressed as lisp symbols.
11355 (w32_registry): Express charset as lisp symbol.
11356 (fill_in_logfont): Reverse pixel and point height logic.
11357 Don't set width here. Set quality to default.
11359 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11360 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11362 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11363 Remove redundant loop and allocation.
11365 * makefile.w32-in (font.o, w32font.o): New objects.
11366 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11367 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11369 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11370 STORE_XCHARB a valid l-value.
11372 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11373 calculations for non-Truetype fonts.
11374 (x_draw_glyph_string): Sync with xterm.c.
11375 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11376 Remove redundant code.
11377 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11379 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11380 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11382 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11383 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11385 * w32font.c: New file for w32 font backend.
11387 2008-02-01 Kenichi Handa <handa@m17n.org>
11389 * term.c: Don't include "buffer.h" twice.
11391 2008-02-01 Kenichi Handa <handa@m17n.org>
11393 * character.c (Funibyte_string): New function.
11394 (syms_of_character): Defsubr it.
11396 2008-02-01 Jason Rumney <jasonr@gnu.org>
11398 * w32term.c [USE_FONT_BACKEND]:
11399 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11400 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11401 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11402 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11403 (x_free_frame_resources): Sync with xterm.c.
11405 2008-02-01 Andreas Schwab <schwab@suse.de>
11407 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11410 2008-02-01 Kenichi Handa <handa@m17n.org>
11412 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11414 2008-02-01 Kenichi Handa <handa@m17n.org>
11416 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11417 font_otf_gpos, add font_drive_otf.
11419 * fontset.c (fontset_find_font): Pay attention to font size
11420 specified for a font.
11421 (reorder_font_vector): Check contents of font_def.
11423 * font.c (struct otf_list): Delete it.
11424 (otf_list): Make it a lisp variable.
11425 (otf_open): Use lispy otf_list.
11426 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11427 (check_otf_features): New function.
11428 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11430 (font_drive_otf): New function merging font_otf_gsub and
11432 (font_open_for_lface): New arg spec. Change argument order.
11433 (font_load_for_face): Adjust for the change of font_open_for_lface.
11434 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11436 (syms_of_font): Staticpro otf_list. Delete defsubr of
11437 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11439 * xfaces.c (set_font_frame_param): Adjust for the change of
11440 font_open_for_lface.
11442 * font.h (font_open_for_lface): Adjust prototype.
11443 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11445 (font_otf_gsub, font_otf_gpos): Delete externs.
11446 (font_drive_otf): Extern it.
11448 2008-02-01 Kenichi Handa <handa@m17n.org>
11450 * font.c (font_at): If the window W is not on a window system,
11453 * coding.c (produce_chars, encode_coding): Don't call
11454 insert_from_gap if no characters to produce.
11456 2008-02-01 Kenichi Handa <handa@m17n.org>
11458 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11461 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11463 2008-02-01 Miles Bader <miles@gnu.org>
11465 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11466 Parse "--disable-font-backend" option.
11467 (standard_args): Add "--disable-font-backend" option.
11469 2008-02-01 Kenichi Handa <handa@m17n.org>
11471 * fontset.c (fontset_find_font): New function.
11472 (fontset_font): Use fontset_find_font.
11473 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11474 Register the specified font for all Latin characters.
11475 (new_fontset_from_font): Register the specified font for all Latin
11477 (dump_fontset): For a realized fontset, include the base fontset
11478 name in the returned vector.
11480 2008-02-01 Kenichi Handa <handa@m17n.org>
11482 * character.h (CHAR_STRING): Cast C to unsigned on calling
11485 * character.c (char_string): Type of arg C changed to unsigned.
11486 Signal an error if C is an invalid character code.
11488 * editfns.c (general_insert_function, Fchar_to_string):
11489 Use CHARACTERP, not INTEGERP.
11491 2008-02-01 Kenichi Handa <handa@m17n.org>
11493 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11494 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11496 * regex.c (analyse_first): Fix for multibyte characters in "case
11497 charset:" and "case categoryspec:".
11499 2008-02-01 Andreas Schwab <schwab@suse.de>
11501 * Makefile.in (LIBES): Move standard libraries to the end.
11503 2008-02-01 Kenichi Handa <handa@m17n.org>
11505 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11506 nonzero, don't shrink the buffer nextb.
11508 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11510 * coding.c (coding_alloc_by_making_gap): New arg offset.
11511 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11513 (decode_coding_iso_2022): Update coding->safe_charsets.
11514 (decode_coding_gap): Temporarily set
11515 current_buffer->text->inhibit_shrinking to 1.
11517 2008-02-01 Kenichi Handa <handa@m17n.org>
11519 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11520 indexing into elements of s->cmp and s->char2b.
11522 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
11524 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11526 2008-02-01 Kenichi Handa <handa@m17n.org>
11528 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11529 target_multibyte instead of multibyte.
11530 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11531 (bcmp_translate): Change the argument name from multibyte to
11534 2008-02-01 Kenichi Handa <handa@m17n.org>
11536 These changes are to compile a regexp into a pattern that can be
11537 used both for multibyte and unibyte targets.
11539 * Makefile.in (search.o): Depend on charset.h.
11541 * character.c (multibyte_char_to_unibyte_safe): New function.
11543 * search.c: Include "charset.h".
11544 (compile_pattern_1): Delete argument multibyte. Don't set
11545 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11546 (compile_pattern): Don't compare cp->buf.target_multibyte.
11547 Compare cp->buf.charset_unibyte.
11548 (compile_pattern): Set cp->buf.target_multibyte.
11550 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11552 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11554 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11555 multibyte. Change callers.
11556 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11557 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11558 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11559 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11560 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11561 (regex_compile): Make the compiled pattern usable both for
11562 multibyte and unibyte targets.
11563 (analyse_first): Make the fastmap usable both for multibyte and
11565 (TRANSLATE_VIA_MULTIBYTE): Delete.
11566 (re_match_2_internal): Pay attention to the case that the
11567 multibyteness of bufp and target may be different.
11569 2008-02-01 Kenichi Handa <handa@m17n.org>
11571 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11572 empty box occupy at least one column width.
11574 2008-02-01 Miles Bader <miles@gnu.org>
11576 * Makefile.in: Remove redundant HAVE_XFT clause.
11578 2008-02-01 Kenichi Handa <handa@m17n.org>
11580 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11582 2008-02-01 Kenichi Handa <handa@m17n.org>
11584 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11587 2008-02-01 Kenichi Handa <handa@m17n.org>
11589 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11591 2008-02-01 Kenichi Handa <handa@m17n.org>
11593 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11595 2008-02-01 Kenichi Handa <handa@m17n.org>
11597 * search.c (simple_search): Fix previous change.
11599 2008-02-01 Kenichi Handa <handa@m17n.org>
11601 * xftfont.c (ftfont_font_format): Extern declaration.
11603 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11605 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11606 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11608 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11609 (ftfont_font_format): Fix previous change.
11611 * font.h (Ffont_xlfd_name): EXFUN it.
11613 * font.c (font_parse_xlfd): Fix the array size of `f'.
11614 (register_font_driver): Use EQ to compare driver->type.
11616 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11617 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11618 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11620 2008-02-01 Kenichi Handa <handa@m17n.org>
11622 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11623 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11625 2008-02-01 Kenichi Handa <handa@m17n.org>
11627 * xfont.c (xfont_open): Set font->format.
11629 * xftfont.c (xftfont_open): Set font->format.
11631 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11632 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11633 (ftfont_open): Set font->format.
11634 (ftfont_font_format): New function.
11636 * font.h (struct font): New member format.
11638 * font.c (Qopentype): New variable.
11639 (syms_of_font): Defsym it.
11640 (Fquery_font): Change the format of the last element of the return
11643 2008-02-01 Kenichi Handa <handa@m17n.org>
11645 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11648 2008-02-01 Kenichi Handa <handa@m17n.org>
11650 * coding.c (detect_coding_charset): Fix detection of multi-byte
11653 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11655 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11657 2008-02-01 Kenichi Handa <handa@m17n.org>
11659 * xdisp.c (get_next_display_element): Set it->face_id for the
11660 first component of a composition.
11661 (x_produce_glyphs): Check if the font is changed or not for composition.
11663 2008-02-01 Kenichi Handa <handa@m17n.org>
11665 * fontset.c (Qlatin): New variable.
11666 (syms_of_fontset): Define it as a lisp symbol.
11667 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11669 2008-02-01 Kenichi Handa <handa@m17n.org>
11671 * font.c (font_unparse_fcname): Pay attention to the case that
11672 some of font property is a null string.
11674 2008-02-01 Kenichi Handa <handa@m17n.org>
11676 * term.c: Include "composite.h".
11677 (encode_terminal_code): Output all components of composition.
11678 Check the size of encode_terminal_src.
11679 (produce_glyphs): For composition, call produce_composite_glyph.
11680 (append_composite_glyph, produce_composite_glyph): New functions.
11682 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11683 is not found, get font_info from the current ascii face.
11685 2008-02-01 Kenichi Handa <handa@m17n.org>
11687 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11688 buffer-file-name to Qnil before calling insert_from_buffer.
11690 * font.c (font_unparse_fcname): Pay attention to the case that
11691 foundry is a null string.
11693 2008-02-01 Kenichi Handa <handa@m17n.org>
11695 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11697 * font.c (Qunicode_sip): New variable.
11698 (syms_of_font): Declare it as a Lisp symbol.
11700 * font.h (Qunicode_sip): Extern it.
11702 2008-02-01 Kenichi Handa <handa@m17n.org>
11704 * composite.c (get_composition_id): Pay attention to TAB component.
11706 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11707 TAB. Adjust for the change of s->char2b which always points to
11708 the first element of allocated memory.
11710 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11712 * xdisp.c (handle_composition_prop): Set it->c to the first
11714 (fill_composite_glyph_string): Change argument.
11715 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11716 (x_produce_glyphs): Fix handling of left/right padding.
11718 2008-02-01 Kenichi Handa <handa@m17n.org>
11720 * coding.c (detect_coding_system): Fix for handling off
11721 inhibit_iso_escape_detection. Fix for the case that no coding
11722 system is defined for a specific coding category.
11724 2008-02-01 Kenichi Handa <handa@m17n.org>
11726 * font.c (font_matching_entity): Delete unused local var.
11728 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11731 * fileio.c (Finsert_file_contents): On recovering a file, assume
11733 (choose_write_coding_system): On auto-saving a file, force
11736 * coding.c (setup_coding_system): Fix setting of
11737 coding->common_flags based on eol_type.
11738 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11741 2008-02-01 Kenichi Handa <handa@m17n.org>
11743 * alloc.c (NSTATICS): Increas to 0x600.
11745 2008-02-01 Kenichi Handa <handa@m17n.org>
11747 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11748 (ftfont_list): Don't check :name property.
11749 (ftfont_match): New function.
11750 (ftfont_pattern_entity): If the pattern doesn't contain
11751 FC_SPACING, don't assume FC_MONO.
11753 * font.h (struct font_driver): New member `match'.
11754 (font_update_drivers): Adjust prototype.
11756 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11758 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11759 them unconditionally.
11760 (font_matching_entity): New function.
11761 (font_open_by_name): Try font_matching_entity if exact match is
11763 (font_update_drivers): Delete the arg FONT. Return a list of
11764 actually used backends. Don't free faces, font caches here.
11765 Don't store data in frame parameters. Don't call x_set_font.
11766 (Ffont_spec): Store :name property as is.
11767 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11768 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11769 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11770 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11771 Call font->driver->otf_gsub instead of font_otf_gsub.
11773 * frame.c (x_set_font_backend): Do more works that were done in
11774 font_update_drivers before.
11776 * xfont.c (xfont_match): New function.
11777 (xfont_driver): Set xfont_driver.match to xfont_match.
11778 (xfont_draw): Set font in GC if necessary.
11780 * ftxfont.c (ftxfont_match): New function.
11781 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11783 * xftfont.c (xftfont_match): New function.
11784 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11786 2008-02-01 Kenichi Handa <handa@m17n.org>
11788 * font.h (struct font): New member scalable.
11789 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11790 (font_otf_gsub): Adjust prototype.
11792 * font.c (font_otf_capability): Fix handling of the default langsys.
11793 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11794 Check the contents of SPEC.
11795 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11796 (check_gstring): New function.
11797 (REPLACEMENT_CHARACTER): New macro.
11798 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11799 glyph codes of GSTRING.
11800 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11801 (font_prepare_composition): Set cmp->glyph_len.
11802 (font_open_entity): Set font->scalable.
11803 (Ffont_get): Handle :otf property.
11804 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11806 (Fquery_font): Use font->font.full_name.
11807 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11808 Sfont_otf_alternates.
11810 * ftfont.c (ftfont_open): Set font->font.full_name and
11811 font->font.name properly. Fix calculation of font->font.height
11812 and font->min_width.
11814 * ftxfont.c (ftxfont_create_gcs): New function.
11815 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11816 (ftxfont_draw_backgrond): Fix filling region.
11817 (ftxfont_default_fid): New function.
11818 (ftxfont_open): Set xfont->fid to the return value of
11819 ftxfont_default_fid.
11820 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11821 (ftxfont_done_face): Free only GCs that are created by
11822 ftxfont_create_gcs.
11823 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11825 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11826 Clip to src->width, etc (not src->clip_XXX).
11828 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11829 FontBackend frame parameter.
11831 2008-02-01 Kenichi Handa <handa@m17n.org>
11833 * font.h (struct font_driver_list): New member `on'.
11834 (Fclear_font_cache): EXFUN it.
11835 (font_update_drivers): Extern it.
11837 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11838 (font_list_entities): Check driver_list->on.
11839 (register_font_driver): Initalize `on' member to 0.
11840 (font_update_drivers): New function.
11841 (Fclear_font_cache): Check driver_list->on.
11843 * frame.h (Qfont_backend): Extern it.
11844 (x_set_font_backend): Extern it.
11846 * frame.c (Qfont_backend): New variable.
11847 (frame_parms): New element for font-backend.
11848 (x_set_font_backend): New function.
11850 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11851 FontBackend frame parameter.
11852 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11853 x_set_font_backend.
11855 * xfont.c (xfont_list): Don't try listing by :name property if the
11856 name is not for XLFD.
11858 2008-02-01 Kenichi Handa <handa@m17n.org>
11860 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11861 (LGLYPH_SET_TO): New macros.
11862 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11863 element of G is vector or not.
11864 (font_at): Extern it.
11866 * font.c: Include window.h.
11867 (font_lispy_object): New function.
11868 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11869 end of valid glyph.
11870 (font_close_object): Fix getting (struct font *).
11871 (font_at): New function.
11872 (Ffont_get): If FONT is a font-object, get entity from it.
11873 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11874 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11876 (Ffont_at): New function.
11877 (syms_of_font): Defsubr Sfont_at.
11879 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11880 before the entry for Qcomposition.
11881 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11882 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11883 the font in gstring.
11884 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11885 LGLYPH_FORM (g) to detect the end of valid glyph.
11886 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11887 we are composing with gstring.
11889 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11890 Check if adjustment is vector or not.
11892 * Makefile.in (font.o): Make it depends on window.h.
11894 2008-02-01 Kenichi Handa <handa@m17n.org>
11896 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11897 adjustment is vector or not.
11899 2008-02-01 Miles Bader <miles@gnu.org>
11901 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11903 2008-02-01 Kenichi Handa <handa@m17n.org>
11905 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11906 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11907 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11909 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11910 (DEVICE_DELTA): Fix typo.
11911 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11914 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11915 the change of LGLYPH format.
11917 2008-02-01 Kenichi Handa <handa@m17n.org>
11919 * ftfont.c (ftfont_list): Fix typo.
11920 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11922 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11924 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11926 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11927 xftface_info is non-NULL.
11929 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11931 * ftfont.c (ftfont_list): Move misplaced #endif.
11933 2008-02-01 Kenichi Handa <handa@m17n.org>
11935 * ftfont.c (ftfont_list): Pay attention to the case that
11936 FC_CAPABILITY is not defined.
11938 2008-02-01 Kenichi Handa <handa@m17n.org>
11940 * xftfont.c (xftfont_open): Set charset related members to -1.
11942 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11944 (ftfont_open): Set charset related members to -1.
11946 * fontset.c (Votf_script_alist): New variable.
11947 (syms_of_fontset): Initialize it.
11948 (fontset_font): Delete unused variable.
11950 * fontset.h (Votf_script_alist): Extern it.
11952 * font.c (font_find_for_lface): Optimize code.
11954 * font.h (font_close_object, font_merge_old_spec): Extern them.
11956 2008-02-01 Kenichi Handa <handa@m17n.org>
11958 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11959 (syms_of_font): Initialize them.
11960 (font_pixel_size): Allow float value in dpi.
11961 (font_prop_validate_type): Delete.
11962 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11964 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11965 (font_prop_validate_extra): Delete.
11966 (font_prop_validate_spacing): New function.
11967 (font_property_table): Add elements for all known properties.
11968 (get_font_prop_index): Rename from check_font_prop_name. New
11969 argument FROM. Change caller.
11970 (font_prop_validate): Validate all known properties.
11971 (font_put_extra): Delete argument force. Change caller.
11972 (font_expand_wildcards): Make it static. Fix the way of shrinking
11973 the possible range.
11974 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11975 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11977 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11978 (font_parse_fcname): Delete argument merge. Fix parsing of point
11979 size. Don't validate properties values here. Change caller.
11980 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11981 (font_open_by_name): Delete unused variable.
11982 (Ffont_spec): Likewise. Validate property values.
11983 (Ffont_match_p): New function.
11985 * font.h (QCscalable): Extern it.
11986 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11988 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11990 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11991 (xfont_list_pattern): New function.
11992 (xfont_list): Use xfont_list_pattern.
11994 2008-02-01 Kenichi Handa <handa@m17n.org>
11996 * font.h (Flist_fonts): EXFUN it.
11998 2008-02-01 Jason Rumney <jasonr@gnu.org>
12000 * w32term.c (w32_initialize): Add back smoothing_type and
12001 smoothing_enabled definitions.
12003 2008-02-01 Kenichi Handa <handa@m17n.org>
12005 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12006 s->face->font on determining underline position.
12008 2008-02-01 Kenichi Handa <handa@m17n.org>
12010 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12011 (font_has_char): Accept font-object too.
12012 (font_find_for_lface): Try at first with a size specified in face.
12014 2008-02-01 Kenichi Handa <handa@m17n.org>
12016 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12019 2008-02-01 Kenichi Handa <handa@m17n.org>
12021 * font.h (QCspacing, QCdpi): Extern them.
12022 (enum font_spacing): New enum.
12023 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12025 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12026 (QCspacing, QCdpi): New variables.
12027 (syms_of_font): Initialize them.
12028 (font_pixel_size): New function.
12029 (font_put_extra): New function.
12030 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12032 (font_parse_fcname): Handle enumerated values (e.g. bold).
12033 Fix handling font size. Add QCname property that contains only
12034 unknown properties.
12035 (font_score): Change argument. Change caller. Pay attention to
12036 FONT_PIXEL_SIZE_QUANTUM.
12037 (font_sort_entites, font_list_entities, font_find_for_lface)
12038 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12039 (Ffont_spec): Add QCname property that contains only unknown properties.
12041 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12042 include weight in listing pattern, instead check weight of each
12043 listed font. Don't include scalable in pattern. Pay attention to
12044 FONT_PIXEL_SIZE_QUANTUM.
12046 2008-02-01 Kenichi Handa <handa@m17n.org>
12048 * font.c (font_parse_fcname): Fix parsing of point-size.
12049 (font_unparse_fcname): Produce symbolic names for style properties.
12050 (font_list_entities): Handle float size correctly.
12051 (font_open_by_name): Prefer `normal' property values if the name
12052 doesn't specify them.
12054 * fontset.c (Finternal_char_font): Use font_get_name, not
12057 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12058 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12059 pattern. Don't force scalable.
12061 * xftfont.c (xftfont_open): For generating a name, start from
12064 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12066 * frame.h (x_new_fontset2): Fix prototype.
12068 2008-02-01 Kenichi Handa <handa@m17n.org>
12070 * font.h (struct font_driver): Delete member parse_name.
12071 (font_match_p, font_get_spec, font_parse_fcname)
12072 (font_unparse_fcname): Extern them.
12073 (font_get_name): Adjust prototype.
12075 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12076 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12077 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12078 unnecessary checks for weight, slant, and swidth.
12079 (font_parse_fcname): New function.
12080 (font_unparse_fcname): New function.
12081 (font_parse_name): New function.
12082 (font_match_p): New function.
12083 (font_get_name): Change return value to Lisp string.
12084 (font_get_spec): New function.
12085 (Qunspecified, Qignore_defface): Don't extern them.
12086 (font_find_for_lface): Assume that LFACE is fully specified.
12087 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12088 object, use it for FACE.
12089 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12090 driver->parse_name.
12091 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12093 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12096 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12097 argument F. Don't call Fnew_fontset. Instead, directly call
12100 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12102 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12105 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12106 (Qsans__serif): New variables.
12107 (ftfont_generic_family_list): New variable.
12108 (syms_of_ftfont): Initialize the above variables.
12109 (ftfont_pattern_entity): Delete argument NAME.
12110 (ftfont_list_generic_family): New function.
12111 (ftfont_parse_name): Delete this function.
12112 (ftfont_list): Try generic family only when FcFontList found no font.
12113 (ftfont_list_family): Fix args to FcObjectSetBuild.
12115 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12116 object in attrs[LFACE_FONT_INDEX].
12117 (set_lface_from_font_name): Cancel all changes for font-backend.
12118 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12120 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12121 font object in QCfont attribute.
12122 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12123 (realize_default_face) [USE_FONT_BACKEND]: Call
12124 set_lface_from_font_and_fontset.
12126 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12127 "fixed", and signal error here if no suitable font was found.
12129 * xfont.c (xfont_parse_name): Delete this function.
12131 * xftfont.c (xftfont_open): Change coding style of error
12132 handling. Generate fontconfig's fontname pattern.
12134 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12135 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12137 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12138 Both args FONTSET and FONT_OBJECT must be existing ones.
12140 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12142 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12144 2008-02-01 Kenichi Handa <handa@m17n.org>
12146 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12148 * font.h (struct font): Fix typo.
12150 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12152 (enum xlfd_field_mask): New enum.
12153 (intern_font_field): Changed argument. Change caller. If digits
12154 are followed by non-digits, return a symbol.
12155 (font_expand_wildcards): New function.
12156 (font_parse_xlfd): Fix wildcard handling.
12157 (Ffont_spec): If :name is specified, reflect the info in the other
12160 * ftfont.c (ftfont_pattern_entity): Fix typo.
12161 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12164 2008-02-01 Kenichi Handa <handa@m17n.org>
12166 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12168 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12169 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12170 registry doesn't specify encoding part.
12171 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12172 (font_open_by_name): At first try parsing the name.
12173 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12176 * fontset.c (reorder_font_vector): Pay attention to the case that
12177 the 3rd element of font_def is nil.
12178 (fontset_font): For the default fontset, append one more fontset
12179 elements for a script-based font specification. Don't add script
12180 attribute on finding a font.
12181 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12183 (fontset_ascii_font): If a font can't be opened, return nil.
12185 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12186 (ftfont_pattern_entity): New function.
12187 (ftfont_get_cache): Assume that freetype_font_cache is already
12189 (ftfont_list): Handle the case that a file is specified in font
12190 name. Use ftfont_pattern_entity to generate entities.
12191 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12192 (syms_of_ftfont): Initialize freetype_font_cache.
12194 * xftfont.c (xftfont_open): Make the font name fontconfig's
12195 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12196 (xftfont_close): Free font->font.name if not NULL.
12198 * xfont.c (xfont_list): If script is specified for a font, return
12200 (xfont_list_family): Declare argument type.
12202 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12203 name, set LFACE_FONT (lface) to nil.
12205 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12208 2008-02-01 Kenichi Handa <handa@m17n.org>
12210 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12211 (standard_args): Add "-enable-font-backend".
12213 2008-02-01 Kenichi Handa <handa@m17n.org>
12215 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12216 (struct xftdraw_list, xftdraw_list): Delete them.
12217 (register_xftdraw, check_xftdraw): Delete them.
12218 (xftfont_prepare_face): Don't call register_xftdraw.
12219 (xftfont_done_face): Don't call check_xftdraw.
12220 (xftfont_draw): Get background color only when with_background is
12223 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12225 2008-02-01 Kenichi Handa <handa@m17n.org>
12227 These changes are for the new font handling codes.
12229 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12230 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12231 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12232 (FONTSRC, FONTOBJ): New variables.
12233 (obj): Add $(FONTOBJ).
12234 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12235 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12237 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12238 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12240 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12242 * character.h (Vscript_representative_chars): Extern it.
12244 * character.c (Vscript_representative_chars): New variable.
12245 (syms_of_character): Declare it as a Lisp variable.
12247 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12248 enable_font_backend is nonzero, accept the composition method
12249 COMPOSITION_WITH_GLYPH_STRING.
12251 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12252 enumeration COMPOSITION_WITH_GLYPH_STRING.
12254 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12255 members clip_x, clip_y, clip_width, and clip_height.
12256 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12258 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12259 --enable-font-backend. Call syms_of_font.
12261 * fns.c (assoc_no_quit): New function.
12263 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12264 (face_for_font, new_fontset_from_font)
12265 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12267 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12268 (fontset_font, fontset_ascii, face_for_char)
12269 (make_fontset_for_ascii_face, Ffont_info)
12270 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12271 is nonzero, use font-backend mechanism.
12272 (find_font_encoding): Make it non-static.
12273 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12276 * frame.h (struct frame): New members resx and resy.
12277 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12278 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12280 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12281 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12283 * lisp.h (assoc_no_quit): Extern it.
12285 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12286 Through out the file, use FONT_INFO_FROM_FACE instead of
12287 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12288 rif->per_char_metric.
12289 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12290 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12291 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12292 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12293 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12294 nonzero, use font-backend mechanism.
12295 (get_per_char_metric): New function.
12297 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12298 (set_lface_from_font_name)
12299 (set_font_frame_param, free_realized_face)
12300 (prepare_face_for_display, clear_face_gcs)
12301 (Finternal_set_font_selection_order, realize_x_face)
12302 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12303 font-backend mechanism.
12304 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12305 (load_face_font) [USE_FONT_BACKEND]: Abort.
12306 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12307 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12309 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12310 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12311 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12312 nonzero, register all available font drivers. Call
12313 x_default_font_parameter for deciding a font.
12314 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12316 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12317 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12318 (x_set_glyph_string_clipping_exactly)
12319 (x_compute_glyph_string_overhangs)
12320 (x_draw_glyph_string_foreground)
12321 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12322 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12323 enable_font_backend is nonzero, use font-backend mechanism.
12324 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12326 2008-02-01 Kenichi Handa <handa@m17n.org>
12328 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12330 (syms_of_coding): Initialize system_eol_type.
12332 * process.c (Fset_process_coding_system): Inherit system's eol
12333 format if necessary.
12335 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12337 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12339 2008-02-01 Kenichi Handa <handa@m17n.org>
12341 * coding.c (decode_eol): Pay attention to buffer relocation in
12343 (decode_coding): Call decode_eol before restoring undo_list.
12345 2008-02-01 Kenichi Handa <handa@m17n.org>
12347 * charset.c (Fdefine_charset_internal): Fix setting of
12350 2008-02-01 Kenichi Handa <handa@m17n.org>
12352 * keyboard.c (read_char): Check if C is a character or not before
12353 looking up Vkeyboard_translate_table.
12355 2008-02-01 Kenichi Handa <handa@m17n.org>
12357 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12358 condition to terminate the loop.
12360 2008-02-01 Kenichi Handa <handa@m17n.org>
12362 * coding.c (produce_composition): Compare charbuf[i] instead of
12364 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12366 2008-02-01 Kenichi Handa <handa@m17n.org>
12368 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12369 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12370 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12372 (emacs_mule_char): Handle old style (Emacs 20) component character
12374 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12375 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12377 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12379 2008-02-01 Kenichi Handa <handa@m17n.org>
12381 * coding.c (encode_coding_ccl): Allocate destination dynamically
12384 2008-02-01 Kenichi Handa <handa@m17n.org>
12386 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12387 the loop. When quitted, show a proper error message.
12389 2008-02-01 Kenichi Handa <handa@m17n.org>
12391 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12392 src->clip_head and src->clip_tail temporarily instead of src->hl.
12394 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12395 character sequence.
12396 (Fccl_execute_on_string): Use ASET, not XSET.
12398 2008-02-01 Kenichi Handa <handa@m17n.org>
12400 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12402 2008-02-01 Kenichi Handa <handa@m17n.org>
12404 * coding.c (decode_coding): Fix the condition of terminating the
12407 2008-02-01 Kenichi Handa <handa@m17n.org>
12409 * data.c (Faset): On setting a character bigger than 255 in a
12410 unibyte string, signal an error instead of make the string multibyte.
12412 2008-02-01 Kenichi Handa <handa@m17n.org>
12414 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12415 made by a mapping table.
12417 2008-02-01 Kenichi Handa <handa@m17n.org>
12419 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12421 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12422 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12424 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12425 s->face is NULL or not.
12427 2008-02-01 Kenichi Handa <handa@m17n.org>
12429 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12430 (x_draw_glyph_string): Fix drawing of right_overhang and
12431 left_overhang around/on cursor.
12433 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12435 2008-02-01 Kenichi Handa <handa@m17n.org>
12437 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12439 2008-02-01 Kenichi Handa <handa@m17n.org>
12441 * coding.c (Fdefine_coding_system_internal)
12442 (Fdefine_coding_system_alias): Avoid a duplicated element in
12443 Vcoding_system_alist.
12445 2008-02-01 Kenichi Handa <handa@m17n.org>
12447 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12449 * coding.c (Qcoding_system_define_form): New variable.
12450 (syms_of_coding): Intern and staticpro it.
12451 (Fcoding_system_p): Check Qcoding_system_define_form.
12452 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12454 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12456 (CHECK_CODING_SYSTEM): If ID is not available, call
12457 Fcheck_coding_system.
12458 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12459 Try also Fcheck_coding_system.
12461 2008-02-01 Kenichi Handa <handa@m17n.org>
12463 * coding.c (code_conversion_restore): GCPRO arg.
12465 2008-02-01 Kenichi Handa <handa@m17n.org>
12467 * character.c (lisp_string_width): Check multibyteness of STRING.
12469 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12471 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12472 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12473 (decode_mac_font_name): Use decode_coding_c_string instead of
12475 (x_load_font): Initialize fontp->fontset to -1. Set
12476 fontp->encoding_type.
12478 2008-02-01 Kenichi Handa <handa@m17n.org>
12480 * search.c (search_buffer): Give up BM search on case-fold-search
12481 if one of a target character has a case-equivalence of different
12482 byte length even if that target charcter is an ASCII.
12483 (simple_search): Fix calculation of byte length of matched text.
12484 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12486 2008-02-01 Kenichi Handa <handa@m17n.org>
12488 * coding.c (decode_coding): Fix handling of invalid bytes.
12490 2008-02-01 Kenichi Handa <handa@m17n.org>
12492 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12493 Unicode characters.
12495 2008-02-01 Kenichi Handa <handa@m17n.org>
12497 * coding.c (encode_coding_object): If a pre-write-conversion
12498 function makes a new buffer, kill it.
12500 2008-02-01 Kenichi Handa <handa@m17n.org>
12502 * coding.c (QCascii_compatible_p): New variable.
12503 (syms_of_coding): Initialize it.
12504 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12505 calling string_char.
12506 (record_conversion_result): Add `default:' case.
12507 (coding_charset_list): Delete unused variable `coding_type'.
12508 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12509 property in the plist of the coding system.
12510 (Fcoding_system_put): Check QCascii_compatible_p.
12512 2008-02-01 Miles Bader <miles@gnu.org>
12514 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12515 removed calculation of frame `f', as it's now used.
12517 2008-02-01 Kenichi Handa <handa@m17n.org>
12519 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12520 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12521 (UNIDATA): New variable.
12522 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12523 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12524 $(RUN_TEMACS) unconditionally.
12526 2008-02-01 Kenichi Handa <handa@m17n.org>
12528 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12529 (admindir): New variable.
12530 ($(lispsource)international/charprop.el): New target.
12532 2008-02-01 Miles Bader <miles@gnu.org>
12534 * character.c (chars-in-region): Remove obsolete function.
12535 (syms_of_character): Remove its initialization.
12537 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12539 * w32select.c (validate_coding_system)
12540 (setup_windows_coding_system): New functions.
12541 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12542 setup_windows_coding_system.
12543 (setup_config, Fw32_get_clipboard_data): Use
12544 validate_coding_system.
12545 (Fx_selection_exists): Move call to setup_config to a place
12546 where signals are allowed.
12548 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12549 (Fcheck_coding_system): Add declarations.
12551 2008-02-01 Kenichi Handa <handa@m17n.org>
12553 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12555 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12557 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12558 string as the second argument for x_new_fontset.
12560 2008-02-01 Kenichi Handa <handa@m17n.org>
12562 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12563 (encode_coding_object): Use safe_call instead of call2.
12565 2008-02-01 Kenichi Handa <handa@m17n.org>
12567 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12569 * Makefile.in (lisp): Include charprop.el.
12571 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12573 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12574 Not sure if it's unnecessary.
12576 2008-02-01 Steven Tamm <steventamm@mac.com>
12578 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12579 some possibly unnecessary fontset checking code that crashed
12580 when creating a new frame.
12582 2008-02-01 Kenichi Handa <handa@m17n.org>
12584 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12587 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12589 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12591 2008-02-01 Kenichi Handa <handa@m17n.org>
12593 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12594 (coding_charset_list): New function.
12596 * coding.h (coding_charset_list): Extern it.
12598 2008-02-01 Kenichi Handa <handa@m17n.org>
12600 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12601 concatenation of family and registry.
12603 2008-02-01 Kenichi Handa <handa@m17n.org>
12605 * character.h (BYTE8_STRING): Fix typo.
12607 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12608 string to multibyte (sync to HEAD).
12610 * casefiddle.c (casify_region): Handle changes in byte-length
12611 using replace_range_2 (sync to HEAD).
12613 2008-02-01 Andreas Schwab <schwab@suse.de>
12615 * chartab.c (map_char_table): GCPRO table and arg.
12617 2008-02-01 Kenichi Handa <handa@m17n.org>
12619 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12622 2008-02-01 Kenichi Handa <handa@m17n.org>
12624 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12625 instead of fast_c_string_match_ignore_case.
12626 (find_font_encoding): Change argument to Lisp_Object. Use
12627 fast_string_match_ignore_case instead of
12628 fast_c_string_match_ignore_case. Change caller.
12630 2008-02-01 Kenichi Handa <handa@m17n.org>
12632 * xdisp.c (get_next_display_element): In unibyte case, decide to
12633 display in octal form by checking a character by
12634 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12636 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12638 * character.c (unibyte_has_multibyte_table): New variable.
12640 * character.h (unibyte_has_multibyte_table): Extern it.
12641 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12643 2008-02-01 Kenichi Handa <handa@m17n.org>
12645 * coding.c (encode_coding_iso_2022): Fix handling of charset
12648 2008-02-01 Kenichi Handa <handa@m17n.org>
12650 * coding.c (setup_coding_system): If coding_system is nil, use
12652 (Fterminal_coding_system): Return nil if terminal coding system is
12654 (syms_of_coding): Define coding-system `undecided' here. Setup
12655 terminal_coding as `undecided'.
12657 2008-02-01 Kenichi Handa <handa@m17n.org>
12659 * xdisp.c (message_dolog, set_message_1): Call
12660 unibyte_char_to_multibyte with arg type int.
12662 * lread.c (read1): Fix reading of a char-table.
12664 * print.c (print_object): Include sub char-table in circularities
12667 2008-02-01 Kenichi Handa <handa@m17n.org>
12669 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12670 Append the found sequences in car of ARGS instead of prepending.
12672 2008-02-01 Kenichi Handa <handa@m17n.org>
12674 * fileio.c (report_file_error): Make a unibyte string from
12675 strerror (errorno).
12676 (Fsubstitute_in_file_name): Fix the arg to
12677 unibyte_char_to_multibyte. It is evaluated twice.
12679 2008-02-01 Kenichi Handa <handa@m17n.org>
12681 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12683 2008-02-01 Kenichi Handa <handa@m17n.org>
12685 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12687 (detect_coding, detect_coding_system): Optimization for ISO-2022
12688 when no 8-bit data is found.
12690 2008-02-01 Jason Rumney <jasonr@gnu.org>
12692 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12694 2008-02-01 Kenichi Handa <handa@m17n.org>
12696 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12699 2008-02-01 Steven Tamm <steventamm@mac.com>
12701 * macterm.c (mac_encode_char): Add charset argument and update
12702 to use encoding_type.
12703 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12704 switch to pure fontset.
12705 (decode_mac_font_name): Temporarily remove decoding.
12706 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12707 (x_load_font): Temporarily remove encoding.
12709 2008-02-01 Kenichi Handa <handa@m17n.org>
12711 * xfaces.c (Fface_font): If frame is not on a window system,
12712 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12713 refer to face->font.
12714 (split_font_name_into_vector, build_font_name_from_vector)
12715 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12716 when HAVE_WINDOW_SYSTEM is defined.
12718 2008-02-01 Kenichi Handa <handa@m17n.org>
12720 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12721 (x_produce_glyphs): Fix setting of members of cmp in case
12722 cmp->glyph_len is zero.
12724 * fontset.c (Fset_fontset_font): Fix docstring.
12725 (Ffontset_info): Make it backward compatible. New arg ALL.
12727 2008-02-01 Kim F. Storm <storm@cua.dk>
12729 * process.c (read_process_output): Grow decoding_buf when needed;
12730 this could cause a crash in allocate_string and compact_small_strings.
12732 2008-02-01 Kenichi Handa <handa@m17n.org>
12734 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12736 2008-02-01 Kenichi Handa <handa@m17n.org>
12738 * coding.c (setup_coding_system): Set coding->common_flags
12739 correctly for raw-text.
12740 (consume_chars): On encoding unibyte text by raw-text, don't check
12742 (encode_coding): On encoding by raw-text, never use translation tables.
12744 * fileio.c (e_write): Short cut for the case of no encoding.
12746 2008-02-01 Kenichi Handa <handa@m17n.org>
12748 * coding.c (detect_coding, detect_coding_system): Delete unused
12751 2008-02-01 Kenichi Handa <handa@m17n.org>
12753 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12754 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12756 2008-02-01 Kenichi Handa <handa@m17n.org>
12758 * coding.c (Ffind_coding_systems_region_internal): Include
12759 raw-text and no-conversion in the result.
12761 2008-02-01 Kenichi Handa <handa@m17n.org>
12763 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12764 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12766 (font_def_arg, add_arg, from_arg, to_arg): New args.
12767 (set_fontset_font): Change argument.
12768 (Fset_fontset_font): Fix for the case that TARGET is a script
12769 name and charset name.
12770 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12772 2008-02-01 Kenichi Handa <handa@m17n.org>
12774 * fontset.c (fontset_font): Rename from fontset_face. Change return
12776 (face_suitable_for_char_p, face_for_char): Adjust for the change
12778 (make_fontset_for_ascii_face): Fix setting of the fontset element
12780 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12781 to get a font name.
12782 (Ffontset_info): Adjust for the change of fontset_font.
12784 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12786 * character.h (LEADING_CODE_LATIN_1_MIN)
12787 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12789 2008-02-01 Kenichi Handa <handa@m17n.org>
12791 * editfns.c (check_translation): New function.
12792 (Ftranslate_region_internal): Handle M:N mapping.
12794 2008-02-01 Kenichi Handa <handa@m17n.org>
12796 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12798 2008-02-01 Kenichi Handa <handa@m17n.org>
12800 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12802 (decode_coding_iso_2022): Fix handling of invalid designation.
12804 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12805 after calling code_conversion_save.
12807 2008-02-01 Kenichi Handa <handa@m17n.org>
12809 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12811 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12813 * fontset.c: Include "intervals.h".
12814 (fontset_face): Fix comparing of Lisp_Objects.
12815 (free_face_fontset, new_fontset_from_font_name): Fix
12816 Lisp_Object/int mixup.
12818 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12820 * coding.c: Add many prototypes for static functions.
12821 (get_translation_table): Allow max_lookup to be NULL.
12822 (decode_coding, Ffind_coding_systems_region_internal)
12823 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12824 get_translation_table with max_lookup NULL.
12826 2008-02-01 Kenichi Handa <handa@m17n.org>
12828 * coding.c (get_translation_table): Declare it as Lisp_Object.
12829 (LOOKUP_TRANSLATION_TABLE): New macro.
12830 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12831 instead of CHAR_TABLE_REF.
12833 2008-02-01 Kenichi Handa <handa@m17n.org>
12835 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12836 annotation data format.
12837 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12838 Change arguments FROM and TO to single argument NCHARS. Change caller.
12839 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12840 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12841 (decode_coding_ccl, decode_coding_charset): Pay attention to
12842 coding->charbuf_used.
12843 (get_translation): New function.
12844 (produce_chars): New arguments translation_table and last_block.
12845 Translate characters here. Return number of carryover chars.
12847 (produce_composition): New argument pos. Change caller.
12848 Adjust for the change of annotation data format.
12849 (produce_charset, produce_annotation): Likewise.
12850 (decode_coding, encode_coding): Don't call translate_chars.
12851 (consume_chars): New arg translation_table. Change caller.
12852 (translate_chars): Delete.
12853 (syms_of_coding): Make translation-table's number of extra slots 2.
12855 2008-02-01 Kenichi Handa <handa@m17n.org>
12857 * search.c (simple_search): Fix setting this_pos_byte in backward
12860 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12862 (detect_coding_ccl): Fix setting of the variable valids.
12864 2008-02-01 Kenichi Handa <handa@m17n.org>
12866 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12868 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12870 * editfns.c (Ftranslate_region_internal): Rename from
12871 Ftranslate_region. Accept a char-table in TABLE.
12872 (syms_of_editfns): Defsubr Stranslate_region_internal.
12874 * xfaces.c (set_lface_from_font_name): If a font is specified for
12875 a frame, generate a fontset from the font.
12876 (build_scalable_font_name): If the scalable font is requested for
12877 a specific size, don't change that size.
12878 (try_font_list): Try a scalable font also in the case that a
12879 pattern string is specified.
12881 2008-02-01 Kenichi Handa <handa@m17n.org>
12883 * xfaces.c (Fface_font): New optional arg CHARACTER.
12885 2008-02-01 Kenichi Handa <handa@m17n.org>
12887 * charset.h (CHARSET_OFFSET): New macro.
12889 2008-02-01 Kenichi Handa <handa@m17n.org>
12891 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12893 * fontset.c (fontset_face): Handle the case that repertory is a
12895 (find_font_encoding): Return nil for unknown encoding.
12896 (Fset_fontset_font): Ignore a font of unknown encoding.
12898 2008-02-01 Kenichi Handa <handa@m17n.org>
12900 * keymap.c (describe_vector): Handle default value of a char table.
12902 * fontset.c (fontset_face): Handle fallback fonts correctly.
12903 (Ffontset_info): Return infomation about fallback fonts.
12905 2008-02-01 Kenichi Handa <handa@m17n.org>
12907 * fontset.c (FONTSET_DEFAULT): New macro.
12908 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12909 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12910 the case that it is nil.
12911 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12912 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12914 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12915 subset or superset.
12917 2008-02-01 Kenichi Handa <handa@m17n.org>
12919 * emacs.c (main): Call init_charset after syms_of_XXX.
12921 * charset.c (Vcharset_map_directory): Delete.
12922 (Vcharset_map_path): New variable.
12923 (load_charset_map_from_file): Use Vcharset_map_path instead.
12924 (init_charset): Initialize Vcharset_map_path.
12925 (syms_of_charset): Delete declaration of "charset-map-directory",
12926 add declaration of "charset-map-path".
12928 2008-02-01 Kenichi Handa <handa@m17n.org>
12930 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12933 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12935 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12936 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12938 2008-02-01 Kenichi Handa <handa@m17n.org>
12940 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12942 * coding.c (QCmnemonic, QCdefalut_char)
12943 (QCdecode_translation_table, QCencode_translation_table)
12944 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12945 (get_translation_table): Return a list of translation tables if
12947 (decode_coding): Call get_translation_table with ENCODEP 0.
12948 (char_encodable_p): If translation_table is non-nil, always call
12950 (Fdefine_coding_system_internal): Accept list of translation
12951 tables as :encode-translation-table and :decode-translation-table.
12952 (Fcoding_system_put): New function.
12953 (syms_of_coding): Declare new symbols. Defsubr
12954 Scoding_system_put.
12955 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12956 typically JISX0212.
12958 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12959 when the charset is superset type.
12961 * character.c (translate_char): Accept list of translation tables.
12963 2008-02-01 Kenichi Handa <handa@m17n.org>
12965 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12966 (CODING_ATTR_TRANS_TBL): New macro.
12968 * coding.c (get_translation_table): New function.
12969 (translate_chars): Fix the bug of skipping annotation data.
12970 (decode_coding, encode_coding): Utilize get_translation_table.
12971 (char_encodable_p, Funencodable_char_position): Translate char if
12973 (Ffind_coding_systems_region_internal)
12974 (Fcheck_coding_systems_region): Setup translation table for encode
12975 in a coding system attribute vector in advance.
12976 (Fdefine_coding_system_internal): Allow a symbol as translation
12977 table. For shift-jis type coding system, allow 4th charset.
12979 2008-02-01 Kenichi Handa <handa@m17n.org>
12981 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12983 * xdisp.c (get_next_display_element): Pass -1 as POS to
12984 FACE_FOR_CHAR if displaying a C-string.
12986 2008-02-01 Kenichi Handa <handa@m17n.org>
12988 * composite.c (get_composition_id): Handle xoff and yoff in a
12991 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12992 (struct composition): New member lbearing and rbearing.
12994 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12995 (x_get_glyph_overhangs): Handle a composition glyph.
12996 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12998 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13001 2008-02-01 Kenichi Handa <handa@m17n.org>
13003 * print.c: Include charset.h.
13004 (Vprint_charset_text_property): New variable.
13005 (Qdefault): Extern it.
13006 (PRINT_STRING_NON_CHARSET_FOUND)
13007 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13008 (print_check_string_result): New variable.
13009 (print_check_string_charset_prop): New function.
13010 (print_prune_charset_plist): New variable.
13011 (print_prune_string_charset): New function.
13012 (print_object): Call print_prune_string_charset if
13013 Vprint_charset_text_property is not t.
13014 (print_interval): Print nothing if interval->plist is nil.
13015 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13016 variable. Init and staticpro print_prune_charset_plist.
13018 2008-02-01 Kenichi Handa <handa@m17n.org>
13020 * fontset.c (new_fontset_from_font_name): Use the specified font
13021 for all characters in the new fontset.
13023 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13026 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13027 OBJECT args for composition too.
13029 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13032 2008-02-01 Kenichi Handa <handa@m17n.org>
13034 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13036 * fontset.c (reorder_font_vector): Adjust for the change of
13038 (fontset_face): New arg id. Change caller.
13039 (face_for_char): New args pos and object.
13040 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13041 (fs_query_fontset): Check NAME by Fassoc too.
13042 (Fset_fontset_font): Allow non-XLFD font name.
13043 (Ffontset_info): Adjust for the change of FONT_DEF format.
13045 * fontset.h (face_for_char): Adjust prototype.
13047 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13048 (append_space, extend_face_to_end_of_line)
13049 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13050 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13052 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13053 POS and OBJECT args.
13055 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13056 POS and OBJECT args.
13058 2008-02-01 Jason Rumney <jasonr@gnu.org>
13060 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13061 of GlobalAlloc'ed memory.
13063 2008-02-01 Kenichi Handa <handa@m17n.org>
13065 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13067 * charset.h (charset_table_used): Delete extern.
13069 * charset.c (charset_table_used): Make it static.
13070 (map_charset_chars): Fix args to c_function with.
13072 * chartab.c (map_sub_char_table_for_charset): Fix args to
13075 * coding.h (enum coding_result_code): Delete
13076 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13078 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13079 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13080 (Vlast_code_conversion_error): New variables.
13081 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13082 (ONE_MORE_BYTE): Record error if any instead of signaling an
13083 error. If non-ASCII multibyte char is found, return the negative
13084 value of the code. All callers changed to check it.
13085 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13086 (record_conversion_result): New function. Change all codes setting
13087 coding->result to call this function.
13088 (detect_coding_utf_8, decode_coding_utf_8)
13089 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13090 Don't use the local variable incomplete.
13091 (emacs_mule_char): Change the second arg to `const'.
13092 (decode_coding): Fix of flushing out unprocessed data.
13093 (make_conversion_work_buffer): Fix making of a work buffer.
13094 (decode_coding_object): Return coding->dst_object.
13096 * fontset.c (set_fontset_font): Fix args.
13098 * lisp.h (CHARACTERBITS): Define as 22.
13100 * process.c (send_process): Be sure to set coding->src_multibyte.
13102 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13104 2008-02-01 Kenichi Handa <handa@m17n.org>
13106 * xdisp.c (handle_auto_composed_prop): Give limit to
13107 Fnext_single_char_property_change.
13109 2008-02-01 Kenichi Handa <handa@m17n.org>
13111 * composite.c (syms_of_composite): Don't make the composition hash
13114 * fontset.c (Fset_fontset_font): Fix docstring.
13116 * lisp.h (detect_coding_system): Adjust prototype.
13118 * fileio.c (kill_workbuf_unwind): Delete this function.
13119 (Finsert_file_contents): Adjust the call of detect_coding_system.
13120 Get conversion_buffer by code_conversion_save. Use the macro
13121 CODING_MAY_REQUIRE_DECODING. After decoding, update
13124 * coding.h (make_conversion_work_buffer): Delete extern.
13125 (code_conversion_save): Extern it.
13127 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13128 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13129 (decode_coding_utf_8): Don't do eol converion.
13130 (detect_coding_utf_16): Check coding->src_chars, not
13131 coding->src_bytes. Add heuristics for those that have no signature.
13132 (decode_coding_emacs_mule, decode_coding_iso_2022)
13133 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13134 Don't do eol converion.
13135 (adjust_coding_eol_type): Return a new coding system.
13136 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13137 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13139 (decode_coding): Pay attention to undo_list. Do eol conversion for
13140 all types of coding-systems (if necessary).
13141 (Vcode_conversion_work_buf_list): Delete it.
13142 (Vcode_conversion_reused_workbuf): Rename from
13143 Vcode_conversion_reused_work_buf.
13144 (Vcode_conversion_workbuf_name): New variable.
13145 (reused_workbuf_in_use): New variable.
13146 (make_conversion_work_buffer): Delete the arg DEPTH.
13147 (code_conversion_restore): Change argument to cons.
13148 (code_conversion_save): Delete the argument BUFFER. Change callers.
13149 (detect_coding_system): New argument src_chars. Change callers.
13150 Fix for utf-16 detection.
13151 (init_coding_once): Don't use ISO_carriage_return.
13152 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13153 reused_workbuf_in_use.
13155 2008-02-01 Kenichi Handa <handa@m17n.org>
13157 * keymap.c (store_in_keymap): Pay attention to the case that idx
13158 is a cons specifying a character range.
13160 2008-02-01 Kenichi Handa <handa@m17n.org>
13162 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13163 HANDLED_RECOMPUTE_PROPS.
13165 * coding.c (Fdefine_coding_system_internal): Fix checking of
13166 ascii compatibility.
13168 2008-02-01 Kenichi Handa <handa@m17n.org>
13170 * charset.c (find_charsets_in_text): Delete unused locale variable.
13171 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13173 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13174 Resync charset_list to Vemacs_mule_charset_list.
13176 * keymap.c (store_in_keymap): Pay attention to the case that idx
13177 is a cons specifying a character range.
13179 2008-02-01 Kenichi Handa <handa@m17n.org>
13181 * composite.c (update_compositions): Bind inhibit-read-only, etc
13182 to t before calling remove-list-of-text-properties.
13184 * print.c (print_object): Always print ASCII chars as is.
13186 2008-02-01 Kenichi Handa <handa@m17n.org>
13188 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13190 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13193 2008-02-01 Kenichi Handa <handa@m17n.org>
13195 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13197 2008-02-01 Kenichi Handa <handa@m17n.org>
13199 * xfaces.c (set_lface_from_font_name): Fix for the case that
13200 FONTNAME is not fontset name.
13202 2008-02-01 Kenichi Handa <handa@m17n.org>
13204 * fns.c (base64_encode_1): Fix previous change.
13206 2008-02-01 Kenichi Handa <handa@m17n.org>
13208 * fontset.c (set_fontset_font): New function.
13209 (Fset_fontset_font): If a font is specified for a charset, use
13210 map_charset_chars to store the font spec in a fontset.
13212 2008-02-01 Kenichi Handa <handa@m17n.org>
13214 * fontset.c (fontset_face): Create a fallback fontset on demand.
13215 (make_fontset): Don't create a fallback fontset here.
13216 (free_face_fontset): Free a fallback fontset (if any) too.
13217 (n_auto_fontsets): Delete this variable.
13218 (auto_fontset_alist): New variable.
13219 (new_fontset_from_font_name): Check auto_fontset_alist.
13220 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13221 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13222 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13223 Defsubr Sfontset_list_all.
13225 2008-02-01 Kenichi Handa <handa@m17n.org>
13227 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13229 2008-02-01 Kenichi Handa <handa@m17n.org>
13231 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13233 2008-02-01 Kenichi Handa <handa@m17n.org>
13235 * editfns.c (Fgoto_char): Fix docstring.
13237 2008-02-01 Kenichi Handa <handa@m17n.org>
13239 * insdel.c (insert_from_gap): Adjust intervals correctly.
13241 2008-02-01 Jason Rumney <jasonr@gnu.org>
13243 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13244 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13245 (w32_initialize): Try to load it.
13246 (x_get_font_repertory): Use it if available.
13247 (w32_encode_char): Add shortcut for unicode output.
13249 * w32fns.c (w32_load_system_font): Default charset to -1.
13250 (x_to_w32_charset): Match all fonts for unicode.
13251 (w32_to_x_charset): New parameter matching. Don't return partial
13252 or wildcard charsets.
13253 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13254 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13255 (w32_to_x_font): Match charset to real charset.
13256 (enum_font_cb2): Always list unicode versions.
13258 * makefile.w32-in (temacs): Increase EMHEAP.
13260 2008-02-01 Jason Rumney <jasonr@gnu.org>
13262 * w32term.c (w32_encode_char): New charset parameter.
13263 font_info.encoding becomes encoding_type.
13264 (x_get_font_repertory): New function. Warning: stub only!
13265 (x_new_font): Return quickly if font already set.
13266 (x_new_fontset): fontsetname parameter is Lisp_Object.
13267 Use new fs_query_fontset. Try new_fontset_from_font_name.
13268 Use fontset_name for return value.
13270 * w32term.h: Declare x_get_font_repertory.
13272 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13273 place of find_charset_in_text. Use encode_coding_object in place
13275 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13278 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13280 (w32_load_system_font): Initialize charset as unicode.
13281 font_info.encoding becomes encoding_type.
13282 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13283 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13284 (syms_of_w32fns): Set get_font_repertory_func.
13286 * w32console.c: Include character.h. Use terminal_encode_buffer
13288 (write_glyphs): Use new version of encode_terminal_code. Use
13289 encode_coding_object in place of encode_coding.
13291 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13292 encoding becomes encoding_type.
13294 * term.c (terminal_encode_buffer): Make externally visible.
13296 * makefile.w32-in: Add character.h dependancies.
13297 (character.o, chartab.o): New targets.
13299 2008-02-01 Kenichi Handa <handa@m17n.org>
13301 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13302 CODING_ID_EOL_TYPE.
13304 2008-02-01 Andreas Schwab <schwab@suse.de>
13306 * coding.c (produce_chars): Revert last change.
13308 2008-02-01 Kenichi Handa <handa@m17n.org>
13310 * charset.h (charset_unicode): Extern it.
13312 * charset.c (string_xstring_p): Check by (C >= 0x100).
13313 (find_charsets_in_text): Change format of the arc CHARSETS. New
13315 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13316 change of find_charsets_in_text.
13317 (Fsplit_char): Fix doc. Never return unknown.
13319 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13321 * coding.c (Fdefine_coding_system_alias): Update
13322 Vcoding_system_list.
13324 * fontset.c (load_font_get_repertory): Pay attention to the case
13325 that ENCODING of a font is specified by a char-table.
13327 * xterm.c (x_get_font_repertory): Handle the case that the
13328 encoding of font is other than Unicode.
13330 2008-02-01 Kenichi Handa <handa@m17n.org>
13332 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13333 if a character is encodable by the terminal coding system. If
13334 not, produces proper number of `?'s. Update
13335 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13336 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13338 2008-02-01 Kenichi Handa <handa@m17n.org>
13340 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13342 (encode_terminal_code): Change argument. Encode multiple
13343 characters at once. Store the result of encoding in
13344 terminal_encode_buffer.
13345 (write_glyphs, insert_glyphs): Adjust for the change of
13346 encode_terminal_code.
13347 (term_init): Initialize terminal_encode_buffer and
13348 terminal_encode_buf_size.
13350 * coding.c (consume_chars): If coding->src_object is nil, don't
13353 2008-02-01 Kenichi Handa <handa@m17n.org>
13355 * character.c (char_string): Use ASCII_CHAR_P instead of
13356 SINGLE_BYTE_CHAR_P.
13358 2008-02-01 Kenichi Handa <handa@m17n.org>
13360 * xdisp.c (handle_auto_composed_prop): Check if the last
13361 characters of auto-composed region is newly composed with the
13362 following characters.
13363 (handle_composition_prop): Fix checking of point being inside
13366 2008-02-01 Kenichi Handa <handa@m17n.org>
13368 * fns.c (concat): Don't change multibyteness of the result by
13369 concatenating an 8-bit character.
13371 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13372 multibyteness of the result when newelt is an 8-bit character.
13374 2008-02-01 Dave Love <fx@gnu.org>
13376 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13379 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13381 * xfaces.c (face_numeric_value): Declare dim size_t.
13382 (Finternal_lisp_face_equal_p): Remove unused f.
13384 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13385 (MATRIX_ROW): Remove unused vars.
13386 (draw_glyphs, x_insert_glyphs, fast_find_position)
13387 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13390 * regex.c (regex_compile): Remove unused var.
13392 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13394 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13395 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13397 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13399 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13401 * fileio.c (Fwrite_region): Remove unused var.
13403 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13404 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13406 * composite.c (Fremove_list_of_text_properties): Declare.
13408 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13409 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13410 (coding_inherit_eol_type): Remove unused attrs.
13411 (detect_coding): Cast arg of detect_eol.
13413 * charset.c (syms_of_charset): Remove unused var p.
13414 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13417 * casetab.c (set_case_table): Remove unused var.
13419 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13422 2008-02-01 Dave Love <fx@gnu.org>
13424 * xterm.c (x_bitmap_mask): Declare.
13426 2008-02-01 Dave Love <fx@gnu.org>
13428 * xterm.c (x_term_init): Fix type error.
13430 * lisp.h: Add Funibyte_char_to_multibyte.
13432 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13433 (Fset_coding_system_priority): Doc fix.
13435 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13437 * indent.c (check_composition): Make start and end EMACS_INT.
13439 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13441 * xdisp.c (handle_composition_prop, check_point_in_composition):
13442 Make buffer positions EMACS_INT.
13444 * composite.c (find_composition, run_composition_function)
13445 (update_compositions, Ffind_composition_internal): Make buffer
13446 positions EMACS_INT.
13448 * composite.h (find_composition, update_compositions): Make
13449 position args EMACS_INT.
13451 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13453 * intervals.c (get_property_and_range):
13454 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13456 * unexalpha.c: Don't include varargs.h.
13458 2008-02-01 Dave Love <fx@gnu.org>
13460 * coding.h (ENCODE_UTF_8): New.
13462 * Makefile.in (gtkutil.o): Depend on coding.h.
13464 * coding.c (Fset_coding_system_priority): Doc fix.
13466 2008-02-01 Kenichi Handa <handa@m17n.org>
13468 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13469 the case of auto saving.
13471 2008-02-01 Andreas Schwab <schwab@suse.de>
13473 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13476 2008-02-01 Kenichi Handa <handa@m17n.org>
13478 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13480 2008-02-01 Kenichi Handa <handa@m17n.org>
13482 * fileio.c (choose_write_coding_system): Return a decided coding system.
13483 (Fwrite_region): Set Vlast_coding_system_used to the return value
13484 of choose_write_coding_system.
13486 2008-02-01 Kenichi Handa <handa@m17n.org>
13488 * charset.c (Fset_charset_priority): Pay attention to duplicated
13491 * coding.c (QCcategory): New variable.
13492 (syms_of_coding): Defsym it. Set all elements of
13493 Vcoding_category_table and their symbol values.
13494 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13495 coding-category-XXX, and coding-category-list.
13496 (Fdefine_coding_system_internal): Add category in the plist.
13498 2008-02-01 Kenichi Handa <handa@m17n.org>
13500 * callproc.c (Fcall_process): Handle carryover correctly.
13502 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13503 (raw_text_coding_system): Check NILP (coding_system).
13504 (coding_inherit_eol_type): Check NILP (coding_system) and
13506 (consume_chars): Fix for the case of raw-text.
13508 * process.c (read_process_output): Handle carryover correctly.
13510 2008-02-01 Dave Love <fx@gnu.org>
13512 * regex.c (re_search_2): Fix last change.
13514 2008-02-01 Kenichi Handa <handa@m17n.org>
13516 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13517 target_multibyte. Even in a unibyte case, return a converted
13519 (GET_CHAR_AFTER): New macro.
13520 (PATFETCH): Translate via multibyte char.
13521 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13522 (SETUP_MULTIBYTE_RANGE): New macro.
13523 (regex_compile): Setup compiled code so that its multibyteness
13524 matches that of a target. Fix the handling of "[X-YZ]" using
13525 SETUP_MULTIBYTE_RANGE.
13526 (analyse_first) <charset>: For filling fastmap for all multibyte
13527 characters, don't check by BASE_LEADING_CODE_P.
13528 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13529 the same as RE_MULTIBYTE_P (bufp) now.
13530 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13531 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13532 (TRANSLATE_VIA_MULTIBYTE): New macro.
13533 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13534 It is the same as RE_MULTIBYTE_P (bufp) now.
13535 <exactn>: Translate via multibyte.
13536 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13538 <charset, charset_not>: Fetch a character by
13539 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13540 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13541 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13542 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13544 (bcmp_translate): Likewise.
13546 * search.c (compile_pattern): Check the member target_multibyte,
13547 not the member multibyte of buf.
13549 * lread.c (read1): While reading a string, set force_singlebyte
13550 and force_multibyte correctly.
13552 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13553 up of unibyte_to_multibyte_table.
13555 2008-02-01 Kenichi Handa <handa@m17n.org>
13557 * coding.c (setup_coding_system): If coding has
13558 post-read-conversion or pre-write-conversion, set
13559 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13561 (decode_coding_gap): Run post-read-conversion if any.
13563 * fileio.c (Finsert_file_contents): Even if we read into a
13564 unibyte buffer, check if we must decode the result or not.
13566 2008-02-01 Kenichi Handa <handa@m17n.org>
13568 * coding.c (make_conversion_work_buffer): Change the work buffer
13569 name to the same one as that of Emacs 21.
13571 2008-02-01 Kenichi Handa <handa@m17n.org>
13573 * coding.h (make_conversion_work_buffer): Adjust prototype.
13574 (code_conversion_restore): Don't extern it.
13576 * coding.c (detected_mask): Delete unused variable.
13577 (decode_coding_iso_2022): Pay attention to the byte sequence of
13578 CTEXT extended segment, and retain those bytes as is.
13579 (decode_coding_ccl): Delete unused variable `valids'.
13580 (setup_coding_system): Delete unused variable `category'.
13581 (consume_chars): Delete unused variable `category'. Make it work
13582 for non-multibyte case.
13583 (make_conversion_work_buffer): Change argument.
13584 (saved_coding): Delete unused variable.
13585 (code_conversion_restore): Don't check saved_coding->destination.
13586 (code_conversion_save): New function.
13587 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13588 instead of record_unwind_protect.
13589 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13590 (detect_coding_system): Delete unused variable `mask'.
13591 (Fdefine_coding_system_internal): Delete unused variable id.
13593 * fileio.c (kill_workbuf_unwind): New function.
13594 (Finsert_file_contents): On replacing, call
13595 make_conversion_work_buffer with correct args, and call
13596 record_unwind_protect with the first arg kill_workbuf_unwind.
13598 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13600 2008-02-01 Kenichi Handa <handa@m17n.org>
13602 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13603 (fontset_add): Fix for the case that TO is less than TO1.
13604 (Ffontset_info): Don't use fallback fontset on checking the
13606 (dump_fontset): New function for debugging.
13608 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13609 coding_type is Qcharset.
13611 2008-02-01 Kenichi Handa <handa@m17n.org>
13613 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13614 (map_char_table): Don't inherit the value from the parent on
13615 initializing VAL. Adjust for the above change.
13617 2008-02-01 Kenichi Handa <handa@m17n.org>
13619 * coding.c (Qsignature, Qendian): Delete these variables.
13620 (syms_of_coding): Don't initialize them.
13621 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13622 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13623 detect_info->found.
13624 (decode_coding_utf_16): Don't detect BOM here.
13625 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13626 is NOT utf_16_without_bom.
13627 (setup_coding_system): For a coding system of type utf-16, check
13628 if the attribute :endian is Qbig or not (not nil or not), and set
13629 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13630 (detect_coding): If coding type is utf-16 and BOM detection is
13631 required, detect it.
13632 (Fdefine_coding_system_internal): For a coding system of type
13633 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13635 2008-02-01 Kenichi Handa <handa@m17n.org>
13637 * coding.c (coding_set_source): Fix for the case that the current
13638 buffer is different from coding->src_object.
13639 (decode_coding_object): Don't use the conversion work buffer if
13640 DST_OBJECT is a buffer.
13642 2008-02-01 Dave Love <fx@gnu.org>
13644 * lread.c (read_emacs_mule_char) [len==2]: Index
13645 emacs_mule_charset correctly.
13647 2008-02-01 Dave Love <fx@gnu.org>
13649 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13650 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13651 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13652 treated specially.)
13653 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13654 (detected_mask): Remove Big5 bits.
13656 2008-02-01 Kenichi Handa <handa@m17n.org>
13658 The following changes are to make the font rescaling facility
13659 compatible with Emacs 21.
13661 * xfaces.c (Vface_font_rescale_alist): Rename from
13662 Vface_resizing_fonts.
13663 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13664 (font_rescale_ratio): Rename from font_resizing_ratio.
13665 (split_font_name): Set font->rescale_ratio.
13666 (better_font_p): Pay attention to font->rescale_ratio.
13667 (build_scalable_font_name): Likewise. Change RESX, and RESY
13669 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13671 2008-02-01 Kenichi Handa <handa@m17n.org>
13673 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13674 (Qutf_16_le): Remove these variables.
13675 (syms_of_coding): Don't DEFSYM them.
13676 (decode_coding_utf_16): Fix handling of BOM.
13677 (encode_coding_utf_16): Fix handling of BOM.
13679 2008-02-01 Kenichi Handa <handa@m17n.org>
13681 * fileio.c (Finsert_file_contents): On replacing, before decoding
13682 the file into the work buffer, set point of the work buffer to the end.
13684 2008-02-01 Dave Love <fx@gnu.org>
13686 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13688 2008-02-01 Dave Love <fx@gnu.org>
13690 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13693 2008-02-01 Kenichi Handa <handa@m17n.org>
13695 * xdisp.c (SKIP_GLYPHS): New macro.
13696 (set_cursor_from_row): Pay attention to string display properties.
13698 * category.c (copy_category_entry): Fix for the case that RANGE
13701 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13703 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13705 2008-02-01 Kenichi Handa <handa@m17n.org>
13707 * charset.c (Fcharset_id_internal): New function.
13708 (syms_of_charset): Defsubr it.
13710 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13711 with the last arg charset_list acquired from coding.
13712 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13713 the attribute coding_attr_ccl_valids.
13715 * coding.h (enum define_coding_ccl_arg_index): Set the first
13716 member coding_arg_ccl_decoder to coding_arg_max.
13718 * ccl.h (ccl_driver): Adjust prototype.
13720 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13721 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
13722 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
13723 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13726 2008-02-01 Kenichi Handa <handa@m17n.org>
13728 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13731 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13733 2008-02-01 Dave Love <fx@gnu.org>
13735 * composite.c (syms_of_composite): Make composition_hash_table weak.
13737 2008-02-01 Kenichi Handa <handa@m17n.org>
13739 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13740 (font_name_registry): Don't extern them.
13741 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13743 * fontset.h (Qfontset): Don't extern it.
13744 (new_fontset_from_font_name): Extern it.
13746 * fontset.c: Give 8 extra slots to fontset objects.
13747 (Qfontset_info): New variable.
13748 (syms_of_fontset): Defsym it.
13749 (FONTSET_FALLBACK): New macro.
13750 (fontset_face): Try also the default fontset.
13751 (make_fontset): Realize a fallback fontset from the default fontset.
13752 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13753 using split_font_name_into_vector and build_font_name_from_vector.
13754 (Fset_fontset_font): Access the elements of font_spec by enum
13755 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13756 name by using split_font_name_into_vector.
13757 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13758 generate a proper font name from the fontset name. Update
13759 Vfontset_alias_alist.
13760 (n_auto_fontsets): New variable.
13761 (new_fontset_from_font_name): New function.
13762 (Ffont_info): Store the information about fonts generated from the
13763 default fontset in the first extra slot of the returned char-table.
13765 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13766 (font_name_registry): Delete function.
13767 (split_font_name_into_vector): New function.
13768 (build_font_name_from_vector): New function.
13769 (font_list): The argument REGISTRY is now a list of registry names.
13770 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13771 specifies an explicit font name, return the name as is. Make a
13772 list of registy names.
13774 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13776 (Fx_create_frame): Don't call x_new_fontset here. Just use
13777 x_list_fonts to check the existence of fonts.
13779 * xterm.h (x_new_fontset): Adjust prototype.
13781 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13782 string. Use new_fontset_from_font_name to create a fontset from a
13785 2008-02-01 Kenichi Handa <handa@m17n.org>
13787 * syntax.c (Vfind_word_boundary_function_table): New name for
13788 Vnext_word_boundary_function_table.
13789 (find-word-boundary-function-table): New name for
13790 next-word-boundary-function-table.
13792 2008-02-01 Dave Love <fx@gnu.org>
13794 * Makefile.in: Fix some dependencies.
13796 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13797 set it to nil before returning.
13799 * composite.c (update_compositions): Fix type error.
13801 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13803 2008-02-01 Kenichi Handa <handa@m17n.org>
13805 * xterm.c (x_new_font): Optimize for the case that the font is
13806 already set for the frame.
13808 2008-02-01 Kenichi Handa <handa@m17n.org>
13810 * chartab.c (char_table_ascii): Check if the char table contents
13811 is sub-char-table or not.
13812 (char_table_set, char_table_set_range): Fix argument to
13815 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13816 (detect_coding_utf_8, detect_coding_utf_16)
13817 (detect_coding_emacs_mule, detect_coding_iso_2022)
13818 (detect_coding_sjis, detect_coding_big5)
13819 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13820 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13821 sequence is valid in this coding system. Change callers.
13822 (MAX_ANNOTATION_LENGTH): New macro.
13823 (ADD_ANNOTATION_DATA): New macro.
13824 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13825 ADD_ANNOTATION_DATA. Change the format of annotation data.
13826 (ADD_CHARSET_DATA): New macro.
13827 (emacs_mule_char): New argument ID. Change callers.
13828 (decode_coding_emacs_mule, decode_coding_iso_2022)
13829 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13830 Produce charset annotation data in coding->charbuf.
13831 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13832 to charset annotation data in coding->charbuf.
13833 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13834 coding->common_flags if the coding system is iso-2022 based and
13836 (produce_composition): Adjust for the new annotation data format.
13837 (produce_charset): New function.
13838 (produce_annotation): Handle charset annotation.
13839 (handle_composition_annotation, handle_charset_annotation): New
13841 (consume_chars): Handle charset annotation. Utilize the above two
13843 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13844 buffer, get the deleted text as a string and set
13845 coding->src_object to that string.
13846 (detect_coding, detect_coding_system): Use the new struct
13847 coding_detection_info.
13849 * coding.h (struct coding_detection_info): New structure.
13850 (struct coding_system): Adjust prototype of the member `detector'.
13851 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13853 2008-02-01 Kenichi Handa <handa@m17n.org>
13855 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13857 2008-02-01 Dave Love <fx@gnu.org>
13859 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13860 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13861 to new local and nullify apropos_accumulate before returning.
13862 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13864 2008-02-01 Kenichi Handa <handa@m17n.org>
13866 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13869 2008-02-01 Dave Love <fx@gnu.org>
13871 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13873 2008-02-01 Kenichi Handa <handa@m17n.org>
13875 The following changes are to make character composition happen
13876 automatically on displaying.
13878 * Makefile.in (lisp, shortlisp): Add composite.elc.
13880 * composite.h (Qauto_composed, Vauto_composition_function)
13881 (Qauto_composition_function): Extern them.
13883 * composite.c (Vcomposition_function_table)
13884 (Qcomposition_function_table): Delete variables.
13885 (Qauto_composed, Vauto_composition_function)
13886 (Qauto_composition_function): New variables.
13887 (run_composition_function): Don't call
13888 compose-chars-after-function.
13889 (update_compositions): Clear `auto-composed' text property.
13890 (compose_chars_in_text): Delete this function.
13891 (syms_of_composite): Staticpro Qauto_composed and
13892 Qauto_composition_function. Declare Vauto_composition_function as
13895 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13897 * xdisp.c (it_props): Add an entry for Qauto_composed.
13898 (handle_auto_composed_prop): New function.
13900 * xselect.c (selection_data_to_lisp_data): Don't call
13901 compose_chars_in_text.
13903 2008-02-01 Dave Love <fx@gnu.org>
13905 * keyboard.c (read_char): Modify checking around use of
13906 Vkeyboard_translate_table.
13908 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13911 2008-02-01 Kenichi Handa <handa@m17n.org>
13913 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13914 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13915 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13916 the case that the last byte is '\r' correctly.
13917 (decode_coding): Flush out the unprocessed data correctly.
13918 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13920 2008-02-01 Dave Love <fx@gnu.org>
13922 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13923 Add XK_ISO... case.
13924 (xaw_scroll_callback): Revert last change.
13926 2008-02-01 Kenichi Handa <handa@m17n.org>
13928 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13930 2008-02-01 Kenichi Handa <handa@m17n.org>
13932 * xfaces.c (Vface_resizing_fonts): New variable.
13933 (struct font_name): New member `resizing_ratio'.
13934 (font_resizing_ratio): New function.
13935 (split_font_name): Set font->resizing_ratio.
13936 (better_font_p): Pay attention to font->resizing_ratio.
13937 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13938 RESX, and RESY fields.
13939 (try_alternative_families): Try scalable fonts if
13940 Vscalable_fonts_allowed is not Qt.
13941 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13943 2008-02-01 Dave Love <fx@gnu.org>
13945 * xterm.c (xaw_scroll_callback): Cast correctly.
13947 2008-02-01 Dave Love <fx@gnu.org>
13949 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13950 (lispy_kana_keys): Comment out.
13951 (make_lispy_event) [XK_kana_A]: Comment out.
13953 * xterm.c (xaw_scroll_callback): Cast call_data.
13954 (XTread_socket): Deal with ASCII keysyms.
13955 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13957 2008-02-01 Dave Love <fx@gnu.org>
13959 * xterm.c (Vx_keysym_table): New.
13960 (syms_of_xterm): Initialize it.
13961 (XTread_socket): Use it.
13962 From head: Eliminate incorrect optimization that tried to avoid
13963 decoding the output of X*LookupString.
13964 (x_get_font_repertory): Delete charset declaration.
13966 2008-02-01 Kenichi Handa <handa@m17n.org>
13968 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13970 (Fdefine_coding_system_internal): Setup
13971 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13973 2008-02-01 Dave Love <fx@gnu.org>
13975 * coding.c (Fcheck_coding_system): Doc fix.
13977 * editfns.c (Finsert_byte): Return a proper value.
13979 2008-02-01 Kenichi Handa <handa@m17n.org>
13981 * coding.c (decode_coding): Fix args to translate_chars. Pay
13982 attention to Vstandard_translation_table_for_decode.
13983 (encode_coding): Fix args to translate_chars. Pay attention to
13984 Vstandard_translation_table_for_encode.
13986 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13987 SINGLE_BYTE_CHAR_P.
13989 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13990 not by SINGLE_BYTE_CHAR_P.
13992 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13993 SINGLE_BYTE_CHAR_P.
13995 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13996 SINGLE_BYTE_CHAR_P.
13998 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13999 by SINGLE_BYTE_CHAR_P.
14001 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14002 SINGLE_BYTE_CHAR_P.
14004 2008-02-01 Dave Love <fx@gnu.org>
14006 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14008 2008-02-01 Dave Love <fx@gnu.org>
14010 * fns.c (Flanginfo): Fix typo.
14012 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14014 2008-02-01 Kenichi Handa <handa@m17n.org>
14016 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14017 (detect_coding_emacs_mule, detect_coding_iso_2022)
14018 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14019 incomplete byte sequence. Don't update *mask when correctly detected.
14020 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14021 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14022 (detect_coding, detect_coding_system): Adjust for the changes above.
14024 2008-02-01 Kenichi Handa <handa@m17n.org>
14026 * character.c (char_string): Rename from
14027 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14028 (string_char): Rename from string_char.
14030 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14031 if C is greater than MAX_3_BYTE_CHAR.
14032 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14033 string_char instead of string_char_with_unification.
14035 2008-02-01 Dave Love <fx@gnu.org>
14037 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14039 2008-02-01 Kenichi Handa <handa@m17n.org>
14041 * keymap.c (push_key_description): Pay attention to force_multibyte.
14043 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14045 2008-02-01 Dave Love <fx@gnu.org>
14047 * charset.c (define_charset_internal): Rename `supprementary'.
14049 * Makefile.in (lisp, shortlisp): Remove latin-N.
14051 2008-02-01 Dave Love <fx@gnu.org>
14053 * xfns.c (x_window, x_window): Use use_xim.
14055 * xterm.c (use_xim): Initialize.
14056 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14057 (x_term_init): Maybe set use_xim.
14059 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14061 2008-02-01 Kenichi Handa <handa@m17n.org>
14063 * search.c (search_buffer): Fix case-fold-search of multibyte
14065 (boyer_moore): Rename the last argument to char_high_bits.
14067 2008-02-01 Kenichi Handa <handa@m17n.org>
14069 * xdisp.c (display_string): Fix for the case of zero width glyph.
14071 * xfns.c (x_set_font): Change the error message of the case that
14072 x_new_fontset returns Qt.
14074 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14075 (Finternal_set_lisp_face_attribute): Use signal_error for the
14076 error of invalid fontset.
14078 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14079 fontset, return Qt.
14081 2008-02-01 Dave Love <fx@gnu.org>
14083 * unexelf.c (unexec): Make .got handling not SGI-specific.
14085 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14087 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14089 * keyboard.c (read_key_sequence): Fix type error.
14091 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14094 * fontset.c (fontset_add): Return Lisp_Object.
14096 2008-02-01 Dave Love <fx@gnu.org>
14098 * charset.h (charset_ordered_list_tick): Declare extern.
14100 2008-02-01 Kenichi Handa <handa@m17n.org>
14102 The following changes (and some of 2008-02-01 changes of mine) are
14103 for handling syntax, category, and case conversion for unibyte
14104 characters by converting them to multibyte on the fly. With these
14105 changes, we don't have to setup syntax and case tables for unibyte
14106 characters in each language environment.
14108 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14109 multibyte if necessary.
14111 * bytecode.c (Fbyte_code): Likewise.
14113 * character.h (LEADING_CODE_LATIN_1_MIN)
14114 (LEADING_CODE_LATIN_1_MAX): New macros.
14115 (unibyte_to_multibyte_table): Extern it.
14116 (unibyte_char_to_multibyte): New macro.
14117 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14118 (CHAR_LEADING_CODE): New macro.
14119 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14121 * character.c (unibyte_to_multibyte_table): New variable.
14122 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14123 (multibyte_char_to_unibyte): If C is an eight-bit character,
14124 convert it to the corresponding byte value.
14126 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14127 not 1, signals an error. Update the elements of
14128 unibyte_to_multibyte_table.
14129 (init_charset_once): Initialize unibyte_to_multibyte_table.
14130 (syms_of_charset): Define the charset `iso-8859-1'.
14132 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14133 as is without converting it to unibyte. In a unibyte buffer,
14134 convert C to multibyte before checking the syntax.
14136 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14138 * minibuf.c (Fminibuffer_complete_word): Use the macro
14139 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14141 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14143 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14144 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14145 that is zero, convert an eight-bit char to multibyte.
14146 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14148 (PATFETCH): Convert an eight-bit char to multibyte.
14149 (HANDLE_UNIBYTE_RANGE): New macro.
14150 (regex_compile): Setup the compiled pattern for multibyte chars
14151 even if the given regex string is unibyte. Use PATFETCH_RAW
14152 instead of PATFETCH in many places. To handle `charset'
14153 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14154 only for ASCII chars.
14155 (analyse_first) <exactn>: Simplify because the compiled pattern
14157 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14158 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14159 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14160 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14161 multibyte always 1.
14162 (re_search_2): In emacs, set the locale variable multibyte to 1,
14163 otherwise to 0. New local variable target_multibyte. Check it
14164 to decide the multibyteness of STR1 and STR2. If
14165 target_multibyte is zero, convert unibyte chars to multibyte
14166 before translating and checking fastmap.
14167 (TARGET_CHAR_AND_LENGTH): New macro.
14168 (re_match_2_internal): In emacs, set the locale variable multibyte
14169 to 1, otherwise to 0. New local variable target_multibyte. Check
14170 it to decide the multibyteness of STR1 and STR2. Use
14171 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14172 <charset, charset_not>: If multibyte is nonzero, check fastmap
14173 only for ASCII chars. Call bcmp_translate with
14174 target_multibyte, not with multibyte.
14175 <begline>: Declare the local variable C as `unsigned'.
14176 (bcmp_translate): Change the last arg name to target_multibyte.
14178 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14179 the regexp pattern and the matching target. Set cp->buf.multibyte
14180 to the multibyteness of the regexp pattern. Set
14181 cp->but.target_multibyte to the multibyteness of the matching target.
14182 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14183 FETCH_STRING_CHAR_ADVANCE.
14184 (Freplace_match): Convert unibyte chars to multibyte.
14186 * syntax.c (char_quoted, back_comment, scan_words)
14187 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14188 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14189 unibyte chars to multibyte.
14190 (skip_chars): Delete the arg syntaxp, and move the code for
14191 handling syntaxes to skip_syntaxes. Change callers.
14192 Fix the case that the multibyteness of STRING and the current
14193 buffer doesn't match.
14194 (skip_syntaxes): New function.
14195 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14196 SINGLE_BYTE_CHAR_P.
14198 2008-02-01 Kenichi Handa <handa@m17n.org>
14200 * xfaces.c (QCfontset): New variable.
14201 (LFACE_FONTSET): New macro.
14202 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14203 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14204 (Finternal_set_lisp_face_attribute)
14205 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14206 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14207 check also LFACE_FONTSET_INDEX.
14208 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14209 attrs[LFACE_FONT_INDEX].
14210 (syms_of_xfaces): Intern and staticpro QCfontset.
14212 * dispextern.h (enum lface_attribute_index): New member
14213 LFACE_FONTSET_INDEX.
14215 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14217 2008-02-01 Kenichi Handa <handa@m17n.org>
14219 * coding.c (coding_set_destination): Fix coding->destination for
14220 the case converting a region.
14221 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14222 (encode_coding_object): Fix coding->dst_pos and
14223 coding->dst_pos_byte for the case converting a region.
14225 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14227 * character.h (BYTE8_STRING): New macro.
14229 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14231 2008-02-01 Kenichi Handa <handa@m17n.org>
14233 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14234 characters by octal form.
14236 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14238 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14239 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14240 _fetch_multibyte_char_len.
14241 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14243 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14245 * casefiddle.c (casify_object): Simplify. Handle the case that
14246 the case conversion change the byte length.
14247 (casify_region): Likewise.
14249 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14251 * character.c (_fetch_multibyte_char_len): Delete this variable.
14252 (syms_of_character): Setup Vprintable_chars.
14254 * editfns.c (Fchar_equal): Fix for the unibyte case.
14255 (Finsert_byte): New function.
14256 (syms_of_editfns): Defsubr it.
14258 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14259 of direct code 0x3ffff.
14261 * search.c (Freplace_match): Fix for the unibyte case.
14263 2008-02-01 Kenichi Handa <handa@m17n.org>
14265 * lread.c (safe_to_load_p): Fix the logic.
14267 * syntax.c (scan_words): Don't treat characters belonging to
14268 different scripts as constituting a word.
14270 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14272 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14274 * emacs.c (main): In the case of --unibyte, instead of aborting on
14275 finding non-empty buffer, make it unibyte.
14277 2008-02-01 Kenichi Handa <handa@m17n.org>
14279 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14280 to create a fontset.
14282 2008-02-01 Dave Love <fx@gnu.org>
14284 * character.c (Funibyte_char_to_multibyte): Doc fix.
14286 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14288 2008-02-01 Kenichi Handa <handa@m17n.org>
14290 * fontset.c (fontset_add): Make the type `int'.
14291 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14293 * character.c (unibyte_char_to_multibyte)
14294 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14295 charset_unibyte, not charset_primary.
14297 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14299 * charset.c (charset_unibyte): Rename from charset_primary.
14300 (Funibyte_charset): Rename from Fprimary_charset.
14301 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14302 (syms_of_charset): Adjust for the above changes.
14304 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14305 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14306 it->multibyte_p is zero.
14308 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14311 2008-02-01 Kenichi Handa <handa@m17n.org>
14313 * coding.c (Fdefine_coding_system_internal): Fix category setting
14314 for a coding system of type iso-2022.
14316 2008-02-01 Kenichi Handa <handa@m17n.org>
14318 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14320 2008-02-01 Kenichi Handa <handa@m17n.org>
14322 * syntax.c (Vnext_word_boundary_function_table): New variable.
14323 (next-word-boundary-function-table): Declare it as a Lisp variable
14325 (scan_words): Call functions in Vnext_word_boundary_function_table
14328 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14330 * fontset.c (fs_load_font): If fontp->charset is not negative,
14331 return fontp without setting its members.
14333 2008-02-01 Dave Love <fx@gnu.org>
14335 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14337 * m/sparc.h (HAVE_ALLOCA): Delete.
14339 * s/irix6-5.h: Don't include strings.h.
14340 (bcopy, bzero, bcmp): Don't undef.
14342 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14344 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14345 (TIOCSIGSEND): Don't test IRIX6.
14346 (bcopy, bzero, bcmp): Define conditionally.
14348 2008-02-01 Kenichi Handa <handa@m17n.org>
14350 * buffer.c (Qas, Qmake, Qto): New variables.
14351 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14352 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14354 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14355 we are inserting a process output into a multibyte buffer.
14357 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14358 multibyte_char_to_unibyte.
14360 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14361 by the primary charset, make it eight-bit char.
14362 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14364 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14365 (charset_8_bit__control, charset_8_bit_graphic)
14366 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14367 (define_charset_internal): New function.
14368 (syms_of_charset): Call define_charset_internal for pre-defined
14371 * charset.h (charset_8_bit): Extern it.
14373 * coding.c (make_conversion_work_buffer): Adjust for the change
14374 of Fset_buffer_multibyte.
14375 (encode_coding_raw_text): Increment p0 in the loop.
14377 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14379 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14380 for the change of Fset_buffer_multibyte.
14382 * fns.c (Fstring_to_multibyte): New function.
14383 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14385 2008-02-01 Dave Love <fx@gnu.org>
14387 * xfns.c (x_put_x_image): Declare args.
14389 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14390 (try_font_list): Declare an arg.
14392 * xdisp.c (message2_nolog, set_message): Declare an arg.
14394 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14396 * syntax.c (scan_sexps_forward): Declare an arg.
14398 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14401 * lisp.h (Fnew_fontset): Declare.
14403 * keymap.c (push_key_description): Call CHARACTERP correctly.
14405 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14406 (face_for_char): Delete unused vars.
14407 (Fset_fontset_font): Doc fix. Delete unused vars.
14409 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14411 * composite.c (update_compositions): Declare arg.
14413 * cm.c (calccost, cmgoto): Declare args.
14415 * charset.c: Remove `emacs' conditional. Doc fixes.
14416 (map_char_table_for_charset): Declare.
14418 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14420 * ccl.c: Remove `emacs' conditional.
14422 2008-02-01 Kenichi Handa <handa@m17n.org>
14424 The following changes are to allow specifying multiple font
14425 patterns for a character range (specified by script or charset).
14427 * Makefile.in (abbrev.o): Depend on syntax.h.
14428 (xfaces.o): Depend on charset.h.
14430 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14431 SINGLE_BYTE_CHAR_P.
14433 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14435 * character.h (Vchar_script_table): Extern it.
14437 * character.c (Vscript_alist): Delete.
14438 (Vchar_script_table, Qchar_script_table): New variable.
14439 (syms_of_character): Declare Vchar_script_table as a lisp variable
14442 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14443 have property char-table-extra-slots, make no extra slot.
14445 * dispextern.h (struct face): Delete member `charset'.
14446 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14447 SINGLE_BYTE_CHAR_P.
14448 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14450 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14451 (generate_ascii_font_name): Rename from generate_ascii_font.
14453 * fontset.h (get_font_repertory_func): New prototype.
14454 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14455 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14457 * fontset.c (Qprepend, Qappend): New variables.
14458 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14459 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14460 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14461 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14462 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14463 (load_font_get_repertory): New functions.
14464 (fontset_set): Delete.
14465 (fontset_face): New arg FACE. Return face ID, not face.
14466 Complete re-write to handle new fontset structure. Change caller.
14467 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14468 (face_for_char): Don't call lookup_face.
14469 (make_fontset_for_ascii_face): New arg FACE.
14470 (fs_load_font): New arg CHARSET_ID. Don't check
14471 Vfont_encoding_alist here.
14472 (find_font_encoding): New function.
14473 (list_fontsets): Use STRINGP, not ! NILP.
14474 (accumulate_script_ranges): New function.
14475 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14476 re-written to handle new fontset structure.
14477 (Ffontset_font): Return a copy of element.
14478 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14479 docstring of font-encoding-alist.
14481 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14482 (Fset_fotset_font): Fix arguments to 5.
14484 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14486 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14487 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14488 (highlight_trailing_whitespace): Adjust for the change of
14491 * xfaces.c: Include charset.h.
14492 (load_face_font): Delete argument C. Change caller.
14493 (generate_ascii_font_name): Rename from generate_ascii_font.
14494 (font_name_registry): New function.
14495 (cache_face): Store ascii faces before non-ascii faces in buckets.
14496 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14497 Lookup only ascii faces.
14498 (lookup_non_ascii_face): New function.
14499 (lookup_named_face): Delete argument C. Change caller.
14500 (lookup_derived_face): Delete argument C. Change caller.
14501 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14502 a string, just call font_list with it.
14503 (choose_face_font): Delete arguments FACE and C. New arg
14504 FONT_SPEC. Change caller.
14505 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14507 (realize_non_ascii_face): New function.
14508 (realize_x_face): Call load_face_font here.
14509 (realize_tty_face): Delete argument C. Change caller.
14510 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14512 (dump_realized_face): Don't print charset of FACE.
14514 * xfns.c (x_set_font): Always call x_new_fontset and
14515 store_frame_parameter.
14516 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14517 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14519 * xterm.h (x_get_font_repertory): Extern it.
14521 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14522 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14523 it->multibyte_p is zero.
14524 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14525 (x_new_fontset): If FONTSETNAME doesn't match any existing
14526 fontsets, create a new one.
14527 (x_get_font_repertory): New function.
14529 2008-02-01 Kenichi Handa <handa@m17n.org>
14531 * coding.c (Ffind_coding_systems_region_internal): Detect an
14532 ASCII only string correctly.
14534 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14537 2008-02-01 Kenichi Handa <handa@m17n.org>
14539 * lread.c: Include "coding.h".
14540 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14541 (load_each_byte, unread_char): New variables.
14542 (readchar_backlog): Delete.
14543 (readchar): Return a character unless load_each_byte is nonzero.
14544 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14545 cons. If unread_char is not -1, simply return it.
14546 (unreadchar): Handle the case that readcharfun is
14547 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14548 (read_multibyte): Delete.
14549 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14550 (read_emacs_mule_char): New functions.
14551 (Fload): Even if the file doesn't have the extension ".elc", if
14552 safe_to_load_p returns a positive version number, assume that the
14553 file contains bytecompiled code. If the version is less than 22,
14554 load the file while decoding multibyte sequences by emacs-mule.
14555 (readevalloop): Don't use readchar_backlog.
14556 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14557 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14558 (read_escape): Delete the arg BYTEREP.
14559 (read1): Set load_each_byte to 1 temporarily while handling
14560 #@NUMBER. Don't call read_multibyte.
14561 (read_vector): Call Fread with a cons. If readcharfun is
14562 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14563 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14564 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14565 and Qload_force_doc_strings.
14567 2008-02-01 Kenichi Handa <handa@m17n.org>
14569 * xdisp.c (face_before_or_after_it_pos): Call
14570 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14572 2008-02-01 Kenichi Handa <handa@m17n.org>
14574 * character.h (TRAILING_CODE_P): New macro.
14575 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14576 (string_char_with_unification): Fix prototype.
14577 (Vscript_alist): Extern it.
14579 * character.c (Vscript_alist): New variable.
14580 (string_char_with_unification, str_as_unibyte)
14581 (string_escape_byte8): Add `const' to local variables.
14582 (syms_of_character): Declare script-alist as a Lisp variable.
14584 * charset.h (Vcharset_ordered_list): Extern it.
14585 (charset_ordered_list_tick): Extern it.
14586 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14587 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14588 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14589 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14590 (Funify_charset): Adjust for the change of Funify_charset.
14592 * charset.c (charset_ordered_list_tick): New variable.
14593 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14594 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14595 deunify intead of unify a charset.
14596 (string_xstring_p): Add `const' to local variables.
14597 (find_charsets_in_text): Add `const' to arguments and local variables.
14598 (encode_char): Adjust for the change of Funify_charset. Fix
14599 detecting of invalid code.
14600 (Fset_charset_priority): Increment charset_ordered_list_tick.
14601 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14604 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14605 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14606 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14607 (decode_coding_ccl, consume_chars)
14608 (Ffind_coding_systems_region_internal)
14609 (Fcheck_coding_systems_region): Add `const' to local variables.
14611 * print.c (print_object): Use octal form for printing the
14612 contents of a bool vector.
14614 2008-02-01 Dave Love <fx@gnu.org>
14616 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14617 <version == 20>: Refuse to load.
14619 2008-02-01 Dave Love <fx@gnu.org>
14621 * fns.c: Move coding.h.
14622 (Qcodeset, Qdays, Qmonths): New.
14623 (concat): Use CHARACTERP instead of INTEGERP.
14624 (Flocale_codeset): Delete.
14625 (Flanginfo): New function.
14626 (syms_of_fns): Change accordingly.
14628 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14630 2008-02-01 Dave Love <fx@gnu.org>
14632 * casetab.c (init_casetab_once, init_casetab_once): Fix
14633 CHAR_TABLE_SET call.
14635 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14637 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14639 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14640 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14641 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14643 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14645 * coding.c (ENCODE_DESIGNATION, decode_eol)
14646 (make_conversion_work_buffer, code_conversion_restore)
14647 (Fdefine_coding_system_internal): Convert Lisp types.
14648 (code_conversion_restore): Use EQ, not ==.
14649 (Fencode_coding_string): Fix code_convert_string call.
14651 * coding.h (code_convert_region): Fix prototype.
14653 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14655 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14656 (Ffontset_info): Convert Lisp types.
14658 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14660 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14662 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14664 * chartab.c: Include "...h", not <...h> in some cases.
14666 * callproc.c (Fcall_process): Remove unused variables.
14668 2008-02-01 Dave Love <fx@gnu.org>
14670 * coding.c (Fset_coding_system_priority): Allow null arg list.
14672 2008-02-01 Dave Love <fx@gnu.org>
14674 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14675 (Fself_insert_and_exit): Use CHARACTERP.
14677 * callproc.c (Fcall_process): Remove unused vars.
14679 * xterm.c (XTread_socket): Add extra dead keysyms.
14681 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14683 * dispextern.h: Remove prototypes for redraw_frame,
14684 redraw_garbaged_frames.
14686 * cmds.c (Fself_insert_command): Use CHARACTERP.
14688 * chartab.c (make_sub_char_table): Remove unused var.
14689 (Fset_char_table_default, Fmap_char_table): Doc fix.
14691 * keymap.c (access_keymap): Remove generic char code.
14692 (push_key_description): Use CHARACTERP.
14694 2008-02-01 Dave Love <fx@gnu.org>
14696 * charset.c: Doc fixes.
14697 (Funify_charset): Extra checking.
14699 2008-02-01 Dave Love <fx@gnu.org>
14701 * lread.c: Remove some unused variables.
14702 (safe_to_load_p): If safe, return the magic number version byte.
14703 (Fload): Maybe use load-with-code-conversion.
14705 2008-02-01 Kenichi Handa <handa@m17n.org>
14707 * category.c (Fmodify_category_entry): Don't modify the contents
14708 of category_set for characters out of the range. Avoid
14709 unnecessary modification.
14711 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14712 Vchar_unify_table. The default value of the table is now nil.
14714 * character.c (syms_of_character): Setup Vchar_width_table for
14715 eight-bit-control and raw-byte chars.
14717 * charset.h (enum define_charset_arg_index): Delete
14718 charset_arg_parents and add charset_arg_subset and
14719 charset_arg_superset.
14720 (enum charset_attr_index): Delete charset_parents and add
14721 charset_subset and charset_superset.
14722 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14723 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14724 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14725 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14726 (CHARSET_SUPERSET): New macros.
14727 (charset_work): Extern it.
14728 (ENCODE_CHAR): Use charset_work.
14729 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14730 (map_charset_chars): Extern it.
14732 * charset.c (load_charset_map): Set the default value of encoder
14733 and deunifier char-tables to nil.
14734 (map_charset_chars): Change argument. Change callers. Use
14735 map_char_table_for_charset instead of map_char_table.
14736 (Fmap_charset_chars): New optional args from_code and to_code.
14737 (Fdefine_charset_internal): Adjust for the change of
14738 `define-charset' (:parents -> :subset or :superset).
14739 (charset_work): New variable.
14740 (encode_char, syms_of_charset): Adjust for the change of
14741 Fdefine_charset_internal.
14742 (Ffind_charset_string): Setup the vector `charsets' correctly.
14744 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14745 the previous change.
14746 (char_table_ref_and_range): Adjust for the above change.
14747 (map_sub_char_table_for_charset): New function.
14748 (map_char_table_for_charset): New function.
14750 * keymap.c (describe_vector): Handle a char-table directly here.
14751 (describe_char_table): Delete.
14753 * lisp.h (map_charset_chars): Delete.
14755 2008-02-01 Dave Love <fx@gnu.org>
14757 * fns.c (count_combining): Comment out (unused).
14758 (Flocale_codeset): New.
14759 (syms_of_fns): Defsubr it.
14761 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14764 2008-02-01 Dave Love <fx@gnu.org>
14766 * Makefile.in (chartab.o): Depend on charset.h.
14768 2008-02-01 Kenichi Handa <handa@m17n.org>
14770 * character.c (syms_of_character): Set the default value of
14771 Vprintable_chars to Qnil.
14773 2008-02-01 Dave Love <fx@gnu.org>
14775 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14777 2008-02-01 Kenichi Handa <handa@m17n.org>
14779 * charset.c (load_charset_map): Handle the case that from < to
14782 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14783 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14784 Pay attention to raw-8-bit chars.
14786 2008-02-01 Kenichi Handa <handa@m17n.org>
14788 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14789 It is not bytecompiled now.
14791 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14792 (charset_jisx0208): New variables.
14793 (Fdefine_charset_internal): Setup them if appropriate.
14794 (init_charset_once): Initialize them to -1.
14796 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14797 (charset_jisx0208): Extern them.
14799 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14800 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14801 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14802 (setup_iso_safe_charsets): Fix arguments to Fassq.
14803 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14804 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14805 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14806 (encode_coding_iso_2022): Change the 1st arg to
14807 ENCODE_ISO_CHARACTER to a variable.
14809 2008-02-01 Kenichi Handa <handa@m17n.org>
14811 * charset.h (enum define_charset_arg_index): New enums
14812 charset_arg_min_code and charset_arg_max_code.
14813 (struct charset): New member char_index_offset.
14815 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14816 Take charset->char_index_offset into account.
14817 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14818 args[charset_arg_max_code]. Setup charset.char_index_offset.
14819 (syms_of_charset): Fix args to Fdefine_charset_internal.
14821 2008-02-01 Dave Love <fx@gnu.org>
14823 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14825 2008-02-01 Dave Love <fx@gnu.org>
14827 * coding.c: Doc fixes.
14828 (Fcoding_system_aliases): Fix return value.
14829 (Qmac): Remove (duplicated) definition.
14831 2008-02-01 Dave Love <fx@gnu.org>
14833 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14836 * character.c (Fstring): Doc fix.
14838 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14840 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14842 (font-encoding-alist): Doc fix.
14844 2008-02-01 Dave Love <fx@gnu.org>
14846 * term.c (costs_set): Declare static, non-initialized for pcc.
14847 (encode_terminal_code): Remove unused var.
14849 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14852 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14854 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14855 (suffixes): Move out of make_subsidiaries for K&R.
14857 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14859 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14861 2008-02-01 Dave Love <fx@gnu.org>
14863 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14865 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14867 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
14869 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14871 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14873 2008-02-01 Kenichi Handa <handa@m17n.org>
14875 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14876 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14878 2008-02-01 Kenichi Handa <handa@m17n.org>
14880 * coding.c (decode_coding_charset): Adjust for the change of
14881 Fdefine_coding_system_internal.
14882 (Fdefine_coding_system_internal): For a coding system of
14883 `charset' type, store a list of charset IDs in
14884 `charset_attr_charset_valids' element of coding attributes.
14886 2008-02-01 Kenichi Handa <handa@m17n.org>
14888 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14889 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14890 caller. Handle 2-byte and 3-byte charsets correctly.
14891 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14892 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14893 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14894 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14895 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14897 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14898 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14899 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14900 and alt&rule composition.
14901 (decode_coding_iso_2022): Handle composition correctly.
14902 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14904 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14905 re-defining a charset. If the charset has :emacs-mule-id, setup
14907 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14909 2008-02-01 Kenichi Handa <handa@m17n.org>
14911 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14912 (encode_coding_big5, encode_coding_charset): If coding requires safe
14913 encoding, produce a character specified by
14914 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14916 2008-02-01 Dave Love <fx@gnu.org>
14918 * xterm.c (XSetIMValues): Declare.
14920 * process.c: Conditionally include sys/wait.h, pty.h.
14922 * print.c (print_object): Fix print format for 64-bit systems.
14924 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14926 * buffer.c (emacs_strerror): Declare.
14928 * fontset.c (Fclear_face_cache): Declare.
14929 (accumulate_font_info): Comment-out (unused).
14930 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14933 * character.h (string_escape_byte8): Declare.
14935 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14937 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14938 (Fmap_charset_chars): Doc fix.
14940 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14941 (Fset_coding_system_priority, Fset_coding_system_priority)
14942 (Fdefine_coding_system_internal): Doc fix.
14944 2008-02-01 Dave Love <fx@gnu.org>
14946 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14948 2008-02-01 Kenichi Handa <handa@m17n.org>
14950 * character.c (string_escape_byte8): Make multibyte string with
14953 * charset.c (Fmake_char): Delete unnecessary code.
14955 2008-02-01 Kenichi Handa <handa@m17n.org>
14957 * xfns.c (x_encode_text): Allocate coding.destination here, and
14958 call encode_coding_object with dst_object Qnil.
14960 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14961 multibyte form correctly.
14963 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14964 against Vfont_encoding_alist.
14966 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14967 handling of charset list.
14968 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14969 (decode_coding_object): Move point to coding->dst_pos before
14970 calling post-read-conversion function.
14971 (encode_coding_object): Give correct arguments to
14972 pre-write-conversion. Ignore the return value of
14973 pre-write-conversion function. Pay attention to the case that
14974 pre-write-conversion changes the current buffer. If dst_object is
14975 Qt, even if coding->src_bytes is zero, allocate at least one byte
14976 to coding->destination.
14978 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14980 * charset.c (Fmake_char): Make it more backward compatible.
14981 (Fmap_charset_chars): Fix docstring.
14983 2008-02-01 Dave Love <fx@gnu.org>
14985 * coding.c: Doc fixes.
14986 (Fdefine_coding_system_alias): Use names, not symbols, in
14987 coding-system-alist.
14989 2008-02-01 Kenichi Handa <handa@m17n.org>
14991 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14992 of calling free_realized_face.
14994 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
14996 * charset.c (read_hex): Don't treat SPC as a comment starter.
14997 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14998 (Fdecode_char): Fix typo.
15000 2008-02-01 Kenichi Handa <handa@m17n.org>
15002 * charset.h (struct charset): New member `code_space_mask'.
15004 * coding.c (coding_set_source): Delete the local variable beg_byte.
15005 (encode_coding_charset, Fdefine_coding_system_internal):
15006 Delete the local variable charset.
15007 (Fdefine_coding_system_internal): Setup
15008 attrs[coding_attr_charset_valids] correctly.
15010 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15011 member to check if CODE is valid or not.
15012 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15013 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15014 is within the range of charset->min_code and carset->max_code.
15016 2008-02-01 Dave Love <fx@gnu.org>
15018 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15020 * dispextern.h (generate_ascii_font): Fix return type.
15022 * xfaces.c (generate_ascii_font): Fix arg declaration.
15024 * coding.c (coding_inherit_eol_type)
15025 (Fset_terminal_coding_system_internal)
15026 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15030 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15031 multiple charsets correctly.
15033 2008-02-01 Kenichi Handa <handa@m17n.org>
15035 * search.c (boyer_moore): Fix handling of multibyte character
15038 * xdisp.c (display_mode_element): When the variable `elt' is
15039 changed, update `this' and `lisp_string'.
15041 2008-02-01 Kenichi Handa <handa@m17n.org>
15043 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15045 * callproc.c (Fcall_process): Be sure to give the current buffer
15046 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15048 * charset.c (struct charset_map_entries): New struct.
15049 (load_charset_map): Rename from parse_charset_map. New args
15050 entries and n_entries. Change caller.
15051 (load_charset_map_from_file): Rename from load_charset_map.
15052 Change caller. New arg control_flag. Call load_charset_map at
15054 (load_charset_map_from_vector): New function.
15055 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15056 (encode_char): If the charset is compact, change a character index
15059 * coding.c (coding_alloc_by_making_gap): Check the case that the
15060 source and destination are the same correctly.
15061 (decode_coding_raw_text): Set coding->consumed_char and
15062 coding->consumed to 0.
15063 (produce_chars): If coding->chars_at_source is nonzero, update
15064 coding->consumed_char and coding->consumed before calling
15066 (Fdefine_coding_system_alias): Register ALIAS in
15067 Vcoding_system_alist.
15068 (syms_of_coding): Define `no-conversion' coding system at the tail.
15070 * fileio.c (Finsert_file_contents): Set coding_system instead of
15071 val. If the current buffer is multibyte, always call
15074 * xfaces.c (try_font_list): Give higher priority to fontset's
15075 family than face's family.
15077 2008-02-01 Kenichi Handa <handa@m17n.org>
15079 * callproc.c (Fcall_process): Be sure to give the current buffer
15080 to decode_coding_c_string.
15082 * xfaces.c (try_font_list): Give a family specified in a fontset
15083 higher priority than a family specified in a face.
15085 2008-02-01 Kenichi Handa <handa@m17n.org>
15087 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15088 Fix arguments to insert_from_buffer.
15090 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15092 2008-02-01 Kenichi Handa <handa@m17n.org>
15094 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15095 (decode_coding_gap): Set coding->dst_multibyte correctly.
15097 2008-02-01 Kenichi Handa <handa@m17n.org>
15099 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15100 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15101 (encode_coding_utf_16): Substitute coding->default_char for
15102 non-Unicode characters.
15103 (decode_coding): Don't call record_insert here.
15104 (setup_coding_system): Initialize `surrogate' of
15105 coding->spec.utf_16 to 0.
15106 (EMIT_ONE_BYTE): Fix for multibyte case.
15108 * insdel.c (insert_from_gap): Call record_insert.
15110 2008-02-01 Kenichi Handa <handa@m17n.org>
15112 * casefiddle.c (casify_region): Fix multibyte case.
15114 * character.c (c_string_width): Add return type `int'.
15115 (char_string_with_unification): Delete arg ADVANCED.
15117 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15118 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15119 (CHAR_STRING_ADVANCE): Make it do-while statement.
15121 * chartab.c (sub_char_table_set_range): Optimize for the case
15122 DEPTH == 3. Add workaround code for a GCC optimization bug.
15124 * charset.c (parse_charset_map): Remove an unused variable.
15126 * coding.c: Delete unused variables.
15128 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15129 earlier. If inserted is zero and the coding system doesn't
15130 require flushing, don't call decode_coding_gap.
15132 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15134 2008-02-01 Kenichi Handa <handa@m17n.org>
15136 The following changes are for using Unicode as an internal
15137 character model, and use UTF-8 format for buffer/string
15140 * .gdbinit (xchartable): Adjust for the change of char table structure.
15141 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15143 * Makefile.in (obj): Add character.o and chartab.o.
15144 (lisp, shortlisp): Remove utf-8.elc.
15145 (*.o): For many files, change dependency on charset.h to
15146 character.h, and add dependency on character.h.
15147 (character.o, chartab.o): New targets.
15149 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15150 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15151 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15154 * dired.c, filelock.c: Include "character.h".
15156 * alloc.c: Include "character.h" instead of "charset.h".
15157 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15158 (syms_of_alloc): Remove defsubr for Smake_char_table.
15160 * buffer.c: Include "character.h" instead of "charset.h", don't
15161 include "coding.h".
15162 (Fset_buffer_multibyte): Adjust for UTF-8.
15164 * buffer.h: EXFUN Fbuffer_live_p.
15166 * callproc.c: Include "character.h" instead of "charset.h".
15167 (Fcall_process): Big change for the new code-conversion APIs.
15169 * casetab.c: Include "character.h" instead of "charset.h".
15170 (set_canon, set_identity, shuffle): Adjust for the new
15171 map_char_table spec.
15172 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15173 accessing the char table structure.
15175 * chartab.c: New file that implements char table.
15177 * category.c: Include "character.h".
15178 (copy_category_entry): New function.
15179 (copy_category_table): Call map_char_table and copy_category_entry.
15180 (Fmake_category_table): Initialize all top-level slots.
15181 (char_category_set): New function.
15182 (modify_lower_category_set): Delete.
15183 (Fmodify_category_entry): Call char_table_ref_and_range.
15185 * category.h (CATEGORY_SET): Just call char_category_set.
15187 * ccl.c: Include "character.h".
15188 (Qccl, Qcclp): New variables.
15189 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15190 it's less than 256.
15191 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15192 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15194 (ccl_driver): Change types of argument, adjust code accordingly.
15195 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15197 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15199 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15200 New members src_multibyte, dst_multibyte, consumed, and produced.
15201 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15202 (CODING_SPEC_CCL_PROGRAM): New macro.
15203 (ccl_driver): Update prototype.
15204 (Qccl, Qcclp, Fccl_program_p): Extern them.
15205 (CHECK_CCL_PROGRAM): New macro.
15207 * character.c, character.h, chartab.c: New files.
15209 * charset.c: Mostly re-written. Move character and multibyte sequence
15210 handling codes to character.c.
15212 * charset.h: Mostly re-written. Move character and multibyte sequence
15213 handling codes to character.h.
15215 * coding.c, coding.h: Mostly re-written.
15217 * composite.c: Include "character.h" instead of "charset.h".
15218 (CHAR_WIDTH): Move to character.h.
15219 (HASH_KEY, HASH_VALUE): Delete.
15221 * composite.h (enum composition_method): Change order of enumeration
15224 * data.c: Include "character.h" instead of "charset.h".
15225 (Faref): Call CHAR_TABLE_REF for a char table.
15226 (Faset): Call CHAR_TABLE_SET for a char table.
15228 * dispextern.h (free_realized_face, check_face_attribytes)
15229 (generate_ascii_font): Extern them.
15230 (free_realized_multibyte_face): Delete extern.
15232 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15235 * editfns.c: Include "character.h" instead of "charset.h".
15236 (Fchar_to_string): Always call CHAR_STRING.
15238 * emacs.c (main): Call init_charset_once, init_charset,
15239 syms_of_chartab, and syms_of_character.
15241 * fileio.c: Include "character.h" instead of "charset.h".
15242 (Finsert_file_contents): Big change for the new code-conversion API.
15243 (choose_write_coding_system, Fwrite_region): Likewise.
15244 (build_annotations_2): Delete.
15245 (e_write): Big change for the new code-conversion API.
15247 * fns.c: Include "character.h" instead of "charset.h".
15248 (copy_sub_char_table): Move to chartab.c.
15249 (Fcopy_sequence): Call copy_char_table for a char table.
15250 (concat): Delete codes calling count_multibyte.
15251 (string_char_to_byte, string_byte_to_char): Adjust for the new
15253 (internal_equal): Adjust for the change of char table structure.
15254 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15255 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15256 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15257 (char_table_translate, optimize_sub_char_table)
15258 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15260 (char_table_ref_and_index): Delete.
15261 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15262 (Fmd5): Call preferred_coding_system instead of accessing
15263 Vcoding_category_list. Adjust for the new code-conversion API.
15264 (syms_of_fns): Move defsubr for char table related functions to
15267 * fontset.c: Mostly re-written.
15269 * fontset.h (struct font_info): Change type of the member encoding_type.
15270 (enum FONT_SPEC_INDEX): New enum.
15271 (fontset_font_pattern, fs_load_font): Update prototype.
15272 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15274 * indent.c: Include "character.h" instead of "charset.h".
15275 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15277 * insdel.c: Include "character.h" instead of "charset.h".
15278 (copy_text): Don't refer to Vnonascii_translation_table.
15279 (insert_from_gap): New function.
15281 * keyboard.c: Include "character.h" instead of "charset.h".
15282 (command_loop_1): Never call direct_output_forward_char before
15283 a non-ASCII character.
15284 (read_char): If Vkeyboard_translate_table is a char table, always
15285 translate a character.
15287 * keymap.c: Include "character.h".
15288 (store_in_keymap): Handle the case that IDX is a cons.
15289 (Fdefine_key): Handle the case that KEY is a cons and the car part
15290 is also a cons (range).
15291 (push_key_description): Adjust for the new character code.
15292 (describe_vector): Call describe_char_table for a char table.
15293 (describe_char_table): New function.
15295 * keymap.h (describe_char_table): Extern it.
15297 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15298 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15299 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15300 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15302 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15304 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15305 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15306 (CHARTAB_SIZE_BITS_3): New macros.
15307 (chartab_size): Extern it.
15308 (struct Lisp_Char_Table): Re-design.
15309 (struct Lisp_Sub_Char_Table): New structure.
15310 (HASH_KEY, HASH_VALUE): Move from fns.c.
15311 (CHARACTERBITS): Define as 22.
15312 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15313 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15314 (GC_SUB_CHAR_TABLE_P): New macro.
15315 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15316 (code_convert_string_norecord): Deleted extern.
15317 (init_character_once, syms_of_character, init_charset)
15318 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15320 * lread.c: Include "character.h".
15321 (read_multibyte): New arg NBYTES.
15322 (read_escape): Change the meaning of returned *BYTEREP.
15323 (to_multibyte): Delete.
15324 (read1): Adjust the handling of char table and string.
15326 * print.c: Include "character.h" instead of "charset.h".
15327 (print_string): Convert 8-bit raw bytes to octal form by
15328 string_escape_byte8.
15329 (print_object): Adjust for the new multibyte form. Print 8-bit
15330 raw bytes always in octal form. Handle sub char table correctly.
15332 * process.c: Include "character.h" instead of "charset.h".
15333 (read_process_output, send_process): Adjust for the new
15334 code-conversion API.
15336 * puresize.h (BASE_PURESIZE): Increase.
15338 * regex.c: Include "character.h" instead of "charset.h".
15339 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15340 (regex_compile): Accept a range whose starting and ending
15341 character have different leading bytes.
15342 (analyse_first): Adjust for the above change.
15344 * search.c: Include "character.h" instead of "charset.h".
15345 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15346 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15348 * syntax.c: Include "character.h" instead of "charset.h".
15349 (syntax_parent_lookup): Delete.
15350 (Fmodify_syntax_entry): Accept a cons as CHAR.
15351 (skip_chars): Adjust for the new multibyte form.
15352 (init_syntax_once): Call char_table_set_range instead of directly
15353 accessing the structure of a char table.
15355 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15356 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15357 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15358 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15360 * term.c: Include "buffer.h" and "character.h".
15361 (encode_terminal_code, write_glyphs): Adjust for the new
15362 code-conversion API.
15363 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15365 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15367 * xdisp.c: Include "character.h".
15368 (get_next_display_element): Adjust for the new multibyte form.
15369 (disp_char_vector): Adjust for the new char table structure.
15370 (decode_mode_spec_coding): Adjust for the new structure of
15372 (decode_mode_spec): Adjust for the new code-conversion API.
15374 * xfaces.c: Include "character.h" instead of "charset.h".
15375 (load_face_font): Adjust for the change of choose_face_font and
15377 (generate_ascii_font): New function.
15378 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15379 (set_font_frame_param): Adjust for the change of choose_face_font.
15380 (free_realized_face): Make it public.
15381 (free_realized_faces_for_fontset): Rename from
15382 free_realized_multibyte_face. Free also faces realized for ASCII.
15383 (choose_face_font): Change arguments. Adjust for the change of
15384 fontset_font_pattern and FS_LOAD_FONT.
15386 * xfns.c: Include "character.h".
15387 (x_encode_text): Adjust for the new code-conversion API.
15389 * xselect.c: Don't include "charset.h".
15390 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15392 * xterm.c: Include "character.h".
15393 (x_encode_char): New argument CHARSET. Change caller.
15394 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15395 Call ENCODE_CHAR instead of SPLIT_CHAR.
15396 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15397 CHAR_WIDTH instead of CHARSET_WIDTH.
15398 (XTread_socket): Adjust for the new code-conversion API.
15399 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15400 (x_load_font): Adjust for the change of struct font.
15402 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15404 * xfaces.c (face_at_buffer_position): Remove unused vars.
15406 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15408 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15409 Fix overflow checking.
15411 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15413 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15414 Cancel previous change.
15416 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15418 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15419 ccl->eight_bit_control. Fix check for buffer overflow.
15420 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15421 (ccl_driver): Initialize extra_bytes to 0.
15423 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15425 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15426 return it ORed with ctrl_modifier.
15428 2008-01-29 Miles Bader <miles@gnu.org>
15430 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15432 2008-01-28 Jason Rumney <jasonr@gnu.org>
15434 * w32.c (stat): Don't double check for networked drive.
15436 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15438 * window.c (run_window_configuration_change_hook): New function.
15439 Code extracted from set_window_buffer. Set the selected frame.
15440 (set_window_buffer): Use it.
15441 * window.h (run_window_configuration_change_hook): Declare.
15442 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15444 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15446 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15448 * Makefile.in: Remove references to unused macros.
15450 2008-01-26 Eli Zaretskii <eliz@gnu.org>
15452 * w32.c (g_b_init_get_sid_sub_authority)
15453 (g_b_init_get_sid_sub_authority_count): New static variables.
15454 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15455 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15456 (init_user_info): Use them to retrieve uid and gid.
15457 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15458 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15459 st_uid and st_gid of the file.
15461 2008-01-26 Jason Rumney <jasonr@gnu.org>
15463 * w32.c (logon_network_drive): New function.
15466 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
15468 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15469 invisible text covered with an ellipsis.
15471 2008-01-25 Richard Stallman <rms@gnu.org>
15473 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15474 jump back to beginning. Move some other initializations after that.
15475 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15477 (syms_of_xdisp): Init them.
15479 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15481 * buffer.c (reset_buffer_local_variables):
15482 Implement `permanent-local-hook'.
15483 (Qpermanent_local_hook): New variable.
15484 (syms_of_buffer): Init and staticpro it.
15486 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
15488 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15490 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15492 * fns.c (Fclrhash): Return TABLE.
15494 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15496 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15497 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15498 is set even without positional changes.
15499 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15501 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15503 2008-01-23 Jason Rumney <jasonr@gnu.org>
15505 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15507 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15508 the unicode range available in MULE by locale-coding-system.
15509 Improve dbcs lead byte detection. Set event timestamp and modifiers
15512 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15514 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15515 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15516 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15517 when used on child processes.
15519 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
15521 * dbusbind.c (Fdbus_method_return_internal): Rename from
15522 Fdbus_method_return.
15523 (Fdbus_unregister_object): Move to dbus.el.
15524 (Fdbus_call_method, Fdbus_method_return_internal)
15525 (Fdbus_send_signal): Improve debug messages.
15527 2008-01-20 Martin Rudalics <rudalics@gmx.at>
15529 * undo.c (undo_inhibit_record_point): New variable.
15530 (syms_of_undo): Initialize it.
15531 (record_point): Don't record point when undo_inhibit_record_point
15534 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15536 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15538 * xdisp.c (Qauto_hscroll_mode): New var.
15539 (syms_of_xdisp): Initialize it.
15540 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15542 (hscroll_windows): Don't check automatic_hscrolling_p here.
15544 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15545 vscroll if we're setting window-buffer to the value it already has.
15547 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15549 * m/intel386.h: Remove references to XENIX.
15551 2008-01-17 Andreas Schwab <schwab@suse.de>
15553 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15554 instead of HAVE_X86_64_LIB64_DIR.
15555 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15557 2008-01-17 Glenn Morris <rgm@gnu.org>
15559 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15560 to HAVE_X86_64_LIB64_DIR.
15562 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15569 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15571 * sysdep.c: Remove code containing references to symbols defined
15572 by unsupported systems.
15574 2008-01-16 Glenn Morris <rgm@gnu.org>
15576 * coding.c (select-safe-coding-system-function): Doc fix.
15578 2008-01-15 Glenn Morris <rgm@gnu.org>
15580 * config.in: Revert 2008-01-13 change: this is a generated file.
15582 2008-01-13 Tom Tromey <tromey@redhat.com>
15584 * lisp.h: Fix typo.
15586 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15592 * s/ptx4.h: Remove files for systems no longer supported.
15594 * callproc.c (Fcall_process): Fix previous change.
15596 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15598 * unexsunos4.c: Remove file, system not supported anymore.
15618 * alloc.c: Remove code containing references to symbols defined by
15619 unsupported systems.
15621 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15623 * coding.c (detect_coding_mask): Fix previous change.
15625 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15627 * coding.c (detect_coding_iso2022): New arg
15628 latin_extra_code_state. Allow Latin extra codes only
15629 when *latin_extra_code_state is nonzero.
15630 (detect_coding_mask): If there is a NULL byte, detect the encoding
15631 as UTF-16 or binary. If Latin extra codes exist, detect the
15632 encoding as ISO-2022 only when there's no other proper encoding is
15635 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15637 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15640 2008-01-08 Richard Stallman <rms@gnu.org>
15642 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15644 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
15646 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15647 menu bar in parentheses.
15649 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15653 * m/alliant-2800.h:
15661 * m/aviion-intel.h:
15756 * unexsni.c: Remove files for systems no longer supported.
15758 * m/intel386.h: Remove references to unsupported systems.
15760 * w32.c (get_emacs_configuration): Remove reference to i860.
15762 * sysdep.c: Remove dead code.
15764 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15767 * m/masscomp.h: Remove files. Platform is obsolete.
15769 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
15771 * dbusbind.c (Fdbus_method_return): New function.
15772 (xd_read_message): Add the serial number to the event.
15773 (Fdbus_register_method): Activate the function.
15775 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15777 * keyboard.c (read_key_sequence): Fix typo.
15779 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
15781 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15782 (xd_signature, xd_append_arg): Handle element type detection for
15784 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15785 SDATA () calls; this must be solved more general.
15786 (Fdbus_register_signal): Use SBYTES instead of strlen.
15788 2008-01-03 Magnus Henoch <magnus@zemdatav>
15790 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15791 unsigned int for byte values (necessary for big-endian platform).
15792 (Fdbus_call_method): Handle the case of no returned arguments.
15794 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15796 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15798 2007-12-31 Magnus Henoch <mange@freemail.hu>
15800 * dbusbind.c (xd_signature): Signature of variant is just "v".
15802 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
15804 * dbusbind.c: Fix several errors and compiler warnings.
15805 Reported by Tom Tromey <tromey@redhat.com>.
15806 (XD_ERROR, XD_DEBUG_MESSAGE)
15807 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15808 (xd_append_arg): Part for basic D-Bus types rewritten.
15809 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15810 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15812 (xd_read_message): Return Qnil. Don't signal an error; it is not
15813 useful during event reading.
15814 (Fdbus_register_signal): Signal an error if the check for
15816 (Fdbus_register_method): New function. The implementation is not
15817 complete, the call of the function signals an error therefore.
15818 (Fdbus_unregister_object): New function, renamed from
15819 Fdbus_unregister_signal. The initial check signals an error, if
15820 the object is not well formed.
15822 2007-12-30 Richard Stallman <rms@gnu.org>
15824 * textprop.c (get_char_property_and_overlay):
15825 Signal error if POSITION is out of range in a buffer.
15827 2007-12-29 Martin Rudalics <rudalics@gmx.at>
15829 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15830 because the original parameters are in pure storage now.
15832 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15834 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15836 2007-12-22 Eli Zaretskii <eliz@gnu.org>
15838 * callint.c (syms_of_callint) <command-history>: Add reference to
15839 history-length in the doc string.
15841 2007-12-17 Jason Rumney <jasonr@gnu.org>
15843 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15844 before passing as wParam.
15846 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
15848 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15849 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15850 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15851 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15853 (Fdbus_call_method): Fix docstring.
15855 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
15857 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15859 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15860 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15862 (xd_signature): New function.
15863 (xd_append_arg): Compute also signatures. Major rewrite.
15864 (xd_retrieve_arg): Make debug messages friendly.
15865 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15866 Check for signatures of arguments.
15868 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
15870 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15871 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15872 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15873 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15874 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15875 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15876 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15877 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15878 (xd_retrieve_value): Remove. Functionality included in ...
15879 (xd_append_arg): New function.
15880 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15882 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
15884 * dbusbind.c (top): Include <stdio.h>.
15885 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15886 dbus_message_new_method_call and dbus_message_new_signal.
15887 (Fdbus_register_signal): Rename unique_name to uname.
15888 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15889 non-existing unique name. Fix typos in matching rule. Return an
15890 object which is useful in Fdbus_unregister_signal.
15891 (Fdbus_unregister_signal): Reimplementation, in order to remove
15892 only the corresponding entry.
15893 (Vdbus_registered_functions_table): Change the order of entries.
15894 Apply these changes in xd_read_message and Fdbus_register_signal.
15896 2007-12-16 Andreas Schwab <schwab@suse.de>
15898 * fileio.c (Finsert_file_contents): Fix overflow check to not
15899 depend on undefined integer overflow.
15901 2007-12-14 Jason Rumney <jasonr@gnu.org>
15903 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15904 for characters above 127.
15906 2007-12-13 Jason Rumney <jasonr@gnu.org>
15908 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15909 before dereferencing array.
15910 (lookup_vk_code): Remove zero comparison.
15912 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
15914 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15915 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15916 Use `unsigned int' instead of `uint'.
15917 (xd_read_message, Fdbus_register_signal): Split expressions into
15918 multiple lines before operators "&&" and "||", according to the
15919 GNU Coding Standards.
15921 2007-12-14 Eli Zaretskii <eliz@gnu.org>
15923 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15925 2007-12-12 Juri Linkov <juri@jurta.org>
15927 * buffer.c (Frename_buffer): In interactive spec replace
15928 `read-buffer' with `read-string' that uses `buffer-name-history'
15929 as history, and the current buffer's name as default.
15931 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15933 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15934 manipulating the backtrace manually.
15935 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15936 (struct backtrace, backtrace_list): Remove.
15937 (command_loop_1): Remove dead var `no_direct'.
15939 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15940 preserve non-built-in buffer-local variables.
15941 (Fkill_all_local_variables): Don't re-create&re-set permanent
15942 buffer-local variables.
15944 2007-12-09 Juri Linkov <juri@jurta.org>
15946 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15947 Lisp code that uses `read-buffer' with current buffer as default.
15949 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
15951 * dbusbind.c (xd_read_message): Generate an event for every
15952 registered handler. There might be several handlers registered
15953 for the same signal.
15954 (Fdbus_register_signal): Don't overwrite a registration for the
15955 same signal. Add a new registration if handlers are different.
15956 (Vdbus_registered_functions_table): Rework doc string.
15958 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
15960 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15961 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15962 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15963 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15964 Unify argument lists.
15965 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15966 arguments and hash table keys. Use unique name for service.
15967 (Fdbus_unregister_signal): Remove checks.
15968 (Vdbus_registered_functions_table): Fix doc string.
15970 2007-12-05 Magnus Henoch <mange@freemail.hu>
15972 * process.c (make_process): Initialize pty_flag to 0.
15974 2007-12-05 Jason Rumney <jasonr@gnu.org>
15976 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15979 2007-12-05 Richard Stallman <rms@gnu.org>
15981 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15983 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15985 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15987 (mac_try_close_socket) [MAC_OSX]: New function.
15988 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15989 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15991 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15992 Use mac_try_close_socket.
15994 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15996 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15998 (copy_dysymtab): Compute relocation base here.
15999 (rebase_reloc_address) [__ppc64__]: New function.
16000 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16003 2007-12-05 Jason Rumney <jasonr@gnu.org>
16005 * w32proc.c (sys_spawnve): Quote args with wildcards.
16007 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16011 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16013 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
16015 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16016 Move check for Vdbus_registered_functions_table to
16017 xd_read_queued_messages.
16018 (xd_read_queued_messages): Protect xd_read_message calls by
16019 internal_condition_case_1.
16021 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
16023 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16024 Qdbus_system_bus and Qdbus_session_bus, respectively.
16025 (Vdbus_intern_symbols): Remove.
16026 (Vdbus_registered_functions_table): New hash table.
16027 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16028 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16029 Rewrite in order to manage registered functions by hash table
16030 Vdbus_registered_functions_table.
16032 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16034 * xterm.c: Update URL to Window Manager Specification in comment.
16036 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
16038 * config.in (HAVE_DBUS): Add.
16040 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16041 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16042 (obj): Add $(DBUS_OBJ).
16043 (LIBES): Add $(DBUS_LIBS).
16044 (dbusbind.o): New target.
16046 * dbusbind.c: New file.
16048 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16050 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16051 (Qdbus_event): New Lisp symbol.
16052 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16053 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
16054 (keys_of_keyboard): Define dbus-event.
16056 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16058 2007-12-01 Richard Stallman <rms@gnu.org>
16060 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16062 2007-11-30 Jason Rumney <jasonr@gnu.org>
16064 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16065 (w32con_reset_terminal_modes): Clear screen buffer.
16066 (w32_face_attributes): Don't use color indexes that are out of range.
16067 Only reverse the default colors.
16069 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16072 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16074 2007-11-29 Jason Rumney <jasonr@gnu.org>
16076 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16077 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16078 if the terminal colors are initialized.
16079 (unspecified_fg, unspecified_bg): Remove unused declarations.
16081 2007-11-29 Andreas Schwab <schwab@suse.de>
16083 * keyboard.c (apply_modifiers): Fix typo.
16085 2007-11-29 Richard Stallman <rms@gnu.org>
16087 * keymap.c (Fcurrent_local_map): Doc fix.
16089 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16091 * s/gnu-kfreebsd.h: New file.
16093 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16095 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16096 Don't cast redundantly.
16098 * keyboard.c (KEY_TO_CHAR): New macro.
16099 (parse_modifiers, apply_modifiers): Accept integer arguments.
16100 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16101 for chars and symbol keys.
16102 After doing such remapping, apply function-key-map again.
16104 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16106 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16109 2007-11-26 Andreas Schwab <schwab@suse.de>
16111 * process.c (list_processes_1): Fix indentation level of the
16114 2007-11-23 Andreas Schwab <schwab@suse.de>
16116 * editfns.c (Fformat): Handle %c specially since it requires the
16117 argument to be of type int.
16119 2007-11-23 Markus Triska <markus.triska@gmx.at>
16121 * emacs.c (main): Call init_editfns before init_process, since
16122 init_process sets Vprocess_connection_type depending on OS release.
16124 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16126 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16127 (find_symbol_value): Use do_symval_forwarding.
16129 * data.c (set_internal): Set the value in the `cons-cell' (for
16130 Buffer_Local_values) not only for frame-local variables.
16132 2007-11-22 Andreas Schwab <schwab@suse.de>
16134 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16136 * keymap.c (Fsingle_key_description): Likewise.
16137 * print.c (print_object): Likewise.
16139 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16141 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16142 file for image is nil.
16144 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16146 * term.c: Include stdarg.h.
16147 (fatal): Implement using varargs.
16148 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16150 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16152 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16153 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16154 Update call to buffer_slot_type_mismatch.
16155 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16156 (buffer_slot_type_mismatch): Update.
16157 * buffer.c (buffer_local_types): Remove.
16158 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16159 (defvar_per_buffer): Set the type in the buffer_objfwd.
16161 2007-11-21 Jason Rumney <jasonr@gnu.org>
16163 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16164 CreateFileMapping returns NULL on failure.
16166 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16168 * search.c (Fset_match_data): Remove the `evaporate' feature.
16169 (unwind_set_match_data): Don't use the `evaporate' feature.
16171 2007-11-21 Jason Rumney <jasonr@gnu.org>
16173 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16175 * w32console.c (w32con_write_glyphs): Remove unused variables.
16177 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16179 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16181 * s/darwin.h (MULTI_KBOARD): Remove.
16183 * macfns.c (x_create_tip_frame, Fx_create_frame)
16184 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16186 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16188 * buffer.c (Fbuffer_local_value): Remove redundant test.
16189 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16190 than in `current-buffer' to match the comment.
16191 Do the swap using swap_in_global_binding.
16193 * data.c (store_symval_forwarding, set_internal):
16194 * eval.c (specbind): Remove dead code.
16196 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16197 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16198 Since we do not want to see internal Lisp_*fwd objects here.
16200 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16202 * sysdep.c (init_system_name): Use getaddrinfo if available.
16204 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16205 (x_scroll_bar_note_movement): start, end, with, height in struct
16206 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16208 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16210 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16212 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16214 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16215 This undoes Richard's change of 14-Oct-2002.
16217 * alloc.c (allocate_other_vector):
16218 * lisp.h (allocate_other_vector): Remove.
16220 * window.c (struct save_window_data): Move non-lisp data to the end
16221 and make it `int' rather than Lisp_Object.
16222 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16223 Done wrap/unwrap integer values.
16224 (Fset_window_configuration, compare_window_configurations):
16225 Update use of fields to their new types.
16227 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16228 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16229 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16230 (SET_SCROLL_BAR_X_WINDOW): Remove.
16231 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16232 Access the new x_window field directly.
16233 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16234 Don't wrap/unwrap integers into Lisp_Objects.
16235 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16236 (x_scroll_bar_report_motion):
16237 Don't wrap/unwrap integers into Lisp_Objects.
16238 (x_term_init): Use SDATA.
16239 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16240 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16241 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16242 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16243 * xfns.c (x_set_background_color):
16244 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16245 Access the new x_window field directly.
16247 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16248 (allocate_pseudovector): Make non-static.
16250 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16251 (allocate_pseudovector): Declare.
16252 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16254 2007-11-15 Andreas Schwab <schwab@suse.de>
16256 * editfns.c (Fformat): Correctly format EMACS_INT values.
16257 Also take precision into account when formatting an integer.
16259 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16261 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16263 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16264 (syms_of_keyboard): Defsubr it.
16266 * data.c (swap_in_global_binding): Fix longstanding bug where
16267 store_symval_forwarding was not called with the right second argument,
16268 thus causing objfwd-ing from being dropped.
16270 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16272 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16273 (Fx_display_pixel_height, Fx_display_planes)
16274 (Fx_display_color_cells, Fx_server_max_request_size)
16275 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16276 (Fx_display_visual_class, Fx_display_save_under):
16277 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16278 (Fx_display_pixel_height, Fx_display_planes)
16279 (Fx_display_color_cells, Fx_server_max_request_size)
16280 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16281 (Fx_display_mm_height, Fx_display_mm_width)
16282 (Fx_display_backing_store, Fx_display_visual_class)
16283 (Fw32_select_font, Fx_display_save_under):
16284 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16285 (Fx_display_pixel_height, Fx_display_planes)
16286 (Fx_display_color_cells, Fx_server_max_request_size)
16287 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16288 (Fx_display_save_under): Fix typos in docstrings.
16290 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16292 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16293 corresponding to deleted entries; they are an implementation detail.
16294 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16296 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16297 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16298 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16299 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16300 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16301 (Fw32_define_rgb_color, Fw32_load_color_file)
16302 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16303 Fix typos in docstrings.
16304 (Fx_server_version): Reflow docstring.
16305 (Fw32_shell_execute): Doc fixes.
16307 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
16309 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16310 if w32_parse_hot_key returned nil.
16312 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16314 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16316 2007-11-09 Jason Rumney <jasonr@gnu.org>
16318 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16320 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16322 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16323 Remove W32_SCROLL_BAR_CLICK_EVENT.
16325 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16326 Add MULTIMEDIA_KEY_EVENT.
16328 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16329 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16330 (make_lispy_event) [WINDOWSNT]: Use it to translate
16331 MULTIMEDIA_KEY_EVENT.
16333 * w32term.h (WM_APPCOMMAND): Define if not already.
16334 (GET_APPCOMMAND_LPARAM): Likewise.
16336 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16339 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16340 (syms_of_w32fns): Export and initialize it.
16341 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16343 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
16345 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16348 * xdisp.c (handle_face_prop): Fix last change.
16350 2007-11-09 Richard Stallman <rms@gnu.org>
16352 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16353 not just for after-strings and before-strings.
16354 Call face_for_overlay_string and pass the overlay to it.
16355 (handle_display_prop): Determine whether property came from an overlay.
16356 Pass OVERLAY arg to handle_single_display_spec.
16357 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16358 (load_overlay_strings): Fill in it->string_overlays.
16359 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16361 * xfaces.c (face_for_overlay_string): Function renamed from
16362 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16364 * dispextern.h (struct it): New elt string_overlays.
16365 New elt from_overlay, also in stack.
16366 Rearrange a few elements.
16367 (face_for_overlay_string): Decl renamed from
16368 face_at_buffer_position_no_overlays, and add argument.
16370 2007-11-09 Richard Stallman <rms@gnu.org>
16372 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16373 to get the base face for an overlay string.
16375 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16377 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16379 * xdisp.c (handle_stop): Move some code out of loop.
16381 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16383 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16384 Fix conversion from Lisp object to ATSUFontID.
16386 2007-11-09 Jason Rumney <jasonr@gnu.org>
16388 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16390 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16392 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16393 Don't assume regions are aligned to page boundary.
16394 (print_load_command_name): Add LC_UUID if defined.
16396 2007-11-09 Richard Stallman <rms@gnu.org>
16398 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16400 2007-11-07 Jason Rumney <jasonr@gnu.org>
16402 * s/windows95.h: Remove.
16404 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16406 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16407 abort with a message on unhandled store_type values.
16409 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16411 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16412 Remove HAVE_X11R5 and HAVE_X11R4.
16414 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16416 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16418 2007-11-01 Johan Bockgård <bojohan@gnu.org>
16420 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16421 Don't set s->stippled_p here, since it has already been set by
16422 x_set_glyph_string_gc from x_draw_glyph_string.
16424 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16426 * sunfns.c: Remove file.
16430 * m/sparc.h: Remove Sun windows code.
16432 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16434 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16435 (init_keyboard): Set current_kboard's window-system to nil.
16436 (tty_read_avail_input): Typo.
16437 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16439 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16446 * Makefile.in: Remove all mentions of X10.
16448 * dispnew.c (syms_of_display): Don't mention version 10.
16450 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
16452 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16453 ($(BLD)/abbrev.$(O)): Remove.
16455 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16457 Rewrite abbrev.c in Elisp.
16458 * image.c (Qcount): Don't declare as extern.
16459 (syms_of_image): Initialize and staticpro `Qcount'.
16460 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16461 * emacs.c (main): Don't call syms_of_abbrev.
16462 * Makefile.in (obj): Remove abbrev.o.
16463 (abbrev.o): Remove.
16464 * abbrev.c: Remove.
16466 2007-10-26 Martin Rudalics <rudalics@gmx.at>
16468 * window.c (window_min_size_2): Don't count header-line.
16470 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16472 * frame.h (struct frame): Move all bit fields after the first bit
16473 field to take advantage of the available space. Group all the
16474 chars together to reduce wasted space due to padding.
16476 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
16478 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16480 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16481 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16482 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16483 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16484 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16485 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16486 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16487 (last_marked, mark_object_loop_halt): Make static.
16489 * frame.c (syms_of_frame) <delete-frame-functions>:
16490 Fix typo in docstring.
16492 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
16494 * w32.c (init_environment): Fix tiny memory leak.
16495 (w32_get_resource): Remove unused variable `ok'.
16497 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16499 Make `window-system' into a keyboard-local variable (rather than
16500 frame-local as done originally by multi-tty).
16502 * keyboard.h (struct kboard): Add Vwindow_system.
16503 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16504 (mark_kboards): Mark Vwindow_system.
16506 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16507 (init_display): Don't set the obsolete `window-system' frame-param.
16509 * xterm.c (x_term_init):
16510 * w32term.c (w32_create_terminal):
16511 * term.c (init_tty): Set Vwindow_system.
16512 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16513 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16515 * xfns.c (Fx_create_frame, x_create_tip_frame):
16516 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16517 * macfns.c (Fx_create_frame):
16518 Don't set the obsolete `window-system' frame-param.
16520 * frame.h (Qwindow_system): Remove.
16521 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16522 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16524 2007-10-24 Richard Stallman <rms@gnu.org>
16526 * frame.c (x_figure_window_size): For fullscreen case,
16527 set USPosition | PPosition without clobbering rest of window_prompting.
16529 * keyboard.c (Fcurrent_idle_time): Doc fix.
16531 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16533 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16535 * process.c (unwind_request_sigio): Only define if __ultrix__.
16537 * callproc.c (child_setup): Remove spurious *.
16539 * lisp.h (Fget_text_property): Declare.
16540 (have_menus_p): Declare it here rather than in sys-dep header files.
16541 * macterm.h (have_menus_p):
16542 * msdos.h (have_menus_p):
16543 * xterm.h (have_menus_p): Remove.
16545 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16546 (Fmake_variable_frame_local): Just check the variable's const-ness
16547 rather than checking nil or t.
16549 2007-10-22 Jason Rumney <jasonr@gnu.org>
16551 * w32fns.c: Include math.h.
16552 (w32_abort): Declaration moved to nt/config.nt.
16554 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16555 (abort): Redefinition moved to nt/config.nt.
16557 * m/windowsnt.h: Remove.
16559 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
16561 * emacs.c (Fdump_emacs): Fix typo in message.
16562 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16563 <installation-directory>: Reflow docstring.
16565 2007-10-22 Juri Linkov <juri@jurta.org>
16567 * minibuf.c: Allow minibuffer default to be a list of default values.
16568 With empty input use the first element of this list as returned default.
16570 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16571 (read_minibuf): If defalt is cons, set histstring to its car.
16572 (Fread_string): If default_value is cons, set val to its car.
16573 (Fread_buffer): If def is cons, use its car.
16574 (Fcompleting_read): If defalt is cons, set val to its car.
16576 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
16578 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16580 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
16582 * doc.c (Fdocumentation): Check for advice in all cases.
16584 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
16586 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16588 2007-10-19 Richard Stallman <rms@gnu.org>
16590 * doc.c (Fdocumentation): Check for and handle an advised function.
16592 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
16594 * process.c (Fset_process_filter): Doc fix.
16596 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16598 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16599 which caused key-translation-map to applied repeatedly (thus breaking
16602 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16604 * xselect.c (x_own_selection, x_handle_selection_clear)
16605 (x_clear_frame_selections):
16606 * w32menu.c (list_of_panes, list_of_items):
16607 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16608 * textprop.c (validate_plist, interval_has_all_properties)
16609 (interval_has_some_properties, interval_has_some_properties_list)
16610 (add_properties, text_property_list):
16611 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16612 * minibuf.c (Fassoc_string):
16613 * macselect.c (x_own_selection, x_clear_frame_selections)
16614 (Fx_disown_selection_internal):
16615 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16616 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16618 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
16620 * process.c: Link to libs for calling res_init() if available.
16621 (Fmake_network_process): Call res_init() before getaddrinfo or
16622 gethostbyname, if possible.
16624 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16626 * lread.c (read1): Set pvectype for char_tables.
16628 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16629 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16631 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16633 * alloc.c (free_misc): Use XMISCTYPE.
16634 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16636 2007-10-17 Glenn Morris <rgm@gnu.org>
16638 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16639 (syms_of_minibuf): Add Qcompletion_ignore_case.
16640 * dired.c (Qcompletion_ignore_case): Change to external.
16641 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16642 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16643 (Fread_file_name): Use it rather than intern'ing.
16645 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16646 (Fread_coding_system): Ignore case of user input.
16648 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16650 * xdisp.c (handle_display_prop): Ignore display specs after
16651 replacing one when string text is being replaced.
16652 (handle_single_display_spec): Pretend as if characters with display
16653 property haven't been consumed only when buffer text is being replaced.
16655 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16657 * xfns.c (Fx_create_frame, Fx_display_list):
16658 * window.c (window_fixed_size_p, enlarge_window)
16659 (shrink_window_lowest_first):
16660 * macterm.c (init_font_name_table):
16661 * macfns.c (Fx_create_frame, Fx_display_list):
16662 * lread.c (close_load_descs):
16663 * keyboard.c (read_char_x_menu_prompt):
16664 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16665 * coding.c (code_convert_region_unwind): Test the type of an object
16666 rather than just !NILP before extracting data from it.
16668 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16670 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16671 (XMISCANY): New macro.
16672 (XMISCTYPE): Use it.
16673 (struct Lisp_Misc_Any): New type.
16674 (union Lisp_Misc): Use it.
16675 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16676 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16677 (find_symbol_value, set_internal, default_value, Fset_default)
16678 (Fmake_variable_buffer_local, Fmake_local_variable)
16679 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16680 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16681 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16682 * alloc.c (allocate_buffer): Set the size and tag.
16683 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16685 (die): Follow the GNU convention for error messages.
16686 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16687 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16689 (set_buffer_internal_1):
16690 * frame.c (store_frame_param):
16691 * eval.c (specbind):
16692 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16694 * doc.c (Fsnarf_documentation): Simplify.
16696 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16698 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16699 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16701 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16703 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16705 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16707 * eval.c (do_autoload): Don't save autoloads.
16709 * data.c (Ffset): Save autoload of the function being set.
16711 2007-10-07 John Paul Wallington <jpw@pobox.com>
16713 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16714 parameter before setting up faces.
16716 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16718 * ccl.c (Fregister_code_conversion_map):
16719 * keyboard.c (append_tool_bar_item): Reformat last change.
16721 * lisp.h (eabs): Rename from `abs'. All callers changed.
16723 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16725 * buffer.c (add_overlay_mod_hooklist):
16726 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16727 * fontset.c (make_fontset):
16728 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16729 (append_tool_bar_item):
16730 * macmenu.c (grow_menu_items):
16731 * w32menu.c (grow_menu_items):
16732 * xmenu.c (grow_menu_items): Use larger_vector.
16734 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16736 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16737 selected frame'' on MSDOS).
16739 2007-10-12 Martin Rudalics <rudalics@gmx.at>
16741 * frame.c (Qexplicit_name): New variable.
16742 (x_report_frame_params): Report it in parameter alist.
16743 (syms_of_frame): Intern and staticpro it.
16745 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16747 * macfns.c (x_create_tip_frame): Set terminal for frame.
16749 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16751 * frame.c (Qenvironment): Remove.
16752 (syms_of_frame) <Qenvironment>: Don't initialize.
16753 (Fdelete_frame): Don't treat the `environment' param specially.
16754 * frame.h (Qenvironment): Don't declare.
16755 * callproc.c (set_initial_environment): Don't set unused frame param.
16757 * frame.c (Fframe_with_environment): Remove.
16758 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16760 * lisp.h (Fframe_with_environment): Don't declare.
16762 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
16764 * indent.c (indent_tabs_mode, last_known_column)
16765 (last_known_column_modified): Make static.
16766 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16768 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16770 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16772 2007-10-09 Jason Rumney <jasonr@gnu.org>
16774 * w32term.c (x_set_window_size): Disable code that attempts to tell
16775 Lisp code about a size change before it actually happens.
16777 2007-10-09 Richard Stallman <rms@gnu.org>
16779 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16780 return HANDLED_RETURN.
16782 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16784 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16785 when there's an unread command event.
16787 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16788 window autoselection act appropriately when leaving selected frame.
16789 (syms_of_frame): Initialize focus_follows_mouse.
16790 * frame.h (focus_follows_mouse): Extern it.
16791 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16792 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16793 * msdos.c (dos_rawgetc): Likewise.
16794 * w32term.c (w32_read_socket): Likewise.
16795 * xterm.c (handle_one_xevent): Likewise.
16796 * xdisp.c (syms_of_xdisp): In doc-string of
16797 mouse-autoselect-window mention focus-follows-mouse.
16799 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16801 * macterm.c (mac_load_query_font): Fix missing return value.
16802 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16805 2007-10-08 Richard Stallman <rms@gnu.org>
16807 * xdisp.c (get_window_cursor_type): Implement documented behavior
16808 for cursor-in-non-selected-windows = t.
16810 2007-10-08 Jason Rumney <jasonr@gnu.org>
16812 * w32.c (w32_get_resource): Always close registry keys.
16814 2007-10-08 Jason Rumney <jasonr@gnu.org>
16816 * makefile.w32-in (LIBS): Add COMCTL32.
16818 * w32fns.c (globals_of_w32fns): Init common controls.
16820 2007-10-08 Richard Stallman <rms@gnu.org>
16822 * image.c (our_memory_buffer): Rename from omfib_buffer.
16824 2007-10-08 Richard Stallman <rms@gnu.org>
16826 * buffer.c (Foverlays_at): Doc fix.
16828 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16830 * fns.c (Fplist_put): Preserve uneven tail data.
16832 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16834 * termhooks.h (enum event_kind): Remove trailing comma.
16836 * frame.h (enum): Remove trailing comma.
16838 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16840 * w32proc.c (delete_child): Don't terminate threads of zombies.
16842 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16844 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16846 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16847 last-repeatable-command.
16848 (init_kboard): Initialize Vlast_repeatable_command.
16849 (command_loop_1): Set it to real_this_command unless that was
16850 bound to an input event.
16851 (mark_kboards): Mark it.
16853 2007-10-08 Richard Stallman <rms@gnu.org>
16855 * eval.c (condition-case): Doc fix.
16857 2007-10-08 Masatake YAMATO <jet@gyve.org>
16859 * xfaces.c (tty_supports_face_attributes_p): Fix code
16860 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16861 was copied and not edited.
16863 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16865 Add new `input-decode-map' keymap and use it for terminal
16867 * keyboard.h (struct kboard): Add Vinput_decode_map.
16868 Remove Vlocal_key_translation_map.
16869 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16870 (init_kboard): Init input-decode-map.
16871 Replace local-key-translation-map back with key-translation-map.
16872 (syms_of_keyboard): Declare input-decode-map.
16873 Remove local-key-translation-map. Update docstrings.
16874 (mark_kboards): Mark Vinput_decode_map.
16875 Don't mark Vlocal_key_translation_map.
16876 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16877 Replace local-key-translation-map back with key-translation-map.
16878 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16879 Bind in input-decode-map rather than function-key-map.
16881 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16882 This was made redundant by the previous introduction of XSETPVECTYPE.
16884 2007-10-09 Richard Stallman <rms@gnu.org>
16886 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16888 2007-09-29 Richard Stallman <rms@gnu.org>
16890 * eval.c (internal_condition_case_2, internal_condition_case_1)
16891 (internal_condition_case): Reenable abort if x_catching_errors ()
16892 to see if that really happens and why.
16894 2007-10-06 Andreas Schwab <schwab@suse.de>
16896 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16898 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
16900 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16902 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16904 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16906 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16908 * window.h (struct window):
16909 * window.c (struct save_window_data, struct saved_window):
16910 * termhooks.h (struct terminal):
16911 * process.h (struct Lisp_Process):
16912 * frame.h (struct frame):
16913 * buffer.h (struct buffer):
16914 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16915 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16916 The size field of (pseudo)vectors is now unsigned.
16917 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16919 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16920 Turn `count' into an integer.
16922 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16923 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16924 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16925 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16926 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16928 * alloc.c (allocate_pseudovector): New fun.
16929 (ALLOCATE_PSEUDOVECTOR): New macro.
16930 (allocate_window, allocate_terminal, allocate_frame)
16931 (allocate_process): Use it.
16932 (mark_vectorlike): New function.
16933 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16934 (mark_terminals): Use it.
16935 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16936 (Fmake_byte_code): Use XSETPVECTYPE.
16938 * frame.c (Fframe_parameters): Minor simplification.
16940 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16942 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16944 * buffer.c (Fget_buffer_create, init_buffer_once):
16945 * lread.c (defsubr):
16946 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16948 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16949 defined differently in the m/*.h files.
16950 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16951 (XSETPVECTYPE): New macro.
16952 (XSETPSEUDOVECTOR): Use it.
16954 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16955 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16957 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16958 * lread.c (defvar_per_buffer):
16959 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16961 * window.c (candidate_window_p): Only consider as visible frames that
16962 are on the same terminal.
16964 * m/ibms390x.h (MARKBIT): Remove unused macro.
16966 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
16968 * lread.c (Fload): Fix typo in docstring.
16970 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16972 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16973 of a non-zero value can't yield zero.
16975 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16977 * term.c (term_clear_mouse_face, term_mouse_highlight)
16978 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16980 * print.c (safe_debug_print): Use XHASH.
16982 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16983 Lisp elements such as tags.
16984 (XHASH): New macro.
16986 (SREF, SSET, STRING_COPYIN): Use SDATA.
16987 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16989 * alloc.c (mark_terminal): Remove left-over declaration.
16990 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16991 (allocate_vectorlike): Remove type argument. Adjust callers.
16992 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16993 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16995 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16996 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16997 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16998 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16999 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17002 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17003 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17004 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17006 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17008 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17011 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17013 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17015 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17017 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17019 (handle_one_term_event): Use Gpm_DrawPointer.
17020 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17021 Signal errors instead of returning nil. Always return nil.
17022 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17023 Make it a noop if gpm-mouse was not activated.
17024 (syms_of_term): Update names.
17026 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17028 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17029 (init_sys_modes): Check that gpm_tty is the current tty.
17031 * alloc.c (allocate_terminal): Set the vector size to only count the
17032 lisp fields. Initialize those to nil.
17033 (mark_object): Don't treat terminals specially.
17034 (mark_terminal): Remove.
17035 (mark_terminals): Use mark_object instead.
17037 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17038 the GC to the beginning.
17041 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17043 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17045 2007-09-25 Jason Rumney <jasonr@gnu.org>
17047 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17049 * w32console.c (create_w32cons_output): Remove.
17051 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17053 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17054 (reset_sys_modes): Use reset_terminal_modes_hook.
17056 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17058 * eval.c (do_autoload): Don't output any message.
17060 2007-09-24 Juri Linkov <juri@jurta.org>
17062 * emacs.c (standard_args): Change priority of "--no-splash"
17063 from 40 to 3. Add "--no-desktop" with the same priority.
17065 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17067 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17068 and optimize the case where they are all 1.
17070 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
17072 * lisp.h (abs): Define if not defined.
17073 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17074 Don't define `abs', since it's defined in lisp.h.
17076 2007-09-22 Eli Zaretskii <eliz@gnu.org>
17078 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17079 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17080 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17081 (init_tty): Use DEV_TTY instead of "/dev/tty".
17082 [WINDOWSNT]: No need to protect from NAME arg being null.
17084 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17086 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17089 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17091 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17092 (gpm_tty): Change its type.
17093 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17094 (gpm_tty): Change its type and initialize it.
17095 (Fterm_open_connection): Check the frame is indeed a tty.
17096 Use the new gpm_tty.
17097 (Fterm_close_connection): Use the new gpm_tty.
17098 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17099 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17101 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
17103 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17104 underline_color, to draw strike-through.
17106 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17108 * lisp.h (allocate_terminal): Declare.
17110 * window.c (candidate_window_p): Consider frames that are being placed
17111 by the user as somewhere between visible and iconified.
17112 (window_loop): Prefer windows on the current frame.
17113 (Fselect_window): Move the use of select-frame to the beginning so we
17114 can just delegate all the work (it'll call us back anyway).
17116 * frame.c (Qdisplay_environment_variable):
17117 * frame.h (Qdisplay_environment_variable): Delete.
17119 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17120 of the first arg, since that value may be a union.
17122 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17123 parameter rather than Qdisplay_environment_variable. If all else
17124 fails, look for DISPLAY in initial-environment.
17126 2007-09-21 Glenn Morris <rgm@gnu.org>
17128 * Makefile.in (emacstool): Remove target.
17129 (lisp, shortlisp): Remove termdev.elc.
17131 2007-09-21 Markus Triska <markus.triska@gmx.at>
17133 * xterm.c (x_delete_display): Compile session management conditionally.
17135 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17137 * callproc.c (getenv_internal_1): New function.
17138 (getenv_internal): Use it.
17139 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17141 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17142 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17143 (Fset_terminal_parameter): Work with dead terminals as well.
17144 (Fmodify_terminal_parameters): Remove.
17146 * terminal.c (get_terminal): Handle terminals.
17147 Make sure the terminal returned is live.
17148 (create_terminal): Use allocate_terminal.
17149 (mark_terminals): Move to alloc.c.
17150 (delete_terminal): Use terminal->name as liveness status.
17151 NULL out fields after freeing their contents.
17152 Don't deallocate the object.
17153 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17154 rather than an int.
17155 (Fterminal_live_p): Accept non-integer arguments.
17156 (Fterminal_list): Return terminal objects rather than an ints.
17158 * alloc.c (enum mem_type): New member for `terminal' objects.
17159 (allocate_terminal): New function.
17160 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17162 (mark_terminal): New fun.
17163 (mark_terminals): Move from terminal.c.
17165 * term.c (get_tty_terminal): Don't treat output_initial specially.
17166 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17167 (delete_tty): Use terminal->name as liveness status.
17169 * termhooks.h (struct terminal): Make it into a pseudovector.
17170 Remove `deleted' replaced by checking `name's nullness.
17172 * print.c (print_object): Handle terminals.
17174 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17175 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17177 * frame.c (make_terminal_frame):
17178 * keyboard.c (tty_read_avail_input):
17179 * w32term.c (x_delete_terminal):
17180 * xfns.c (Fx_create_frame, x_create_tip_frame):
17181 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17183 2007-09-20 Glenn Morris <rgm@gnu.org>
17185 * process.c (Fmake_network_process): Doc fix.
17187 2007-09-19 Jason Rumney <jasonr@gnu.org>
17189 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17191 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17193 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17194 Fix a C warning regarding variable constness.
17196 * xterm.c (handle_one_xevent): Fix a C warning.
17198 2007-09-18 Jason Rumney <jasonr@gnu.org>
17200 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17202 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17204 * gtkutil.c (gdpy_def): New variable.
17205 (xg_initialize): Initialize gdpy_def.
17206 (xg_display_close): If no other display exists, set gdpy_def to a
17209 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17211 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17212 when we have no file name for the icon.
17213 (xg_tool_bar_expose_callback): Remove.
17214 (xg_create_tool_bar): Don't connect expose signal to
17215 xg_tool_bar_expose_callback.
17216 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17218 2007-09-16 Andreas Schwab <schwab@suse.de>
17220 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17221 values instead of zapping them.
17223 2007-09-14 Glenn Morris <rgm@gnu.org>
17225 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17226 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17227 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17228 scope and rename to omfib_buffer for clarity.
17229 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17231 2007-09-14 Kenichi Handa <handa@m17n.org>
17233 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17235 2007-09-13 Jason Rumney <jasonr@gnu.org>
17237 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17239 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17241 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17242 (mac_term_init): Call here instead, passing rif.
17244 2007-09-13 Glenn Morris <rgm@gnu.org>
17246 * s/hpux.h: No longer define `static' as nothing.
17248 2007-09-13 Johan Bockgård <bojohan@gnu.org>
17250 * callint.c (Fcall_interactively): Remove unused var `fun'.
17252 2007-09-12 Romain Francoise <romain@orebokech.com>
17254 * window.c (prefer_window_split_horizontally, display_buffer):
17255 Revert 2007-09-08 change.
17257 2007-09-12 Glenn Morris <rgm@gnu.org>
17259 * alloca.c: Remove file.
17260 * Makefile.in (alloca): Do not undef.
17261 (allocaobj, alloca.o): Remove.
17262 (otherobj): Remove allocaobj.
17263 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17264 * regex.c (C_ALLOCA): Remove all references and code that was only
17265 used when this was defined.
17266 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17267 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17268 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17270 * Makefile.in (SOURCES, unlock, relock): Delete.
17272 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17273 (menu_grab_callback): All uses changed.
17275 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17276 (x_reply_selection_request): All uses changed.
17278 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17280 * lread.c (load_warn_old_style_backquotes): Change message to look
17281 better when it appears in the middle of byte-compiler messages.
17283 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17285 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17287 * xterm.c (x_create_terminal): Add comment.
17289 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17291 2007-09-10 Richard Stallman <rms@gnu.org>
17293 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17295 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17297 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17298 (DEFUN): Document `intspec', use it instead of `prompt'.
17300 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17302 * data.c (Finteractive_form): If the interactive specification starts
17303 with a `(', use it as a Lisp form.
17305 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17306 name and file modes.
17308 * callint.c (Fcall_interactively): Comment fixes.
17310 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17312 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17313 and compiled functions.
17315 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17317 * window.c (prefer_window_split_horizontally): New variable.
17318 (display_buffer): Consider splitting window horizontally depending
17319 on prefer_window_split_horizontally.
17321 2007-09-08 Eli Zaretskii <eliz@gnu.org>
17323 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17325 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17327 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17329 * frame.c (x_set_frame_parameters): Check number is positive before
17332 * window.c (freeze_window_start): Don't presume selected_window holds
17334 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17336 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17338 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17340 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17342 * window.c (Vsplit_window_preferred_function): New var.
17343 (Fdisplay_buffer): Use it.
17344 (syms_of_window): Export, and initialize it.
17346 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17348 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17350 2007-09-06 Glenn Morris <rgm@gnu.org>
17352 * gtkutil.c (menu_grab_callback) <cnt>:
17353 * xselect.c (x_reply_selection_request) <cnt>: Move static
17354 variable to file scope.
17356 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17358 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17359 consistent values of selected_frame and selected_window.
17361 2007-09-04 Jason Rumney <jasonr@gnu.org>
17363 * w32console.c (initialize_w32_display): Zero unused hooks.
17365 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17367 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17368 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17370 2007-09-04 Jason Rumney <jasonr@gnu.org>
17372 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17373 in w32console.c. Set up input. Remove XXX comments that have been
17374 confirmed as correct.
17376 * s/ms-w32.h (MULTI_KBOARD): Define.
17378 * w32console.c (one_and_only_w32cons): Remove.
17379 (initialize_w32_display): Take terminal argument.
17381 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17382 initialize_w32_display.
17383 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17385 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17387 * keyboard.c (discard_mouse_events): Discard it.
17388 (make_lispy_event): Translate it to a lisp event.
17389 (lispy_wheel_names): Add wheel-left and right events.
17390 (syms_of_keyboard): Enlarge wheel_syms.
17392 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17393 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17395 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17397 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17398 from WM_MOUSEHWHEEL.
17399 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17401 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17404 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17405 keyboard for the terminal.
17407 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17409 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17410 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17411 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17412 and resume-tty-function to resume-tty-hook.
17413 (Fsuspend_tty, Fresume_tty): Use new names.
17415 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17417 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17418 if it starts with "n:".
17420 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17422 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17424 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17427 * frame.c (Qterm_environment_variable): Remove.
17428 (syms_of_frame): Don't init and staticpro it.
17430 * callproc.c (getenv_internal): Remove special case for $TERM.
17432 * callproc.c (Vinitial_environment): New variable.
17433 (set_initial_environment): Initialize it.
17434 (syms_of_callproc): Declare it.
17435 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17436 TERM under which a process runs is never related to the TERM in which
17439 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17441 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17442 * s/darwin.h: ... do it here.
17444 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17446 * lisp.h (set_initial_environment): Rename from set_global_environment.
17448 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17449 removed by mistake on the multi-tty branch.
17451 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17452 (Fmodify_frame_parameters): Return a value.
17454 * image.c (png_load): Comment-out var only used in commented-out code.
17456 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17457 before passing it to mark_object.
17459 * xfaces.c (internal_resolve_face_name): Return a value.
17460 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17462 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17463 (x_icon): Comment-out var only used in commented-out code.
17465 2007-08-29 Romain Francoise <romain@orebokech.com>
17467 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17468 QUIT hasn't been provided.
17470 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17472 * callproc.c (child_setup, getenv_internal): Use the
17473 display-environment-variable and term-environment-variable frame params.
17474 (set_initial_environment): Initialise Vprocess_environment.
17476 * config.in: Disable multi-keyboard support on a mac.
17478 * frame.c (Qterm_environment_variable)
17479 (Qdisplay_environment_variable): New variables.
17480 (syms_of_frame): Intern and staticpro them.
17481 (Fmake_terminal_frame): Disable output method test.
17483 * frame.h: Declare them here.
17485 * macfns.c (x_set_mouse_color): Get rif from the frame.
17486 (x_set_tool_bar_lines): Don't use updating_frame.
17487 (mac_window): Add 2 new parameters for consistency with other systems.
17488 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17489 frame parameters following what is done in X11 and w32. Don't use
17490 FRAME_MAC_DISPLAY_INFO.
17491 (Fx_open_connection, start_hourglass): Remove window-system check.
17492 (x_create_tip_frame): Get the keyboard from the terminal.
17494 * macmenu.c: Reorder includes.
17495 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17497 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17498 terminal parameter.
17499 (x_clear_frame): Add a frame parameter.
17500 (note_mouse_movement): Get rif from the frame.
17501 (mac_term_init): Initialize the terminal.
17502 (mac_initialize): Make static and move terminal initialization ...
17503 (mac_create_terminal): ... to this new function.
17505 * macterm.h (struct mac_display_info): Add terminal.
17506 (mac_initialize): Delete declaration.
17508 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17510 * sysdep.c: Comment out text after #endif.
17512 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17513 is defined. Better initialize ttys in windows. Use terminal
17514 specific mouse_position_hook.
17516 * termhooks.h (union display_info): Add mac_display_info.
17518 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17519 Set the default minibuffer frame, window_system and the rest of the
17520 frame parameters following what is done in X11.
17522 * w32term.c (w32_initialize): Make static.
17524 * xselect.c (x_handle_selection_clear): Only access
17525 terminal->kboard when MULTI_KBOARD is defined.
17527 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17528 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17530 2007-08-29 Jason Rumney <jasonr@gnu.org>
17532 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17533 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17535 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17536 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17538 * keyboard.c (restore_kboard_configuration): Only define when
17539 MULTI_KBOARD defined.
17541 * makefile.w32-in: Update dependancies from Makefile.in.
17542 (OBJ1): Add terminal.$(O)
17544 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17545 Don't define function body.
17546 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17548 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17550 * w32.c (request_sigio, unrequest_sigio): Remove.
17552 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17553 (w32con_clear_frame, w32con_clear_end_of_line)
17554 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17555 (w32con_delete_glyphs, w32con_set_terminal_window)
17556 (scroll_line, w32_sys_ring_bell): Add frame arg.
17557 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17559 (PICK_FRAME): Remove.
17560 (w32con_write_glyphs): Use frame specific terminal coding.
17561 (one_and_only_w32cons): New global variable.
17562 (initialize_w32_display): Use it for storing hooks.
17563 (create_w32cons_output): New function.
17565 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17568 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17570 (x_set_tool_bar_lines): Don't use updating_frame.
17571 (Fx_create_frame): Set terminal and ref count.
17572 (Fx_open_connection): Remove window-system check.
17574 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17576 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17577 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17578 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17580 (x_delete_terminal, w32_create_terminal): New functions.
17581 (w32_term_init): Create a terminal.
17582 (w32_initialize): Move terminal specific initialization to
17583 w32_create_terminal.
17585 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17586 (w32_clear_rect, w32_clear_area): Use background from frame.
17587 (w32_display_info): Add terminal.
17588 (w32_sys_ring_bell, x_delete_display): Declare here.
17590 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17592 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17594 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17596 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17597 Fix get_named_tty calls for the controlling tty.
17599 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17601 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17603 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17605 * term.c (tty_insert_glyphs): Add missing first parameter.
17607 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17609 * buffer.c (Fbuffer_list, Fbury_buffer):
17610 Take frame->buried_buffer_list into account.
17612 * cm.c (current_tty): New variable, for cmputc().
17614 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17615 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17616 (cmgoto): Add tty parameter. Pass it on to calccost().
17617 Use emacs_tputs() instead of tputs().
17619 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17621 (current_tty): New variable, for cmputc().
17622 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17624 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17625 (internal_condition_case, internal_condition_case_1)
17626 (internal_condition_case_2): Don't abort when x_catching_errors.
17628 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17629 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17630 prevent crashes caused by bogus longjmps in read_char.
17632 * keymap.h (Fset_keymap_parent): Add EXFUN.
17634 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17635 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17636 Remove redundant definition.
17638 * macfns.c (x_set_mouse_color, x_make_gc):
17639 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17641 * w32term.c (x_free_frame_resources):
17642 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17643 (w32_initialize): Use the accessor macros for terminal characteristics.
17645 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17646 Use the accessor macros for terminal characteristics.
17647 * msdos.c (internal_terminal_init): Use the accessor macros for
17648 terminal characteristics.
17649 (ScreenVisualBell, internal_terminal_init):
17650 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17652 * termopts.h (no_redraw_on_reenter): Declare.
17654 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17655 (mark_terminals, mark_ttys): Declare.
17656 (Fgarbage_collect): Call them.
17657 (mark_object): Mark buried_buffer_list.
17659 * prefix-args.c: Include stdlib.h for exit.
17661 * syssignal.h: Add comment.
17663 * indent.c: Include stdio.h.
17665 * window.h (Vinitial_window_system): Declare.
17666 (Vwindow_system): Delete declaration.
17668 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17670 * image.c (lookup_image): Don't initialize `c' until the xasserts
17673 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17674 FRAME_FOREGROUND_PIXEL.
17676 * print.c (print_preprocess): Don't lose print_depth levels while
17679 * widget.c (update_from_various_frame_slots):
17680 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17682 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17684 (window_internal_height): Remove bogus make_number call.
17685 (init_window_once): Call make_terminal_frame with two zero parameters.
17687 * fileio.c (Fread_file_name): Update comment.
17689 * callint.c (Fcall_interactively):
17690 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17691 Make sure it is correctly unwound.
17693 * xsmfns.c (x_session_close): New function.
17695 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17696 Delete declarations.
17698 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17699 (x_output): Remove background_pixel and foreground_pixel fields.
17700 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17701 (x_delete_device, x_session_close): Declare.
17703 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17704 (read_filtered_event): Call `read_char' with a local
17705 `wrong_kboard_jmpbuf'.
17707 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17708 Don't call single_kboard_state. Use FRAME_RIF.
17710 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17713 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17714 (Fframe_with_environment, Fset_input_meta_mode)
17715 (Fset_quit_char): EXFUN.
17716 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17717 (init_sys_modes, reset_sys_modes): Update prototypes.
17718 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17720 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17721 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17722 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17723 Delete declarations.
17724 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17725 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17728 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17729 already does that during init_display(). Call syms_of_keymap
17730 before syms_of_keyboard. Call `syms_of_terminal'.
17731 Call set_initial_environment, not set_process_environment.
17732 (shut_down_emacs): Call reset_all_sys_modes() instead of
17735 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17736 (internal_resolve_face_name, resolve_face_name_error): New functions.
17737 (resolve_face_name): Protect against loops and errors thrown by Fget.
17738 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17739 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17741 * scroll.c: Replace CURTTY() with local variables throughout the
17742 file (where applicable).
17743 (calculate_scrolling, calculate_direct_scrolling)
17744 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17747 * keymap.c (Vfunction_key_map): Remove.
17748 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17749 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17750 (Vkey_translation_map): Remove.
17751 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17752 (Fdescribe_buffer_bindings)
17753 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17754 Update for terminal-local key-translation-map.
17756 * Makefile.in (callproc.o): Update dependencies.
17757 (lisp, shortlisp): Add termdev.elc.
17758 (obj): Add terminal.o.
17759 (terminal.o): Add dependencies.
17760 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17761 (data.o, fns.o): Add termhooks.h dependency.
17762 (SOME_MACHINE_LISP): Add dnd.elc.
17763 (minibuf.o): Fix typo.
17764 Update dependencies.
17766 * data.c (do_symval_forwarding, store_symval_forwarding)
17767 (find_symbol_value): Use the selected frame's keyboard, not
17770 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17773 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17775 (syms_of_xmenu): Update defsubr.
17776 (mouse_position_for_popup, Fx_popup_menu)
17777 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17778 (set_frame_menubar, free_frame_menubar)
17779 (create_and_show_popup_menu, xmenu_show)
17780 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17783 * xselect.c (x_own_selection): Abort if not an X frame.
17784 (some_frame_on_display): Check if it is an X frame.
17785 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17787 * coding.c: Include frame.h and termhooks.h.
17788 (terminal_coding, keyboard_coding): Delete.
17789 (Fset_terminal_coding_system_internal)
17790 (Fset_keyboard_coding_system_internal)
17791 (Fkeyboard_coding_system)
17792 (Fterminal_coding_system): Add a terminal parameter.
17793 Get terminal_coding from the terminal.
17794 (init_coding_once): Don't call setup_coding_system here.
17796 * dispextern.h (set_scroll_region, turn_off_insert)
17797 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17798 (tty_clear_end_of_line, tty_setup_colors)
17799 (delete_tty, updating_frame)
17800 (produce_special_glyphs, produce_glyphs, write_glyphs)
17801 (insert_glyphs): Remove.
17802 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17803 (tty_turn_off_highlight, get_tty_size): Add declaration.
17804 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17806 * frame.h (enum output_method): Add output_initial.
17807 (struct x_output): Delete.
17808 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17809 Access foreground_pixel and background_pixel directly from the frame.
17810 (tty_display): Delete.
17811 (struct frame): Add buried_buffer_list, foreground_pixel,
17812 background_pixel and terminal. Delete kboard.
17813 (union output_data): Add tty.
17814 (FRAME_KBOARD): Get the kboard from the terminal.
17815 (FRAME_INITIAL_P): New macro.
17816 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17817 (Qterm_environment_variable, Qdisplay_environment_variable)
17818 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17821 * termchar.h (tty_output, tty_display_info): New structures.
17822 (tty_list): Declare.
17823 (FRAME_TTY, CURTTY): New macros.
17824 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17825 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17826 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17827 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17829 * callproc.c: Include frame.h and termhooks.h, for terminal
17831 (add_env): New function.
17832 (child_setup): Use it.
17833 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17834 (getenv_internal): Fix get_terminal_param call.
17835 (Fgetenv_internal, egetenv): Update doc.
17836 (syms_of_callproc): Initialize Vprocess_environment to nil.
17837 Register and initialize them. Remove obsolete defvars. Update doc
17839 (child_setup): Handle Vlocal_environment_variables.
17840 (getenv_internal): Add terminal parameter.
17841 Handle Vlocal_environment_variables.
17842 (Fgetenv_internal): Add terminal parameter.
17843 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17844 environment in a frame (not terminal) parameter. Update doc strings.
17845 (set_initial_environment): Rename from set_global_environment.
17846 Store Emacs environment in initial frame parameter.
17848 * xdisp.c (redisplay_internal): Update references to
17849 `previous_terminal_frame'.
17850 (display_mode_line, Fformat_mode_line): Replace calls to
17851 `push_frame_kboard' with `push_kboard'.
17852 (get_glyph_string_clip_rects): Add extra parentheses and
17853 braces to prevent compiler warnings.
17854 (calc_pixel_width_or_height): Add xassert to check that the
17855 frame is alive. Don't call `lookup_image' on a termcap frame.
17856 (message2_nolog, message3_nolog, redisplay_internal)
17857 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17858 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17859 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17860 (Fx_display_pixel_width, Fx_display_pixel_height)
17861 (Fx_display_planes, Fx_display_color_cells)
17862 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17863 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17864 (Fx_display_backing_store, Fx_display_visual_class)
17865 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17866 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17868 * xfns.c (x_set_foreground_color x_set_background_color)
17869 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17870 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17871 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17872 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17873 terminal that is being deleted.
17874 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17875 frame parameter, and make sure it overrides any user-supplied setting.
17876 (Fx_close_connection, Fx_synchronize): Unify argument names with
17877 the rest of the DEFUNs.
17879 * dispnew.c (Fsend_string_to_terminal): Update call to
17880 `get_tty_terminal'.
17881 (Fredraw_frame, Fsend_string_to_terminal)
17882 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17883 FRAME_TERMCAP_P and FRAME_TTY.
17884 (window_change_signal): Don't believe width/height values that are
17886 (Vinitial_window_system): Rename from Vwindow_system.
17887 (termscript, Wcm, rif): Delete.
17889 * termhooks.h (struct terminal): New struct containing the
17890 previously global text display hooks and new members NAME,
17891 DELETED and PARAM_ALIST.
17892 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17893 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17894 (FRAME_RIF): New macros.
17895 (get_terminal_param, get_device): New declarations.
17896 (termscript): Delete declaration.
17898 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17899 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17900 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17901 FRAME_FOREGROUND_PIXEL.
17902 (x_fully_uncatch_errors): Disable definition.
17903 (x_scroll_bar_expose): Fix reference to foreground pixel.
17904 (XTread_socket): Disable loop on all X displays.
17905 (x_delete_terminal): Don't set terminal->deleted and let
17906 delete_terminal delete the frames on the terminal.
17907 (x_delete_display): Doc update to reflect changes in
17909 (x_display_info) <terminal>: Move member earlier in the struct.
17910 (deleting_tty): Remove old variable.
17911 (Fsuspend_tty): Call clear_tty_hooks.
17912 (Fresume_tty, init_tty): Call set_tty_hooks.
17913 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17914 errors on X frames.
17915 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17916 (handle_one_xevent): Initialize `f' to NULL.
17917 (x_delete_terminal, x_create_terminal): New functions.
17918 (XTset_terminal_modes, XTreset_terminal_modes)
17919 (XTread_socket, x_connection_closed, x_term_init)
17920 (x_term_init, x_delete_display): Add terminal parameter.
17921 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17924 * frame.c: Include termchar.h.
17925 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17926 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17927 (Qdisplay_environment_variable): New vars.
17928 (Fframep): Deal with output_initial.
17929 (Fframe-live-p): Doc fix.
17930 (Fwindow-system): New function.
17931 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17932 (make_terminal_frame): Don't create frames on a terminal that is
17933 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17934 (store_frame_param): Check for found_for_frame before calling XFRAME.
17935 (Fmake_terminal_frame): Handle NULL tty names correctly.
17936 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17937 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17938 frames to refer to a deleted frame in their 'environment parameter.
17939 (Fframe_with_environment): New function.
17940 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17941 (get_future_frame_param): New function.
17942 (Fmake_terminal_frame): Use it.
17943 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17945 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17946 * sysdep.c (reset_sys_modes): Update for renames.
17948 * keyboard.c (tty_read_avail_input): New function.
17949 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17950 (syms_of_keyboard): Defsubr them.
17951 (Fset_input_meta_mode, Fset_quit_char): New functions.
17952 (Fset_input_mode): Split to above functions.
17953 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17954 parameter. Use it in call to `read_char'.
17955 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17956 Set wrong_kboard_jmpbuf correctly in recursive calls.
17957 Use current_kboard to access Vkeyboard_translate_table.
17958 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17959 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17960 Update longjmp invocations. Remember the original current_kboard,
17961 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17962 changes it. Comment out unnecessary calls to
17963 `record_single_kboard_state' and `any_kboard_state'.
17964 Update recursive calls.
17965 (wrong_kboard_jmpbuf): Remove global variable.
17966 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17967 Handle deleted interrupted_kboards correctly; that is a legal
17968 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17969 and read_char calls. Abort if interrupted_kboard died in read_char.
17970 (any_kboard_state, single_kboard_state)
17971 (push_frame_kboard): Remove function.
17972 (pop_kboard): Switch out of single_kboard mode if the kboard has
17973 been deleted. Remove unused variable. Help debugging by not
17974 changing current_kboard unnecessarily. Set current_kboard to the
17975 kboard of the selected frame when the stored kboard object has
17976 been deleted before pop_kboard.
17977 (temporarily_switch_to_single_kboard): Change first parameter to a
17978 frame pointer. Throw an error when caller wants to change kboards
17979 while in single_kboard mode. Don't push_kboard if we weren't in
17980 single kboard state. Don't pop_kboard if we popped into any
17982 (restore_kboard_configuration): Abort if pop_kboard changed the
17983 kboard in single_kboard mode. Call pop_kboard only after setting
17984 up single_kboard mode.
17985 (Frecursive_edit): Switch to single_kboard mode only in nested
17987 (cmd_error, command_loop, command_loop_1, timer_check):
17988 Comment out unnecessary call to `any_kboard_state' and
17989 `record_single_kboard_state'.
17990 (delete_kboard): Exit single_kboard mode if we have just deleted
17991 that kboard. Use FRAME_KBOARD.
17992 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17993 `fatal_error_signal'.
17994 (record_single_kboard_state): Don't push_kboard if we weren't in
17995 single kboard state. Don't pop_kboard if we popped into any
17997 (push_frame_kboard): Rename to push_kboard.
17998 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17999 (read_avail_input): Read input from all terminals.
18000 (mark_kboards): Also mark Vkeyboard_translate_table.
18001 (kbd_buffer_store_event_hold): Simplify condition.
18002 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18003 (Vkeyboard_translate_table): Move to struct kboard.
18004 (init_kboard): Initialize Vkeyboard_translate_table.
18005 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18006 Vkeyboard_translate_table. Update doc strings. Update docs of
18007 local-function-key-map and function-key-map.
18009 * terminal.c: New file.
18011 * term.c: Include errno.h.
18012 (Vring_bell_function, device_list, initial_device)
18013 (next_device_id, ring_bell, update_begin, update_end)
18014 (set_terminal_window, cursor_to, raw_cursor_to)
18015 (clear_to_end, clear_frame, clear_end_of_line)
18016 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18017 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18018 (syms_of_term): Move their initialization to terminal.c.
18019 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18020 (Ftty_display_color_cells)
18021 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18022 (clear_tty_hooks, set_tty_hooks)
18023 (init_tty, maybe_fatal): New functions.
18024 (Ftty_type): Return nil if terminal is not on a tty instead of
18025 throwing an error. Doc update.
18026 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18027 Doc update. Initialize new subrs and variables.
18028 (delete_tty): Use terminal->deleted.
18029 (tty_set_terminal_modes): Rename from set_terminal_modes.
18030 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18031 (set_scroll_region): Rename to `tty_set_scroll_region'.
18032 (turn_on_insert): Rename to `tty_turn_on_insert'.
18033 (turn_off_insert): Rename to `tty_turn_off_insert'.
18034 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18035 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18036 (toggle_highligh): Rename to `tty_toggle_highlight'.
18037 (background_highlight): Rename to `tty_background_highlight'.
18038 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18039 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18040 (tty_set_scroll_region, tty_background_highlight)
18041 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18042 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18043 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18044 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18045 Add static modifier.
18046 (tty_reset_terminal_modes, tty_set_terminal_window)
18047 (tty_set_scroll_region, tty_background_highlight)
18048 (tty_highlight_if_desired, tty_cursor_to)
18049 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18050 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18051 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18054 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18056 * keyboard.c: Qrtl is new.
18057 (parse_tool_bar_item): Handle :rtl keyword.
18058 (syms_of_keyboard): Intern :rtl keyword.
18060 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18062 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18063 so no Lisp code is executed.
18064 (file_for_image, find_rtl_image): New functions.
18065 (xg_get_image_for_pixmap): Use file_for_image.
18066 (update_frame_tool_bar): If direction is RTL, use RTL image if
18067 defined. Use Gtk stock images if defined.
18069 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18071 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18072 for nonexistent or zero-width glyph in composition glyph.
18074 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18076 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18078 * xdisp.c (Finvisible_p): New function.
18079 (syms_of_xdisp): defsubr it.
18081 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
18083 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18086 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18088 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18090 2007-08-24 Martin Rudalics <rudalics@gmx.at>
18092 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18093 whether decoding has modified buffer contents.
18095 2007-08-24 Jason Rumney <jasonr@gnu.org>
18097 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18098 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18099 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18100 (init_svg_functions) [HAVE_NTGUI]: New function.
18101 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18102 (svg_load_image): Use them.
18103 (svg_load_image) [HAVE_NTGUI]: Implement background.
18105 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18107 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18108 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18109 (LIBX): Remove @RSVG_LIBS@.
18110 (LIBES): Add $(RSVG_LIBS).
18112 * image.c (svg_load_image): Blend with specified background if exists.
18113 Use IMAGE_BACKGROUND. Add Mac OS Support.
18115 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18116 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18118 [MAC_OSX] (socket_callback): Do nothing.
18119 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18121 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18123 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18125 2007-08-22 Glenn Morris <rgm@gnu.org>
18127 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18129 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18131 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18133 * image.c: Add support for SVG images. Some additional comments
18134 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18135 (svg_image_p): New function to test for SVG image.
18136 (svg_load): New function to load SVG image.
18137 (svg_load_image): New function, helper for svg_load.
18138 (Qsvg): New Lisp_object.
18139 (svg_keyword_index): New enum.
18140 (svg_format): New static `image_keyword' struct.
18141 (svg_type): New static `image_type' struct.
18142 (librsvg/rsvg.h): Include it.
18144 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18146 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18148 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18150 * lread.c (Qold_style_backquotes): New var.
18151 (syms_of_lread): Init and staticpro it.
18152 (load_warn_old_style_backquotes): New fun.
18153 (Fload): Use them to warn about old style backquotes.
18154 (end_of_file_error, Fload): Remove unused vars.
18156 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18158 * lread.c (Vold_style_backquotes): New var.
18159 (syms_of_lread): Init and export it to Elisp.
18160 (read1): Set it when we find an old-style (back)quote.
18162 2007-08-22 Jason Rumney <jasonr@gnu.org>
18164 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18166 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18168 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18170 2007-08-19 Richard Stallman <rms@gnu.org>
18172 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18174 2007-08-19 Andreas Schwab <schwab@suse.de>
18176 * alloc.c (pure): Round PURESIZE up.
18178 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18180 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18183 2007-08-16 Richard Stallman <rms@gnu.org>
18185 * eval.c (Fcommandp): Add parens to clarify.
18187 * minibuf.c (Fall_completions): Use enum for type of table.
18189 * emacs.c (USAGE2): Improve text.
18191 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18193 * term.c (tty_default_color_capabilities): Declare static
18194 variables in file scope, to avoid HPUX compiler problem.
18196 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18198 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18199 to gtk_toolbar_insert.
18201 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18203 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18205 * insdel.c (reset_var_on_error): New fun.
18206 (signal_before_change, signal_after_change):
18207 Use it to reset (after|before)-change-functions to nil in case of error.
18208 Bind inhibit-modification-hooks to t.
18209 Don't bind (after|before)-change-functions to nil while they run.
18211 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18213 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18214 filling pixmap with stippled background.
18216 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18218 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18219 Don't use invisible frame as parent window for repositioning.
18221 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18223 * print.c (new_backquote_output): Rename from old_backquote_output.
18224 (print): Inverse its logic (according to its name) so as to match the
18225 behavior of new_backquote_flag in lread.c.
18227 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18229 * gmalloc.c (posix_memalign): New function.
18231 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18232 ActivateControl/DeactivateControl here.
18233 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18234 frame-notice-user-settings is non-nil.
18235 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18236 for kEventParamFMFontStyle.
18237 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18238 mac_pass_command_to_system and mac_pass_control_to_system here.
18239 (XTread_socket): Call ActivateControl/DeactivateControl here.
18240 (XTread_socket) [TARGET_API_MAC_CARBON]:
18241 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18242 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18243 for window repositioning.
18245 2007-08-08 Glenn Morris <rgm@gnu.org>
18247 * Replace `iff' in doc-strings and comments.
18249 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
18251 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18253 2007-08-07 Martin Rudalics <rudalics@gmx.at>
18255 * fileio.c (Finsert_file_contents): Run format-decode and
18256 after_insert_file_functions on entire buffer when REPLACE is
18257 non-nil and inhibit modification_hooks and point_motion_hooks.
18258 For consistency, run after_insert_file_functions iff something
18259 got inserted. Move signal_after_change and update_compositions
18260 after code running after_insert_file_functions. Make sure that
18261 undo_list doesn't record intermediate steps of the decoding process.
18263 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18266 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18267 Call malloc_enable_thread on interactive startup.
18269 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18270 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18271 [USE_PTHREAD]: Conditionalize with it.
18272 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18273 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18276 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
18278 * xdisp.c (redisplay_window): When restoring original buffer
18279 position, make sure it is still valid.
18281 * image.c (png_load): Ignore png-supplied background color.
18283 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18285 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18286 Use kCFAbsoluteTimeIntervalSince1970.
18288 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18290 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18291 event loop should be quit.
18292 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18293 Quit dialog event loop if quit_dialog_event_loop is set.
18295 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18296 (Selection): New typedef. Use instead of ScrapRef.
18297 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18298 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18299 (mac_clear_selection): Rename from clear_scrap.
18300 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18301 scrap_has_target_type. All uses changed.
18302 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18303 (mac_selection_has_target_p): New functions.
18304 (mac_put_selection_value): Rename from put_scrap_string.
18305 (mac_get_selection_value): Rename from get_scrap_string.
18306 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18307 (put_scrap_private_timestamp, scrap_has_target_type)
18308 (get_scrap_private_timestamp): Remove functions.
18309 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18310 (x_own_selection, x_get_local_selection):
18311 Use mac_valid_selection_value_p.
18312 (x_own_selection): Don't use put_scrap_private_timestamp.
18313 Record OWNERSHIP-INFO into Vselection_alist instead.
18314 (x_get_local_selection): Don't check type if request is local.
18315 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18316 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18318 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18320 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18321 add comment explaining why.
18323 2007-08-03 Richard Stallman <rms@gnu.org>
18325 * fileio.c (Fvisited_file_modtime): Use make_time.
18327 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18329 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18332 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18334 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18336 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18338 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18340 2007-07-30 Richard Stallman <rms@gnu.org>
18342 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18344 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18346 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18348 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
18350 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18351 remote default-directory.
18353 * buffer.c (mode-line-format): Update doc string.
18355 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18357 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18359 (x_scroll_bar_create): Set bar->fringe_extended_p.
18360 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18361 on frame edge. Check fringe background extension. Don't clear
18362 extended fringe background area.
18364 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18365 (w32_fill_area): Enclose multiple statements with do ... while (0).
18367 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18368 Extend fringe background to scroll bar gap.
18369 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18370 Set bar->fringe_extended_p.
18371 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18372 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18373 background extension. Don't clear extended fringe background area.
18375 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18376 New member fringe_extended_p.
18378 2007-07-25 Glenn Morris <rgm@gnu.org>
18380 * Relicense all FSF files to GPLv3 or later.
18382 * COPYING: Switch to GPLv3.
18384 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18386 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18388 * data.c (Finteractive_form): Check for the presence of an
18389 `interactive-form' symbol property more thoroughly.
18391 * data.c (Finteractive_form): Use an `interactive-form' property if
18392 present, analogous to the function-documentation property.
18394 2007-07-24 Jason Rumney <jasonr@gnu.org>
18396 * w32fns.c (x_real_positions): Get real position from OS instead of
18399 2007-07-23 Jason Rumney <jasonr@gnu.org>
18401 * filelock.c (current_lock_owner): Allow for @ sign in username.
18403 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
18405 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18406 remote default-directory.
18408 * buffer.c (mode-line-format): Describe above case in doc string.
18410 2007-07-20 Eli Zaretskii <eliz@gnu.org>
18412 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18413 Define if not defined.
18415 2007-07-18 Jason Rumney <jasonr@gnu.org>
18417 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18419 2007-07-18 Richard Stallman <rms@gnu.org>
18421 * data.c (Fsetq_default): Doc fix.
18423 * eval.c (Fsetq): Doc fix.
18425 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
18427 * coding.c (Ffind_operation_coding_system):
18428 * eval.c (For, Fand): Doc fixes.
18429 Reported by Johan Bockgård.
18431 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18433 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18435 * xterm.h: Declare x_ewmh_activate_frame.
18437 * xterm.c (x_ewmh_activate_frame): New function.
18438 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18440 2007-07-17 Martin Rudalics <rudalics@gmx.at>
18442 * window.c (Fdisplay_buffer): If largest or LRU window is the
18443 only window, split it even if it is not eligible for splitting.
18444 This restores the original behavior broken by the 2007-07-15
18447 2007-07-17 Glenn Morris <rgm@gnu.org>
18449 * abbrev.c (abbrev_check_chars): New function.
18450 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18451 Call abbrev_check_chars to check abbrev characters are word
18452 constituents. Doc fix.
18454 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18456 * process.c (Fstart_process, Fmake_network_process)
18457 (read_process_output): Fix up last changes.
18459 2007-07-16 Eli Zaretskii <eliz@gnu.org>
18461 * makefile.w32-in (clean): Don't delete *~.
18463 2007-07-16 Andreas Schwab <schwab@suse.de>
18465 * window.c (Fdisplay_buffer): Use NILP.
18466 (Fset_window_scroll_bars): Likewise.
18468 2007-07-15 Martin Rudalics <rudalics@gmx.at>
18470 * window.c (window_min_size_2): New function.
18471 (window_min_size_1, size_window, Fdisplay_buffer)
18472 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18473 windows without mode- or header-lines when window-min-height is
18475 (size_window): Reset nodelete_p after testing it, following an
18476 earlier note by Kim F. Storm.
18477 (display_buffer): Do not set split_height_threshold to twice the
18478 value of window_min_height to avoid changing the value of a
18479 customizable variable. Rather explicitly check whether the
18480 height of the window that shall be splitted is at least as large
18481 as split_height_threshold.
18482 (Fwindow_full_width_p): New defun.
18483 (syms_of_window): Defsubr it.
18485 * window.h: Add EXFUN for Fwindow_full_width_p.
18487 2007-07-14 Jason Rumney <jasonr@gnu.org>
18489 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18491 2007-07-14 Richard Stallman <rms@gnu.org>
18493 * eval.c (maybe_call_debugger): New function.
18494 (find_handler_clause): Use maybe_call_debugger.
18495 Call it when the handler says `debug'.
18496 Eliminate DEBUGGER_VALUE_PTR.
18497 (Fsignal): Eliminate debugger_value.
18498 (Qdebug): New variable.
18499 (syms_of_eval): Initialize it.
18501 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
18504 * keyboard.c (Ftrack_mouse):
18505 * print.c (Fwith_output_to_temp_buffer):
18506 * window.c (Fsave_window_excursion): Doc fix.
18508 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18510 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18512 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18514 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18515 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18516 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18517 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18518 Remove unused encoding_carryover.
18519 * process.c: Adjust all functions accordingly.
18521 2007-07-12 Richard Stallman <rms@gnu.org>
18523 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18525 2007-07-11 Jason Rumney <jasonr@gnu.org>
18527 * makefile.w32-in (LIBS): Include OLE32.
18529 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18530 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18532 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18534 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18535 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18536 from a Lisp_Object into a bare pointer.
18537 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18538 Adjust the code correspondingly.
18540 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18542 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18543 (term_show_mouse_face): Remove unused var `j'.
18544 (handle_one_term_event): Remove unused vars `i' and `j'.
18545 Don't cast return value of ttyname since it's not necessary.
18547 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18549 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18550 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18552 * fns.c (map_char_table): Use an array of int for `indices' rather than
18553 an array of Lisp_Objects (which are only ever integers anyway).
18554 (Fmap_char_table): Update caller.
18555 * lisp.h: Update prototype.
18556 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18557 * fontset.c (Ffontset_info):
18558 * casetab.c (set_case_table): Update callers.
18560 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18562 * keymap.c (struct accessible_keymaps_data)
18563 (struct where_is_internal_data): New structures.
18564 (accessible_keymaps_1, where_is_internal_1): Use them to change
18565 interface to adhere to the one used by map_keymap.
18566 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18567 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18569 * keymap.h (map_keymap_function_t): More informative prototype.
18571 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18573 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18574 (looking_at_1): Don't change search_regs and last_thing_searched
18575 if `inhibit-changing-match-data' is non-nil.
18576 (string_match_1, search_buffer, set_search_regs): Likewise.
18577 (syms_of_search): Add Lisp level definition for
18578 `inhibit-changing-match-data' and set it to nil.
18579 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18580 start and end of the match, instead of using values in search_regs.
18582 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18584 * minibuf.c (Fcompleting_read): New value `confirm-only'
18585 for `require-match'.
18587 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18589 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18590 part of the 2007-06-27 change to syms_of_fileio.
18592 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18594 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18595 Check WINDOWP before using XWINDOW. Consolidate return statements.
18597 2007-06-27 Richard Stallman <rms@gnu.org>
18599 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18601 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
18603 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18605 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18607 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18608 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18609 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18610 (_free_internal, memalign): Use them.
18611 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18612 Initialize to PTHREAD_MUTEX_INITIALIZER.
18613 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18614 (morecore_nolock): Rename from morecore. All uses changed.
18615 Use only nolock versions of internal allocation functions.
18616 (_malloc_internal_nolock, _realloc_internal_nolock)
18617 (_free_internal_nolock): New functions created from
18618 _malloc_internal, _realloc_internal, and _free_internal.
18619 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18620 Copy hook value to automatic variable before its use.
18621 (memalign): Copy hook value to automatic variable before its use.
18623 2007-06-26 Kenichi Handa <handa@m17n.org>
18625 * coding.c (Ffind_operation_coding_system): Docstring improved.
18626 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18628 2007-06-25 David Kastrup <dak@gnu.org>
18630 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18631 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18632 cater for additional parameter.
18634 * keymap.h: Adjust number of parameters to `current-active-maps'.
18636 * doc.c (Fsubstitute_command_keys): Adjust call of
18637 `current-active-maps'.
18639 2007-06-25 David Kastrup <dak@gnu.org>
18641 * callint.c (Fcall_interactively): Make the parsing of interactive
18642 specs somewhat more readable.
18644 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18646 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18647 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18648 if extended background has already been filled.
18650 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18652 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18653 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18655 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18656 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18657 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18658 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18659 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18660 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18661 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18662 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18663 Run timers during dialog popup.
18664 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18666 2007-06-21 Jason Rumney <jasonr@gnu.org>
18668 * image.c (convert_mono_to_color_image): Swap fore and background.
18670 2007-06-20 Jason Rumney <jasonr@gnu.org>
18672 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18673 (w32_free_bdf_font): Unmap memory not handle.
18675 2007-06-20 Sam Steingold <sds@gnu.org>
18677 * gmalloc.c (__morecore): Fix the declaration to comply with the
18680 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
18682 * w32term.c (w32_delete_display): Remove leftover declaration.
18683 (w32_define_cursor, w32_initialize): Make static.
18685 * w32.c (_wsa_errlist): Fix typo in error message.
18686 (init_environment): Ignore any environment variable from the
18687 registry having a null value.
18689 2007-06-20 Glenn Morris <rgm@gnu.org>
18691 * Makefile.in (LIBGIF): Default to -lgif.
18693 2007-06-17 Jason Rumney <jasonr@gnu.org>
18695 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18698 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
18700 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18701 Fix typo in docstring.
18703 2007-06-16 Eli Zaretskii <eliz@gnu.org>
18705 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18706 and their keybindings.
18708 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
18710 * composite.c (update_compositions): Fix last fix.
18712 2007-06-14 Jason Rumney <jasonr@gnu.org>
18714 * w32.c (get_process_times_fn): New function pointer.
18715 (globals_of_w32): Intialize it if present in kernel32.dll.
18716 (w32_get_internal_run_time): New function.
18718 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18720 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18722 * composite.c (update_compositions): Check the validness of
18725 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18727 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18728 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18730 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18731 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18733 * macgui.h (USE_MAC_TOOLBAR): New define.
18735 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18736 Return immediately unless popup is activated.
18738 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18739 background to scroll bar gap.
18740 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18741 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18742 scroll bars on frame edge. Check fringe background extension.
18743 Don't clear extended fringe background area.
18744 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18745 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18746 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18747 [USE_MAC_TOOLBAR]: New macros.
18748 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18749 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18750 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18751 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18752 [USE_MAC_TOOLBAR]: New functions.
18753 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18754 manually if previous repositioning has failed.
18755 (mac_handle_keyboard_event): Use precomputed event kind.
18756 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18757 as tool bar item click. Handle mouse movement over tool bar items.
18759 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18760 toolbar_win_gravity.
18761 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18762 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18765 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18766 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18768 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
18770 * image.c (search_image_cache): Remove unused variable.
18772 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
18774 * xfns.c, xmenu.c: Link to xaw3d if available.
18776 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18778 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18779 frame_foreground and frame_background.
18781 * image.c (lookup_image): Save frame foreground and background colors.
18782 (search_image_cache): Check if saved and current frame colors match.
18784 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18786 * regex.c (regex_compile): Remove the `regnum' counter.
18787 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18789 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18791 * term.c: Include intervals.h to declare Fget_text_property.
18793 2007-06-10 Jason Rumney <jasonr@gnu.org>
18795 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18797 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
18799 * callint.c (Fcall_interactively):
18800 * editfns.c (Fdelete_and_extract_region):
18801 * fileio.c (Fread_file_name):
18802 * fns.c (Fmapconcat):
18803 * keyboard.c (cmd_error_internal):
18804 * keymap.c (Fkey_description):
18806 * minibuf.c (read_minibuf):
18807 * search.c (wordify):
18808 * sunfns.c (sel_read):
18809 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18810 * xfns.c (x_default_scroll_bar_color_parameter):
18811 * xmenu.c (menu_help_callback):
18812 * xselect.c (Fx_get_atom_name):
18813 * xterm.c (x_term_init): Use empty_unibyte_string.
18815 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18817 * alloc.c (init_strings): Initialize canonical empty strings.
18818 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18819 canonical empty string when the requested size is 0.
18821 * emacs.c (empty_unibyte_string): Rename from empty_string.
18822 (empty_multibyte_string): New canonical empty string.
18823 (syms_of_emacs): Don't initialize empty_string.
18825 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18826 string, if appropriate.
18827 (empty_unibyte_string, empty_multibyte_string): New externs.
18828 (empty_string): Remove extern.
18830 * lread.c (syms_of_lread): Use empty_unibyte_string.
18832 2007-06-07 Jason Rumney <jasonr@gnu.org>
18834 * s/ms-w32.h: Don't define HAVE_TZNAME.
18836 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18838 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18840 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18842 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18843 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18845 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18846 Don't call next handler.
18847 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18848 Remove argument. Install handler to application.
18849 (set_frame_menubar): Don't change deep_p.
18850 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18851 FRAME_OUTER_TO_INNER_DIFF_Y.
18852 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18853 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18854 [HAVE_DIALOGS]: New macros.
18855 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18857 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18859 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18860 init_service_handler. All callers changed. Return OSStatus value.
18862 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18863 All callers changed so as not to call SetPortWindowPort.
18864 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18865 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18866 mac_draw_string_common.
18867 (mac_draw_image_string_qd): Likewise.
18868 (mac_draw_string_common): Use them. Add INLINE.
18869 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18870 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18872 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18873 and FRAME_OUTER_TO_INNER_DIFF_Y.
18874 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18875 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18876 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18877 repositioning window to mac_handle_window_event.
18878 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18879 saving window location to mac_handle_window_event
18880 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18881 (install_menu_target_item_handler): Remove argument in extern.
18882 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18883 Also accept command events.
18884 (do_keystroke): New function created from XTread_socket.
18885 (init_command_handler): Remove functions.
18886 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18887 and save window location by kEventWindowShowing and kEventWindowHiding
18888 handlers here. Don't call next handler for window state change and
18890 (mac_handle_application_event, mac_handle_keyboard_event)
18891 [TARGET_API_MAC_CARBON]: New functions.
18892 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18893 kEventWindowShowing and kEventWindowHiding events. Move installation
18894 of mouse, font, text input and menu target item handlers to
18895 install_application_handler.
18896 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18897 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18899 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18901 (XTread_socket) [TARGET_API_MAC_CARBON]:
18902 Consolidate SendEventToEventTarget calls.
18903 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18904 Move application activation handler to mac_handle_application_event.
18905 Move keyboard handler to mac_handle_keyboard_event.
18906 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18907 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18908 init_command_handler. Call install_application_handler.
18910 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18911 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18913 2007-06-07 Glenn Morris <rgm@gnu.org>
18915 * emacs.c (main): Use `emacs-copyright' in --version output.
18917 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
18919 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18921 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18923 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18925 * macgui.h: Replace WindowPtr with WindowRef.
18927 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18928 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18929 Replace ControlHandle with ControlRef.
18930 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18932 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18933 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18934 Replace ControlHandle with ControlRef.
18935 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18936 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18938 * macterm.h (struct scroll_bar): Rename member control_handle_low
18939 and control_handle_high to control_ref_low and control_ref_high.
18941 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18942 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18943 respectively. All uses changed.
18944 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18945 (install_window_handler, remove_window_handler): Replace WindowPtr
18946 with WindowRef in externs.
18948 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
18950 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18952 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
18954 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18956 * frame.c (Fmouse_position, Fmouse_pixel_position):
18957 Condition on HAVE_GPM too.
18959 * term.c (term_mouse_highlight): Remove unused variables.
18960 (Fterm_open_connection): Set gpm_zerobased to 1.
18961 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18962 Use zero based co-ordinates.
18963 (handle_one_term_event): Report a drag as mouse movement too.
18965 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18967 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
18969 * image.c (search_image_cache): New function. Require background
18970 color match if background color is unspecified in the image spec.
18971 (uncache_image, lookup_image): Use it.
18973 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
18975 * window.c (Fshrink_window): Reflow docstring.
18977 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
18979 * Version 22.1 released.
18981 2007-06-01 Richard Stallman <rms@gnu.org>
18983 * xfns.c (x_encode_text): Add GCPRO.
18985 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18987 * xfns.c (x_set_name_internal): Save encoded name before
18988 x_encode_text in case string data is relocated.
18990 2007-05-31 Richard Stallman <rms@gnu.org>
18992 * buffer.c (syms_of_buffer): Doc fix.
18994 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
18996 * sysdep.c (init_sys_modes): Add rather than replace with
18999 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19002 * termhooks.h (term_mouse_moveto): New extern.
19004 * term.c (mouse_face_window): Rename...
19005 (Qmouse_face_window): ...to this.
19006 (term_show_mouse_face, term_clear_mouse_face)
19007 (term_mouse_highlight): Use Qmouse_face_window.
19008 (term_mouse_moveto): New function.
19009 (term_mouse_position): Make it work.
19010 (syms_of_term): Uncomment assignment to mouse_position_hook.
19011 Staticpro Qmouse_face_window.
19013 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19015 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19016 around current_column call.
19018 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19020 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19021 * xdisp.c (next_element_from_buffer):
19022 * window.c (delete_window):
19023 * term.c (term_mouse_highlight):
19024 * msdos.c (getdefdir):
19025 * macterm.c (mac_create_bitmap_from_bitmap_data)
19026 (init_font_name_table):
19028 * data.c (Fmake_local_variable):
19029 * ccl.c (ccl_driver): Likewise.
19031 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19033 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19034 Call mac_wakeup_from_rne on window size change.
19036 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
19038 * image.c (uncache_image): Fix typo.
19040 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19042 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19044 2007-05-22 Richard Stallman <rms@gnu.org>
19046 * xterm.c (x_connection_closed): Remove NO_RETURN.
19048 2007-05-22 Martin Rudalics <rudalics@gmx.at>
19050 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19052 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
19054 * image.c (uncache_image): New function.
19055 (Fimage_refresh): New function.
19057 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19059 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19061 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19063 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19064 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19066 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19068 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19069 conditional on [HAVE_GPM_H].
19071 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19073 * syntax.c (skip_chars): Update syntax-table only after we checked that
19074 the new location is valid.
19076 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19078 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19079 mac_get_window_bounds.
19081 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
19083 * Makefile.in (LIBGPM): Allow it to be set from configure.
19084 If set then link Emacs with it.
19086 * config.in: Regenerate.
19088 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19091 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19093 (handle_one_term_event, term_gpm): New externs.
19095 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19096 and allow it to be interrupted by SIGIO.
19098 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19099 (wait_reading_process_output): Wait on gpm_fd too.
19100 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19101 (add_gpm_wait_descriptor_called_flag): New variable.
19102 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19104 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19105 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19106 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19107 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19108 (make_lispy_event): Add case GPM_CLICK_EVENT.
19109 (read_avail_input): Handle mouse input.
19111 * term.c (write_glyphs_with_face): New function.
19112 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19113 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19114 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19115 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19116 (last_mouse_x, last_mouse_y): New variables.
19117 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19118 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19119 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19120 (Fterm_close_connection): New functions.
19121 (term_init): Initialise mouse_face_window.
19123 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
19125 * xdisp.c (redisplay_window): If first window line is a
19126 continuation line, recompute the new window start instead of
19129 2007-05-18 Glenn Morris <rgm@gnu.org>
19131 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19132 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19134 2007-05-17 Glenn Morris <rgm@gnu.org>
19136 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19138 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19140 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19141 dead key repeat and up events.
19143 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
19145 * image.c (pbm_load): Check image size for monochrome pbm.
19147 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
19149 * xterm.c (XTread_socket): Revert last change.
19151 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
19153 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19155 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19157 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19159 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19162 2007-05-07 Andreas Schwab <schwab@suse.de>
19164 * keymap.c (Flookup_key): Fix typo in last change.
19166 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19168 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19169 mapping for unibyte strings.
19171 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19173 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19174 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19176 2007-04-29 Richard Stallman <rms@gnu.org>
19178 * insdel.c (replace_range): For undo, record insertion first.
19180 2007-04-29 Andreas Schwab <schwab@suse.de>
19182 * lisp.h (VECSIZE): Use OFFSETOF.
19184 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19186 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19189 2007-04-28 Richard Stallman <rms@gnu.org>
19191 * lread.c (read_escape): In a string, \s is always space.
19193 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19195 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19197 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19198 submenu for menu bar items.
19200 See ChangeLog.10 for earlier changes.
19202 ;; Local Variables:
19204 ;; add-log-time-zone-rule: t
19207 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
19209 This file is part of GNU Emacs.
19211 GNU Emacs is free software: you can redistribute it and/or modify
19212 it under the terms of the GNU General Public License as published by
19213 the Free Software Foundation, either version 3 of the License, or
19214 (at your option) any later version.
19216 GNU Emacs is distributed in the hope that it will be useful,
19217 but WITHOUT ANY WARRANTY; without even the implied warranty of
19218 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19219 GNU General Public License for more details.
19221 You should have received a copy of the GNU General Public License
19222 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19224 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40