1 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
6 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7 * syssignal.h: Remove code for Lynx, not supported anymore.
8 * vm-limit.c: Remove unused code the depends on emacs not being
9 defined and NO_LIM_DATA being defined.
10 * mem-limits.h: Remove dead code.
12 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
14 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
16 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
17 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
19 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
20 parameters, they are already absolute.
22 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
23 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
25 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
27 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
30 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
31 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
33 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
35 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
36 check default-frame-alist.
38 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
40 * process.c (create_process): Avoid using invalid file descriptors.
42 * callproc.c (child_setup): Avoid closing a file descriptor twice.
44 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
46 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
47 Improve documentation. Return font regardless of use_system_font.
48 (syms_of_xsettings): Improve documentation for font-use-system-font.
50 2009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
52 * xftfont.c (xftfont_open): Check font width one by one also when
55 * ftfont.c (ftfont_open): Ditto.
57 2010-06-30 Glenn Morris <rgm@gnu.org>
59 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
61 * Makefile.in (CANNOT_DUMP): Update for configure name change.
63 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
64 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
65 * s/darwin.h (SYSTEM_MALLOC):
66 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
68 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
70 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
71 (ns_get_screen): Don't assign integer to f.
72 (Fx_display_color_cells): Declarations before statements.
74 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
76 * xfns.c (x_default_font_parameter): Remove got_from_system
79 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
80 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
81 defines based on what configure finds.
83 * xterm.c (XTflash): Use gtk_widget_get_window.
84 (xg_scroll_callback): Use gtk_adjustment_get_upper and
85 gtk_adjustment_get_page_size.
86 (handle_one_xevent): Use gtk_widget_get_mapped.
87 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
90 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
92 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
93 HAVE_GTK_FILE_SELECTION_NEW.
95 * gtkutil.c (xg_display_open, xg_display_close): Remove
96 HAVE_GTK_MULTIDISPLAY, it is always defined.
97 (xg_display_open): Return type is void.
98 (gtk_widget_set_has_window)
99 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
100 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
101 (gtk_adjustment_set_page_increment)
102 (gtk_adjustment_get_step_increment): #define these if not found
104 (remove_submenu): New define based on Gtk+ version.
105 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
106 gtk_widget_get_window.
107 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
108 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
109 (create_dialog): Use gtk_dialog_get_action_area and
110 gtk_dialog_get_content_area.
111 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
112 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
113 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
114 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
115 g_object_ref and g_object_unref.
116 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
117 gtk_widget_get_sensitive.
118 (xg_update_submenu): Use remove_submenu.
119 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
120 properties instead to get old x and y position.
121 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
122 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
123 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
124 (xg_get_tool_bar_widgets): New function.
125 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
126 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
127 (toolbar_set_orientation): New #define based on if configure
128 finds gtk_orientable_set_orientation.
129 (xg_create_tool_bar): Call toolbar_set_orientation.
130 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
131 instead of gtk_box_pack_start_defaults.
133 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
135 * cmds.c (Fdelete_backward_char): Move into Lisp.
137 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
139 * s/freebsd.h (BSD4_2): Remove redundant definition.
140 bsd-common.h defines it already.
142 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
144 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
145 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
146 tool-bar-mode, which are now set using these X resources at
147 startup, to determine the defaults (Bug#2249).
149 * w32fns.c (Fx_create_frame):
150 * nsfns.m (Fx_create_frame): Likewise.
152 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
154 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
156 * gtkutil.c (xg_update_scrollbar_pos):
157 Avoid C99 mid-block variable declaration.
159 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
161 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
163 * gtkutil.h (xg_show_scroll_bar): Remove.
165 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
166 if height is less than scroll bar min size.
167 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
169 * xfns.c (x_default_font_parameter): Try to open font from system
170 before using it (bug#6478). Rename got_from_gconf to got_from_system.
172 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
174 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
176 2010-06-20 Eli Zaretskii <eliz@gnu.org>
178 * xdisp.c (try_scrolling): When scroll-conservatively is set to
179 most-positive-fixnum, be extra accurate when scrolling window
180 start, to avoid missing the cursor line.
182 2010-06-19 Eli Zaretskii <eliz@gnu.org>
184 * xdisp.c (try_scrolling): Compute the limit for searching point
185 in forward scroll from scroll_max, instead of an arbitrary limit
186 of 10 screen lines. See
187 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
189 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
192 2010-06-16 Glenn Morris <rgm@gnu.org>
194 * editfns.c (Fbyte_to_string): Pacify compiler.
196 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
198 * lread.c (read1): Phase out old-style backquotes a bit more.
200 2010-06-12 Eli Zaretskii <eliz@gnu.org>
202 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
205 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
207 * bidi.c (bidi_initialize): Remove explicit initialization of
208 bidi_type_table; include biditype.h instead. Don't support
209 entries whose second codepoint is zero. Initialize bidi_mirror_table.
210 (bidi_mirror_char): Use bidi_mirror_table.
212 * biditype.h: New file.
214 * bidimirror.h: New file.
216 * window.c (syms_of_window): Doc fix (bug#6409).
218 2010-06-12 Romain Francoise <romain@orebokech.com>
220 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
223 2010-06-10 Glenn Morris <rgm@gnu.org>
225 * editfns.c (Fbyte_to_string): Pacify compiler.
227 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
229 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
231 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
232 Check `object's type before accessing its guts.
234 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
236 * s/usg5-4.h: Fix previous change.
237 Suggested by Lawrence Mitchell <wence@gmx.li>
239 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
241 * minibuf.c (Fall_completions): Add more checks.
243 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
245 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
247 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
249 * lread.c (X_OK): Remove, unused.
251 * dispnew.c: Remove obsolete comment.
253 Remove INCLUDED_FCNTL.
254 * xterm.c (INCLUDED_FCNTL):
255 * callproc.c (INCLUDED_FCNTL):
256 * alloc.c (INCLUDED_FCNTL):
257 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
258 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
260 2010-06-07 Martin Rudalics <rudalics@gmx.at>
262 * window.c (Fselect_window): Move `record_buffer' up to the
263 beginning of this function, so the buffer gets recorded
264 even if the selected window does not change.
265 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
267 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
269 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
270 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
272 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
274 Remove BSTRING related code, all platforms define it.
275 * s/usg5-4.h (BSTRING): Remove definition.
276 * s/template.h (BSTRING):
277 * s/msdos.h (BSTRING):
278 * s/ms-w32.h (BSTRING):
279 * s/hpux10-20.h (BSTRING):
280 * s/gnu-linux.h (BSTRING):
281 * s/darwin.h (BSTRING):
282 * s/cygwin.h (BSTRING):
283 * s/bsd-common.h (BSTRING):
284 * s/aix4-2.h (BSTRING): Likewise.
285 * sysdep.c: Remove code depending on BSTRING not being defined.
287 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
289 Remove obsolete macro BASE_LEADING_CODE_P.
290 * character.h (BASE_LEADING_CODE_P): Remove.
291 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
292 * buffer.c (Fset_buffer_multibyte):
293 * indent.c (scan_for_column, compute_motion):
294 * insdel.c (count_combining_before, count_combining_after):
295 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
297 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
299 Turn `directory-sep-char' into a noop.
301 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
302 (DIRECTORY_SEP): Define unconditionally.
304 * s/ms-w32.h (DIRECTORY_SEP): Remove.
306 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
307 call dostounix_filename directly.
309 * fileio.c (CORRECT_DIR_SEPS): Remove.
310 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
311 (Fsubstitute_in_file_name): Use dostounix_filename instead.
312 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
313 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
315 * w32proc.c (CORRECT_DIR_SEPS): Remove.
316 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
318 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
320 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
323 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
325 * ccl.c (Fccl_program_p): Fix typo in docstring.
327 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
329 Move UNEXEC definition to autoconf.
330 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
331 * s/sol2-10.h (UNEXEC):
332 * s/irix6-5.h (UNEXEC):
333 * s/hpux10-20.h (UNEXEC):
334 * s/gnu-linux.h (UNEXEC):
335 * s/darwin.h (UNEXEC):
336 * s/cygwin.h (UNEXEC):
337 * s/bsd-common.h (UNEXEC):
338 * s/aix4-2.h (UNEXEC):
339 * m/alpha.h (UNEXEC): Likewise.
340 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
342 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
344 Remove obsolete pre-unicode2 macros.
345 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
346 * composite.c (composition_reseat_it):
348 * fns.c (Ffillarray):
349 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
350 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
352 2010-06-03 Juri Linkov <juri@jurta.org>
354 * buffer.c (Fother_buffer): Add CHECK_FRAME.
355 (Fswitch_to_buffer): Remove unused variable `err'.
357 2010-06-03 Glenn Morris <rgm@gnu.org>
359 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
361 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
362 now that AH_BOTTOM does it.
364 * m/hp800.h (HAVE_ALLOCA):
365 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
367 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
368 Remove NOT_C_CODE tests, it is always true now.
370 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
372 Fix config.h includes.
380 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
383 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
385 * s/sol2-6.h: Remove obsolete comments.
387 Remove unnecessary alloca.h includes.
388 * keymap.c: Do not include alloca.h, config.h does that.
389 * sysdep.c: Likewise. Do not define fwrite, not used.
391 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
393 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
394 the HAVE_TERMIO where it belongs (bug#6149).
396 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
398 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
401 2010-05-30 Eli Zaretskii <eliz@gnu.org>
403 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
404 state is always cached (bug#6306).
406 2010-05-29 Eli Zaretskii <eliz@gnu.org>
408 Fix cursor motion in bidi-reordered continued lines.
409 * xdisp.c (try_cursor_movement): Backup to non-continuation line
410 only after finding point's row. Fix the logic. Rewrite the loop
411 over continuation lines in bidi-reordered buffers. Return
412 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
413 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
415 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
417 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
419 2010-05-28 Kenichi Handa <handa@m17n.org>
421 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
422 Don't sheck SPEC if it is nil.
423 (font_list_entities): Call font_delete_unmatched if
424 Vface_ignored_fonts is non-nil. (Bug#6287)
426 2010-05-28 Glenn Morris <rgm@gnu.org>
428 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
430 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
432 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
434 (internal_delete_file, Frename_file): Callers changed.
435 (delete_by_moving_to_trash): Doc fix.
436 (Fdelete_directory_internal): Don't move to trash.
438 * callproc.c (delete_temp_file):
439 * buffer.c (Fkill_buffer): Callers changed.
441 * lisp.h: Update prototype.
443 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
445 * xdisp.c (redisplay_window): After redisplay, check if point is
446 still valid before setting it (Bug#6177).
448 2010-05-27 Glenn Morris <rgm@gnu.org>
450 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
451 Convert comments to Makefile format.
453 * Makefile.in (bootstrap-clean): No more Makefile.c.
455 2010-05-26 Glenn Morris <rgm@gnu.org>
457 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
458 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
460 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
462 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
464 2010-05-26 Kenichi Handa <handa@m17n.org>
466 * composite.c (composition_compute_stop_pos): Fix condition for
469 2010-05-25 Glenn Morris <rgm@gnu.org>
471 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
472 Move before TEMACS_LDFLAGS.
473 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
474 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
476 * Makefile.in (NOT_C_CODE): No longer define.
477 (config.h): No longer include.
479 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
480 variables it may reference.
482 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
483 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
485 2010-05-25 Kenichi Handa <handa@m17n.org>
487 * dispextern.h (struct composition_it): New members rule_idx and
490 * xdisp.c (set_iterator_to_next): While scanning backward, assume
491 that the character positions of IT point the last character of the
492 current grapheme cluster.
493 (next_element_from_composition): Don't change character positions
495 (append_composite_glyph): Set glyph->charpos to
498 * composite.c (autocmp_chars): Change the first argument to RULE,
499 and try composition with RULE only.
500 (composition_compute_stop_pos): Record the index number of the
501 composition rule in CMP_IT->rule_idx.
502 (composition_reseat_it): Call autocmp_chars repeatedly until the
503 correct rule of the composition is found.
504 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
505 is at the last character of the current grapheme cluster when
506 CMP_IT->reversed_p is nonzero.
508 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
510 * editfns.c (Fbyte_to_string): New function.
512 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
514 * process.c (Fmake_network_process): Set :host to nil if it's not used.
515 Suggested by Masatake YAMATO <yamato@redhat.com>.
517 2010-05-23 Eli Zaretskii <eliz@gnu.org>
519 * dispextern.h (init_iterator): Sync prototype with changed definition.
521 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
523 * s/netbsd.h: If terminfo is found, use it in preference to
524 termcap. (Bug#6190) [Backport from trunk]
526 2010-05-19 Eli Zaretskii <eliz@gnu.org>
528 Redesign and reimplement bidi-aware edge positions of glyph rows.
530 * dispextern.h (struct glyph_row): New members minpos and maxpos.
531 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
532 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
533 and maxpos members instead of start.pos and end.pos, respectively.
535 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
536 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
537 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
538 (try_window_reusing_current_matrix, try_window_id):
539 Use ROW->minpos rather than ROW->start.pos.
540 (init_from_display_pos, init_iterator): Use EMACS_INT for
541 character and byte positions.
542 (find_row_edges): Rename from find_row_end. Accept additional
543 arguments for minimum and maximum buffer positions seen by
544 display_line for this row. Don't use iterator to find the
545 position following the maximum one; instead, increment the
546 position found by display_line directly. Fix logic; eol_pos
547 should be tested before the rest. Handle the case of characters
548 delivered from display vector (bug#6036). Fix tests related to
549 it->method. Handle the truncated_on_right_p rows.
550 (RECORD_MAX_MIN_POS): New macro.
551 (display_line): Use it to record the minimum and maximum buffer
552 positions for glyphs in the row being assembled. Record the
553 position of the newline that terminates the line. If word wrap is
554 in effect, restore minimum and maximum positions seen up to the
555 wrap point, when iterator returns to it.
556 (try_window_reusing_current_matrix): Give up if in bidi-reordered
557 row and cursor not already at point. Restore original pre-bidi
558 code for unidirectional buffers.
560 * dispnew.c (increment_row_positions, check_matrix_invariants):
561 Increment and check row->start.pos and row->end.pos, in addition
562 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
564 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
565 Display truncated_on_left_p and truncated_on_right_p flags.
567 (pmtxrows): Display the ordinal number of each row. Don't display
568 rows beyond the last one.
570 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
571 it is not copied by bidi_copy_it.
573 2010-05-22 Eli Zaretskii <eliz@gnu.org>
575 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
578 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
580 * image.c (Fimage_flush): Rename from image-refresh.
582 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
584 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
587 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
588 (clear_image_cache): If the number of cached images is unusually
589 large, decrease the cache eviction delay (Bug#6230).
591 2010-05-21 Glenn Morris <rgm@gnu.org>
593 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
594 Move these rules to ns.mk.
597 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
599 * Makefile.in (CANNOT_DUMP): New, set by configure.
600 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
602 2010-05-20 Juri Linkov <juri@jurta.org>
604 * fileio.c (Fdelete_file): Change interative spec to use
605 `read-file-name' like in `find-file-read-args' where the default
606 value is `default-directory' instead of `buffer-file-name'.
607 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
609 2010-05-20 Kevin Ryde <user42@zip.com.au>
611 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
612 (Voverriding_terminal_local_map, Vsystem_key_alist)
613 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
615 2010-05-20 Glenn Morris <rgm@gnu.org>
617 * Makefile.in (DEPDIR): New constant.
618 (DEPFLAGS): Set with configure, not cpp.
619 (MKDEPDIR): New, set by configure.
620 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
621 (clean): Use $DEPDIR.
622 (deps_frag): Include from configure.
623 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
624 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
626 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
627 reallocation of the cache. (Bug#6210)
629 2010-05-19 Glenn Morris <rgm@gnu.org>
631 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
633 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
634 (GNULIB_VAR): Remove.
635 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
637 * m/ibms390x.h (LINKER):
638 * m/macppc.h (LINKER) [GNU_LINUX]:
639 * s/aix4-2.h (ORDINARY_LINK):
640 * s/cygwin.h (LINKER):
641 * s/darwin.h (ORDINARY_LINK):
642 * s/gnu.h (ORDINARY_LINK):
643 * s/netbsd.h (LINKER):
644 * s/usg5-4.h (ORDINARY_LINK):
647 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
649 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
651 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
652 prevent stack overflow if number of arguments is too large
655 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
657 * charset.c (load_charset_map_from_file): Don't call close after fclose.
659 2010-05-18 Glenn Morris <rgm@gnu.org>
661 * s/gnu-linux.h: Combine two conditionals.
663 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
666 * Makefile.in (RALLOC_OBJ): New, set by configure.
667 (rallocobj): Replace with the previous variable.
668 (otherobj): Use $RALLOC_OBJ.
670 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
671 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
673 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
674 (gmallocobj, vmlimitobj): Replace with previous two variables.
675 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
677 2010-05-17 Glenn Morris <rgm@gnu.org>
679 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
680 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
682 2010-05-16 Glenn Morris <rgm@gnu.org>
684 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
686 * Makefile.in (clean): Get rid of HAVE_NS conditional.
688 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
691 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
692 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
694 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
695 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
696 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
697 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
698 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
700 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
701 Remove ${STARTFLAGS}, nothing ever sets it.
703 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
705 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
707 2010-05-16 Glenn Morris <rgm@gnu.org>
709 * Makefile.in (LIBX_BASE): Always define.
711 * Makefile.in (LIBX_OTHER): Move out of cpp section.
713 * Makefile.in (LIBXT): Always define.
715 2010-05-15 Glenn Morris <rgm@gnu.org>
717 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
719 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
720 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
722 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
724 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
725 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
727 * emacs.c (main): Initialize initial-environment and
728 process-environment before generating from env, not after.
730 Handle --version reasonably in CANNOT_DUMP configuration.
731 * emacs.c (emacs_version, emacs_copyright): New string variables.
732 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
733 (syms_of_emacs): Defvar them, and initialize them from the C
735 (main): If initialization hasn't been done, print initial version
736 info from the C strings, instead of starting an interactive session.
738 2010-05-15 Eli Zaretskii <eliz@gnu.org>
740 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
741 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
742 (bidi_paragraph_init): Remove redundant assertion that we are at
743 the beginning of a line after call to bidi_find_paragraph_start.
745 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
746 (syms_of_xdisp): Defsubr it.
748 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
750 * Makefile.in: Fix MSDOS-related comments.
752 2010-05-15 Glenn Morris <rgm@gnu.org>
754 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
755 (really-lwlib, really-oldXMenu): Always define.
756 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
758 * Makefile.in: Simplify cpp conditional.
760 * Makefile.in (${ns_appdir}): Simplify using umask.
762 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
764 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
766 * eval.c (specbind): Remove left-over duplicate test.
767 Disallow let-binding frame-local vars. Add comment.
769 2010-05-14 Eli Zaretskii <eliz@gnu.org>
771 Make the cache of bidi iterator states dynamically allocated.
772 * bidi.c (bidi_cache_shrink): New function.
773 (bidi_init_it): Call it.
774 (bidi_cache_iterator_state): Enlarge the cache if needed.
776 * bidi.c (bidi_move_to_visually_next): Rename from
777 bidi_get_next_char_visually. All callers changed.
779 2010-05-14 Kenichi Handa <handa@m17n.org>
781 * dispextern.h (struct composition_it): New member reversed_p.
783 * composite.c (composition_compute_stop_pos): Search backward if
785 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
786 Set CMP_IT->reversed_p.
787 (composition_update_it): Pay attention to CMP_IT->reversed_p.
789 * xdisp.c (set_iterator_to_next):
790 Call composition_compute_stop_pos with negative ENDPOS if we are
791 scanning backward. Call composition_compute_stop_pos if scan
792 direction is changed.
793 (next_element_from_buffer): Call composition_compute_stop_pos with
794 negative ENDPOS if we are scanning backward.
795 (next_element_from_composition): Pay attention to
796 IT->cmp_it.reversed_p.
798 2010-05-14 Kenichi Handa <handa@m17n.org>
800 * font.c (font_range): Return the range for the font found at first.
802 2010-05-14 Glenn Morris <rgm@gnu.org>
804 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
806 * Makefile.in (mktime, X11, register): Move undefs to configure.
808 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
809 (MSDOS_X_OBJ): New variable.
810 (MSDOS_SUPPORT_REAL): New constant.
811 (MSDOS_SUPPORT): Set as a variable, not with cpp.
812 (obj): Use MSDOS_X_OBJ.
813 (lisp): Use MSDOS_SUPPORT as a variable.
815 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
816 (GPM_MOUSE_SUPPORT): Now it's a constant.
817 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
820 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
821 (ns_appresdir): Remove, unused.
823 * Makefile.in (SHELL): Move outside cpp section.
825 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
827 2010-05-13 Glenn Morris <rgm@gnu.org>
829 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
830 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
832 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
833 HAVE_WINDOW_SYSTEM must be too.
835 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
836 (lisp): Remove WINNT_SUPPORT.
838 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
839 Let configure set these variables (to empty) in this case as well.
841 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
842 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
844 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
845 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
846 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
847 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
848 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
849 the values output by configure.
850 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
852 2010-05-12 Glenn Morris <rgm@gnu.org>
854 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
855 (LINKER_WAS_SPECIFIED): Remove.
857 * Makefile.in (LIB_GCC): Set using configure, not cpp.
858 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
859 * m/arm.h (LIB_GCC) [GNU_LINUX]:
860 * s/cygwin.h (LIB_GCC):
861 * s/freebsd.h (LIB_GCC):
862 * s/gnu-linux.h (LIB_GCC):
863 * s/msdos.h (LIB_GCC):
864 * s/netbsd.h (LIB_GCC):
867 2010-05-11 Karel Klic <kklic@redhat.com>
869 * ftfont.c: Fix incorrect parentheses of #if condition for
870 definining M17N_FLT_USE_NEW_FEATURE.
872 2010-05-11 Glenn Morris <rgm@gnu.org>
874 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
875 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
877 2010-05-10 Eli Zaretskii <eliz@gnu.org>
879 * xdisp.c (init_iterator): Don't turn on bidi reordering in
881 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
883 2010-05-10 Glenn Morris <rgm@gnu.org>
885 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
886 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
887 (LIBES): Use LIBS_SYSTEM as a variable.
888 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
889 * s/aix4-2.h (LIBS_SYSTEM):
890 * s/freebsd.h (LIBS_SYSTEM):
891 * s/hpux10-20.h (LIBS_SYSTEM):
892 * s/sol2-6.h (LIBS_SYSTEM):
893 * s/unixware.h (LIBS_SYSTEM):
896 * s/aix4-2.h (MAIL_USE_LOCKF):
897 * s/bsd-common.h (MAIL_USE_FLOCK):
898 * s/darwin.h (MAIL_USE_FLOCK):
899 * s/gnu-linux.h (MAIL_USE_FLOCK):
900 * s/irix6-5.h (MAIL_USE_FLOCK):
901 * s/template.h (MAIL_USE_FLOCK):
904 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
906 * Version 23.2 released.
908 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
910 * composite.c (autocmp_chars): Save point as marker before calling
911 auto-composition-function (Bug#5984).
913 * lisp.h (restore_point_unwind): Add prototype.
915 * fileio.c (restore_point_unwind): Remove static attribute.
917 2010-05-08 Kenichi Handa <handa@m17n.org>
919 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
920 new feature of libotf and m17n-flt.
921 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
922 Call OTF_check_features even if no specific feature is given.
923 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
924 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
925 that OUT is NULL. Use OTF_drive_gsub_with_log and
926 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
928 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
929 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
930 Setup mflt_enable_new_feature and mflt_try_otf.
932 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
934 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
936 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
937 box and toolbar (Bug #6139).
938 (xg_create_tool_bar): Remove comment (Bug #6139).
939 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
940 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
942 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
944 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
947 2010-05-08 Eli Zaretskii <eliz@gnu.org>
949 * fringe.c (update_window_fringes): Set up truncation bitmaps for
952 2010-05-08 Glenn Morris <rgm@gnu.org>
954 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
956 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
957 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
958 (termcapobj): Replace with TERMCAP_OBJ.
959 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
960 (LIBES): Use LIBS_TERMCAP as a variable.
962 * s/freebsd.h (osreldate.h): No longer include, since this file
963 does not use __FreeBSD_version any more.
965 * s/aix4-2.h (TERMINFO):
966 * s/cygwin.h (TERMINFO):
967 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
968 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
969 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
970 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
971 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
972 * s/irix6-5.h (TERMINFO):
973 * s/netbsd.h (LIBS_TERMCAP):
974 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
975 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
976 * s/usg5-4.h (TERMINFO):
979 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
981 * eval.c (unbind_to): Don't unbind a local binding into the global
982 binding when the local binding disappeared. Inversely, don't unbind
983 a global binding into a newly created local binding.
984 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
985 can specify the frame to use, when applicable. Adjust callers.
987 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
988 Stefan Monnier <monnier@iro.umontreal.ca>
990 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
992 2010-05-07 Eli Zaretskii <eliz@gnu.org>
994 * w32fns.c: Include w32.h.
995 (Fw32_shell_execute): Decode the error message before passing it
996 to `error'. (Bug#6126)
998 * msdos.c (dos_set_window_size):
999 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1000 instead of `XSYMBOL (foo)->value'.
1002 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1004 Fix the MS-DOS build, broken by autoconfiscation.
1006 * Makefile.in: Don't use Make-style comments past the "start of
1008 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1010 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1011 edited directly by msdos/sed1v2.inp).
1013 2010-05-07 Glenn Morris <rgm@gnu.org>
1015 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1016 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1017 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1018 move out of cpp section.
1019 * s/freebsd.h (LD_SWITCH_SYSTEM):
1020 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1021 * s/netbsd.h (LD_SWITCH_SYSTEM):
1022 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1024 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1026 Define LIB_STANDARD and START_FILES using autoconf.
1027 * s/usg5-4.h (LIB_STANDARD):
1028 * s/netbsd.h (START_FILES):
1029 * s/irix6-5.h (LIB_STANDARD):
1030 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1031 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1032 * s/freebsd.h (START_FILES):
1033 * s/darwin.h (START_FILES):
1034 * s/cygwin.h (START_FILES):
1035 * s/aix4-2.h (LIB_STANDARD):
1036 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1037 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1040 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1042 Remove NEED_BSDTTY and NEED_UNISTD_H.
1043 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1044 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1045 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1046 <sys/ptyio.h> and <unistd.h>.
1048 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1050 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1051 * s/gnu.h (START_FILES): Remove empty definition.
1053 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1055 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1057 2010-05-06 Glenn Morris <rgm@gnu.org>
1059 * Makefile.in (CPP, LN_S): Remove unused variables.
1061 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1063 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1065 2010-05-05 Lawrence Mitchell <wence@gmx.li>
1067 * m/sparc.h: Fix typo in earlier change.
1069 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1072 * eval.c (Fdefvaralias): Remove unintended nested if.
1073 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1075 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
1077 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1079 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1082 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1083 * s/gnu-linux.h (BSD_PGRPS): Remove.
1084 * term.c (dissociate_if_controlling_tty):
1085 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1086 (init_sys_modes, reset_sys_modes):
1088 * callproc.c (Fcall_process, child_setup): Remove code depending
1091 Remove POSIX_SIGNALS.
1092 * s/usg5-4.h (POSIX_SIGNALS):
1093 * s/netbsd.h (POSIX_SIGNALS):
1094 * s/msdos.h (POSIX_SIGNALS):
1095 * s/ms-w32.h (POSIX_SIGNALS):
1096 * s/hpux11.h (POSIX_SIGNALS):
1097 * s/gnu.h (POSIX_SIGNALS):
1098 * s/gnu-linux.h (POSIX_SIGNALS):
1099 * s/freebsd.h (POSIX_SIGNALS):
1100 * s/darwin.h (POSIX_SIGNALS):
1101 * s/cygwin.h (POSIX_SIGNALS):
1102 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1104 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1105 * process.c (create_process):
1107 * sysdep.c (wait_for_termination, init_signals):
1108 * process.c (create_process):
1109 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1110 remove all code that assumes the contrary.
1112 2010-05-04 Glenn Morris <rgm@gnu.org>
1114 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1116 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1117 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1118 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1119 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1120 LD_SWITCH_SYSTEM_tmp.
1121 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1122 New variables, set by configure.
1124 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1125 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1126 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1127 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1128 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1130 * s/aix4-2.h (C_SWITCH_SYSTEM):
1131 * m/alpha.h (C_SWITCH_MACHINE):
1132 Move to configure.in.
1133 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1134 New variables, set by configure.
1135 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1136 $c_switch_machine and $c_switch_system.
1138 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1140 * s/hpux10-20.h (LIB_STANDARD): New definition.
1141 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1142 on it, not used anymore.
1144 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
1146 * eval.c (internal_condition_case_n): Rename from
1147 internal_condition_case_2.
1148 (internal_condition_case_2): New function.
1150 * xdisp.c (safe_call): Use internal_condition_case_n.
1152 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1153 (internal_delete_file, Frename_file): Callers changed.
1155 * buffer.c (Fkill_buffer):
1156 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1158 * lisp.h: Update prototypes.
1160 2010-05-03 Glenn Morris <rgm@gnu.org>
1162 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1163 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1164 (LIBXT): Set with configure, not cpp.
1166 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1168 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1170 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1171 The FreeBSD is not needed, the default works, Solaris version is
1172 not needed, and the remaining case is not supported by configure.
1174 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1176 * xsmfns.c (CHDIR_OPT): New define.
1177 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1180 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1183 * emacs.c (USAGE1): Mention --chdir.
1184 (main): Handle --chdir.
1185 (standard_args): Add --chdir.
1186 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1189 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1191 Remove LD_SWITCH_MACHINE.
1192 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1193 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1196 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1197 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1200 * m/ibmrs6000.inp: Remove file, unused.
1201 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1202 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1204 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1206 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1209 2010-05-01 Eli Zaretskii <eliz@gnu.org>
1211 Emulate POSIX_SIGNALS on MS-Windows.
1213 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1214 (SIG_SETMASK, SIG_UNBLOCK): Define.
1216 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1217 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1218 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1220 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1223 Miscellaneous fixes of bidi display.
1225 * xdisp.c (find_row_end): New function, refactored from display_line.
1226 (display_line): Use it.
1227 (extend_face_to_end_of_line): In almost-filled rows, extend only
1228 if the row is R2L and not continued.
1229 (display_line): Fix prepending of truncation glyphs to R2L rows.
1230 Preserve overlay and string info in row->end.
1231 (insert_left_trunc_glyphs): Support addition of left truncation
1233 (set_cursor_from_row): Don't place cursor on the vertical border
1234 glyph between adjacent windows. Fix a crash when a display string
1235 is continued to the next line. Don't return zero if cursor was
1236 found by `cursor' property of a display string.
1237 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1238 test for that explicitly.
1240 2010-05-01 Glenn Morris <rgm@gnu.org>
1242 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1244 (OTHER_OBJ): Remove.
1245 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1246 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1248 2010-05-01 Karel Klíč <kklic@redhat.com>
1250 * fileio.c (Ffile_selinux_context): Context functions may return null.
1252 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1254 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
1256 2010-04-30 Glenn Morris <rgm@gnu.org>
1258 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1259 (OTHER_OBJ): Define as a separate variable, for clarity.
1261 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1263 * xsettings.c: include limits.h and update file comment.
1265 2010-04-30 Glenn Morris <rgm@gnu.org>
1267 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1268 Set with configure, not cpp.
1269 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1271 * Makefile.in (mallocobj): Remove.
1272 (otherobj): Simplify using @OTHER_OBJ@.
1274 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1275 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1276 Don't bother making nsgui.h dependency platform-specific.
1278 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1280 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1282 * process.c (read_process_output, exec_sentinel): Don't burp if the
1283 sentinel/filter kills the current buffer (bug#6060).
1285 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
1286 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1287 Remove unused var `args'.
1288 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1289 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1290 * doc.c (store_function_docstring): Use XSETCAR.
1292 2010-04-28 Glenn Morris <rgm@gnu.org>
1294 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1295 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1297 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1299 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1300 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1302 * Makefile.in (FONT_OBJ): New, set by configure.
1303 (FONT_DRIVERS): Use $FONT_OBJ.
1305 * Makefile.in (LIBXMU): Set with configure, not cpp.
1306 * s/aix4-2.h (LIBXMU):
1307 * s/hpux10-20.h (LIBXMU):
1308 Remove definition, now set in configure.
1310 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1312 * m/amdx86-64.h [i386]: Move this test to configure.in.
1314 2010-04-27 Glenn Morris <rgm@gnu.org>
1316 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1317 * s/unixware.h (NEED_LIBW): Remove definition.
1319 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1320 (TOOLKIT_LIBW): New, set by configure.
1321 (@X_TOOLKIT_TYPE@): No longer define it.
1323 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1324 (MOTIF_LIBW): Set with configure, not cpp.
1325 * s/aix4-2.h (LIB_MOTIF):
1326 * s/gnu-linux.h (LIB_MOTIF):
1327 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1329 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1332 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1333 (obj): Use autoconf for unexec instead of cpp.
1334 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1335 definitions and undefs. Inline definitions in the only user.
1336 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1338 2010-04-27 Glenn Morris <rgm@gnu.org>
1340 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1341 since the defaults (set by the system file) are fine in most cases.
1342 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1343 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1344 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1345 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1346 Remove definitions, since they are set correctly in s/gnu-linux.h.
1347 * s/freebsd.h (START_FILES, LIB_STANDARD):
1348 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1349 * s/hpux10-20.h (START_FILES):
1350 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1351 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1353 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1354 (MOTIF_LIBW): Use $LIBXP.
1355 (otherobj): Use $WIDGET_OBJ.
1357 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1359 * Makefile.in (LIBS_MACHINE): Remove, unused.
1361 Use autoconf instead of cpp for LIB_MATH.
1362 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1363 * s/cygwin.h (LIB_MATH): Likewise.
1364 * Makefile.in (LIB_MATH): Do not define with cpp.
1365 (LIBES): Use autoconf for LIB_MATH.
1367 2010-04-26 Kenichi Handa <handa@m17n.org>
1369 * composite.c (Ffind_composition_internal): Fix the return value
1370 for an automatic composition.
1372 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1374 Remove all NO_ARG_ARRAY uses.
1375 * fns.c (concat2, concat3, nconc2):
1376 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1377 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1378 * m/xtensa.h (NO_ARG_ARRAY):
1379 * m/template.h (NO_ARG_ARRAY):
1380 * m/sparc.h (NO_ARG_ARRAY):
1381 * m/sh3.h (NO_ARG_ARRAY):
1382 * m/mips.h (NO_ARG_ARRAY):
1383 * m/macppc.h (NO_ARG_ARRAY):
1384 * m/iris4d.h (NO_ARG_ARRAY):
1385 * m/intel386.h (NO_ARG_ARRAY):
1386 * m/ibms390x.h (NO_ARG_ARRAY):
1387 * m/ibms390.h (NO_ARG_ARRAY):
1388 * m/ibmrs6000.h (NO_ARG_ARRAY):
1389 * m/ia64.h (NO_ARG_ARRAY):
1390 * m/hp800.h (NO_ARG_ARRAY):
1391 * m/arm.h (NO_ARG_ARRAY):
1392 * m/amdx86-64.h (NO_ARG_ARRAY):
1393 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1395 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1397 * xdisp.c (display_line): Don't assume 2nd call to
1398 get_next_display_element cannot return zero. (Bug#6030)
1399 (iterate_out_of_display_property): New function, body from pop_it.
1402 2010-04-24 Glenn Morris <rgm@gnu.org>
1404 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1405 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1406 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1407 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1409 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1411 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1412 use `get_next_display_element' and `set_iterator_to_next' to
1413 advance to the next character, when looking for the character that
1414 begins the next row.
1416 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1417 definition of "struct Lisp_Symbol".
1419 2010-04-24 Glenn Morris <rgm@gnu.org>
1421 * Makefile.in (CRT_DIR): New variable, set by configure.
1422 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1423 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1425 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1427 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1429 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1431 Remove redundant flags.
1432 * s/freebsd.h (C_SWITCH_SYSTEM):
1433 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1434 * s/netbsd.h (C_SWITCH_SYSTEM):
1435 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1438 Simplify m/intel386.h.
1439 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1441 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1442 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1443 the only user: s/unixware.h.
1444 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1446 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1447 moved here from m/intel386.h.
1449 * m/mips.h: Remove #if 0 code.
1451 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1453 Fix display of composed characters from L2R scripts in bidi buffers.
1454 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1455 After advancing IT past the composition, resync the bidi iterator
1456 with IT's position. (Bug#5977)
1458 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1460 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1461 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1463 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1465 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1467 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1469 Support `display' text properties and overlay strings in bidi buffers.
1470 * xdisp.c (pop_it): When the stack is popped after displaying
1471 from a string, bidi-iterate to exit from the text portion covered
1472 by the `display' property or overlay. (Bug#5988, bug#5920)
1474 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1476 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1477 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1479 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1480 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1482 Simplify STARTFILES definition.
1483 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1484 relying on Makefile.in to define it.
1485 * s/cygwin.h (START_FILES): Likewise.
1486 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1488 Clean up Solaris code.
1489 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1490 (LIB_MOTIF): Remove, configure takes care of this.
1491 (NOT_USING_MOTIF): Remove, unused.
1492 * xrdb.c: Remove #if 0-ed #include.
1493 (SYSV): Remove conditional for old SysV.
1494 * sysdep.c (closedir): Remove conditional code for Solaris,
1495 Solaris has closedir.
1497 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1499 * xsettings.c (read_and_apply_settings): Check if current_font is
1500 NULL before strcmp (Bug#6001).
1502 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1504 Clean up HP-UX files.
1505 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1506 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1507 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1508 * s/hpux10-20.h: ... to the only user, here.
1510 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1512 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1513 use buffer-local values of paragraph-start and paragraph-separate.
1514 <paragraph_start_re, paragraph_separate_re>: Rename from
1515 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1518 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1520 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1521 current_tool_bar_style are new.
1522 (store_config_changed_event): Rename from store_font_changed_event.
1523 (XSETTINGS_TOOL_BAR_STYLE): New define.
1524 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1525 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1527 (something_changedCB): store_font_changed_event is now
1528 store_config_changed_event
1529 (parse_settings): Rename from parse_xft_settings. Read
1530 non-xft xsettings outside #ifdef HAVE_XFT.
1531 (read_settings): Renamed from read_xft_settings.
1532 (apply_xft_settings): Take current settings as parameter. Do not
1533 call read_(xft)_settings.
1534 (read_and_apply_settings): New function.
1535 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1536 read_and_apply_settings if there are settings to be read.
1537 (init_xsettings): Renamed from init_xfd_settings.
1538 Call read_and_apply_settings unconditionally.
1539 (xsettings_initialize): Call init_xsettings.
1540 (Ftool_bar_get_system_style): New function.
1541 (syms_of_xsettings): Define Qmonospace_font_name and
1542 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1543 defsubr Stool_bar_get_system_style. Fprovide on
1545 Move misplaced HAVE_GCONF
1547 * xsettings.h (Ftool_bar_get_system_style): Declare.
1549 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1550 Qtext, Qboth, Qboth_horiz are new.
1551 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1552 Vtool_bar_style, tool_bar_max_label_size.
1554 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1556 * keyboard.c: QClabel is new.
1557 (parse_tool_bar_item): Take out QClabel from tool bar items.
1558 Try to construct a label if ther is no QClabel.
1559 (syms_of_keyboard): Intern :label as QClabel.
1561 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1562 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1565 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1568 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1569 (xg_make_tool_item, xg_show_toolbar_item): New function.
1570 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1571 Call xg_make_tool_item to make a tool bar item.
1572 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1574 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1575 into account for toolbars.
1577 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1579 * data.c (make_blv): Declarations before code (Bug#5993).
1581 2010-04-21 Glenn Morris <rgm@gnu.org>
1583 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1584 Define using autoconf, not cpp.
1585 (LIBXSM): New variable, set by autoconf.
1586 (LIBXT): Use $LIBXSM.
1588 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1590 Remove NOMULTIPLEJOBS, unused.
1591 * s/template.h (NOMULTIPLEJOBS):
1592 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1594 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1595 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1596 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1597 detects -znocombreloc and passes it to the linker
1598 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1600 2010-04-21 Glenn Morris <rgm@gnu.org>
1602 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1604 2010-04-21 Karel Klíč <kklic@redhat.com>
1606 * Makefile.in (LIBSELINUX_LIBS): New.
1607 (LIBES): Add $LIBSELINUX_LIBS.
1608 * eval.c, lisp.h (call7): New function.
1609 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1610 (Ffile_selinux_context, Fset_file_selinux_context):
1612 (Fcopy_file): New parameter preserve-selinux-context.
1613 (Frename_file): Preserve selinux context when renaming by copy-file.
1615 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1616 Eli Zaretskii <eliz@gnu.org>
1618 Don't depend on cm.c or termcap.c on Windows, use stubs.
1619 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1620 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1621 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1622 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1623 (sys_tputs, sys_tgetstr): New stubs.
1624 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1625 (tputs, tgetstr): New; define to sys_*.
1627 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1629 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1631 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1633 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1634 Just signal a warning rather than an error when inside a let.
1635 (Fmake_variable_frame_local): Add the same test.
1637 * font.c (syms_of_font): Make the style table vars read-only.
1639 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1640 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1642 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1644 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1646 Fix R2L paragraph display on TTY.
1648 * xdisp.c (unproduce_glyphs): New function.
1649 (display_line): Use it when produced glyphs are discarded from R2L
1651 (append_composite_glyph): In R2L rows, prepend the glyph rather
1654 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1655 rather than append it. Set up the resolved_level and bidi_type
1656 attributes of the appended glyph.
1657 (produce_special_glyphs): Mirror the backslash continuation
1658 character in R2L lines.
1660 Implement display of R2L paragraphs in GUI sessions.
1662 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1663 append_stretch_glyph.
1664 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1665 off-by-one error in computing x at end of text in the row.
1666 (append_stretch_glyph): In reversed row, prepend the glyph rather
1667 than append it. Set resolved_level and bidi_type of the glyph.
1668 (extend_face_to_end_of_line): If the row is reversed, prepend a
1669 stretch glyph whose width is such that the rightmost glyph will be
1670 drawn at the right margin of the window. Fix off-by-one error on
1671 TTY frames in testing whether a line needs face extension. Fix
1672 face extension at ZV. If this is the last glyph row, use
1673 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1675 (set_cursor_from_row, display_line): Use
1676 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1677 row->continuation_lines_width.
1678 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1679 are at ZV. Fixes a crash when reseated to ZV by
1680 try_window_reusing_current_matrix.
1681 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1682 which happens with R2L glyph rows. Fixes a crash when inserting a
1683 character at end of an R2L line.
1684 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1685 treat them as having zero-width characters. Improve comments.
1686 Don't reverse pos_before and pos_after for reversed glyph rows.
1687 Set cursor.x to negative value when the cursor might be on the
1689 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1690 left fringe, not the right one.
1691 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1692 (erase_phys_cursor): For reversed cursor_row, support cursor on
1695 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1696 of continuation indicators on the fringes.
1697 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1700 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1701 draw cursor on the left fringe.
1703 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1704 cursor on the left fringe.
1706 * dispnew.c (update_text_area): Handle reversed desired rows when
1707 the cursor is on the left fringe.
1708 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1709 below, not by 0, for when the cursor is on the left fringe.
1711 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1713 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1714 widget is a scrollbar.
1716 2010-04-20 Kenichi Handa <handa@m17n.org>
1718 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1719 only when the arg CHARSET_LIST is nil.
1721 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1723 Make variable forwarding explicit rather the using special values.
1724 Basically, this makes the structure of buffer-local values and object
1725 forwarding explicit in the type of Lisp_Symbols rather than use
1726 special Lisp_Objects for that. This tends to lead to slightly more
1727 verbose code, but is more C-like, simpler, and makes it easier to make
1728 sure we handled all cases, among other things by letting the compiler
1730 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1731 Removing forwarding objects.
1732 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1733 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1734 explicit rather than hiding them inside Lisp_Object "values".
1735 (XFWDTYPE): New macro.
1736 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1737 (XBUFFER_LOCAL_VALUE): Remove.
1738 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1739 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1740 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1741 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1742 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1743 Remove the Lisp_Misc_* header.
1744 (struct Lisp_Buffer_Local_Value): Redefine.
1745 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1746 (struct Lisp_Misc_Any): Add filler to get the right size.
1747 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1749 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1750 (DEFVAR_KBOARD): Allocate a forwarding object.
1751 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1752 (let_shadows_global_binding_p): New function.
1753 (union Lisp_Val_Fwd): New type.
1754 (make_blv): New function.
1755 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1756 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1757 (swap_in_symval_forwarding, find_symbol_value, Fset)
1758 (let_shadows_buffer_binding_p, set_internal, default_value)
1759 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1760 (Fkill_local_variable, Fmake_variable_frame_local)
1761 (Flocal_variable_p, Flocal_variable_if_set_p)
1762 (Fvariable_binding_locus):
1763 * xdisp.c (select_frame_for_redisplay):
1764 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1765 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1766 * frame.c (store_frame_param):
1767 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1768 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1770 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1771 (clone_per_buffer_values): Only adjust markers into the current buffer.
1772 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1773 (Fbuffer_local_value, set_buffer_internal_1)
1774 (swap_out_buffer_local_variables):
1775 Adapt to the new symbol value structure.
1776 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1777 (defvar_per_buffer): Take a new arg for the fwd object.
1778 (buffer_lisp_local_variables): Return a proper alist (different fix
1780 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1781 (Fgarbage_collect): Don't handle buffer_defaults specially.
1782 (mark_object): Handle new symbol value structure rather than the old
1783 special Lisp_Misc_* objects.
1784 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1785 * term.c (set_tty_color_mode):
1786 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1787 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1788 a buffer_local_flags.
1789 * print.c (print_object): Get rid of impossible forwarding objects.
1791 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1793 * bidi.c (bidi_get_type, bidi_get_category)
1794 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1795 (bidi_type_of_next_char, bidi_level_of_next_char):
1796 Declare static. Use `INLINE' rather than `inline'.
1798 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1800 * dired.c (Ffile_attributes): Fix typo in docstring.
1802 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1804 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1805 NSInteger (Bug#5811).
1807 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1809 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1810 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1812 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1814 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1816 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1818 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1819 terminal frames (Bug#5837).
1821 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1823 * .gdbinit (xsubchartable): New command.
1825 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1827 * xdisp.c (display_line): Don't write beyond the last glyph row in
1828 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1829 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1831 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1833 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1835 * alloc.c (Fpurecopy): Hash-cons if requested.
1836 (syms_of_alloc): Update purify-flag docstring.
1838 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1840 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1841 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1843 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1845 Fix a crash when an NSM character is inserted at BEGV.
1847 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1848 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1849 NEUTRAL_B or UNKNOWN_BT.
1851 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1853 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1854 other rows with cursor unless they are different from this row and
1855 this row is part of a continued line. (Bug#5943)
1857 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1859 * s/freebsd.h: Restore osreldate.h include.
1860 Suggested by Naohiro Aota.
1862 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1864 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1866 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1868 * s/cygwin.h: Avoid linking against static libgcc.
1870 2010-04-15 Juri Linkov <juri@jurta.org>
1872 * window.c: Add Qscroll_command.
1873 Remove Vscroll_preserve_screen_position_commands.
1874 (window_scroll_pixel_based, window_scroll_line_based): Check the
1875 `scroll-command' property on the last command instead of searching
1876 the last command in Vscroll_preserve_screen_position_commands.
1877 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1878 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1879 (scroll-preserve-screen-position): Doc fix.
1880 (Vscroll_preserve_screen_position_commands): Remove variable.
1882 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1884 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1886 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1888 Reduce cpp use in Makefile.in.
1889 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1890 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1891 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1892 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1893 (CRT0_COMPILE): Remove, inline it in the only user.
1895 2010-04-14 Juri Linkov <juri@jurta.org>
1897 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1898 `scroll-up-command' and `M-v' from `scroll-down' to
1899 `scroll-down-command'.
1901 2010-04-14 Juri Linkov <juri@jurta.org>
1903 * window.c (Vscroll_preserve_screen_position_commands): New variable
1904 with the default value as the list of Qscroll_down and Qscroll_up.
1905 (window_scroll_pixel_based, window_scroll_line_based): Search the
1906 last command in the list Vscroll_preserve_screen_position_commands
1907 instead of comparing with Qscroll_up and Qscroll_down.
1909 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1911 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1912 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1915 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1918 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1920 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1922 Try to solve the problem of spurious EOF chars in long lines of text
1923 sent to interactive subprocesses.
1924 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1925 (system_process_attributes): Remove unused var `ttotal'.
1926 * process.c (send_process): Don't bother breaking long line with EOF
1927 chars when talking to ttys any more.
1928 (wait_reading_process_output): Output a warning when called in such
1929 a way that it could block without being interruptible.
1931 Try to detect file modification within the same second.
1932 * buffer.h (struct buffer): New field modtime_size.
1933 * buffer.c (reset_buffer): Initialize it.
1934 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1935 (Fverify_visited_file_modtime): Check it.
1936 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1937 (Fset_visited_file_modtime): Set (or clear) it.
1939 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1941 * process.c (status_notify): Remove unused var `ro'.
1943 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1945 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1946 more than one visual (Bug#5938).
1948 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1950 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1953 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1955 Remove C_SWITCH_SYSTEM_TEMACS.
1956 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1957 (malloc, realloc, free): Use emacs, not temacs for conditional
1960 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1961 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1963 Use autoconf, not cpp for some variables.
1964 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1965 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1966 (ALL_CFLAGS): Use them as make variables.
1967 (really-lwlib, really-oldXMenu): Do not pass them.
1969 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1971 * xmenu.c (apply_systemfont_to_dialog): New.
1972 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1974 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1976 * process.c (exec_sentinel): Preserve current-buffer.
1978 * process.c (read_process_output): Move the save-current-buffer to
1979 apply to both the filter and the non-filter branches.
1981 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1983 * s/msdos.h (UNEXEC): New definition.
1985 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1987 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1988 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1990 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1991 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1992 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1993 TRY_WINDOW_CHECK_MARGINS.
1995 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1996 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1997 width only when it is for padding.
1999 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2001 * xfns.c (Fx_show_tip): Call try_window in a loop until
2002 fonts_changed_p is zero (Bug#2423).
2004 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2006 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2007 the end of TEXT_AREA. (Bug#5856)
2009 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2011 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2014 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2016 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2017 prev.orig_type, for resolving type of NSM. (Bug#5858)
2019 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2021 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2022 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2024 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
2025 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2027 (syms_of_xsettings): Initialize current_font.
2028 defsubr Sfont_get_system_normal_font.
2030 * xsettings.h (Ffont_get_system_normal_font,
2031 xsettings_get_system_normal_font): Declare.
2033 * xfns.c (extern xlwmenu_default_font): Remove.
2034 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2037 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2038 menu items in UTF-8.
2040 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2041 (apply_systemfont_to_menu): New function.
2042 (set_frame_menubar, create_and_show_popup_menu): Call
2043 apply_systemfont_to_menu.
2045 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2047 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2048 FRAME_LINE_TO_PIXEL_Y.
2050 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2053 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2055 Simplify code for HP machines.
2056 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2057 for GNU_LINUX, not needed.
2058 (UNEXEC, NEED_BSDTTY): Move definitions...
2059 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2061 * m/iris4d.h (UNEXEC): Move definition ...
2062 * s/irix6-5.h (UNEXEC): ... here.
2064 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2066 * xfns.c (set_machine_and_pid_properties): New function.
2067 (Fx_create_frame): Call set_machine_and_pid_properties.
2069 2010-04-03 Eli Zaretskii <eliz@gnu.org>
2071 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2072 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2073 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2075 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2076 in this function. (Bug#5703)
2078 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
2080 * nsterm.h: Fix last change.
2082 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2084 * m/intel386.h (NO_REMAP): Move definition ...
2085 * s/msdos.h (NO_REMAP): ... here.
2087 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2089 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2090 used on those platforms.
2092 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2094 Remove extern errno declarations.
2111 * buffer.c: Remove errno extern declarations.
2112 * s/netbsd.h (NEED_ERRNO): Remove.
2114 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2116 Remove all uses of LIBX11_SYSTEM.
2117 * Makefile.in (LIBX11_SYSTEM): Remove.
2118 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2121 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2123 Remove support for DJGPP v1.x (bug#5813).
2125 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
2127 * unexec.c (make_hdr, copy_text_and_data):
2128 * sysdep.c (wait_for_termination, sys_subshell):
2129 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
2130 (IT_set_terminal_modes, __write, _rename, gethostname)
2131 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2132 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2133 the value of __DJGPP__.
2134 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2137 * gmalloc.c (memalign):
2138 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2140 * dosfns.c (init_dosfns):
2141 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2143 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2145 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2146 string with `cursor' property comes from an `after-string'
2149 2010-04-01 Glenn Morris <rgm@gnu.org>
2151 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2152 Define as Makefile variables.
2153 (LIBX): Use above variables rather than directly using autoconf.
2155 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2157 Clean up BSD_SYSTEM use.
2160 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2161 for including <sys/ioctl.h>.
2162 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2163 code is only used for MSDOS.
2165 2010-03-31 Juri Linkov <juri@jurta.org>
2167 * image.c: Add `Qextension_data'.
2168 (syms_of_image): Initialize and staticpro `Qextension_data'.
2169 (Fimage_metadata): Rename from `Fimage_extension_data'.
2170 (gif_load): Put GIF extension data to the property
2173 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2175 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2176 * nsterm.h: Fix prototype.
2178 2010-03-31 Eli Zaretskii <eliz@gnu.org>
2180 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2181 trailing whitespace in right-to-left rows.
2183 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2185 Get rid of the direct_output optimizations.
2186 * keyboard.c (nonundocount): Remove extern declaration.
2187 (command_loop_1): Remove brittle optimisation for cheap and
2189 * xdisp.c (redisplay_internal): Don't bother checking
2190 redisplay_performed_directly_p any more.
2191 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2193 * dispnew.c (redisplay_performed_directly_p)
2194 (direct_output_for_insert, direct_output_forward_char):
2195 * dispextern.h (redisplay_performed_directly_p)
2196 (direct_output_for_insert, direct_output_forward_char): Remove.
2197 * cmds.c (nonundocount): Make it static.
2199 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
2201 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2203 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
2205 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2206 invisible (Bug#5766).
2208 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
2210 * xdisp.c (x_consider_frame_title, update_window_cursor):
2211 Remove HAVE_NS conditionals.
2212 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
2214 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2215 filename for the title.
2216 (ns_set_doc_edited): Do nothing if the selected window is a
2219 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2222 * nsterm.m: Remove unneeded prototype.
2224 2010-03-31 Glenn Morris <rgm@gnu.org>
2226 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2227 in the DOC file. (Bug#5336)
2229 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2231 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2233 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2235 * window.c (keys_of_window): Remove redundant/overridden bindings.
2237 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2239 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2240 Restore original behavior when the iterator is not bidi_p.
2242 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2244 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2246 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2248 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2249 are outside the range of cached character positions.
2251 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
2253 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2255 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2257 Initial support for bidirectional editing.
2259 * Makefile.in (obj): Include bidi.o.
2260 (bidi.o): New target.
2262 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2263 ($(BLD)/bidi.$(O)): New target.
2267 * buffer.h (struct buffer): New members bidi_display_reordering
2268 and bidi_paragraph_direction.
2270 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2271 and bidi_paragraph_direction.
2272 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2273 and bidi-paragraph-direction.
2274 (Fbuffer_swap_text): Swap the values of
2275 bidi_display_reordering and bidi_paragraph_direction.
2277 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2278 (bidi_type_t, bidi_dir_t): New types.
2279 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2280 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2281 prev_stop, base_level_stop, and eol_pos.
2282 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2283 (IT_STACK_SIZE): Enlarge to 5.
2284 (struct glyph_row): New member reversed_p.
2285 <string_buffer_position>: Update prototype.
2286 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2287 glyph_row if bidi_it.paragraph_dir == R2L.
2288 (struct glyph): New members resolved_level and bidi_type.
2290 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2291 processing or buffer's direction is right-to-left.
2292 (prepare_desired_row): Preserve the reversed_p flag.
2293 (row_equal_p): Compare the reversed_p attributes as well.
2295 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2296 bidi_init_it and set it->paragraph_embedding from the current
2297 buffer's value of bidi_paragraph_direction.
2298 (reseat_1): Initialize bidi_it.first_elt.
2299 (set_iterator_to_next, next_element_from_buffer): Use the value of
2300 paragraph_embedding to determine the paragraph direction.
2301 (set_iterator_to_next): Under bidi reordering, call
2302 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2303 new_paragraph flag is set in the bidi iterator.
2304 (next_element_from_buffer): If bidi_it.first_elt is set,
2305 initialize paragraph direction and find the first character to
2306 display in the visual order. If reseated to a middle of a line,
2307 prime the bidi iterator starting at the line's beginning. Handle
2308 the situation where we overstepped stop_charpos due to
2309 non-linearity of the bidi iteration. Likewise for when we back up
2310 beyond the previous stop_charpos. When moving across stop_charpos,
2311 record it in prev_stop.
2312 (display_line): Set row->end and it->start for the next row to the
2313 next character in logical order. Always extend reversed_p rows to
2314 the end of line, even if they end at ZV. Copy the reversed_p flag
2315 to the next glyph row. Keep calling set_cursor_from_row for
2316 bidi-reordered rows even if we already have a possible candidate
2317 for cursor position. Set row_end after all the row's glyphs have
2318 been produced, by looping over the glyphs. Record the position
2319 after EOL in it->eol_pos, and use it to set end_pos of the last
2320 row produced for a continued line.
2321 <Qright_to_left, Qleft_to_right>: New variables.
2322 (syms_of_xdisp): Initialize and staticpro them.
2323 (string_buffer_position_lim): New function.
2324 (string_buffer_position): Most of code moved to
2325 string_buffer_position_lim. Last argument and return value are
2326 now EMACS_INT; all callers changed.
2327 (set_cursor_from_row): Rewritten to support bidirectional text and
2328 reversed glyph rows.
2329 (text_outside_line_unchanged_p, try_window_id): Disable
2330 optimizations if we are reordering bidirectional text and the
2331 paragraph direction can be affected by the change.
2332 (append_glyph, append_composite_glyph)
2333 (produce_image_glyph, append_stretch_glyph): Set the
2334 resolved_level and bidi_type members of each glyph.
2335 (append_glyph): If the glyph row is reversed, prepend the glyph
2336 rather than appending it.
2337 (handle_stop_backwards): New function.
2338 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2339 (reseat): call handle_stop_backwards to recompute prev_stop and
2340 base_level_stop for the new position.
2341 (handle_invisible_prop): Under bidi iteration, skip invisible text
2342 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2343 paragraph direction. Update IT->prev_stop after skipping
2345 (move_it_in_display_line_to): New variables prev_method
2346 and prev_pos. Compare for strict equality in
2347 BUFFER_POS_REACHED_P.
2348 (try_cursor_movement): Examine all the candidate rows that occlude
2349 point, to return the best match. If rows are bidi-reordered
2350 and point moved backwards, back up to the row that is not a
2351 continuation line, and start looking for a suitable row from
2354 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2355 rather than appending, if the glyph_row's reversed_p flag is set.
2356 Set the resolved_level and bidi_type members of each glyph.
2358 * .gdbinit (pbiditype): New command.
2359 (pgx): Use it to display bidi level and type of the glyph.
2360 (pitx): Display some bidi information about the iterator.
2361 (prowlims, pmtxrows): New commands.
2363 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2365 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2366 * s/usg5-4.h (LIBS_DEBUG):
2367 * s/irix6-5.h (C_DEBUG_SWITCH):
2368 * s/gnu-linux.h (LIBS_DEBUG):
2369 * s/darwin.h (LIBS_DEBUG):
2370 * s/bsd-common.h (LIBS_DEBUG):
2371 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2372 * m/iris4d.h (LIBS_DEBUG):
2373 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2375 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2376 (LIBS_DEBUG): Remove definition.
2378 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2380 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2383 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2385 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2386 `connect' (Bug#5723).
2388 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2390 * process.c (Fmake_network_process): Call `select' for interrupted
2391 `connect' rather than creating new socket (Bug#5173).
2393 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2395 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2397 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2399 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2401 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2403 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2406 2010-03-24 Kenichi Handa <handa@m17n.org>
2408 * coding.c (decode_coding_ccl): Fix previous change for the
2410 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2411 case that the output buffer is fullfilled.
2412 (encode_coding): Setup ccl program here.
2414 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2416 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2418 Simplify LIBS_MACHINE definitions.
2419 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2420 * m/iris4d.h (LIBS_MACHINE): Likewise.
2421 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2422 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2423 * s/netbsd.h: Remove commented out code.
2425 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2427 Remove dead code dealing with POSIX_SIGNALS.
2428 * atimer.c (set_alarm): Remove dead code, all USG systems define
2430 * data.c (arith_error): Likewise.
2431 * keyboard.c (input_available_signal, handle_user_signal)
2432 (interrupt_signal): Likewise.
2433 * process.c (sigchld_handler): Likewise.
2434 (create_process): Remove if 0 code. Remove HPUX conditional when
2435 !defined (POSIX_SIGNALS), it cannot be true.
2436 * syssignal.h: Remove USG5_4 and USG conditionals when
2437 !POSIX_SIGNALS, they cannot be true.
2439 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2440 NO_SOCK_SIGIO, not used anymore.
2442 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2444 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2445 support vax on BSDs.
2447 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2448 * s/aix4-2.h (ORDINARY_LINK): ... here.
2450 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2452 * Makefile.in (abs_builddir): Define.
2453 (bootstrap_exe): Use it.
2454 (VPATH): Use $(srcdir) instead of @srcdir@.
2456 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2458 * Makefile.in (bootstrap_exe): Use an absolute name.
2460 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2462 Remove support for old GNU/Linux using libc version 5.
2463 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2464 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2466 Consolidate redundant definitions in s/bsd-common.h.
2467 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2468 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2469 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2470 doing it in all files that include this one.
2471 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2472 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2473 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2474 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2475 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2476 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2477 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2478 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2479 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2481 Consolidate redundant definitions.
2482 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2483 it's undefined in all files that include this one.
2484 (POSIX_SIGNALS): Define here instead of doing it in all files that
2486 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2487 (POSIX_SIGNALS): Do not define.
2488 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2489 (POSIX_SIGNALS): Do not define.
2490 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2491 (POSIX_SIGNALS): Do not define.
2493 Remove support for old UNIX System V systems.
2494 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2495 * s/usg-5-4-2.h: Remove.
2497 Remove support for Solaris on PPC and for old versions.
2498 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2499 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2500 that cancel each other.
2503 * s/sol2-5.h: Remove.
2504 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2505 (NO_REMAP): Remove, unused.
2506 (UNEXEC): Move definition ...
2507 * s/aix4-2.h (UNEXEC): ... here.
2509 * s/openbsd.h: Remove support for non-ELF and for systems that do
2510 not support shared libraries.
2512 * s/freebsd.h: Likewise.
2514 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2516 Remove non-working support for lynxos 3.0.
2517 * s/lynxos.h: Remove file.
2519 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2520 COFF_BSD_SYMBOLS, nothing defines it anymore.
2522 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2524 Remove obsolete uses of HAVE_SHM.
2525 * emacs.c (standard_args):
2527 (syms_of_emacs): Remove code depending on HAVE_SHM.
2529 * alloc.c: Remove HAVE_SHM dependent definition.
2531 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2533 2010-03-18 Glenn Morris <rgm@gnu.org>
2535 * emacs.c (USAGE4): Hard-code bug address.
2536 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2537 (bug_reporting_address): Remove.
2538 (main): Don't call bug_reporting_address.
2540 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2541 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2543 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2545 * xfns.c (Fx_create_frame):
2546 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2549 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2551 * editfns.c (Fformat): Account for string precision when computing
2552 field width (Bug#5710).
2554 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2556 * xfns.c (Fx_create_frame): Set default to Qright.
2558 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2561 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2563 These changes remove termcap.c from the build on Posix platforms.
2564 * Makefile.in (termcapobj): Move termcap.o from here...
2565 (MSDOS_OBJ): ...to here.
2566 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2567 now identical to when LIBS_TERMCAP is defined.
2569 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2571 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2573 * config.in: Regenerated. (See top-level ChangeLog.)
2575 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2579 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2581 Cleanup setup of gl_state in various parts of the code.
2582 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2583 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2584 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2586 * regex.c (regex_compile): Use it.
2587 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2588 it's now set in regex_compile when/if we need it.
2590 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2592 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2593 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2594 (QUIT): Use it to consolidate code and remove redundancy.
2595 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2597 * regex.c (regex_compile): Setup gl_state as well.
2599 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2600 (in_classes): Use CONSP before XCAR/XCDR.
2602 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2604 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2605 definitions, so that keyboard macros are correctly handled
2608 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2610 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2611 text that could be relocated inside the call to emacs_mule_char.
2612 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2613 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2615 2010-03-02 Kenichi Handa <handa@m17n.org>
2617 * character.c (parse_str_as_multibyte): Fix handling of the
2618 multibyte form of raw-bytes.
2619 (str_as_multibyte): Likewise.
2621 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2624 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2626 * charset.c (load_charset_map_from_file)
2627 (load_charset_map_from_vector): Zero out allocated
2628 charset_map_entries before using them.
2630 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2632 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2634 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2636 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2637 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2639 2010-02-26 Kenichi Handa <handa@m17n.org>
2641 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2643 * xdisp.c (reseat_to_string): Fix previous change.
2645 2010-02-26 David Reitter <david.reitter@gmail.com>
2647 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2648 Lisp_Object (Bug#4736).
2650 2010-02-25 Kenichi Handa <handa@m17n.org>
2652 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2654 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2656 * xterm.c (XTflash): Move declarations before statements.
2658 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2659 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2660 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2661 (xg_create_tool_bar): Remove unused variables.
2662 (x_wm_set_size_hint): Move declarations before statements.
2663 (xg_create_frame_widgets): Remove variable grav.
2665 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2667 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2669 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2671 * term.c (fatal): Add a final \n if needed (bug#5596).
2673 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2675 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2677 2010-02-18 Glenn Morris <rgm@gnu.org>
2679 * callint.c (Finteractive): Doc fix.
2681 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2683 * coding.c (record_conversion_result):
2684 Handle CODING_RESULT_INSUFFICIENT_DST.
2685 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2686 memory allocation error.
2688 2010-02-17 Kenichi Handa <handa@m17n.org>
2690 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2691 Fix for the case that the output buffer is fullfilled.
2692 (decode_coding): Setup ccl program here. Keep looping when the
2693 decoder stopped because the output buffer is
2694 fullfilled (bug#5534).
2696 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2698 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2700 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2702 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2705 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2707 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2708 doing_interact here.
2709 (ice_connection_closed): New function.
2710 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2711 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2712 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2714 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2717 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2719 * nsfont.m (nsfont_open): The system's value for the font descent
2720 is negative, so round it down to avoid clipping.
2722 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2724 * charset.c (load_charset_map_from_file)
2725 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2726 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2728 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2730 * charset.c (load_charset_map_from_file): Allocate large
2731 charset_map_entries structure on the heap rather than the stack.
2734 2010-01-31 Kenichi Handa <handa@m17n.org>
2736 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2737 size in NAME is invalid, return -1 (Bug#5396).
2739 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2741 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2742 <deactivated@gmail.com> (Bug#3605).
2744 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2746 * fileio.c (Frename_file): Correctly rename symlinks to
2747 directories (Bug#5496).
2749 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2751 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2753 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2755 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2757 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2759 * frame.c (DEFAULT_ROWS): Change default to 35.
2761 * xfns.c (x_default_font_parameter): Change default XFT font to
2762 monospace-10 (Bug#3643).
2764 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2766 * w32inevt.c (key_event): Remove unnecessary comparison of
2767 event->uChar.AsciiChar with 128.
2769 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2771 * fileio.c (Frename_file): Fix last change (Bug#5487).
2773 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2775 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2777 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2779 * xfns.c (Fx_create_frame): Remove window size matching code from
2781 (x_get_current_desktop, x_get_desktop_workarea): Remove.
2783 2010-01-27 Jason Rumney <jasonr@gnu.org>
2785 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2786 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2788 2010-01-27 Kenichi Handa <handa@m17n.org>
2790 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2791 pattern string (Bug#4209).
2793 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2795 * fileio.c (Frename_file): Call copy-directory and
2796 delete-directory for directories, in order to handle cross-device
2797 renaming (Bug#3353).
2799 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2801 * xfns.c (Fx_create_frame): If frame height is too big, try
2802 sizes 24 and 10. Bug #3643.
2804 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2806 Try and fix bug#788, hopefully for real this time.
2807 * keymap.c (shadow_lookup): Add `remap' arg.
2808 (describe_map, describe_vector): Update calls to shadow_lookup.
2809 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2810 `remapped' so this flag is applicable to `sequence'. Be careful to
2811 perform remapping during shadow_lookup check of remapped_sequences.
2813 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2815 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2816 png_check_sig, which has been removed in libpng 1.4.
2818 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2820 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2821 lacks this header file).
2823 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2825 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2828 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2830 * lisp.h (make_pure_string): String pointer arg now points to const.
2832 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2833 args now point to const.
2835 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2837 * lread.c (Fload): Don't treat files without .elc extension as
2838 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2841 2010-01-20 Kenichi Handa <handa@m17n.org>
2843 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2844 treat the source as actual byte sequence.
2846 2010-01-19 Alan Mackenzie <acm@muc.de>
2848 Fix spurious before-change-functions invocation from (insert ?\n).
2849 * textprop.c (set_text_properties): Rename parameter
2850 `signal_after_change_p' to `coherent_change_p', and make the
2851 invocation of `modify_region' conditional on it.
2853 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2855 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2857 (syms_of_xsettings): Declare xft-settings.
2859 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2861 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2863 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2865 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2867 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2869 * emacs.c (standard_args): Adjust arg priorities to reflect how
2870 they are processed in startup.el.
2872 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2874 * Makefile.in (lisp, shortlisp): Update.
2876 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2878 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2879 code, link the new kboard into all_kboard before running Lisp code,
2880 and protect the new terminal with GCPRO (Bug#5365).
2881 (x_term_init): Remove unused var `atom'.
2882 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2884 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2886 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2887 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2888 to find out usable size of the desktop. Don't make frames larger than
2891 2010-01-15 Kenichi Handa <handa@m17n.org>
2893 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2895 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2897 * nsterm.m (Qnone): Define.
2899 * nsfns.m (Qnone): Move definition to nsterm.m.
2901 2010-01-14 Kenichi Handa <handa@m17n.org>
2903 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2906 2010-01-14 Kenichi Handa <handa@m17n.org>
2908 Make auto-composition work on all buffers even if they are
2911 * composite.c (Vauto_composition_mode): New variable.
2912 (composition_compute_stop_pos): Check Vauto_composition_mode
2913 instead of Vauto_composition_function.
2914 (composition_adjust_point, Ffind_composition_internal): Likewise.
2915 (syms_of_composite): Declare Lisp variable
2916 "auto-composition-mode" here.
2918 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2920 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2921 during call to vendor-specific-keysyms (Bug#5365).
2923 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2925 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2926 Call SIGNAL_THREAD_CHECK (Bug#5333).
2928 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2929 Call SIGNAL_THREAD_CHECK.
2931 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2933 Try to fix bug#5314. This is probably not the final word, tho.
2934 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2935 recent-auto-save-p as a side-effect.
2936 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2937 * buffer.c (Fkill_buffer, reset_buffer):
2938 * editfns.c (Fsubst_char_in_region):
2939 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2940 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2942 2010-01-13 Kenichi Handa <handa@m17n.org>
2944 Display buffer name, etc. in mode line by composing correctly.
2946 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2948 (display_mode_element): Adjust for the change of
2949 decode_mode_spec and display_line.
2950 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2951 (display_string): Handle the case that STRING is non-null and
2952 LISP_STRING is not nil.
2954 * xterm.c (x_draw_composite_glyph_string_foreground):
2955 Pay attention to s->face->overstrike.
2957 * composite.c (composition_reseat_it): Don't check PT if STRING is
2960 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2962 * keyboard.c (read_char): Don't apply previous change when current
2963 buffer is unchanged by command execution.
2965 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2967 * keyboard.c (read_char): Return after executing from special map.
2969 2010-01-12 Glenn Morris <rgm@gnu.org>
2971 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2972 bug-gnu-emacs rather than emacs-pretest-bug.
2974 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2976 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2977 initializing the Lisp variables that depend on them.
2979 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2981 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2982 Clear areas that will not be updated after change of menu bar lines.
2983 Clear the menu bar window's current matrix when the window gets empty.
2985 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2987 * intervals.h, textprop.c (extend_property_ranges): Return value
2988 and args changed. Discard properties that begin at or after the
2991 * editfns.c (Fformat): Caller changed.
2993 * nsterm.m (ns_set_default_prefs): Delete function.
2994 (syms_of_nsterm): Initialize ns_command_modifier,
2995 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2996 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2998 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2999 position (Bug#4040).
3001 2010-01-09 Eli Zaretskii <eliz@gnu.org>
3003 * editfns.c (Ffloat_time): Doc fix.
3005 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3007 * xfns.c (Fx_create_frame): Don't create frame larger than display
3008 by default bug#3643.
3010 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3012 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3013 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3014 windows above internal border.
3016 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3017 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3018 windows above internal border.
3020 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3021 tool bar windows specially.
3023 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3025 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3027 (XTflash): Take account of menu bar height.
3029 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3032 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3034 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
3035 also be true before we can return early (bug #5339).
3037 2010-01-06 David Reitter <david.reitter@gmail.com>
3039 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3040 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3043 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3045 * font.c (font_open_entity): Enable chache and call cached_font_ok
3046 for the driver if defined.
3047 (QCuser_spec): New symbol.
3048 (font_spec_from_name): Save name as user-spec.
3049 (font_load_for_lface): Keep user-spec instead of name.
3050 (font_open_by_name): Save name as user-spec.
3051 (syms_of_font): Initialize QCuser_spec.
3052 (font_clear_prop): Clear name if it exists in font (bug#5157).
3054 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3055 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3056 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3058 * font.h (struct font_driver): Add cached_font_ok.
3060 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3062 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3064 * xterm.c (x_new_font): Move code for setting rows/cols before
3066 (x_set_window_size): ... to here. Bug #2568.
3068 * gtkutil.c (xg_clear_under_internal_border): New function.
3069 (xg_frame_resized, xg_frame_set_char_size):
3070 Call xg_clear_under_internal_border.
3071 (xg_update_scrollbar_pos): Clear under old scroll bar position.
3073 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
3075 * keyboard.c (read_key_sequence): Catch keyboard switch after
3076 making a new tty frame (Bug#5095).
3078 2010-01-05 Kenichi Handa <handa@m17n.org>
3080 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3082 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3084 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3085 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3086 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3088 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
3090 * dbusbind.c (xd_add_watch): Improve debug message.
3091 (xd_remove_watch): Improve debug message. If DATA is the session
3092 bus, unset D-Bus session environment.
3093 (Fdbus_init_bus): Pass the bus as argument to
3094 dbus_connection_set_watch_functions. (Bug#5283)
3096 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
3098 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3100 * lread.c (syms_of_lread): Make it clearer that these are the
3101 names of loaded files (Bug#5068).
3103 * eval.c (run_hook_with_args): Handle the case where the global
3104 value has the obsolete single-function form (Bug#5026).
3106 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
3108 * minibuf.c (Fall_completions): Minor optimization.
3110 2009-12-26 Eli Zaretskii <eliz@gnu.org>
3112 * .gdbinit (pgx): Fix display of composite glyphs.
3113 Display cmp.from and cmp.to as well.
3114 (pitx): Fix last change.
3116 2009-12-25 Kenichi Handa <handa@m17n.org>
3118 * composite.h (composition_adjust_point): Update prototype.
3120 * composite.c (composition_reseat_it): Don't make a composition
3121 spanning over point.
3122 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3123 composable characters.
3124 (composition_adjust_point): New arg NEW_PT. Callers changed.
3126 * keyboard.c (command_loop_1): Force redisplay if the last point
3127 was within a composition.
3128 (adjust_point_for_property): Don't adjust point for automatic
3129 composition when called after buffer modification.
3131 2009-12-19 Eli Zaretskii <eliz@gnu.org>
3133 * .gdbinit (pitx): Don't use enum names, use their values.
3134 Remove reference to non-existing value GET_FROM_COMPOSITION.
3135 (pgx): Don't use enum names, use their values.
3136 (pitmethod): New helper command.
3137 (pitx): Use it to display iteration method.
3138 (pgrowit): New command.
3140 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3142 Update dependencies in Makefile.in.
3144 * Makefile.in (alloc.o): Depend on termhooks.h.
3145 (atimer.o): Depend on blockinput.h.
3146 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3148 (callint.o): Depend on systime.h, coding.h, and composite.h.
3149 (callproc.o): Depend on buffer.h.
3150 (casefiddle.o): Don't depend on charset.h.
3151 (casetab.o): Depend on character.h.
3152 (ccl.o): Depend on composite.h.
3153 (chartab.o): Depend on ccl.h.
3154 (cm.o): Depend on dispextern.h.
3155 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3156 (coding.o): Don't depend on $(INTERVALS_H).
3157 (composite.o): Don't depend on dispextern.h explicitly (it's in
3158 $(INTERVALS_H)). Depend on ccl.h.
3159 (data.o): Depend on systime.h, coding.h, composite.h,
3160 dispextern.h, font.h, and ccl.h.
3161 (dired.o): Depend on composite.h.
3162 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3163 composite.h (it's in $(INTERVALS_H)).
3164 (doc.o): Depend on systime.h, coding.h, and composite.h.
3165 (editfns.o): Don't depend explicitly on dispextern.h.
3166 (emacs.o): Depend on frame.h and coding.h.
3167 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3168 (fileio.o): Depend on frame.h and commands.h. Don't depend
3169 explicitly on dispextern.h.
3170 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3172 (fns.o): Don't depend on termhooks.h.
3173 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3174 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3175 coding.h, $(INTERVALS_H), window.h, xterm.h.
3176 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3177 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3178 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3179 fontset.h, ccl.h, and ftfont.h.
3180 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3181 (gtkutil.o): Depend on dispextern.h and composite.h.
3182 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3183 termhooks.h, and ccl.h.
3184 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3185 (intervals.o): Depend on systime.h and coding.h.
3186 (keyboard.o): Depend on composite.h and coding.h.
3187 (keymap.o): Depend on coding.h and frame.h.
3188 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3189 (macros.o): Depend on systime.h, coding.h, and composite.h.
3190 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3192 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3193 dispextern.h explicitly.
3194 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3195 Don't depend explicitly on dispextern.h and composite.h.
3196 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3197 (regex.o): Don't depend on charset.h.
3198 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3199 (search.o): Don't depend explicitly on composite.h.
3200 (sound.o): Depend on atimer.h and systime.h.
3201 (syntax.o): Don't depend explicitly on composite.h.
3202 (sysdep.o): Depend on coding.h and composite.h.
3203 (term.o): Depend on xterm.h and buffer.h.
3204 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3205 (textprop.o): Don't depend on dispextern.h explicitly.
3206 (undo.o): Depend on dispextern.h.
3207 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3208 dispextern.h and composite.h explicitly.
3209 (xdisp.o): Depend on ccl.h.
3210 (xfaces.o): Depend on coding.h and ccl.h.
3211 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3212 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3213 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3215 (xgselect.o): New dependency.
3216 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3217 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3218 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3219 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3220 (xsmfns.o): Depend on frame.h and dispextern.h.
3221 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3224 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3226 * font.c (Fclear_font_cache): Pass correct cache argument to
3229 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3231 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3234 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
3236 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3237 calling file-remote-p. Reported by Jim Meyering.
3239 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
3241 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
3242 avoid compiler warnings. (Bug #5217)
3244 2009-12-14 Kenichi Handa <handa@m17n.org>
3246 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3249 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
3251 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3254 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3256 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3257 Xatom_net_window_type.
3259 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3260 Xatom_net_window_type.
3262 * xterm.c (my_log_handler): New function.
3263 (x_term_init): Set my_log_handler as log handler during gtk_init
3264 so we can filter out buggy messages. (Bug #5120).
3266 * xterm.c (xg_scroll_callback): Parameter list changed,
3267 use parameter GtkScrollType to determine scroll/line/page.
3268 Only allow dragging if a button < 4 is grabbed (bug #5177).
3269 (xg_end_scroll_callback): New function.
3270 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3271 xg_create_scroll_bar.
3273 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3274 (scroll_end_callback): Remove.
3275 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3276 button-release-event. Replace value-changed event with change-value,
3278 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3281 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3282 (xg_create_scroll_bar): Add GCallback end_callback.
3284 * xftfont.c (QClcdfilter): New variable.
3285 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3286 (syms_of_xftfont): Initialize QClcdfilter.
3288 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3290 * xsettings.c (struct xsettings): Add member seen.
3291 (parse_xft_settings): Update member seen with what we have read.
3292 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3293 (apply_xft_settings): Only update Xft settings with what member seen
3296 2009-12-12 Eli Zaretskii <eliz@gnu.org>
3298 * dispextern.h (struct text_pos): Use EMACS_INT;
3299 (struct glyph): Use EMACS_INT for charpos.
3300 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3301 region_beg_charpos, region_end_charpos,
3302 redisplay_end_trigger_charpos, and also for
3303 iterator_stack_entry.end_charpos and
3304 iterator_stack_entry.stop_charpos.
3306 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3308 * gtkutil.c (scroll_end_callback): New function (bug #5177).
3309 (xg_create_scroll_bar): Call scroll_end_callback on button release
3311 (xg_event_is_for_scrollbar): != replaced with ==.
3313 2009-12-12 Kenichi Handa <handa@m17n.org>
3315 * ftfont.c (struct ftfont_info): New member matrix.
3316 (ftfont_open): Setup xftfont_info->matrix.
3317 (MFLTFontFT): New member matrix.
3318 (FLOOR, CEIL, ROUND): New macros.
3319 (ftfont_get_metrics): Handle matrix transformation.
3320 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3322 * xftfont.c (struct xftfont_info): New member matrix.
3323 (xftfont_open): Setup xftfont_info->matrix.
3325 2009-12-10 Kenichi Handa <handa@m17n.org>
3327 * xdisp.c (append_space_for_newline): Consider face-remapping.
3329 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3331 * xsettings.c: Include "keyboard.h".
3333 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3335 Fix implicit function declarations.
3336 * cmds.c: Include "frame.h".
3337 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3338 * frame.h: Move declaration of delete_frame outside of
3341 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3343 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3345 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3348 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3350 * unexelf.c (unexec): Don't search for .data twice.
3352 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3354 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3356 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3357 of push_display_prop (Bug#5000).
3359 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3360 value of font_list_entities (Bug#5085).
3362 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3364 Fix `string-to-number' to deal consistently with integers and floats.
3365 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3366 trailing characters, not just whitespace.
3367 (read1): Pass new arg 0 to keep old behavior.
3368 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3369 trailing chars, as it is already done for integers. Doc fixes.
3370 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3372 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3374 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3375 Delete unused enumeration value.
3377 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3379 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3381 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3383 * process.c (Fmake_network_process): Fix up the tests for
3384 "connectionless socket", so they DTRT for seqpacket sockets as well.
3386 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3388 * process.c (Qseqpacket): New symbol.
3389 (HAVE_SEQPACKET): New macro.
3390 (Fmake_network_process): Accept new :type `seqpacket'.
3391 (init_process): Add `seqpacket' feature when applicable.
3392 (syms_of_process): Initialize Qseqpacket.
3394 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3396 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3399 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3401 * print.c (print_preprocess): Preprocess the key_and_value table of
3402 hashtables, even tho they're "hidden" (bug#5082).
3404 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3406 * frame.c (frame_make_pointer_invisible)
3407 (frame_make_pointer_visible): Declare f before statements.
3409 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3411 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3412 omitted dependencies on lisp.h.
3414 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3416 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3419 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3421 * frame.c (frame_make_pointer_invisible)
3422 (frame_make_pointer_visible): Just return if there isn't any selected
3425 * search.c (simple_search): Remove warning by making *p const.
3427 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3429 * xdisp.c (power_letter): Remove duplicate const.
3431 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3433 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3435 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3436 defaults (bug #5025).
3438 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3440 * insdel.c (adjust_markers_for_delete): Move it in the
3441 right direction! (bug#4803)
3443 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3445 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3447 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3449 2009-11-24 Glenn Morris <rgm@gnu.org>
3451 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3453 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3455 * Makefile.in: Must create deps for ecrt0.o in its rule.
3457 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3458 because that is what Gtk+ font dialog understands.
3460 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3462 (font_open_by_name): Put name given into QCname for font-object returned.
3464 * frame.c (x_set_font): Save original font name as frame parameter
3467 * xsettings.c (set_default_xft_settings): New function.
3468 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3471 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3473 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3474 searching backwards through multibyte buffer.
3476 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3478 * xterm.c: #include xgselect.h.
3479 (x_initialize): Call xgselect_initialize.
3481 * xsettings.c (something_changedCB): C++ comments => C comments.
3482 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3485 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3486 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3487 (scroll_bar_button_cb): Remove.
3488 (create_menus): C++ comments => C comments. Don't bind grab-notify
3490 (xg_create_scroll_bar): Don't bind button-press-event and
3491 button-release-event.
3493 * process.c: Include xgselect.h if defined (USE_GTK) ||
3494 defined (HAVE_GCONF).
3495 (wait_reading_process_output): Call xg_select for the same condition.
3497 * xgselect.c (xg_select): New function to better integrate with
3498 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3500 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3502 * Makefile.in (XOBJ): Add xgselect.o.
3504 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3506 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3507 Remove ignored second argument. All callers changed.
3508 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3509 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3510 * xdisp.c (string_char_and_length): Likewise.
3512 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3514 * xterm.c (x_new_font):
3515 * print.c (print_object):
3516 * cmds.c (Fself_insert_command): Move declarations before statements.
3518 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3520 * s/cygwin.h: Remove unneeded linker flags.
3522 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3524 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3526 * xsettings.h: Declare xsettings_get_system_font.
3528 * xsettings.c (xsettings_get_system_font): New function.
3529 (init_gconf): No use initiating gconf unless we have Xft also.
3530 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3533 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3534 add a blank entry so it doesn't collapse into nothing.
3536 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3538 * lread.c (Funintern): Comment out last change.
3540 2009-11-19 Richard Stallman <rms@gnu.org>
3542 * lread.c (Funintern): Error if symbol is t or nil.
3544 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3546 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3547 representation of Lisp integers.
3548 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3550 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3552 * lisp.h: Remove declaration of Ffont_get_system_font.
3553 * xfns.c: Move include of "xsettings.h".
3554 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3556 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3558 * xsettings.c (something_changedCB, Ffont_get_system_font):
3559 Check use_system_font.
3560 (syms_of_xsettings): DEFVAR font-use-system-font.
3562 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3564 * xfns.c (x_default_font_parameter): Remove dead assignment.
3566 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3568 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3570 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3571 not have FC_LCD_*. #define them if not there.
3573 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3575 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3577 * xterm.c (handle_one_xevent): Call xft_settings_event for
3578 ClientMessage, PropertyNotify and DestroyNotify.
3579 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3580 Call xsettings_initialize.
3582 * xftfont.c (xftfont_fix_match): New function.
3583 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3584 Call xftfont_fix_match after XftFontMatch.
3586 * xfont.c (xfont_driver): Initialize all members.
3588 * xfns.c (x_default_font_parameter):
3589 Try font from Ffont_get_system_font.
3590 Do not get font from x_default_parameter if we got one from
3591 Ffont_get_system_font.
3592 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3594 * w32font.c (w32font_driver): Initialize all members.
3596 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3598 * lisp.h: Declare syms_of_xsettings.
3600 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3601 Handle CONFIG_CHANGED_EVENT.
3603 * ftfont.c (ftfont_filter_properties): New function.
3605 * frame.c (x_set_font): Remove unused variable lval.
3607 * font.h (struct font_driver): Add filter_properties.
3609 * font.c (font_put_extra): Don't return if val is nil, it means
3610 boolean option is off.
3611 (font_parse_fcname): Collect all extra properties in extra_props
3612 and call filter_properties for all drivers with extra_props and
3614 (font_open_entity): Do not use cache, it does not pick up new
3615 fontconfig settings like hinting.
3616 (font_load_for_lface): If spec had a name in it, store it in entity.
3618 * emacs.c (main): Call syms_of_xsettings.
3620 * config.in: HAVE_GCONF is new.
3622 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3625 2009-11-17 Kenichi Handa <handa@m17n.org>
3627 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3628 back to the default font in case that no suitable font is found.
3630 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3632 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3633 Suggested by Chad Brown <yandros@mit.edu>.
3634 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3636 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3638 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3640 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3642 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3644 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3646 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3649 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3650 dependency files in deps/. Include those files into Makefile.
3652 * config.in: Generated (AUTO_DEPEND).
3654 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3656 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3657 Vdbus_registered_functions_table, because it contains also
3658 properties. Fix docstring.
3659 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3661 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3663 * alloc.c (mark_object): Don't reprocess marked strings.
3664 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3665 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3667 2009-11-13 Kenichi Handa <handa@m17n.org>
3669 * category.c (word_boundary_p): Adjust for the change of the
3670 semantics of Vword_combining_categories.
3671 (Vword_combining_categories): Describe the slight change of the
3674 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3676 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3678 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3680 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3682 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3684 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3686 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3688 2009-11-11 David Reitter <david.reitter@gmail.com>
3690 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3691 variables to fix 2009-11-09 change.
3693 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3695 * process.c (ifflag_def): Make flag_sym constant.
3696 (Fnetwork_interface_info): Use a constant pointer.
3698 * xfns.c (cursor_bits):
3699 * xdisp.c (power_letter):
3700 * termcap.c (speeds, esctab):
3701 * sysdep.c (baud_convert):
3702 * keyboard.c (lispy_accent_codes, modifier_names):
3703 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3704 (jpeg_format, tiff_format, gif_format, svg_format)
3705 (interlace_start, interlace_increment, gs_format):
3706 * gtkutil.c (separator_names):
3707 * fringe.c (swap_nibble):
3708 * fns.c (base64_value_to_char, base64_char_to_value):
3709 * fileio.c (make_temp_name_tbl):
3710 * coding.c (suffixes): Make constant.
3712 * frame.c (make_initial_frame):
3713 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3715 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3718 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3720 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3721 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3723 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3724 * xterm.c (syms_of_xterm):
3725 * xfaces.c (syms_of_xfaces):
3726 * xdisp.c (syms_of_xdisp):
3727 * lread.c (syms_of_lread):
3728 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3731 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3733 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3735 * fns.c (Fplist_get): Merge the active and the commented out code.
3737 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3739 * keyboard.h: Declare timer_check.
3741 * keyboard.c (timer_check_2): New function that does what the old
3743 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3744 returned, i.e. don't return -1 with timers pending.
3746 * process.c: Remove extern declaration of timer_check.
3748 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3749 even if timer_check returned -1.
3751 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3753 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3755 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3756 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3757 Destroy the dialog after xg_dialog_run.
3759 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3761 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3763 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3765 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3767 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3769 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3771 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3773 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3774 w32menu.c, and nsmenu.m.
3775 Simplify the obsolete case where position is nil.
3776 (cleanup_popup_menu): New function, moved from nsmenu.m.
3777 (struct skp): Remove slot `notreal'.
3778 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3780 (single_menu_item): Adjust call to parse_menu_item.
3781 (syms_of_menu): Defsubr x-popup-menu.
3782 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3783 (keymap_panes): Don't export any more.
3784 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3785 (xmenu_show): Declare.
3786 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3787 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3788 * keyboard.h (parse_menu_item): Update declaration.
3789 * xmenu.c (Fx_popup_menu): Remove.
3790 (syms_of_xmenu): Don't defsubr x-popup-menu.
3791 * w32menu.c (Fx_popup_menu): Remove.
3792 (syms_of_w32menu): Don't defsubr x-popup-menu.
3793 * nsmenu.m (cleanup_popup_menu): Remove.
3794 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3795 moved to menu.c's Fx_popup_menu.
3796 (Fx_popup_menu): Remove.
3797 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3798 menu_items (it's done in menu.c already).
3800 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3802 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3803 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3805 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3807 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3808 xmenu_show. Hide any tooltip before opening a menu.
3809 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3810 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3812 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3814 Let integers use up 2 tags to give them one extra bit and thus double
3816 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3817 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3819 (enum Lisp_Type): Use them. Give explicit values.
3820 (Lisp_Type_Limit): Remove.
3821 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3822 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3823 Pay attention to USE_2_TAGS_FOR_INTS.
3824 (INTEGERP): Use LISP_INT_TAG_P.
3825 * fns.c (internal_equal): Simplify the default case.
3826 (sxhash): Use case_Lisp_Int.
3827 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3829 (Ftype_of): Use case_Lisp_Int.
3830 (store_symval_forwarding): Take into account the fact that Ints can
3831 now have more than one tag.
3832 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3833 buffer_slot_type_mismatch):
3834 * xfaces.c (face_attr_equal_p):
3835 * print.c (print_object):
3836 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3839 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3841 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3843 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3846 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3848 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3850 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3852 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3853 ButtonPressRelease and MotionNotify (bug#4870).
3855 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3857 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3859 * xterm.c (syms_of_xterm):
3860 * xselect.c (syms_of_xselect):
3861 * xmenu.c (syms_of_xmenu):
3862 * xfns.c (syms_of_xfns):
3863 * xfaces.c (syms_of_xfaces):
3864 * xdisp.c (syms_of_xdisp):
3865 * window.c (syms_of_window):
3866 * w32fns.c (syms_of_w32fns):
3867 * undo.c (syms_of_undo):
3868 * textprop.c (syms_of_textprop):
3869 * terminal.c (syms_of_terminal):
3870 * syntax.c (syms_of_syntax):
3871 * sound.c (syms_of_sound):
3872 * search.c (syms_of_search):
3873 * print.c (syms_of_print):
3874 * minibuf.c (syms_of_minibuf):
3875 * macros.c (syms_of_macros):
3876 * keymap.c (syms_of_keymap, initial_define_key)
3877 (initial_define_lispy_key):
3878 * keyboard.c (syms_of_keyboard):
3879 * insdel.c (syms_of_insdel):
3880 * image.c (syms_of_image):
3881 * fringe.c (syms_of_fringe):
3882 * frame.c (syms_of_frame):
3883 * fontset.c (syms_of_fontset):
3884 * fns.c (syms_of_fns):
3885 * fns.c (syms_of_fns):
3886 * fileio.c (syms_of_fileio):
3887 * fileio.c (syms_of_fileio):
3888 * eval.c (syms_of_eval):
3889 * doc.c (syms_of_doc):
3890 * dispnew.c (syms_of_display):
3891 * dired.c (syms_of_dired):
3892 * dbusbind.c (syms_of_dbusbind):
3893 * data.c (syms_of_data):
3894 * composite.c (syms_of_composite):
3895 * coding.c (syms_of_coding):
3896 * cmds.c (syms_of_cmds):
3897 * charset.c (define_charset_internal, syms_of_character):
3898 * ccl.c (syms_of_ccl):
3899 * category.c (syms_of_category, init_category_once):
3900 * casetab.c (syms_of_casetab):
3901 * casefiddle.c (syms_of_casefiddle):
3902 * callint.c (syms_of_callint):
3903 * bytecode.c (syms_of_bytecode):
3904 * buffer.c (keys_of_buffer, syms_of_buffer):
3905 * alloc.c (syms_of_alloc):
3906 * process.c (syms_of_process, init_process):
3907 * lread.c (syms_of_lread, init_obarray):
3908 * font.c (build_style_table):
3909 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3910 intern_c_string, calls to make_pure_string with
3911 make_pure_c_string. Use pure_cons instead of Fcons.
3913 * process.c (socket_options): Make it const.
3914 (set_socket_option, init_process): Use a const pointer.
3916 * lread.c (intern_c_string): New function.
3917 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3918 (defvar_int): Uset it. Make the name const char*.
3920 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3921 (defvar_int): Update prototypes.
3922 (DEFUN, EXFUN): Support for prototypes is now required.
3923 (intern_c_string): New prototype.
3924 (struct Lisp_Subr): Make symbol_name constant.
3926 * font.c (struct table_entry): Remove unused member. Make NAMES
3928 (weight_table, slant_table, width_table): Make constant.
3930 * emacs.c (struct standard_args): Make name and longname constant.
3932 * character.h (DEFSYM): Use intern_c_string.
3934 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3936 * alloc.c (make_pure_c_string): New function.
3938 * eval.c (Fautoload): Purecopy all arguments.
3940 2009-11-05 Kenichi Handa <handa@m17n.org>
3942 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3943 the buffer in case of replace.
3945 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3947 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3949 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3951 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3952 when applicable (bug#4851).
3954 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3955 (P_): Support for prototypes is now required.
3957 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3959 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3962 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3964 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3966 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3968 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3970 * lread.c (Fload): Purecopy the file name when building
3971 Vpreloaded_file_list.
3973 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3975 * w32fns.c (syms_of_w32fns): Change default value of
3976 w32-scroll-lock-modifier to nil. (Bug#2827)
3978 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3980 * minibuf.c (Fall_completions): Fix typos in docstring.
3982 2009-10-26 Andreas Schwab <schwab@redhat.com>
3984 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3986 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3988 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3989 For delta < 0, skip check that only makes sense when the mini-window
3990 is going to be enlarged. (Bug#4534)
3992 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3994 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3995 string in menu maps (Bug#4471).
3997 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3999 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4000 FRAME_NS_VIEW on terminal frames (Bug#4765).
4002 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4004 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4005 DBUS_TYPE_UINTnn separately to get proper sign extension.
4007 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4008 can properly handle unsigned types.
4009 (make_uid, make_gid): Remove.
4011 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4014 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
4015 (system_process_attributes): Likewise.
4017 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4019 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4021 * eval.c (Fautoload): Purecopy the filename. Simplify.
4023 * category.c (Fdefine_category): Purecopy docstring.
4025 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4027 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4029 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4031 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
4033 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4034 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4037 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4039 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4041 * lisp.h (init_fileio_once): Remove.
4042 * emacs.c (main): Don't call init_fileio_once.
4044 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4046 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4048 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4050 * doprnt.c (doprnt): Fix overflow check.
4052 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4054 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4056 * xterm.h (x_wait_for_event): Declare it.
4058 * xterm.c (pending_event_wait): New variable.
4059 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4060 see pending_event_wait.eventtype.
4061 (handle_one_xevent): Don't change gravity when parent changes.
4062 (x_new_font): Call change_frame_size with new rows/columns before we
4063 try to resize the frame.
4064 (x_wait_for_event): New function.
4065 (x_set_window_size_1): Don't change gravity unless change_gravity
4067 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4068 don't change frame size, instead wait for the ConfigureNotify.
4069 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4070 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4071 (x_initialize): Initialize pending_event_wait.
4073 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4076 * widget.c (EmacsFrameSetValues): Add comment.
4077 (EmacsFrameSetCharSize): Just call x_set_window_size.
4079 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4081 (flush_and_sync): Remove again.
4082 (xg_get_font_name): Suggest monospace if no previous font is known.
4084 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4086 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
4087 8th bit, since that only made sense in the ASCII world (bug#4751).
4089 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4091 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4092 processing pending events when event is filtered for input method.
4095 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
4097 * fns.c: Add #endif accidentally removed in previous change.
4099 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4101 * fns.c: Remove code for unsupported system: MAC_OS.
4102 * image.c: Likewise. Include setjmp.h.
4104 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4106 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4107 pixel -1 (bug #4742).
4109 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4111 * process.c (create_pty): Remove conditionals for no longer
4112 supported systems: UNIPLUS and RTU.
4115 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4117 * alloc.c: Do not define struct catchtag.
4118 * eval.c: Move struct catchtag definition ...
4121 * image.c: Move png.h #include earlier to avoid warnings.
4222 * atimer.c: Include setjmp.h. (Bug#4643)
4224 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4226 Remove leftover table unibyte_to_multibyte_table.
4227 * character.c (unibyte_to_multibyte_table): Remove.
4228 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4229 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4230 * character.h (UNIBYTE_TO_CHAR): New macro.
4231 (MAKE_CHAR_MULTIBYTE): Use it.
4232 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4233 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4234 (message_dolog, set_message_1):
4235 * search.c (Freplace_match):
4236 * editfns.c (Fcompare_buffer_substrings):
4237 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4239 * insdel.c (copy_text, count_size_as_multibyte):
4240 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4241 * term.c (produce_glyphs):
4242 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4243 * regex.c (RE_CHAR_TO_MULTIBYTE):
4244 * cmds.c (internal_self_insert):
4245 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4247 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4249 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4251 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4253 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
4255 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4257 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4259 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4260 still needed under Tiger.
4262 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4264 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4267 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4269 2009-10-15 Kenichi Handa <handa@m17n.org>
4271 * print.c (print_object): Escape a symbol like "2E10" too.
4273 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
4275 Cleanups and changes for 64-bit compile under Snow Leopard.
4276 Based on suggestions by Erik Charlebois.
4278 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4280 * nsfont.m (ns_char_width): Replace deprecated call.
4281 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4283 (nsfont_open): Use ns_char_width() everywhere.
4284 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
4286 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4288 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4291 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4293 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4294 Use stringWithUTF8String.
4295 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4297 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4298 Add formal protocol mention to inheritance.
4299 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4301 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4303 (ns_query_color): Use CGFloat where appropriate.
4304 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
4305 (EmacsScroller-mouseDown:): Use long format in printf, and cast
4308 * config.in (NS_HAVE_NSINTEGER): Drop.
4310 * dbusbind.c (dbus-method-return-internal)
4311 (dbus-method-error-internal): Use long format in printf, and cast
4314 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4315 in printf, and cast argument.
4317 * process.c (list_processes_1): Use long format in printf, and
4320 2009-10-11 Glenn Morris <rgm@gnu.org>
4322 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4324 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4326 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4327 menu bar with a small width so it doesn't enlarge the frame.
4329 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4331 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4333 2009-10-06 Glenn Morris <rgm@gnu.org>
4335 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4336 SOME_MACHINE_LISP (this enters indirectly via DOC).
4338 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4340 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4342 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4344 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4347 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4349 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4351 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4353 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4354 used anymore outside fileio.c.
4356 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4358 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4360 * lisp.h (Qdelete_directory_internal):
4361 Declare, instead of Qdelete_directory.
4363 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4365 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4367 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4369 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4371 * fileio.c (Fdelete_directory_internal): Rename from
4372 Fdelete_directory. It is not a command anymore. It has no file
4375 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4377 * xdisp.c (get_next_display_element): Use an enum in last change.
4379 2009-09-28 Kenichi Handa <handa@m17n.org>
4381 * xdisp.c (get_next_display_element): Pay attention to
4382 unibyte_display_via_language_environment in handling
4383 Vnobreak_char_display.
4385 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4387 * nsterm.h (ns_app_name): New extern variable.
4389 * nsterm.m (ns_app_name): New variable.
4390 (ns_term_init): Set and use it.
4391 (ns_term_shutdown): Use it.
4393 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4394 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4396 * nsfns.m (ns_set_name_iconic, ns_set_name)
4397 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4398 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4400 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4401 Remove double-casting in client_data comparison.
4403 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4405 * keyboard.c (make_lispy_event): Remember last wheel direction.
4406 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4408 2009-09-26 Glenn Morris <rgm@gnu.org>
4410 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4411 internal.elc. Add term/pc-win.elc.
4412 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4414 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4417 (lisp): Add NS_SUPPORT.
4418 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4420 2009-09-25 David Reitter <david.reitter@gmail.com>
4422 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4423 on Mac OS X 10.6+ (bug#4513).
4425 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4427 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4428 some parts of Emacs code (like font selection) don't grok them.
4429 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4431 2009-09-24 Andreas Schwab <schwab@redhat.com>
4433 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4435 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4437 * dired.c (Fdirectory_files): Fix typo in docstring.
4439 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4441 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4442 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4443 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4445 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4447 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4450 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4452 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4453 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4455 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4456 deleted (bug #4492).
4458 * nsfont.m (Vns_reg_to_script): New lisp variable.
4459 (syms_of_nsfont): Declare it.
4460 (ns_registry_to_script): New function.
4461 (ns_get_req_script): Call it.
4462 (ns_findfonts): Don't give up on non-unicode registry.
4464 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4466 2009-09-20 Tom Tromey <tromey@redhat.com>
4468 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4469 batch mode (bug#4228).
4471 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4473 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4474 carefully. (Bug #4339)
4476 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4478 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4480 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4482 * emacs.c (inhibit_x_resources): Update doc string for NS.
4483 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4484 legacy code for -NXHost. Fix error printf in daemon case.
4486 * nsterm.h (ns_no_defaults): Remove.
4488 * nsterm.m (ns_no_defaults): Remove.
4489 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4490 (ns_use_qd_smoothing): Remove legacy variable.
4491 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4492 don't update the NSWindow itself.
4493 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4494 state detection and store user rect ourselves. (Bug #3581)
4496 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4497 ns_use_qd_smoothing.
4499 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4500 platform versions. Drop support for emacs-20-style face specs.
4501 (x-close-connection): Drop PSFlush() under OS X.
4502 (x-focus-frame): Activate the app first. (Bug #4180)
4504 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4506 * emacs.c (inhibit_x_resources): New variable.
4507 (main) [HAVE_NS]: Don't process --quick command line option.
4508 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4510 * lisp.h (inhibit_x_resources): Declare it extern.
4512 * w32reg.c (x_get_string_resource):
4513 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4515 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4517 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4518 Add lisp/term/internal.elc.
4520 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4522 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4525 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4527 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4529 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4530 (OBJECTS_MACHINE): Remove, unused.
4532 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4534 * frame.c (x_get_resource_string): Remove unused.
4536 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4538 * xterm.c (x_new_font): Call change_frame_size before calling
4539 x_set_window_size, in case frame size won't change.
4541 * frame.c (x_set_font): Remove dead code.
4543 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4545 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4547 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4549 * lread.c (Fload): Don't output a message after loading an obsolete
4550 package any more (done in Lisp now).
4552 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4554 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4556 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4558 * keymap.c (Fwhere_is_internal): Use nconc2.
4560 2009-09-11 Alan Mackenzie <acm@muc.de>
4562 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4565 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4567 * xdisp.c (display_mode_element): Detect cycles.
4569 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4571 * keymap.c (where_is_internal): Don't erroneously return nil right after
4573 (where_is_internal_1): Fix up typo.
4575 2009-09-11 Glenn Morris <rgm@gnu.org>
4577 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4578 share a common doc-string.
4580 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4582 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4583 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4585 * keymap.c (QCadvertised_binding): New constant.
4586 (syms_of_keymap): Initialize it.
4587 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4590 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4592 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4593 (parse_menu_item): Streamline since bindings are recomputed all the
4594 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4595 more and don't support lmenu's menu-alias any more either.
4597 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4598 (where_is_internal): Strip it down to only traverse the keymaps.
4599 Move the cache handling from Fwhere_is_internal to here.
4600 (Fwhere_is_internal): Move the handling of remapping and the choice of
4601 the best binding from where_is_internal to here.
4602 Unify the cached/noncached paths, so remapping is also handled
4603 correctly when the cache is used, and so the cache can be used to
4604 speed up remap-handling when applicable.
4605 Give preference to non-remapped bindings.
4606 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4607 non-remapped bindings.
4608 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4611 * xdisp.c (display_mode_element): Move list length limit from 50 to
4612 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4614 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4616 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4618 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4620 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4623 * keymap.c (where_is_internal): Filter out shadowed remappings.
4624 Assume that where_is_internal returns unshadowed bindings to simplify
4625 the code and get rid of the gotos. Use ASIZE.
4627 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4629 * xterm.c (x_focus_changed): If we get a focusout and pointer
4630 is invisible, make it visible.
4632 * xterm.h: Remove condition for declaration of
4633 x_*_window_to_frame.
4635 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4637 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4638 initial terminal as well.
4640 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4642 * xterm.h: Rename x_non_menubar_window_to_frame to
4643 x_menubar_window_to_frame.
4645 * xterm.c: Remove declarations also in xterm.h.
4646 (XTmouse_position): Do not return valid positions
4647 for clicks in the menubar and the toolbar for Gtk+.
4649 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4650 if the widget for the event has the same top level as a frame,
4652 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4653 internal windows, bug #4122.
4654 (x_non_menubar_window_to_frame): Remove.
4656 2009-09-02 Glenn Morris <rgm@gnu.org>
4658 * buffer.c (default-major-mode): Move most of the doc from here...
4659 (major-mode): ... to here.
4661 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4663 * process.c (wait_reading_process_output): Keep the descriptor
4664 when pty is used by a non-child process, e.g., in I/O buffer of
4665 GDB this allows inferior to be restarted.
4667 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4669 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4670 both branches into one.
4672 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4674 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4675 (main): Use enable-multibyte-characters rather than
4676 default-enable-multibyte-characters. Output a warning message when
4677 running a unibyte session.
4679 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4681 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4682 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4683 (copy_data_segment): Also copy __program_vars section.
4684 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4685 (dump_it) [LC_DYLD_INFO]: Use it.
4687 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4689 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4691 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4693 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4694 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4696 (clean): Add buildobj.h.
4698 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4700 * print.c (print_object): Set escapeflag to 1 when printing
4701 hashtable keys and values.
4703 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4705 * lread.c (read_integer): Use doubles (and potentially return a float
4706 number) as we do in string-to-number.
4707 (read1): Use strtol to read integers, signal errors on strtol's
4708 overflow and use floats if strtol's output is too large for
4711 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4713 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4714 (make-buildobj-SH): Fix last change.
4715 (SRC): Move to before where it's first used.
4717 2009-08-27 Kenichi Handa <handa@m17n.org>
4719 * process.c (send_process): Use encode_coding_object instead of
4720 encode_coding_string to perform eol-conversion even if the string
4723 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4726 * cmds.c (Fself_insert_command): Avoid unnecessay
4727 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4729 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4731 * callproc.c (Fcall_process): Remove always true #if.
4733 * lisp.h: Replace #if 0 code for checking with text pointing to
4734 the --enable-checking configure flag.
4736 * emacs.c (main): Mention the --enable-profiling configure flag
4737 instead of using CFLAGS.
4739 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4741 * Makefile.in (buildobj.h): New target.
4742 (doc.o): Depend on it.
4743 (temacs${EXEEXT}): Don't generate buildobj.lst.
4744 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4745 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4746 ($(BLD)/doc.$(O)): Depend on it.
4747 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4748 provided by Eli Zaretskii.)
4749 ($(TEMACS)): Don't generate buildobj.lst.
4750 * doc.c: Include buildobj.h.
4751 (buildobj): New static variable.
4752 (Fsnarf_documentation): Use it, instead of opening and reading
4755 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4757 * dbusbind.c (Fdbus_call_method)
4758 (Fdbus_call_method_asynchronously): Use English numeric format for
4759 timeout values in doc string.
4761 2009-08-25 Kenichi Handa <handa@m17n.org>
4763 * alloc.c (mark_char_table): New function.
4764 (mark_object): Use mark_char_table for a char-table.
4766 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4767 (CHAR_TABLE_REF): Use it.
4769 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4771 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4772 before invoking the newly build emacs to check for load-path
4775 2009-08-22 Glenn Morris <rgm@gnu.org>
4777 * Makefile.in (bootstrap_exe): New variable.
4778 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4779 Use ${bootstrap_exe}.
4781 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4783 * coding.h (encode_coding_string): Don't encode unibyte strings.
4786 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4788 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4790 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4791 intended as hotfix only.
4792 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4794 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4796 * nsterm.m (ns_get_color): Update documentation properly for last
4797 change, and clean up loose ends in the code left by it. Fix
4798 longstanding bug with 16-bit hex parsing, and add support for
4799 yet another X11 format (rgb:r/g/b) for compatibility.
4800 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4801 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4803 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4805 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4807 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4809 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4810 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4811 (xd_initialize, xd_pending_messages): Check, whether
4812 $DBUS_SESSION_BUS_ADDRESS is set.
4814 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4816 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4818 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4820 2009-08-20 Glenn Morris <rgm@gnu.org>
4822 * emacs.c (system-type): Doc fix.
4824 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4826 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4827 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4829 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4831 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4833 (xd_initialize): Revert change from 2009-08-16.
4835 2009-08-18 Kenichi Handa <handa@m17n.org>
4837 * fontset.c (Ffontset_font): If a nil element is found in a
4838 font-group vector, return nil.
4840 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4842 * process.c (status_notify): Don't perform redisplay.
4843 (Fdelete_process, list_processes_1, process_send_signal):
4844 Expliticly perform redisplay.
4845 (wait_reading_process_output): Always check process status, but
4846 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4848 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4850 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4851 (XFLOAT_INIT): New macro for storing a float value.
4852 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4853 * fns.c (sxhash): Copy out the value of a float in order to
4855 * dbusbind.c (xd_append_arg): Likewise.
4857 * emacs.c (main): Don't call syms_of_data twice.
4859 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4861 * dbusbind.c (xd_initialize): Add connection file descriptor to
4862 input_wait_mask, in order to let select() detect, whether a new
4863 message has been arrived.
4864 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4866 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4868 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4871 * lisp.h (xd_pending_messages): Declare.
4873 * keyboard.c (readable_events): Call xd_pending_messages.
4875 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4877 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4879 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4881 * buffer.c (set_buffer_internal_1)
4882 (swap_out_buffer_local_variables): Check for unbound local
4883 variables (Bug#4138).
4885 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4887 * process.c (create_pty): Fix last change.
4889 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4891 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4892 (xbm_load_image): Caller changed.
4893 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4895 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4897 * process.c (create_pty): New function.
4898 (Fstart_process): Use it to allow Emacs to just associate a pty
4899 with the buffer. See associated change in gdb-mi.el.
4900 (list_processes_1): Deal with no program name.
4901 (start_process_unwind): Use pid == -2 to mean no process.
4903 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4905 * cmds.c (nonundocount): New global variable.
4906 (keys_of_cmds): Initialize it.
4907 (Fself_insert_command): Use it to combine upto 20 sequential chars
4908 into a single undo entry, just like the Qself_insert_command code in
4910 Call frame_make_pointer_invisible, also like the Qself_insert_command
4911 code in keyboard.c does.
4912 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4913 than its own local replacement for it.
4915 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4917 * fns.c (concat): Don't re-set string length to its current value.
4919 * coding.h (decode_coding_string, encode_coding_string):
4922 * doprnt.c (doprnt_lisp): Delete unused function.
4923 (doprnt): Merge with doprnt1, discarding lispstrings code.
4924 * lisp.h (doprnt_lisp): Don't declare.
4926 2009-08-07 Juri Linkov <juri@jurta.org>
4928 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4930 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4932 * print.c (syms_of_print): Undo previous change.
4934 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4936 * lread.c (read1, syms_of_lread): Read hashtables back from the
4939 * print.c (print_preprocess, print_object): Print hashtables fully
4941 (syms_of_print): Provide 'hashtable-print-readable.
4943 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4945 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4947 (nsfont_open): Handle case when entity has no family.
4949 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4951 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4952 element, not a list, for match case.
4954 2009-07-28 Kenichi Handa <handa@m17n.org>
4956 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4959 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4960 font_parse_xlfd. Check font properties more rigidly.
4962 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4964 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4967 2009-07-27 Kenichi Handa <handa@m17n.org>
4969 * xfaces.c (face_with_height): Call font_clear_prop.
4971 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4973 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4975 * xterm.c (x_term_init): Use Qx.
4977 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4979 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4980 (ns_get_color): Revert 2009-07-16 change.
4982 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4984 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4985 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4987 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4989 * coding.h (decode_coding_string, encode_coding_string):
4992 * lread.c: Rewrite 2009-07-21 changes.
4993 (load_depth): Delete.
4994 (Qload_in_progress): New variable.
4995 (load_unwind): Don't reference load_depth or load_in_progress.
4996 (Fload): Likewise; specbind Qload_in_progress instead.
4997 (init_lread): Don't initialize load_depth.
4998 (syms_of_lread): Initialize and protect Qload_in_progress.
5000 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5002 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5004 2009-07-23 Yavor Doganov <yavor@gnu.org>
5006 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5008 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5010 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
5011 Bugs 3792, 3720, 2402.
5012 (ns_lookup_indexed_color): Check for bad index.
5013 (ns_index_color): Init unused slot to 0.
5014 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5015 Bug 3714, possibly 3082.
5017 2009-07-22 Jason Rumney <jasonr@gnu.org>
5019 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5020 Position IME window at cursor (Bug#2570).
5021 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5022 (globals_of_w32fns): Dynamically load functions required above.
5024 * w32term.c (w32_draw_window_cursor): Send message to reposition
5027 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5029 * fileio.c: Revert 2009-07-16 changes.
5030 (Vauto_save_include_big_deletions): New variable.
5031 (Fdo_auto_save): Disable auto-save only if
5032 auto-save-include-big-deletions is nil.
5034 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5036 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5037 the overflowed pixels into account (Bug#3879).
5039 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
5041 * lread.c (load_depth): New variable.
5042 (Fload, load_unwind, init_lread): Set it to the load recursion
5043 depth; set load_in_progress as a simple boolean based on the
5044 current load_depth. (Bug#3892)
5046 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5048 * nsfont.m (ns_has_attribute): Remove.
5049 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5051 2009-07-18 Juri Linkov <juri@jurta.org>
5053 * process.c (Fset_process_query_on_exit_flag): Mention killing
5054 a buffer in docstring.
5056 2009-07-17 Kenichi Handa <handa@m17n.org>
5058 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5060 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5062 * nsfns.m (Fns_set_alpha): Remove function.
5063 (syms_of_nsfns): Don't defsubr it.
5065 * nsterm.m (ns_get_color): Remove incompatible color formats.
5066 (ns_color_to_lisp): Generate #rrggbb color format string.
5068 2009-07-16 Richard Stallman <rms@gnu.org>
5070 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5071 (Fset_buffer_auto_saved): Handle save_length = -2.
5073 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
5075 * xterm.c (Qx_gtk_map_stock): New var.
5077 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5078 of calling intern each time.
5080 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5082 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5085 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5087 2009-07-14 Kenichi Handa <handa@m17n.org>
5089 * font.c (font_vconcat_entity_vectors): New function.
5090 (struct font_sort_data): New member font_driver_preference.
5091 (font_compare): Check font_driver_preference.
5092 (font_sort_entities): The format of the first argument changed.
5093 (font_delete_unmatched): Likewise.
5094 (font_list_entities): The return type changed.
5095 (font_select_entity): The format of the second argument changed.
5096 (font_find_for_lface): Adjuste for the above changes.
5097 Don't suppress the checking of C even if the repertory supports it.
5098 (Flist_fonts): Adjust for the above changes.
5100 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5101 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
5102 Reject a font who has adstyle property that is different from a
5103 langname derived from registry property.
5104 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
5106 2009-07-13 Eli Zaretskii <eliz@gnu.org>
5108 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5109 local copy of dirfilename.
5111 2009-07-13 Kenichi Handa <handa@m17n.org>
5113 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5116 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5117 calling XSYMBOL (sym).
5119 2009-07-11 Eli Zaretskii <eliz@gnu.org>
5121 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5123 (directory_files_internal) [WINDOWSNT]:
5124 Bind w32-get-true-file-attributes to either t or nil, depending whether
5125 the filesystem of the directory is fast or slow.
5127 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5129 (is_slow_fs): New function.
5130 (stat): Use it to determine whether to issue more system calls to
5131 get accurate file attributes, when w32-get-true-file-attributes is
5134 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5136 * xfns.c (Fx_select_font): Remember last font selected in
5137 x_last_font_name and use that the next time. Also try the frame
5138 parameter font-parameter as default to the font dialog.
5140 2009-07-10 Kenichi Handa <handa@m17n.org>
5142 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5144 2009-07-09 Eli Zaretskii <eliz@gnu.org>
5146 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5148 * w32.c (stat): Treat UNC file names as residing on remote
5151 2009-07-09 Kenichi Handa <handa@m17n.org>
5153 * fontset.c (fontset_find_font): Fix previous change.
5155 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
5157 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5158 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5161 2009-07-08 Kenichi Handa <handa@m17n.org>
5163 * fontset.c (fontset_find_font): Fix the logic of handling
5165 (font_for_char): Delete unused var.
5166 (generate_ascii_font_name): Delete it.
5168 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5170 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5171 (encode_coding_sjis): Fix the code range check.
5173 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
5175 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5176 (Fexpand_file_name): Copy string data properly (Bug#3772).
5178 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5180 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5183 2009-07-07 Kenichi Handa <handa@m17n.org>
5185 * character.h (unibyte_has_multibyte_table): Delete extern.
5186 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5188 * charset.c (Fset_charset_priority): Update charset_unibyte.
5189 (syms_of_charset): Initialize charset_unibyte.
5191 * character.c (unibyte_has_multibyte_table): Delete it.
5192 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5194 (multibyte_char_to_unibyte_safe): Likewise.
5195 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5197 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
5198 (x_produce_glyphs): Likewise.
5200 * .gdbinit (xcharset): Fix the treating $arg0.
5202 2009-07-04 Eli Zaretskii <eliz@gnu.org>
5204 Emulation of `getloadavg' on MS-Windows.
5205 * w32.c: Include float.h.
5206 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5207 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5208 (get_native_system_info, get_system_times): New functions.
5209 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5210 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5211 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5212 g_b_init_get_system_times, and num_of_processors.
5214 2009-07-03 Jason Rumney <jasonr@gnu.org>
5216 * w32term.c (w32_initialize): Use standard types.
5218 2009-07-03 Eli Zaretskii <eliz@gnu.org>
5220 * dired.c (Ffile_attributes): Decode user and group names by the
5221 locale's encoding. (Bug#3443)
5223 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5225 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5226 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5228 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5230 * term.c (init_tty): Remove spurious #ifdef.
5232 * m/mips.h: Mention this file is also used for netbsd.
5233 * m/pmax.h: Remove file.
5235 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5237 * xterm.h (struct x_display_info): Add invisible_cursor.
5238 (struct x_output): Add current_cursor.
5240 * xterm.c (XTtoggle_invisible_pointer): New function.
5241 (x_define_frame_cursor): Don't define cursor if invisible or the
5242 same as before. Set current_cursor.
5243 (x_create_terminal): Set toggle_invisible_pointer_hook.
5245 * xfns.c (make_invisible_cursor): New function.
5246 (x_set_mouse_color): Call make_invisible_cursor.
5248 (x_window): Set current_cursor.
5250 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5252 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5253 inserting a character.
5254 (read_avail_input): Call frame_make_pointer_visible.
5256 * frame.c (Vmake_pointer_invisible): New variable.
5257 (frame_make_pointer_invisible, frame_make_pointer_visible):
5259 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5261 * frame.h: Declare frame_make_pointer_invisible and
5262 frame_make_pointer_visible.
5263 (struct frame): Add pointer_invisible.
5265 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5267 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5268 frame isn't visible.
5269 (xg_frame_resized): If width/height is -1, get size of window
5272 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5275 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
5276 here or call change_frame_size. Just call flush_and_sync.
5277 (flush_and_sync): Reintroduce.
5279 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
5281 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
5283 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5284 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5286 * frame.h: Declare Qsticky.
5288 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5290 * nsfns.m (ns_frame_parm_handlers): Ditto.
5292 * frame.c: Declare Qsticky.
5293 (frame_parms): Add sticky.
5295 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5297 * xterm.h: Declare x_set_sticky.
5299 * xterm.c (x_set_sticky): New function.
5301 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5302 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5303 xg_tool_bar_proxy_help_callback.
5305 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5307 * frame.c: Qmaximized is new.
5308 (x_set_frame_parameters): Do not handle fullscreen specially.
5309 Only set width and height if explicitly set.
5310 (x_set_fullscreen): Handle Qmaximized.
5311 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5312 (syms_of_frame): Initialize Qmaximized.
5314 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5315 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5317 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5318 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5319 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5320 set gravity to NorthWestGravity when USE_GTK.
5321 (set_wm_state): New function.
5322 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5323 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5324 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5325 or the case when no window manager is running. That means remove calls
5326 to x_real_positions and x_fullscreen_adjust.
5328 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5329 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5331 (xg_height_changed): New function.
5332 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5333 and gtk_window_set_policy. Set frame gravity after parsing the
5335 (xg_update_frame_menubar, free_frame_menubar)
5336 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5337 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5338 Remove calls to xg_frame_set_char_size.
5340 2009-07-01 Kenichi Handa <handa@m17n.org>
5342 * keyboard.c (decode_keyboard_code): New function.
5343 (tty_read_avail_input): Decode the input bytes if necessary.
5345 * coding.c (setup_coding_system):
5346 Initialize coding->carryover_bytes to 0.
5347 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5350 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5352 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5354 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5356 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5358 2009-06-30 Jason Rumney <jasonr@gnu.org>
5360 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5362 Set user model ID if supported (bug#1849).
5364 2009-06-29 Jim Meyering <meyering@redhat.com>
5366 Remove useless if-before-xfree test.
5367 * nsfont.m (nsfont_close): Remove useless test.
5368 * term.c (delete_tty): Likewise.
5369 * w32.c (system_process_attributes): Likewise.
5370 * w32font.c (w32font_close): Likewise.
5371 * xfaces.c (x_free_gc): Likewise.
5372 * xselect.c (buffer): Likewise.
5374 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5376 * process.c (send_process): Keep decoded string in a local
5377 variable and protect it from GC. (Bug#3521)
5379 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5381 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5382 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5384 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5386 * xdisp.c (start_display, handle_face_prop)
5387 (move_it_vertically_backward, cursor_row_fully_visible_p)
5388 (redisplay_window, try_window_id, produce_image_glyph):
5389 Delete some #ifdef-ed out code chunks that are now obsolete.
5391 * xterm.c (x_update_window_begin, x_new_focus_frame)
5392 (x_scroll_bar_handle_click, handle_one_xevent)
5393 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5394 (x_make_frame_visible, x_make_frame_invisible)
5395 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5396 code chunks that are now obsolete.
5398 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5400 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5401 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5402 for hours, when optimzation is enabled.
5403 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5404 (xd_read_message): Make them static.
5406 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5408 * term.c (turn_on_face): Allow simultaneously bold and dim
5409 terminal faces (Bug#3530).
5411 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5413 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5415 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5416 truncation glyphs (Bug#3686).
5418 2009-06-27 Glenn Morris <rgm@gnu.org>
5420 * m/pmax.h: Restore file, with only netbsd portions.
5422 2009-06-26 David Reitter <david.reitter@gmail.com>
5424 * nsterm.m (keydown): Avoid infinite loop.
5426 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5428 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5429 the arg FORCE_SYMBOL.
5431 2009-06-25 Kenichi Handa <handa@m17n.org>
5433 * fontset.c (fontset_find_font): When a usable rfont_def is found
5434 in a fallback font-group, make it the first element of the group.
5436 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5438 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5440 2009-06-24 Kenichi Handa <handa@m17n.org>
5442 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5444 (fontset_font): Record the availability of a font for C both in
5445 the realized fontsets of the current one and the default one.
5447 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5449 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5450 conditional, it is always defined on AIX.
5452 2009-06-23 Miles Bader <miles@gnu.org>
5454 * window.c (Vrecenter_redisplay): New variable.
5455 (syms_of_window): Initialize it.
5456 (Qtty): New extern declaration.
5457 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5459 2009-06-23 Jim Meyering <meyering@redhat.com>
5461 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5462 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5463 pointer dereferences are guaranteed to be valid.
5465 2009-06-23 Kenichi Handa <handa@m17n.org>
5467 * emacs.c (main): Call init_font ().
5469 * font.h (Vfont_log): Extern it.
5470 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5472 * font.c (font_sort_entities, font_list_entities)
5473 (font_matching_entity, font_open_entity)
5474 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5475 (Vfont_log): Delete static.
5476 (font_log_env_checked): Delete this variable.
5477 (font_add_log): Don't check font_log_env_checked.
5478 (font_deferred_log): Check Vfont_log.
5479 (init_font): New function.
5481 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5483 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5485 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5487 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5489 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5490 (face_for_char): Don't call font_deferred_log here.
5491 (font_for_char): Likewise.
5493 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5495 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5496 rather than its background_width for drawing the overline and
5497 underline (Bug#489).
5499 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5500 rather than its background_width for drawing the overline and
5501 underline (Bug#489).
5502 (xg_default_icon_file): New variable.
5503 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5504 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5506 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5507 (load_overlay_strings): Remove externs.
5508 (fast_find_position): Function deleted.
5509 (mouse_face_from_buffer_pos): New function, based on
5510 fast_find_position. Correctly handle before-strings,
5511 display-strings, and after-strings (Bug#1220).
5512 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5514 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5516 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5517 (move_it_in_display_line_to, move_it_in_display_line_to)
5518 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5520 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5524 2009-06-21 Jason Rumney <jasonr@gnu.org>
5526 * w32term.c (keyboard_codepage): New static variable.
5527 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5528 (w32_read_socket) [WM_CHAR]: Use it to decode character
5530 (w32_initialize): Initialize it.
5531 (codepage_for_locale): New function.
5533 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5535 * process.c (status_message): Pass Faset index argument as a lisp
5536 object, so as to work with USE_LISP_UNION_TYPE.
5538 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5540 * coding.c (Ffind_coding_systems_region_internal):
5541 Cache checked characters.
5543 2009-06-18 Kenichi Handa <handa@m17n.org>
5545 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5547 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5549 * xdisp.c (redisplay_internal): Check that the frame is still
5550 live after redisplay of its windows.
5551 (redisplay_windows): Check that the window is still live.
5553 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5555 * coding.c (detect_coding_utf_16): Fix previous change.
5557 2009-06-16 Kenichi Handa <handa@m17n.org>
5559 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5560 UTF-16 by checking the dispersion of Eth and Oth bytes.
5562 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5564 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5566 2009-06-15 Kenichi Handa <handa@m17n.org>
5568 * process.c (status_message): Fix previous change. Be sure to
5569 decode a localized string.
5571 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5573 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5574 add comment explaining why.
5576 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5578 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5580 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5582 * nsfont.m (ns_attribute_value): Remove.
5583 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5584 (ns_has_attribute): Shrink the normal range.
5585 (ns_findfonts): Don't worry about requested spec in determining
5587 (ns_get_covering_families): Retain scriptToFamilies.
5589 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5591 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5593 2009-06-11 Kenichi Handa <handa@m17n.org>
5595 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5596 overhang for the static composition case.
5598 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5600 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5601 overhang for the automatic composition case.
5603 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5606 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5608 * xdisp.c (get_next_display_element): When handling wrap-prefix
5609 and line-prefix, treat \n as a control character (bug#3502).
5611 2009-06-10 Kenichi Handa <handa@m17n.org>
5613 * font.c (font_parse_family_registry): Fix for one-char foundry.
5614 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5616 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5618 * process.c (status_message): Fix handling of multibyte signal
5621 2009-06-09 Jim Meyering <meyering@redhat.com>
5623 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5624 color name is missing.
5626 2009-06-09 Kenichi Handa <handa@m17n.org>
5628 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5629 FROM-CODE and TO-CODE are codepoints of CHARSET.
5631 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5633 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5635 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5637 Changes to support :script/:lang/:otf in NS font driver.
5638 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5639 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5640 indicate not part of font driver interface, and change callers.
5641 (ns_get_family): Remove pointless null check.
5642 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5643 ns_spec_to_descriptor, ns_descriptor_to_entity.
5644 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5645 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5646 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5647 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5648 (ns_get_req_script, ns_accumulate_script_ranges)
5649 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5651 (nsfont_list, nsfont_match): Use ns_findfonts.
5652 (nsfont_open): Use font descriptor instead of traits.
5653 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5654 (dump_glyphstring): Rename to ns_dump_glyphstring.
5656 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5658 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5660 * fontset.c (fontset_from_font): Remove NS-specific code.
5662 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5664 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5667 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5669 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5671 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5673 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5675 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5677 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5678 account for the overflowing of newlines into the last glyph on the
5679 display line (Bug#3482).
5681 2009-06-05 David Reitter <david.reitter@gmail.com>
5683 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5684 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5685 Fns_selection_exists_p, Fns_selection_owner_p.
5687 2009-06-03 Jason Rumney <jasonr@gnu.org>
5689 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5690 available. (Bug#3379)
5692 2009-05-29 Kenichi Handa <handa@m17n.org>
5694 * coding.c (get_translation_table):
5695 Check Venable_character_translation.
5697 2009-05-26 David Reitter <david.reitter@gmail.com>
5699 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5700 (x_make_frame_visible): Move frame to front rather than calling
5702 (keyDown:): Do not swallow events that aren't re-sent if frame
5704 (drawRect:): Do not set visibility/iconified flags because
5705 drawRect may be called by NSView even if the frame is hidden.
5707 * nsfns.m (Fx_create_frame): Follow other ports in
5708 determining visibility; default to t. Ensure async_visible is set.
5710 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5712 * dired.c (Ffile_attributes): Doc fix.
5714 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5716 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5718 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5720 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5721 and xfont_scratch_props.
5722 (syms_of_xfont): Do it here instead.
5723 (xfont_find_ccl_program): Delete, unused.
5724 (xfont_open): Delete unused var `i'.
5726 2009-05-21 Kenichi Handa <handa@m17n.org>
5728 * fontset.c (Qlatin): Don't make it static.
5730 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5732 (xfont_scripts_cache, xfont_scratch_props): New variables.
5733 (Qlatin, Vscalable_fonts_allowed): Extern it.
5734 (xfont_list_pattern): Argument changed. Callers changed.
5735 Check Vscalable_fonts_allowed. Check the support of a script.
5736 (xfont_list): Don't reject a font spec with :script property.
5737 (xfont_has_char): Fix setting of encoding.
5738 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5739 xfont_scratch_props.
5741 2009-05-19 Kenichi Handa <handa@m17n.org>
5743 * font.c (font_sort_entities): Rename from font_sort_entites.
5746 2009-05-18 Kenichi Handa <handa@m17n.org>
5748 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5750 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5752 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5753 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5755 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5757 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5758 (x_delete_terminal): Dissociate resource database from display and
5759 then call XrmDestroyDatabase before closing display.
5761 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5763 * nsterm.m (ns_read_socket): Remove unused variable.
5764 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5765 whether selected frame is viable before raising it (based on patch
5766 by David Reitter), and improve commentary.
5767 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5769 2009-05-15 Kenichi Handa <handa@m17n.org>
5771 * font.c (Ffont_spec): Check arguments.
5773 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5775 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5776 weight when testing attributes (Bug#3282).
5778 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5780 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5781 what we expect to get in the next ConfigureNotify event.
5783 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5784 before Xft one (Bug#1696).
5786 2009-05-07 David Reitter <david.reitter@gmail.com>
5788 * nsfns.m (Fx_display_planes): Compute bitplanes using
5789 NSBitsPerPixelFromDepth (Bug#3207).
5791 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5793 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5795 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5797 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5799 2009-05-07 David Reitter <david.reitter@gmail.com>
5801 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5802 Respect mouse face background.
5804 2009-05-07 David Reitter <david.reitter@gmail.com>
5806 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5807 Mouse movement/highlight: bracket drawing operations
5808 in ns_update_begin and ns_update_end.
5810 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5812 * nsfns.m (ns_get_screen): Rewrite.
5813 Don't presume selected-frame is of type `ns'.
5815 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5818 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5820 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5822 * keyboard.h (add_user_signal): Fix typo in extern.
5824 * lisp.h (add_user_signal): Remove extern.
5826 * unexelf.c (unexec): Consider a section to precede the .bss section
5827 if its addresses overlap that of .bss.
5828 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5829 instead of dumping process.
5831 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5833 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5835 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5837 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5839 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5841 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5844 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5846 * process.c (read_process_output): Make sure the current buffer is
5849 * coding.c (record_conversion_result): Don't modify
5850 Vlast_code_conversion_error for successful result.
5851 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5853 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5855 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5856 (load_charset_map): Remove unnecessary code.
5858 2009-04-30 David Reitter <david.reitter@gmail.com>
5860 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5863 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5865 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5867 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5868 face_at_buffer_position.
5869 (face_before_or_after_it_pos, get_next_display_element)
5870 (note_mouse_highlight): Update face_at_buffer_position call.
5872 * term.c (term_mouse_highlight):
5873 * msdos.c (IT_note_mouse_highlight):
5874 * fontset.c (Finternal_char_font):
5875 * font.c (font_at, font_range): Update face_at_buffer_position call.
5877 * dispextern.h (face_at_buffer_position): Update prototype.
5879 2009-04-30 Kenichi Handa <handa@m17n.org>
5881 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5883 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5885 * callproc.c (Fcall_process): Fix GC protection. Make sure
5886 current buffer is always restored.
5888 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5890 * atimer.c (init_atimer): Also clear stopped_atimers.
5892 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5894 * process.c (create_process): Clean up merger residues of
5897 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5899 * lread.c (Vread_circle): New variable.
5900 (read1): Disable recursive read if Vread_circle is nil.
5902 2009-04-29 Kenichi Handa <handa@m17n.org>
5904 * fontset.h (set_default_ascii_font): Delete extern.
5906 * fontset.c (set_default_ascii_font): Delete this unused function.
5908 * frame.c (x_set_font): When ARG is a font-object, check if the
5909 font-object matches with the ASCII font-spec of the frame's
5910 fontset. If not, create a new fontset for the frame. (Bug #3075)
5912 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5914 * fns.c (Flocale_info): Protect vector from GC during decoding.
5916 * process.c (Fstart_process): Protect argv strings from GC during
5919 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5921 * sysdep.c: Include <ctype.h>.
5923 2009-04-27 David Reitter <david.reitter@gmail.com>
5925 * nsfont.m (nsfont_open): Remove unused variable shrink.
5926 Remove commented-out code.
5928 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5930 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5932 2009-04-25 Jason Rumney <jasonr@gnu.org>
5934 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5936 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5938 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5939 Swap bytes in short integer if fringe bitmap width > 8.
5941 2009-04-23 Kenichi Handa <handa@m17n.org>
5943 * xfaces.c (Fx_list_fonts): If a font size is specified in
5944 PATTERN, set it in returned scalable fonts.
5946 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5948 * keyboard.c (Fset_input_meta_mode): Doc fix.
5950 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5952 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5954 * coding.c (Fterminal_coding_system): Doc fix.
5956 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5957 (Fx_display_pixel_height, Fx_display_planes)
5958 (Fx_display_color_cells, Fx_server_max_request_size)
5959 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5960 (Fx_display_mm_height, Fx_display_mm_width)
5961 (Fx_display_backing_store, Fx_display_visual_class)
5962 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5963 Doc fixes, replacing "terminal id" with "terminal object".
5964 (check_x_display_info): Handle terminal objects instead of
5967 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5968 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5969 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5970 Doc fixes, replacing "terminal id" with "terminal object".
5972 2009-04-21 Kenichi Handa <handa@m17n.org>
5974 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5975 (font_score): Check AVGWIDTH too.
5977 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5979 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5980 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5982 2009-04-19 Jason Rumney <jasonr@gnu.org>
5984 The following changes fix Bug#3005 for wide glyphs on each platform,
5985 without reintroducing Bug#1258 for stretch glyphs.
5987 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5988 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5989 get_phys_cursor_geometry.
5991 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5992 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5993 using get_phys_cursor_geometry.
5995 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5996 correctly calculated.
5998 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6000 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6001 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
6002 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6005 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6007 * font.c (font_put_frame_data): Use xfree instead of free.
6009 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
6011 * w32font.c (Qja, Qko): Remove declarations.
6012 (syms_of_w32font): Don't DEFSYM them.
6014 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
6016 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6018 * font.h (Qja, Qko): Extern them.
6020 * ftfont.c (Qja, Qko): Remove declarations.
6022 * xfont.c (Qja, Qko): Remove declarations.
6024 2009-04-17 Kenichi Handa <handa@m17n.org>
6026 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6027 string from a vector to handle Latin-1 characters correctly.
6029 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6030 entity even if the cache hits.
6032 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6034 * search.c (boyer_moore): Use zero as marker value for a possible
6035 match instead of depending on overflow behavior. (Bug#2844)
6037 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6038 * lisp.h: Adjust prototypes.
6040 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
6042 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6045 2009-04-16 Kenichi Handa <handa@m17n.org>
6047 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
6049 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6052 * ftfont.c (Qja, Qko): Don't make them static.
6053 (enum ftfont_cache_for): New enum.
6054 (fc_charset_table): Undo the previous change.
6055 (ftfont_get_latin1_charset): Delete it.
6056 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6057 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
6058 non-scarable font, try to get AVERAGE_WIDTH.
6059 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6060 Change ft_face_cache from a list of a hash-table. Don't check
6061 `ja' and `ko' adstyle here.
6062 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6063 FTFONT_CACHE_FOR_CHARET.
6064 (ftfont_get_charset): Undo the previous change.
6065 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
6066 (ftfont_close): Likewise.
6067 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6069 * font.c (font_sort_entites): Change the meaning of the arg
6070 BEST-ONLY. Don't optimize for VEC of lenght 1.
6071 (font_select_entity): Just return the value of font_sort_entites.
6073 * xfaces.c (merge_face_vectors): Reflect font properties in
6074 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6075 font_clear_prop if a face attribute doesn't change.
6077 * charset.h (charset_ksc5601): Extern it.
6079 * charset.c (charset_ksc5601): New variable.
6080 (Fdefine_charset_internal): Set charset_ksc5601.
6081 (init_charset_once): Initialize charset_ksc5601 to -1.
6083 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6085 * fileio.c (history_delete_duplicates): Remove unused declaration.
6087 * callint.c (history_delete_duplicates): New declaration.
6088 (Fcall_interactively): Remove command history duplicates when
6089 history_delete_duplicates is true.
6091 2009-04-14 Eli Zaretskii <eliz@gnu.org>
6093 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6095 2009-04-14 Kenichi Handa <handa@m17n.org>
6097 * font.c (Ffont_info): Fix docstring. Fix the second element of
6098 the returned value (bug#2949).
6100 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
6102 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6104 2009-04-14 Kenichi Handa <handa@m17n.org>
6106 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6107 encoding charset is ascii_compatible.
6109 * charset.c (Fdefine_charset_internal): Make charset
6110 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6111 code_offset is 0, and covers all ASCII characters.
6113 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6115 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6116 (ns_string_to_pasteboard_internal):
6117 * nsmenu.m (process_dialog):
6118 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6119 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6120 * lisp.h (Fx_load_color_file): Declare.
6122 2009-04-13 Kenichi Handa <handa@m17n.org>
6124 * font.c (font_delete_unmatched): Preserve the order of list elements.
6125 (font_select_entity): Suppress the code to optimize for the same
6127 (font_load_for_lface): Get a font that supports at least ASCII
6130 * ftfont.c (Qja, Qko): New variables.
6131 (fc_charset_table): Delete uniquifier data for iso8859-1.
6132 (ftfont_get_latin1_charset): New function.
6133 (get_adstyle_property): New function.
6134 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6136 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6137 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6139 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
6140 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
6141 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6143 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6144 (syms_of_ftfont): DEFSYM Qja and Qko.
6146 2009-04-09 Kenichi Handa <handa@m17n.org>
6148 * charset.c (map_charset_chars): For a charset of `superset'
6149 method, fix calculation of code range.
6151 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6152 from the list of extra properties.
6153 (font_clear_prop): Be sure to delete `:name' font property.
6155 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6157 * dispnew.c (redraw_overlapping_rows): Fix detection of
6158 overlapping for topmost and bottommost rows.
6160 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
6162 2009-04-06 Jason Rumney <jasonr@gnu.org>
6164 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6166 2009-04-06 Kenichi Handa <handa@m17n.org>
6168 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6170 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6172 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6174 * ftfont.c (ftfont_open): Fix checking of the return value of
6175 FT_Load_Char. Fix setting font->underline_thickness.
6177 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
6179 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6180 (Fterminal_parameters, Fterminal_parameter)
6181 (Fset_terminal_parameter): In doc string, refer to terminal
6182 objects rather than terminal ids.
6184 2009-04-04 Eli Zaretskii <eliz@gnu.org>
6186 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6187 ret_lim_data. (Bug#2867)
6189 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
6191 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6192 so they don't get wider than the window, matching 2006-01-23
6193 change to the partner function in xdisp.c (Bug#2800).
6195 2009-04-03 Kenichi Handa <handa@m17n.org>
6197 * print.c (print_object): Make each lowest sub_char_table start a
6198 new line (Bug#2866).
6200 2009-04-02 Kenichi Handa <handa@m17n.org>
6202 * fontset.c (fontset_font): Record no-font when a fontset
6203 explicitly tells not to try another font-specs.
6205 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6207 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6209 2009-03-30 Kenichi Handa <handa@m17n.org>
6211 * fontset.c (fontset_from_font): Specify only registry in a
6212 font-spec for all characters supported by that registry.
6214 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6215 even if HAVE_M17N_FLT is not defined.
6217 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6219 * ftfont.c: Conditionalize prototyping and use of
6220 ftfont_variation_glyphs.
6222 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6224 * frame.c (delete_frame): Work around compiler bug.
6226 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6227 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6228 Some more EMACS_INT.
6229 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6231 * xdisp.c (dump_glyph): Fix typo.
6233 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6234 (adjust_markers_gap_motion, adjust_markers_for_delete)
6235 (adjust_markers_for_insert, adjust_point)
6236 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6237 (make_gap, copy_text, count_size_as_multibyte, insert)
6238 (insert_and_inherit, insert_before_markers)
6239 (insert_before_markers_and_inherit, insert_1)
6240 (count_combining_before, count_combining_after, insert_1_both)
6241 (insert_from_string, insert_from_string_before_markers)
6242 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6243 (insert_from_buffer_1, adjust_after_replace)
6244 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6245 (replace_range_2, del_range, del_range_1, del_range_byte)
6246 (del_range_both, del_range_2, modify_region)
6247 (prepare_to_modify_buffer, signal_before_change)
6248 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6249 for buffer positions and sizes.
6250 * lisp.h: Adjust prototypes accordingly.
6252 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6253 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6254 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6256 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6258 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6260 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6261 lines and columns so we keep the same pixel height and width.
6263 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6264 the property _NET_WM_STATE has changed.
6265 (x_handle_net_wm_state): New function to update frame parameter
6267 (x_term_init): Initialize atoms for _NET_WM_STATE.
6269 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6271 2009-03-27 Kevin Ryde <user42@zip.com.au>
6273 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6274 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6275 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6276 (Fgpm_mouse_stop): Pass that new parameter.
6277 * termhooks.h (close_gpm): Adjust prototype.
6279 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6281 * lisp.h (Fx_focus_frame): Declare.
6283 * callint.c (Fcall_interactively): For '^' just delegate the work to
6284 handle-shift-selection.
6285 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6287 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
6289 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6291 * data.c (Qinteractive_form): New variable.
6292 (Finteractive_form): Use it.
6294 * eval.c (Fcommandp): Use Qinteractive_form.
6296 2009-03-24 Jason Rumney <jasonr@gnu.org>
6298 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6299 Calculate total size precisely. Decode environment variables
6300 before substituting. (Bug#38)
6302 2009-03-24 Kenichi Handa <handa@m17n.org>
6304 * font.c (find_font_encoding): Return Qnil for unsupported
6305 encoding (Bug#2722).
6307 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6309 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6312 2009-03-22 Alan Mackenzie <acm@muc.de>
6314 * callint.c (Finteractive): Clarify the doc string - even
6315 promptless elements need \n separators.
6317 2009-03-22 Jason Rumney <jasonr@gnu.org>
6319 * w32term.c (syms_of_w32term): Doc fix for
6320 x-use-underline-position-properties.
6322 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6324 * w32.c (getpwuid): Change argument type to unsigned.
6325 (struct w32_id): Change type of `rid' member to unsigned.
6326 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6327 argument ID to unsigned. All callers changed.
6328 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6330 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6332 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6333 negative, produce a float value.
6335 * dired.c (make_uid, make_gid): New functions.
6336 (Ffile_attributes): Use them to avoid negative UID and GID.
6338 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6340 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6341 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6342 Fix typos in docstrings.
6344 2009-03-19 Kenichi Handa <handa@m17n.org>
6346 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6347 changed, use font_load_for_lface to get a new font object.
6348 Call free_realized_fontset after handling ASCII font change.
6350 * frame.c (x_set_font): Handle the case that ARG is a cons.
6352 2009-03-19 Glenn Morris <rgm@gnu.org>
6354 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6356 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6358 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6360 2009-03-19 Kenichi Handa <handa@m17n.org>
6362 * charset.c (load_charset_map_from_file): When a mapfile can't be
6363 loaded, signal an error.
6365 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6367 * dired.c (Ffile_attributes): Make sure UID and GID are always
6368 positive, even if the value is too large for a positive EMACS_INT.
6371 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6373 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6375 * xmenu.c (xdialog_show): Move Fredisplay call ...
6376 (Fx_popup_dialog): ... here.
6378 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6380 * dired.c (file_name_completion): Disable the first optimization just
6381 installed, since it is not implemented correctly.
6383 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6385 * dired.c (file_name_completion): Check completion-ignored-extensions
6386 only if the entry can affect bestmatch.
6387 Stop the search early, as Ftry_completion already does.
6389 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6391 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6393 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6395 * keyboard.c (parse_menu_item): Don't display remappings as menu
6396 equivalent bindings (Bug#788).
6398 2009-03-15 Jason Rumney <jasonr@gnu.org>
6400 * w32term.h (WM_EMACS_PAINT): New message.
6401 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6402 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6403 before passing to lisp thread. (Bug#950)
6405 2009-03-14 David Reitter <david.reitter@gmail.com>
6407 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6408 variable as it was never reset.
6409 (ns_term_init): Remove initialization of Lisp-settable defaults
6410 and ns_expand_space.
6411 (-setPanelFromDefaultValues): Remove ns_expand_space.
6412 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6413 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6414 i.e. no additional spacing, similar to Carbon port.
6416 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6417 * nsfns.m (ns-popup-prefs-panel): Remove.
6419 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6421 * sound.c (alsa_configure): Remove call to deprecated
6422 snd_pcm_sw_params_set_xfer_align.
6424 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6426 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6427 after clicking in a detached tool bar.
6428 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6430 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6432 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6433 int/Lisp_Object mixup).
6435 2009-03-13 Kenichi Handa <handa@m17n.org>
6437 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6438 Handle NAME nil and t correctly. Callers changed.
6439 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6440 (set_fontset_font): Change ARG to a vector. Handle range_list in
6442 (Fset_fontset_font): Fix the case that TARGET is both a script
6443 name and charset name. Adjust the arg to set_fontset_font for
6445 (fontset_from_font): Fix previous change.
6446 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6447 entry. If FONTSET is the default fontset, don't set the extra
6448 slot of the returning char-table.
6450 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6452 * nsfns.m (Fx_close_connection): Doc fix.
6453 (Fns_do_applescript): Reflow docstring.
6454 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6455 (Fx_display_pixel_width, Fx_display_pixel_height)
6456 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6457 Fix typos in docstrings.
6458 (Fns_set_alpha): Fix typos in error messages.
6460 2009-03-12 David Reitter <david.reitter@gmail.com>
6462 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6463 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6464 were used for such events.
6466 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6467 (toggleToolbar, performDragOperation, runHelp): Use it.
6469 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6470 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6472 2009-03-11 Kenichi Handa <handa@m17n.org>
6474 * font.h (font_open_by_spec): Extern it.
6476 * font.c (font_open_by_spec): New function.
6477 (font_open_by_name): Use font_open_by_spec.
6479 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6480 fontset of the frame.
6482 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6483 modify the default font of frames that use this fontset.
6484 (num_auto_fontsets): New variable.
6485 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6486 name. Be sure to set FONTSET_ASCII to the correct font name.
6487 (update_auto_fontset_alist): New function.
6489 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6491 * makefile.w32-in: Update dependencies.
6493 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6495 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6497 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6499 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6501 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6503 * lread.c (Feval_buffer): Doc fix.
6505 2009-03-09 Kenichi Handa <handa@m17n.org>
6507 * charset.c (Qfile_name_handler_alist): Extern it.
6508 (load_charset_map_from_file): Temporarily bind
6509 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6511 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6513 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6514 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6516 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6518 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6519 (x_set_window_size): Change back to calculated method of setting
6520 toolbar height under Cocoa. (Bug#2546)
6521 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6522 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6524 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6526 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6527 accelerator in parens under GNUstep.
6529 2009-03-06 Kenichi Handa <handa@m17n.org>
6531 These changes are to detect incorrect composition sequence without
6532 looking ahead the source. (Bug#2370)
6534 * coding.h: Include "composite.h".
6535 (enum compisition_state): New enum.
6536 (struct compisition_status): New struct.
6537 (struct iso_2022_spec): New member cmp_status.
6538 (struct emacs_mule_spec): New struct.
6539 (struct coding_system): New members ctext_extended_segment_len and
6540 embedded_utf_8. Change the union member
6541 spec.emacs_mule_full_support to spec.emacs_mule.
6543 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6544 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6545 (MAX_ANNOTATION_LENGTH): Define to 5.
6546 (ADD_COMPOSITION_DATA): New arg nbytes.
6547 (emacs_mule_char): New arg cmp_status.
6548 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6549 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6550 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6551 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6552 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6553 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6554 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6555 (EMACS_MULE_COMPOSITION_END): New macro.
6556 (emacs_mule_finish_composition): New function.
6557 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6558 (decode_coding_emacs_mule): Avoid long looking ahead while
6559 handling composition.
6560 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6561 (ENCODE_COMPOSITION_RULE): New macro.
6562 (finish_composition): New function.
6563 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6564 (DECODE_COMPOSITION_START): New implementation.
6565 (DECODE_COMPOSITION_END): Likewise.
6566 (STORE_COMPOSITION_RULE): New macro.
6567 (decode_coding_iso_2022): Avoid long looking ahead while handling
6568 composition, CTEXT extended segment, and embedded UTF-8.
6569 (setup_coding_system): For a coding of type iso-2022, reset
6570 CODING_ISO_EXTSEGMENT_LEN (coding) and
6571 CODING_ISO_EMBEDDED_UTF_8 (coding).
6572 (get_translation): Delete arguments last_block, from_nchars,
6573 to_nchars. Callers changed.
6574 (produce_chars): Don't modify charbuf. Adjusted for the change of
6576 (produce_composition): Adjust for the new annotation sequence.
6577 (handle_composition_annotation): Likewise.
6578 (consume_chars): Adjust for the change of get_translation.
6580 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6582 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6584 2009-03-05 Kenichi Handa <handa@m17n.org>
6586 * font.c (font_select_entity): New function.
6587 (font_find_for_lface): Use font_select_entity to select a font.
6589 * fontset.c (fontset_find_font): If a font found without
6590 restricting to the characters C doesn't support C, try to find a
6591 font with C restriction.
6593 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6595 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6597 2009-03-04 Jason Rumney <jasonr@gnu.org>
6599 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6600 characters that have already been read. (Bug#2569)
6602 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6603 Log an error message if check_image_size failed.
6604 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6605 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6607 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6609 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6610 when decoding process output.
6612 2009-03-01 Richard M Stallman <rms@gnu.org>
6614 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6616 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6618 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6620 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6621 (decode_coding_emacs_mule, decode_coding_iso_2022)
6622 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6623 (decode_coding_raw_text, decode_coding_charset)
6624 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6625 Honor inhibit-eol-conversion. (Bug #2186)
6627 2009-02-28 Jason Rumney <jasonr@gnu.org>
6629 * coding.c (detect_coding_charset): If not checking latin extra,
6630 fail on characters between 0x80 and 0xA0. (Bug#2354)
6632 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6634 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6635 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6637 2009-02-27 Glenn Morris <rgm@gnu.org>
6639 * callint.c (Finteractive): Doc fix.
6641 2009-02-27 Kenichi Handa <handa@m17n.org>
6643 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6645 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6647 * font.c (font_style_to_value): Set value for unknown symbols to
6649 (weight_table, slant_table, width_table): Treat "unspecified" as
6652 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6654 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6656 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6658 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6659 error as soon as a recursive load is detected.
6661 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6663 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6666 2009-02-24 Kenichi Handa <handa@m17n.org>
6668 * fontset.c (fontset_find_font): Fix the condition for checking
6671 2009-02-24 Glenn Morris <rgm@gnu.org>
6673 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6674 whitespace that confuses documentation.
6676 2009-02-23 Miles Bader <miles@gnu.org>
6678 * process.c (Flist_system_processes, Fprocess_attributes)
6679 (syms_of_process): Rename `system-process-attributes' to
6680 `process-attributes'.
6682 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6684 * coding.h (struct coding_system): Make safe_charsets a pointer to
6686 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6688 (SAFE_CHARSET_P): Likewise.
6689 (setup_iso_safe_charsets): Properly setup safe_charsets.
6690 (Fdefine_coding_system_internal): Likewise.
6691 (setup_coding_system): Likewise. Remove unneeded casts.
6692 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6693 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6696 * insdel.c (del_range_2): Don't modify gap contents when called
6697 from decode_coding_object. (Bug#1809)
6699 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6701 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6703 (Ftype_of): Recognize font objects.
6705 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6707 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6710 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6712 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6713 async_iconified. Based on a patch by Christian Lynbech
6714 <christian.lynbech@tieto.com>.
6715 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6717 2009-02-20 Glenn Morris <rgm@gnu.org>
6719 * syntax.c (Fskip_chars_forward): Fix doc typo.
6721 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6723 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6725 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6727 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6729 2009-02-19 Kenichi Handa <handa@m17n.org>
6731 * coding.c (detect_coding): Preserve coding->mode.
6732 Don't overflow coding->carryover. (Bug#2370)
6734 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6736 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6738 2009-02-18 Kenichi Handa <handa@m17n.org>
6740 * font.c (font_check_otf_features): Fix handling of `nil' element.
6741 (Ffont_spec): Describe :lang and :otf in the docstring.
6743 2009-02-16 Andreas Schwab <schwab@suse.de>
6745 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6748 2009-02-16 Kenichi Handa <handa@m17n.org>
6750 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6753 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6755 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6757 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6758 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6760 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6762 * msdos.c (MAX_SCREEN_BUF): New macro.
6763 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6764 Encode the entire run of glyphs sharing the same face, instead of
6765 doing that one glyph at a time (fixes a bug with displaying
6766 double-size characters).
6768 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6770 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6772 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6773 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6774 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6776 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6777 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6779 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6781 * keyboard.c (adjust_point_for_property): Allow stopping between two
6784 2009-02-12 Jason Rumney <jasonr@gnu.org>
6786 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6787 (add_font_entity_to_list): Call check_face_name even when family
6790 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6791 Release DC when finished. Use NULL window to refer to desktop.
6792 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6794 * w32font.c (add_font_entity_to_list): Fix check for substituted
6795 raster fonts. (Bug#2219)
6797 2009-02-12 Kenichi Handa <handa@m17n.org>
6799 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6800 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6801 (autocmp_chars): Use fast_looking_at. Don't compose more
6802 characters than MAX_COMPOSITION_COMPONENTS.
6803 (find_automatic_composition): While looking forward and backward,
6804 check static composition. Fix where to stop looking forward.
6805 (composition_adjust_point): Fix checking of static composition.
6806 (Fcomposition_get_gstring): Pay attention to
6807 MAX_COMPOSITION_COMPONENTS.
6809 * lisp.h (fast_looking_at): Extern it.
6811 * search.c (fast_looking_at): New function.
6813 * term.c (encode_terminal_code): Adjust for the change of
6814 <struct glyph>.u.cmp.to.
6815 (append_composite_glyph): Likewise.
6817 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6818 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6820 (append_composite_glyph): Adjust for the change of
6821 <strcut glyph>.u.cmp.to.
6823 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6825 * casetab.c (init_casetab_once):
6826 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6827 * font.c (font_update_lface):
6828 * fontset.c (Fnew_fontset):
6829 * ftfont.c (ftfont_drive_otf):
6830 * xfont.c (xfont_open):
6831 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6833 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6835 * fileio.c (Fwrite_region): !NILP -> CONSP.
6837 2009-02-10 Andreas Schwab <schwab@suse.de>
6839 * process.c (send_process): Properly relocate pointer into data
6840 when using encoded data. (Bug#2272)
6842 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6844 * coding.c (detect_coding_charset): Fix previous change.
6846 2009-02-08 Jason Rumney <jasonr@gnu.org>
6848 * w32fns.c (w32_hide_hourglass): Handle case where frame
6849 disappeared while hourglass was displayed. (Bug #2193)
6851 2009-02-07 Andreas Schwab <schwab@suse.de>
6853 * unexelf.c (unexec): Fix error message.
6855 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6857 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6858 when modal window is active. (Bug #2152)
6859 (applicationShouldTerminate:): Remove now-unneeded while loop
6860 around NSRunAlertPanel.
6862 * nsmenu.m (popupSession): New file-global variable.
6863 (pop_down_menu): End the popupSession before closing dialog.
6864 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6865 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6866 don't query NSApp for events (just sleep instead).
6868 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6870 * coding.c (syms_of_coding) <translation-table-for-input>:
6871 Modify doc string to discourage use for character code unification.
6873 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6875 * atimer.c (run_timers): Update pending_atimers.
6877 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6879 * image.c (svg_load_image): Fix last change.
6881 * xfns.c (Fx_create_frame): Signal an error if no font is
6884 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6886 * character.c (syms_of_character) <script-representative-chars>:
6887 Fix typo in docstring.
6889 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6891 * nsmenu.m (pop_down_menu): New function.
6892 (ns_popup_dialog): Call it on unwind.
6893 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6894 call timer_check() (Bug#2154).
6895 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6896 handling_signal is set.
6897 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6899 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6901 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6903 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6905 * keyboard.c (poll_for_input_1, handle_async_input):
6906 Set handling_signal under HAVE_NS.
6908 2009-02-04 Glenn Morris <rgm@gnu.org>
6910 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6912 2009-02-04 Kenichi Handa <handa@m17n.org>
6914 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6916 * charset.c (Fchar_charset): New optional arg restriction.
6918 * coding.h (coding_system_charset_list): Extern it.
6920 * coding.c (coding_system_charset_list): New function.
6922 * composite.c: Include coding.h and termhooks.h.
6923 (composition_gstring_p): Fix for the terminal case.
6924 (composition_gstring_width): Likewise.
6925 (fill_gstring_body): Likewise.
6926 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6928 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6929 is within a composition.
6930 (Fcomposition_get_gstring): Fix the terminal case.
6932 * term.c (encode_terminal_code): Fix handling of composition.
6933 (produce_composite_glyph): For static composition, get pixel_width
6934 from struct composition.
6936 2009-02-02 Andreas Schwab <schwab@suse.de>
6938 * unexelf.c (unexec): Handle unaligned bss offset.
6940 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6942 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6943 XT,w32read_socket changes to ns_read_socket.
6945 * keyboard.c (handle_interrupt): Don't call
6946 quit_throw_to_read_char() under NS.
6948 * blockinput.h: Remove NS-specific code.
6950 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6952 * dispnew.c (window_change_signal): Don't try to get the size of a
6953 suspended tty frame.
6954 * term.c (Fresume_tty): Resize if the size has changed while the
6957 * alloc.c (mark_stack): Properly conditionalize previous change.
6959 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6961 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6962 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6963 Remove; this code is not used on Windows.
6965 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6967 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6968 EOLs that also has stray ^M characters.
6970 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6972 * atimer.c (run_timers, alarm_signal_handler):
6973 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6974 * w32inevt.c (w32_console_read_socket):
6975 * w32term.c (w32_read_socket):
6976 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6978 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6980 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6981 Initialize it as a relative filename pattern.
6982 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6983 (Fcall_process_region): Simplify temp file creation using
6984 temporary-file-directory.
6986 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6988 * msdos.c: Rename pending_signals to msdos_pending_signals.
6989 (sig_suspender, sigprocmask): Adjust.
6991 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6993 * keyboard.c (pending_signals): New var.
6994 (poll_for_input, input_available_signal, init_keyboard): Set it.
6995 (process_pending_signals): New function.
6997 * lisp.h (QUIT): Check pending_signals instead of
6998 interrupt_input_pending. Use process_pending_signals.
7000 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
7002 * process.c (wait_reading_process_output): Use process_pending_signals.
7004 * sysdep.c (emacs_write): Use process_pending_signals.
7006 * xterm.c (XTread_socket): Update pending_signals.
7008 * w32term.c (w32_read_socket): Update pending_signals.
7010 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7012 2009-01-29 Kenichi Handa <handa@m17n.org>
7014 * xftfont.c (xftfont_has_char): New function.
7015 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7017 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7019 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7021 (ns_query_color): New declaration.
7023 * nsterm.m (ns_confirm_quit): New variable.
7024 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7025 (EmacsApp-applicationShouldTerminate:): Use it.
7026 (EmacsPrefsController): Let user set it.
7027 (ns_query_color): New function.
7028 (ns_defined_color): Use it.
7029 (ns_initialize): Drop.
7030 (ns_term_init): Add two lines from ns_initialize(), and set
7031 input_interrupt_mode to nil.
7033 * image.c (svg_load_image): Don't right-shift background RGB when
7034 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
7036 2009-01-28 Kenichi Handa <handa@m17n.org>
7038 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7039 (fontset_get_font_group): Remember that no font-group is specified
7042 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
7044 * fns.c (concat): Check for string overflow (bug#1787).
7046 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7047 Quadruple undo limits (bug#1501).
7049 2009-01-27 Kenichi Handa <handa@m17n.org>
7051 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7052 directly use GT_Get_Char_index.
7054 * xftfont.c (struct xftfont_info): New member `index'.
7056 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7057 (Ffontset_font): Adjust for the change of fontset entry.
7059 2009-01-26 Kenichi Handa <handa@m17n.org>
7061 * fontset.c (fontset_find_font): Fix handling of non-cons return
7062 value of fontset_get_font_group.
7063 (fontset_font): Revert last change.
7065 2009-01-26 Jason Rumney <jasonr@gnu.org>
7067 * w32font.c (w32font_list_internal): Return quickly if registry is
7068 unknown. Simplify final return.
7069 (add_font_entity_to_list): Break complex logic down into more
7070 manageable chunks. Move unknown registry check to
7071 w32font_list_internal.
7073 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7075 Changes to remove Feval calls from GUI under NS.
7077 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7078 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
7079 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7081 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7082 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7083 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7084 instead of NON_ASCII_KEYSTROKE_EVENT.
7085 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7086 (EmacsApp-applicationShouldTerminate:): Query user.
7087 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7090 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7092 * keyboard.c (kbd_buffer_get_event): Check for it.
7093 (keys_of_keyboard): Define lispy keys for
7094 ns-put/unput-working-text.
7096 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7098 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7100 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
7102 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
7103 setting current_buffer directly. (Bug#2044)
7105 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
7107 * fontset.c (fontset_font): If we know there is no font, don't do
7108 any work. (Bug#1952, bug#1990).
7110 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
7112 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7114 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
7115 (ns_no_defaults): New declaration.
7118 * nsterm.h (ns_no_defaults): New declaration.
7120 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
7122 * nsterm.m (ns_no_defaults): New variable.
7123 (ns_initialize): Don't read defaults when ns_no_defaults.
7124 (EmacsView-readSelectionFromPasteboard:)
7125 (writeSelectionToPasteboard:types:): New stubbed-out methods for
7126 NSServicesRequests protocol. (Bug#1435)
7127 (ns_dumpglyphs_stretch): New function.
7128 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
7129 of 2008-11-15 to other terms. (Bug#615)
7131 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7133 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7135 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7138 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7145 * nsterm.m: Remove '23' comments that indicated code added during
7146 update from emacs-20 -> emacs-23.
7148 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7150 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
7151 ns_alternate_modifier. (Bug#1217)
7153 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7154 Display all shortcuts, including those w/o super modifier.
7156 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7158 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
7160 * fileio.c (Vwrite_region_post_annotation_function)
7161 (Vwrite_region_annotation_buffers): New vars.
7162 (build_annotations_unwind): Just reset
7163 Vwrite_region_annotation_buffers.
7164 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7165 Call write-region-post-annotation-function.
7166 (build_annotations): Add to Vwrite_region_annotation_buffers if
7169 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7171 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7173 * nsfns.m (ns_do_applescript):
7174 Conditionalize typeUTF16ExternalRepresentation on Tiger.
7176 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7178 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7180 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7182 * nsmenu.m (NSMENUPROFILE): Change #if style.
7184 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7186 * nsterm.m (x_set_frame_alpha): Add prototype.
7187 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7188 handle Ctrl-tab. (Bug#1841)
7189 (ns_get_color): Use unsigned long long for scanned hex string value.
7190 (ns_term_shutdown): Abort on non SIGTERM signals.
7191 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
7192 (EmacsPrefsController-setPanelFromDefaultValues): New function.
7193 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
7194 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
7195 (ns_defined_color): Fix settings of the XColor variable fields:
7196 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
7198 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
7200 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7201 values in onTiger section.
7203 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
7205 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7206 Check return value of font_spec_from_name.
7207 (Fx_list_fonts): Doc fix. (Bug#1951)
7209 * font.c (font_spec_from_name): Return Qnil if font name could not
7211 (font_parse_name): Treat a `?' character as part of an XLFD.
7213 * fns.c (Fsubstring): Doc fix.
7215 2009-01-19 Kenichi Handa <handa@m17n.org>
7217 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
7218 (ftfont_list): Likewise.
7220 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
7222 * dbusbind.c (Fdbus_register_signal):
7223 * process.c (conv_sockaddr_to_lisp):
7224 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7226 * callproc.c (Fgetenv_internal): Doc fix.
7228 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
7230 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7231 it is not even used.
7233 2009-01-16 Glenn Morris <rgm@gnu.org>
7235 * font.c (Ffont_variation_glyphs): Silence compiler.
7237 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
7239 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7240 Reported by David Robinow <drobinow@gmail.com>.
7242 2009-01-15 Kenichi Handa <handa@m17n.org>
7244 * coding.c (detect_coding_system): Fix handling of null_byte_found.
7246 2009-01-14 Jason Rumney <jasonr@gnu.org>
7248 * frame.c (x_set_font): Always store a font to the font parameter,
7249 never a fontset. (Bug#1562)
7251 2009-01-14 Kenichi Handa <handa@m17n.org>
7253 * coding.c (TWO_MORE_BYTES): New macro.
7254 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
7256 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
7258 * font.c (font_clear_prop): If clearing the family, clear the font
7261 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
7263 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
7265 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7266 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7267 functions, use sizeof.
7269 2009-01-12 Martin Rudalics <rudalics@gmx.at>
7271 * keyboard.c (read_char): Fix case where last_nonmenu_event
7272 returned a bad value with submenus. (Bug#447)
7274 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
7276 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7277 family, clear the font width index too.
7279 2009-01-11 Jason Rumney <jasonr@gnu.org>
7281 * keyboard.c (cmd_error_internal): Exit when errors occur before
7282 frame creation and not in daemon mode. (Bug#1836)
7284 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
7286 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7287 of a display vector, backtrack.
7288 (try_window_reusing_current_matrix): Check glyph type before
7289 referencing charpos member.
7291 2009-01-10 Eli Zaretskii <eliz@gnu.org>
7295 * coding.c (inhibit_null_byte_detection): New variable.
7296 (detect_coding, detect_coding_system): Don't pay attention to null
7297 bytes if inhibit_null_byte_detection is non-zero.
7298 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
7299 <inhibit-iso-escape-detection>: Doc fix.
7301 2009-01-09 Jason Rumney <jasonr@gnu.org>
7303 * w32font.c (add_font_entity_to_list): Don't report unknown
7304 Windows charset as any unrecognized registry. (Bug#1548)
7305 Only report Unicode Plane 2 fonts as unicode-sip.
7307 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
7309 * xfaces.c (Fx_font_family_list): Delete function.
7310 Move compatibility version to faces.el.
7312 * font.c (Ffont_family_list): Return a list of strings, not symbols.
7314 2009-01-09 Martin Rudalics <rudalics@gmx.at>
7316 * frame.c (x_set_frame_parameters): Remember requested value for
7317 fullscreen before it's reset by the parameter handler.
7319 2009-01-09 Glenn Morris <rgm@gnu.org>
7321 * keyboard.c (last_command_char): For clarity, rename to...
7322 (last_command_event): ... and update all users.
7323 (last_input_char): For clarity, rename to...
7324 (last_input_event): ... and update all users.
7325 (last-command-char, last-input-char): Move to subr.el as aliases.
7326 * cmds.c, commands.h: Update for last_command_char rename.
7328 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7330 * font.c (font_open_for_lface): Handle unspecified height attribute.
7332 2009-01-08 Jason Rumney <jasonr@gnu.org>
7334 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7335 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7336 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7338 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7339 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7341 2009-01-07 Kenichi Handa <handa@m17n.org>
7343 * fileio.c (Finsert_file_contents): In the case of replace,
7344 remember the coding system used for decoding in
7345 coding_system (Bug#1039).
7347 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7348 breaking the loop. (Bug#870)
7349 (decode_coding_utf_16, decode_coding_emacs_mule)
7350 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7351 (decode_coding_charset): Likewise.
7353 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7355 * frame.c (x_set_frame_parameters): Make sure height (width) get
7356 applied when fullwidth (fullheight) is set. (Bug#1522)
7358 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7360 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7361 (utc_base): Declare as ULONGLONG, not long double.
7362 (convert_time_raw): Delete.
7363 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7364 (initialize_utc_base): New function.
7365 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7366 (convert_from_time_t): Use initialize_utc_base; compute result with
7368 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7370 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7372 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7373 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7374 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7375 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7376 [!subprocesses]: Define.
7377 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7378 (Flist_system_processes, Fsystem_process_attributes)
7379 [!subprocesses]: Call list_system_processes and
7380 system_process_attributes instead of returning Qnil.
7382 * dosfns.c (system_process_attributes, list_system_processes):
7385 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7387 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7388 Don't use the default (no-op) implementation.
7390 2009-01-03 Jason Rumney <jasonr@gnu.org>
7392 * keyboard.c (parse_modifiers_uncached): Wheel events are
7395 * w32term.c (x_query_colors, x_query_color): New functions.
7397 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7398 (svg_load_image): Cast returned pointers from dynamically loaded
7399 functions. Eliminate W32 specific code.
7401 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7403 * nsfns.m (x_set_foreground_color, x_set_background_color)
7404 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7405 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7406 x_ prefix instead of ns_. Update references.
7407 (syms_of_nsfns): Add a FIXME comment.
7409 * nsterm.m (x_set_cursor_type): New prototype.
7410 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7412 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7413 for Solaris instead of incorrectly providing Qutime and Qcutime.
7415 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7417 * w32.c (process_times): Compute sum of utime and stime.
7418 (system_process_attributes): Add Qtime to the alist.
7420 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7421 and add them to the alist.
7423 * process.c (top level) <Qtime, Qctime>: New variables.
7424 (syms_of_process): staticpro them.
7425 (Fsystem_process_attributes): Add their documentation to the doc
7428 * process.h: Declare Qtime and Qctime.
7430 2009-01-02 Jason Rumney <jasonr@gnu.org>
7432 * image.c (Qgobject): New symbol.
7433 (syms_of_image): Initialize it.
7434 (init_svg_functions): Load some functions from gobject library.
7436 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7438 * frame.c (make_terminal_frame): Remove redundant code and useless
7441 2009-01-01 Andreas Schwab <schwab@suse.de>
7443 * process.c (conv_sockaddr_to_lisp): Add workaround for
7444 getsockname bug on BSD.
7446 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7448 * xfns.c (x_create_tip_frame): Set border width of the X window.
7450 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7452 2009-01-01 Jason Rumney <jasonr@gnu.org>
7454 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7455 Don't block input, as per earlier xterm.c changes.
7457 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7459 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7460 (ns_appkit_version_int): New function.
7461 (x-server-version): Use ns_appkit_version_int and follow 21+
7462 convention of returning 3 integers.
7464 2008-12-30 Kenichi Handa <handa@m17n.org>
7466 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7467 (CHAR_SURROGATE_PAIR_P): New macro.
7469 * font.h (struct font_driver): New member get_variation_glyphs.
7471 * font.c (font_range): Don't require a font for a variation selector.
7472 (Ffont_variation_glyphs): New function.
7473 (syms_of_font): Defsubr it.
7475 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7476 ftfont_variation_glyphs.
7477 (setup_otf_gstring): New function.
7478 (ftfont_drive_otf): Use it.
7479 (ftfont_shape_by_flt): Handle variation selector.
7480 (ftfont_variation_glyphs): New function.
7482 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7484 * frame.c (Vemacs_iconified): Remove.
7486 2008-12-30 Jason Rumney <jasonr@gnu.org>
7488 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7489 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7491 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7493 * indent.c (Fvertical_motion): Don't advance iterator if we have
7494 reseated to the desired position.
7496 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7497 checking for pos match.
7499 2008-12-30 Kenichi Handa <handa@m17n.org>
7501 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7502 just get the low 8-bit of the code.
7504 * font.c (font_intern_prop): Validate str as multibyte.
7506 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7508 * dispextern.h (struct face): Move lface and hash from the middle
7511 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7513 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7515 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7516 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7517 instead of intervals.h.
7519 2008-12-26 Andreas Schwab <schwab@suse.de>
7521 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7524 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7526 * textprop.c (Qminibuffer_prompt): New variable.
7527 (syms_of_textprop): Initialize it.
7528 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7529 in minibuffer-prompt face. (Bug#1662)
7531 2008-12-25 Jason Rumney <jasonr@gnu.org>
7533 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7535 2008-12-24 Jason Rumney <jasonr@gnu.org>
7537 * ralloc.c (r_alloc_reset_variable): New function.
7539 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7540 record of what points where. (Bug#716)
7542 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7544 * minibuf.c (read_minibuf): Follow the non-interactive case when
7545 running as a daemon, before detaching.
7547 2008-12-22 Andreas Schwab <schwab@suse.de>
7549 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7550 * gtkutil.c (free_widget_value): Use xfree instead of free.
7552 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7554 * frame.c (delete_frame): New function derived from
7555 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7556 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7557 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7558 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7559 * frame.h: Extern delete_frame.
7560 * window.c (window_loop):
7561 * terminal.c (delete_terminal):
7562 * xterm.c (x_connection_closed):
7563 * xfns.c (Fx_hide_tip):
7564 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7566 2008-12-21 Jason Rumney <jasonr@gnu.org>
7568 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7569 when character maps to .notdef character.
7571 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7573 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7575 2008-12-20 Jason Rumney <jasonr@gnu.org>
7577 * frame.c (Fmake_terminal_frame): Raise an error when called from
7578 a graphical frame on Windows. (Bug#1325)
7580 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7582 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7584 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7586 * minibuf.c (Fread_buffer): Doc fix.
7588 2008-12-20 Jason Rumney <jasonr@gnu.org>
7590 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7591 server name in UNC paths. (Bug#719)
7593 * coding.c (decode_coding): Clear chars_at_source flag when using
7596 2008-12-19 Daniel Engeler <engeler@gmail.com>
7598 * sysdep.c (serial_configure): Fix typo.
7600 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7602 * sysdep.c: Include alloca.h.
7603 (system_process_attributes): Add implementation for Solaris.
7605 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7607 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7609 Reorganize implementation of Flist_system_processes and
7610 Fsystem_process_attributes. No functional changes.
7611 * process.c: Don't #include pwd.h, grp.h and limits.h.
7612 (Flist_system_processes): Just call list_system_processes.
7613 (Fsystem_process_attributes): Just call system_process_attributes.
7614 (procfs_list_system_processes, time_from_jiffies)
7615 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7616 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7618 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7619 (list_system_processes): Rename from
7620 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7621 Provide a do nothing implementation.
7622 (system_process_attributes): Rename from
7623 procfs_list_system_processes.
7624 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7625 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7627 * w32.c (list_system_processes): Rename from
7628 w32_list_system_processes.
7629 (system_process_attributes): Rename from
7630 w32_system_process_attributes.
7632 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7634 * process.h (w32_list_system_processes)
7635 (w32_system_process_attributes): Remove.
7636 (list_system_processes, system_process_attributes):
7639 2008-12-19 Kenichi Handa <handa@m17n.org>
7641 * xfont.c (xfont_decode_coding_xlfd): New function.
7642 (xfont_encode_coding_xlfd): New function.
7643 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7644 (xfont_list): Decode and encode XLFD by iso-8859-1.
7645 (xfont_match): Likewise.
7646 (xfont_list_family): Likewise.
7647 (xfont_open): Likewise.
7649 * ftfont.c (ftfont_open): Generate a multibyte string if given
7652 * xftfont.c (xftfont_open): Generate a multibyte string if given
7655 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7657 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7659 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7660 clicked on a detached tool bar button.
7662 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7664 * emacs.c (main): Print and error and exit when no data is read
7667 2008-12-17 Jason Rumney <jasonr@gnu.org>
7669 * w32font.c (w32font_has_char): Always return -1.
7671 2008-12-16 Kenichi Handa <handa@m17n.org>
7673 * font.c (font_open_entity): Fix previous change.
7675 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7677 * process.c: Include <limits.h>.
7679 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7681 * font.c (font_update_drivers): Fix mistake in reconstructing the
7684 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7686 * font.c (font_clear_cache): Fix format of font cache data.
7688 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7690 * xftfont.c (xftfont_open): Free Xft font pattern if
7691 XftFontOpenPattern fails.
7693 * xterm.c (x_free_frame_resources): Remove extraneous call to
7696 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7698 * xterm.c (x_delete_display): Move xim_close_dpy call to
7700 (x_delete_terminal): Call xim_close_dpy.
7702 2008-12-13 Jason Rumney <jasonr@gnu.org>
7704 * w32font.c (intern_font_name): New function.
7705 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7706 (w32font_open_internal, Fx_select_font): Decode font name.
7707 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7709 * w32font.h (intern_font_name): Declare new function.
7711 * w32uniscribe.c (add_opentype_font_name_to_list):
7712 Use intern_font_name.
7714 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7716 * frame.c (Fdelete_frame): Call free_font_driver_list.
7718 * font.c (free_font_driver_list): Implement missing function.
7720 * w32term.c (w32_term_init): Don't initialize the image cache
7721 here; it will be done in init_frame_faces.
7723 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7724 (struct x_display_info): Remove unused member null_pixel. New
7725 member xim_callback_data.
7727 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7728 (xim_initialize): Save pointer to callback function data.
7729 (xim_close_dpy): Free callback function data. Call XCloseIM,
7730 reverting 2008-11-04 change by David Smith.
7731 (x_term_init): Don't initialize the image cache here; it will be
7732 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7733 (x_delete_display): Free x_dnd_atoms member.
7735 2008-12-13 Kenichi Handa <handa@m17n.org>
7737 * font.c (font_rescale_ratio): Moved from xfaces.c.
7738 Argument type changed. Handle a font-spec too.
7739 (font_score): Check Vface_font_rescale_alist.
7740 (font_open_entity): Likewise. (Bug#1547)
7742 * xfaces.c (font_rescale_ratio): Moved to font.c.
7744 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7746 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7748 2008-12-12 Jason Rumney <jasonr@gnu.org>
7750 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7751 Vwindow_system_version to the real w32 major version.
7753 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7755 * term.c (init_tty): Move setting the terminal name before the
7756 potential user: maybe_fatal.
7758 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7760 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7761 all callers changed. Call free_frame_faces to free the face cache.
7763 2008-12-11 Jason Rumney <jasonr@gnu.org>
7765 * w32font.c (fill_in_logfont): Don't assume symbol script means
7766 SYMBOL_CHARSET. (Bug#547)
7768 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7769 size for surrogates. (Bug#1096, bug#872)
7771 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7773 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7775 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7777 * process.c (Fsystem_process_attributes, syms_of_process):
7778 Fix typo in name of Ssystem_process_attributes.
7779 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7781 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7783 * syntax.c (Fmodify_syntax_entry): Doc fix.
7785 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7787 * font.c (Ffont_spec): Move usage to end of docstring.
7789 2008-12-10 Jason Rumney <jasonr@gnu.org>
7791 * w32font.c (Qcham): New symbol.
7792 (font_supported_scripts): Add cham, and comments for other new
7793 scripts in bitfield from OpenType spec.
7794 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7795 contain characters beyond the bmp.
7797 2008-12-10 Kenichi Handa <handa@m17n.org>
7799 * ftfont.c (fc_charset_table): Add "unicode-sip".
7800 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7803 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7805 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7806 (Fcoding_system_put): Use QCdefault_char.
7807 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7809 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7811 * xftfont.c (syms_of_xftfont): Fix typo.
7813 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7815 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7817 * emacs.c (main): Close daemon_pipe on exec.
7819 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7821 * termchar.h (struct tty): New members termcap_term_buffer and
7822 termcap_strings_buffer.
7824 * term.c (encode_terminal_code): Free any previous memory blocks
7825 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7826 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7827 All callers changed.
7828 (init_tty): Store termcap data and string buffers in new struct
7829 tty members termcap_term_buffer and termcap_strings_buffer.
7830 (delete_tty): Free them.
7831 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7833 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7835 * nsfns.m (ns_set_background_color): Remove code duplication.
7836 It was a substitute for face-transparency on OS X 10.3.
7838 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7840 * coding.c (make_conversion_work_buffer): Disable buffer
7841 modification hooks in the work buffer.
7843 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7845 * process.c (procfs_system_process_attributes): If `nread' has a
7846 negative value, assign zero to it.
7848 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7850 * eval.c (Vdebug_on_error): Doc fix.
7852 2008-12-05 Kenichi Handa <handa@m17n.org>
7854 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7855 second character is a combining character.
7857 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7859 * process.c (procfs_system_process_attributes): Don't use cmd,
7860 cmdsize, and q without initializing them first.
7862 2008-12-04 Jason Rumney <jasonr@gnu.org>
7864 * w32font.c (w32font_draw): Initialize orig_clip before getting
7865 it, and delete it when finished.
7867 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7869 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7870 case when running as a daemon before detaching.
7872 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7874 * w32.c (init_environment): Don't unload library shell32.dll.
7876 2008-12-03 Kenichi Handa <handa@m17n.org>
7878 * font.c (font_at): Set `multibyte' at first.
7880 * coding.c (decode_coding_charset): Check type of an element of
7882 (encode_coding_emacs_mule): Be sure to set `code'.
7884 * fontset.c (face_for_char): Handle invalid charset property correctly.
7885 (font_for_char): Likewise.
7887 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7889 * font.c (Fopen_font): Compute pixel size correctly.
7890 (font_update_lface): Handle fonts with corrupted size specs,
7891 i.e. non-int and non-float.
7893 * ftfont.c (ftfont_match): Initialize entity variable.
7894 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7895 (ftfont_list_family): Initialize list var earlier.
7897 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7899 * xterm.c (x_draw_glyph_string): Fall back on
7900 underline_minimum_offset for underline position.
7902 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7904 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7906 * character.c (c_string_width): Specify the type for LEN.
7908 2008-12-03 Kenichi Handa <handa@m17n.org>
7910 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7911 (decode_coding_utf_8): Likewise.
7912 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7913 (produce_chars): Initialize consumed_chars to 0.
7915 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7917 * keyboard.c (make_lispy_position): Only use PT if the selected
7920 2008-12-02 Andreas Schwab <schwab@suse.de>
7922 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7924 * doprnt.c (doprnt1): Fix size of charbuf.
7926 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7928 * keyboard.c (timer_check): Revert last change.
7930 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7932 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7934 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7936 * makefile.w32-in: Update dependencies.
7937 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7939 2008-12-01 Andreas Schwab <schwab@suse.de>
7941 * font.c (register_font_driver): Use xmalloc.
7942 (font_put_frame_data): Likewise.
7944 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7946 * xfaces.c (realize_x_face): Make abort condition clearer.
7948 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7950 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7952 * keyboard.c (timer_check): After a timer runs, ensure that the
7953 selected window's buffer is current.
7955 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7957 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7958 It was accidentally restored by the Unicode merge.
7960 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7962 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7964 * w32proc.c: Include "coding.h".
7965 (Fw32_short_file_name): Encode filename passed to Windows API.
7966 (Fw32_long_file_name): Encode filename passed to Windows API and
7967 decode back the result. (Bug#1433)
7969 2008-11-29 Kenichi Handa <handa@m17n.org>
7971 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7972 not before accessing it.
7974 * charset.c (Fdefine_charset_internal): After calculating
7975 min_char, max_char, and fastmap, copy the charset structure again.
7976 (encode_char): Fix the previous change.
7978 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7980 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7982 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7984 * nsterm.m (x_set_frame_alpha): New function.
7986 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7988 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7990 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7992 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7993 pointer to check_face_name.
7995 2008-11-27 Kenichi Handa <handa@m17n.org>
7997 * category.h (SET_CATEGORY_SET): Call set_category_set.
7998 (set_category_set): Extern it.
8000 * category.c (hash_get_category_set): New function.
8001 (Fmodify_category_entry): Adjusted for the change of
8002 char_table_ref_and_range. Call hash_get_category_set to get a
8003 category set to store in the table.
8005 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8008 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
8009 (DECODE_CHAR): Check if the decoder vector is ready.
8010 (ENCODE_CHAR): Check if the encoder char-table is ready.
8011 (maybe_unify_char): Extern it.
8013 * charset.c (Vchar_unified_charset_table): Delete it.
8014 (inhibit_load_charset_map): New variable.
8015 (temp_charset_work): New variable.
8016 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8017 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8019 (load_charset_map): Meaning of control_flag changed. If
8020 inhibit_load_charset_map is nonzero, setup a table in
8022 (load_charset): New argument control_flag.
8023 (map_charset_for_dump): New function.
8024 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8025 map_charset_for_dump.
8026 (Fdefine_charset_internal): If the charset method is MAP, load
8027 mapping tables by calling load_charset.
8028 (Funify_charset): Don't load a mapping table but directly set
8030 (maybe_unify_char): New function.
8031 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8032 Handle the case of inhibit_load_charset_map being nonzero.
8033 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8034 Handle the case of inhibit_load_charset_map being nonzero.
8035 (Fclear_charset_maps): Just free temp_charset_work.
8036 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8039 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8040 change of char_table_ref_and_range.
8041 (char_table_ref_and_range): Change the meaning of argument FROM
8042 and TO. Now the caller must provide initial values for *FROM
8045 * fontset.c (fontset_add): Adjusted for the change of
8046 char_table_ref_and_range.
8047 (fontset_get_font_group): Likewise.
8048 (Ffontset_info): Likewise.
8050 * keymap.c (describe_vector): Adjusted for the change of
8051 char_table_ref_and_range. For char-table, put boundary between
8052 non-ASCII and 8-bit characters.
8054 * print.c (print_object): For bool-vector, delete unnecessary
8055 check of ASCII_BYTE_P.
8057 2008-11-26 Jason Rumney <jasonr@gnu.org>
8059 * w32font.c (w32font_open_internal): Don't include external
8060 leading in font height. (Bug#879)
8062 2008-11-26 Glenn Morris <rgm@gnu.org>
8064 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8065 redefinition with ifdef. (Bug#1383)
8067 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8069 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8071 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8073 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8074 New EmacsView methods.
8075 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8076 Fixes bug #1048,1357,1414.
8078 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8081 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8082 is not an indexed color.
8083 * nsterm.m (free_indexed_color): Add argument checking.
8084 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8086 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
8088 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8089 Document confirm-after-completion value for
8090 minibuffer-completion-confirm.
8092 2008-11-24 Jason Rumney <jasonr@gnu.org>
8094 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8097 2008-11-23 Jason Rumney <jasonr@gnu.org>
8099 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8100 restored before returning.
8102 * w32font.c (check_face_name): New function.
8103 (add_font_entity_to_list): Use it to filter out common substituted
8106 2008-11-22 Martin Rudalics <rudalics@gmx.at>
8108 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8109 confirm-nonexistent-file-or-buffer in doc-string.
8111 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8113 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8114 Fix copy/paste typo. Add checks.
8116 2008-11-21 Kenichi Handa <handa@m17n.org>
8118 * coding.c (detect_coding_iso_2022): Reject invalid composition
8120 (DECODE_COMPOSITION_START): If the current source is the last
8121 block, and the current composition doesn't end, regard this
8122 sequence as invalid.
8123 (decode_coding_iso_2022): Handle invalid composition sequence.
8125 2008-11-20 Martin Rudalics <rudalics@gmx.at>
8127 * window.c (coordinates_in_window): Don't return
8128 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8129 line when the window is not the rightmost one. (Bug#1372)
8131 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8133 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8135 2008-11-15 Eli Zaretskii <eliz@gnu.org>
8137 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8138 and bright_bg if noninteractive is non-zero.
8140 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8142 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8143 x_draw_glyph_string_background.
8145 * w32term.c (x_draw_glyph_string): Likewise.
8147 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
8149 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8150 the next glyph string once past the overhang width.
8152 * nsterm.m (ns_draw_glyph_string): Likewise.
8154 * w32term.c (x_draw_glyph_string): Likewise.
8156 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8158 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8161 2008-11-14 Martin Rudalics <rudalics@gmx.at>
8163 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8164 dedicated status of window before attempting to display another
8167 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
8169 * msdos.c (Fmsdos_long_file_names):
8170 (syms_of_msdos) <dos-unsupported-char-glyph>:
8171 * dosfns.c (Fint86): Fix typos in docstrings.
8173 2008-11-14 Eli Zaretskii <eliz@gnu.org>
8175 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8177 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8179 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8181 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8183 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8185 * frame.h: Negative alpha means "don't touch".
8187 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8189 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8191 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8195 * acldef.h: Remove files used only for systems no longer supported.
8197 * Makefile.in: Fix .o alphabetical ordering.
8198 (hftctl.o): Remove dependency, file removed.
8199 (keymap.o, print.o): Depend on charset.h.
8201 2008-11-10 Kenichi Handa <handa@m17n.org>
8203 * character.c (Fget_byte): Fix and make it faster for unibyte target.
8205 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
8207 * dired.c (file_name_completion): If completion_ignore_case is
8208 enabled, ignore case when checking completion-regexp-list.
8210 2008-11-08 Eli Zaretskii <eliz@gnu.org>
8212 * vm-limit.c (get_lim_data): Fix last change.
8214 2008-11-08 Kenichi Handa <handa@m17n.org>
8216 * character.c (Fget_byte): New function.
8217 (syms_of_character): Defsubr Fget_byte.
8219 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
8221 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8222 cursor position is valid after scrolling.
8224 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
8226 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8228 2008-11-06 Glenn Morris <rgm@gnu.org>
8230 * xterm.c (handle_one_xevent): Don't let popup menus cause
8231 mouse-autoselect-window related window switching. (Bug#1261)
8233 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8235 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8237 2008-11-04 Andreas Schwab <schwab@suse.de>
8239 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8241 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
8243 * xfns.c (Fx_wm_set_size_hint): New function.
8245 2008-11-03 Martin Rudalics <rudalics@gmx.at>
8247 * textprop.c (Fprevious_single_char_property_change): Return 0
8248 when there's no change in a string. (Bug#1301)
8250 2008-11-02 Martin Rudalics <rudalics@gmx.at>
8252 * frame.c (do_switch_frame): New argument NORECORD passed to
8254 (Fselect_frame): New argument NORECORD passed to
8256 (Fset_frame_selected_window): New argument NORECORD passed to
8258 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8259 in call of do_switch_frame.
8260 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8261 Handle NORECORD argument in call of Fselect_frame.
8262 * lisp.h (do_switch_frame, Fselect_frame)
8263 (Fset_frame_selected_window): Adjust declarations.
8264 * window.c (select_frame_norecord): New function.
8265 (run_window_configuration_change_hook): Use it and call
8266 Fselect_frame with NORECORD set.
8267 (Fselect_window): Pass NORECORD to Fselect_frame.
8268 (Fset_window_configuration): Handle NORECORD argument in call of
8270 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8271 Fset_frame_selected_window.
8272 * keyboard.c (command_loop_1): Handle NORECORD in call of
8273 Fselect_frame (currently ifdefd).
8275 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8277 * emacs.c (USAGE2): Untabify.
8279 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8281 * composite.c (fill_gstring_header): Fix copy/paste typo.
8283 2008-10-31 Martin Rudalics <rudalics@gmx.at>
8285 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8286 (Fother_window): Rename argument and rewrite doc-string.
8287 (select_window_norecord): Fix return value. (Bug#1276)
8289 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
8291 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8292 new frames overriding foreground for tooltips. Based on similar patch
8293 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8295 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
8297 * emacs.c (Fdaemon_initialized): Initialize nfd.
8299 2008-10-29 Martin Rudalics <rudalics@gmx.at>
8301 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8302 (Fwindow_text_height): Clarify doc-strings.
8303 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8304 doc-string of window-scroll-functions.
8306 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8308 * category.c (syms_of_category): Fix typo in docstring.
8310 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
8312 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8313 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8314 Fix typos in docstrings.
8316 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8318 * emacs.c (daemon_pipe): Make non-static.
8319 (IS_DAEMON): Move definition ...
8320 * lisp.h (IS_DAEMON): ... here.
8321 (daemon_pipe): Declare.
8322 (is_daemon): Remove.
8323 * dispnew.c (init_display): Use IS_DAEMON.
8325 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8327 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8328 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8330 * emacs.c (is_daemon): Remove.
8331 (main): Don't set is_daemon.
8332 (IS_DAEMON): New macro.
8333 (Fdaemonp, Fdaemon_initialized): Use it.
8334 (Fdaemon_initialized): Write a char into the pipe to make sure the
8336 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8338 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8340 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8341 over-sized glyph, draw it with the default glyph width.
8343 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8344 glyph, draw it with the default glyph width.
8346 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8347 glyph, draw it with the default glyph width.
8349 * xdisp.c (try_scrolling): When computing the distance from the
8350 scroll margin to PT, try moving some distance past the window
8351 bottom before giving up.
8353 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8355 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8356 (Fset_window_buffer): Explain in doc-string that a window can be
8357 "strongly" dedicated to its buffer.
8359 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8361 * emacs.c (daemon_name): New variable.
8362 (main): Deal with --daemon=SERVER_NAME.
8363 (Fdaemonp): Return a name if one was passed to --daemon.
8365 2008-10-26 Romain Francoise <romain@orebokech.com>
8367 * emacs.c (daemon_pipe): New variable.
8368 (main): Create a pipe before forking, make the parent exit only after
8369 the child has closed its end of the pipe. Move closing the
8371 (Fdaemon_initialized): ... here. New function.
8373 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8375 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8376 the previous unoptimized table.
8378 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8379 the distinction between non-nil and non-t value of `dedicated'.
8381 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8383 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8384 read_char_minibuf_menu_text is large enough to hold the menu string.
8386 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8388 * window.c (Fget_buffer_window, Fdelete_windows_on)
8389 (Freplace_buffer_in_windows): Make buffer argument optional and
8390 rename to buffer_or_name.
8392 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8394 * xdisp.c (handle_single_display_spec, handle_display_prop):
8395 Undo 2005-05-16 change.
8396 (handle_stop): Pop iterator if it's loaded with an empty string.
8397 (get_overlay_strings_1): Don't save iterator if it's loaded with
8398 an empty string (bug#1201).
8400 2008-10-24 Kenichi Handa <handa@m17n.org>
8402 * ftfont.c (ftfont_otf_features): Fix previous change.
8403 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8404 calling ftfont_otf_features.
8406 2008-10-24 Kenichi Handa <handa@m17n.org>
8408 * font.c (font_match_p): Fix for the case that a vector of
8409 characters is in script-representative-chars.
8411 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8413 * dbusbind.c (xd_in_read_queued_messages): New variable.
8414 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8415 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8416 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8419 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8421 * s/sol2-10.h: New file.
8423 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8425 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8426 poor beast has survived 9+ years and the jump from xterm.c!).
8428 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8430 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8432 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8434 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8436 * character.c (syms_of_character) <script-representative-chars>:
8437 <unicode-category-table>: Doc fixes.
8439 2008-10-23 Noah Friedman <friedman@splode.com>
8441 * coding.c (make_conversion_work_buffer): Check that
8442 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8445 2008-10-23 Kenichi Handa <handa@m17n.org>
8447 * font.c (font_add_log): Check the values of extra properties.
8449 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8451 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8453 (Fset_window_parameter): Use NILP.
8454 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8455 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8457 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8459 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8461 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8463 * nsfns.m (ns_appkit_version): New function.
8464 (x-server-version): Use it.
8465 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8466 (x-server-vendor): Don't check_ns().
8468 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8470 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8472 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8473 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8475 2008-10-22 Kenichi Handa <handa@m17n.org>
8477 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8480 * category.c (word_boundary_p): Check scripts instead of charset.
8481 Handle nil value in word-separating-categories and
8482 word-combining-categories.
8483 (syms_of_category): Fix docstrings of word-separating-categories
8484 and word-combining-categories.
8486 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8488 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8489 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8491 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8493 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8494 Rename arg "buffer" to "buffer_or_name".
8495 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8497 (no_switch_window): Remove since the return value is not used.
8498 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8499 Consider window as dedicated when Fwindow_dedicated_p returns a
8501 * lisp.h: Remove prototype for no_switch_window.
8503 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8505 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8506 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8508 2008-10-21 Kenichi Handa <handa@m17n.org>
8510 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8511 check Vlatin_extra_code_table.
8513 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8515 * fileio.c (Fset_file_modes): Doc fix.
8517 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8519 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8522 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8524 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8525 Mention kill-buffer in doc-string.
8526 (Fset_window_buffer): Reinsert tem check removed in last commit.
8527 (Fenlarge_window, Fshrink_window): Have argument names and
8528 doc-string follow Elisp manual more closely.
8530 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8532 * fileio.c (Fset_file_modes): Doc fix.
8534 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8536 * window.c (Fwindow_width, Fset_window_start)
8537 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8538 (Fdelete_windows_on, Freplace_buffer_in_windows):
8539 Make doc-strings follow code and Elisp manual more closely.
8540 (Fwindow_dedicated_p): Make window argument optional.
8541 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8542 (Fset_window_buffer): Respect any non-nil dedicated value for
8543 window. Rename "buffer" argument to "buffer_or_name".
8545 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8547 * m/sh3.h: New file, machine description for SuperH.
8549 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8551 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8553 2008-10-17 Kenichi Handa <handa@m17n.org>
8555 * ftfont.c (ftfont_otf_features): Fix indexing
8556 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8558 2008-10-16 Magnus Henoch <mange@freemail.hu>
8560 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8561 (Fdbus_call_method_asynchronously): Ditto.
8562 This change makes C-h f display the argument list.
8564 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8566 * fileio.c (Fexpand_file_name): Doc fix.
8568 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8569 of :foreground and :background equivalent to unspecified (20.x
8572 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8574 * buffer.c (syms_of_buffer): Doc fix.
8576 2008-10-14 Kenichi Handa <handa@m17n.org>
8578 * font.c (font_clear_prop): When clearing font width, clear the
8579 average width field too.
8581 2008-10-12 Andreas Schwab <schwab@suse.de>
8583 * ftfont.c (ftfont_shape_by_flt): Make static.
8584 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8586 * font.c: Don't include <m17n-flt.h>.
8588 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8590 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8592 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8594 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8597 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8599 * dispnew.c (update_text_area): Avoid looping due to large glyph
8600 overhangs (bug#1070).
8602 2008-10-09 Kenichi Handa <handa@m17n.org>
8604 * fontset.c (face_for_char): If face->fontset is negative, just
8607 * font.c (font_delete_unmatched): Fix previous change.
8608 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8610 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8612 * frame.c (Fraise_frame): On text-only terminals select frame in
8613 order to make it visible. (Bug#1061)
8615 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8617 * fontset.c (fontset_find_font): Check frame validity.
8619 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8621 * gtkutil.c (xg_display_open): Reset default display if none exists.
8622 (xg_display_close): Allow Emacs to close all displays (bug#985).
8624 2008-10-06 Andreas Schwab <schwab@suse.de>
8626 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8628 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8630 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8632 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8634 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8635 during initialization.
8637 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8639 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8640 whole thing on MSDOS frames as well as on a TTY.
8642 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8644 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8647 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8650 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8652 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8653 MSDOS frames as well.
8655 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8657 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8659 * menu.c (find_and_return_menu_selection): Add cast.
8661 2008-10-03 Glenn Morris <rgm@gnu.org>
8663 * emacs.c (USAGE1): Add --daemon.
8665 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8667 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8668 100, so it's in percents as advertised.
8670 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8672 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8673 (ns_output.current_cursor, ns_output.desired_cursor)
8674 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8675 (FRAME_NEW_CURSOR_COLOR): Remove.
8677 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8678 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8679 enumeration (HOLLOW_BOX_CURSOR, etc.).
8681 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8682 (draw_window_cursor): Simplify code.
8683 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8684 Don't change cursor type. In latter, call rehighlight instead of doing
8686 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8687 Use core Emacs cursor types.
8689 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8691 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8693 * process.c (Faccept_process_output): Fix doc-string.
8695 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8697 * gmalloc.c (__sbrk): Also define for uClibc.
8699 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8702 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8704 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8706 (nsfont_open): Reenable the cache.
8708 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8710 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8711 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8713 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8715 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8716 a suspended terminal.
8718 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8720 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8722 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8724 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8726 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8728 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8729 in a continued line coincides with a line beginning.
8731 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8733 * nsfont.m (nsfont_trait_distance): Fix bug.
8734 (nsfont_list): Return a list rather than a vector (syncs with Handa
8735 changes of 2008-05-14).
8736 (nsfont_open): Improve logging.
8738 2008-09-29 Andreas Schwab <schwab@suse.de>
8740 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8742 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8744 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8745 name as char-resolve-modifiers.
8746 Reported by: Markus Triska <markus.triska@gmx.at>
8748 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8750 * dispnew.c (init_display): Return earlier when running as a daemon.
8752 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8754 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8756 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8758 * composite.c (Fcomposition_get_gstring)
8759 (Fcompose_region_internal, Fcompose_string_internal)
8760 (Ffind_composition_internal): Doc fix.
8761 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8762 (syms_of_composite) <auto-composition-function>: Doc fix.
8763 (syms_of_composite) <composition-function-table>: Doc fix.
8765 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8767 * search.c (wordify): New argument for lax word-ends.
8768 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8770 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8772 * lisp.h (is_daemon): Declare.
8773 * dispnew.c (init_display): Do not try to initialize the terminal
8774 when running as a daemon.
8776 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8778 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8779 x_display_pixel_height.
8781 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8783 * undo.c (record_point): Don't call Fundo_boundary for first
8786 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8788 * emacs.c (Fdaemonp): Doc fix.
8790 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8792 * emacs.c (main): Place #ifdef in the proper place.
8794 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8796 * emacs.c (standard_args): Add --daemon.
8797 (main): Disconnect from the terminal when --daemon is passed.
8798 (is_daemon): New variable.
8799 (Fdaemonp): New function.
8800 (syms_of_emacs): Defsubr it.
8802 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8804 * xdisp.c (get_next_display_element): Handle string display
8805 correctly when checking for the end of a box run.
8807 2008-09-20 Glenn Morris <rgm@gnu.org>
8809 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8810 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8811 (Frename_file): Avoid copying to trash if a rename involves
8812 a delete. (Bug#964).
8814 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8816 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8817 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8818 frames as well as termcap frames.
8819 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8822 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8824 * process.c (procfs_system_process_attributes): Fix cmdline in
8825 case /proc/PID/cmdline is empty.
8827 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8828 x_display_pixel_height.
8830 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8832 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8834 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8835 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8837 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8839 * dispextern.h (struct it): Move line_wrap away from the middle of
8840 bitfields. Move voffset in struct iterator_stack_entry after the
8841 bitfields. Move tab_width near after another short.
8843 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8845 * frame.h (struct frame): Move alpha from the middle of bitfields.
8847 * window.h (struct window): Move frozen_window_start_p after the
8848 rest of the bitfields to reduce padding.
8850 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8852 * xterm.h (x_display_info): Remove `height' and `width' members.
8854 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8856 * w32term.h (w32_display_info): Remove `height', `width',
8857 `height_in', and `width_in' members.
8859 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8861 (x_calc_absolute_position): Use them.
8862 (x_term_init): Omit removed `height' and `width' members.
8864 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8866 (w32_read_socket, x_calc_absolute_position): Use them.
8867 (w32_initialize_display_info, w32_term_init): Omit removed members
8868 of w32_display_info.
8870 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8872 (ns_initialize_display_info): Omit removed members of ns_display_info.
8874 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8876 (x_calc_absolute_position): Use them.
8877 (x_term_init): Omit removed `height' and `width' members.
8879 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8881 * frame.c (x_fullscreen_adjust):
8882 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8883 x_display_pixel_width.
8885 2008-09-18 Kenichi Handa <handa@m17n.org>
8887 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8888 (composition_compute_stop_pos): Fix handling of static composition.
8889 (Fcomposition_get_gstring): Check FROM and TO at first.
8891 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8893 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8896 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8898 * indent.c (Fvertical_motion): Use position reported by iterator
8899 instead of PT for determining screen motion (bug#943).
8901 2008-09-17 Romain Francoise <romain@orebokech.com>
8903 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8905 2008-09-17 Kenichi Handa <handa@m17n.org>
8907 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8909 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8912 2008-09-16 Kenichi Handa <handa@m17n.org>
8914 * coding.c (make_conversion_work_buffer): Avoid calling
8915 Fget_buffer_create if it is not necessary.
8917 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8919 * window.c (Fselect_window): Don't update window_select_count and
8920 use_time when norecord is not nil.
8922 2008-09-14 Kenichi Handa <handa@m17n.org>
8924 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8927 2008-09-12 Kenichi Handa <handa@m17n.org>
8929 * indent.c (scan_for_column): Don't handle automatic composition
8930 if the current buffer is not associated with a window.
8932 * composite.c (composition_reseat_it): If the current buffer is
8933 not associated with a window, ignore the automatic composition.
8934 (find_automatic_composition): Likewise.
8936 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8938 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8939 (Fgpm_mouse_stop): Use it.
8940 * termhooks.h (close_gpm): Declare.
8941 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8942 connection if Gpm_GetEvent fails.
8944 * window.c (set_window_buffer): Always preserve current-buffer.
8946 2008-09-12 Glenn Morris <rgm@gnu.org>
8948 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8950 2008-09-11 Glenn Morris <rgm@gnu.org>
8952 * charset.c (charset-map-path): Doc fix.
8954 2008-09-10 Kenichi Handa <handa@m17n.org>
8956 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8958 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8959 compose a grapheme cluster with the preceding base glyph.
8961 * composite.c (composition_compute_stop_pos): Fix previous change.
8962 Reset cmp_it->id to -1 at first.
8964 2008-09-10 Glenn Morris <rgm@gnu.org>
8966 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8968 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8970 * keyboard.c (read_key_sequence): Reapply translation maps when
8971 switching keyboards.
8973 2008-09-09 Kenichi Handa <handa@m17n.org>
8975 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8978 * composite.c (FORWARD_CHAR): Fix calculation
8979 of (POSITION).pos_byte.
8980 (composition_compute_stop_pos): Limit the search of composition to
8981 at most 500 characters ahead. If we reach the limit or find a
8982 newline, set cmp_it->ch to -2 and return 0.
8983 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8985 2008-09-08 Kenichi Handa <handa@m17n.org>
8987 * indent.c (Fvertical_motion): Be sure to set
8988 it_overshoot_expected if it.cmp_it.id is non-negative.
8990 2008-09-07 Andreas Schwab <schwab@suse.de>
8992 * callproc.c (Fcall_process): Don't hold references to string data
8993 across garbage collection. Move initialisation of new_argv down
8994 to avoid compiler bug.
8996 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8998 * process.c (Fsystem_process_attributes): Doc fix.
9000 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
9002 * callproc.c (Fcall_process): Canonicalize current directory name.
9004 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9005 iterator advances to the next line if the current line ends in a
9008 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9010 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9011 member to point to cmp_from.
9013 * xdisp.c: Doc fix for references to gidx data member.
9015 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9017 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9019 2008-09-07 Kenichi Handa <handa@m17n.org>
9021 * composite.c (FORWARD_CHAR): Check STOP after
9022 incrementing (POSITION).pos.
9024 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9026 * process.c (Fsystem_process_attributes): Doc fix.
9028 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
9030 * keyboard.c (Ftop_level): Doc fix.
9032 2008-09-06 Eli Zaretskii <eliz@gnu.org>
9034 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9035 minibuffer, don't let lower part of menu invade the echo area.
9037 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9038 "char *q" to access menu text and advance through it. Revert the
9039 change that displayed ">" instead of ASCII character 0x10.
9041 2008-09-05 Eli Zaretskii <eliz@gnu.org>
9043 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9044 toggle boxes and radio buttons on MS-DOS as well.
9046 2008-09-05 Kenichi Handa <handa@m17n.org>
9048 * composite.c (autocmp_chars): Check lookback count.
9049 (composition_compute_stop_pos): Set cmp_it->lookback.
9050 (composition_reseat_it): Check lookback count.
9051 (struct position_record): New struct.
9052 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9053 (find_automatic_composition): New function.
9054 (composition_adjust_point): Use find_automatic_composition.
9056 * dispextern.h (struct composition_it): New member lookback.
9058 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
9060 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9061 if moving by a single line.
9063 2008-09-02 Andreas Schwab <schwab@suse.de>
9065 * xterm.c (x_delete_display): Fix merge error.
9067 * fileio.c (Fexpand_file_name): Remove unused variables.
9069 2008-09-02 Eli Zaretskii <eliz@gnu.org>
9071 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9072 storage on all platforms, not just on DOS_NT.
9074 2008-09-02 Jason Rumney <jasonr@gnu.org>
9076 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9077 Ensure mouse is not grabbed after menu is finished.
9079 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
9081 * xfaces.c (Finternal_set_alternative_font_family_alist)
9082 (Finternal_set_alternative_font_registry_alist): Properly copy
9083 entire alist structure.
9085 2008-09-01 Kenichi Handa <handa@m17n.org>
9087 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
9088 representative chars of the script is a vector.
9089 (ftfont_list): Handle the case where the representative chars of
9090 the script is a vector.
9092 * character.c (syms_of_character): Docstring of
9093 script-representative-chars fixed.
9095 2008-08-31 Eli Zaretskii <eliz@gnu.org>
9097 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9098 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9099 the menu. Allocate larger buffer for `text', to account for
9100 possible ^C characters.
9102 2008-08-31 Martin Rudalics <rudalics@gmx.at>
9104 * xdisp.c (prepare_menu_bars): Don't call
9105 Vwindow_size_change_functions with arg Qt.
9107 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9109 * font.h (font_range):
9110 * fileio.c (report_file_error):
9111 * composite.c (composition_update_it): Yet another int/Lisp_Object
9114 2008-08-30 Glenn Morris <rgm@gnu.org>
9116 * data.c (Fmake_variable_frame_local): Doc fix.
9118 * frame.c (Fmodify_frame_parameters): Doc fix.
9120 2008-08-30 Eli Zaretskii <eliz@gnu.org>
9122 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9123 needed by GetTokenInformation.
9124 (w32_system_process_attributes): Check return values of all system
9127 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9128 only when the state changes.
9129 (IT_update_begin, IT_update_end): Add termscript trace.
9131 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9132 clipboard is unavailable. Set dst to NULL if it doesn't point to
9134 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9135 passing random values to xfree.
9137 * dispnew.c (init_display): Set `tty's association in frame's
9138 parameters alist to the name of the terminal device, if that is known.
9140 2008-08-29 Jason Rumney <jasonr@gnu.org>
9142 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9144 2008-08-29 Eli Zaretskii <eliz@gnu.org>
9146 * composite.c (fill_gstring_body): Avoid compiler warnings.
9148 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9149 LGLYPH_SET_CODE to avoid compiler warnings.
9151 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
9153 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9155 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9158 2008-08-29 Kenichi Handa <handa@m17n.org>
9160 * fileio.c (report_file_error): Don't downcase the first character
9161 of errstring if it is still unibyte.
9163 2008-08-29 Kenichi Handa <handa@m17n.org>
9165 These changes are to re-implement the automatic composition so
9166 that it doesn't use text properties.
9168 * Makefile.in (ftfont.o): Depend on composite.h.
9169 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9171 * character.h (Vunicode_category_table): Extern it.
9173 * character.c (Vunicode_category_table): New variable.
9174 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9176 * chartab.c (optimize_sub_char_table): Perform more greedy
9179 * composite.h (enum composition_method):
9180 Delete COMPOSITION_WITH_GLYPH_STRING.
9181 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9182 (Vcomposition_function_table): Extern it.
9183 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9184 (composition_gstring_put_cache, composition_gstring_from_id)
9185 (composition_gstring_p, composition_gstring_width)
9186 (composition_compute_stop_pos, composition_reseat_it)
9187 (composition_update_it, composition_adjust_point): Extern them.
9188 (Fcomposition_get_gstring): EXFUN it.
9190 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
9191 (Vcomposition_function_table)
9192 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
9193 (gstring_hash_table, gstring_work, gstring_work_headers):
9195 (gstring_lookup_cache, composition_gstring_put_cache)
9196 (composition_gstring_from_id, composition_gstring_p)
9197 (composition_gstring_width, fill_gstring_header)
9198 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9199 (composition_reseat_it, composition_update_it)
9200 (composition_adjust_point, Fcomposition_get_gstring): New functions.
9201 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9202 and gstring_work_headers. DEFVAR_LISP composition-function-table.
9203 Defsubr composition_get_gstring.
9205 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9207 (struct glyph_string): Delete the member gidx. New members
9208 cmp_id, cmp_from, and cmp_to.
9209 (enum it_method): Delete GET_FROM_COMPOSITION.
9210 (struct composition_it): New struct.
9211 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9212 Delete c, len, cmp_id, cmp_len in u.comp.
9214 * font.h (enum lgstring_indices): Delete it.
9215 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
9216 (enum lglyph_indices): Likewise.
9217 (font_range): Adjust extern.
9218 (font_fill_lglyph_metrics): Extern it.
9220 * font.c (QCf): New variable.
9221 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9222 (font_prepare_composition): Delete this function.
9223 (font_range): Type and arguments changed.
9224 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9225 (font_fill_lglyph_metrics): New function.
9226 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
9227 (syms_of_font): DEFSYM QCf. Delete defsubr for
9228 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9229 Defsubr Sfont_shape_gstring.
9231 * fontset.h (font_for_char): Extern it.
9233 * fontset.c (font_for_char): New function.
9235 * ftfont.c: Include composite.h.
9236 (ftfont_resolve_generic_family): Add langset "en" to pattern.
9237 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9239 * indent.c: Include composite.h and dispextern.h.
9240 (check_composition): Delete this function.
9241 (scan_for_column): Handle composition by
9242 composition_compute_stop_pos, composition_reseat_it, and
9243 composition_update_it.
9244 (compute_motion): Likewise.
9245 (Fvertical_motion): Fix checking of composition.
9247 * keyboard.c (adjust_point_for_property): Check composition by
9248 composition_adjust_point.
9250 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
9251 struct glyph_string.
9253 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9254 (append_composite_glyph): Adjust for the change of struct it and
9256 (produce_composite_glyph): Likewise.
9258 * w32term.c (x_draw_composite_glyph_string_foreground):
9259 Adjust for the change of struct glyph_string.
9260 (x_draw_glyph_string): Likewise.
9262 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9263 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9265 * xdisp.c: Include font.h.
9266 (it_props): Delete the entry for Qauto_composed.
9267 (init_iterator): Initialize it->cmp_it.id to -1.
9268 (compute_stop_pos): Call composition_compute_stop_pos.
9269 (face_before_or_after_it_pos): Adjust for the change of struct it.
9270 (handle_auto_composed_prop): Delete it.
9271 (handle_composition_prop): Handle only static composition.
9272 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9273 from xassert. Initialize it->cmp_it.stop_pos.
9274 (push_it): Adjust for the change of struct it.
9276 (get_next_element): Delete next_element_from_composition.
9277 (CHAR_COMPOSED_P): New macro.
9278 (get_next_display_element): For automatic composition, get a face
9279 from the font in the glyph-string.
9280 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
9281 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
9282 (next_element_from_string): Check if the character at the current
9283 position is composed by CHAR_COMPOSED_P.
9284 (next_element_from_buffer): Likewise.
9285 (next_element_from_composition): Adjust for the change of struct it.
9287 (dump_glyph): Adjust for the change of struct glyph.
9288 (fill_composite_glyph_string): Adjust for the change of struct
9289 it and struct glyph. Don't handle automatic composition here.
9290 (fill_gstring_glyph_string): New function.
9291 (x_get_glyph_overhangs): Handle automatic composition.
9292 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
9293 (BUILD_GSTRING_GLYPH_STRING): New macro.
9294 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9295 automatic composition.
9296 (append_composite_glyph): Adjust for the change of struct it and
9298 (x_produce_glyphs): Adjust for the change of struct it.
9300 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9301 the change of struct glyph_string.
9302 (x_draw_glyph_string): Likewise.
9304 2008-08-29 Glenn Morris <rgm@gnu.org>
9306 * buffer.c (word-wrap): Doc fix.
9307 * xdisp.c (truncate-partial-width-windows): Doc fix.
9308 Increase default to 50.
9310 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
9312 * xdisp.c (update_tool_bar_unwind): New function.
9313 (update_tool_bar): Temporarily set selected frame before building
9316 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9318 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9319 snprintf, respectively.
9320 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9322 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9324 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9325 LDFLAGS to GNUstep CC invocation.
9327 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9329 * indent.c (Fvertical_motion): Revert last change. Handle the
9330 general case where we are moving forward, and PT spans multiple
9333 * eval.c (find_handler_clause): Temporarily increase
9334 max-lisp-eval-depth while printing the backtrace buffer, to
9335 guarantee that help-mode code can run.
9337 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9339 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9341 (IT_set_frame_parameters): Don't swap foreground and background
9342 colors if `(reverse . t)' is present in the frame properties.
9343 (internal_terminal_init): Call init_frame_faces only for the
9346 2008-08-27 Andreas Schwab <schwab@suse.de>
9348 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9350 2008-08-27 Andreas Schwab <schwab@suse.de>
9352 * search.c (search_buffer): Set char_base to zero only at the end.
9354 2008-08-27 Kenichi Handa <handa@m17n.org>
9356 * fileio.c (report_file_error): Fix handling of multibyte error string.
9358 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9360 * xterm.c (x_term_init): Temporarily hide the partially
9361 initialized terminal while calling vendor-specific-keysyms.
9363 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9365 * msdos.c (internal_terminal_init): Most initializations done only
9366 once, especially initial_screen_colors[] and termscript open.
9368 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9370 * eval.c (Fcondition_case): Doc fix.
9372 * widgetprv.h (EmacsFramePart): Change font member to the new font
9375 * widget.c: Include character.h and font.h for XSETFONT.
9376 (setup_frame_gcs): Compute X font id from font struct, just once.
9378 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9380 * term.c (get_named_tty): Fix last change.
9382 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9384 * indent.c (Fvertical_motion): If moving forward starting from a
9385 multi-line string, move the iterator to the last line of that string.
9387 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9389 * frame.c (do_switch_frame): Mark previously displayed frame as
9390 obscured for FRAME_MSDOS_P frames as well.
9392 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9394 * frame.c (make_terminal_frame): Initialize f->terminal,
9395 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9396 Set the top frame to newly created frame.
9397 (Fmake_terminal_frame): Reuse the_only_display_info.
9399 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9400 estimating available memory.
9402 2008-08-23 David Reitter <david.reitter@gmail.com>
9404 * nsterm.m (ns_draw_window_cursor): Don't call
9405 NSDisableScreenUpdates and NSEnableScreenUpdates on
9406 non-NS_IMPL_COCOA systems.
9408 2008-08-23 Andreas Schwab <schwab@suse.de>
9410 * process.c (procfs_system_process_attributes): Fix use of
9411 uninitialized variables.
9413 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9415 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9417 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9418 calling tty-set-up-initial-frame-faces.
9420 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9421 Allow MSDOS frames along with X frames.
9423 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9424 addition to output_termcap.
9426 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9428 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9429 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9432 * process.c [!subprocesses]: Define QCname.
9433 (syms_of_process): Intern and staticpro it.
9435 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9436 Adjust for changes in encoding/decoding routines.
9437 Use encode_coding_object and decode_coding_object instead of
9438 encode_coding and decode_coding.
9440 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9442 * dosfns.c: Include frame.h before termhooks.h.
9443 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9444 variable termscript.
9446 * s/msdos.h (USER_FULL_NAME): Define.
9447 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9449 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9450 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9453 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9454 SELECTED_FRAME as additional (1st) argument.
9455 (tty_read_avail_input): Handle output_msdos_raw in
9456 addition to output_termcap.
9458 * msdos.c: Include frame.h before termhooks.h.
9459 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9460 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9461 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9462 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9463 (IT_set_terminal_modes, IT_reset_terminal_modes)
9464 (IT_set_frame_parameters): Use tty->termscript instead of a global
9465 variable termscript.
9466 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9467 global variable terminal_coding. Don't refer to
9468 Vnonascii_translation_table.
9469 (internal_terminal_init): Set Vwindow_system in current_kboard.
9470 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9471 Announce date and time of session start, if termscript is open.
9472 Don't zero out the_only_display_info (it is done in
9473 term.c:init_tty). Open termscript only of not already open.
9474 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9475 here instead of dos_ttraw. Don't initialize display if this is an
9476 initial tty. Don't set FRAME_FONT.
9477 (Vwindow_system_version): Bump to 23.
9478 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9479 is available, set up mouse_position_hook.
9480 (dos_ttraw, IT_set_terminal_modes): If called with initial
9481 terminal, do nothing.
9482 (IT_set_frame_parameters): Handle the Qtty_type frame
9483 parameter by calling internal_terminal_init.
9484 (dos_set_window_size, show_mouse_face)
9485 (clear_mouse_face, IT_note_mode_line_highlight)
9486 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9487 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9488 (initialize_msdos_display): New function.
9489 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9490 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9491 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9492 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9493 Accept additional argument: a pointer to a frame. Update all callers.
9494 (request_sigio, unrequest_sigio): Don't define, now defined on
9496 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9498 * term.c [MSDOS]: Include msdos.h.
9499 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9500 conditional to DOS_NT. Allow only one call to this function in a
9501 session. Don't allocate a new struct tty_display_info; instead,
9502 reuse the_only_display_info. Call get_tty_size to get screen
9503 dimensions. Call init_baud_rate to set bad_rate.
9504 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9505 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9506 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9507 (get_tty_terminal, get_named_tty, Ftty_type)
9508 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9510 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9511 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9512 only when subprocesses are supported.
9514 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9516 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9519 * msdos.h: Remove definition of struct x_display_info and struct
9521 (FRAME_FONT): Use output_data.tty.
9522 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9523 (struct x_display_info): Rename from display_info. Update all users in
9525 (struct x_output): Remove background_pixel and foreground_pixel.
9526 (the_only_display_info): Rename from the_only_x_display.
9527 (dos_ttraw): Update prototype.
9529 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9530 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9532 2008-08-23 Jason Rumney <jasonr@gnu.org>
9534 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9535 (fn_TIFFSetDirectory): New library function used.
9536 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9537 (tiff_load): Use :index to select among multiple images. Set count
9538 property when multiple images exist.
9539 (gif_format): Use :index, not :image.
9541 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9543 * xdisp.c (try_scrolling): Check INT_MAX instead of
9544 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9547 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9549 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9551 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9553 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9554 GNUstep library location.
9556 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9558 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9561 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9563 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9565 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9566 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9567 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9568 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9569 (EmacsApp-cursor_blink_handler): Remove declaration.
9570 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9571 match 01 Feb 2008 changes in xterm.c.
9572 (ns_read_socket): Add cast to avoid warning.
9573 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9576 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9578 * xselect.c (x_get_foreign_selection): Return nil if desired
9579 selection could not be obtained, instead of signalling an error.
9581 2008-08-20 David Reitter <david.reitter@gmail.com>
9583 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9584 * nsterm.m: Remove ns-specific code for cursor blinking.
9585 (ns_draw_window_cursor): Clear cursor properly rather than
9586 redrawing the area. Respect width of bar cursors.
9587 These changes enable the use of generic blink-cursor-mode and
9588 generic cursor types in NS and support smooth cursor movements (do
9589 not blink off after command).
9590 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9593 2008-08-19 Kenichi Handa <handa@m17n.org>
9595 * font.c (Vfont_log_deferred): New variable.
9596 (font_add_log): Check Vfont_log_deferred.
9597 (font_deferred_log): New function.
9599 * font.h (font_deferred_log): Extern it.
9601 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9603 (face_for_char): Use deferred log.
9605 2008-08-18 Kenichi Handa <handa@m17n.org>
9607 * fontset.c (face_for_char): Add font log.
9609 * font.c (font_add_log): Add the font properties :script, :lang,
9610 and :otf in the log.
9612 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9614 * xdisp.c: Remove dead code.
9615 (handle_invisible_prop, next_overlay_string): Defer call to
9617 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9619 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9621 * xfaces.c (lookup_derived_face): Properly handle possible zero
9622 return value of get_lface_attributes.
9623 (merge_faces): Don't tell lookup_derived_face to signal an error
9624 if face is not found.
9626 * dired.c (Fdirectory_files): Doc fix.
9628 * process.c (make_process): Initialize kill_without_query struct
9631 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9633 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9634 Alternative calculation of totphys for Visual Studio 6.
9636 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9638 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9639 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9641 (stat): Only root directory passed to GetDriveType. Allow RAM
9642 disk as well as local fixed disk when w32-get-true-file-attributes
9644 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9645 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9646 (w32_cached_id, w32_add_to_cache): New functions.
9647 (get_name_and_id): Look account names in the cache before calling
9649 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9650 New initialization flags.
9651 (globals_of_w32): Initialize them to zero.
9652 (w32_system_process_attributes): Use w32_cached_id and
9655 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9657 * lread.c (Fread_char, Fread_char_exclusive): If no character
9658 event is read before timeout is reached, return nil, rather than
9659 converting to a number.
9661 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9663 * fns.c (use_dialog_box): Doc fix.
9665 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9668 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9670 * frame.c (Qns_parse_geometry): New var.
9671 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9673 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9675 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9676 space character in calculating tabs.
9678 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9680 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9682 2008-08-10 Glenn Morris <rgm@gnu.org>
9684 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9685 silence gcc "limited range of data type" warnings in some
9686 make_fixnum_or_float calls.
9688 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9690 * w32.c (w32_system_process_attributes): If the process does not
9693 * w32.c: Include thelp32.h, psapi.h and coding.h.
9694 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9696 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9697 (Process32Next_Proc): New typedefs.
9698 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9699 (g_b_init_process32_next, g_b_init_open_thread_token)
9700 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9701 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9702 (g_b_init_get_process_working_set_size)
9703 (g_b_init_global_memory_status_ex): New static variables.
9704 (globals_of_w32): Initialize them.
9705 (create_toolhelp32_snapshot, process32_first, process32_next)
9706 (open_thread_token, impersonate_self, revert_to_self)
9707 (get_process_memory_info, get_process_working_set_size)
9708 (global_memory_status, global_memory_status_ex): New wrapper
9710 (w32_list_system_processes, w32_system_process_attributes)
9711 (enable_privilege, restore_privilege, ltime, process_times):
9713 (convert_time_raw): New function.
9714 (convert_time): Remove conversion of FILETIME into time in 100
9715 nsec units, call convert_time_raw instead.
9717 * process.h (w32_list_system_processes, w32_system_process_attributes):
9719 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9720 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9721 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9722 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9724 * process.c (Fsystem_process_attributes): Doc fix.
9726 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9728 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9729 a continued multi-char glyph; if so, advance to the actual glyph.
9731 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9733 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9735 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9737 * config.in: Regenerate.
9739 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9741 * xdisp.c (redisplay_window): Revert last change.
9742 (try_window): Check bottom scroll margin too.
9744 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9746 * config.in: Regenerate.
9748 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9749 -list-load-path-shadows'.
9750 (nsgui.h): Reduce number of things depending on it.
9752 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9754 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9755 instead of window-end which does the wrong thing at eob.
9756 (try_cursor_movement): Minor optimization.
9757 (redisplay_window): If scroll margin is defined, don't assume
9758 window doesn't need scrolling.
9760 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9762 * config.in: Regenerate.
9764 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9765 (mostlyclean): Don't delete *.d under NS.
9767 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9769 2008-08-06 Kenichi Handa <handa@m17n.org>
9771 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9773 2008-08-06 Andreas Schwab <schwab@suse.de>
9775 * config.in: Regenerate.
9777 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9779 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9780 forcing a window start.
9782 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9783 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9785 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9787 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9790 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9792 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9793 <scroll-down-aggressively, before-change-functions>:
9794 <after-change-functions>: Reflow docstrings.
9796 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9797 Ken Raeburn <raeburn@gnu.org>
9799 Dock menu customization, based on a patch by Ken Raeburn, plus some
9801 * nsmenu.m (dockMenu): New variable.
9802 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9804 * nsterm.h (dockMenu): Declare.
9806 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9807 (ns_term_init): Initialize dockMenu.
9808 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9809 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9812 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9814 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9816 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9818 * config.in: Regenerate.
9820 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9822 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9824 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9826 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9828 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9830 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9832 * keyboard.h: Comment an #endif.
9834 * lisp.h (have_menus_p): Adjust comment.
9836 * menu.c (find_and_return_menu_selection): Fix comparison with
9839 * nsmenu.m (popup_activated_flag): New variable.
9840 (popup_activated): New function.
9841 (menu-or-popup-active-p): New exported lisp definition.
9842 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9844 (ns_popup_dialog): Set popup_activated_flag.
9846 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9847 version for GNUstep (handled by conditional typedef in nsterm.m).
9848 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9851 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9853 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9855 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9857 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9858 shortcircuit if popup_activated like GTK and X toolkit.
9860 * m/inter386.h: Change DARWIN to DARWIN_OS.
9862 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9863 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9864 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9865 comment on NO_SOCK_SIGIO.
9867 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9869 * nsterm.m (windowDidResize): Remove stopModal call.
9871 2008-08-03 Andreas Schwab <schwab@suse.de>
9873 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9874 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9876 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9878 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9879 Don't use uninitialized pointer variable when using getrlimit.
9881 2008-08-02 Jason Rumney <jasonr@gnu.org>
9883 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9885 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9887 * alloc.c (NSTATICS): Bump to 0x640.
9889 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9891 * lisp.h: Add prototype for directory_files_internal.
9893 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9895 (syms_of_process): Defsubr them. Add initializations for various
9896 Q* symbols used in procfs_system_process_attributes.
9897 (procfs_list_system_processes, procfs_system_process_attributes)
9898 [HAVE_PROCFS]: New functions.
9899 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9900 (procfs_get_total_memory): New functions.
9902 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9904 * xfaces.c (Fx_load_color_file): Fix previous change;
9905 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9907 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9909 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9911 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9913 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9915 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9917 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9919 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9920 define NSApplicationDelegateReplySuccess.
9921 (EmacsView -converstationIdentifier): Use long instead of
9922 NSInteger for GNUstep, since it doesn't have NSInteger.
9924 * xmenu.c: Revert last change.
9926 * keyboard.h: Fix last change.
9928 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9930 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9933 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9935 Warning clearing and clean-up in NS port.
9936 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9938 * nsgui.h (FACE_DEFAULT): Remove, unused.
9939 (XGCValues): Change colors to unsigned long.
9940 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9942 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9943 (ns_list_fonts): Remove, unused.
9944 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9945 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9946 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9947 (nsfont_draw): Compare face colors to 0, not nil.
9948 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9949 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9950 (-addSubmenuWithTitle:): Use NSMenuItem class.
9951 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9952 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9953 (ns_clip_to_row): Make gc arg a BOOL.
9954 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9955 ns_clip_to_row() call.
9956 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9957 used). Cast FRAME_FONT assignments.
9958 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9959 (ns_string_to_lispmod): Change arg to const char.
9960 (ns_term_init): Use NSMenuItem class.
9961 (EmacsApp -openFile:): Move to different section of file.
9962 (EmacsApp -application:openFiles:): Don't return a value, call
9963 -replyToOpenOrPrint:.
9964 (EmacsView -keyDown:): Fix up cast.
9965 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9966 (EmacsView -menuDown:): Cast tag in call to
9967 find_and_call_menu_selection().
9968 (ns_list_fonts): Remove, unused.
9969 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9970 (ns_fontname_to_xlfd): Make static.
9971 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9972 Remove prototypes (now in keyboard.h).
9973 (next_menubar_widget_id): Remove, unused.
9974 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9975 Remove prototypes (now in keyboard.h).
9976 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9978 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9980 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9981 (floatfns.o): Depend on syssignal.h.
9982 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9984 * systty.h: Fix previous change that removed BSD_TERMIOS.
9985 Add comments to #ifdefs.
9987 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9989 * w32fns.c (w32-load-color-file): Remove.
9990 (x-open-connection): Use renamed Fx_load_color_file.
9991 * xfaces.c (x-load-color-file): Add.
9992 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9994 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9996 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9998 * dbusbind.c (Fdbus_call_method_asynchronously)
9999 (Fdbus_method_error_internal): New defuns.
10000 (xd_read_message): Handle also reply messages.
10001 (Vdbus_registered_functions_table): Extend docstring.
10003 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
10005 * keyboard.c (gobble_input): Fix previous change.
10007 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10038 * m/vax.h: Remove VMS support.
10044 * ioctl.h: Remove file.
10046 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10048 * s/ms-w32.h (MULTI_KBOARD): Remove.
10063 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10064 * config.in: Regenerate.
10066 2008-07-30 Jason Rumney <jasonr@gnu.org>
10068 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10070 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10071 (w32font_open_internal): Get unicode version of textmetrics.
10072 Don't enable or disable glyph indices here.
10073 (w32font_open): Disable use of glyph indices.
10075 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10077 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
10079 * minibuf.c (Vread_buffer_function): Doc fix.
10081 2008-07-30 John Paul Wallington <jpw@pobox.com>
10083 * minibuf.c (read_buffer_completion_ignore_case): New var.
10084 (Fread_buffer): Use it.
10086 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10088 * systty.h (sensemode): Remove empty #if. Remove reference to
10089 BSD_TERMIOS, unused.
10091 * sysdep.c: Remove reference to DGUX.
10092 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10094 * config.in: Regenerate.
10096 2008-07-30 Jason Rumney <jasonr@gnu.org>
10098 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10100 2008-07-29 Jason Rumney <jasonr@gnu.org>
10102 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10104 (uniscribe_encode_char): Always use uniscribe.
10105 Avoid using context if cache is populated.
10107 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10109 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10112 * gtkutil.c (menu_nav_ended): Remove.
10113 (create_menus): Remove signal connect for menu_nav_ended.
10115 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
10117 * xdisp.c (redisplay_window): Check return value of
10118 compute_window_start_on_continuation_line before forcing a window
10121 2008-07-28 Jason Rumney <jasonr@gnu.org>
10123 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10125 * w32term.c (w32_enable_unicode_output, cleartype_active):
10126 Remove obsolete display options.
10127 (x_draw_glyph_string_background): Don't use old cleartype_active
10129 (w32_initialize): Remove cleartype_active initialization.
10130 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10132 2008-07-28 Andreas Schwab <schwab@suse.de>
10134 * lisp.h (init_weak_hash_tables, syms_of_font)
10135 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10136 (remove_hash_entry): Don't declare.
10137 * eval.c (maybe_call_debugger): Make static and move before use.
10138 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10139 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10140 * xterm.h (x_set_frame_alpha): Declare.
10142 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10144 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10145 (create_menus): Connect selection-done to menu_nav_ended.
10147 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10149 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10150 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10151 parameter with read of 'alpha' one.
10152 (Qns_frame_parameter): Remove.
10153 * nsselect.m (selection-coding-system)
10154 (next-selection-coding-system, Vselection_coding_system)
10155 (Vnext_selection_coding_system): Drop.
10157 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10159 * nsfns.m (do-applescript, do_applescript): Rename to
10160 ns-do-applescript, ns_do_applescript, and move within file.
10162 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10164 Remove support for Mac Carbon.
10172 * mac.c: Remove file.
10203 * Makefile.in: Remove code for Carbon.
10205 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10207 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10209 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10211 * macterm.h (kCGBitmapByteOrder32Host): New define for
10212 non-universal SDKs.
10214 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10215 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10217 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10218 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10220 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10222 * w32inevt.c: Include dispextern.h.
10224 2008-07-26 Andreas Schwab <schwab@suse.de>
10226 * print.c (print_object): Fix off-by-one in last change.
10228 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
10230 * term.c (syms_of_term): Don't initialize default_orig_pair,
10231 default_set_foreground and default_set_background on Windows.
10233 2008-07-25 Jason Rumney <jasonr@gnu.org>
10235 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10236 ScriptItemize. Clean up return value checking. Remove unused
10238 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10241 * w32font.c (w32font_has_char): Handle the case where we can't
10242 determine the script for a character.
10244 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10246 * term.c (syms_of_term): Initialize default_orig_pair,
10247 default_set_foreground, and default_set_background.
10249 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10251 (getloadavg): Callers changed.
10253 * image.c (svg_load_image): Fix last change.
10254 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10255 image size is valid. Use g_object_unref instead of deprecated
10256 rsvg_handle_free to free rsvg handle.
10257 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10259 2008-07-25 Jason Rumney <jasonr@gnu.org>
10261 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10262 surrogates before looking up glyph index.
10263 (w32font_text_extents): Encode as surrogates if falling back to
10264 functions that need UTF-16 wide chars.
10266 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10267 BMP as surrogates before looking up glyph index.
10269 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10271 * image.c (svg_load_image): Check for failure in return value of
10272 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10274 2008-07-25 Jason Rumney <jasonr@gnu.org>
10276 * w32font.c (Fx_select_font): Reverse sense of second arg.
10278 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10280 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10281 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10283 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10284 (PURESIZE): Use it.
10286 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10288 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10289 * m/alpha.h (TEXT_END):
10290 * m/ibmrs6000.h (TEXT_END):
10291 * m/macppc.h (TEXT_END):
10292 * s/darwin.h (TEXT_END):
10293 * s/msdos.h (TEXT_END): Remove, unused.
10294 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10295 * s/cygwin.h: Remove comment.
10297 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10298 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10299 * m/intel386.h (DOT_GLOBAL_START):
10300 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10301 (USG): Remove, file not used on USG platforms.
10303 * Makefile.in (HAVE_X11): Remove empty #else.
10305 2008-07-24 Andreas Schwab <schwab@suse.de>
10307 * fileio.c (Finsert_file_contents): Properly adjust undo list
10308 after format conversion.
10310 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10312 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10313 (menu_nav_ended): Remove.
10314 (create_menus): Remove signal connect for menu_nav_ended.
10315 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10317 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10319 2008-07-23 Jason Rumney <jasonr@gnu.org>
10321 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10323 (w32font_open): Set font type to gdi.
10325 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10327 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10329 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10330 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10332 * unexec.c (ADDR_CORRECT): Define unconditionally.
10334 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10336 * unexec.c: Remove code depending on !COFF and USG, the file is
10337 not used for such systems.
10339 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10340 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10341 (LD_SWITCH_SYSTEM_1): Remove, update users.
10343 * s/darwin.h (DATA_END):
10344 * m/intel386.h (DATA_END):
10345 * m/ibmrs6000.h (DATA_END):
10346 * m/alpha.h (DATA_END): Remove, unused.
10348 * config.in: Regenerate.
10349 * s/ms-w32.h (subprocesses): Define unconditionally.
10350 * s/template.h (subprocesses): Update comment.
10351 * s/vms.h (subprocesses):
10352 * s/usg5-4.h (subprocesses):
10353 * s/hpux10-20.h (subprocesses):
10354 * s/gnu-linux.h (subprocesses):
10355 * s/cygwin.h (subprocesses):
10356 * s/bsd-common.h (subprocesses):
10357 * s/aix4-2.h (subprocesses):
10358 * s/darwin.h (subprocesses): Do not define, defined by default now.
10360 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10361 Remove all references.
10362 (temacs): Add GNUstep specific ld flags.
10364 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10365 similarly to what X does.
10367 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10369 * nsfns.m (x-list-fonts): Remove.
10370 (syms_of_nsfns): Drop the x-list-fonts declaration.
10371 * nsterm.m: Get rid of remaining "//" comments.
10373 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10375 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10377 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10378 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10379 (Fns_own_selection_internal, Fx_disown_selection_internal)
10380 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10382 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10383 ... */' style of docstrings. Doc fixes.
10385 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10387 * terminfo.c (UP, BC, PC): Undo previous change.
10389 * nsfns.m: Rename ns prefixed functions/variables to the
10390 corresponding x versions. Update references.
10392 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10394 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10396 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10398 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10399 Remove forwarding functions.
10400 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10402 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10404 (ns_frame_parm_handlers): Use the new names.
10405 (syms_of_nsfns): Move to the end of file.
10407 * nsterm.m (syms_of_nsterm): Move to the end of file.
10409 * dispnew.c (init_display): Remove code for X10.
10411 2008-07-22 Jason Rumney <jasonr@gnu.org>
10413 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10416 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10418 * nsterm.m (syms_of_nsterm): Remove debugging println.
10420 2008-07-22 David Reitter <david.reitter@gmail.com>
10422 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10423 Carbon implementation of the same functionality: execute arbitrary
10426 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10428 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10429 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10430 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10431 (Fx_display_mm_height, Fx_display_mm_width)
10432 (Fx_display_backing_store, Fx_display_visual_class)
10433 (Fx_display_save_under, Fx_open_connection)
10434 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10435 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10436 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10437 (Fx_display_pixel_width, Fx_display_pixel_height)
10438 (Fx_display_usable_bounds, Fx_display_planes)
10439 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10440 ... */' style of docstrings.
10442 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10444 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10447 * m/iris4d.h (mips): Do not define.
10448 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10450 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10456 * nsterm.m: Rename ns prefixed functions/variables to the
10457 corresponding x versions. Update references.
10459 * m/ibms390x.h (NO_REMAP): Do not undefine.
10461 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10463 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10465 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10466 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10467 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10468 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10469 (Fns_display_mm_height, Fns_display_mm_width)
10470 (Fns_display_backing_store, Fns_display_visual_class)
10471 (Fns_display_save_under, Fns_open_connection)
10472 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10473 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10474 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10475 (Fns_display_pixel_width, Fns_display_pixel_height)
10476 (Fns_display_usable_bounds, Fx_display_planes)
10477 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10479 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10481 * print.c (print_object): Check print_depth before searching for
10484 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10486 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10489 2008-07-21 Kenichi Handa <handa@m17n.org>
10491 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10493 2008-07-20 Andreas Schwab <schwab@suse.de>
10495 * syntax.c (find_start_pos, find_start_value)
10496 (find_start_value_byte, find_start_begv, find_defun_start)
10497 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10499 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10501 * s/sol2-3.h: Insert contents of s/sol2.h.
10502 (LD_SWITCH_SYSTEM): Remove redundant definition.
10503 * s/sol2.h: Remove, unused.
10505 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10507 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10509 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10511 * Makefile.in (ns_appdir): Fix typo in find command.
10513 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10515 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10517 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10518 added not supported anymore.
10520 * s/usg5-4-2.h (LIBS_SYSTEM):
10521 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10523 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10524 * s/lynxos.h (GETPGRP_NO_ARG):
10525 * s/hpux10-20.h (NO_SIOCTL_H):
10526 * s/gnu.h (GETPGRP_NO_ARG):
10527 * s/gnu-linux.h (NO_SIOCTL_H):
10528 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10529 * s/cygwin.h (GETPGRP_NO_ARG):
10530 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10531 (C_DEBUG_SWITCH): Remove duplicate definition.
10533 * m/ibms390.h: Remove boilerplate comments.
10535 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10537 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10538 (wait_reading_process_output): Remove code for SunOS, platform not
10539 supported anymore. Use SOLARIS2 instead of sun.
10541 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10543 * font.c (font_open_by_name): Under NS, default lface height to zero.
10544 (font_open_for_lface): Under NS, set size based on frame fontsize.
10545 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10546 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10548 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10550 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10551 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10552 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10554 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10555 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10556 * Makefile.in (clean): Clear out build destination dir.
10558 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10560 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10562 * lisp.h: Remove declaration of hash_remove.
10563 * nsgui.h: Remove redefinitions of hash_remove.
10564 * fns.c (hash_remove): Rename to hash_remove_from_table.
10566 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10568 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10569 strdup() the family UTF8String before modifying it.
10571 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10573 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10574 NS_FACE_BACKGROUND with 0 instead of nil.
10575 * nsfont.m (nsfont_draw): Same.
10577 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10579 * nsfns.m (ns_set_background_color): Fix crash.
10581 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10583 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10585 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10587 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10589 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10591 * gtkutil.c: Include <config.h> instead of "config.h".
10593 * lisp.h (Foverlay_buffer): Add EXFUN.
10595 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10596 child process to complete child_setup. Undo 2005-09-21 change.
10598 * s/darwin.h: Mention setsid after vfork.
10600 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10602 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10603 Depend on macgui.h.
10605 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10606 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10608 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10610 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10612 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10613 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10614 Remove enumerators.
10616 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10617 Check if FACE_FROM_ID returns NULL.
10619 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10621 * w32inevt.c (change_frame_size): Remove extern declaration.
10622 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10625 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10627 * getloadavg.c: Revert last change (2008-07-15).
10629 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10631 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10632 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10635 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10638 * s/sol2-4.h: Reorganize conditionals.
10640 * ecrt0.c: Remove code depending on m68000, not used anymore.
10642 * fns.c (hash_remove): Make static.
10643 * lisp.h (hash_remove): Don't prototype.
10647 * m/macppc.h: Remove boilerplate comments.
10649 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10650 Solaris, which does not need them.
10652 * m/vax.h: Remove comments about unsupported systems.
10654 * s/darwin.h: Reorganize ifdefs.
10656 2008-07-17 Andreas Schwab <schwab@suse.de>
10658 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10660 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10662 Use SDATA. Follow coding convention of placing operators at
10663 beginning of next line rather than end of previous line, and placing
10664 spaces around infix operators.
10666 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10667 in case it was defined already.
10668 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10669 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10671 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10673 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10674 (ns_defined_color, ns_color_to_lisp): Declare.
10675 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10676 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10677 it's accepted even with USE_LISP_UNION_TYPE.
10678 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10679 (update_frame_tool_bar): Remove apparently obsolete tests for
10680 non-integerness of f->tool_bar_lines.
10681 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10682 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10683 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10684 (nsfont_open): Don't confuse NULL for Qnil.
10685 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10686 * menu.h (find_and_call_menu_selection):
10687 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10688 (find_and_return_menu_selection): Always return something.
10689 * frame.h: Include dispextern.h for Display_Info.
10690 (display_x_get_resource): Declare.
10692 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10694 * syntax.c: Remove stdio.h include accidentally introduced in
10696 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10698 * keyboard.c (handle_async_input, input_available_signal): Remove
10699 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10701 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10703 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10704 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10705 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10708 * keymap.c: Remove all NS-specific code.
10709 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10710 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10711 where_is_preferred_modifier, return a different value depending on how
10712 preferred is the binding.
10713 (where_is_internal): Adjust accordingly.
10714 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10715 Adjust to new preferred_sequence_p.
10716 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10717 * keyboard.c (parse_solitary_modifier): Not static any more.
10718 * keyboard.h (parse_solitary_modifier): Declare.
10720 2008-07-16 Andreas Schwab <schwab@suse.de>
10722 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10725 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10727 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10728 that we don't move off the line.
10730 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10732 * keyboard.c (Qsuper): Remove.
10733 (parse_menu_item): Don't call where_is_internal specially for NS.
10735 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10737 * s/gnu-linux.h: Remove boilerplate comments.
10739 * m/alpha.h (__ELF__): Consolidate conditions.
10741 * m/m68k.h (linux): Use GNU_LINUX instead.
10742 Remove boilerplate comments.
10744 * m/intel386.h: Undo refactoring from previous change.
10745 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10746 too, remove dead code.
10747 (linux): Use GNU_LINUX instead.
10749 2008-07-16 Jason Rumney <jasonr@gnu.org>
10751 * w32gui.h: Repeat 26 June changes lost by last change.
10753 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10755 * systty.h: Remove code for Aix on 386, unsupported platform.
10757 * s/ms-w32.h: Remove boilerplate comments.
10758 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10760 * s/gnu-linux.h (TERM): Remove support.
10761 (HAVE_SYSVIPC): Remove, unused.
10762 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10765 * process.c: Remove support for IRIS, unused.
10766 Remove support for TERM, not relevant anymore.
10768 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10769 used with the definition.
10771 * s/aix4-2.h (static): Do not undef.
10773 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10775 (HAVE_SYSVIPC): Remove, unused.
10777 * m/hp800.h (CANNOT_DUMP): Do not undef.
10779 * m/alpha.h: Fix comment.
10781 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10782 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10783 used by this configuration.
10784 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10785 * unexec.c: Remove code depending on HPUX and
10786 USG_SHARED_LIBRARIES, not used with this file. Remove code
10787 depending on IRIS, unused. Remove if 0-ed code.
10789 * s/template.h: Remove comments about static.
10791 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10792 Remove if 0-ed code.
10793 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10794 were the same as the default.
10795 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10796 Remove boilerplate comments.
10797 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10798 (HAVE_SYSVIPC): Remove, unused.
10799 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10801 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10802 Remove boilerplate comments.
10803 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10804 Remove boilerplate comments.
10805 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10806 Remove boilerplate comments.
10807 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10809 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10810 USG systems which do not use DATA_SEG_BITS.
10811 Refactor code. Remove boilerplate comments.
10820 * s/msdos.h: Remove boilerplate comments.
10822 * m/iris4d.h: Remove boilerplate comments and code for systems that
10823 do not use this file.
10824 (IRIS_4D): Remove, unused.
10826 * m/mips.h: Remove boilerplate comments and code for systems that
10827 do not use this file.
10828 (SIGN_EXTEND_CHAR):
10829 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10830 * unexmips.c: Remove file, unused.
10832 * editfns.c (Fuser_full_name): Replace the only use of
10833 USER_FULL_NAME with its value.
10834 * config.in: Regenerate.
10836 2008-07-16 David Reitter <david.reitter@gmail.com>
10838 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10839 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10841 2008-07-16 Glenn Morris <rgm@gnu.org>
10843 * emacs.c (system-type): Doc fix.
10845 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10847 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10848 If the cache doesn't work, let's fix it, rather than work around it.
10850 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10852 * Makefile.in: Correct additions for nsfont.o in last commit.
10853 * nsfont.m: New file (forgot last commit).
10855 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10857 * callproc.c (set_initial_environment): Initialize
10858 Vprocess_environment under CANNOT_DUMP (fixes crash when
10859 batch-compiling for bootstrap).
10861 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10862 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10864 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10865 fix crash due to different init order.
10867 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10869 Changes and additions for NeXTstep windowing system (Cocoa and
10873 * config.in: Support defines and build commands for NS port.
10874 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10875 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10876 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10878 (struct face): Add synth_ital field.
10879 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10880 (init_display): Initialize Vinitial_window_system to "ns" when so
10882 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10883 (display_arg): Use under NS.
10884 (main): Under NS, allocate autorelease pool and handle command line
10885 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10886 (standard_args): Add NS-specific args.
10887 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10888 * font.c (DEFAULT_ENCODING): New variable.
10889 (font_find_for_lface): Use it.
10890 (syms_of_font): Load syms_of_nsfont under NS.
10891 * font.h: Declare nsfont_driver when compiled under NS.
10892 * fontset.c: When compiling under NS, include nsterm.h.
10893 (fontset_from_font): Autoconstruct fontset under NS.
10894 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10895 symbol, document and use it.
10896 (do_switch_frame): When for_deletion under Cocoa, add
10897 Fraise_frame(Qnil).
10898 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10899 (x_get_arg): Allow "yes" and "no" as boolean values.
10900 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10901 Qright under Cocoa.
10902 (focus-follows-mouse): Default to 0 under NS.
10903 * frame.h (enum output_method): Add output_ns.
10904 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10905 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10906 (FRAME_WINDOW_P): NS-specific definition.
10907 * fringe.c (max_used_fringe_bitmap): Make public.
10908 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10909 (getloadavg): Use NeXT code under descendant OS's.
10910 * image.c (includes and header section, x_create_bitmap_from_data)
10911 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10912 (image_background_transparent, x_clear_image_1)
10913 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10914 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10915 (x_to_xcolors, x_from_xcolors, x_disable_image)
10916 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10917 other GUIs, including XPM support using code originally written for
10919 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10921 (image_ascent): Use font metrics macros instead of direct struct field
10923 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10924 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10925 Also, handle NS as GTK for menu bar purposes.
10926 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10927 toolkit where they differ.
10928 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10929 use cachelist, still needed under NS.
10930 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10931 (struct widget_value): Define it here for menu.c.
10932 * keymap.c (includes): Include modifier internals.
10933 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10935 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10936 support for preferring sequences using certain modifiers, specified by
10937 the FIRSTONLY argument.
10938 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10939 under NS GNUstep implementation.
10940 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10941 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10942 * menu.c: Include nsterm.h under NS.
10943 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10944 (free_menubar_widget_tree_value, update_submenu_strings)
10945 (find_and_call_menu_selection): Treat NS as X and NT.
10946 (find_and_return_menu_selection): New function, used for popup menus.
10953 * nsterm.m: New files.
10954 * process.c (wait_reading_process_output): Under NS, call ns_select()
10955 instead of plain select().
10956 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10957 beginning of buffer.
10958 * sysselect.h (init_process): Rename when compiling under Cocoa to
10959 avoid name conflict.
10960 * termhooks.h (display_info): Add ns_display_info to union.
10961 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10962 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10964 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10965 unexec() signature. (Note, this will dump, but the resulting file
10966 crashes; unexosx is used instead; keeping around for reference and
10967 possible aid in getting dump working under GNUstep.)
10968 * w32gui.h (button_type, widget_value): Remove definitions (now in
10970 * window.c: Include nsterm.h when compiling under NS.
10971 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10972 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10973 other GUI windowing systems.
10974 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10976 (x_consider_frame_title): Under NS, set icon type and frame
10977 modified-state indicator; use ns_set_name_as_filename() when using
10979 (update_window_cursor): Make public when compiling under NS.
10980 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10981 (hourglass_atimer, Vhourglass_delay
10982 * xfaces.c (header section, init_frame_faces, clear_font_table)
10983 (defined_color, unload_color, x_face_list_fonts)
10984 (prepare_face_for_display): Add NS support parallel to other GUIs.
10985 Emulate GCs like other non-X GUIs.
10986 (split_font_name): Don't lowercase font name under NS.
10987 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10989 * s/darwin.h: Add support for compilation under NS.
10991 2008-07-15 Jason Rumney <jasonr@gnu.org>
10993 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10994 (w32_show_hourglass): Rename from show_hourglass.
10995 (w32_hide_hourglass): Rename from hide_hourglass.
10996 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10997 (Vhourglass_delay): Declare extern.
10998 (hourglass_started): Remove.
11000 * xdisp.c (Vhourglass_delay): Remove static.
11001 (hourglass_started, start_hourglass, cancel_hourglass):
11002 Don't include these versions on WINDOWSNT.
11004 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11006 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11007 variables (formerly in xfns.c).
11008 (show_hourglass, hide_hourglass): New prototypes (same).
11009 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11010 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11012 (syms_of_xdisp): Declare/initialize display-hourglass,
11013 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11014 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11015 formerly in xfns.c.
11016 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11017 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11018 (start_hourglass, cancel_hourglass): Remove.
11019 (show_hourglass, hide_hourglass): Remove prototypes and static
11021 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11022 hourglass_atimer, hourglass_shown_p declaration/initialization.
11023 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11024 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11025 (start_hourglass, cancel_hourglass): Remove.
11026 (show_hourglass, hide_hourglass): Remove prototypes and static
11028 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11029 hourglass_atimer, hourglass_shown_p declaration/initialization.
11030 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11031 (DEFAULT_HOURGLASS_DELAY): Remove.
11032 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11033 hourglass_shown_p declaration/initialization.
11035 2008-07-14 Jason Rumney <jasonr@gnu.org>
11037 * w32fns.c (w32_get_arg): Remove wrapper function.
11038 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11040 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11042 2008-07-14 Kenichi Handa <handa@m17n.org>
11044 * xfont.c (xfont_open): Add workaround for X's bug.
11046 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11048 * fontset.c: Include <stdio.h> unconditionally.
11050 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
11052 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11055 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11057 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11060 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11062 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11063 (SPECIAL_EMACS_INT):
11064 * m/ia64.h (SPECIAL_EMACS_INT):
11065 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11066 * s/gnu.h (NLIST_STRUCT):
11067 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11068 * s/gnu-linux.h (LINUX):
11069 * s/msdos.h (HAVE_FACES):
11070 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11073 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11076 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11078 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11079 always defined as int.
11081 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11082 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11083 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11084 * s/freebsd.h (HAVE_WAIT_HEADER):
11085 * s/bsd-common.h (HAVE_UNION_WAIT):
11086 * s/aix4-2.h (HAVE_WAIT_HEADER):
11087 * m/mips.h (HAVE_UNION_WAIT):
11088 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11089 (COFF, static): Do not define, they are undefined later in the file.
11091 * process.c (update_status): Don't use a union.
11093 (sigchld_handler): Use int instead of WAITTYPE.
11095 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
11097 * indent.c (Fvertical_motion): Restore hscroll before moving to
11100 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11102 * lisp.h: Remove left over code.
11104 2008-07-11 Andreas Schwab <schwab@suse.de>
11106 * lisp.h: Fix logic in last change.
11108 * menu.h: New file.
11109 * menu.c: Include it.
11110 * xmenu.c: Likewise.
11111 * Makefile.in: Update dependencies.
11113 2008-07-11 Kenichi Handa <handa@m17n.org>
11115 * fontset.c (fontset_from_font): Cancel the previous change.
11117 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11122 * alloc.c: Replace all references of NO_UNION_TYPE with
11123 USE_LISP_UNION_TYPE.
11125 * m/xtensa.h (NO_UNION_TYPE):
11126 * m/vax.h (NO_UNION_TYPE):
11127 * m/template.h (NO_UNION_TYPE):
11128 * m/sparc.h (NO_UNION_TYPE):
11129 * m/mips.h (NO_UNION_TYPE):
11130 * m/macppc.h (NO_UNION_TYPE):
11131 * m/m68k.h (NO_UNION_TYPE):
11132 * m/iris4d.h (NO_UNION_TYPE):
11133 * m/intel386.h (NO_UNION_TYPE):
11134 * m/ibms390x.h (NO_UNION_TYPE):
11135 * m/ibms390.h (NO_UNION_TYPE):
11136 * m/ibmrs6000.h (NO_UNION_TYPE):
11137 * m/ia64.h (NO_UNION_TYPE):
11138 * m/hp800.h (NO_UNION_TYPE):
11139 * m/arm.h (NO_UNION_TYPE):
11140 * m/amdx86-64.h (NO_UNION_TYPE):
11141 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11142 defining it the same.
11144 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
11146 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11148 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11165 * s/vms.h: Remove references to unused variables.
11167 2008-07-10 Andreas Schwab <schwab@suse.de>
11169 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11170 pattern before matching the generic family.
11172 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11179 * s/darwin.h: Remove dead code.
11192 * m/amdx86-64.h: Remove dead code and references to unused
11193 and compiler defined symbols.
11196 * unexelf.c: Remove references to desupported systems.
11198 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11200 * m/powermac.h: Remove boilerplate comments.
11201 (NO_REMAP): Remove unused definition.
11203 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11206 2008-07-10 Kenichi Handa <handa@m17n.org>
11208 * xfont.c (xfont_open): Log the reason of failure.
11210 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11212 * fontset.c (fontset_get_font_group):
11213 * font.c (font_check_otf): Specify argument types.
11215 2008-07-09 Kenichi Handa <handa@m17n.org>
11217 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11218 non-ASCII char is found.
11220 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11221 (reorder_font_vector): Change the arg preferred_family to font.
11222 Prefer the spec matching with font.
11223 (fontset_get_font_group): New function.
11224 (fontset_find_font): Change the format of an element of a realized
11225 fontset. Use fontset_get_font_group.
11226 (fontset_font): Try the current fontset, the default fontset, the
11227 fallbacks of the current fontset, and the fallbacks of the default
11228 fontset in this order.
11229 (face_for_char): Delete the shortcut to use the current font.
11230 (fontset_from_font): Don't set fonts for Latin in the fontset.
11232 * font.h (font_make_object, font_match_p): Adjust prototypes.
11234 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11236 * font.c (font_make_object): New arg entity and pixelsize.
11237 (font_check_otf_features, font_check_otf): New functions.
11238 (font_match_p): Check :lang, :script, and :otf properties.
11240 * xfont.c (xfont_open): Adjust it for the change of
11242 (xfont_text_extents): Fix initial setting of metrics.
11244 * ftfont.c (struct ftfont_info): New member index, delete member
11245 fc_charset_idx. Make the member order compatible with struct
11247 (fc_charset_table): Change charset names to registry names.
11248 (ftfont_pattern_entity): Delete the args registry and
11249 fc_charset_idx. Change the value of :font-entity property
11250 to (FONTNAME . INDEX). Always set :registry property to
11252 (struct ftfont_cache_data): New struct.
11253 (ftfont_lookup_cache): New arg for_face.
11254 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11255 (ftfont_driver): Set the member otf_capability.
11256 (ftfont_get_charset): Adjust it for the change of
11258 (OTF_TAG_SYM): New macro.
11259 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11260 for the change of fc_charset_table.
11261 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11262 ftfont_pattern_entity. Add FC_INDEX to objset.
11263 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11264 and ftfont_pattern_entity.
11265 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11266 font_make_object, struct ftfont_info.
11267 (ftfont_has_char): Use ftfont_get_fc_charset.
11268 (ftfont_otf_features, ftfont_otf_capability): New functions.
11269 (ftfont_shape): Use ftfont_get_otf.
11270 (ftfont_text_extents): Fix initial setting of metrics.
11272 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11273 member order compatible with struct ftfont_info.
11274 (xftfont_open): Add FC_CHARSET to the pattern. Set
11275 xftfont_info->ft_size. Don't unlock the face. Check BDF
11276 properties if appropriate.
11277 (xftfont_close): Unlock the face.
11278 (xftfont_anchor_point, xftfont_shape): Deleted.
11279 (syms_of_xftfont): Don't set members anchor_point and shape of
11282 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11285 * w32font.c (w32font_open): Adjust it for the change of
11287 (w32font_open_internal): Don't set properties of font_object here.
11289 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
11291 * macfns.c (x_create_tip_frame):
11292 * w32fns.c (x_create_tip_frame):
11293 * xfns.c (x_create_tip_frame): Pass parameter argument to
11294 face-set-after-frame-default.
11296 * xfaces.c (Finternal_merge_in_global_face): Save merged
11297 attributes for the default face back into the face vector.
11299 2008-07-08 Andreas Schwab <schwab@suse.de>
11301 * fontset.h: Declare fontset_from_font. Don't declare
11302 new_fontset_from_font and fontset_from_font_name.
11303 * xterm.c: Include "fontset.h".
11304 * Makefile.in (xterm.o): Update dependencies.
11306 2008-07-08 Glenn Morris <rgm@gnu.org>
11308 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11309 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11311 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
11313 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11314 (x_set_frame_parameters): Don't bind it.
11316 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11318 * w32fns.c (map_w32_filename): Declare extern.
11320 2008-07-07 Jason Rumney <jasonr@gnu.org>
11322 * w32term.c (WS_EX_LAYERED): Define if not already.
11324 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11326 * xfaces.c (set_font_frame_param): Don't try to set the font
11327 parameter if it is still unspecified in the lface.
11329 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11331 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11332 face if it didn't already exist.
11334 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11336 2008-07-05 Andreas Schwab <schwab@suse.de>
11338 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11340 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11342 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11344 (IT_DISPLAYING_WHITESPACE): New macro.
11345 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11346 when word-wrapping. Simplify word-wrapping logic. Use correct
11347 pixel positions when saving copies of the iterator.
11348 (display_line): Use proper wrap point if the last character on a
11349 line was preceded by whitespace.
11351 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11353 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11355 2008-07-04 Kenichi Handa <handa@m17n.org>
11357 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11359 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11361 2008-07-02 Jason Rumney <jasonr@gnu.org>
11363 * xfns.c (syms_of_xfns): Only define x-select-font when both
11364 HAVE_FREETYPE and USE_GTK.
11366 * xdisp.c (next_element_from_display_vector): Move assignment out
11369 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11371 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11373 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11374 (syms_of_fileio): Initialize and export them.
11375 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11377 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11378 (Fsystem_move_file_to_trash): New function.
11379 (syms_of_w32fns): Export it to lisp.
11381 2008-07-01 Jason Rumney <jasonr@gnu.org>
11383 * w32font.c (w32font_text_extents): Don't count overhang as part
11386 2008-06-30 Miles Bader <miles@gnu.org>
11388 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11389 Add `avoid_cursor_p' field.
11391 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11392 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11393 (append_glyph, append_composite_glyph, produce_image_glyph)
11394 (append_stretch_glyph): Initialize avoid_cursor_p.
11395 (get_it_property): Rename from `get_line_height_property'.
11396 (x_produce_glyphs): Use get_it_property.
11397 (handle_line_prefix, push_display_prop): New functions.
11398 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11399 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11401 (syms_of_xdisp): Initialize them.
11403 2008-06-30 Kenichi Handa <handa@m17n.org>
11405 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11406 XftDefaultSubstitute (they are called in XftFontMatch).
11407 (xftfont_open): Fix args to ftfont_font_format.
11409 * ftfont.c (fc_charset_table): New member lang.
11410 (ftfont_resolve_generic_family): New arg pattern.
11411 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11412 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11413 (ftfont_open): Fix args to ftfont_font_format.
11414 (ftfont_font_format): New arg filename.
11416 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11418 * xfaces.c (Finternal_merge_in_global_face): If default face was
11419 modified, realize it again. Update the font face attribute.
11421 2008-06-29 Jason Rumney <jasonr@gnu.org>
11423 * w32term.c (x_set_frame_alpha): Fix logic.
11425 2008-06-29 Kenichi Handa <handa@m17n.org>
11427 * fontset.c (Finternal_char_font): Return font-object instead of
11430 * composite.c (get_composition_id): Fix the width calculation for TAB.
11432 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11434 * indent.c (Fvertical_motion): Properly handle float column arg.
11436 2008-06-28 Jason Rumney <jasonr@gnu.org>
11438 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11439 (pfnSetLayeredWindowAttributes): New function pointer.
11440 (w32_initialize): Initialize it when supported.
11441 (x_set_frame_alpha): New function.
11443 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11444 (w32_frame_parm_handlers): Set alpha handler.
11446 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11448 2008-06-27 Jason Rumney <jasonr@gnu.org>
11450 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11451 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11452 (w32_to_x_charset, x_to_w32_charset)
11453 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11454 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11455 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11456 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11457 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11458 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11459 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11460 (Qw32_charset_unicode): Remove.
11461 (syms_of_w32fns): Update for above changes.
11463 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11464 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11465 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11466 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11467 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11468 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11469 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11470 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11471 (syms_of_w32font): Update for above changes.
11473 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11475 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11477 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11479 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11480 Eli Zaretskii <eliz@gnu.org>
11482 * makefile.w32-in (LOCAL_FLAGS):
11483 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11485 * sysdep.c (_spawnlp, _getpid):
11486 Declare with explicit _cdecl instead of _CRTAPI1.
11488 * editfns.c (Fget_internal_run_time):
11489 Check for WINDOWSNT with #ifdef, not #if.
11491 2008-06-26 Jason Rumney <jasonr@gnu.org>
11493 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11495 * w32term.c (x_draw_glyph_string_foreground)
11496 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11497 Use FONT_HANDLE macro.
11498 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11500 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11501 (uniscribe_encode_char): Use FONT_HANDLE macro.
11503 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11504 (w32font_text_extents): Use precast w32_font.
11505 (w32font_close): Free cached metrics.
11506 (w32font_open_internal): Allocate space for name on stack.
11508 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11510 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11512 2008-06-26 Jason Rumney <jasonr@gnu.org>
11514 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11515 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11517 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11519 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11521 2008-06-26 Jason Rumney <jasonr@gnu.org>
11523 * w32bdf.c, w32bdf.h: Remove obsolete files.
11525 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11527 * w32gui.h: Don't include w32bdf.h.
11528 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11529 Remove obsolete font support.
11531 * w32font.h (struct w32font_info): Remove compat_w32_font.
11533 (FONT_COMPAT): Remove obsolete macro.
11535 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11536 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11537 (w32font_open_internal): Remove compat code. Set new hfont member.
11538 (Fx_select_font): Use new hfont member.
11540 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11541 (uniscribe_encode_char): Use new hfont member.
11543 * w32term.c (x_draw_glyph_string_foreground)
11544 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11545 (x_draw_glyph_string): Use metrics in w32font_info.
11547 2008-06-26 Kenichi Handa <handa@m17n.org>
11549 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11551 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11557 * m/mips-siemens.h:
11579 * s/uxpv.h: Remove support for obsolete systems.
11580 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11581 Remove, insert contents in s/hpux10-20.h.
11582 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11583 Remove, insert contents in s/aix4-2.h.
11584 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11585 * s/bsd4-3.h: Rename to ...
11586 * s/bsd-common.h: ... this.
11615 * s/template.h: Remove references to obsolete variables.
11617 * Makefile.in: Add dependencies for all unexec files.
11618 (admindir): Remove unused variable.
11619 (UNEXEC_SRC): Remove references.
11621 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11623 * xfns.c (x_default_font_parameter): If Xft is available, first
11624 try Monospace-12 for the default font.
11626 2008-06-25 Jason Rumney <jasonr@gnu.org>
11628 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11630 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11632 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11634 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11636 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11638 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11639 <scroll-conservatively>: Fix typo in docstring.
11641 * xselect.c (Fx_send_client_event): Doc fix.
11643 2008-06-25 Kenichi Handa <handa@m17n.org>
11645 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11647 * font.c (font_parse_fcname): Remove unused variables.
11648 (font_sort_entites): Delete the arg SPEC. Caller changed.
11649 Fix for the case of ! best_only.
11650 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11652 * lisp.h (Fstring_to_unibyte): EXFUN it.
11654 * character.h (str_to_unibyte): Extern it.
11656 * character.c (str_to_unibyte): New function.
11658 * fns.c (Fstring_to_unibyte): New function.
11659 (syms_of_fns): Defsubr it.
11661 2008-06-24 Kenichi Handa <handa@m17n.org>
11663 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11665 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11667 2008-06-24 Andreas Schwab <schwab@suse.de>
11669 * Makefile.in (${lispsource}loaddefs.el): Rename from
11670 ../lisp/loaddefs.el.
11671 (bootstrap-clean): Do what distclean does but don't remove
11673 (distclean): Depend on bootstrap-clean and remove Makefile.
11675 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11677 * buffer.h (struct buffer): New member word_wrap.
11679 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11681 (init_buffer_once): Initialize them.
11683 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11684 line_wrap enum possessing three possible values.
11686 * termopts.h: Replace truncate_partial_width_windows with
11687 Vtruncate_partial_width_windows.
11689 * dispnew.c (direct_output_for_insert): Avoid direct output when
11690 inserting a space with word wrap on.
11692 * indent.c (compute_motion): Obey integer values of
11693 truncate-partial-width-windows.
11695 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11696 replacing truncate_partial_width_windows.
11697 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11698 truncate only if the window width is below that integer.
11699 (start_display, resize_mini_window, produce_stretch_glyph)
11700 (display_string, move_it_in_display_line_to): Use line_wrap.
11701 (back_to_previous_visible_line_start, reseat_1): Reset
11702 string_from_display_prop_p.
11703 (display_line): Extend default face to end of line when wrapping.
11705 2008-06-24 Kim F. Storm <storm@cua.dk>
11707 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11708 to wrap continued lines at word boundaries.
11710 2008-06-24 Jason Rumney <jasonr@gnu.org>
11712 * font.c (Ffont_face_attributes): Multiply pixel size before point
11713 conversion to avoid multiplying rounding error.
11715 2008-06-23 Jason Rumney <jasonr@gnu.org>
11717 * w32term.c (x_draw_glyph_string_background)
11718 (x_draw_glyph_string): Remove old bdf font code.
11720 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11722 2008-06-22 Kenichi Handa <handa@m17n.org>
11724 * font.c (font_find_for_lface): Try the adstyle specified in
11725 the property of LFACE_FONT of LFACE (if any).
11727 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11728 Ryo Yoshitake <ryo@shiftmode.net>
11730 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11732 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11734 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11735 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11736 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11737 (witness-emacs): Remove.
11738 (lisp, shortlisp): Move loaddefs.el earlier.
11739 (mostlyclean): Forget about witness-emacs.
11741 2008-06-22 Glenn Morris <rgm@gnu.org>
11743 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11744 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11746 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11748 * Makefile.in (PRECOMP): Remove.
11749 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11750 (witness-emacs): Run `compile-first'.
11751 (.el.elc): Use the new compile-onefile target.
11753 2008-06-21 Kenichi Handa <handa@m17n.org>
11755 * xftfont.c (xftfont_open): Handle QCembolden only when
11756 FC_EMBOLDEN is defined.
11758 2008-06-21 Andreas Schwab <schwab@suse.de>
11760 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11761 (.el.elc): Likewise.
11763 2008-06-21 Miles Bader <miles@gnu.org>
11765 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11766 build dir, not the lisp source dir.
11768 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11770 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11771 (bootstrapclean): Remove.
11772 (.el.elc): New rule.
11773 (PRECOMP): New var.
11774 (../lisp/subdirs.el): Remove.
11775 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11776 (witness-emacs): New target.
11777 (mostlyclean): Remove witness-emacs as well.
11778 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11779 Add witness-emacs dependency.
11781 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11783 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11784 defined by the font.
11786 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11788 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11789 (bootstrap-clean): New target that keeps TAGS around.
11790 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11791 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11793 2008-06-20 Jason Rumney <jasonr@gnu.org>
11795 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11796 Remove obsolete font code.
11798 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11799 to determine language support.
11801 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11803 * sysdep.c (cfsetspeed): New fun extracted from the code.
11804 (cfmakeraw): Move before first use.
11806 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11808 * sysdep.c (cfmakeraw): Provide fallback implementation.
11809 (serial_configure): Provide fallback implementation of cfsetspeed.
11811 2008-06-20 Kenichi Handa <handa@m17n.org>
11813 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11816 * fontset.c (fontset_from_font): Copy font_spec before changing
11819 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11821 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11823 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11824 for explicit `font' parameters.
11826 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11828 2008-06-19 Kenichi Handa <handa@m17n.org>
11830 * frame.c: Include <ctype.h>.
11831 (x_set_font_backend): Allow spacing characters in the X resource
11834 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11836 * w32fns.c, xfns.c (Qfont_param): New var.
11837 (syms_of_w32fns): Initialize it.
11838 (x_default_font_parameter): Record explicit `font' into
11841 2008-06-18 Kenichi Handa <handa@m17n.org>
11843 * font.c (font_parse_xlfd): Fix previous change.
11844 (font_parse_fcname): Don't use :fc-unknown-spec.
11845 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11846 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11847 (font_add_log): Prepend the driver name to the resulting fonts.
11849 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11850 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11851 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11853 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11854 (QCembolden): New variables.
11855 (syms_of_xftfont): DEFSYM them.
11856 (xftfont_open): Call XftFontMatch. Don't trust the result of
11857 XftTextExtents8 if the pixel_size is less than 5.
11859 2008-06-18 Andreas Schwab <schwab@suse.de>
11861 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11862 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11864 2008-06-18 Jason Rumney <jasonr@gnu.org>
11866 * w32font.c (w32font_list, w32font_match): Add logging.
11868 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11870 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11872 * font.c (font_parse_fcname): Store divider characters for
11873 unknown-spec list. For known key symbols, intern using correct
11876 2008-06-17 Kenichi Handa <handa@m17n.org>
11878 * xfaces.c (realize_default_face): If the frame is not on window
11879 system, set the fontset of face to nil.
11881 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11883 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11885 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11887 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11888 (build_font_name_from_vector): Delete externs.
11890 * xfaces.c (struct font_name): Don't declare.
11892 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11894 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11896 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11898 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11900 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11902 * font.c (Ffont_spec): Fix usage in docstring.
11903 (Ffont_face_attributes): Doc fix.
11905 2008-06-16 Andreas Schwab <schwab@suse.de>
11907 * font.c (Ffont_face_attributes): Fix definition.
11909 2008-06-16 Jason Rumney <jasonr@gnu.org>
11911 * font.h (font_style_symbolic_from_value): Remove.
11913 * font.c (font_style_symbolic_from_value): Remove.
11914 (font_style_symbolic): Revert to pre 2008-06-13 version.
11916 * w32font.c (w32_to_fc_weight): New function.
11917 (w32font_full_name, logfont_to_fcname): Use it.
11919 2008-06-16 Kenichi Handa <handa@m17n.org>
11921 * font.c (font_check_object): Delete it.
11922 (font_clear_cache): Check if a font-object is alive.
11923 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11924 font-object to nil.
11925 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11926 (font_at): Don't call font_check_object.
11927 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11929 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11931 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11933 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11935 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11937 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11939 * font.c (font_parse_fcname): Only one decimal point.
11940 (font_unparse_fcname): Handle data in family and foundry indices
11941 as symbols, not strings.
11942 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11944 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11946 * font.h (font_unparse_gtkname): Add prototype.
11948 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11950 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11952 2008-06-15 Andreas Schwab <schwab@suse.de>
11954 * font.c (font_update_drivers): Fix crash when no drivers match.
11956 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11958 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11959 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11961 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11963 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11965 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11967 * process.c (Fserial_process_configure, Fprocess_send_eof):
11968 Use EQ to compare Lisp_Objects.
11970 2008-06-13 Jason Rumney <jasonr@gnu.org>
11972 * w32fns.c (Fw32_select_font): Remove old font API function.
11974 * w32font.c (logfont_to_fcname): New function.
11975 (Fx_select_font): New font dialog function compatible with
11976 GTK/fontconfig version.
11978 * font.c (font_style_symbolic_from_value): New function.
11979 (font_style_symbolic): Use it.
11981 * font.h (font_style_symbolic_from_value): Declare new function.
11983 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11985 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11986 <font-width-table>: Fix typos in docstrings.
11988 2008-06-13 Daniel Engeler <engeler@gmail.com>
11990 These changes add serial port access.
11991 * process.c: Add HAVE_SERIAL.
11992 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11993 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11994 (list_processes_1, select_wrapper, Fstop_process)
11995 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11996 (status_notify): Modify to handle serial processes.
11997 [HAVE_SERIAL] (Fserial_process_configure)
11998 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12000 * process.h (struct Lisp_Process): Add `type'.
12001 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12003 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12005 (serial_open, serial_configure): New functions.
12006 * w32.h: Add FILE_SERIAL.
12007 (struct _child_process): Add ovl_read, ovl_write.
12009 2008-06-13 Kenichi Handa <handa@m17n.org>
12011 * dispextern.h (enum lface_attribute_index): New member
12012 LFACE_FOUNDRY_INDEX.
12014 * font.c (font_score): Delete arg alternate_families. Check only
12015 weight, slant, width, and size. Ignore the difference of alias
12017 (font_sort_entites): Adjust for the above change. Reflect the
12018 order of font-driver to scores.
12019 (font_list_entities): Don't check alternate_familes here.
12020 (font_clear_prop): Handle foundry.
12021 (font_update_lface): Don't parse "foundry-family" form here.
12022 Handle FONT_FOUNDRY_INDEX.
12023 (font_find_for_lface): Likewise. Handle alternate families here.
12024 If registry is nil, try iso8859-1 and ascii-0.
12025 (font_open_for_lface): Pay attention to size in ENTITY.
12026 (font_open_by_name): Simplify by calling font_load_for_lface.
12027 (free_font_driver_list): Delete it.
12028 (font_update_drivers): Preserve the order of backends.
12029 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12030 of font_score and font_sort_entites.
12031 (font_update_sort_order): Likewise.
12033 * xfaces.c (LFACE_FOUNDRY): New macro.
12034 (check_lface_attrs): Check foundry.
12035 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12036 (merge_face_vectors): Check foundry.
12037 (merge_face_ref): Likewise.
12038 (Finternal_set_lisp_face_attribute): Likewise.
12039 (x_update_menu_appearance): Likewise.
12040 (Finternal_get_lisp_face_attribute): Likewise.
12041 (lface_hash): Likewise.
12042 (lface_same_font_attributes_p): Likewise.
12043 (x_supports_face_attributes_p): Likewise.
12044 (tty_supports_face_attributes_p): Likewise.
12045 (Finternal_set_alternative_font_family_alist): Intern strings.
12046 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12047 (realize_default_face): Set LFACE_FOUNDRY (lface).
12049 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12050 font-driver at first.
12052 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12054 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12056 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12058 2008-06-12 Jim Meyering <meyering@redhat.com>
12060 Make unexec_free handle NULL the same way free does.
12061 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12063 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12065 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12066 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12067 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12068 (WEAK_ALIAS): Simplify.
12069 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12070 when searching a unibyte buffer.
12072 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
12074 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12076 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
12078 * w32font.c: Include ctype.h.
12080 2008-06-11 Jason Rumney <jasonr@gnu.org>
12082 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12083 misreported as space.
12084 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12085 as aliases for registry iso10646-1.
12087 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12089 * buffer.c (clone_per_buffer_values): Skip `name'.
12091 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
12093 * font.c (font_parse_fcname): Fix last change; accept decimal
12094 points in font size.
12096 2008-06-10 Jason Rumney <jasonr@gnu.org>
12098 * w32uniscribe.c (add_opentype_font_name_to_list):
12099 Skip non unicode fonts.
12101 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12103 * xfns.c (Fx_font_dialog): New function.
12105 * gtkutil.c (xg_dialog_response_cb): Rename from
12106 xg_file_response_callback.
12107 (pop_down_dialog): Rename from pop_down_file_dialog.
12108 (xg_get_file_name): Callers changed.
12109 (xg_get_font_name): New function.
12111 * gtkutil.h (xg_get_font_name): Insert prototype.
12113 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12115 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12116 x_underline_minimum_display_offset.
12117 (syms_of_xdisp): Declare it here rather than in xterm.c.
12118 * dispextern.h (underline_minimum_offset): Declare it.
12119 * w32term.c (x_draw_glyph_string): Use it.
12120 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12121 (syms_of_xterm): Don't declare it any more.
12122 (x_draw_glyph_string): Adjust to the new name.
12124 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
12126 * xterm.c (x_underline_minimum_display_offset): New var.
12127 (x_draw_glyph_string): Use it.
12128 (syms_of_xterm): Declare it.
12130 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12132 * font.c (font_parse_fcname): Accept GTK-style font names too.
12134 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12136 * dired.c (file_name_completion): Don't return t if the match is exact
12137 but with different capitalization.
12138 * minibuf.c (Ftry_completion): Simplify.
12140 * window.c (Vwindow_point_insertion_type): New var.
12141 (set_window_buffer): Use it.
12142 (syms_of_window): Init and export it to Lisp.
12144 2008-06-10 Kenichi Handa <handa@m17n.org>
12146 * font.h (font_intern_prop): Prototype adjusted.
12148 * font.c (font_intern_prop): New arg force_symbol.
12149 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12150 Adjust for the change of font_intern_prop.
12152 * ftfont.c (ftfont_pattern_entity):
12153 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12155 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12156 the change of font_intern_prop.
12158 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
12160 * w32menu.c (digest_single_submenu): Declare extern.
12162 2008-06-09 Jason Rumney <jasonr@gnu.org>
12164 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12166 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12167 (parse_single_submenu): Remove.
12168 (digest_single_submenu): Remove.
12169 (syms_of_w32menu): Don't initialise variables that have moved
12171 (set_frame_menubar): Sync with version in xmenu.c.
12172 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12174 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12177 2008-06-09 Jason Rumney <jasonr@gnu.org>
12179 Changes to w32 files related to the move of common menu code
12180 to menu.c on 2008-06-08 by Chong Yidong.
12182 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12184 (single_keymap_panes, push_menu_item, push_menu_pane):
12185 Make globally visible.
12187 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12188 (local_free, malloc_widget_value, free_widget_value)
12189 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12190 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12191 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12192 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12193 (menu_items, menu_items_allocated, menu_items_used)
12194 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12195 (init_menu_items, finish_menu_items, discard_menu_items)
12196 (grow_menu_items, push_submenu_start, push_submenu_end)
12197 (push_left_right_boundary, push_menu_pane, push_menu_item)
12198 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12199 (free_menubar_widget_tree_value, parse_single_submenu)
12200 (update_submenu_strings): Remove functions.
12201 (xmalloc_widget_value): Remove and declare extern.
12203 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12206 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12207 (local_heap, local_alloc, local_free, malloc_widget_value)
12208 (free_widget_value): Define here.
12210 2008-06-09 Kenichi Handa <handa@m17n.org>
12212 * font.h (Qascii_0): Extern it.
12214 * font.c (Qascii_0): New variable.
12215 (syms_of_font): DEFSYM it.
12216 (font_open_by_name): If the registry "iso8859-1" fails, try also
12219 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12221 2008-06-08 Kenichi Handa <handa@m17n.org>
12223 * .gdbinit (xfont): New command.
12225 2008-06-08 Andreas Schwab <schwab@suse.de>
12227 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12228 * Makefile.in (menu.o): Update dependencies.
12230 * Makefile.in (obj): Always add menu.o.
12231 * emacs.c (main): Always call syms_of_menu.
12232 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12234 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
12236 * Makefile.in: Compile menu.c.
12238 * lisp.h: Declare syms_of_menu.
12240 * emacs.c (main): Call syms_of_menu.
12242 * keyboard.h: Relocate platform-independent menu definitions from
12245 * menu.c: New file. Relocate platform-independent menu
12246 definitions from xmenu.c. Suggested by Adrian Robert.
12248 * xmenu.c: Remove platform-independent menu definitions.
12249 (menu_items, menu_items_inuse, menu_items_allocated)
12250 (menu_items_used, menu_items_n_panes)
12251 (menu_items_submenu_depth): Move to keyboard.h.
12252 (init_menu_items, finish_menu_items, unuse_menu_items)
12253 (discard_menu_items, restore_menu_items, save_menu_items)
12254 (grow_menu_items, push_submenu_start, push_submenu_end)
12255 (push_left_right_boundary, push_menu_pane, push_menu_item)
12256 (keymap_panes, single_keymap_panes, single_menu_item)
12257 (list_of_panes, list_of_items, find_and_call_menu_selection)
12258 (xmalloc_widget_value, free_menubar_widget_value_tree)
12259 (parse_single_submenu, digest_single_submenu)
12260 (update_submenu_strings): Move to menu.c.
12262 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12264 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12266 2008-06-06 Miles Bader <miles@gnu.org>
12268 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12269 face, not frame default.
12271 2008-06-05 Martin Rudalics <rudalics@gmx.at>
12273 * window.c (pop_up_windows, pop_up_frames)
12274 (display_buffer_reuse_frames, Vpop_up_frame_function)
12275 (Vdisplay_buffer_function, Veven_window_heights)
12276 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12277 (Vspecial_display_function, Vsame_window_buffer_names)
12278 (Vsame_window_regexps, split_height_threshold)
12279 (Vsplit_window_preferred_function): Move those vars to window.el.
12280 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12281 (Fdisplay_buffer): Move those functions to window.el.
12282 (syms_of_window): Remove corresponding declarations.
12283 (display_buffer): New function.
12284 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12285 * dispnew.c (Flast_nonminibuf_frame): New function.
12286 * buffer.c (Fpop_to_buffer): Move to window.el.
12288 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12290 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12292 2008-06-05 Kenichi Handa <handa@m17n.org>
12294 * coding.c (detect_coding): Fix previous change.
12295 (detect_coding_system): Likewise.
12297 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12299 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12301 * keymap.c (Vminibuffer_local_filename_must_match_map):
12302 Rename from Vminibuffer_local_must_match_filename_map.
12304 * minibuf.c (Fcompleting_read): Adjust accordingly.
12305 * commands.h: Rename declaration as well.
12307 2008-06-05 Kenichi Handa <handa@m17n.org>
12309 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12311 (Ffont_put): Likewise.
12313 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12316 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12319 * xfaces.c (realize_x_face): If the font-related face attributes
12320 are the same as those of default face, realize a new fontset from
12322 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12324 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12326 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12327 (move_it_in_display_line): New wrapper.
12329 * window.c (window_scroll_pixel_based_preserve_x)
12330 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12331 (window_scroll_pixel_based, window_scroll_line_based):
12332 Use them to preserve column positions.
12333 (syms_of_window): Initialize them.
12335 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12336 (HPOS . VPOS) pair.
12338 * dispextern.h (move_it_in_display_line): Declare.
12340 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12342 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12343 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12344 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12346 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12348 * window.c (Fset_window_parameter): Doc fix.
12349 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12351 2008-06-04 Joakim Verona <joakim@verona.se>
12353 * window.h (struct window): Add new member window_parameters.
12355 * window.c (Fwindow_parameters, Fwindow_parameter)
12356 (Fset_window_parameter): New defuns.
12357 (syms_of_window): Defsubr the new defuns.
12358 (make_window): Initialize window_parameters to nil.
12360 2008-06-04 John Paul Wallington <jpw@pobox.com>
12362 * eval.c (Fdefmacro): Doc fix.
12364 2008-06-04 Kenichi Handa <handa@m17n.org>
12366 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12367 Be sure to call setup_coding_system when we find a proper coding system.
12368 (detect_coding_system): Fix handling of coding->head_ascii.
12370 2008-06-03 Andreas Schwab <schwab@suse.de>
12372 * font.c (font_prop_validate_spacing): Fix last change.
12374 2008-06-03 Kenichi Handa <handa@m17n.org>
12376 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12377 (font_parse_fcname): Fix handling of unknown key.
12379 * xfont.c (xfont_list): Try an alias.
12381 * charset.c (char_charset): Return NULL if the arg charset_list is
12382 specified and C doesn't belong to any of them.
12384 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12386 * font.c (font_pixel_size): Don't take cdr of an integer.
12388 2008-06-02 Jim Meyering <meyering@redhat.com>
12390 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12391 * alloc.c (xfree): Return right away for a NULL arg.
12392 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12393 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12394 * mac.c (create_apple_event_from_event_ref): Likewise.
12395 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12397 * doprnt.c (doprnt1): Likewise.
12398 * frame.c (frame): Likewise.
12399 * keyboard.c (wipe_kboard): Likewise.
12400 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12401 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12402 * term.c (tty_default_color_capabilities, maybe_fatal)
12403 (delete_tty): Likewise.
12404 * w16select.c (string): Likewise.
12405 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12406 * w32bdf.c (w32_free_bdf_font): Likewise.
12407 * w32fns.c (w32_unload_font): Likewise.
12408 * w32font.c (w32font_close): Likewise.
12409 * window.c (size_window): Likewise.
12410 * xselect.c (receive_incremental_selection): Likewise.
12411 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12412 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12413 * w32.c (stat): Likewise.
12415 Remove useless if-before-free tests.
12416 * editfns.c (Fset_time_zone_rule): Likewise.
12417 * lread.c (nosuffix): Likewise.
12418 * ralloc.c (get_bloc): Likewise.
12419 * regex.c (reg_free): Likewise.
12420 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12421 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12422 * xsmfns.c (smc_save_yourself_CB): Likewise.
12424 2008-06-02 Kenichi Handa <handa@m17n.org>
12426 * font.c (font_find_for_lface): Handle float font size.
12427 (font_open_for_lface): Likewise.
12429 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12430 comparing the properties.
12432 2008-06-01 Jason Rumney <jasonr@gnu.org>
12434 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12435 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12436 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12437 Don't add empty script list.
12438 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12440 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12442 * Makefile.in (dot, dotdot): Remove, update users.
12443 ".." has been used elsewhere in the file for a long time.
12444 (LIBXT_STATIC): Remove conditional based on unused variable.
12446 2008-06-01 Miles Bader <miles@gnu.org>
12448 * xfaces.c (Vface_remapping_alist): New variable.
12449 (syms_of_xfaces): Initialize it.
12450 (enum named_merge_point_kind): New type.
12451 (struct named_merge_point): Add `named_merge_point_kind' field.
12452 (push_named_merge_point): Make cycle detection respect different
12453 named-merge-point kinds.
12454 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12455 Remove face-name alias resolution.
12456 (lface_from_face_name): New definition using
12457 `lface_from_face_name_no_resolve'.
12458 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12459 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12460 (get_lface_attributes): New definition that layers face-remapping on
12461 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12462 (lookup_basic_face): New function.
12463 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12464 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12465 `get_lface_attributes'.
12466 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12467 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12468 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12470 * xdisp.c (init_iterator): Pass base_face_id through
12471 `lookup_basic_face' when we actually use it as a face-id.
12472 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12475 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12476 lookup the initial face-id.
12478 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12480 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12482 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12483 (Fremove_text_properties): Fix typos in docstrings.
12485 2008-05-31 Kenichi Handa <handa@m17n.org>
12487 * font.c (font_list_entities): Fix the car part of data to be
12488 stored in the cache.
12490 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12492 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12494 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12495 Add a `test' argument so another predicate than `equal' can be used.
12496 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12497 (map_char_table): Remove unused vars `c' and `i'.
12498 * lisp.h (Foptimize_char_table): Adjust declaration.
12499 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12501 2008-05-30 Kenichi Handa <handa@m17n.org>
12503 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12504 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12507 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12509 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12510 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12511 frame-local settings for the same variable.
12513 2008-05-30 Kenichi Handa <handa@m17n.org>
12515 * fontset.c (Ffont_info): Move to font.c.
12516 (syms_of_fontset): Delete defsubr of Sfont_info.
12518 * font.c (font_style_to_value, font_score): Delete casting of the
12519 args to xstcasecmp.
12520 (register_font_driver): Increment num_font_drivers only when
12521 registering the driver globally.
12522 (Ffont_info): Move from fontset.c. Handle a font object too.
12523 (syms_of_font): Defsubr Sfont_info.
12525 2008-05-29 Kenichi Handa <handa@m17n.org>
12527 * coding.h (enum define_coding_utf8_arg_index): New enum.
12528 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12529 coding_attr_utf_bom.
12530 (enum utf_bom_type): Rename from utf_16_bom_type.
12531 (struct utf_16_spec): Adjust for the above change.
12532 (struct coding_system): Add utf_8_bom in `spec' union.
12534 * coding.c (CODING_UTF_8_BOM): New macro.
12535 (enum coding_category): Delete coding_category_utf_8, add
12536 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12537 coding_category_utf_8_sig.
12538 (CATEGORY_MASK_UTF_8): Delete it.
12539 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12540 (CATEGORY_MASK_UTF_8_SIG): New macros.
12541 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12542 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12543 CATEGORY_MASK_UTF_8_SIG.
12544 (CATEGORY_MASK_UTF_8): New macro.
12545 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12546 (detect_coding_utf_8): Check BOM.
12547 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12548 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12549 (encode_coding_utf_16): Likewise.
12550 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12551 (detect_coding, detect_coding_system): Handle utf-8-auto.
12552 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12553 (syms_of_coding): Fix setting up of Vcoding_category_table.
12555 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12557 * process.c (Faccept_process_output): If `millisec' is non-nil,
12558 `seconds' default to 0.
12559 (wait_reading_process_output): Also return non-nil if we read output
12560 from a non-running process.
12562 2008-05-29 Jason Rumney <jasonr@gnu.org>
12564 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12565 `raster' specified.
12566 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12567 in the uniscribe backend, but disallow any font that has no
12568 unicode subrange support.
12570 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12572 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12573 Fix typos in docstrings.
12575 2008-05-29 Kenichi Handa <handa@m17n.org>
12577 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12578 (Fx_family_fonts): Set frame correctly.
12580 2008-05-28 Jason Rumney <jasonr@gnu.org>
12582 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12584 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12586 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12587 calling build_annotations.
12589 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12591 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12592 (Fencode_coding_string):
12593 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12594 <latin-extra-code-table>: Fix typos in docstrings.
12595 (syms_of_coding) <coding-system-alist>: Doc fix.
12596 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12598 2008-05-28 Kenichi Handa <handa@m17n.org>
12600 * fontset.c (Ffont_info): Don't call font_close_object.
12602 * font.c (font_parse_family_registry): Use Ffont_put to validate
12603 foundry and family.
12604 (font_delete_unmatched): Don't check spacing.
12605 (font_list_entities): Add spacing to the spec to list fonts.
12607 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12608 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12610 * coding.c (encode_coding_raw_text): Fix previous change.
12611 (encode_coding_object): When the dst_object is a buffer and is
12612 different from src_object, move gap to PT.
12614 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12616 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12618 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12620 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12621 all branches. Compute it differently.
12623 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12625 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12627 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12628 into "else if () ... else ...".
12630 2008-05-27 Jason Rumney <jasonr@gnu.org>
12632 * w32font.c (w32font_open_internal): Determine if glyph indices
12633 are likely to work here.
12635 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12637 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12638 draw overlap glyphs with appropriate highlighting.
12640 2008-05-27 Kenichi Handa <handa@m17n.org>
12642 * xfont.c (xfont_open): Fix calculation of font->average_width.
12644 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12646 * casefiddle.c (casify_object): Try to guess better whether the
12647 argument is a byte or a char.
12649 2008-05-26 Andreas Schwab <schwab@suse.de>
12651 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12652 Always send multiples of format size.
12654 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12656 2008-05-26 Jason Rumney <jasonr@gnu.org>
12658 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12659 (compute_metrics): Don't set failure if we just cleared the cache.
12660 (w32_weight_table): Remove unused variable.
12661 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12662 backwards compatibility.
12664 2008-05-25 Kenichi Handa <handa@m17n.org>
12666 * w32term.c (x_draw_glyph_string):
12667 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12669 * xfaces.c: Delete unused function prototypes.
12670 (xstrlwr, font_frame): Delete them.
12671 (clear_face_cache): Delete unused variable.
12673 * xftfont.c (xftfont_open): Delete unused variable.
12674 If underline_thickness is not 1, adjust underline_position.
12676 * ftxfont.c (ftxfont_open): Delete unused variable.
12678 * fontset.c (face_for_char): Optimize for the case of no charset
12681 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12682 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12683 (otf_open, font_otf_capability, generate_otf_features)
12684 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12685 Comment out by surrounding "#if 0" and "#endif" for the moment.
12686 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12687 (syms_of_font): Codes for accessing above commented out.
12689 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12691 * w32proc.c: Include dispextern.h.
12693 * w32.c: Include dispextern.h.
12695 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12697 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12698 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12699 Fix typos in docstrings.
12701 2008-05-23 Jason Rumney <jasonr@gnu.org>
12703 * xsmfns.c: Remove includes that are already included by config.h.
12705 2008-05-23 Kenichi Handa <handa@m17n.org>
12707 * charset.c (Qemacs, charset_emacs): New variables.
12708 (char_charset): Fix for non-Unicode characters.
12709 (syms_of_charset): Define charset_emacs.
12711 * w32term.c (x_draw_glyph_string): Be sure to update
12712 s->underline_thickness and s->underline_position. Be sure to draw
12713 underline within the current line area.
12715 * xterm.c (x_draw_glyph_string): Be sure to update
12716 s->underline_thickness and s->underline_position. Be sure to draw
12717 underline within the current line area.
12719 * fontset.c: Delete unused variables and add casting for char *
12720 throughout the file.
12721 (fontset_font): Try the fallback fonts of the current fontset
12722 before consulting the default fontset.
12724 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12726 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12728 2008-05-22 Jason Rumney <jasonr@gnu.org>
12730 * font.c: Don't include strings.h.
12732 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12734 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12735 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12736 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12737 to call xstrcasecmp.
12739 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12741 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12743 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12745 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12747 2008-05-22 Kenichi Handa <handa@m17n.org>
12749 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12751 * font.c (font_prop_validate_style): Adjust for the format
12752 change of font_style_table.
12754 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12757 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12760 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12762 * minibuf.c (keys_of_minibuf): Delete.
12763 * lisp.h (keys_of_minibuf): Delete.
12764 * emacs.c (main): Don't call keys_of_minibuf.
12766 2008-05-22 Kenichi Handa <handa@m17n.org>
12768 * ftfont.c (ftfont_resolve_generic_family): Rename from
12769 ftfont_list_generic_family. Return a single family for each
12771 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12772 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12774 (ftfont_match): Call font_add_log.
12776 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12777 (FONT_DEBUG): Define it.
12778 (font_add_log): Extern it.
12779 (font_assert): Rename from xassert.
12781 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12782 (xfont_list_family): Call font_add_log.
12783 (xfont_match): Likewise.
12784 (memq_no_quit): Delete.
12786 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12787 call of Ffont_xlfd_name.
12789 * xfaces.c (struct table_entry, slant_table, weight_table)
12790 (swidth_table): Move to font.c.
12792 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12793 xassert are changed to font_assert. Delete many unused variables.
12794 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12796 (struct table_entry): Move from xfaces.c and modified.
12797 (weight_table, slant_table, width_table): Move from xfaces.c and
12798 contents adjusted for the change of struct table_entry.
12799 (font_style_to_value, font_style_symbolic): Adjust for the
12800 format change of font_style_table.
12801 (font_parse_family_registry): Don't overwrite existing foundry and
12802 family of font_spec.
12803 (font_score): Fix calculation of diff for sizes.
12804 (font_sort_entites): Call font_add_log.
12805 (font_delete_unmatched): Return a newly created list.
12806 (font_list_entities): Fix previous change. Call font_add_log.
12807 (font_matching_entity, font_open_entity, font_close_entity):
12809 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12810 (Finternal_set_font_style_table): Delete.
12811 (BUILD_STYLE_TABLE): New macro.
12812 (build_style_table): New function.
12813 (Vfont_log, font_log_env_checked): New variables.
12814 (font_add_log): New function.
12815 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12816 Declare Lisp variables "font-weight-table", "font-slant-table",
12817 "font-width-table", and "font-log". Initialize font_style_table.
12819 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12821 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12823 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12824 Ryo Yoshitake <ryo@shiftmode.net>
12826 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12827 (Vframe_alpha_lower_limit): New variable.
12828 (x_set_alpha): New function.
12830 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12832 * xfns.c (x-create-frame, Qalpha):
12833 Initialize the frame parameter `alpha'.
12834 * xterm.c (OPAQUE, OPACITY): New.
12835 (x_set_frame_alpha): New function.
12836 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12838 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12839 * w32fns.c (w32_frame_parm_handlers): Likewise.
12841 2008-05-20 Jason Rumney <jasonr@gnu.org>
12843 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12844 truetype fonts to opentype list.
12846 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12848 * fontset.c (Ffontset_info): Doc fix.
12849 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12850 <ignore-relative-composition>: Fix typos in docstrings.
12852 * font.c (syms-of-font) <font-encoding-alist>:
12853 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12854 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12855 (Ffont_otf_alternates): Doc fixes.
12857 2008-05-20 Kenichi Handa <handa@m17n.org>
12859 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12860 font.h through out the file.
12861 (FONT_DRIVERS): Rename from FONTOBJ.
12862 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12863 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12865 * emacs.c (main): Call syms_of_font unconditionally.
12867 * font.h (find_font_encoding): Extern it.
12869 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12871 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12872 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12873 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12874 only when HAVE_WINDOW_SYSTEM is defined.
12875 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12876 when HAVE_WINDOW_SYSTEM is defined.
12878 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12879 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12881 * xfaces.c: Include font.h unconditionally.
12882 (merge_face_ref, merge_face_vectors)
12883 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12885 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12887 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12889 * eval.c (lisp_indirect_variable): New fun.
12890 (Fuser_variable_p): Use it.
12892 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12894 * lisp.h (indirect_variable):
12895 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12896 Use Lisp_Symbol pointers rather than Lisp_Object.
12898 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12899 To this end, change calling-convention.
12901 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12902 if some non-hidden buffers are selected by string&pred.
12904 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12906 * process.c (wait_reading_process_output): Always check status
12907 when in batch mode.
12909 2008-05-19 Kenichi Handa <handa@m17n.org>
12911 * font.c (font_list_entities): Fix handling of cache.
12912 (font_matching_entity): Likewise.
12914 * ftfont.c (cs_iso8859_1): Delete.
12915 (ft_face_cache): New variable.
12916 (struct ftfont_info): New member fc_charset_idx.
12917 (ftfont_build_basic_charsets): Delete.
12918 (fc_charset_table): New variable.
12919 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12920 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12922 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12923 (ftfont_spec_pattern): New argument fc_charset_idx.
12924 Check registry more rigidly. Change callers.
12925 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12926 change of :font-entity property of the font.
12928 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12929 property of the font.
12931 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12933 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12934 (Funencodable_char_position, Fcheck_coding_systems_region)
12935 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12936 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12937 (Ffind_operation_coding_system, Fset_coding_system_priority)
12938 (Fcoding_system_eol_type): Doc fixes.
12940 2008-05-17 Glenn Morris <rgm@gnu.org>
12942 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12944 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12946 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12949 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12950 HAVE_WINDOW_SYSTEM is not defined.
12952 * xfaces.c (merge_face_ref, merge_face_vectors)
12953 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12954 HAVE_WINDOW_SYSTEM is defined.
12955 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12957 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12959 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12961 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12963 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12965 2008-05-15 Kenichi Handa <handa@m17n.org>
12967 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12970 2008-05-15 Glenn Morris <rgm@gnu.org>
12972 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12974 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12976 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12977 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12979 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12981 2008-05-15 Kenichi Handa <handa@m17n.org>
12983 * ftfont.c (ftfont_list): Downcase family name to check generic
12986 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12987 font-spec for QCfont value.
12989 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12990 buffer. Check the return value of it.
12992 2008-05-14 Jason Rumney <jasonr@gnu.org>
12994 * w32term.c (w32_get_glyph_overhangs): Remove.
12995 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12997 2008-05-14 Kenichi Handa <handa@m17n.org>
12999 * font.c (font_prop_validate): Make nil a valid value.
13000 (font_clear_cache): Check if the cached vector of entities is nil
13003 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13005 * emacs.c (main_thread): Conditionalize on
13006 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13007 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13009 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13010 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13011 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13013 2008-05-14 Kenichi Handa <handa@m17n.org>
13015 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13016 has no corresponding coding system.
13018 2008-05-14 Jason Rumney <jasonr@gnu.org>
13020 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13022 * w32font.h (w32font_open_internal): Update declaration.
13024 * w32font.c (w32font_open_internal): Change last argument from
13025 w32font_info struct to font object. Fill in font object from
13026 font_entity. Get Outline metrics if possible. Use them to
13027 calculate underline position and thickness. Use xlfd name as name
13028 property. Don't set codepage.
13029 (w32font_open): Pass font_object to w32font_open_internal. Don't
13030 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13031 (w32font_draw): Use s->font.
13032 (clear_cached_metrics): Don't clear non-existent blocks.
13034 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13035 font was not found.
13036 (x_draw_glyph_string): Use underline position and thickness from font.
13038 * w32uniscribe.c (uniscribe_open): Pass font_object to
13039 w32font_open_internal.
13041 2008-05-14 Kenichi Handa <handa@m17n.org>
13043 These changes are to delete all legacy font-handling codes, and
13044 make Emacs use only font-backends.
13046 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13047 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13049 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13051 * charset.h (Vcharset_non_preferred_head)
13052 (Vcurrent_iso639_language): Extern them.
13054 * charset.c (Vcharset_non_preferred_head): New variable.
13055 (Vcurrent_iso639_language): New variable.
13056 (syms_of_charset): Declare it as a Lisp variable.
13057 (char_charset): Don't check non preferred charsets. As a last
13058 resort, return charset_unicode.
13059 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13061 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13062 conditionals. Don't check enable_font_backend. Delete all codes
13063 used only when USE_FONT_BACKEND is not defined.
13065 * dispextern.h (struct glyph_string): Change type of `font' to
13067 (struct glyph_string): New member underline_position and
13068 underline_thickness.
13069 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13070 (struct face): Change type of `font' to `struct font *'. Remove
13071 members `font_name', `font_info_id'.
13072 (per_char_metric, encode_char): Delete externs.
13073 (calc_pixel_width_or_height): Adjust the prototype.
13075 * emacs.c (enable_font_backend): Delete extern.
13076 (main): Don't set enable_font_backend. Don't check the command
13077 line argument "-disable-font-backend".
13079 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13080 (enum font_property_index): New members FONT_DPI_INDEX,
13081 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13082 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13083 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13084 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13085 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13086 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13087 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13088 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13089 (struct font_spec, struct font_entity): New structs.
13090 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13091 (struct font): Many members from old "struct font_info" moved to
13092 here. Members font and entity deleted.
13093 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13094 the new font-related objects.
13095 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13096 (CHECK_FONT_GET_OBJECT): Likewise.
13097 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13098 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13099 (struct font_driver): New members case_sensitive anc check. Type
13100 of the member list and open changed.
13101 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13102 (font_symbolic_width, font_find_object, font_get_spec)
13103 (font_set_lface_from_name): Delete extern.
13104 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13106 * font.c: Include <strings.h>.
13107 (enable_font_backend): Delete it.
13108 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13109 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13110 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13111 (null_string): Delete it.
13112 (null_vector): Make it static.
13113 (font_family_alist): Delete it.
13114 (Qnormal): Extern it.
13115 (QCextra, QClanguage): Delete it.
13116 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13117 (font_make_spec, font_make_entity, font_make_object)
13118 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13119 the string. Callers changed.
13120 (font_pixel_size): Adjusted for the format change of font-related
13122 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13123 (font_style_to_value, font_style_symbolic): New function.
13124 (build_font_family_alist): Delete it.
13125 (font_registry_charsets): Use Fassoc_string instead of
13127 (font_prop_validate_symbol): Don't return null_string.
13128 (font_prop_validate_style): Adjusted for the change of
13129 style-related values in a font vector.
13130 (font_property_table): Delete entries for QClanguage and
13131 QCantialias, add entries for QCavgwidth.
13132 (get_font_prop_index): Delete the 2nd argument FROM.
13133 (font_prop_validate): Arguments changed.
13134 (font_put_extra): Adjusted for the change of font-related objects.
13135 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13136 (font_parse_fcname, font_unparse_fcname)
13137 (font_prepare_composition): Likewise.
13138 (font_parse_family_registry): Renamed from font_merge_old_spec.
13139 (otf_open): Delete the 1st arg entity.
13140 (font_otf_capability): Adjusted for the above change.
13141 (font_score): New arg alternate_families. Adjusted for the change
13142 of font-related objects.
13143 (font_sort_entites): New arg best_only.
13144 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13146 (font_match_p): Check alternate families.
13147 (font_find_object): Delete it.
13148 (font_check_object): New function.
13149 (font_clear_cache): Adjusted for the change of font-related objects.
13150 (font_delete_unmatched): New arg.
13151 (font_list_entities): Call font_driver->list with a spec that
13152 doesn't specify style-related properties.
13153 (font_matching_entity): Arguments changed. Caller changed.
13154 (font_open_entity): Adjusted for the change of font-related objects.
13155 (font_close_object, font_has_char, font_encode_char)
13156 (font_get_name, font_get_spec): Likewise.
13157 (font_spec_from_name, font_clear_prop, font_update_lface):
13159 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13160 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13161 (font_at): Adjusted for the change of font-related objects.
13162 (font_range): New function.
13163 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13164 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13165 (Fcopy_font_spec, Fmerge_font_spec): New function.
13166 (Ffont_family_list): Renamed from list-families.
13167 (Finternal_set_font_style_table): Arguments changed.
13168 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13169 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13170 change of font-related objects.
13171 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13173 * fontset.h (struct font_info): Delete it. Most members go to
13175 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13176 (enum FONT_SPEC_INDEX): Delete it.
13177 (font_info, list_fonts_func, load_font_func, query_font_func)
13178 (set_frame_fontset_func, find_ccl_program_func)
13179 (get_font_repertory_func, new_fontset_from_font_name): Delete
13181 (fontset_from_font_name): Extern it.
13182 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13183 (FONT_INFO_FROM_FACE): Deleted.
13184 (face_for_font): Adjust prototype.
13186 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13187 conditionals. Don't check enable_font_backend. Delete all codes
13188 used only when USE_FONT_BACKEND is not defined.
13189 (get_font_info_func, list_font_func, load_font_func)
13190 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13191 (get_font_repertory_func): Delete them.
13192 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13193 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13194 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13195 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13196 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13197 (fontset_compare_rfontdef): New function.
13198 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13199 rfont-defs by qsort. Adjusted for the change of font-group vector.
13200 (load_font_get_repertory): Deleted.
13201 (fontset_find_font): Use new macros to ref/set elements of
13202 font-def and rfont-def.
13203 (fontset_font): Fix the timing of remembering that no font for C.
13204 (free_face_fontset): Do nothing if the face has no fontset.
13205 (face_suitable_for_char_p): Use new macros to ref/set elements of
13207 (face_for_char): Likewise. Call face_for_char with font_object.
13208 (fs_load_font): Delete. Delete #pragma surrounding it.
13209 (fs_query_fontset): Use strcasecmp instead of strcmp.
13210 (generate_ascii_font_name): Adjusted for the format change of
13212 (Fset_fontset_font): Likewise. Use new macros to set elements of
13214 (Fnew_fontset): Use font_unparse_xlfd to generate
13215 FONTSET_ASCII (fontset).
13216 (new_fontset_from_font_name): Deleted.
13217 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13218 a fontset is already created for the font. FIx updating of
13219 Vfontset_alias_alist.
13220 (fontset_ascii_font): Deleted.
13221 (Ffont_info): Adjusted for the format change of font-spec.
13222 (Finternal_char_font): Likewise.
13223 (Ffontset_info): Likewise.
13224 (syms_of_fontset): Don't check load_font_func.
13226 * fns.c (internal_equal): Handle PREV_FONT.
13228 * frame.h: Delete USE_FONT_BACKEND conditional.
13230 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13231 conditionals. Don't check enable_font_backend. Delete all codes
13232 used only when USE_FONT_BACKEND is not defined.
13233 (x_set_font): Call x_new_font, not x_new_fontset2.
13234 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13235 already set for the frame.
13237 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13238 a font-entity by font_make_entity. Use font_intern_prop instead
13239 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13240 font property. If a font is scalable, set avgwidth property to 0.
13241 Set font-entity property by font_put_extra.
13242 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13243 (ffont_driver): Adjusted for the change of struct font_driver.
13244 (ftfont_spec_pattern): New function.
13245 (ftfont_list): Return a list, not vector.
13246 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13247 (ftfont_list_family): Don't downcase names.
13248 (ftfont_free_entity): Deleted.
13249 (ftfont_open): Return a font-object. Adjusted for the change of
13250 struct font. Get underline_thickness and underline_position from
13251 font property. Don't update dpyinfo->smallest_font_height and
13252 dpyinfo->smallest_char_width.
13253 (ftfont_close): Don't free `struct font'.
13254 (ftfont_has_char): Adjusted for the format change of font-entity.
13255 (ftfont_encode_char, ftfont_text_extents): Likewise.
13257 * ftxfont.c (ftxfont_list): Return a list, not vector.
13258 (ftxfont_open): Return a font-object. Adjusted for the change of
13259 struct font. Get underline_thickness and underline_position from
13260 font property. Don't update dpyinfo->smallest_font_height and
13261 dpyinfo->smallest_char_width.
13262 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13263 (ftxfont_draw): Adjusted for the change of struct font.
13265 * image.c (image_ascent): Don't include "charset.h". Include
13266 "character.h" and "font.h".
13268 * lisp.h (enum pvec_type): New member PREV_FONT.
13269 (Fassoc_string): EXFUN it.
13271 * print.c: Include font.h.
13272 (print_object): Handle font-related objects.
13274 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13275 conditionals. Don't check enable_font_backend. Delete all codes
13276 used only when USE_FONT_BACKEND is not defined.
13277 (handle_auto_composed_prop): Do nothing if it->f is not on a
13278 window system. Check how many following characters can be
13279 displayed by the same font.
13280 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13282 (get_char_face_and_encoding): Assign the whole encoding task to
13283 the `encode-char' method of a font driver.
13284 (fill_composite_glyph_string): Adjusted for the change of `struct
13285 face' and `struct glyph_string'.
13286 (fill_glyph_string): Likewise.
13287 (get_per_char_metric): Arguments changed.
13288 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13289 and `struct glyph_string'.
13290 (produce_stretch_glyph, calc_line_height_property)
13291 (x_produce_glyphs): Likewise.
13293 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13294 conditionals. Don't check enable_font_backend. Delete all codes
13295 used only when USE_FONT_BACKEND is not defined. Use
13296 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13297 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13299 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13301 (struct font_name): Deleted.
13302 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13303 (compare_fonts_by_sort_order): New function.
13304 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13305 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13307 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13308 compare_fonts_by_sort_order.
13309 (Fx_font_family_list): Call Ffont_family_list.
13310 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13311 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13312 (face_symbolic_slant, face_symbolic_swidth)
13313 (split_font_name_into_vector, build_font_name_from_vector)
13314 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13315 (font_rescale_ratio, split_font_name, build_font_name)
13316 (free_font_names, sort_fonts, x_face_list_fonts)
13317 (face_font_available_p, sorted_font_list, cmp_font_names)
13318 (font_list_1, concat_font_list, font_list, remove_duplicates):
13320 (Fx_list_fonts): Use Ffont_list.
13321 (LFACE_AVGWIDTH): Deleted.
13322 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13324 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13325 (set_lface_from_font_name): Delete it.
13326 (set_lface_from_font): Renamed from
13327 set_lface_from_font_and_fontset. Caller changed. Don't set
13328 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13330 (merge_face_vectors): Copy font-spec if necessary.
13331 Clear properties of the font-spec if necessary.
13332 (merge_face_ref): Clear properties of the font-spec if necessary.
13333 (Finternal_set_lisp_face_attribute): Likewise.
13334 (set_font_frame_param): Use font_load_for_lface to load a
13335 font-object, and call Fmodify_frame_parameters with it.
13336 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13337 font name by Ffont_xlfd_name.
13338 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13339 QCslant, and QCwidth.
13340 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13341 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13342 Compare fonts by EQ.
13343 (lookup_non_ascii_face): Deleted.
13344 (face_for_font): The 2nd argument changed.
13345 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13346 Check atomic font properties by case insensitive.
13347 (realize_non_ascii_face): Set face->overstrike correctly.
13348 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13349 (dump_realized_face): Get font name from
13350 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13352 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13353 conditionals. Don't check enable_font_backend. Delete all codes
13354 used only when USE_FONT_BACKEND is not defined.
13355 (xic_create_xfontset): Original code deleted and renamed from
13356 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13357 (x_make_gc): Don't set GCFont in GCs.
13358 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13360 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13361 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13362 get_font_repertory_func.
13364 * xfont.c: Include <stdlib.h> and "ccl.h".
13365 (struct xfont_info): New structure.
13366 (xfont_query_font): Deleted.
13367 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13368 moved from xterm.c.
13369 (xfont_driver): Adjusted for the change of struct font_driver.
13370 (compare_font_names): New function.
13371 (xfont_list_pattern): Sort font names case insensitively. Make
13372 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13373 (xfont_list): Return a list, not vector.
13374 (xfont_match): If the font doesn't have QCname property, generate
13375 a name from the other font properties.
13376 (xfont_open): Return a font-object. Adjusted for the change of
13377 struct font. Get underline_thickness and underline_position from
13378 font property. Don't update dpyinfo->smallest_font_height and
13379 dpyinfo->smallest_char_width.
13380 (xfont_close): Don't free struct font.
13381 (xfont_prepare_face): Adjusted for the change of struct font.
13382 (xfont_done_face): Deleted.
13383 (xfont_has_char): Adjusted for the change of struct font.
13384 (xfont_encode_char, xfont_draw): Likewise.
13385 (xfont_check): New function.
13387 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13389 (xftfont_match): Adjusted for the format change of font-entity.
13390 (xftfont_open): Adjusted for the format change of font-entity and
13391 font-object. Adjusted for the change of struct font. Return a
13392 font-object. Don't update dpyinfo->smallest_font_height and
13393 dpyinfo->smallest_char_width.
13394 (xftfont_close): Block input while calling XftFontClose.
13395 (xftfont_prepare_face): Don't block input while calling
13396 xftfont_get_colors. Adjusted for the change of struct font.
13397 (xftfont_shape): Return value of error case fixed.
13399 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13401 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13403 (FONT_WIDTH): Return (f)->max_width.
13404 (struct x_display_info): Delete member `font'.
13405 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13406 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13407 (struct x_output): Change type of `font' to `struct font *'.
13409 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13410 conditionals. Don't check enable_font_backend. Delete all codes
13411 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13412 (x_per_char_metric, x_encode_char): Deleted.
13413 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13414 (x_compute_glyph_string_overhangs): Adjusted for the change of
13416 (x_draw_glyph_string_foreground)
13417 (x_draw_composite_glyph_string_foreground): Likewise.
13418 (x_draw_glyph_string): Likewise. Use font->underline_position and
13419 font->underline_thickness.
13420 (x_new_font): Renamed from x_new_fontset2.
13421 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13422 (x_check_font): Call `check' method of a font driver.
13423 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13424 (x_query_font, x_get_font_repertory): Deleted.
13425 (x_find_ccl_program): Renamed and moved to xfont.c.
13426 (x_redisplay_interface): Adjusted for the change of `struct
13427 redisplay_interface'.
13429 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13430 conditionals. Don't check enable_font_backend. Delete all codes
13431 used only when USE_FONT_BACKEND is not defined. Surround non-used
13432 code by "#ifdef OLD_FONT" and "endif".
13433 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13435 * w32font.h (struct w32font_info): New member.
13436 (FONT_COMPAT): New macro.
13437 (w32font_open_internal): Prototype adjusted.
13439 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13440 OLD_FONT" and "endif".
13442 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13443 conditionals. Don't check enable_font_backend. Delete all codes
13444 used only when USE_FONT_BACKEND is not defined.
13445 (w32font_open): Return a font-object. Make a font-object by
13446 font_make_object. Adjusted for the change of struct w32font_info.
13447 (w32font_close): Don't free struct font. Adjusted for the change
13448 of struct w32font_info.
13449 (w32font_encode_char, w32font_text_extents, w32font_draw):
13450 Adjusted for the change of struct w32font_info.
13451 (w32font_draw): Likewise.
13452 (w32font_list_internal): Return a list, not vector.
13453 (w32font_open_internal): Change the 4th arg to font-object.
13454 Adjusted for the change of struct w32font_info and font-object format.
13455 (add_font_name_to_list): Don't downcase names.
13456 (w32_enumfont_pattern_entity): Make a font-entity by
13457 font_make_entity. Adjusted for the format change of font-entity.
13458 Use FONT_SET_STYLE to set a style-related font property. If a
13459 font is scalable, set avgwidth property to 0. Set font-entity
13460 property by font_put_extra.
13461 (font_matches_spec): Adjusted for the format change of font-entity.
13462 (w32_weight_table, w32_decode_weight): New variables.
13463 (w32_encode_weight): New function.
13464 (fill_in_logfont): Adjusted for the format change of font-spec.
13465 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13467 (w32font_driver): Adjusted for the change of struct font_driver.
13469 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13470 conditionals. Don't check enable_font_backend. Surround non-used
13471 code by "#ifdef OLD_FONT" and "endif".
13472 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13473 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13475 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13476 conditionals. Don't check enable_font_backend. Delete all codes
13477 used only when USE_FONT_BACKEND is not defined. Surround non-used
13478 code by "#ifdef OLD_FONT" and "endif".
13480 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13481 (uniscribe_open): Return value changed to font-object.
13482 Adjusted for the format change of font-object.
13483 (uniscribe_otf_capability): Adjusted for the change of struct font.
13484 (add_opentype_font_name_to_list): Don't downcase names.
13485 (uniscribe_font_driver): Adjusted for the change of struct
13488 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13490 * dispnew.c (update_frame_1): Check if tty output is still valid
13491 before flushing it.
13493 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13495 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13498 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13500 * dired.c (file_name_completion): Tweak the code so as to always do it
13501 in a single pass. Tighten the scope of some variables.
13503 * dired.c (Qdefault_directory): New var.
13504 (file_name_completion): Use it instead of Fexpand_file_name.
13505 (syms_of_dired): Initialize it.
13507 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13509 * fileio.c (double_dollars): Remove dead code.
13511 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13513 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13514 Mention w32-get-true-file-attributes in doc string.
13516 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13518 2008-05-09 Glenn Morris <rgm@gnu.org>
13520 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13523 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13525 Support for reporting owner and group of each file on MS-Windows:
13526 * dired.c (stat_uname, stat_gname): New functions, with special
13527 implementation for w32.
13528 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13530 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13531 (dflt_group_name): New static variable.
13532 (dflt_group): Rename from the_group.
13533 (init_user_info): Init dflt_group fields. Get user's group name
13534 from LookupAccountSid.
13535 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13536 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13537 New initialization states.
13538 (globals_of_w32): Initialize them to zero. Initialize the default
13539 group name to "None".
13540 (GetFileSecurity_Name): New global var, the name of the function
13541 to call for GetFileSecurity.
13542 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13543 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13544 (get_file_security, get_security_descriptor_owner)
13545 (get_security_descriptor_group, is_valid_sid)
13546 (get_file_security_desc, get_rid, get_name_and_id)
13547 (get_file_owner_and_group): New functions.
13548 (stat): Use get_file_security_desc and get_file_owner_and_group to
13549 report the owner and primary group of each file. Don't ignore the
13550 high 32 bits of file's size, now that st_size is 64-bit wide.
13551 Fix test when to get true file attributes.
13552 (init_user_info): Use get_rid instead of equivalent inline code.
13553 (fstat): Don't ignore the high 32 bits of file's size.
13555 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13557 * image.c (png_load): Use correct bit-depth for setting background
13560 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13562 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13565 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13567 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13569 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13571 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13572 because the original parameters are in pure storage now.
13573 (mac_window): Remove unused params. Update callers.
13575 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13577 * lread.c (substitute_object_recurse): Use lower-level primitives.
13578 Don't signal errors when traversing sub-char-tables.
13579 Don't loop over all the possible characters when traversing char-tables.
13581 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13582 just like we do in print.c.
13584 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13586 * minibuf.c (Ftry_completion): Remove code left over from when we used
13587 scmp instead of Fcompare_strings.
13589 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13591 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13593 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13595 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13596 Create bitmap context in native byte order.
13598 * macterm.c (XDrawLine)
13599 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13600 context in native byte order.
13602 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13604 * config.in: Regenerate.
13606 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13607 New definitions for Image I/O support.
13608 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13609 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13610 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13611 (mac_data_provider_release_data, image_load_image_io)
13612 [USE_MAC_IMAGE_IO]: New functions.
13613 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13614 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13615 (init_image_func_pointer) [MAC_OSX]: Remove function.
13616 (image_load_quartz2d) [MAC_OSX]: Check availability of
13617 CGImageCreateWithPNGDataProvider at compile time.
13618 Use lowercase `false' for boolean constant.
13619 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13620 Use image_load_image_io.
13621 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13622 Don't check MyCGImageCreateWithPNGDataProvider.
13623 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13624 Don't call init_image_func_pointer.
13626 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13628 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13629 Make variable non-static.
13630 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13631 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13633 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13634 (RED_FROM_ULONG): Mask off higher bits.
13635 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13637 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13638 Include AvailabilityMacros.h.
13639 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13640 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13642 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13644 * chartab.c (Fset_char_table_range): If range is t, really set all
13645 chars to that value.
13647 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13649 * dired.c (Ffile_attributes): Don't allow the device number become
13652 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13654 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13656 2008-05-02 Juri Linkov <juri@jurta.org>
13658 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13659 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13660 DEFAULT argument as a list of default values in docstrings.
13662 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13664 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13666 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13668 * dispnew.c (change_frame_size_1): Preserve small windows when
13669 shrinking frames by calling set_window_height|width with third
13672 * window.h (struct window): Replace field too_small_ok by field
13673 resize_proportionally.
13675 * window.c (make_window): Initialize resize_proportionally.
13676 (enlarge_window): Temporarily set resize_proportionally to make
13677 sure that shrink_windows does scale the window proportionally.
13678 (shrink_windows): When window has resize_proportionally set try
13679 to shrink it proportionally by stealing from other windows.
13680 (struct saved_window, Fset_window_configuration)
13681 (compare_window_configurations): Handle resize_proportionally.
13682 (WINDOW_TOTAL_SIZE): New macro.
13683 (window_min_size, shrink_windows, size_window): Use it.
13684 (check_min_window_sizes): Remove. Invalid values of
13685 window-min-height|width are handled by window_min_size_2 now.
13686 (size_window, Fsplit_window, enlarge_window)
13687 (adjust_window_trailing_edge, grow_mini_window): Don't call
13688 check_min_window_sizes.
13689 (window_min_size_2, window_min_size_1, window_min_size):
13690 New argument safe_p for retrieving "safe" minimum sizes.
13691 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13692 (adjust_window_trailing_edge, grow_mini_window):
13693 Adjust arguments of window_min_size... functions.
13694 (shrink_windows): Argument min_size removed. New argument
13695 safe_p allows shrinking windows to their safe minimum sizes.
13696 Calculate minimum size and decide whether a window shall be
13697 deleted for each window individually.
13698 (size_window): When nodelete_p equals 2, tell shrink_windows to
13699 delete windows only if their new minimum size is no more safe.
13700 (shrink_window_lowest_first): Call window_min_size_1 to make
13701 sure to preserve modeline of bottom-most window when resizing
13703 (Fset_window_configuration, Fcurrent_window_configuration)
13704 (compare_window_configurations): Do not handle
13705 window-min-height|width any more.
13706 (syms_of_window): Clarify window-min-height|width doc-strings.
13708 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13710 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13711 some more. Copy some of the code from Ftry_completions.
13712 Remove special case code that dates back to initial revision when the
13713 slash was only added when necessary and that can't trigger nowadays.
13715 2008-04-27 Kenichi Handa <handa@m17n.org>
13717 * font.c (font_prop_validate): Signal `error' instead of `font'.
13719 2008-04-29 Jason Rumney <jasonr@gnu.org>
13721 * w32fns.c (Fw32_battery_status): New defun.
13722 (syms_of_w32fns): Defsubr it.
13724 2008-04-28 Andreas Schwab <schwab@suse.de>
13726 * dired.c (file_name_completion): Fix another mixing of encoded
13729 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13731 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13733 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13735 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13737 2008-04-27 Andreas Schwab <schwab@suse.de>
13739 * dired.c (file_name_completion): Fix inappropriate mixing of
13740 encoded and decoded names.
13742 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13744 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13746 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13748 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13749 2008-03-31, it's not needed anymore with `struct stat' definition
13750 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13751 for the same reasons.
13753 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13755 * m/sparc.h: Additional redefinitions for GNU/Linux.
13757 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13759 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13760 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13761 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13762 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13763 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13764 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13765 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13768 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13769 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13770 (mac_ax_number_of_characters): Add externs.
13771 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13772 [USE_MAC_TSM]: Likewise.
13773 (mac_handle_text_input_event) [MAC_OSX]:
13774 Handle kEventTextInputOffsetToPos for no active input area case.
13775 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13776 (mac_handle_document_access_event)
13777 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13778 (install_application_handler) [MAC_OSX]: Register handlers for
13779 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13780 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13781 Register mac_handle_document_access_event.
13783 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13784 Make functions non-static.
13786 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13788 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13789 (read_file_name_completion_ignore_case, insert_default_directory)
13790 (Qdefault_directory): Move to minibuffer.el.
13791 (Fread_file_name): Call the new `read-file-name' instead.
13793 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13795 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13796 Make function non-static.
13797 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13799 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13800 Move to mactoolbox.c.
13801 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13803 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13804 (mac_rect_make): New macro.
13806 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13808 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13809 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13810 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13811 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13813 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13814 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13815 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13816 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13817 instead of WindowRef in argument type.
13818 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13819 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13820 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13821 instead of DISPLAY. All uses changed.
13822 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13823 (x_calc_absolute_position): Simplify so as not to use
13824 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13826 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13827 instead of WindowRef in argument type.
13828 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13829 [TARGET_API_MAC_CARBON]: Remove externs.
13830 (create_apple_event, mac_event_parameters_to_lisp)
13831 [TARGET_API_MAC_CARBON]: Add externs.
13833 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13834 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13835 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13837 (x_activate_menubar): Remove extern for saved_menu_event_location.
13838 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13841 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13843 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13844 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13846 2008-04-23 Jason Rumney <jasonr@gnu.org>
13848 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13849 attributes only for local files.
13851 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13854 2008-04-22 Juri Linkov <juri@jurta.org>
13856 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13857 read-buffer-to-switch instead of using the letter "B".
13859 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13861 * fileio.c (Qdefault_directory): New variable.
13862 (Fread_file_name): Use it to pass `dir' to the completion functions.
13864 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13866 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13868 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13870 * keyboard.c (Vpre_help_message): Remove.
13871 (show_help_echo): Remove default C code.
13873 * dired.c (directory_files_internal, file_name_completion):
13874 Only call ENCODE_FILE if the string is indeed decoded.
13876 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13878 * Makefile.in (TOOLKIT_DEFINES): Remove.
13879 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13881 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13883 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13884 (mactoolbox.o): New target.
13886 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13887 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13889 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13890 Use mac_set_frame_window_background instead of XSetWindowBackground.
13891 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13892 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13893 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13894 instead of SetWindowTitleWithCFString.
13895 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13896 Move function to mactoolbox.c.
13897 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13898 Use mac_set_window_modified instead of SetWindowModified.
13899 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13900 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13901 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13902 FrontNonFloatingWindow. Use mac_activate_window instead of
13903 ActivateWindow. Use mac_active_non_floating_window instead of
13904 ActiveNonFloatingWindow.
13905 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13906 Use mac_show_hourglass and mac_hide_hourglass.
13907 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13908 instead of GetGlobalMouse.
13909 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13910 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13911 Use mac_bring_window_to_front instead of BringToFront.
13912 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13914 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13915 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13916 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13919 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13920 (XtPointer): Move typedef from macmenu.c.
13921 (enum button_type): Move enum from macmenu.c.
13922 (widget_value): Move typedef from macmenu.c.
13923 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13924 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13925 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13926 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13927 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13928 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13929 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13930 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13931 (Selection): Move typedef from macselect.c.
13932 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13934 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13935 (mac_is_window_collapsed, mac_bring_window_to_front)
13936 (mac_send_window_behind, mac_hide_window, mac_show_window)
13937 (mac_collapse_window, mac_front_non_floating_window)
13938 (mac_active_non_floating_window, mac_activate_window)
13939 (mac_move_window_structure, mac_move_window, mac_size_window)
13940 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13942 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13943 (enum mac_menu_kind): Move enum to mactoolbox.c.
13944 (min_menu_id): Move variable to mactoolbox.c.
13945 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13946 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13947 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13948 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13949 [TARGET_API_MAC_CARBON]: Likewise.
13950 (XtPointer): Move typedef to macgui.h.
13951 (enum button_type): Move enum to macgui.h.
13952 (widget_value): Move typedef to macgui.h.
13953 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13954 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13955 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13956 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13957 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13958 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13959 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13960 (popup_activated_flag): Make variable non-static.
13961 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13962 (add_menu_item, fill_menu, dispose_menus):
13963 Move functions to mactoolbox.c.
13964 (restore_show_help_function, menu_target_item_handler)
13965 (install_menu_target_item_handler, mac_handle_dialog_event)
13966 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13967 [TARGET_API_MAC_CARBON]: Likewise.
13968 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13969 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13970 (find_and_call_menu_selection, name_is_separator): Make function
13972 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13974 (set_frame_menubar): Don't call install_menu_quit_handler.
13975 (menu_item_selection): New variable.
13976 (mac_menu_show): Use create_and_show_popup_menu.
13977 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13978 selection but set variable menu_item_selection. All uses changed.
13979 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13980 Call install_menu_quit_handler. Move to mactoolbox.c.
13982 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13983 (Selection): Move typedef to macgui.h.
13984 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13985 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13986 Make variables non-static.
13987 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13988 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13989 Make functions non-static.
13990 (Vmac_service_selection) [MAC_OSX]: Likewise.
13991 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13992 (mac_valid_selection_target_p, mac_clear_selection)
13993 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13994 (mac_put_selection_value, mac_selection_has_target_p)
13995 (mac_get_selection_value, mac_get_selection_target_list)
13996 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13997 Move functions to mactoolbox.c.
13998 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14000 (copy_scrap_flavor_data, mac_handle_service_event)
14001 (install_service_handler) [MAC_OSX]: Likewise.
14002 (syms_of_macselect) <Vmac_dnd_known_types>:
14003 Use mac_dnd_default_known_types.
14005 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14006 Move to mactoolbox.c.
14007 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14008 (Fx_selection_owner_p): Add EXFUN.
14009 (install_window_handler, remove_window_handler, XSetWindowBackground):
14011 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14012 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14013 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14014 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14015 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14016 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14017 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14018 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14019 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14020 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14021 (mac_valid_selection_target_p, mac_clear_selection)
14022 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14023 (mac_put_selection_value, mac_selection_has_target_p)
14024 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14025 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14026 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14027 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14028 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14029 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14030 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14031 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14032 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14034 * mactoolbox.c: New file.
14036 2008-04-18 Jason Rumney <jasonr@gnu.org>
14038 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14040 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14042 * character.c (Fmultibyte_char_to_unibyte):
14043 Return latin1 chars unchanged.
14045 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14046 relocated if it points to `name'.
14048 2008-04-17 Kenichi Handa <handa@m17n.org>
14050 * data.c (Faset): Allow setting a multibyte character in an
14051 ASCII-only unibyte string.
14053 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14055 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14057 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14060 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
14062 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14063 (Fchar_direction): Add usage in the docstring.
14065 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
14067 * keyboard.c (read_key_sequence): Remove always-true checks.
14069 2008-04-14 Jason Rumney <jasonr@gnu.org>
14071 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14072 compatibility struct, for better underline positioning.
14074 2008-04-13 David Hansen <david.hansen@gmx.net>
14076 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14079 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14081 * m/hp800.h (XUINT, XSET): Remove.
14083 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
14085 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14088 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14090 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14091 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14093 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14095 * keymap.h (map_keymap_canonical): Declare.
14096 * xmenu.c (single_keymap_panes): Use it.
14098 2008-04-11 Glenn Morris <rgm@gnu.org>
14100 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14101 set the target's value to that of the alias.
14103 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14105 * term.c (set_tty_color_mode): Left over typo.
14107 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
14109 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14110 only after check for file name handler functions. Signal, when
14111 native functionality is not supported.
14112 (syms_of_fileio): Declare it unconditionally.
14114 2008-04-10 Jason Rumney <jasonr@gnu.org>
14116 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14117 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14119 * w32.c (logon_network_drive): Also logon to remote drives that
14120 are mapped to drive letters.
14122 2008-04-10 Glenn Morris <rgm@gnu.org>
14124 * xdisp.c (truncate-partial-width-windows): Doc fix.
14126 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14128 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14129 Move functions to minibuffer.el.
14130 (syms_of_fileio): Don't declare them.
14132 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14134 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14135 (syms_of_minibuf): Remove its initialization.
14137 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14139 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
14141 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14143 2008-04-09 Jason Rumney <jasonr@gnu.org>
14145 * makefile.w32-in (distclean): Delete makefile too.
14146 (maintainer-clean): New target.
14148 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14150 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14151 for new font backend and composite cases.
14153 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14155 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14156 Most of the code moved to run_timers.
14157 (do_pending_atimers): Call run_timers.
14158 (run_timers): New function.
14160 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14163 * process.c (wait_reading_process_output): The same as above.
14165 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14167 * minibuf.c (last_exact_completion): Remove variable.
14168 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14169 (complete_and_exit_1, complete_and_exit_2)
14170 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14171 (Fdisplay_completion_list, display_completion_list_1)
14172 (Fminibuffer_completion_help, Fself_insert_and_exit)
14173 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14175 (syms_of_minibuf): Remove corresponding initializations.
14177 * keyboard.c (Qdeactivate_mark): New var.
14178 (command_loop_1): Use it to call `deactivate-mark'.
14179 (syms_of_keyboard): Initialize it.
14181 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14183 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14184 Don't call set_tty_color_mode.
14185 (store_frame_param): Reset previous_frame rather than call
14186 set_tty_color_mode.
14187 * term.c (set_tty_color_mode): Rewrite.
14188 * dispextern.h (set_tty_color_mode): New type.
14189 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14191 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14193 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14194 for generic chars, which do not exist any more in emacs-unicode.
14196 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
14198 * coding.c (detect_coding_emacs_mule)
14199 (Ffind_operation_coding_system): Fix typo.
14201 2008-04-08 Jason Rumney <jasonr@gnu.org>
14203 * w32uniscribe.c (SNAME): Extract only symbol name.
14205 * w32font.h (struct w32_metric_cache): New struct.
14206 (w32font_info): Use it.
14207 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14208 (CACHE_BLOCKSIZE): New constants.
14210 * w32font.c (Qja, Qko, Qzh): New symbols.
14211 (syms_of_w32font): Initialise them.
14212 (font_matches_spec): Use them to filter by language.
14213 (recompute_cached_metrics): Remove function.
14214 (compute_metrics, clear_cached_metrics): New functions.
14215 (w32font_encode_char): Use them to manage metric cache.
14216 (w32font_text_extents): Cache metrics for all glyphs on demand.
14217 Delay converting glyph indices to WORD until needed.
14218 (w32font_open_internal): Initialize metric cache to empty.
14219 (registry_to_w32_charset): Charset should always be a symbol.
14220 (fill_in_logfont, list_all_matching_fonts): Family should
14221 always be a symbol.
14223 2008-04-06 Jason Rumney <jasonr@gnu.org>
14225 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14226 Give up if glyph indices not supported. Use uniscribe obtained
14227 ABC widths for individual metrics. Map glyph clusters back to
14228 characters using fClusterStart flag. Return number of glyphs
14229 produced, not chars processed.
14230 (uniscribe_shape): Map char at FROM to current glyph.
14232 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14234 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14235 Use SetMenuItemHierarchicalMenu.
14237 2008-04-05 Jason Rumney <jasonr@gnu.org>
14239 * image.c (pbm_load): Allow color values up to 65535.
14240 Throw an error if max_color_idx is outside the supported range.
14241 Report an error when image size is invalid.
14242 Read two bytes at a time when raw images have max_color_idx above 255.
14244 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14246 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14247 append "CCL: Quitted" when the CCL program is quitted.
14248 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14250 * ccl.h (struct ccl_program): New member quit_silently.
14252 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
14254 * search.c (compile_pattern_1): Treat non-nil and non-string of
14255 search-spaces-regexp as nil.
14257 * minibuf.c (Fassoc_string): Tweak docstring.
14259 2008-04-05 Eli Zaretskii <eliz@gnu.org>
14261 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14262 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14263 2008-03-14 to force inode be positive.
14265 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14266 _S_* ones, since we now use our own sys/stat.h.
14267 (stat, fstat): Don't mangle the inode number.
14268 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14270 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14272 * frame.h (struct frame): Give one more bit to `visible' since we use
14273 values larger than 1 to indicate obscured frames on ttys.
14275 * keymap.c (Qkeymap_canonicalize): New var.
14276 (Fmap_keymap_internal): New fun.
14277 (describe_map): Use keymap-canonicalize.
14279 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14280 (Fundo_boundary): Set them.
14281 (syms_of_undo): Initialize them.
14282 (record_point): Use them instead of last_point_position*.
14283 (last_undo_buffer): Change type.
14285 2008-04-04 Jason Rumney <jasonr@gnu.org>
14287 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14288 (recompute_cached_metrics): Don't set ascent and descent per char.
14290 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14291 (uniscribe_check_otf): Add GC protection before consing.
14292 Rearrange loop for counting features.
14294 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14296 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14297 buffer with byte-size of source buffer.
14299 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
14301 * callint.c (Fcall_interactively): Handle temporary region even
14302 when shift-select-mode is off.
14304 2008-04-03 Jason Rumney <jasonr@gnu.org>
14306 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14308 2008-04-03 Kenichi Handa <handa@m17n.org>
14310 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14311 (CATEGORY_MASK_UTF_16): Likewise.
14312 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14314 (detect_coding): Add null-byte detection for a binary file.
14315 (detect_coding_system): Likewise.
14317 2008-04-03 Jason Rumney <jasonr@gnu.org>
14319 * w32uniscribe.c: New file.
14321 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14323 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14325 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14326 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14327 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14328 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14329 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14330 (Qphonetic): New symbols.
14331 (syms_of_w32font): Initialize them.
14332 (font_supported_scripts): Use them.
14333 (w32font_list_family): List all charsets.
14334 (w32font_text_extents, recompute_cached_metrics): Fix metric
14336 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14337 Give opentype fonts their own format.
14338 (font_matches_spec): New arguments backend and logfont.
14339 Handle :otf spec for uniscribe backend.
14340 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14341 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14343 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14345 (globals_of_w32fns): Initialize uniscribe font backend.
14347 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14349 (w32uniscribe.$(O)): New file to build.
14350 (FONT_OBJ): Include w32uniscribe.$(O).
14351 (LIBS): Add uniscribe libraries.
14353 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14355 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14357 * callint.c (Vshift_select_mode): New var.
14358 (Finteractive): Document new ^ spec.
14359 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14362 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14363 (command_loop_1): Avoid running the direct display versions of
14364 forward-char and backward-char if shift-selection may occur.
14365 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14366 shift-translation takes place.
14368 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14369 avoid clobbering by define-minor-mode.
14371 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14372 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14374 * syntax.c (Fforward_word): Add ^ interactive spec.
14376 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14377 (Fscroll_right): Add ^ interactive spec.
14379 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14381 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14383 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14385 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14387 2008-03-31 Juri Linkov <juri@jurta.org>
14389 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14391 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14393 * gtkutil.c (xg_set_geometry): Fix indentation.
14394 (xg_resize_outer_widget): Remove.
14395 (x_wm_size_hint_off): Fix indentation.
14396 (xg_frame_set_char_size): Call flush_and_sync after
14398 (x_wm_set_size_hint): Pass NULL as geometry window to
14399 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14400 Add menu bar and tool bar height to base height.
14401 (xg_update_frame_menubar, free_frame_menubar)
14402 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14403 (update_frame_tool_bar, free_frame_tool_bar):
14404 Change xg_resize_outer_widget to xg_frame_set_char_size.
14406 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14408 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14409 (Fdbus_call_method): New parameter TIMEOUT.
14410 (dbus-send-signal): Optimize UNGCPRO call.
14412 2008-03-29 Juri Linkov <juri@jurta.org>
14414 * window.c (Fdisplay_buffer): Move call to
14415 Vsplit_window_preferred_function out of conditions that check
14416 if window is eligible for vertical splitting.
14417 When Vsplit_window_preferred_function is non-nil, call it and use
14418 its non-nil return value as window. Otherwise, continue doing
14419 vertical splitting using Fsplit_window with arg horflag=nil.
14420 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14421 default value from `split-window' to nil.
14423 2008-03-29 Juri Linkov <juri@jurta.org>
14425 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14426 for interactive code letters 'b' and 'B'.
14428 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14430 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14433 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14435 * keyboard.c (pending_funcalls): New var.
14436 (timer_check): Run it.
14437 (syms_of_keyboard): Initialize it.
14438 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14439 (Vdelete_terminal_functions): New vars.
14440 (syms_of_terminal): Initialize them.
14441 (Fdelete_terminal): Run delete-terminal-functions.
14442 * xdisp.c (safe_eval): Rewrite.
14443 (safe_call2): New fun.
14444 * frame.c (Qdelete_frame_functions): New var.
14445 (syms_of_frame): Initialize it.
14446 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14447 * lisp.h (safe_call2, pending_funcalls): Declare.
14449 2008-03-28 Andreas Schwab <schwab@suse.de>
14451 * indent.c (Fmove_to_column): Move declaration before statements.
14453 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14455 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14456 (struct frame): Use bit fields for boolean vars.
14458 * process.c (server_accept_connection): Simplify naming.
14459 (emacs_get_tty_pgrp): Use SDATA.
14461 * coding.c (decode_coding_object): Fix last change.
14463 2008-03-27 Jason Rumney <jasonr@gnu.org>
14465 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14467 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14469 * charset.c (Fdefine_charset_internal): Change the way of
14470 registering charsets in Vcharset_order_list.
14471 (syms_of_charset): Make the charset `eight-bit' supplementary.
14473 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14475 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14476 operations, to avoid having the difference between pointers
14479 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14481 * indent.c (check_display_width): New fun.
14482 (scan_for_column): Use it.
14484 * data.c (syms_of_data): Mark most-positive-fixnum and
14485 most-negative-fixnum as constants.
14487 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14489 * indent.c (scan_for_column): Extract from current_column_1.
14490 Merge with the same code from Fmove_to_column.
14491 (current_column_1, Fmove_to_column): Use it.
14493 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14495 * keymap.c (map_keymap_internal): New fun.
14496 (map_keymap): Use it.
14497 (Fmap_keymap_internal): New fun.
14498 (Fmap_keymap): Remove left-out test from before make_save_value.
14500 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14502 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14505 * process.h (struct Lisp_Process): Remove filter_multibyte.
14506 * process.c (QCfilter_multibyte): Remove.
14507 (setup_process_coding_systems): Don't use filter_multibyte.
14508 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14509 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14510 (Fset_process_filter_multibyte): Change the coding-system to
14511 approximate the previous behavior.
14512 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14515 * coding.c (decode_coding_object): When not decoding into a buffer,
14516 obey the coding system's preference of (uni|multi)byte.
14518 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14520 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14521 every char is changed and has a different byte-length.
14522 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14523 Fix int -> EMACS_INT.
14525 2008-03-23 David Hansen <david.hansen@gmx.net>
14527 * dbusbind.c (xd_read_message): Remove extra copying of message
14528 strings. Check for NULL `interface' or `member'.
14530 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14532 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14533 cFileName a file name that includes `?' characters, use the 8+3
14534 alias in cAlternateFileName instead.
14536 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14538 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14540 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14542 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14543 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14544 work on current_buffer only instead (that was already the case
14545 for some of the code anyway).
14546 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14547 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14548 (SET_PT, SET_PT_BOTH): Adjust.
14549 * intervals.h (set_point, temp_set_point, set_point_both)
14550 (temp_set_point_both): Remove redundant declarations.
14552 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14554 * fileio.c (Finsert_file_contents):
14555 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14556 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14557 when buffer != current_buffer anyway.
14559 2008-03-20 Andreas Schwab <schwab@suse.de>
14561 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14564 2008-03-19 Jason Rumney <jasonr@gnu.org>
14566 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14567 (syms_of_w32fns): Initialize them.
14568 (HOURGLASS_ID): New constant.
14569 (x_window_to_frame): Don't check hourglass_window.
14570 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14571 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14572 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14573 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14574 Only change the cursor if hourglass is not active.
14575 (Fx_create_frame): Initialize frame's current_cursor.
14576 (hourglass_atimer): Remove.
14577 (hourglass_started): New function.
14578 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14579 (show_hourglass): Adapt to w32, changing argument to frame.
14581 * w32term.h (struct w32_output): Remove hourglass_window.
14582 Add current_cursor.
14584 * eval.c (call_debugger, Fsignal):
14585 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14586 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14587 (Fexecute_extended_command, cancel_hourglass_unwind):
14588 * minibuf.c (read_minibuf):
14589 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14591 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14593 * window.c (run_funs): New fun.
14594 (run_window_configuration_change_hook): Use it to run the buffer-local
14595 and the global part of the hook.
14597 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14598 (unwind_format_mode_line): Restore selected window.
14599 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14601 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14603 * editfns.c (Fchar_equal): Check they are valid characters.
14605 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14607 2008-03-17 Andreas Schwab <schwab@suse.de>
14609 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14612 * lisp.h (Fbuffer_list): Declare.
14614 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14616 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14617 handlebox_widget is != 0.
14619 2008-03-16 Juri Linkov <juri@jurta.org>
14621 * callint.c (Fcall_interactively): For interactive code letters
14622 'b' and 'B' put the buffer list into the list of default "future"
14623 values of the minibuffer.
14625 2008-03-16 Andreas Schwab <schwab@suse.de>
14627 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14630 * regex.c (re_match_2_internal): Correct matching of a charset
14631 against latin-1 characters.
14633 2008-03-16 Kenichi Handa <handa@m17n.org>
14635 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14636 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14637 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14638 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14639 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14640 CHAR_STRING_ADVANCE.
14641 (produce_chars): Fix for the case that the source and the
14642 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14643 instead of CHAR_STRING_ADVANCE.
14644 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14645 STRING_CHAR_ADVANCE.
14647 2008-03-15 Andreas Schwab <schwab@suse.de>
14649 * regex.c (re_match_2_internal): Correct matching of eight bit
14650 characters in unibyte strings.
14652 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14654 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14655 at end of range when it coincides with the end of the buffer.
14657 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14659 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14661 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14663 2008-03-14 Jason Rumney <jasonr@gnu.org>
14665 * editfns.c (initial_tz): New variable.
14666 (syms_of_editfns): Initialize it.
14667 (Fset_time_zone_rule): Set it when first called.
14668 Use it when TZSTRING is nil.
14670 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14671 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14672 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14673 (globals_of_w32fns): Initialize them.
14674 (compute_tip_xy): Use them to position tooltips.
14676 2008-03-14 Glenn Morris <rgm@gnu.org>
14678 * emacs.c (main): Revert previous change.
14679 (standard_args): Revert -internal-script back to -scriptload,
14680 and remove the long-option form.
14682 2008-03-13 Glenn Morris <rgm@gnu.org>
14684 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14685 Remove option -enable-font-backend.
14687 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14689 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14691 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14693 * xterm.c (x_connection_closed): For GTK: If this is the last
14694 terminal just exit without closing the display.
14696 2008-03-11 Jason Rumney <jasonr@gnu.org>
14698 * w32font.c (w32font_full_name): Use floor to round.
14700 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14702 * sound.c (alsa_configure): Declare vol at beginning of block.
14704 * fontset.c (Ffontset_info): Remove extra semicolon.
14706 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14708 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14709 size of resulting string.
14711 2008-03-10 Jason Rumney <jasonr@gnu.org>
14713 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14715 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14717 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14718 Don't pretend as if characters with display property haven't been
14719 consumed for string-replacing-string case.
14721 2008-03-08 Kim F. Storm <storm@cua.dk>
14723 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14724 (get_next_display_element, next_element_from_string)
14725 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14727 2008-03-08 Andreas Schwab <schwab@suse.de>
14729 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14731 2008-03-06 Jason Rumney <jasonr@gnu.org>
14733 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14734 when charset not specified. Only translate ANSI to unicode when
14735 font_type is truetype.
14736 (w32font_coverage_ok): New function.
14737 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14739 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14741 * lread.c (Fread_char): Resolve modifiers.
14742 (Fread_char_exclusive): Likewise.
14744 * character.c (char_resolve_modifier_mask): New function.
14745 (char_string): Use char_resolve_modifier_mask.
14746 (Fchar_resolve_modifiers): New function.
14747 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14750 2008-03-04 Jason Rumney <jasonr@gnu.org>
14752 * makefile.w32-in: Always include w32font.c in the build.
14753 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14755 2008-03-04 Andreas Schwab <schwab@suse.de>
14757 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14758 (versionclean): Likewise.
14760 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14762 * .cvsignore: Add oo.
14764 2008-03-03 Andreas Schwab <schwab@suse.de>
14766 * coding.c (decode_coding_object): Inhibit gap shrinking while
14769 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14771 * w32term.c: Remove unused include "gnu.h".
14772 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14774 * gnu.h: Rename to ...
14775 * emacs-icon.h: ... this.
14776 * xterm.c: Use emacs-icon.h instead of gnu.h.
14777 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14779 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14781 * w32font.c: Include math.h.
14783 2008-03-03 Jason Rumney <jasonr@gnu.org>
14785 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14786 Compute options separately.
14787 (w32font_open_internal): Set glyph_idx before caching metrics.
14789 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14790 Define if system headers don't.
14791 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14792 (w32font_encode_char): Don't declare here.
14794 * w32font.c (Quniscribe, QCformat): New symbols.
14795 (syms_of_w32font): Define them.
14796 (w32font_has_char): Indicate uncertainty.
14797 (w32font_encode_char): Encode as glyph point. Make static.
14798 (recompute_cached_metrics): New function.
14799 (w32font_open_internal): Use it. Set font to use glyph points
14800 initially. Set format based on type of font.
14801 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14802 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14803 on it. Set format based on information available here.
14804 (add_font_entity_to_list): Identify backend based on opentype_only.
14806 2008-03-02 Andreas Schwab <schwab@suse.de>
14808 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14810 * coding.c (decode_coding_big5, produce_chars):
14811 Fix typos in last change.
14813 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14817 2008-03-02 Kenichi Handa <handa@m17n.org>
14819 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14820 `dos', don't decode '\r' if that is the last in the source.
14821 (decode_coding_utf_16, decode_coding_emacs_mule)
14822 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14823 (decode_coding_raw_text, decode_coding_charset): Likewise.
14824 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14826 2008-03-01 Jason Rumney <jasonr@gnu.org>
14828 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14830 2008-03-01 Kim F. Storm <storm@cua.dk>
14832 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14834 2008-03-01 Jason Rumney <jasonr@gnu.org>
14836 * w32font.c (w32font_full_name): New function.
14837 (w32font_open_internal): Use it.
14839 2008-03-01 Kim F. Storm <storm@cua.dk>
14841 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14843 2008-03-01 Jason Rumney <jasonr@gnu.org>
14845 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14847 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14849 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14850 xg_frame_resized when the event is for the edit widget.
14852 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14854 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14856 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14857 operations on widgets here. Just set frame size if needed.
14858 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14859 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14860 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14862 (xg_create_tool_bar): Move attachment of the tool bar to
14863 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14864 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14866 2008-03-01 Jason Rumney <jasonr@gnu.org>
14868 * w32fns.c (w32_msg_pump): Disable debug code.
14870 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14872 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14874 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14876 * xdisp.c (next_overlay_string): Don't set
14877 overlay_strings_at_end_processed_p if we're currently reading from
14880 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14882 * xdisp.c (get_overlay_strings_1): Fix typo.
14884 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14886 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14888 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14890 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14892 * xdisp.c (display_mode_element): Cancel the previous change.
14893 (decode_mode_spec): Likewise.
14894 (handle_auto_composed_prop): Don't make composition if it->string
14897 2008-02-27 Kim F. Storm <storm@cua.dk>
14899 * lisp.h (GLYPH): Change type from int to struct with separate char
14900 and face_id members.
14901 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14902 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14903 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14904 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14905 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14906 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14907 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14908 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14909 handle new Lisp glyph code encoding, either an integer or a cons.
14911 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14912 (GLYPH_ALIAS): Delete.
14913 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14914 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14915 (GLYPH_FROM_CHAR): Replace macro by ...
14916 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14918 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14919 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14920 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14921 (GLYPH_INVALID_P): New macro.
14922 (spec_glyph_lookup_face): Update prototype.
14924 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14925 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14926 new glyph code encoding.
14927 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14928 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14930 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14931 Adapt to new glyph type and new glyph code encoding.
14933 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14935 * indent.c (current_column, current_column_1, Fmove_to_column)
14936 (compute_motion): Adapt to new glyph code encoding.
14938 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14940 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14942 * process.c (wait_reading_process_output): Check for window
14943 changes caused by timers.
14944 Suggested by Johan Bockgård.
14946 2008-02-27 Glenn Morris <rgm@gnu.org>
14948 * emacs.c (USAGE1): Add `--disable-font-backend'.
14950 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14952 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14953 is made to the buffer.
14955 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14957 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14958 (face_at_string_position):
14959 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14960 (face_at_string_position):
14961 * xdisp.c (display_string, next_overlay_change):
14962 * buffer.h (overlays_at):
14963 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14966 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14968 * editfns.c (Fformat): Doc fix.
14970 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14972 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14973 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14974 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14976 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14978 * buffer.c (Fbuffer_swap_text): New function.
14979 (syms_of_buffer): Defsubr it.
14981 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14983 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14985 2008-02-25 Jason Rumney <jasonr@gnu.org>
14987 * w32font.c (w32font_draw): Draw one character at a time when padding.
14989 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14991 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14992 Handle a nil arg. Use run_window_configuration_change_hook.
14993 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14994 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14995 Use run_window_configuration_change_hook.
14997 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14999 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15002 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15004 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15005 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15006 if the glyph in the font is zero pixel with.
15008 * dispextern.h (struct glyph_string): New member padding_p.
15010 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15012 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15014 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15016 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15018 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15020 2008-02-25 Jason Rumney <jasonr@gnu.org>
15022 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15024 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15026 Allow fine-grained image-cache flushing.
15027 * dispextern.h (struct image): Add `dependencies' field.
15028 (clear_image_caches): Change arg to Lisp_Object.
15029 * image.c (make_image): Initialize `dependencies' field.
15030 (clear_image_cache): Change arg to allow fine-grained flushing.
15031 Perform the flush even if image-cache-eviction-delay is nil.
15032 (clear_image_caches): Change arg to Lisp_Object.
15033 (Fclear_image_cache): Expand meaning of the argument.
15034 (mark_image): Mark `dependencies' field.
15035 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15036 (lface_hash): Use XHASH rather than XFASTINT.
15037 (face_at_buffer_position): Fix int -> EMACS_INT position.
15038 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15039 (select_frame_for_redisplay): Remove code duplication.
15040 (redisplay_internal): Adapt arg to call to clear_image_caches.
15042 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15047 * s/vms5-5.h: Remove, unused.
15053 * m/mips4.h: Remove files for obsolete systems.
15066 * s/usg5-3.h: Remove references to obsolete variables.
15068 * s/irix5-0.h: Remove, move all the contents ...
15069 * s/irix6-5.h: ... here. Simplify.
15070 * config.in: Regenerate.
15072 2008-02-24 Jason Rumney <jasonr@gnu.org>
15074 * w32term.c (x_draw_glyph_string_background): Clear the background
15075 manually when cleartype is in use.
15076 (x_draw_glyph_string_foreground): Draw text transparently when
15077 cleartype is in use.
15079 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15080 a font into it unless we have to.
15082 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15084 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15085 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
15087 2008-02-18 Jason Rumney <jasonr@gnu.org>
15089 * w32fns.c (Fw32_shell_execute): Encode parameters.
15091 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15093 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15095 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
15097 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15099 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15101 * xterm.c (x_set_offset): Don't change the gravity if
15102 CHANGE_GRAVITY is -1.
15104 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
15106 * fileio.c (auto_save_error_occurred): New var.
15107 (auto_save_error): Set it.
15108 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15111 2008-02-23 Eli Zaretskii <eliz@gnu.org>
15113 * w32.c (globals_of_w32): Add initializations for
15114 g_b_init_get_sid_sub_authority and
15115 g_b_init_get_sid_sub_authority_count.
15117 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15119 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15120 (font_parse_xlfd): Use them for sanity check.
15121 (Finternal_set_font_style_table): Make sure the table is bijective.
15123 Consolidate the image_cache to the terminal struct.
15124 * termhooks.h (P_): Remove redundant def.
15125 (struct terminal): New field `image_cache'.
15126 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15127 of FRAME_X_IMAGE_CACHE.
15128 * xterm.h (struct x_display_info): Remove image_cache field.
15129 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15130 * w32term.h (struct w32_display_info): Remove image_cache field.
15131 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15132 * macterm.h (struct mac_display_info): Remove image_cache field.
15133 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15134 * xterm.c (x_term_init):
15135 * w32term.c (w32_term_init):
15136 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15137 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15138 Remove declarations.
15139 (clear_image_caches, mark_image_cache): New declarations.
15140 * xfaces.c (clear_face_cache):
15141 * xdisp.c (redisplay_internal): Use clear_image_caches.
15142 * image.c (clear_image_cache): Don't check that a frame is on
15143 a window-system before checking if it shares the same cache.
15144 (clear_image_caches): New function.
15145 (Fclear_image_cache): Use it.
15146 (mark_image): Move from allo.c.
15147 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15148 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15149 (mark_object): Don't call mark_image_cache for frames.
15150 (mark_terminals): Call mark_image_cache.
15152 * lisp.h (Fdelete_terminal): Declare.
15154 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15155 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15156 wrong_type_argument.
15158 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15160 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15161 malayalam.el, and tamil.el. Add sinhala.el.
15163 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15165 * xterm.c (x_connection_closed): Consolidate identical tests.
15166 (x_delete_terminal): Don't crash if called via x_connection_closed.
15168 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15170 * xdisp.c (decode_mode_spec): New arg string.
15171 (display_mode_element): Adjust for the above change.
15173 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15175 * callint.c (Fcall_interactively): Use AREF.
15177 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15179 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15181 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15183 * xfns.c (Fx_show_tip): Set string to " " if empty.
15185 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15187 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15190 2008-02-17 Kenichi Handa <handa@m17n.org>
15192 * ftfont.c (ftfont_shape): Return Lispy number.
15194 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15196 (Finternal_set_font_selection_order): Call font_update_sort_order
15197 only when enable_font_backend is set.
15198 (realize_x_face): Set face->font_info to that of default face only
15199 when enable_font_backend is set.
15201 * xdisp.c (handle_composition_prop): Set it->c to the fist
15202 character of the composed region.
15203 (fill_composite_glyph_string): Set base_face->font_info to
15204 s->font_info. Get a face for ascii from base_face->ascii_face.
15205 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15206 with a face already decided.
15207 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15209 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15210 call font_prepare_composition unconditionally.
15212 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15214 * xterm.h (struct x_display_info): New member font.
15216 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15217 (x_set_mouse_face_gc, x_new_font): Likewise.
15218 (x_term_init): Setup display_info->font.
15219 (x_delete_terminal): Free display_info->font.
15221 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15223 * ftxfont.c (ftxfont_default_fid): Delete it.
15224 (ftxfont_open): Set xfont->fid to 0.
15225 (ftxfont_end_for_frame): Clear data specific to the frame and the
15228 * xftfont.c (xftfont_default_fid): Delete it.
15229 (xftfont_open): Set xfont->fid to 0.
15231 * fontset.c (FONTSET_OBJLIST): New macro.
15232 (fontset_find_font): Update font-object list of the fontset.
15233 (free_realized_fontset): New function.
15234 (free_face_fontset): Call free_realized_fontset.
15235 (Ffont_info): Call font_close_object only when enable_font_backend
15238 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15239 [HAVE_NTGUI]: Include w32term.h.
15240 [MAC_OS]: Include macterm.ch.
15241 (font_otf_ValueRecord): Use make_number.
15242 (font_finish_cache): Fix handling of reference count.
15243 (font_clear_cache): Update num_fonts.
15244 (font_open_entity): Update smallest_char_width and
15245 smallest_font_height of the frame.
15246 (font_close_object): Update num_fonts.
15247 (Fclear_font_cache): Fix finding the target cache data.
15249 2008-02-16 Glenn Morris <rgm@gnu.org>
15251 * fontset.c (Finternal_char_font): Fix compilation warning.
15253 2008-02-16 Eli Zaretskii <eliz@gnu.org>
15255 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15256 instead of char arrays. Enlarge the size of array passed to
15257 get_token_information.
15259 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15262 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15264 * .gdbinit: Don't set `args', it breaks gdb --args.
15266 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15268 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15269 within a narrowed buffer.
15271 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15273 * coding.c (decode_coding_object, encode_coding_object):
15274 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15276 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15278 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15280 (detect_coding_system):
15281 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15282 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15283 * insdel.c (insert_from_gap):
15284 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15285 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15286 (string_to_multibyte):
15287 * character.c (chars_in_text, multibyte_chars_in_text):
15288 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15290 * character.h (FETCH_STRING_CHAR_ADVANCE)
15291 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15292 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15293 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15295 * casefiddle.c (casify_region): Only call after-change and composition
15296 functions on the part of the region that was changed.
15298 * keyboard.c (read_avail_input):
15299 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15301 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15303 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15304 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15306 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
15308 * w32menu.c (push_submenu_start, push_submenu_end)
15309 (push_left_right_boundary, push_menu_pane, push_menu_item):
15310 * keyboard.c (read_key_sequence): Don't pass args with side effects
15311 to AREF, it fails when compiling with -DENABLE_CHECKING.
15313 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15315 * Makefile.in (${lispsource}international/charprop.el):
15316 Delete this target.
15318 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15321 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15323 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15325 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15327 * frame.c (Qnoelisp): New symbol.
15328 (syms_of_frame): Initialize it.
15329 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15330 harmless Elisp code, from a strong `force' from x_connection_closed.
15331 * frame.h (Qnoelisp): Declare.
15332 * xterm.c (x_connection_closed): Pass `noelisp'.
15334 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15335 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15336 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15337 rather than `int' for the type of `type'.
15339 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15341 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15343 * Makefile.in (GNUC): Remove support for gcc-1.x.
15345 2008-02-10 Richard Stallman <rms@gnu.org>
15347 * lisp.h (ASET): Use AREF, not ASLOT.
15349 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15351 * lisp.h (ASET): Check bounds.
15353 2008-02-10 Glenn Morris <rgm@gnu.org>
15355 * buffer.c (mode-name): Doc fix.
15357 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15374 * xterm.c: Remove code that deals with obsolete variables.
15376 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15378 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15379 nothing else needs it anymore.
15381 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15383 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15384 instead of unibyte_char_to_multibyte.
15386 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15388 * s/gnu-linux.h: Remove commented out code.
15390 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15392 * Makefile.in: Update what RMS says about using autoconf.
15393 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15394 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15395 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15396 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15398 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15400 * keymap.c (Fkey_description): Move side effect outside of macro call.
15402 * xfaces.c (Finternal_make_lisp_face):
15403 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15405 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15406 (syms_of_fontset): Use ASET.
15408 * fns.c (concat): Move side effect outside of macro call.
15409 (hash_clear): Use ASET.
15411 2008-02-08 Richard Stallman <rms@gnu.org>
15413 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15414 If FORCE, and frame has a surrogate minibuffer for another frame,
15415 delete the other frame first.
15417 2008-02-07 Timo Savola <timo.savola@iki.fi>
15419 * xterm.c (x_detect_focus_change): Handle embed client message.
15420 (handle_one_xevent): Ditto.
15421 (handle_one_xevent): If embedded and we get a button press/release,
15423 (xembed_set_info, xembed_send_message): New functions.
15424 (x_make_frame_visible): Call xembed_set_info if embedded.
15425 (x_make_frame_invisible): Call xembed_set_info if embedded.
15426 (x_term_init): Initialize Xatom_XEMBED.
15427 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15428 (x_iconify_frame): Ditto.
15430 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15431 (enum xembed_info, enum xembed_message, enum xembed_focus)
15432 (enum xembed_modifier, enum xembed_accelerator): New.
15433 (xembed_set_info, xembed_send_message): Declare.
15434 (FRAME_X_EMBEDDED_P): New.
15436 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15439 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15440 window ID of a frame.
15441 (x_window): Reparent frame if embedded.
15442 (Fx_create_frame): Don't set border width if embedded.
15444 * emacs.c (USAGE3): Add --parent-id.
15445 (standard_args): Ditto.
15447 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15449 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15451 2008-02-07 Jim Meyering <meyering@redhat.com>
15453 Use "do...while (0)", not "if (1)...else" in macro definitions.
15454 The latter provokes a warning from gcc about the empty else, when
15455 followed by ";". Also, without that trailing semicolon, it would
15456 silently swallow up any following statement.
15457 * syntax.h (SETUP_SYNTAX_TABLE)
15458 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15459 * buffer.h (DECODE_POSITION): Likewise.
15460 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15461 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15462 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15463 (FETCH_CHAR_ADVANCE): Likewise.
15464 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15466 2008-02-07 Jim Meyering <meyering@redhat.com>
15468 * lread.c [lint]: Don't include <sys/inode.h>.
15470 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15472 * xselect.c (x_handle_dnd_message):
15473 * xmenu.c (digest_single_submenu, xmenu_show):
15474 * xdisp.c (with_echo_area_buffer_unwind_data)
15475 (format_mode_line_unwind_data, unwind_format_mode_line)
15476 (display_menu_bar):
15477 * eval.c (Ffetch_bytecode):
15478 * doc.c (store_function_docstring):
15479 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15480 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15481 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15483 2008-02-07 Kenichi Handa <handa@m17n.org>
15485 * ftxfont.c (ftxfont_open): Don't set
15486 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15488 * ftfont.c (ftfont_open): Fix previous change.
15490 2008-02-06 Jason Rumney <jasonr@gnu.org>
15492 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15493 Use cached metrics for ASCII characters.
15494 (w32font_open_internal): Don't set font's owning_frame.
15495 Cache metrics for ASCII characters.
15497 * w32font.h (struct w32font_info): Add ascii_metrics.
15498 Remove owning_frame.
15500 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15502 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15505 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15507 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15509 * charset.c (syms_of_charset): Set QCtest and Qeq.
15511 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15513 * process.c (Fstart_process):
15514 * callproc.c (Fcall_process): Handle the case where
15515 Funhandled_file_name_directory returns nil.
15517 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15518 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15519 * font.c (check_gstring): Use them and AREF to access the vector before
15520 we know it's really a gstring.
15521 (Ffont_shape_text): Fix typo.
15522 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15524 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15527 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15529 2008-02-05 Jason Rumney <jasonr@gnu.org>
15531 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15532 Set smallest_font_height and smallest_char_width in display info.
15534 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15536 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15538 2008-02-05 Miles Bader <miles@gnu.org>
15540 * xfaces.c (get_lface_attributes, merge_named_face)
15541 (lookup_named_face, lookup_derived_face, realize_named_face):
15542 Revert 2008-02-01 change by cyd@stupidchicken.com.
15544 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15546 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15548 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15550 2008-02-04 Jason Rumney <jasonr@gnu.org>
15552 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15554 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15556 2008-02-03 Jason Rumney <jasonr@gnu.org>
15558 * makefile.w32-in (OBJ1): Include font.o here.
15559 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15561 2008-02-02 Jason Rumney <jasonr@gnu.org>
15563 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15565 2008-02-01 Jason Rumney <jasonr@gnu.org>
15567 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15569 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15571 2008-02-01 Andreas Schwab <schwab@suse.de>
15573 * Makefile.in (shortlisp, lisp): Update for rename of
15574 ../lisp/language/myanmar.el.
15576 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15578 * xfaces.c (get_lface_attributes): Delete function.
15579 (merge_named_face, lookup_named_face, lookup_derived_face)
15580 (realize_named_face): Call lface_from_face_name directly, and use
15581 the fact that merge_face_vectors does not alter its FROM argument.
15583 2008-02-01 Jason Rumney <jasonr@gnu.org>
15585 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15586 input in the default locale. Handle non-Unicode multibyte input.
15588 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15590 * fontset.c (reorder_font_vector): Exclude nil elements from the
15591 font group. Don't try multiple fonts.
15592 (fontset_font): Adjust for the above change.
15593 (Finternal_char_font): Return nil if the found font doesn't
15594 contain the character ch.
15596 * Makefile.in (lisp, shortlisp): Add cham.el.
15598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15600 * font.h (FONTP): Make it return 1 also for a font-object.
15602 * .gdbinit (xfontset): New function.
15604 * font.c (font_find_for_lface): Check if the character C is
15605 supported or not only for the first font.
15607 * fontset.c (reorder_font_vector): Fix typo.
15608 (fontset_find_font): Don't add a font-spec specifying a script.
15609 Use 0 (not Qt) for the indication of empty font-group. Change the
15610 format of RFONT-DEF. Return Qt if no font in the font-group
15611 support the character.
15612 (fontset_font): Adjust for the above change. If no font was
15613 found the character, remember that.
15614 (face_for_char): Adjust for the change of RFONT-DEF.
15615 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15616 no font for the target.
15617 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15619 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15621 * font.c (font_load_for_face): Handle the case that the font in
15622 face->lface is a string.
15624 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15626 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15628 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15631 Fix previous change. If the frame is not on a window system,
15634 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15636 * coding.c (decode_coding_object, encode_coding_object): Adjust
15637 marker positions after conversion.
15639 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15641 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15643 * font.c (font_find_for_lface): Fix the handling of the return
15644 value of font_has_char.
15645 (Ffont_shape_text): Fix previous change.
15647 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15648 (fontset_ref_and_range): Delete it.
15649 (fontset_find_font): Call char_table_ref_and_range instead of
15650 FONTSET_REF_AND_RANGE.
15651 (make_fontset): Don't setup font groups of Latin here.
15652 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15653 (new_fontset_from_font): Make the specified font the default for
15654 all Latin characters.
15656 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15658 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15659 is on a window system before accessing the fontset of the frame.
15661 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15663 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15665 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15666 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15668 * font.c (Ffont_shape_text): If the font driver doesn't have a
15669 shaper function, make zero-width glyphs to have at least one-pixel
15670 width. Fix setting of `to' field of glyphs.
15672 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15674 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15677 * font.h (struct font_driver): Improve docstring of member `shape'.
15679 2008-02-01 Kenichi Handa <handa@m17n.org>
15681 * composite.c (syms_of_composite): Fix docstring of
15682 auto-composition-function.
15684 * font.h (LGLYPH_SIZE): New macro.
15686 * font.c (Ffont_fill_gstring): Stop filling when a character not
15687 supported by the font is found.
15688 (Ffont_shape_text): When a shape callback function returns nil,
15689 try at most two more times with larger gstring.
15690 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15692 * xdisp.c (handle_auto_composed_prop): Change the argument to
15693 auto-composition-function.
15695 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15696 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15697 Lispy glyph and store it in the lgstring.
15699 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15701 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15703 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15705 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15707 * fontset.c (Vfont_encoding_charset_alist): New variable.
15708 (syms_of_fontset): DEFVAR it.
15709 (reorder_font_vector, fontset_find_font): Optimize for the case of
15710 no need of reordering.
15711 (face_for_char): Map the charset property by
15712 Vfont_encoding_charset_alist.
15714 2008-02-01 Jason Rumney <jasonr@gnu.org>
15716 * w32font.c (logfonts_match): Don't check adstyle here.
15717 (font_matches_spec): Check here against physical font instead.
15718 (add_font_entity_to_list): Avoid some substitutions.
15720 * font.c (font_parse_fcname): Default weight and slant to normal.
15721 (font_score): Prefer normal fonts if weight or slant unspecified.
15722 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15723 match freetype scores.
15725 2008-02-01 Jason Rumney <jasonr@gnu.org>
15727 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15728 font, as it may have been deleted.
15729 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15730 most common hyphenless variation.
15731 (logfonts_match): Check generic family.
15732 (font_matches_spec): Don't check generic family here.
15733 (fill_in_logfont): Set generic family based on adstyle.
15735 * w32font.h (w32font_get_cache): Update declaration.
15737 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15739 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15741 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15742 If none of the new drivers are available, call font_update_drivers
15743 with the old drivers.
15745 * w32font.c (w32font_get_cache): Adjust the argument type.
15747 * xfont.c (xfont_get_cache): Adjust the argument type.
15749 * font.h (struct font_driver): Change argument type of get_cache.
15751 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15753 * font.c (Ffont_get): Fix arguments to Fassoc.
15754 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15755 (font_clear_cache): New function.
15756 (font_list_entities, font_matching_entity): Use font_get_cache.
15757 (font_update_drivers): Call font_clear_cache when finishing a driver.
15759 * fontset.c (fontset_find_font): Fix previous change.
15761 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15763 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15764 dpyinfo->font_table.
15765 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15766 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15768 * font.c (font_at): Handle the case that the arg C is negative.
15769 Handle the unibyte case.
15770 (Ffont_at): Call font_at with the arg C -1.
15772 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15773 the position here, and call font_at with the arg C -1.
15774 Don't check the range of the existing composition at the point.
15776 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15778 * fontset.c (fontset_add): New args charset_id and family.
15780 (load_font_get_repertory, fontset_find_font): Assume that
15781 font_spec is always a font-spec object.
15782 (Fset_fontset_font): Always store a font-spec object in a fontset.
15784 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15785 instead of get_property_and_range.
15787 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15789 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15790 (xftfont_open): Don't keep locking face.
15791 (xftfont_close): Don't unlock face.
15792 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15794 * fontset.c (fontset_find_font): Don't prefer a font of
15795 supplementary charset.
15797 2008-02-01 Kenichi Handa <handa@m17n.org>
15799 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15800 script, langsys_tag to langsys, new member script.
15801 (OTF_TAG_STR): Terminate by '\0'.
15802 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15803 listing to the script specified in that property. Fix arg to
15804 OTF_check_features.
15806 2008-02-01 Jason Rumney <jasonr@gnu.org>
15808 * w32font.h: New file.
15810 * w32font.c: Include it.
15811 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15812 (w32font_open): Set owning_frame.
15813 (w32font_text_extents): Use owning_frame.
15814 (struct font_callback_data): Add opentype_only field.
15815 (add_font_entity_to_list): Use it to filter fonts.
15816 Don't check against full name.
15817 (w32font_list_internal): New function.
15818 (w32font_list): Use it.
15819 (w32font_match_internal): New function.
15820 (w32font_match): Use it.
15821 (w32font_open_internal): New function.
15822 (w32font_open): Use it.
15823 (w32font_get_cache, w32font_close, w32font_has_char)
15824 (w32font_encode_char, w32font_text_extents, w32font_draw):
15827 * makefile.w32-in (w32font.o): Depend on w32font.h.
15829 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15831 * charset.c (Fdefine_charset_internal): Record a supplementary
15832 charset at the tail of Vcharset_order_list.
15834 * font.c (Ffont_shape_text): Fix the return value.
15836 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15838 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15840 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15842 * ftfont.c (struct OpenTypeSpec): New struct.
15843 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15844 (ftfont_get_open_type_spec): New function.
15845 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15847 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15849 2008-02-01 Jason Rumney <jasonr@gnu.org>
15851 * w32font.c (add_font_entity_to_list): Compare only the beginning
15854 2008-02-01 Kenichi Handa <handa@m17n.org>
15856 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15857 Never return HANDLED_RECOMPUTE_PROPS.
15859 2008-02-01 Kenichi Handa <handa@m17n.org>
15861 * font.c (font_gstring_produce): Delete it.
15863 * composite.h (COMPOSITION_METHOD):
15864 Handle COMPOSITION_WITH_GLYPH_STRING.
15866 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15868 * xfont.c (Qx): Delete.
15869 (syms_of_xfont): Don't initialize Qx.
15871 * composite.h (enum composition_method):
15872 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15876 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15877 (choose_face_font): Accept new form of font-spec.
15879 * frame.h (font_driver_list): Declare it unconditionally.
15880 (struct frame): Define members font_driver_list and font_data_list
15883 * fontset.c: Include "font.h" unconditionally.
15884 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15885 (Fset_fontset_font): Accept a font-spec object.
15887 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15888 PIXEL_SIZE part a wild card.
15890 * dispextern.h (struct glyph_string): Define members clip and
15891 num_clips unconditionally.
15892 (struct face): Define members font_info and extra unconditionally.
15894 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15895 ftfont_info only when HAVE_LIBOTF is defined.
15897 2008-02-01 Andreas Schwab <schwab@suse.de>
15899 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15902 2008-02-01 Jason Rumney <jasonr@gnu.org>
15904 * w32font.c (w32font_driver): Add new fields.
15906 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15908 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15909 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15910 (LIBES): Add @M17N_FLT_CFLAGS@.
15912 * composite.c (compose_text): Don't treat the new style
15913 composition specially.
15915 * emacs.c (main): Call syms_of_font unconditionally.
15917 * font.h (FONT_ENTITY_NOT_LOADABLE)
15918 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15919 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15920 (struct font_driver): New member shape.
15921 (font_registry_charsets): Extern it.
15922 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15923 (font_otf_capability, font_drive_otf): Delete their externs.
15925 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15926 (font_charset_alist, font_registry_charsets): Move from xfont.c
15928 (font_prop_validate_otf): New function.
15929 (font_property_table): Register it for QCotf.
15930 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15931 (font_drive_otf): Delete.
15932 (font_prepare_composition): New arg F. Adjust for the change of
15934 (font_find_for_lface): New arg C.
15935 (font_load_for_face): Adjust for the change of font_find_for_lface.
15936 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15938 (Ffont_shape_text): New function.
15939 (Fopen_font): If the font size is not given, use 12-pixel.
15940 (Ffont_at): New arg STRING.
15941 (syms_of_font): Initalize font_charset_alist.
15942 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15945 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15946 fonts of the same font-spec. Change the format of RFONT-DEF.
15947 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15948 Adjust for the change of RFONT-DEF.
15949 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15951 * ftfont.h: New file.
15953 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15954 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15955 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15956 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15957 font_otf_capability and font_drive_otf, set ftfont_shape.
15958 (ftfont_list): Adjust for the change of :otf property value.
15959 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15960 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15961 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15962 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15963 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15964 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15966 * w32term.c (x_draw_composite_glyph_string_foreground):
15967 Adjust for the change of lispy gstring.
15969 * xdisp.c (handle_composition_prop): Adjust for the change of
15970 lispy gstring. Call a function for auto-composition with the
15971 third arg it->window.
15972 (fill_composite_glyph_string): Adjust for the change of lispy string.
15973 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15975 * xfaces.c (set_font_frame_param): Adjust for the change of
15976 font_find_for_lface.
15978 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15979 (xfont_registry_charsets): Likewise. Change caller.
15980 (syms_of_xfont): Don't handle x_font_charset_alist.
15982 * xftfont.c: Include "ftfont.h".
15983 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15984 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15985 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15986 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15987 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15988 Set xftfont_driver.shape to xftfont_shape.
15990 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15991 the change of lispy gstring.
15993 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15995 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15997 2008-02-01 Jason Rumney <jasonr@gnu.org>
15999 * w32font.c (w32font_draw): Fill background manually.
16001 2008-02-01 Jason Rumney <jasonr@gnu.org>
16003 * font.c (Qfontp): Remove unused symbol.
16004 (QCantialias): New symbol.
16005 (syms_of_font): Define it.
16006 (font_property_table): Set a validator for QCantialias.
16008 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16009 Define if not already.
16010 (QCfamily): Share with xfaces.c.
16011 (Qstandard, Qsubpixel, Qnatural): New symbols.
16012 (syms_of_w32font): Define them. Don't define QCfamily here.
16013 (w32_antialias_type, lispy_antialias_type): New functions.
16014 (w32_enumfont_pattern_entity): New arg requested_font.
16015 Set antialias parameter if non-default was requested.
16016 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16018 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16020 * lread.c (read1): Undo the previous change.
16022 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16024 * frame.c (Fdelete_frame): Call font_update_drivers only when
16025 USE_FONT_BACKEND is defined.
16027 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16029 * font.h (struct font_bitmap): New member bits_per_pixel.
16030 (struct font_driver): New members start_for_frame and end_for_frame.
16031 (struct font_data_list): New struct.
16032 (font_put_frame_data, font_get_frame_data): Extern them.
16034 * frame.h (struct frame): New member font_data_list.
16036 * font.c (font_update_drivers): Call driver->start_for_frame and
16037 driver->end_for_frame at proper timings.
16038 (font_put_frame_data, font_get_frame_data): New functions.
16039 (Ffont_spec): Add usage in the docstring.
16041 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16042 (Fdelete_frame): Call font_update_drivers.
16044 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16045 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16046 (xftfont_get_xft_draw): New function.
16047 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16048 (xftfont_end_for_frame): New function.
16049 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16051 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16052 Change argument. Cache GCs in the per-frame data.
16053 (struct ftxfont_frame_data): New struct.
16054 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16055 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16056 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16057 (ftxfont_end_for_frame): New function.
16058 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16060 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16062 2008-02-01 Kenichi Handa <handa@m17n.org>
16064 * xselect.c (Vselection_coding_system)
16065 (Vnext_selection_coding_system): Delete them.
16066 (syms_of_xselect): Don't declare selection-coding-system and
16067 next-selection-coding-system. They are declared in select.el.
16069 2008-02-01 Jason Rumney <jasonr@gnu.org>
16071 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16073 * w32fns.c: Include imm.h.
16074 (get_composition_string_fn, get_ime_context_fn): New optional
16076 (globals_of_w32fns): Load them from imm32.dll.
16077 (ignore_ime_char): New flag.
16078 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16079 WM_IME_ENDCOMPOSITION messages.
16081 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16082 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16084 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16086 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16087 (READCHAR_REPORT_MULTIBYTE): New macro.
16088 (readchar): New 2nd arg MULTIBYTE.
16089 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16090 Make symbol's name multibyte according to the multibyteness of the
16093 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16095 * xfaces.c (face_for_overlay_string): Call lookup_face with
16096 correct arguments (fix of synching with the trunk).
16098 2008-02-01 Kenichi Handa <handa@m17n.org>
16100 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16101 (font_prop_validate_non_neg, font_prop_validate_spacing):
16102 Delete argument prop_index.
16103 (font_property_table): Change arguments to validater. Change Callers.
16104 (font_lispy_object): Delete.
16105 (font_at): Use font_find_object instead fo font_lispy_object.
16107 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16109 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16112 2008-02-01 Jason Rumney <jasonr@gnu.org>
16114 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16115 (font_matches_spec): Remove debug output.
16116 (add_font_entity_to_list): Avoid using substituted fonts.
16118 2008-02-01 Jason Rumney <jasonr@gnu.org>
16120 * doc.c (Fsnarf_documentation):
16121 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16123 2008-02-01 Miles Bader <miles@gnu.org>
16125 * dispextern.h (struct glyph_row): Only define "clip" field if
16126 HAVE_WINDOW_SYSTEM is defined.
16128 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16130 Fix up multi-tty merge.
16132 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16135 * xfaces.c (free_realized_face, clear_face_gcs):
16136 Include font_done_for_face in the input_blocked section, just in case.
16138 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16139 (get_char_face_and_encoding): Undo last change and remove the *other*
16140 duplicate definition (i.e. keep the one that's better scoped and that
16141 includes code for the font-backend).
16143 * terminal.c (create_terminal): Default keyboard_coding to
16144 `no-conversion' and terminal_coding to `undecided'.
16146 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16148 * fontset.c (free_realized_fontsets): Check that the table entry does
16149 contain a fontset before trying to compare it to `base'.
16151 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16152 syms_of_charset, and syms_of_coding earlier because init_window_once
16153 now needs Vcoding_system_hash_table to be setup.
16155 * coding.h (default_buffer_file_coding): Remove.
16157 * coding.c (default_buffer_file_coding): Remove.
16158 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16159 than ->symbol, and use the terminal-local coding system.
16160 (syms_of_coding): Don't setup the coding-systems that are not
16162 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16164 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16165 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16167 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16168 in chartab.c and were re-added here by mistake.
16169 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16171 * doc.c (Fsnarf_documentation):
16172 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16175 * ChangeLog.10: Add mistakenly removed entry.
16177 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16179 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16181 2008-02-01 Miles Bader <miles@gnu.org>
16183 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16184 Add extra args to FACE_FOR_CHAR.
16186 2008-02-01 Kenichi Handa <handa@m17n.org>
16188 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16191 * chartab.c (map_sub_char_table, map_char_table): If the range
16192 contains just one character, call the function with that character
16193 even if the depth is not 3.
16195 2008-02-01 Jason Rumney <jasonr@gnu.org>
16197 * w32font.c (w32font_text_extents): Calculate metrics for the
16200 2008-02-01 Jason Rumney <jasonr@gnu.org>
16202 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16204 2008-02-01 Jason Rumney <jasonr@gnu.org>
16206 * w32term.c (x_set_glyph_string_clipping): Use
16207 get_glyph_string_clip_rects.
16208 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16209 Adjust for the change of struct glyph_string.
16211 * w32font.c (w32font_draw): Do clipping here.
16213 2008-02-01 Kenichi Handa <handa@m17n.org>
16215 * xftfont.c (xftfont_draw): Adjust for the change of struct
16218 * xterm.c (x_set_glyph_string_clipping): Use
16219 get_glyph_string_clip_rects.
16220 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16221 Adjust for the change of struct glyph_string.
16223 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16224 the resulting clip(s}.
16225 (expose_overlaps): Add arg r. Change callers. Set it to
16226 row->clip temporarily.
16227 (expose_window): Redraw rows overlapping the exposed area.
16229 * dispextern.h (struct glyph_row): New member clip.
16230 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16231 clip_height, new member clip, and num_clips.
16233 2008-02-01 Kenichi Handa <handa@m17n.org>
16235 * data.c (Fchar_or_string_p): Fix docstring.
16237 2008-02-01 Kenichi Handa <handa@m17n.org>
16239 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16240 create a temporary XftDraw object.
16242 2008-02-01 Kenichi Handa <handa@m17n.org>
16244 * font.c (Ffontp): Fix docstring.
16246 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16247 strong evidence of ISO-2022.
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16251 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16252 SYNTAX_ENTRY_FOLLOW_PARENT.
16254 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16256 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16258 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16259 Update to the new type of weak_hash_tables and next_weak.
16261 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16262 a plain C pointer to Lisp_Hash_Table.
16264 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16265 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16266 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16267 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16268 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16269 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16270 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16271 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16272 (GC_EQ): Remove since they've been identical to their non-GC_
16273 alter-egos ever since the markbit was eradicated.
16292 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16294 2008-02-01 Kenichi Handa <handa@m17n.org>
16296 * chartab.c (map_sub_char_table): Make it work for the top-level
16297 char-table. Fix handling of parent char-table.
16298 (map_char_table): Adjust for the above change.
16300 2008-02-01 Jason Rumney <jasonr@gnu.org>
16302 * w32font.c (Qgdi): Rename from Qw32.
16304 2008-02-01 Jason Rumney <jasonr@gnu.org>
16306 * w32bdf.c (get_quoted_string): Make function static.
16308 2008-02-01 Kenichi Handa <handa@m17n.org>
16310 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16311 bigger ascent and descent than those of the font, use them as
16312 font's ascent and descent.
16314 2008-02-01 Kenichi Handa <handa@m17n.org>
16316 * Makefile.in (${lispsource}international/charprop.el): Move this
16317 target within "#ifdef HAVE_UNIDATA" and "#endif".
16319 2008-02-01 Kenichi Handa <handa@m17n.org>
16321 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16322 (shortlisp): Add ../lisp/language/tai-viet.el.
16324 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16326 * Makefile.in (${lispsource}international/charprop.el): Depend on
16329 2008-02-01 Jason Rumney <jasonr@gnu.org>
16331 * w32font.c (w32font_close): Delete the GDI font object.
16333 * w32menu.c: Include character.h.
16335 * w32proc.c: Likewise.
16337 * w32select.c: Likewise.
16339 * makefile.w32-in (w32proc.o): Depend on character.h.
16341 2008-02-01 Jason Rumney <jasonr@gnu.org>
16343 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16345 * w32menu.c (syms_of_w32menu): Likewise.
16347 * w32proc.c (syms_of_ntproc): Likewise.
16349 * w32select.c (syms_of_w32select): Likewise.
16351 * w32term.c (syms_of_w32term): Likewise.
16353 2008-02-01 Jason Rumney <jasonr@gnu.org>
16355 * w32font.c (w32font_draw): Delete brush after using it.
16357 2008-02-01 Jason Rumney <jasonr@gnu.org>
16359 * w32font.c (w32font_open): Don't set font_idx.
16360 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16362 (w32font_draw): Fill background explicitly.
16364 2008-02-01 Jason Rumney <jasonr@gnu.org>
16366 * w32term.c (w32_initialize): Don't call w32font_initialize.
16368 * w32font.c (w32font_info): Remove subranges.
16369 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16370 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16371 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16372 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16373 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16374 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16375 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16376 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16377 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16378 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16380 (font_callback_data): New struct.
16381 (w32font_list, w32font_match): Use it.
16382 (w32font_open): Don't populate subranges.
16383 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16384 (w32font_encode_char): Always return unicode code-point as-is.
16385 (w32font_text_extents): Supply a transformation matrix to
16386 GetGlyphOutline. Never look up by glyph index. Avoid looping
16387 twice. Use unicode version of GetTexExtentPoint32 instead of
16388 glyph index version.
16389 (set_fonts_frame): Remove.
16390 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16391 set frame parameter. Use backward compatible fake foundries.
16392 Save generic family in extra slot under QCfamily. Make width slot
16393 constant. Save QCspacing value. Save list of scripts instead of
16395 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16396 (add_font_entity_to_list): Use font_callback_data struct. Filter
16398 (add_one_font_entity_to_list): Use font_callback_data struct.
16399 (w32_registry): Default to iso10646_1.
16400 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16401 string font registries. Don't fill in font name if it is a generic
16402 family name, fill family instead. Use spacing, family and script
16403 extra info to fill pitch, family and charset fields.
16404 (list_all_matching_fonts): Use font_callback_data struct.
16405 (unicode_range_for_char): Remove.
16406 (font_supported_scripts): New function.
16407 (w32font_initialize): Remove.
16408 (syms_of_w32font): Update which symbols are defined.
16410 2008-02-01 Jason Rumney <jasonr@gnu.org>
16412 * font.c (font_pixel_size): Reverse assq_no_quit args.
16414 * w32term.h (FONT_WIDTH): Report max width, not average.
16415 (FONT_MAX_WIDTH): Remove.
16416 (FONT_AVG_WIDTH): New macro.
16418 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16419 redefinition of FONT_WIDTH.
16421 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16422 (w32_cache_char_metrics): Use FONT_WIDTH.
16424 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16426 2008-02-01 Jason Rumney <jasonr@gnu.org>
16428 * w32font.c (w32font_open): Make lfHeight negative.
16430 * w32fns.c (x_default_font_parameter): Use new style font name.
16431 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16433 2008-02-01 Jason Rumney <jasonr@gnu.org>
16435 * w32font.c (QCsubranges): New symbol.
16436 (w32font_open, w32font_has_char): Get subranges from subproperty
16438 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16439 (syms_of_w32font): Define :subranges symbol.
16441 * font.c (font_put_extra): Expose externally.
16443 * font.h (font_put_extra): Move declaration from font.c.
16445 * font.c (Ffont_get): Use font driver to determine otf capability.
16446 (adjust_anchor): Check if driver defines anchor_point before using.
16448 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16449 (w32font_draw): Use options.
16450 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16451 Fix detection of truetype fonts.
16452 (registry_to_w32_charset): Handle charsets other than iso8859-1
16453 expressed as lisp symbols.
16454 (w32_registry): Express charset as lisp symbol.
16455 (fill_in_logfont): Reverse pixel and point height logic.
16456 Don't set width here. Set quality to default.
16458 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16459 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16461 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16462 Remove redundant loop and allocation.
16464 * makefile.w32-in (font.o, w32font.o): New objects.
16465 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16466 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16468 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16469 STORE_XCHARB a valid l-value.
16471 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16472 calculations for non-Truetype fonts.
16473 (x_draw_glyph_string): Sync with xterm.c.
16474 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16475 Remove redundant code.
16476 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16478 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16479 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16481 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16482 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16484 * w32font.c: New file for w32 font backend.
16486 2008-02-01 Kenichi Handa <handa@m17n.org>
16488 * term.c: Don't include "buffer.h" twice.
16490 2008-02-01 Kenichi Handa <handa@m17n.org>
16492 * character.c (Funibyte_string): New function.
16493 (syms_of_character): Defsubr it.
16495 2008-02-01 Jason Rumney <jasonr@gnu.org>
16497 * w32term.c [USE_FONT_BACKEND]:
16498 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16499 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16500 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16501 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16502 (x_free_frame_resources): Sync with xterm.c.
16504 2008-02-01 Andreas Schwab <schwab@suse.de>
16506 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16509 2008-02-01 Kenichi Handa <handa@m17n.org>
16511 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16513 2008-02-01 Kenichi Handa <handa@m17n.org>
16515 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16516 font_otf_gpos, add font_drive_otf.
16518 * fontset.c (fontset_find_font): Pay attention to font size
16519 specified for a font.
16520 (reorder_font_vector): Check contents of font_def.
16522 * font.c (struct otf_list): Delete it.
16523 (otf_list): Make it a lisp variable.
16524 (otf_open): Use lispy otf_list.
16525 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16526 (check_otf_features): New function.
16527 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16529 (font_drive_otf): New function merging font_otf_gsub and
16531 (font_open_for_lface): New arg spec. Change argument order.
16532 (font_load_for_face): Adjust for the change of font_open_for_lface.
16533 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16535 (syms_of_font): Staticpro otf_list. Delete defsubr of
16536 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16538 * xfaces.c (set_font_frame_param): Adjust for the change of
16539 font_open_for_lface.
16541 * font.h (font_open_for_lface): Adjust prototype.
16542 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16544 (font_otf_gsub, font_otf_gpos): Delete externs.
16545 (font_drive_otf): Extern it.
16547 2008-02-01 Kenichi Handa <handa@m17n.org>
16549 * font.c (font_at): If the window W is not on a window system,
16552 * coding.c (produce_chars, encode_coding): Don't call
16553 insert_from_gap if no characters to produce.
16555 2008-02-01 Kenichi Handa <handa@m17n.org>
16557 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16560 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16562 2008-02-01 Miles Bader <miles@gnu.org>
16564 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16565 Parse "--disable-font-backend" option.
16566 (standard_args): Add "--disable-font-backend" option.
16568 2008-02-01 Kenichi Handa <handa@m17n.org>
16570 * fontset.c (fontset_find_font): New function.
16571 (fontset_font): Use fontset_find_font.
16572 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16573 Register the specified font for all Latin characters.
16574 (new_fontset_from_font): Register the specified font for all Latin
16576 (dump_fontset): For a realized fontset, include the base fontset
16577 name in the returned vector.
16579 2008-02-01 Kenichi Handa <handa@m17n.org>
16581 * character.h (CHAR_STRING): Cast C to unsigned on calling
16584 * character.c (char_string): Type of arg C changed to unsigned.
16585 Signal an error if C is an invalid character code.
16587 * editfns.c (general_insert_function, Fchar_to_string):
16588 Use CHARACTERP, not INTEGERP.
16590 2008-02-01 Kenichi Handa <handa@m17n.org>
16592 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16593 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16595 * regex.c (analyse_first): Fix for multibyte characters in "case
16596 charset:" and "case categoryspec:".
16598 2008-02-01 Andreas Schwab <schwab@suse.de>
16600 * Makefile.in (LIBES): Move standard libraries to the end.
16602 2008-02-01 Kenichi Handa <handa@m17n.org>
16604 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16605 nonzero, don't shrink the buffer nextb.
16607 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16609 * coding.c (coding_alloc_by_making_gap): New arg offset.
16610 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16612 (decode_coding_iso_2022): Update coding->safe_charsets.
16613 (decode_coding_gap): Temporarily set
16614 current_buffer->text->inhibit_shrinking to 1.
16616 2008-02-01 Kenichi Handa <handa@m17n.org>
16618 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16619 indexing into elements of s->cmp and s->char2b.
16621 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16623 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16625 2008-02-01 Kenichi Handa <handa@m17n.org>
16627 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16628 target_multibyte instead of multibyte.
16629 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16630 (bcmp_translate): Change the argument name from multibyte to
16633 2008-02-01 Kenichi Handa <handa@m17n.org>
16635 These changes are to compile a regexp into a pattern that can be
16636 used both for multibyte and unibyte targets.
16638 * Makefile.in (search.o): Depend on charset.h.
16640 * character.c (multibyte_char_to_unibyte_safe): New function.
16642 * search.c: Include "charset.h".
16643 (compile_pattern_1): Delete argument multibyte. Don't set
16644 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16645 (compile_pattern): Don't compare cp->buf.target_multibyte.
16646 Compare cp->buf.charset_unibyte.
16647 (compile_pattern): Set cp->buf.target_multibyte.
16649 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16651 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16653 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16654 multibyte. Change callers.
16655 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16656 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16657 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16658 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16659 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16660 (regex_compile): Make the compiled pattern usable both for
16661 multibyte and unibyte targets.
16662 (analyse_first): Make the fastmap usable both for multibyte and
16664 (TRANSLATE_VIA_MULTIBYTE): Delete.
16665 (re_match_2_internal): Pay attention to the case that the
16666 multibyteness of bufp and target may be different.
16668 2008-02-01 Kenichi Handa <handa@m17n.org>
16670 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16671 empty box occupy at least one column width.
16673 2008-02-01 Miles Bader <miles@gnu.org>
16675 * Makefile.in: Remove redundant HAVE_XFT clause.
16677 2008-02-01 Kenichi Handa <handa@m17n.org>
16679 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16681 2008-02-01 Kenichi Handa <handa@m17n.org>
16683 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16686 2008-02-01 Kenichi Handa <handa@m17n.org>
16688 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16690 2008-02-01 Kenichi Handa <handa@m17n.org>
16692 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16694 2008-02-01 Kenichi Handa <handa@m17n.org>
16696 * search.c (simple_search): Fix previous change.
16698 2008-02-01 Kenichi Handa <handa@m17n.org>
16700 * xftfont.c (ftfont_font_format): Extern declaration.
16702 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16704 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16705 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16707 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16708 (ftfont_font_format): Fix previous change.
16710 * font.h (Ffont_xlfd_name): EXFUN it.
16712 * font.c (font_parse_xlfd): Fix the array size of `f'.
16713 (register_font_driver): Use EQ to compare driver->type.
16715 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16716 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16717 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16719 2008-02-01 Kenichi Handa <handa@m17n.org>
16721 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16722 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16724 2008-02-01 Kenichi Handa <handa@m17n.org>
16726 * xfont.c (xfont_open): Set font->format.
16728 * xftfont.c (xftfont_open): Set font->format.
16730 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16731 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16732 (ftfont_open): Set font->format.
16733 (ftfont_font_format): New function.
16735 * font.h (struct font): New member format.
16737 * font.c (Qopentype): New variable.
16738 (syms_of_font): Defsym it.
16739 (Fquery_font): Change the format of the last element of the return
16742 2008-02-01 Kenichi Handa <handa@m17n.org>
16744 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16747 2008-02-01 Kenichi Handa <handa@m17n.org>
16749 * coding.c (detect_coding_charset): Fix detection of multi-byte
16752 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16754 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16756 2008-02-01 Kenichi Handa <handa@m17n.org>
16758 * xdisp.c (get_next_display_element): Set it->face_id for the
16759 first component of a composition.
16760 (x_produce_glyphs): Check if the font is changed or not for composition.
16762 2008-02-01 Kenichi Handa <handa@m17n.org>
16764 * fontset.c (Qlatin): New variable.
16765 (syms_of_fontset): Define it as a lisp symbol.
16766 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16768 2008-02-01 Kenichi Handa <handa@m17n.org>
16770 * font.c (font_unparse_fcname): Pay attention to the case that
16771 some of font property is a null string.
16773 2008-02-01 Kenichi Handa <handa@m17n.org>
16775 * term.c: Include "composite.h".
16776 (encode_terminal_code): Output all components of composition.
16777 Check the size of encode_terminal_src.
16778 (produce_glyphs): For composition, call produce_composite_glyph.
16779 (append_composite_glyph, produce_composite_glyph): New functions.
16781 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16782 is not found, get font_info from the current ascii face.
16784 2008-02-01 Kenichi Handa <handa@m17n.org>
16786 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16787 buffer-file-name to Qnil before calling insert_from_buffer.
16789 * font.c (font_unparse_fcname): Pay attention to the case that
16790 foundry is a null string.
16792 2008-02-01 Kenichi Handa <handa@m17n.org>
16794 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16796 * font.c (Qunicode_sip): New variable.
16797 (syms_of_font): Declare it as a Lisp symbol.
16799 * font.h (Qunicode_sip): Extern it.
16801 2008-02-01 Kenichi Handa <handa@m17n.org>
16803 * composite.c (get_composition_id): Pay attention to TAB component.
16805 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16806 TAB. Adjust for the change of s->char2b which always points to
16807 the first element of allocated memory.
16809 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16811 * xdisp.c (handle_composition_prop): Set it->c to the first
16813 (fill_composite_glyph_string): Change argument.
16814 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16815 (x_produce_glyphs): Fix handling of left/right padding.
16817 2008-02-01 Kenichi Handa <handa@m17n.org>
16819 * coding.c (detect_coding_system): Fix for handling off
16820 inhibit_iso_escape_detection. Fix for the case that no coding
16821 system is defined for a specific coding category.
16823 2008-02-01 Kenichi Handa <handa@m17n.org>
16825 * font.c (font_matching_entity): Delete unused local var.
16827 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16830 * fileio.c (Finsert_file_contents): On recovering a file, assume
16832 (choose_write_coding_system): On auto-saving a file, force
16835 * coding.c (setup_coding_system): Fix setting of
16836 coding->common_flags based on eol_type.
16837 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16840 2008-02-01 Kenichi Handa <handa@m17n.org>
16842 * alloc.c (NSTATICS): Increas to 0x600.
16844 2008-02-01 Kenichi Handa <handa@m17n.org>
16846 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16847 (ftfont_list): Don't check :name property.
16848 (ftfont_match): New function.
16849 (ftfont_pattern_entity): If the pattern doesn't contain
16850 FC_SPACING, don't assume FC_MONO.
16852 * font.h (struct font_driver): New member `match'.
16853 (font_update_drivers): Adjust prototype.
16855 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16857 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16858 them unconditionally.
16859 (font_matching_entity): New function.
16860 (font_open_by_name): Try font_matching_entity if exact match is
16862 (font_update_drivers): Delete the arg FONT. Return a list of
16863 actually used backends. Don't free faces, font caches here.
16864 Don't store data in frame parameters. Don't call x_set_font.
16865 (Ffont_spec): Store :name property as is.
16866 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16867 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16868 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16869 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16870 Call font->driver->otf_gsub instead of font_otf_gsub.
16872 * frame.c (x_set_font_backend): Do more works that were done in
16873 font_update_drivers before.
16875 * xfont.c (xfont_match): New function.
16876 (xfont_driver): Set xfont_driver.match to xfont_match.
16877 (xfont_draw): Set font in GC if necessary.
16879 * ftxfont.c (ftxfont_match): New function.
16880 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16882 * xftfont.c (xftfont_match): New function.
16883 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16885 2008-02-01 Kenichi Handa <handa@m17n.org>
16887 * font.h (struct font): New member scalable.
16888 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16889 (font_otf_gsub): Adjust prototype.
16891 * font.c (font_otf_capability): Fix handling of the default langsys.
16892 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16893 Check the contents of SPEC.
16894 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16895 (check_gstring): New function.
16896 (REPLACEMENT_CHARACTER): New macro.
16897 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16898 glyph codes of GSTRING.
16899 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16900 (font_prepare_composition): Set cmp->glyph_len.
16901 (font_open_entity): Set font->scalable.
16902 (Ffont_get): Handle :otf property.
16903 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16905 (Fquery_font): Use font->font.full_name.
16906 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16907 Sfont_otf_alternates.
16909 * ftfont.c (ftfont_open): Set font->font.full_name and
16910 font->font.name properly. Fix calculation of font->font.height
16911 and font->min_width.
16913 * ftxfont.c (ftxfont_create_gcs): New function.
16914 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16915 (ftxfont_draw_backgrond): Fix filling region.
16916 (ftxfont_default_fid): New function.
16917 (ftxfont_open): Set xfont->fid to the return value of
16918 ftxfont_default_fid.
16919 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16920 (ftxfont_done_face): Free only GCs that are created by
16921 ftxfont_create_gcs.
16922 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16924 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16925 Clip to src->width, etc (not src->clip_XXX).
16927 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16928 FontBackend frame parameter.
16930 2008-02-01 Kenichi Handa <handa@m17n.org>
16932 * font.h (struct font_driver_list): New member `on'.
16933 (Fclear_font_cache): EXFUN it.
16934 (font_update_drivers): Extern it.
16936 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16937 (font_list_entities): Check driver_list->on.
16938 (register_font_driver): Initalize `on' member to 0.
16939 (font_update_drivers): New function.
16940 (Fclear_font_cache): Check driver_list->on.
16942 * frame.h (Qfont_backend): Extern it.
16943 (x_set_font_backend): Extern it.
16945 * frame.c (Qfont_backend): New variable.
16946 (frame_parms): New element for font-backend.
16947 (x_set_font_backend): New function.
16949 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16950 FontBackend frame parameter.
16951 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16952 x_set_font_backend.
16954 * xfont.c (xfont_list): Don't try listing by :name property if the
16955 name is not for XLFD.
16957 2008-02-01 Kenichi Handa <handa@m17n.org>
16959 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16960 (LGLYPH_SET_TO): New macros.
16961 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16962 element of G is vector or not.
16963 (font_at): Extern it.
16965 * font.c: Include window.h.
16966 (font_lispy_object): New function.
16967 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16968 end of valid glyph.
16969 (font_close_object): Fix getting (struct font *).
16970 (font_at): New function.
16971 (Ffont_get): If FONT is a font-object, get entity from it.
16972 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16973 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16975 (Ffont_at): New function.
16976 (syms_of_font): Defsubr Sfont_at.
16978 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16979 before the entry for Qcomposition.
16980 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16981 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16982 the font in gstring.
16983 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16984 LGLYPH_FORM (g) to detect the end of valid glyph.
16985 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16986 we are composing with gstring.
16988 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16989 Check if adjustment is vector or not.
16991 * Makefile.in (font.o): Make it depends on window.h.
16993 2008-02-01 Kenichi Handa <handa@m17n.org>
16995 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16996 adjustment is vector or not.
16998 2008-02-01 Miles Bader <miles@gnu.org>
17000 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17002 2008-02-01 Kenichi Handa <handa@m17n.org>
17004 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17005 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17006 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17008 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17009 (DEVICE_DELTA): Fix typo.
17010 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17013 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17014 the change of LGLYPH format.
17016 2008-02-01 Kenichi Handa <handa@m17n.org>
17018 * ftfont.c (ftfont_list): Fix typo.
17019 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17021 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17023 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17025 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17026 xftface_info is non-NULL.
17028 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17030 * ftfont.c (ftfont_list): Move misplaced #endif.
17032 2008-02-01 Kenichi Handa <handa@m17n.org>
17034 * ftfont.c (ftfont_list): Pay attention to the case that
17035 FC_CAPABILITY is not defined.
17037 2008-02-01 Kenichi Handa <handa@m17n.org>
17039 * xftfont.c (xftfont_open): Set charset related members to -1.
17041 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17043 (ftfont_open): Set charset related members to -1.
17045 * fontset.c (Votf_script_alist): New variable.
17046 (syms_of_fontset): Initialize it.
17047 (fontset_font): Delete unused variable.
17049 * fontset.h (Votf_script_alist): Extern it.
17051 * font.c (font_find_for_lface): Optimize code.
17053 * font.h (font_close_object, font_merge_old_spec): Extern them.
17055 2008-02-01 Kenichi Handa <handa@m17n.org>
17057 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17058 (syms_of_font): Initialize them.
17059 (font_pixel_size): Allow float value in dpi.
17060 (font_prop_validate_type): Delete.
17061 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17063 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17064 (font_prop_validate_extra): Delete.
17065 (font_prop_validate_spacing): New function.
17066 (font_property_table): Add elements for all known properties.
17067 (get_font_prop_index): Rename from check_font_prop_name. New
17068 argument FROM. Change caller.
17069 (font_prop_validate): Validate all known properties.
17070 (font_put_extra): Delete argument force. Change caller.
17071 (font_expand_wildcards): Make it static. Fix the way of shrinking
17072 the possible range.
17073 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17074 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17076 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17077 (font_parse_fcname): Delete argument merge. Fix parsing of point
17078 size. Don't validate properties values here. Change caller.
17079 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17080 (font_open_by_name): Delete unused variable.
17081 (Ffont_spec): Likewise. Validate property values.
17082 (Ffont_match_p): New function.
17084 * font.h (QCscalable): Extern it.
17085 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17087 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17089 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17090 (xfont_list_pattern): New function.
17091 (xfont_list): Use xfont_list_pattern.
17093 2008-02-01 Kenichi Handa <handa@m17n.org>
17095 * font.h (Flist_fonts): EXFUN it.
17097 2008-02-01 Jason Rumney <jasonr@gnu.org>
17099 * w32term.c (w32_initialize): Add back smoothing_type and
17100 smoothing_enabled definitions.
17102 2008-02-01 Kenichi Handa <handa@m17n.org>
17104 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17105 s->face->font on determining underline position.
17107 2008-02-01 Kenichi Handa <handa@m17n.org>
17109 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17110 (font_has_char): Accept font-object too.
17111 (font_find_for_lface): Try at first with a size specified in face.
17113 2008-02-01 Kenichi Handa <handa@m17n.org>
17115 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17118 2008-02-01 Kenichi Handa <handa@m17n.org>
17120 * font.h (QCspacing, QCdpi): Extern them.
17121 (enum font_spacing): New enum.
17122 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17124 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17125 (QCspacing, QCdpi): New variables.
17126 (syms_of_font): Initialize them.
17127 (font_pixel_size): New function.
17128 (font_put_extra): New function.
17129 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17131 (font_parse_fcname): Handle enumerated values (e.g. bold).
17132 Fix handling font size. Add QCname property that contains only
17133 unknown properties.
17134 (font_score): Change argument. Change caller. Pay attention to
17135 FONT_PIXEL_SIZE_QUANTUM.
17136 (font_sort_entites, font_list_entities, font_find_for_lface)
17137 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17138 (Ffont_spec): Add QCname property that contains only unknown properties.
17140 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17141 include weight in listing pattern, instead check weight of each
17142 listed font. Don't include scalable in pattern. Pay attention to
17143 FONT_PIXEL_SIZE_QUANTUM.
17145 2008-02-01 Kenichi Handa <handa@m17n.org>
17147 * font.c (font_parse_fcname): Fix parsing of point-size.
17148 (font_unparse_fcname): Produce symbolic names for style properties.
17149 (font_list_entities): Handle float size correctly.
17150 (font_open_by_name): Prefer `normal' property values if the name
17151 doesn't specify them.
17153 * fontset.c (Finternal_char_font): Use font_get_name, not
17156 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17157 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17158 pattern. Don't force scalable.
17160 * xftfont.c (xftfont_open): For generating a name, start from
17163 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17165 * frame.h (x_new_fontset2): Fix prototype.
17167 2008-02-01 Kenichi Handa <handa@m17n.org>
17169 * font.h (struct font_driver): Delete member parse_name.
17170 (font_match_p, font_get_spec, font_parse_fcname)
17171 (font_unparse_fcname): Extern them.
17172 (font_get_name): Adjust prototype.
17174 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17175 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17176 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17177 unnecessary checks for weight, slant, and swidth.
17178 (font_parse_fcname): New function.
17179 (font_unparse_fcname): New function.
17180 (font_parse_name): New function.
17181 (font_match_p): New function.
17182 (font_get_name): Change return value to Lisp string.
17183 (font_get_spec): New function.
17184 (Qunspecified, Qignore_defface): Don't extern them.
17185 (font_find_for_lface): Assume that LFACE is fully specified.
17186 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17187 object, use it for FACE.
17188 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17189 driver->parse_name.
17190 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17192 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17195 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17196 argument F. Don't call Fnew_fontset. Instead, directly call
17199 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17201 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17204 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17205 (Qsans__serif): New variables.
17206 (ftfont_generic_family_list): New variable.
17207 (syms_of_ftfont): Initialize the above variables.
17208 (ftfont_pattern_entity): Delete argument NAME.
17209 (ftfont_list_generic_family): New function.
17210 (ftfont_parse_name): Delete this function.
17211 (ftfont_list): Try generic family only when FcFontList found no font.
17212 (ftfont_list_family): Fix args to FcObjectSetBuild.
17214 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17215 object in attrs[LFACE_FONT_INDEX].
17216 (set_lface_from_font_name): Cancel all changes for font-backend.
17217 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17219 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17220 font object in QCfont attribute.
17221 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17222 (realize_default_face) [USE_FONT_BACKEND]: Call
17223 set_lface_from_font_and_fontset.
17225 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17226 "fixed", and signal error here if no suitable font was found.
17228 * xfont.c (xfont_parse_name): Delete this function.
17230 * xftfont.c (xftfont_open): Change coding style of error
17231 handling. Generate fontconfig's fontname pattern.
17233 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17234 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17236 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17237 Both args FONTSET and FONT_OBJECT must be existing ones.
17239 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17241 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17243 2008-02-01 Kenichi Handa <handa@m17n.org>
17245 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17247 * font.h (struct font): Fix typo.
17249 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17251 (enum xlfd_field_mask): New enum.
17252 (intern_font_field): Changed argument. Change caller. If digits
17253 are followed by non-digits, return a symbol.
17254 (font_expand_wildcards): New function.
17255 (font_parse_xlfd): Fix wildcard handling.
17256 (Ffont_spec): If :name is specified, reflect the info in the other
17259 * ftfont.c (ftfont_pattern_entity): Fix typo.
17260 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17263 2008-02-01 Kenichi Handa <handa@m17n.org>
17265 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17267 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17268 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17269 registry doesn't specify encoding part.
17270 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17271 (font_open_by_name): At first try parsing the name.
17272 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17275 * fontset.c (reorder_font_vector): Pay attention to the case that
17276 the 3rd element of font_def is nil.
17277 (fontset_font): For the default fontset, append one more fontset
17278 elements for a script-based font specification. Don't add script
17279 attribute on finding a font.
17280 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17282 (fontset_ascii_font): If a font can't be opened, return nil.
17284 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17285 (ftfont_pattern_entity): New function.
17286 (ftfont_get_cache): Assume that freetype_font_cache is already
17288 (ftfont_list): Handle the case that a file is specified in font
17289 name. Use ftfont_pattern_entity to generate entities.
17290 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17291 (syms_of_ftfont): Initialize freetype_font_cache.
17293 * xftfont.c (xftfont_open): Make the font name fontconfig's
17294 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17295 (xftfont_close): Free font->font.name if not NULL.
17297 * xfont.c (xfont_list): If script is specified for a font, return
17299 (xfont_list_family): Declare argument type.
17301 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17302 name, set LFACE_FONT (lface) to nil.
17304 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17307 2008-02-01 Kenichi Handa <handa@m17n.org>
17309 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17310 (standard_args): Add "-enable-font-backend".
17312 2008-02-01 Kenichi Handa <handa@m17n.org>
17314 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17315 (struct xftdraw_list, xftdraw_list): Delete them.
17316 (register_xftdraw, check_xftdraw): Delete them.
17317 (xftfont_prepare_face): Don't call register_xftdraw.
17318 (xftfont_done_face): Don't call check_xftdraw.
17319 (xftfont_draw): Get background color only when with_background is
17322 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17324 2008-02-01 Kenichi Handa <handa@m17n.org>
17326 These changes are for the new font handling codes.
17328 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17329 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17330 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17331 (FONTSRC, FONTOBJ): New variables.
17332 (obj): Add $(FONTOBJ).
17333 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17334 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17336 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17337 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17339 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17341 * character.h (Vscript_representative_chars): Extern it.
17343 * character.c (Vscript_representative_chars): New variable.
17344 (syms_of_character): Declare it as a Lisp variable.
17346 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17347 enable_font_backend is nonzero, accept the composition method
17348 COMPOSITION_WITH_GLYPH_STRING.
17350 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17351 enumeration COMPOSITION_WITH_GLYPH_STRING.
17353 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17354 members clip_x, clip_y, clip_width, and clip_height.
17355 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17357 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17358 --enable-font-backend. Call syms_of_font.
17360 * fns.c (assoc_no_quit): New function.
17362 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17363 (face_for_font, new_fontset_from_font)
17364 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17366 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17367 (fontset_font, fontset_ascii, face_for_char)
17368 (make_fontset_for_ascii_face, Ffont_info)
17369 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17370 is nonzero, use font-backend mechanism.
17371 (find_font_encoding): Make it non-static.
17372 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17375 * frame.h (struct frame): New members resx and resy.
17376 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17377 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17379 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17380 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17382 * lisp.h (assoc_no_quit): Extern it.
17384 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17385 Through out the file, use FONT_INFO_FROM_FACE instead of
17386 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17387 rif->per_char_metric.
17388 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17389 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17390 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17391 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17392 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17393 nonzero, use font-backend mechanism.
17394 (get_per_char_metric): New function.
17396 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17397 (set_lface_from_font_name)
17398 (set_font_frame_param, free_realized_face)
17399 (prepare_face_for_display, clear_face_gcs)
17400 (Finternal_set_font_selection_order, realize_x_face)
17401 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17402 font-backend mechanism.
17403 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17404 (load_face_font) [USE_FONT_BACKEND]: Abort.
17405 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17406 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17408 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17409 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17410 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17411 nonzero, register all available font drivers. Call
17412 x_default_font_parameter for deciding a font.
17413 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17415 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17416 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17417 (x_set_glyph_string_clipping_exactly)
17418 (x_compute_glyph_string_overhangs)
17419 (x_draw_glyph_string_foreground)
17420 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17421 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17422 enable_font_backend is nonzero, use font-backend mechanism.
17423 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17425 2008-02-01 Kenichi Handa <handa@m17n.org>
17427 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17429 (syms_of_coding): Initialize system_eol_type.
17431 * process.c (Fset_process_coding_system): Inherit system's eol
17432 format if necessary.
17434 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17436 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17438 2008-02-01 Kenichi Handa <handa@m17n.org>
17440 * coding.c (decode_eol): Pay attention to buffer relocation in
17442 (decode_coding): Call decode_eol before restoring undo_list.
17444 2008-02-01 Kenichi Handa <handa@m17n.org>
17446 * charset.c (Fdefine_charset_internal): Fix setting of
17449 2008-02-01 Kenichi Handa <handa@m17n.org>
17451 * keyboard.c (read_char): Check if C is a character or not before
17452 looking up Vkeyboard_translate_table.
17454 2008-02-01 Kenichi Handa <handa@m17n.org>
17456 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17457 condition to terminate the loop.
17459 2008-02-01 Kenichi Handa <handa@m17n.org>
17461 * coding.c (produce_composition): Compare charbuf[i] instead of
17463 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17465 2008-02-01 Kenichi Handa <handa@m17n.org>
17467 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17468 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17469 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17471 (emacs_mule_char): Handle old style (Emacs 20) component character
17473 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17474 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17476 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17478 2008-02-01 Kenichi Handa <handa@m17n.org>
17480 * coding.c (encode_coding_ccl): Allocate destination dynamically
17483 2008-02-01 Kenichi Handa <handa@m17n.org>
17485 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17486 the loop. When quitted, show a proper error message.
17488 2008-02-01 Kenichi Handa <handa@m17n.org>
17490 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17491 src->clip_head and src->clip_tail temporarily instead of src->hl.
17493 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17494 character sequence.
17495 (Fccl_execute_on_string): Use ASET, not XSET.
17497 2008-02-01 Kenichi Handa <handa@m17n.org>
17499 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17501 2008-02-01 Kenichi Handa <handa@m17n.org>
17503 * coding.c (decode_coding): Fix the condition of terminating the
17506 2008-02-01 Kenichi Handa <handa@m17n.org>
17508 * data.c (Faset): On setting a character bigger than 255 in a
17509 unibyte string, signal an error instead of make the string multibyte.
17511 2008-02-01 Kenichi Handa <handa@m17n.org>
17513 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17514 made by a mapping table.
17516 2008-02-01 Kenichi Handa <handa@m17n.org>
17518 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17520 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17521 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17523 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17524 s->face is NULL or not.
17526 2008-02-01 Kenichi Handa <handa@m17n.org>
17528 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17529 (x_draw_glyph_string): Fix drawing of right_overhang and
17530 left_overhang around/on cursor.
17532 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17534 2008-02-01 Kenichi Handa <handa@m17n.org>
17536 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17538 2008-02-01 Kenichi Handa <handa@m17n.org>
17540 * coding.c (Fdefine_coding_system_internal)
17541 (Fdefine_coding_system_alias): Avoid a duplicated element in
17542 Vcoding_system_alist.
17544 2008-02-01 Kenichi Handa <handa@m17n.org>
17546 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17548 * coding.c (Qcoding_system_define_form): New variable.
17549 (syms_of_coding): Intern and staticpro it.
17550 (Fcoding_system_p): Check Qcoding_system_define_form.
17551 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17553 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17555 (CHECK_CODING_SYSTEM): If ID is not available, call
17556 Fcheck_coding_system.
17557 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17558 Try also Fcheck_coding_system.
17560 2008-02-01 Kenichi Handa <handa@m17n.org>
17562 * coding.c (code_conversion_restore): GCPRO arg.
17564 2008-02-01 Kenichi Handa <handa@m17n.org>
17566 * character.c (lisp_string_width): Check multibyteness of STRING.
17568 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17570 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17571 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17572 (decode_mac_font_name): Use decode_coding_c_string instead of
17574 (x_load_font): Initialize fontp->fontset to -1. Set
17575 fontp->encoding_type.
17577 2008-02-01 Kenichi Handa <handa@m17n.org>
17579 * search.c (search_buffer): Give up BM search on case-fold-search
17580 if one of a target character has a case-equivalence of different
17581 byte length even if that target charcter is an ASCII.
17582 (simple_search): Fix calculation of byte length of matched text.
17583 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17585 2008-02-01 Kenichi Handa <handa@m17n.org>
17587 * coding.c (decode_coding): Fix handling of invalid bytes.
17589 2008-02-01 Kenichi Handa <handa@m17n.org>
17591 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17592 Unicode characters.
17594 2008-02-01 Kenichi Handa <handa@m17n.org>
17596 * coding.c (encode_coding_object): If a pre-write-conversion
17597 function makes a new buffer, kill it.
17599 2008-02-01 Kenichi Handa <handa@m17n.org>
17601 * coding.c (QCascii_compatible_p): New variable.
17602 (syms_of_coding): Initialize it.
17603 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17604 calling string_char.
17605 (record_conversion_result): Add `default:' case.
17606 (coding_charset_list): Delete unused variable `coding_type'.
17607 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17608 property in the plist of the coding system.
17609 (Fcoding_system_put): Check QCascii_compatible_p.
17611 2008-02-01 Miles Bader <miles@gnu.org>
17613 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17614 removed calculation of frame `f', as it's now used.
17616 2008-02-01 Kenichi Handa <handa@m17n.org>
17618 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17619 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17620 (UNIDATA): New variable.
17621 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17622 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17623 $(RUN_TEMACS) unconditionally.
17625 2008-02-01 Kenichi Handa <handa@m17n.org>
17627 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17628 (admindir): New variable.
17629 ($(lispsource)international/charprop.el): New target.
17631 2008-02-01 Miles Bader <miles@gnu.org>
17633 * character.c (chars-in-region): Remove obsolete function.
17634 (syms_of_character): Remove its initialization.
17636 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17638 * w32select.c (validate_coding_system)
17639 (setup_windows_coding_system): New functions.
17640 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17641 setup_windows_coding_system.
17642 (setup_config, Fw32_get_clipboard_data): Use
17643 validate_coding_system.
17644 (Fx_selection_exists): Move call to setup_config to a place
17645 where signals are allowed.
17647 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17648 (Fcheck_coding_system): Add declarations.
17650 2008-02-01 Kenichi Handa <handa@m17n.org>
17652 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17654 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17656 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17657 string as the second argument for x_new_fontset.
17659 2008-02-01 Kenichi Handa <handa@m17n.org>
17661 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17662 (encode_coding_object): Use safe_call instead of call2.
17664 2008-02-01 Kenichi Handa <handa@m17n.org>
17666 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17668 * Makefile.in (lisp): Include charprop.el.
17670 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17672 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17673 Not sure if it's unnecessary.
17675 2008-02-01 Steven Tamm <steventamm@mac.com>
17677 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17678 some possibly unnecessary fontset checking code that crashed
17679 when creating a new frame.
17681 2008-02-01 Kenichi Handa <handa@m17n.org>
17683 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17686 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17688 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17690 2008-02-01 Kenichi Handa <handa@m17n.org>
17692 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17693 (coding_charset_list): New function.
17695 * coding.h (coding_charset_list): Extern it.
17697 2008-02-01 Kenichi Handa <handa@m17n.org>
17699 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17700 concatenation of family and registry.
17702 2008-02-01 Kenichi Handa <handa@m17n.org>
17704 * character.h (BYTE8_STRING): Fix typo.
17706 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17707 string to multibyte (sync to HEAD).
17709 * casefiddle.c (casify_region): Handle changes in byte-length
17710 using replace_range_2 (sync to HEAD).
17712 2008-02-01 Andreas Schwab <schwab@suse.de>
17714 * chartab.c (map_char_table): GCPRO table and arg.
17716 2008-02-01 Kenichi Handa <handa@m17n.org>
17718 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17721 2008-02-01 Kenichi Handa <handa@m17n.org>
17723 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17724 instead of fast_c_string_match_ignore_case.
17725 (find_font_encoding): Change argument to Lisp_Object. Use
17726 fast_string_match_ignore_case instead of
17727 fast_c_string_match_ignore_case. Change caller.
17729 2008-02-01 Kenichi Handa <handa@m17n.org>
17731 * xdisp.c (get_next_display_element): In unibyte case, decide to
17732 display in octal form by checking a character by
17733 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17735 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17737 * character.c (unibyte_has_multibyte_table): New variable.
17739 * character.h (unibyte_has_multibyte_table): Extern it.
17740 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17742 2008-02-01 Kenichi Handa <handa@m17n.org>
17744 * coding.c (encode_coding_iso_2022): Fix handling of charset
17747 2008-02-01 Kenichi Handa <handa@m17n.org>
17749 * coding.c (setup_coding_system): If coding_system is nil, use
17751 (Fterminal_coding_system): Return nil if terminal coding system is
17753 (syms_of_coding): Define coding-system `undecided' here. Setup
17754 terminal_coding as `undecided'.
17756 2008-02-01 Kenichi Handa <handa@m17n.org>
17758 * xdisp.c (message_dolog, set_message_1): Call
17759 unibyte_char_to_multibyte with arg type int.
17761 * lread.c (read1): Fix reading of a char-table.
17763 * print.c (print_object): Include sub char-table in circularities
17766 2008-02-01 Kenichi Handa <handa@m17n.org>
17768 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17769 Append the found sequences in car of ARGS instead of prepending.
17771 2008-02-01 Kenichi Handa <handa@m17n.org>
17773 * fileio.c (report_file_error): Make a unibyte string from
17774 strerror (errorno).
17775 (Fsubstitute_in_file_name): Fix the arg to
17776 unibyte_char_to_multibyte. It is evaluated twice.
17778 2008-02-01 Kenichi Handa <handa@m17n.org>
17780 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17782 2008-02-01 Kenichi Handa <handa@m17n.org>
17784 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17786 (detect_coding, detect_coding_system): Optimization for ISO-2022
17787 when no 8-bit data is found.
17789 2008-02-01 Jason Rumney <jasonr@gnu.org>
17791 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17793 2008-02-01 Kenichi Handa <handa@m17n.org>
17795 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17798 2008-02-01 Steven Tamm <steventamm@mac.com>
17800 * macterm.c (mac_encode_char): Add charset argument and update
17801 to use encoding_type.
17802 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17803 switch to pure fontset.
17804 (decode_mac_font_name): Temporarily remove decoding.
17805 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17806 (x_load_font): Temporarily remove encoding.
17808 2008-02-01 Kenichi Handa <handa@m17n.org>
17810 * xfaces.c (Fface_font): If frame is not on a window system,
17811 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17812 refer to face->font.
17813 (split_font_name_into_vector, build_font_name_from_vector)
17814 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17815 when HAVE_WINDOW_SYSTEM is defined.
17817 2008-02-01 Kenichi Handa <handa@m17n.org>
17819 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17820 (x_produce_glyphs): Fix setting of members of cmp in case
17821 cmp->glyph_len is zero.
17823 * fontset.c (Fset_fontset_font): Fix docstring.
17824 (Ffontset_info): Make it backward compatible. New arg ALL.
17826 2008-02-01 Kim F. Storm <storm@cua.dk>
17828 * process.c (read_process_output): Grow decoding_buf when needed;
17829 this could cause a crash in allocate_string and compact_small_strings.
17831 2008-02-01 Kenichi Handa <handa@m17n.org>
17833 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17835 2008-02-01 Kenichi Handa <handa@m17n.org>
17837 * coding.c (setup_coding_system): Set coding->common_flags
17838 correctly for raw-text.
17839 (consume_chars): On encoding unibyte text by raw-text, don't check
17841 (encode_coding): On encoding by raw-text, never use translation tables.
17843 * fileio.c (e_write): Short cut for the case of no encoding.
17845 2008-02-01 Kenichi Handa <handa@m17n.org>
17847 * coding.c (detect_coding, detect_coding_system): Delete unused
17850 2008-02-01 Kenichi Handa <handa@m17n.org>
17852 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17853 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17855 2008-02-01 Kenichi Handa <handa@m17n.org>
17857 * coding.c (Ffind_coding_systems_region_internal): Include
17858 raw-text and no-conversion in the result.
17860 2008-02-01 Kenichi Handa <handa@m17n.org>
17862 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17863 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17865 (font_def_arg, add_arg, from_arg, to_arg): New args.
17866 (set_fontset_font): Change argument.
17867 (Fset_fontset_font): Fix for the case that TARGET is a script
17868 name and charset name.
17869 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17871 2008-02-01 Kenichi Handa <handa@m17n.org>
17873 * fontset.c (fontset_font): Rename from fontset_face. Change return
17875 (face_suitable_for_char_p, face_for_char): Adjust for the change
17877 (make_fontset_for_ascii_face): Fix setting of the fontset element
17879 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17880 to get a font name.
17881 (Ffontset_info): Adjust for the change of fontset_font.
17883 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17885 * character.h (LEADING_CODE_LATIN_1_MIN)
17886 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17888 2008-02-01 Kenichi Handa <handa@m17n.org>
17890 * editfns.c (check_translation): New function.
17891 (Ftranslate_region_internal): Handle M:N mapping.
17893 2008-02-01 Kenichi Handa <handa@m17n.org>
17895 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17897 2008-02-01 Kenichi Handa <handa@m17n.org>
17899 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17901 (decode_coding_iso_2022): Fix handling of invalid designation.
17903 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17904 after calling code_conversion_save.
17906 2008-02-01 Kenichi Handa <handa@m17n.org>
17908 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17910 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17912 * fontset.c: Include "intervals.h".
17913 (fontset_face): Fix comparing of Lisp_Objects.
17914 (free_face_fontset, new_fontset_from_font_name): Fix
17915 Lisp_Object/int mixup.
17917 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17919 * coding.c: Add many prototypes for static functions.
17920 (get_translation_table): Allow max_lookup to be NULL.
17921 (decode_coding, Ffind_coding_systems_region_internal)
17922 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17923 get_translation_table with max_lookup NULL.
17925 2008-02-01 Kenichi Handa <handa@m17n.org>
17927 * coding.c (get_translation_table): Declare it as Lisp_Object.
17928 (LOOKUP_TRANSLATION_TABLE): New macro.
17929 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17930 instead of CHAR_TABLE_REF.
17932 2008-02-01 Kenichi Handa <handa@m17n.org>
17934 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17935 annotation data format.
17936 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17937 Change arguments FROM and TO to single argument NCHARS. Change caller.
17938 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17939 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17940 (decode_coding_ccl, decode_coding_charset): Pay attention to
17941 coding->charbuf_used.
17942 (get_translation): New function.
17943 (produce_chars): New arguments translation_table and last_block.
17944 Translate characters here. Return number of carryover chars.
17946 (produce_composition): New argument pos. Change caller.
17947 Adjust for the change of annotation data format.
17948 (produce_charset, produce_annotation): Likewise.
17949 (decode_coding, encode_coding): Don't call translate_chars.
17950 (consume_chars): New arg translation_table. Change caller.
17951 (translate_chars): Delete.
17952 (syms_of_coding): Make translation-table's number of extra slots 2.
17954 2008-02-01 Kenichi Handa <handa@m17n.org>
17956 * search.c (simple_search): Fix setting this_pos_byte in backward
17959 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17961 (detect_coding_ccl): Fix setting of the variable valids.
17963 2008-02-01 Kenichi Handa <handa@m17n.org>
17965 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17967 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17969 * editfns.c (Ftranslate_region_internal): Rename from
17970 Ftranslate_region. Accept a char-table in TABLE.
17971 (syms_of_editfns): Defsubr Stranslate_region_internal.
17973 * xfaces.c (set_lface_from_font_name): If a font is specified for
17974 a frame, generate a fontset from the font.
17975 (build_scalable_font_name): If the scalable font is requested for
17976 a specific size, don't change that size.
17977 (try_font_list): Try a scalable font also in the case that a
17978 pattern string is specified.
17980 2008-02-01 Kenichi Handa <handa@m17n.org>
17982 * xfaces.c (Fface_font): New optional arg CHARACTER.
17984 2008-02-01 Kenichi Handa <handa@m17n.org>
17986 * charset.h (CHARSET_OFFSET): New macro.
17988 2008-02-01 Kenichi Handa <handa@m17n.org>
17990 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17992 * fontset.c (fontset_face): Handle the case that repertory is a
17994 (find_font_encoding): Return nil for unknown encoding.
17995 (Fset_fontset_font): Ignore a font of unknown encoding.
17997 2008-02-01 Kenichi Handa <handa@m17n.org>
17999 * keymap.c (describe_vector): Handle default value of a char table.
18001 * fontset.c (fontset_face): Handle fallback fonts correctly.
18002 (Ffontset_info): Return infomation about fallback fonts.
18004 2008-02-01 Kenichi Handa <handa@m17n.org>
18006 * fontset.c (FONTSET_DEFAULT): New macro.
18007 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18008 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18009 the case that it is nil.
18010 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18011 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18013 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18014 subset or superset.
18016 2008-02-01 Kenichi Handa <handa@m17n.org>
18018 * emacs.c (main): Call init_charset after syms_of_XXX.
18020 * charset.c (Vcharset_map_directory): Delete.
18021 (Vcharset_map_path): New variable.
18022 (load_charset_map_from_file): Use Vcharset_map_path instead.
18023 (init_charset): Initialize Vcharset_map_path.
18024 (syms_of_charset): Delete declaration of "charset-map-directory",
18025 add declaration of "charset-map-path".
18027 2008-02-01 Kenichi Handa <handa@m17n.org>
18029 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18032 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18034 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18035 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18037 2008-02-01 Kenichi Handa <handa@m17n.org>
18039 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18041 * coding.c (QCmnemonic, QCdefalut_char)
18042 (QCdecode_translation_table, QCencode_translation_table)
18043 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18044 (get_translation_table): Return a list of translation tables if
18046 (decode_coding): Call get_translation_table with ENCODEP 0.
18047 (char_encodable_p): If translation_table is non-nil, always call
18049 (Fdefine_coding_system_internal): Accept list of translation
18050 tables as :encode-translation-table and :decode-translation-table.
18051 (Fcoding_system_put): New function.
18052 (syms_of_coding): Declare new symbols. Defsubr
18053 Scoding_system_put.
18054 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18055 typically JISX0212.
18057 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18058 when the charset is superset type.
18060 * character.c (translate_char): Accept list of translation tables.
18062 2008-02-01 Kenichi Handa <handa@m17n.org>
18064 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18065 (CODING_ATTR_TRANS_TBL): New macro.
18067 * coding.c (get_translation_table): New function.
18068 (translate_chars): Fix the bug of skipping annotation data.
18069 (decode_coding, encode_coding): Utilize get_translation_table.
18070 (char_encodable_p, Funencodable_char_position): Translate char if
18072 (Ffind_coding_systems_region_internal)
18073 (Fcheck_coding_systems_region): Setup translation table for encode
18074 in a coding system attribute vector in advance.
18075 (Fdefine_coding_system_internal): Allow a symbol as translation
18076 table. For shift-jis type coding system, allow 4th charset.
18078 2008-02-01 Kenichi Handa <handa@m17n.org>
18080 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18082 * xdisp.c (get_next_display_element): Pass -1 as POS to
18083 FACE_FOR_CHAR if displaying a C-string.
18085 2008-02-01 Kenichi Handa <handa@m17n.org>
18087 * composite.c (get_composition_id): Handle xoff and yoff in a
18090 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18091 (struct composition): New member lbearing and rbearing.
18093 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18094 (x_get_glyph_overhangs): Handle a composition glyph.
18095 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18097 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18100 2008-02-01 Kenichi Handa <handa@m17n.org>
18102 * print.c: Include charset.h.
18103 (Vprint_charset_text_property): New variable.
18104 (Qdefault): Extern it.
18105 (PRINT_STRING_NON_CHARSET_FOUND)
18106 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18107 (print_check_string_result): New variable.
18108 (print_check_string_charset_prop): New function.
18109 (print_prune_charset_plist): New variable.
18110 (print_prune_string_charset): New function.
18111 (print_object): Call print_prune_string_charset if
18112 Vprint_charset_text_property is not t.
18113 (print_interval): Print nothing if interval->plist is nil.
18114 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18115 variable. Init and staticpro print_prune_charset_plist.
18117 2008-02-01 Kenichi Handa <handa@m17n.org>
18119 * fontset.c (new_fontset_from_font_name): Use the specified font
18120 for all characters in the new fontset.
18122 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18125 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18126 OBJECT args for composition too.
18128 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18131 2008-02-01 Kenichi Handa <handa@m17n.org>
18133 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18135 * fontset.c (reorder_font_vector): Adjust for the change of
18137 (fontset_face): New arg id. Change caller.
18138 (face_for_char): New args pos and object.
18139 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18140 (fs_query_fontset): Check NAME by Fassoc too.
18141 (Fset_fontset_font): Allow non-XLFD font name.
18142 (Ffontset_info): Adjust for the change of FONT_DEF format.
18144 * fontset.h (face_for_char): Adjust prototype.
18146 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18147 (append_space, extend_face_to_end_of_line)
18148 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18149 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18151 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18152 POS and OBJECT args.
18154 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18155 POS and OBJECT args.
18157 2008-02-01 Jason Rumney <jasonr@gnu.org>
18159 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18160 of GlobalAlloc'ed memory.
18162 2008-02-01 Kenichi Handa <handa@m17n.org>
18164 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18166 * charset.h (charset_table_used): Delete extern.
18168 * charset.c (charset_table_used): Make it static.
18169 (map_charset_chars): Fix args to c_function with.
18171 * chartab.c (map_sub_char_table_for_charset): Fix args to
18174 * coding.h (enum coding_result_code): Delete
18175 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18177 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18178 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18179 (Vlast_code_conversion_error): New variables.
18180 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18181 (ONE_MORE_BYTE): Record error if any instead of signaling an
18182 error. If non-ASCII multibyte char is found, return the negative
18183 value of the code. All callers changed to check it.
18184 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18185 (record_conversion_result): New function. Change all codes setting
18186 coding->result to call this function.
18187 (detect_coding_utf_8, decode_coding_utf_8)
18188 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18189 Don't use the local variable incomplete.
18190 (emacs_mule_char): Change the second arg to `const'.
18191 (decode_coding): Fix of flushing out unprocessed data.
18192 (make_conversion_work_buffer): Fix making of a work buffer.
18193 (decode_coding_object): Return coding->dst_object.
18195 * fontset.c (set_fontset_font): Fix args.
18197 * lisp.h (CHARACTERBITS): Define as 22.
18199 * process.c (send_process): Be sure to set coding->src_multibyte.
18201 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18203 2008-02-01 Kenichi Handa <handa@m17n.org>
18205 * xdisp.c (handle_auto_composed_prop): Give limit to
18206 Fnext_single_char_property_change.
18208 2008-02-01 Kenichi Handa <handa@m17n.org>
18210 * composite.c (syms_of_composite): Don't make the composition hash
18213 * fontset.c (Fset_fontset_font): Fix docstring.
18215 * lisp.h (detect_coding_system): Adjust prototype.
18217 * fileio.c (kill_workbuf_unwind): Delete this function.
18218 (Finsert_file_contents): Adjust the call of detect_coding_system.
18219 Get conversion_buffer by code_conversion_save. Use the macro
18220 CODING_MAY_REQUIRE_DECODING. After decoding, update
18223 * coding.h (make_conversion_work_buffer): Delete extern.
18224 (code_conversion_save): Extern it.
18226 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18227 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18228 (decode_coding_utf_8): Don't do eol converion.
18229 (detect_coding_utf_16): Check coding->src_chars, not
18230 coding->src_bytes. Add heuristics for those that have no signature.
18231 (decode_coding_emacs_mule, decode_coding_iso_2022)
18232 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18233 Don't do eol converion.
18234 (adjust_coding_eol_type): Return a new coding system.
18235 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18236 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18238 (decode_coding): Pay attention to undo_list. Do eol conversion for
18239 all types of coding-systems (if necessary).
18240 (Vcode_conversion_work_buf_list): Delete it.
18241 (Vcode_conversion_reused_workbuf): Rename from
18242 Vcode_conversion_reused_work_buf.
18243 (Vcode_conversion_workbuf_name): New variable.
18244 (reused_workbuf_in_use): New variable.
18245 (make_conversion_work_buffer): Delete the arg DEPTH.
18246 (code_conversion_restore): Change argument to cons.
18247 (code_conversion_save): Delete the argument BUFFER. Change callers.
18248 (detect_coding_system): New argument src_chars. Change callers.
18249 Fix for utf-16 detection.
18250 (init_coding_once): Don't use ISO_carriage_return.
18251 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18252 reused_workbuf_in_use.
18254 2008-02-01 Kenichi Handa <handa@m17n.org>
18256 * keymap.c (store_in_keymap): Pay attention to the case that idx
18257 is a cons specifying a character range.
18259 2008-02-01 Kenichi Handa <handa@m17n.org>
18261 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18262 HANDLED_RECOMPUTE_PROPS.
18264 * coding.c (Fdefine_coding_system_internal): Fix checking of
18265 ascii compatibility.
18267 2008-02-01 Kenichi Handa <handa@m17n.org>
18269 * charset.c (find_charsets_in_text): Delete unused locale variable.
18270 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18272 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18273 Resync charset_list to Vemacs_mule_charset_list.
18275 * keymap.c (store_in_keymap): Pay attention to the case that idx
18276 is a cons specifying a character range.
18278 2008-02-01 Kenichi Handa <handa@m17n.org>
18280 * composite.c (update_compositions): Bind inhibit-read-only, etc
18281 to t before calling remove-list-of-text-properties.
18283 * print.c (print_object): Always print ASCII chars as is.
18285 2008-02-01 Kenichi Handa <handa@m17n.org>
18287 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18289 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18292 2008-02-01 Kenichi Handa <handa@m17n.org>
18294 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18296 2008-02-01 Kenichi Handa <handa@m17n.org>
18298 * xfaces.c (set_lface_from_font_name): Fix for the case that
18299 FONTNAME is not fontset name.
18301 2008-02-01 Kenichi Handa <handa@m17n.org>
18303 * fns.c (base64_encode_1): Fix previous change.
18305 2008-02-01 Kenichi Handa <handa@m17n.org>
18307 * fontset.c (set_fontset_font): New function.
18308 (Fset_fontset_font): If a font is specified for a charset, use
18309 map_charset_chars to store the font spec in a fontset.
18311 2008-02-01 Kenichi Handa <handa@m17n.org>
18313 * fontset.c (fontset_face): Create a fallback fontset on demand.
18314 (make_fontset): Don't create a fallback fontset here.
18315 (free_face_fontset): Free a fallback fontset (if any) too.
18316 (n_auto_fontsets): Delete this variable.
18317 (auto_fontset_alist): New variable.
18318 (new_fontset_from_font_name): Check auto_fontset_alist.
18319 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18320 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18321 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18322 Defsubr Sfontset_list_all.
18324 2008-02-01 Kenichi Handa <handa@m17n.org>
18326 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18328 2008-02-01 Kenichi Handa <handa@m17n.org>
18330 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18332 2008-02-01 Kenichi Handa <handa@m17n.org>
18334 * editfns.c (Fgoto_char): Fix docstring.
18336 2008-02-01 Kenichi Handa <handa@m17n.org>
18338 * insdel.c (insert_from_gap): Adjust intervals correctly.
18340 2008-02-01 Jason Rumney <jasonr@gnu.org>
18342 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18343 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18344 (w32_initialize): Try to load it.
18345 (x_get_font_repertory): Use it if available.
18346 (w32_encode_char): Add shortcut for unicode output.
18348 * w32fns.c (w32_load_system_font): Default charset to -1.
18349 (x_to_w32_charset): Match all fonts for unicode.
18350 (w32_to_x_charset): New parameter matching. Don't return partial
18351 or wildcard charsets.
18352 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18353 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18354 (w32_to_x_font): Match charset to real charset.
18355 (enum_font_cb2): Always list unicode versions.
18357 * makefile.w32-in (temacs): Increase EMHEAP.
18359 2008-02-01 Jason Rumney <jasonr@gnu.org>
18361 * w32term.c (w32_encode_char): New charset parameter.
18362 font_info.encoding becomes encoding_type.
18363 (x_get_font_repertory): New function. Warning: stub only!
18364 (x_new_font): Return quickly if font already set.
18365 (x_new_fontset): fontsetname parameter is Lisp_Object.
18366 Use new fs_query_fontset. Try new_fontset_from_font_name.
18367 Use fontset_name for return value.
18369 * w32term.h: Declare x_get_font_repertory.
18371 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18372 place of find_charset_in_text. Use encode_coding_object in place
18374 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18377 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18379 (w32_load_system_font): Initialize charset as unicode.
18380 font_info.encoding becomes encoding_type.
18381 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18382 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18383 (syms_of_w32fns): Set get_font_repertory_func.
18385 * w32console.c: Include character.h. Use terminal_encode_buffer
18387 (write_glyphs): Use new version of encode_terminal_code. Use
18388 encode_coding_object in place of encode_coding.
18390 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18391 encoding becomes encoding_type.
18393 * term.c (terminal_encode_buffer): Make externally visible.
18395 * makefile.w32-in: Add character.h dependancies.
18396 (character.o, chartab.o): New targets.
18398 2008-02-01 Kenichi Handa <handa@m17n.org>
18400 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18401 CODING_ID_EOL_TYPE.
18403 2008-02-01 Andreas Schwab <schwab@suse.de>
18405 * coding.c (produce_chars): Revert last change.
18407 2008-02-01 Kenichi Handa <handa@m17n.org>
18409 * charset.h (charset_unicode): Extern it.
18411 * charset.c (string_xstring_p): Check by (C >= 0x100).
18412 (find_charsets_in_text): Change format of the arc CHARSETS. New
18414 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18415 change of find_charsets_in_text.
18416 (Fsplit_char): Fix doc. Never return unknown.
18418 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18420 * coding.c (Fdefine_coding_system_alias): Update
18421 Vcoding_system_list.
18423 * fontset.c (load_font_get_repertory): Pay attention to the case
18424 that ENCODING of a font is specified by a char-table.
18426 * xterm.c (x_get_font_repertory): Handle the case that the
18427 encoding of font is other than Unicode.
18429 2008-02-01 Kenichi Handa <handa@m17n.org>
18431 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18432 if a character is encodable by the terminal coding system. If
18433 not, produces proper number of `?'s. Update
18434 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18435 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18437 2008-02-01 Kenichi Handa <handa@m17n.org>
18439 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18441 (encode_terminal_code): Change argument. Encode multiple
18442 characters at once. Store the result of encoding in
18443 terminal_encode_buffer.
18444 (write_glyphs, insert_glyphs): Adjust for the change of
18445 encode_terminal_code.
18446 (term_init): Initialize terminal_encode_buffer and
18447 terminal_encode_buf_size.
18449 * coding.c (consume_chars): If coding->src_object is nil, don't
18452 2008-02-01 Kenichi Handa <handa@m17n.org>
18454 * character.c (char_string): Use ASCII_CHAR_P instead of
18455 SINGLE_BYTE_CHAR_P.
18457 2008-02-01 Kenichi Handa <handa@m17n.org>
18459 * xdisp.c (handle_auto_composed_prop): Check if the last
18460 characters of auto-composed region is newly composed with the
18461 following characters.
18462 (handle_composition_prop): Fix checking of point being inside
18465 2008-02-01 Kenichi Handa <handa@m17n.org>
18467 * fns.c (concat): Don't change multibyteness of the result by
18468 concatenating an 8-bit character.
18470 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18471 multibyteness of the result when newelt is an 8-bit character.
18473 2008-02-01 Dave Love <fx@gnu.org>
18475 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18478 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18480 * xfaces.c (face_numeric_value): Declare dim size_t.
18481 (Finternal_lisp_face_equal_p): Remove unused f.
18483 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18484 (MATRIX_ROW): Remove unused vars.
18485 (draw_glyphs, x_insert_glyphs, fast_find_position)
18486 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18489 * regex.c (regex_compile): Remove unused var.
18491 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18493 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18494 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18496 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18498 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18500 * fileio.c (Fwrite_region): Remove unused var.
18502 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18503 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18505 * composite.c (Fremove_list_of_text_properties): Declare.
18507 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18508 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18509 (coding_inherit_eol_type): Remove unused attrs.
18510 (detect_coding): Cast arg of detect_eol.
18512 * charset.c (syms_of_charset): Remove unused var p.
18513 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18516 * casetab.c (set_case_table): Remove unused var.
18518 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18521 2008-02-01 Dave Love <fx@gnu.org>
18523 * xterm.c (x_bitmap_mask): Declare.
18525 2008-02-01 Dave Love <fx@gnu.org>
18527 * xterm.c (x_term_init): Fix type error.
18529 * lisp.h: Add Funibyte_char_to_multibyte.
18531 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18532 (Fset_coding_system_priority): Doc fix.
18534 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18536 * indent.c (check_composition): Make start and end EMACS_INT.
18538 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18540 * xdisp.c (handle_composition_prop, check_point_in_composition):
18541 Make buffer positions EMACS_INT.
18543 * composite.c (find_composition, run_composition_function)
18544 (update_compositions, Ffind_composition_internal): Make buffer
18545 positions EMACS_INT.
18547 * composite.h (find_composition, update_compositions): Make
18548 position args EMACS_INT.
18550 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18552 * intervals.c (get_property_and_range):
18553 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18555 * unexalpha.c: Don't include varargs.h.
18557 2008-02-01 Dave Love <fx@gnu.org>
18559 * coding.h (ENCODE_UTF_8): New.
18561 * Makefile.in (gtkutil.o): Depend on coding.h.
18563 * coding.c (Fset_coding_system_priority): Doc fix.
18565 2008-02-01 Kenichi Handa <handa@m17n.org>
18567 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18568 the case of auto saving.
18570 2008-02-01 Andreas Schwab <schwab@suse.de>
18572 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18575 2008-02-01 Kenichi Handa <handa@m17n.org>
18577 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18579 2008-02-01 Kenichi Handa <handa@m17n.org>
18581 * fileio.c (choose_write_coding_system): Return a decided coding system.
18582 (Fwrite_region): Set Vlast_coding_system_used to the return value
18583 of choose_write_coding_system.
18585 2008-02-01 Kenichi Handa <handa@m17n.org>
18587 * charset.c (Fset_charset_priority): Pay attention to duplicated
18590 * coding.c (QCcategory): New variable.
18591 (syms_of_coding): Defsym it. Set all elements of
18592 Vcoding_category_table and their symbol values.
18593 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18594 coding-category-XXX, and coding-category-list.
18595 (Fdefine_coding_system_internal): Add category in the plist.
18597 2008-02-01 Kenichi Handa <handa@m17n.org>
18599 * callproc.c (Fcall_process): Handle carryover correctly.
18601 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18602 (raw_text_coding_system): Check NILP (coding_system).
18603 (coding_inherit_eol_type): Check NILP (coding_system) and
18605 (consume_chars): Fix for the case of raw-text.
18607 * process.c (read_process_output): Handle carryover correctly.
18609 2008-02-01 Dave Love <fx@gnu.org>
18611 * regex.c (re_search_2): Fix last change.
18613 2008-02-01 Kenichi Handa <handa@m17n.org>
18615 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18616 target_multibyte. Even in a unibyte case, return a converted
18618 (GET_CHAR_AFTER): New macro.
18619 (PATFETCH): Translate via multibyte char.
18620 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18621 (SETUP_MULTIBYTE_RANGE): New macro.
18622 (regex_compile): Setup compiled code so that its multibyteness
18623 matches that of a target. Fix the handling of "[X-YZ]" using
18624 SETUP_MULTIBYTE_RANGE.
18625 (analyse_first) <charset>: For filling fastmap for all multibyte
18626 characters, don't check by BASE_LEADING_CODE_P.
18627 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18628 the same as RE_MULTIBYTE_P (bufp) now.
18629 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18630 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18631 (TRANSLATE_VIA_MULTIBYTE): New macro.
18632 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18633 It is the same as RE_MULTIBYTE_P (bufp) now.
18634 <exactn>: Translate via multibyte.
18635 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18637 <charset, charset_not>: Fetch a character by
18638 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18639 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18640 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18641 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18643 (bcmp_translate): Likewise.
18645 * search.c (compile_pattern): Check the member target_multibyte,
18646 not the member multibyte of buf.
18648 * lread.c (read1): While reading a string, set force_singlebyte
18649 and force_multibyte correctly.
18651 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18652 up of unibyte_to_multibyte_table.
18654 2008-02-01 Kenichi Handa <handa@m17n.org>
18656 * coding.c (setup_coding_system): If coding has
18657 post-read-conversion or pre-write-conversion, set
18658 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18660 (decode_coding_gap): Run post-read-conversion if any.
18662 * fileio.c (Finsert_file_contents): Even if we read into a
18663 unibyte buffer, check if we must decode the result or not.
18665 2008-02-01 Kenichi Handa <handa@m17n.org>
18667 * coding.c (make_conversion_work_buffer): Change the work buffer
18668 name to the same one as that of Emacs 21.
18670 2008-02-01 Kenichi Handa <handa@m17n.org>
18672 * coding.h (make_conversion_work_buffer): Adjust prototype.
18673 (code_conversion_restore): Don't extern it.
18675 * coding.c (detected_mask): Delete unused variable.
18676 (decode_coding_iso_2022): Pay attention to the byte sequence of
18677 CTEXT extended segment, and retain those bytes as is.
18678 (decode_coding_ccl): Delete unused variable `valids'.
18679 (setup_coding_system): Delete unused variable `category'.
18680 (consume_chars): Delete unused variable `category'. Make it work
18681 for non-multibyte case.
18682 (make_conversion_work_buffer): Change argument.
18683 (saved_coding): Delete unused variable.
18684 (code_conversion_restore): Don't check saved_coding->destination.
18685 (code_conversion_save): New function.
18686 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18687 instead of record_unwind_protect.
18688 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18689 (detect_coding_system): Delete unused variable `mask'.
18690 (Fdefine_coding_system_internal): Delete unused variable id.
18692 * fileio.c (kill_workbuf_unwind): New function.
18693 (Finsert_file_contents): On replacing, call
18694 make_conversion_work_buffer with correct args, and call
18695 record_unwind_protect with the first arg kill_workbuf_unwind.
18697 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18699 2008-02-01 Kenichi Handa <handa@m17n.org>
18701 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18702 (fontset_add): Fix for the case that TO is less than TO1.
18703 (Ffontset_info): Don't use fallback fontset on checking the
18705 (dump_fontset): New function for debugging.
18707 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18708 coding_type is Qcharset.
18710 2008-02-01 Kenichi Handa <handa@m17n.org>
18712 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18713 (map_char_table): Don't inherit the value from the parent on
18714 initializing VAL. Adjust for the above change.
18716 2008-02-01 Kenichi Handa <handa@m17n.org>
18718 * coding.c (Qsignature, Qendian): Delete these variables.
18719 (syms_of_coding): Don't initialize them.
18720 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18721 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18722 detect_info->found.
18723 (decode_coding_utf_16): Don't detect BOM here.
18724 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18725 is NOT utf_16_without_bom.
18726 (setup_coding_system): For a coding system of type utf-16, check
18727 if the attribute :endian is Qbig or not (not nil or not), and set
18728 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18729 (detect_coding): If coding type is utf-16 and BOM detection is
18730 required, detect it.
18731 (Fdefine_coding_system_internal): For a coding system of type
18732 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18734 2008-02-01 Kenichi Handa <handa@m17n.org>
18736 * coding.c (coding_set_source): Fix for the case that the current
18737 buffer is different from coding->src_object.
18738 (decode_coding_object): Don't use the conversion work buffer if
18739 DST_OBJECT is a buffer.
18741 2008-02-01 Dave Love <fx@gnu.org>
18743 * lread.c (read_emacs_mule_char) [len==2]: Index
18744 emacs_mule_charset correctly.
18746 2008-02-01 Dave Love <fx@gnu.org>
18748 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18749 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18750 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18751 treated specially.)
18752 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18753 (detected_mask): Remove Big5 bits.
18755 2008-02-01 Kenichi Handa <handa@m17n.org>
18757 The following changes are to make the font rescaling facility
18758 compatible with Emacs 21.
18760 * xfaces.c (Vface_font_rescale_alist): Rename from
18761 Vface_resizing_fonts.
18762 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18763 (font_rescale_ratio): Rename from font_resizing_ratio.
18764 (split_font_name): Set font->rescale_ratio.
18765 (better_font_p): Pay attention to font->rescale_ratio.
18766 (build_scalable_font_name): Likewise. Change RESX, and RESY
18768 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18770 2008-02-01 Kenichi Handa <handa@m17n.org>
18772 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18773 (Qutf_16_le): Remove these variables.
18774 (syms_of_coding): Don't DEFSYM them.
18775 (decode_coding_utf_16): Fix handling of BOM.
18776 (encode_coding_utf_16): Fix handling of BOM.
18778 2008-02-01 Kenichi Handa <handa@m17n.org>
18780 * fileio.c (Finsert_file_contents): On replacing, before decoding
18781 the file into the work buffer, set point of the work buffer to the end.
18783 2008-02-01 Dave Love <fx@gnu.org>
18785 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18787 2008-02-01 Dave Love <fx@gnu.org>
18789 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18792 2008-02-01 Kenichi Handa <handa@m17n.org>
18794 * xdisp.c (SKIP_GLYPHS): New macro.
18795 (set_cursor_from_row): Pay attention to string display properties.
18797 * category.c (copy_category_entry): Fix for the case that RANGE
18800 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18802 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18804 2008-02-01 Kenichi Handa <handa@m17n.org>
18806 * charset.c (Fcharset_id_internal): New function.
18807 (syms_of_charset): Defsubr it.
18809 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18810 with the last arg charset_list acquired from coding.
18811 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18812 the attribute coding_attr_ccl_valids.
18814 * coding.h (enum define_coding_ccl_arg_index): Set the first
18815 member coding_arg_ccl_decoder to coding_arg_max.
18817 * ccl.h (ccl_driver): Adjust prototype.
18819 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18820 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18821 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18822 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18825 2008-02-01 Kenichi Handa <handa@m17n.org>
18827 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18830 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18832 2008-02-01 Dave Love <fx@gnu.org>
18834 * composite.c (syms_of_composite): Make composition_hash_table weak.
18836 2008-02-01 Kenichi Handa <handa@m17n.org>
18838 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18839 (font_name_registry): Don't extern them.
18840 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18842 * fontset.h (Qfontset): Don't extern it.
18843 (new_fontset_from_font_name): Extern it.
18845 * fontset.c: Give 8 extra slots to fontset objects.
18846 (Qfontset_info): New variable.
18847 (syms_of_fontset): Defsym it.
18848 (FONTSET_FALLBACK): New macro.
18849 (fontset_face): Try also the default fontset.
18850 (make_fontset): Realize a fallback fontset from the default fontset.
18851 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18852 using split_font_name_into_vector and build_font_name_from_vector.
18853 (Fset_fontset_font): Access the elements of font_spec by enum
18854 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18855 name by using split_font_name_into_vector.
18856 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18857 generate a proper font name from the fontset name. Update
18858 Vfontset_alias_alist.
18859 (n_auto_fontsets): New variable.
18860 (new_fontset_from_font_name): New function.
18861 (Ffont_info): Store the information about fonts generated from the
18862 default fontset in the first extra slot of the returned char-table.
18864 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18865 (font_name_registry): Delete function.
18866 (split_font_name_into_vector): New function.
18867 (build_font_name_from_vector): New function.
18868 (font_list): The argument REGISTRY is now a list of registry names.
18869 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18870 specifies an explicit font name, return the name as is. Make a
18871 list of registy names.
18873 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18875 (Fx_create_frame): Don't call x_new_fontset here. Just use
18876 x_list_fonts to check the existence of fonts.
18878 * xterm.h (x_new_fontset): Adjust prototype.
18880 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18881 string. Use new_fontset_from_font_name to create a fontset from a
18884 2008-02-01 Kenichi Handa <handa@m17n.org>
18886 * syntax.c (Vfind_word_boundary_function_table): New name for
18887 Vnext_word_boundary_function_table.
18888 (find-word-boundary-function-table): New name for
18889 next-word-boundary-function-table.
18891 2008-02-01 Dave Love <fx@gnu.org>
18893 * Makefile.in: Fix some dependencies.
18895 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18896 set it to nil before returning.
18898 * composite.c (update_compositions): Fix type error.
18900 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18902 2008-02-01 Kenichi Handa <handa@m17n.org>
18904 * xterm.c (x_new_font): Optimize for the case that the font is
18905 already set for the frame.
18907 2008-02-01 Kenichi Handa <handa@m17n.org>
18909 * chartab.c (char_table_ascii): Check if the char table contents
18910 is sub-char-table or not.
18911 (char_table_set, char_table_set_range): Fix argument to
18914 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18915 (detect_coding_utf_8, detect_coding_utf_16)
18916 (detect_coding_emacs_mule, detect_coding_iso_2022)
18917 (detect_coding_sjis, detect_coding_big5)
18918 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18919 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18920 sequence is valid in this coding system. Change callers.
18921 (MAX_ANNOTATION_LENGTH): New macro.
18922 (ADD_ANNOTATION_DATA): New macro.
18923 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18924 ADD_ANNOTATION_DATA. Change the format of annotation data.
18925 (ADD_CHARSET_DATA): New macro.
18926 (emacs_mule_char): New argument ID. Change callers.
18927 (decode_coding_emacs_mule, decode_coding_iso_2022)
18928 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18929 Produce charset annotation data in coding->charbuf.
18930 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18931 to charset annotation data in coding->charbuf.
18932 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18933 coding->common_flags if the coding system is iso-2022 based and
18935 (produce_composition): Adjust for the new annotation data format.
18936 (produce_charset): New function.
18937 (produce_annotation): Handle charset annotation.
18938 (handle_composition_annotation, handle_charset_annotation): New
18940 (consume_chars): Handle charset annotation. Utilize the above two
18942 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18943 buffer, get the deleted text as a string and set
18944 coding->src_object to that string.
18945 (detect_coding, detect_coding_system): Use the new struct
18946 coding_detection_info.
18948 * coding.h (struct coding_detection_info): New structure.
18949 (struct coding_system): Adjust prototype of the member `detector'.
18950 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18952 2008-02-01 Kenichi Handa <handa@m17n.org>
18954 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18956 2008-02-01 Dave Love <fx@gnu.org>
18958 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18959 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18960 to new local and nullify apropos_accumulate before returning.
18961 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18963 2008-02-01 Kenichi Handa <handa@m17n.org>
18965 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18968 2008-02-01 Dave Love <fx@gnu.org>
18970 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18972 2008-02-01 Kenichi Handa <handa@m17n.org>
18974 The following changes are to make character composition happen
18975 automatically on displaying.
18977 * Makefile.in (lisp, shortlisp): Add composite.elc.
18979 * composite.h (Qauto_composed, Vauto_composition_function)
18980 (Qauto_composition_function): Extern them.
18982 * composite.c (Vcomposition_function_table)
18983 (Qcomposition_function_table): Delete variables.
18984 (Qauto_composed, Vauto_composition_function)
18985 (Qauto_composition_function): New variables.
18986 (run_composition_function): Don't call
18987 compose-chars-after-function.
18988 (update_compositions): Clear `auto-composed' text property.
18989 (compose_chars_in_text): Delete this function.
18990 (syms_of_composite): Staticpro Qauto_composed and
18991 Qauto_composition_function. Declare Vauto_composition_function as
18994 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18996 * xdisp.c (it_props): Add an entry for Qauto_composed.
18997 (handle_auto_composed_prop): New function.
18999 * xselect.c (selection_data_to_lisp_data): Don't call
19000 compose_chars_in_text.
19002 2008-02-01 Dave Love <fx@gnu.org>
19004 * keyboard.c (read_char): Modify checking around use of
19005 Vkeyboard_translate_table.
19007 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19010 2008-02-01 Kenichi Handa <handa@m17n.org>
19012 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19013 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19014 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19015 the case that the last byte is '\r' correctly.
19016 (decode_coding): Flush out the unprocessed data correctly.
19017 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19019 2008-02-01 Dave Love <fx@gnu.org>
19021 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19022 Add XK_ISO... case.
19023 (xaw_scroll_callback): Revert last change.
19025 2008-02-01 Kenichi Handa <handa@m17n.org>
19027 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19029 2008-02-01 Kenichi Handa <handa@m17n.org>
19031 * xfaces.c (Vface_resizing_fonts): New variable.
19032 (struct font_name): New member `resizing_ratio'.
19033 (font_resizing_ratio): New function.
19034 (split_font_name): Set font->resizing_ratio.
19035 (better_font_p): Pay attention to font->resizing_ratio.
19036 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19037 RESX, and RESY fields.
19038 (try_alternative_families): Try scalable fonts if
19039 Vscalable_fonts_allowed is not Qt.
19040 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19042 2008-02-01 Dave Love <fx@gnu.org>
19044 * xterm.c (xaw_scroll_callback): Cast correctly.
19046 2008-02-01 Dave Love <fx@gnu.org>
19048 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19049 (lispy_kana_keys): Comment out.
19050 (make_lispy_event) [XK_kana_A]: Comment out.
19052 * xterm.c (xaw_scroll_callback): Cast call_data.
19053 (XTread_socket): Deal with ASCII keysyms.
19054 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19056 2008-02-01 Dave Love <fx@gnu.org>
19058 * xterm.c (Vx_keysym_table): New.
19059 (syms_of_xterm): Initialize it.
19060 (XTread_socket): Use it.
19061 From head: Eliminate incorrect optimization that tried to avoid
19062 decoding the output of X*LookupString.
19063 (x_get_font_repertory): Delete charset declaration.
19065 2008-02-01 Kenichi Handa <handa@m17n.org>
19067 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19069 (Fdefine_coding_system_internal): Setup
19070 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19072 2008-02-01 Dave Love <fx@gnu.org>
19074 * coding.c (Fcheck_coding_system): Doc fix.
19076 * editfns.c (Finsert_byte): Return a proper value.
19078 2008-02-01 Kenichi Handa <handa@m17n.org>
19080 * coding.c (decode_coding): Fix args to translate_chars. Pay
19081 attention to Vstandard_translation_table_for_decode.
19082 (encode_coding): Fix args to translate_chars. Pay attention to
19083 Vstandard_translation_table_for_encode.
19085 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19086 SINGLE_BYTE_CHAR_P.
19088 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19089 not by SINGLE_BYTE_CHAR_P.
19091 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19092 SINGLE_BYTE_CHAR_P.
19094 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19095 SINGLE_BYTE_CHAR_P.
19097 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19098 by SINGLE_BYTE_CHAR_P.
19100 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19101 SINGLE_BYTE_CHAR_P.
19103 2008-02-01 Dave Love <fx@gnu.org>
19105 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19107 2008-02-01 Dave Love <fx@gnu.org>
19109 * fns.c (Flanginfo): Fix typo.
19111 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19113 2008-02-01 Kenichi Handa <handa@m17n.org>
19115 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19116 (detect_coding_emacs_mule, detect_coding_iso_2022)
19117 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19118 incomplete byte sequence. Don't update *mask when correctly detected.
19119 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19120 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19121 (detect_coding, detect_coding_system): Adjust for the changes above.
19123 2008-02-01 Kenichi Handa <handa@m17n.org>
19125 * character.c (char_string): Rename from
19126 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19127 (string_char): Rename from string_char.
19129 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19130 if C is greater than MAX_3_BYTE_CHAR.
19131 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19132 string_char instead of string_char_with_unification.
19134 2008-02-01 Dave Love <fx@gnu.org>
19136 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19138 2008-02-01 Kenichi Handa <handa@m17n.org>
19140 * keymap.c (push_key_description): Pay attention to force_multibyte.
19142 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19144 2008-02-01 Dave Love <fx@gnu.org>
19146 * charset.c (define_charset_internal): Rename `supprementary'.
19148 * Makefile.in (lisp, shortlisp): Remove latin-N.
19150 2008-02-01 Dave Love <fx@gnu.org>
19152 * xfns.c (x_window, x_window): Use use_xim.
19154 * xterm.c (use_xim): Initialize.
19155 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19156 (x_term_init): Maybe set use_xim.
19158 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19160 2008-02-01 Kenichi Handa <handa@m17n.org>
19162 * search.c (search_buffer): Fix case-fold-search of multibyte
19164 (boyer_moore): Rename the last argument to char_high_bits.
19166 2008-02-01 Kenichi Handa <handa@m17n.org>
19168 * xdisp.c (display_string): Fix for the case of zero width glyph.
19170 * xfns.c (x_set_font): Change the error message of the case that
19171 x_new_fontset returns Qt.
19173 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19174 (Finternal_set_lisp_face_attribute): Use signal_error for the
19175 error of invalid fontset.
19177 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19178 fontset, return Qt.
19180 2008-02-01 Dave Love <fx@gnu.org>
19182 * unexelf.c (unexec): Make .got handling not SGI-specific.
19184 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19186 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19188 * keyboard.c (read_key_sequence): Fix type error.
19190 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19193 * fontset.c (fontset_add): Return Lisp_Object.
19195 2008-02-01 Dave Love <fx@gnu.org>
19197 * charset.h (charset_ordered_list_tick): Declare extern.
19199 2008-02-01 Kenichi Handa <handa@m17n.org>
19201 The following changes (and some of 2008-02-01 changes of mine) are
19202 for handling syntax, category, and case conversion for unibyte
19203 characters by converting them to multibyte on the fly. With these
19204 changes, we don't have to setup syntax and case tables for unibyte
19205 characters in each language environment.
19207 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19208 multibyte if necessary.
19210 * bytecode.c (Fbyte_code): Likewise.
19212 * character.h (LEADING_CODE_LATIN_1_MIN)
19213 (LEADING_CODE_LATIN_1_MAX): New macros.
19214 (unibyte_to_multibyte_table): Extern it.
19215 (unibyte_char_to_multibyte): New macro.
19216 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19217 (CHAR_LEADING_CODE): New macro.
19218 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19220 * character.c (unibyte_to_multibyte_table): New variable.
19221 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19222 (multibyte_char_to_unibyte): If C is an eight-bit character,
19223 convert it to the corresponding byte value.
19225 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19226 not 1, signals an error. Update the elements of
19227 unibyte_to_multibyte_table.
19228 (init_charset_once): Initialize unibyte_to_multibyte_table.
19229 (syms_of_charset): Define the charset `iso-8859-1'.
19231 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19232 as is without converting it to unibyte. In a unibyte buffer,
19233 convert C to multibyte before checking the syntax.
19235 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19237 * minibuf.c (Fminibuffer_complete_word): Use the macro
19238 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19240 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19242 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19243 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19244 that is zero, convert an eight-bit char to multibyte.
19245 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19247 (PATFETCH): Convert an eight-bit char to multibyte.
19248 (HANDLE_UNIBYTE_RANGE): New macro.
19249 (regex_compile): Setup the compiled pattern for multibyte chars
19250 even if the given regex string is unibyte. Use PATFETCH_RAW
19251 instead of PATFETCH in many places. To handle `charset'
19252 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19253 only for ASCII chars.
19254 (analyse_first) <exactn>: Simplify because the compiled pattern
19256 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19257 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19258 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19259 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19260 multibyte always 1.
19261 (re_search_2): In emacs, set the locale variable multibyte to 1,
19262 otherwise to 0. New local variable target_multibyte. Check it
19263 to decide the multibyteness of STR1 and STR2. If
19264 target_multibyte is zero, convert unibyte chars to multibyte
19265 before translating and checking fastmap.
19266 (TARGET_CHAR_AND_LENGTH): New macro.
19267 (re_match_2_internal): In emacs, set the locale variable multibyte
19268 to 1, otherwise to 0. New local variable target_multibyte. Check
19269 it to decide the multibyteness of STR1 and STR2. Use
19270 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19271 <charset, charset_not>: If multibyte is nonzero, check fastmap
19272 only for ASCII chars. Call bcmp_translate with
19273 target_multibyte, not with multibyte.
19274 <begline>: Declare the local variable C as `unsigned'.
19275 (bcmp_translate): Change the last arg name to target_multibyte.
19277 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19278 the regexp pattern and the matching target. Set cp->buf.multibyte
19279 to the multibyteness of the regexp pattern. Set
19280 cp->but.target_multibyte to the multibyteness of the matching target.
19281 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19282 FETCH_STRING_CHAR_ADVANCE.
19283 (Freplace_match): Convert unibyte chars to multibyte.
19285 * syntax.c (char_quoted, back_comment, scan_words)
19286 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19287 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19288 unibyte chars to multibyte.
19289 (skip_chars): Delete the arg syntaxp, and move the code for
19290 handling syntaxes to skip_syntaxes. Change callers.
19291 Fix the case that the multibyteness of STRING and the current
19292 buffer doesn't match.
19293 (skip_syntaxes): New function.
19294 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19295 SINGLE_BYTE_CHAR_P.
19297 2008-02-01 Kenichi Handa <handa@m17n.org>
19299 * xfaces.c (QCfontset): New variable.
19300 (LFACE_FONTSET): New macro.
19301 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19302 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19303 (Finternal_set_lisp_face_attribute)
19304 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19305 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19306 check also LFACE_FONTSET_INDEX.
19307 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19308 attrs[LFACE_FONT_INDEX].
19309 (syms_of_xfaces): Intern and staticpro QCfontset.
19311 * dispextern.h (enum lface_attribute_index): New member
19312 LFACE_FONTSET_INDEX.
19314 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19316 2008-02-01 Kenichi Handa <handa@m17n.org>
19318 * coding.c (coding_set_destination): Fix coding->destination for
19319 the case converting a region.
19320 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19321 (encode_coding_object): Fix coding->dst_pos and
19322 coding->dst_pos_byte for the case converting a region.
19324 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19326 * character.h (BYTE8_STRING): New macro.
19328 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19330 2008-02-01 Kenichi Handa <handa@m17n.org>
19332 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19333 characters by octal form.
19335 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19337 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19338 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19339 _fetch_multibyte_char_len.
19340 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19342 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19344 * casefiddle.c (casify_object): Simplify. Handle the case that
19345 the case conversion change the byte length.
19346 (casify_region): Likewise.
19348 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19350 * character.c (_fetch_multibyte_char_len): Delete this variable.
19351 (syms_of_character): Setup Vprintable_chars.
19353 * editfns.c (Fchar_equal): Fix for the unibyte case.
19354 (Finsert_byte): New function.
19355 (syms_of_editfns): Defsubr it.
19357 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19358 of direct code 0x3ffff.
19360 * search.c (Freplace_match): Fix for the unibyte case.
19362 2008-02-01 Kenichi Handa <handa@m17n.org>
19364 * lread.c (safe_to_load_p): Fix the logic.
19366 * syntax.c (scan_words): Don't treat characters belonging to
19367 different scripts as constituting a word.
19369 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19371 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19373 * emacs.c (main): In the case of --unibyte, instead of aborting on
19374 finding non-empty buffer, make it unibyte.
19376 2008-02-01 Kenichi Handa <handa@m17n.org>
19378 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19379 to create a fontset.
19381 2008-02-01 Dave Love <fx@gnu.org>
19383 * character.c (Funibyte_char_to_multibyte): Doc fix.
19385 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19387 2008-02-01 Kenichi Handa <handa@m17n.org>
19389 * fontset.c (fontset_add): Make the type `int'.
19390 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19392 * character.c (unibyte_char_to_multibyte)
19393 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19394 charset_unibyte, not charset_primary.
19396 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19398 * charset.c (charset_unibyte): Rename from charset_primary.
19399 (Funibyte_charset): Rename from Fprimary_charset.
19400 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19401 (syms_of_charset): Adjust for the above changes.
19403 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19404 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19405 it->multibyte_p is zero.
19407 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19410 2008-02-01 Kenichi Handa <handa@m17n.org>
19412 * coding.c (Fdefine_coding_system_internal): Fix category setting
19413 for a coding system of type iso-2022.
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19417 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19419 2008-02-01 Kenichi Handa <handa@m17n.org>
19421 * syntax.c (Vnext_word_boundary_function_table): New variable.
19422 (next-word-boundary-function-table): Declare it as a Lisp variable
19424 (scan_words): Call functions in Vnext_word_boundary_function_table
19427 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19429 * fontset.c (fs_load_font): If fontp->charset is not negative,
19430 return fontp without setting its members.
19432 2008-02-01 Dave Love <fx@gnu.org>
19434 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19436 * m/sparc.h (HAVE_ALLOCA): Delete.
19438 * s/irix6-5.h: Don't include strings.h.
19439 (bcopy, bzero, bcmp): Don't undef.
19441 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19443 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19444 (TIOCSIGSEND): Don't test IRIX6.
19445 (bcopy, bzero, bcmp): Define conditionally.
19447 2008-02-01 Kenichi Handa <handa@m17n.org>
19449 * buffer.c (Qas, Qmake, Qto): New variables.
19450 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19451 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19453 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19454 we are inserting a process output into a multibyte buffer.
19456 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19457 multibyte_char_to_unibyte.
19459 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19460 by the primary charset, make it eight-bit char.
19461 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19463 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19464 (charset_8_bit__control, charset_8_bit_graphic)
19465 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19466 (define_charset_internal): New function.
19467 (syms_of_charset): Call define_charset_internal for pre-defined
19470 * charset.h (charset_8_bit): Extern it.
19472 * coding.c (make_conversion_work_buffer): Adjust for the change
19473 of Fset_buffer_multibyte.
19474 (encode_coding_raw_text): Increment p0 in the loop.
19476 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19478 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19479 for the change of Fset_buffer_multibyte.
19481 * fns.c (Fstring_to_multibyte): New function.
19482 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19484 2008-02-01 Dave Love <fx@gnu.org>
19486 * xfns.c (x_put_x_image): Declare args.
19488 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19489 (try_font_list): Declare an arg.
19491 * xdisp.c (message2_nolog, set_message): Declare an arg.
19493 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19495 * syntax.c (scan_sexps_forward): Declare an arg.
19497 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19500 * lisp.h (Fnew_fontset): Declare.
19502 * keymap.c (push_key_description): Call CHARACTERP correctly.
19504 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19505 (face_for_char): Delete unused vars.
19506 (Fset_fontset_font): Doc fix. Delete unused vars.
19508 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19510 * composite.c (update_compositions): Declare arg.
19512 * cm.c (calccost, cmgoto): Declare args.
19514 * charset.c: Remove `emacs' conditional. Doc fixes.
19515 (map_char_table_for_charset): Declare.
19517 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19519 * ccl.c: Remove `emacs' conditional.
19521 2008-02-01 Kenichi Handa <handa@m17n.org>
19523 The following changes are to allow specifying multiple font
19524 patterns for a character range (specified by script or charset).
19526 * Makefile.in (abbrev.o): Depend on syntax.h.
19527 (xfaces.o): Depend on charset.h.
19529 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19530 SINGLE_BYTE_CHAR_P.
19532 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19534 * character.h (Vchar_script_table): Extern it.
19536 * character.c (Vscript_alist): Delete.
19537 (Vchar_script_table, Qchar_script_table): New variable.
19538 (syms_of_character): Declare Vchar_script_table as a lisp variable
19541 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19542 have property char-table-extra-slots, make no extra slot.
19544 * dispextern.h (struct face): Delete member `charset'.
19545 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19546 SINGLE_BYTE_CHAR_P.
19547 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19549 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19550 (generate_ascii_font_name): Rename from generate_ascii_font.
19552 * fontset.h (get_font_repertory_func): New prototype.
19553 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19554 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19556 * fontset.c (Qprepend, Qappend): New variables.
19557 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19558 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19559 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19560 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19561 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19562 (load_font_get_repertory): New functions.
19563 (fontset_set): Delete.
19564 (fontset_face): New arg FACE. Return face ID, not face.
19565 Complete re-write to handle new fontset structure. Change caller.
19566 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19567 (face_for_char): Don't call lookup_face.
19568 (make_fontset_for_ascii_face): New arg FACE.
19569 (fs_load_font): New arg CHARSET_ID. Don't check
19570 Vfont_encoding_alist here.
19571 (find_font_encoding): New function.
19572 (list_fontsets): Use STRINGP, not ! NILP.
19573 (accumulate_script_ranges): New function.
19574 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19575 re-written to handle new fontset structure.
19576 (Ffontset_font): Return a copy of element.
19577 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19578 docstring of font-encoding-alist.
19580 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19581 (Fset_fotset_font): Fix arguments to 5.
19583 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19585 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19586 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19587 (highlight_trailing_whitespace): Adjust for the change of
19590 * xfaces.c: Include charset.h.
19591 (load_face_font): Delete argument C. Change caller.
19592 (generate_ascii_font_name): Rename from generate_ascii_font.
19593 (font_name_registry): New function.
19594 (cache_face): Store ascii faces before non-ascii faces in buckets.
19595 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19596 Lookup only ascii faces.
19597 (lookup_non_ascii_face): New function.
19598 (lookup_named_face): Delete argument C. Change caller.
19599 (lookup_derived_face): Delete argument C. Change caller.
19600 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19601 a string, just call font_list with it.
19602 (choose_face_font): Delete arguments FACE and C. New arg
19603 FONT_SPEC. Change caller.
19604 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19606 (realize_non_ascii_face): New function.
19607 (realize_x_face): Call load_face_font here.
19608 (realize_tty_face): Delete argument C. Change caller.
19609 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19611 (dump_realized_face): Don't print charset of FACE.
19613 * xfns.c (x_set_font): Always call x_new_fontset and
19614 store_frame_parameter.
19615 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19616 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19618 * xterm.h (x_get_font_repertory): Extern it.
19620 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19621 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19622 it->multibyte_p is zero.
19623 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19624 (x_new_fontset): If FONTSETNAME doesn't match any existing
19625 fontsets, create a new one.
19626 (x_get_font_repertory): New function.
19628 2008-02-01 Kenichi Handa <handa@m17n.org>
19630 * coding.c (Ffind_coding_systems_region_internal): Detect an
19631 ASCII only string correctly.
19633 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19636 2008-02-01 Kenichi Handa <handa@m17n.org>
19638 * lread.c: Include "coding.h".
19639 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19640 (load_each_byte, unread_char): New variables.
19641 (readchar_backlog): Delete.
19642 (readchar): Return a character unless load_each_byte is nonzero.
19643 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19644 cons. If unread_char is not -1, simply return it.
19645 (unreadchar): Handle the case that readcharfun is
19646 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19647 (read_multibyte): Delete.
19648 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19649 (read_emacs_mule_char): New functions.
19650 (Fload): Even if the file doesn't have the extension ".elc", if
19651 safe_to_load_p returns a positive version number, assume that the
19652 file contains bytecompiled code. If the version is less than 22,
19653 load the file while decoding multibyte sequences by emacs-mule.
19654 (readevalloop): Don't use readchar_backlog.
19655 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19656 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19657 (read_escape): Delete the arg BYTEREP.
19658 (read1): Set load_each_byte to 1 temporarily while handling
19659 #@NUMBER. Don't call read_multibyte.
19660 (read_vector): Call Fread with a cons. If readcharfun is
19661 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19662 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19663 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19664 and Qload_force_doc_strings.
19666 2008-02-01 Kenichi Handa <handa@m17n.org>
19668 * xdisp.c (face_before_or_after_it_pos): Call
19669 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19671 2008-02-01 Kenichi Handa <handa@m17n.org>
19673 * character.h (TRAILING_CODE_P): New macro.
19674 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19675 (string_char_with_unification): Fix prototype.
19676 (Vscript_alist): Extern it.
19678 * character.c (Vscript_alist): New variable.
19679 (string_char_with_unification, str_as_unibyte)
19680 (string_escape_byte8): Add `const' to local variables.
19681 (syms_of_character): Declare script-alist as a Lisp variable.
19683 * charset.h (Vcharset_ordered_list): Extern it.
19684 (charset_ordered_list_tick): Extern it.
19685 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19686 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19687 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19688 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19689 (Funify_charset): Adjust for the change of Funify_charset.
19691 * charset.c (charset_ordered_list_tick): New variable.
19692 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19693 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19694 deunify intead of unify a charset.
19695 (string_xstring_p): Add `const' to local variables.
19696 (find_charsets_in_text): Add `const' to arguments and local variables.
19697 (encode_char): Adjust for the change of Funify_charset. Fix
19698 detecting of invalid code.
19699 (Fset_charset_priority): Increment charset_ordered_list_tick.
19700 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19703 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19704 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19705 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19706 (decode_coding_ccl, consume_chars)
19707 (Ffind_coding_systems_region_internal)
19708 (Fcheck_coding_systems_region): Add `const' to local variables.
19710 * print.c (print_object): Use octal form for printing the
19711 contents of a bool vector.
19713 2008-02-01 Dave Love <fx@gnu.org>
19715 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19716 <version == 20>: Refuse to load.
19718 2008-02-01 Dave Love <fx@gnu.org>
19720 * fns.c: Move coding.h.
19721 (Qcodeset, Qdays, Qmonths): New.
19722 (concat): Use CHARACTERP instead of INTEGERP.
19723 (Flocale_codeset): Delete.
19724 (Flanginfo): New function.
19725 (syms_of_fns): Change accordingly.
19727 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19729 2008-02-01 Dave Love <fx@gnu.org>
19731 * casetab.c (init_casetab_once, init_casetab_once): Fix
19732 CHAR_TABLE_SET call.
19734 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19736 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19738 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19739 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19740 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19742 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19744 * coding.c (ENCODE_DESIGNATION, decode_eol)
19745 (make_conversion_work_buffer, code_conversion_restore)
19746 (Fdefine_coding_system_internal): Convert Lisp types.
19747 (code_conversion_restore): Use EQ, not ==.
19748 (Fencode_coding_string): Fix code_convert_string call.
19750 * coding.h (code_convert_region): Fix prototype.
19752 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19754 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19755 (Ffontset_info): Convert Lisp types.
19757 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19759 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19761 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19763 * chartab.c: Include "...h", not <...h> in some cases.
19765 * callproc.c (Fcall_process): Remove unused variables.
19767 2008-02-01 Dave Love <fx@gnu.org>
19769 * coding.c (Fset_coding_system_priority): Allow null arg list.
19771 2008-02-01 Dave Love <fx@gnu.org>
19773 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19774 (Fself_insert_and_exit): Use CHARACTERP.
19776 * callproc.c (Fcall_process): Remove unused vars.
19778 * xterm.c (XTread_socket): Add extra dead keysyms.
19780 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19782 * dispextern.h: Remove prototypes for redraw_frame,
19783 redraw_garbaged_frames.
19785 * cmds.c (Fself_insert_command): Use CHARACTERP.
19787 * chartab.c (make_sub_char_table): Remove unused var.
19788 (Fset_char_table_default, Fmap_char_table): Doc fix.
19790 * keymap.c (access_keymap): Remove generic char code.
19791 (push_key_description): Use CHARACTERP.
19793 2008-02-01 Dave Love <fx@gnu.org>
19795 * charset.c: Doc fixes.
19796 (Funify_charset): Extra checking.
19798 2008-02-01 Dave Love <fx@gnu.org>
19800 * lread.c: Remove some unused variables.
19801 (safe_to_load_p): If safe, return the magic number version byte.
19802 (Fload): Maybe use load-with-code-conversion.
19804 2008-02-01 Kenichi Handa <handa@m17n.org>
19806 * category.c (Fmodify_category_entry): Don't modify the contents
19807 of category_set for characters out of the range. Avoid
19808 unnecessary modification.
19810 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19811 Vchar_unify_table. The default value of the table is now nil.
19813 * character.c (syms_of_character): Setup Vchar_width_table for
19814 eight-bit-control and raw-byte chars.
19816 * charset.h (enum define_charset_arg_index): Delete
19817 charset_arg_parents and add charset_arg_subset and
19818 charset_arg_superset.
19819 (enum charset_attr_index): Delete charset_parents and add
19820 charset_subset and charset_superset.
19821 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19822 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19823 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19824 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19825 (CHARSET_SUPERSET): New macros.
19826 (charset_work): Extern it.
19827 (ENCODE_CHAR): Use charset_work.
19828 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19829 (map_charset_chars): Extern it.
19831 * charset.c (load_charset_map): Set the default value of encoder
19832 and deunifier char-tables to nil.
19833 (map_charset_chars): Change argument. Change callers. Use
19834 map_char_table_for_charset instead of map_char_table.
19835 (Fmap_charset_chars): New optional args from_code and to_code.
19836 (Fdefine_charset_internal): Adjust for the change of
19837 `define-charset' (:parents -> :subset or :superset).
19838 (charset_work): New variable.
19839 (encode_char, syms_of_charset): Adjust for the change of
19840 Fdefine_charset_internal.
19841 (Ffind_charset_string): Setup the vector `charsets' correctly.
19843 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19844 the previous change.
19845 (char_table_ref_and_range): Adjust for the above change.
19846 (map_sub_char_table_for_charset): New function.
19847 (map_char_table_for_charset): New function.
19849 * keymap.c (describe_vector): Handle a char-table directly here.
19850 (describe_char_table): Delete.
19852 * lisp.h (map_charset_chars): Delete.
19854 2008-02-01 Dave Love <fx@gnu.org>
19856 * fns.c (count_combining): Comment out (unused).
19857 (Flocale_codeset): New.
19858 (syms_of_fns): Defsubr it.
19860 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19863 2008-02-01 Dave Love <fx@gnu.org>
19865 * Makefile.in (chartab.o): Depend on charset.h.
19867 2008-02-01 Kenichi Handa <handa@m17n.org>
19869 * character.c (syms_of_character): Set the default value of
19870 Vprintable_chars to Qnil.
19872 2008-02-01 Dave Love <fx@gnu.org>
19874 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19876 2008-02-01 Kenichi Handa <handa@m17n.org>
19878 * charset.c (load_charset_map): Handle the case that from < to
19881 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19882 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19883 Pay attention to raw-8-bit chars.
19885 2008-02-01 Kenichi Handa <handa@m17n.org>
19887 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19888 It is not bytecompiled now.
19890 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19891 (charset_jisx0208): New variables.
19892 (Fdefine_charset_internal): Setup them if appropriate.
19893 (init_charset_once): Initialize them to -1.
19895 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19896 (charset_jisx0208): Extern them.
19898 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19899 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19900 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19901 (setup_iso_safe_charsets): Fix arguments to Fassq.
19902 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19903 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19904 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19905 (encode_coding_iso_2022): Change the 1st arg to
19906 ENCODE_ISO_CHARACTER to a variable.
19908 2008-02-01 Kenichi Handa <handa@m17n.org>
19910 * charset.h (enum define_charset_arg_index): New enums
19911 charset_arg_min_code and charset_arg_max_code.
19912 (struct charset): New member char_index_offset.
19914 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19915 Take charset->char_index_offset into account.
19916 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19917 args[charset_arg_max_code]. Setup charset.char_index_offset.
19918 (syms_of_charset): Fix args to Fdefine_charset_internal.
19920 2008-02-01 Dave Love <fx@gnu.org>
19922 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19924 2008-02-01 Dave Love <fx@gnu.org>
19926 * coding.c: Doc fixes.
19927 (Fcoding_system_aliases): Fix return value.
19928 (Qmac): Remove (duplicated) definition.
19930 2008-02-01 Dave Love <fx@gnu.org>
19932 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19935 * character.c (Fstring): Doc fix.
19937 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19939 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19940 (font-encoding-alist): Doc fix.
19942 2008-02-01 Dave Love <fx@gnu.org>
19944 * term.c (costs_set): Declare static, non-initialized for pcc.
19945 (encode_terminal_code): Remove unused var.
19947 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19950 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19952 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19953 (suffixes): Move out of make_subsidiaries for K&R.
19955 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19957 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19959 2008-02-01 Dave Love <fx@gnu.org>
19961 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19963 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19965 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19967 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19969 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19971 2008-02-01 Kenichi Handa <handa@m17n.org>
19973 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19974 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19976 2008-02-01 Kenichi Handa <handa@m17n.org>
19978 * coding.c (decode_coding_charset): Adjust for the change of
19979 Fdefine_coding_system_internal.
19980 (Fdefine_coding_system_internal): For a coding system of
19981 `charset' type, store a list of charset IDs in
19982 `charset_attr_charset_valids' element of coding attributes.
19984 2008-02-01 Kenichi Handa <handa@m17n.org>
19986 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19987 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19988 caller. Handle 2-byte and 3-byte charsets correctly.
19989 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19990 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19991 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19992 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19993 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19995 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19996 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19997 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19998 and alt&rule composition.
19999 (decode_coding_iso_2022): Handle composition correctly.
20000 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20002 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20003 re-defining a charset. If the charset has :emacs-mule-id, setup
20005 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20007 2008-02-01 Kenichi Handa <handa@m17n.org>
20009 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20010 (encode_coding_big5, encode_coding_charset): If coding requires safe
20011 encoding, produce a character specified by
20012 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20014 2008-02-01 Dave Love <fx@gnu.org>
20016 * xterm.c (XSetIMValues): Declare.
20018 * process.c: Conditionally include sys/wait.h, pty.h.
20020 * print.c (print_object): Fix print format for 64-bit systems.
20022 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20024 * buffer.c (emacs_strerror): Declare.
20026 * fontset.c (Fclear_face_cache): Declare.
20027 (accumulate_font_info): Comment-out (unused).
20028 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20031 * character.h (string_escape_byte8): Declare.
20033 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20035 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20036 (Fmap_charset_chars): Doc fix.
20038 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20039 (Fset_coding_system_priority, Fset_coding_system_priority)
20040 (Fdefine_coding_system_internal): Doc fix.
20042 2008-02-01 Dave Love <fx@gnu.org>
20044 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20046 2008-02-01 Kenichi Handa <handa@m17n.org>
20048 * character.c (string_escape_byte8): Make multibyte string with
20051 * charset.c (Fmake_char): Delete unnecessary code.
20053 2008-02-01 Kenichi Handa <handa@m17n.org>
20055 * xfns.c (x_encode_text): Allocate coding.destination here, and
20056 call encode_coding_object with dst_object Qnil.
20058 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20059 multibyte form correctly.
20061 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20062 against Vfont_encoding_alist.
20064 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20065 handling of charset list.
20066 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20067 (decode_coding_object): Move point to coding->dst_pos before
20068 calling post-read-conversion function.
20069 (encode_coding_object): Give correct arguments to
20070 pre-write-conversion. Ignore the return value of
20071 pre-write-conversion function. Pay attention to the case that
20072 pre-write-conversion changes the current buffer. If dst_object is
20073 Qt, even if coding->src_bytes is zero, allocate at least one byte
20074 to coding->destination.
20076 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20078 * charset.c (Fmake_char): Make it more backward compatible.
20079 (Fmap_charset_chars): Fix docstring.
20081 2008-02-01 Dave Love <fx@gnu.org>
20083 * coding.c: Doc fixes.
20084 (Fdefine_coding_system_alias): Use names, not symbols, in
20085 coding-system-alist.
20087 2008-02-01 Kenichi Handa <handa@m17n.org>
20089 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20090 of calling free_realized_face.
20092 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20094 * charset.c (read_hex): Don't treat SPC as a comment starter.
20095 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20096 (Fdecode_char): Fix typo.
20098 2008-02-01 Kenichi Handa <handa@m17n.org>
20100 * charset.h (struct charset): New member `code_space_mask'.
20102 * coding.c (coding_set_source): Delete the local variable beg_byte.
20103 (encode_coding_charset, Fdefine_coding_system_internal):
20104 Delete the local variable charset.
20105 (Fdefine_coding_system_internal): Setup
20106 attrs[coding_attr_charset_valids] correctly.
20108 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20109 member to check if CODE is valid or not.
20110 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20111 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20112 is within the range of charset->min_code and carset->max_code.
20114 2008-02-01 Dave Love <fx@gnu.org>
20116 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20118 * dispextern.h (generate_ascii_font): Fix return type.
20120 * xfaces.c (generate_ascii_font): Fix arg declaration.
20122 * coding.c (coding_inherit_eol_type)
20123 (Fset_terminal_coding_system_internal)
20124 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20126 2008-02-01 Kenichi Handa <handa@m17n.org>
20128 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20129 multiple charsets correctly.
20131 2008-02-01 Kenichi Handa <handa@m17n.org>
20133 * search.c (boyer_moore): Fix handling of multibyte character
20136 * xdisp.c (display_mode_element): When the variable `elt' is
20137 changed, update `this' and `lisp_string'.
20139 2008-02-01 Kenichi Handa <handa@m17n.org>
20141 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20143 * callproc.c (Fcall_process): Be sure to give the current buffer
20144 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20146 * charset.c (struct charset_map_entries): New struct.
20147 (load_charset_map): Rename from parse_charset_map. New args
20148 entries and n_entries. Change caller.
20149 (load_charset_map_from_file): Rename from load_charset_map.
20150 Change caller. New arg control_flag. Call load_charset_map at
20152 (load_charset_map_from_vector): New function.
20153 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20154 (encode_char): If the charset is compact, change a character index
20157 * coding.c (coding_alloc_by_making_gap): Check the case that the
20158 source and destination are the same correctly.
20159 (decode_coding_raw_text): Set coding->consumed_char and
20160 coding->consumed to 0.
20161 (produce_chars): If coding->chars_at_source is nonzero, update
20162 coding->consumed_char and coding->consumed before calling
20164 (Fdefine_coding_system_alias): Register ALIAS in
20165 Vcoding_system_alist.
20166 (syms_of_coding): Define `no-conversion' coding system at the tail.
20168 * fileio.c (Finsert_file_contents): Set coding_system instead of
20169 val. If the current buffer is multibyte, always call
20172 * xfaces.c (try_font_list): Give higher priority to fontset's
20173 family than face's family.
20175 2008-02-01 Kenichi Handa <handa@m17n.org>
20177 * callproc.c (Fcall_process): Be sure to give the current buffer
20178 to decode_coding_c_string.
20180 * xfaces.c (try_font_list): Give a family specified in a fontset
20181 higher priority than a family specified in a face.
20183 2008-02-01 Kenichi Handa <handa@m17n.org>
20185 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20186 Fix arguments to insert_from_buffer.
20188 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20190 2008-02-01 Kenichi Handa <handa@m17n.org>
20192 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20193 (decode_coding_gap): Set coding->dst_multibyte correctly.
20195 2008-02-01 Kenichi Handa <handa@m17n.org>
20197 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20198 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20199 (encode_coding_utf_16): Substitute coding->default_char for
20200 non-Unicode characters.
20201 (decode_coding): Don't call record_insert here.
20202 (setup_coding_system): Initialize `surrogate' of
20203 coding->spec.utf_16 to 0.
20204 (EMIT_ONE_BYTE): Fix for multibyte case.
20206 * insdel.c (insert_from_gap): Call record_insert.
20208 2008-02-01 Kenichi Handa <handa@m17n.org>
20210 * casefiddle.c (casify_region): Fix multibyte case.
20212 * character.c (c_string_width): Add return type `int'.
20213 (char_string_with_unification): Delete arg ADVANCED.
20215 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20216 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20217 (CHAR_STRING_ADVANCE): Make it do-while statement.
20219 * chartab.c (sub_char_table_set_range): Optimize for the case
20220 DEPTH == 3. Add workaround code for a GCC optimization bug.
20222 * charset.c (parse_charset_map): Remove an unused variable.
20224 * coding.c: Delete unused variables.
20226 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20227 earlier. If inserted is zero and the coding system doesn't
20228 require flushing, don't call decode_coding_gap.
20230 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20232 2008-02-01 Kenichi Handa <handa@m17n.org>
20234 The following changes are for using Unicode as an internal
20235 character model, and use UTF-8 format for buffer/string
20238 * .gdbinit (xchartable): Adjust for the change of char table structure.
20239 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20241 * Makefile.in (obj): Add character.o and chartab.o.
20242 (lisp, shortlisp): Remove utf-8.elc.
20243 (*.o): For many files, change dependency on charset.h to
20244 character.h, and add dependency on character.h.
20245 (character.o, chartab.o): New targets.
20247 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20248 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20249 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20252 * dired.c, filelock.c: Include "character.h".
20254 * alloc.c: Include "character.h" instead of "charset.h".
20255 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20256 (syms_of_alloc): Remove defsubr for Smake_char_table.
20258 * buffer.c: Include "character.h" instead of "charset.h", don't
20259 include "coding.h".
20260 (Fset_buffer_multibyte): Adjust for UTF-8.
20262 * buffer.h: EXFUN Fbuffer_live_p.
20264 * callproc.c: Include "character.h" instead of "charset.h".
20265 (Fcall_process): Big change for the new code-conversion APIs.
20267 * casetab.c: Include "character.h" instead of "charset.h".
20268 (set_canon, set_identity, shuffle): Adjust for the new
20269 map_char_table spec.
20270 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20271 accessing the char table structure.
20273 * chartab.c: New file that implements char table.
20275 * category.c: Include "character.h".
20276 (copy_category_entry): New function.
20277 (copy_category_table): Call map_char_table and copy_category_entry.
20278 (Fmake_category_table): Initialize all top-level slots.
20279 (char_category_set): New function.
20280 (modify_lower_category_set): Delete.
20281 (Fmodify_category_entry): Call char_table_ref_and_range.
20283 * category.h (CATEGORY_SET): Just call char_category_set.
20285 * ccl.c: Include "character.h".
20286 (Qccl, Qcclp): New variables.
20287 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20288 it's less than 256.
20289 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20290 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20292 (ccl_driver): Change types of argument, adjust code accordingly.
20293 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20295 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20297 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20298 New members src_multibyte, dst_multibyte, consumed, and produced.
20299 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20300 (CODING_SPEC_CCL_PROGRAM): New macro.
20301 (ccl_driver): Update prototype.
20302 (Qccl, Qcclp, Fccl_program_p): Extern them.
20303 (CHECK_CCL_PROGRAM): New macro.
20305 * character.c, character.h, chartab.c: New files.
20307 * charset.c: Mostly re-written. Move character and multibyte sequence
20308 handling codes to character.c.
20310 * charset.h: Mostly re-written. Move character and multibyte sequence
20311 handling codes to character.h.
20313 * coding.c, coding.h: Mostly re-written.
20315 * composite.c: Include "character.h" instead of "charset.h".
20316 (CHAR_WIDTH): Move to character.h.
20317 (HASH_KEY, HASH_VALUE): Delete.
20319 * composite.h (enum composition_method): Change order of enumeration
20322 * data.c: Include "character.h" instead of "charset.h".
20323 (Faref): Call CHAR_TABLE_REF for a char table.
20324 (Faset): Call CHAR_TABLE_SET for a char table.
20326 * dispextern.h (free_realized_face, check_face_attribytes)
20327 (generate_ascii_font): Extern them.
20328 (free_realized_multibyte_face): Delete extern.
20330 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20333 * editfns.c: Include "character.h" instead of "charset.h".
20334 (Fchar_to_string): Always call CHAR_STRING.
20336 * emacs.c (main): Call init_charset_once, init_charset,
20337 syms_of_chartab, and syms_of_character.
20339 * fileio.c: Include "character.h" instead of "charset.h".
20340 (Finsert_file_contents): Big change for the new code-conversion API.
20341 (choose_write_coding_system, Fwrite_region): Likewise.
20342 (build_annotations_2): Delete.
20343 (e_write): Big change for the new code-conversion API.
20345 * fns.c: Include "character.h" instead of "charset.h".
20346 (copy_sub_char_table): Move to chartab.c.
20347 (Fcopy_sequence): Call copy_char_table for a char table.
20348 (concat): Delete codes calling count_multibyte.
20349 (string_char_to_byte, string_byte_to_char): Adjust for the new
20351 (internal_equal): Adjust for the change of char table structure.
20352 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20353 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20354 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20355 (char_table_translate, optimize_sub_char_table)
20356 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20358 (char_table_ref_and_index): Delete.
20359 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20360 (Fmd5): Call preferred_coding_system instead of accessing
20361 Vcoding_category_list. Adjust for the new code-conversion API.
20362 (syms_of_fns): Move defsubr for char table related functions to
20365 * fontset.c: Mostly re-written.
20367 * fontset.h (struct font_info): Change type of the member encoding_type.
20368 (enum FONT_SPEC_INDEX): New enum.
20369 (fontset_font_pattern, fs_load_font): Update prototype.
20370 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20372 * indent.c: Include "character.h" instead of "charset.h".
20373 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20375 * insdel.c: Include "character.h" instead of "charset.h".
20376 (copy_text): Don't refer to Vnonascii_translation_table.
20377 (insert_from_gap): New function.
20379 * keyboard.c: Include "character.h" instead of "charset.h".
20380 (command_loop_1): Never call direct_output_forward_char before
20381 a non-ASCII character.
20382 (read_char): If Vkeyboard_translate_table is a char table, always
20383 translate a character.
20385 * keymap.c: Include "character.h".
20386 (store_in_keymap): Handle the case that IDX is a cons.
20387 (Fdefine_key): Handle the case that KEY is a cons and the car part
20388 is also a cons (range).
20389 (push_key_description): Adjust for the new character code.
20390 (describe_vector): Call describe_char_table for a char table.
20391 (describe_char_table): New function.
20393 * keymap.h (describe_char_table): Extern it.
20395 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20396 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20397 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20398 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20400 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20402 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20403 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20404 (CHARTAB_SIZE_BITS_3): New macros.
20405 (chartab_size): Extern it.
20406 (struct Lisp_Char_Table): Re-design.
20407 (struct Lisp_Sub_Char_Table): New structure.
20408 (HASH_KEY, HASH_VALUE): Move from fns.c.
20409 (CHARACTERBITS): Define as 22.
20410 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20411 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20412 (GC_SUB_CHAR_TABLE_P): New macro.
20413 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20414 (code_convert_string_norecord): Deleted extern.
20415 (init_character_once, syms_of_character, init_charset)
20416 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20418 * lread.c: Include "character.h".
20419 (read_multibyte): New arg NBYTES.
20420 (read_escape): Change the meaning of returned *BYTEREP.
20421 (to_multibyte): Delete.
20422 (read1): Adjust the handling of char table and string.
20424 * print.c: Include "character.h" instead of "charset.h".
20425 (print_string): Convert 8-bit raw bytes to octal form by
20426 string_escape_byte8.
20427 (print_object): Adjust for the new multibyte form. Print 8-bit
20428 raw bytes always in octal form. Handle sub char table correctly.
20430 * process.c: Include "character.h" instead of "charset.h".
20431 (read_process_output, send_process): Adjust for the new
20432 code-conversion API.
20434 * puresize.h (BASE_PURESIZE): Increase.
20436 * regex.c: Include "character.h" instead of "charset.h".
20437 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20438 (regex_compile): Accept a range whose starting and ending
20439 character have different leading bytes.
20440 (analyse_first): Adjust for the above change.
20442 * search.c: Include "character.h" instead of "charset.h".
20443 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20444 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20446 * syntax.c: Include "character.h" instead of "charset.h".
20447 (syntax_parent_lookup): Delete.
20448 (Fmodify_syntax_entry): Accept a cons as CHAR.
20449 (skip_chars): Adjust for the new multibyte form.
20450 (init_syntax_once): Call char_table_set_range instead of directly
20451 accessing the structure of a char table.
20453 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20454 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20455 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20456 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20458 * term.c: Include "buffer.h" and "character.h".
20459 (encode_terminal_code, write_glyphs): Adjust for the new
20460 code-conversion API.
20461 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20463 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20465 * xdisp.c: Include "character.h".
20466 (get_next_display_element): Adjust for the new multibyte form.
20467 (disp_char_vector): Adjust for the new char table structure.
20468 (decode_mode_spec_coding): Adjust for the new structure of
20470 (decode_mode_spec): Adjust for the new code-conversion API.
20472 * xfaces.c: Include "character.h" instead of "charset.h".
20473 (load_face_font): Adjust for the change of choose_face_font and
20475 (generate_ascii_font): New function.
20476 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20477 (set_font_frame_param): Adjust for the change of choose_face_font.
20478 (free_realized_face): Make it public.
20479 (free_realized_faces_for_fontset): Rename from
20480 free_realized_multibyte_face. Free also faces realized for ASCII.
20481 (choose_face_font): Change arguments. Adjust for the change of
20482 fontset_font_pattern and FS_LOAD_FONT.
20484 * xfns.c: Include "character.h".
20485 (x_encode_text): Adjust for the new code-conversion API.
20487 * xselect.c: Don't include "charset.h".
20488 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20490 * xterm.c: Include "character.h".
20491 (x_encode_char): New argument CHARSET. Change caller.
20492 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20493 Call ENCODE_CHAR instead of SPLIT_CHAR.
20494 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20495 CHAR_WIDTH instead of CHARSET_WIDTH.
20496 (XTread_socket): Adjust for the new code-conversion API.
20497 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20498 (x_load_font): Adjust for the change of struct font.
20500 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20502 * xfaces.c (face_at_buffer_position): Remove unused vars.
20504 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20506 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20507 Fix overflow checking.
20509 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20511 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20512 Cancel previous change.
20514 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20516 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20517 ccl->eight_bit_control. Fix check for buffer overflow.
20518 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20519 (ccl_driver): Initialize extra_bytes to 0.
20521 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20523 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20524 return it ORed with ctrl_modifier.
20526 2008-01-29 Miles Bader <miles@gnu.org>
20528 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20530 2008-01-28 Jason Rumney <jasonr@gnu.org>
20532 * w32.c (stat): Don't double check for networked drive.
20534 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20536 * window.c (run_window_configuration_change_hook): New function.
20537 Code extracted from set_window_buffer. Set the selected frame.
20538 (set_window_buffer): Use it.
20539 * window.h (run_window_configuration_change_hook): Declare.
20540 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20542 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20544 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20546 * Makefile.in: Remove references to unused macros.
20548 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20550 * w32.c (g_b_init_get_sid_sub_authority)
20551 (g_b_init_get_sid_sub_authority_count): New static variables.
20552 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20553 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20554 (init_user_info): Use them to retrieve uid and gid.
20555 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20556 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20557 st_uid and st_gid of the file.
20559 2008-01-26 Jason Rumney <jasonr@gnu.org>
20561 * w32.c (logon_network_drive): New function.
20564 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20566 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20567 invisible text covered with an ellipsis.
20569 2008-01-25 Richard Stallman <rms@gnu.org>
20571 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20572 jump back to beginning. Move some other initializations after that.
20573 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20575 (syms_of_xdisp): Init them.
20577 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20579 * buffer.c (reset_buffer_local_variables):
20580 Implement `permanent-local-hook'.
20581 (Qpermanent_local_hook): New variable.
20582 (syms_of_buffer): Init and staticpro it.
20584 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20586 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20588 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20590 * fns.c (Fclrhash): Return TABLE.
20592 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20594 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20595 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20596 is set even without positional changes.
20597 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20599 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20601 2008-01-23 Jason Rumney <jasonr@gnu.org>
20603 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20605 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20606 the unicode range available in MULE by locale-coding-system.
20607 Improve dbcs lead byte detection. Set event timestamp and modifiers
20610 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20612 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20613 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20614 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20615 when used on child processes.
20617 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20619 * dbusbind.c (Fdbus_method_return_internal): Rename from
20620 Fdbus_method_return.
20621 (Fdbus_unregister_object): Move to dbus.el.
20622 (Fdbus_call_method, Fdbus_method_return_internal)
20623 (Fdbus_send_signal): Improve debug messages.
20625 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20627 * undo.c (undo_inhibit_record_point): New variable.
20628 (syms_of_undo): Initialize it.
20629 (record_point): Don't record point when undo_inhibit_record_point
20632 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20634 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20636 * xdisp.c (Qauto_hscroll_mode): New var.
20637 (syms_of_xdisp): Initialize it.
20638 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20640 (hscroll_windows): Don't check automatic_hscrolling_p here.
20642 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20643 vscroll if we're setting window-buffer to the value it already has.
20645 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20647 * m/intel386.h: Remove references to XENIX.
20649 2008-01-17 Andreas Schwab <schwab@suse.de>
20651 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20652 instead of HAVE_X86_64_LIB64_DIR.
20653 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20655 2008-01-17 Glenn Morris <rgm@gnu.org>
20657 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20658 to HAVE_X86_64_LIB64_DIR.
20660 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20667 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20669 * sysdep.c: Remove code containing references to symbols defined
20670 by unsupported systems.
20672 2008-01-16 Glenn Morris <rgm@gnu.org>
20674 * coding.c (select-safe-coding-system-function): Doc fix.
20676 2008-01-15 Glenn Morris <rgm@gnu.org>
20678 * config.in: Revert 2008-01-13 change: this is a generated file.
20680 2008-01-13 Tom Tromey <tromey@redhat.com>
20682 * lisp.h: Fix typo.
20684 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20690 * s/ptx4.h: Remove files for systems no longer supported.
20692 * callproc.c (Fcall_process): Fix previous change.
20694 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20696 * unexsunos4.c: Remove file, system not supported anymore.
20716 * alloc.c: Remove code containing references to symbols defined by
20717 unsupported systems.
20719 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20721 * coding.c (detect_coding_mask): Fix previous change.
20723 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20725 * coding.c (detect_coding_iso2022): New arg
20726 latin_extra_code_state. Allow Latin extra codes only
20727 when *latin_extra_code_state is nonzero.
20728 (detect_coding_mask): If there is a NULL byte, detect the encoding
20729 as UTF-16 or binary. If Latin extra codes exist, detect the
20730 encoding as ISO-2022 only when there's no other proper encoding is
20733 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20735 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20738 2008-01-08 Richard Stallman <rms@gnu.org>
20740 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20742 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20744 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20745 menu bar in parentheses.
20747 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20751 * m/alliant-2800.h:
20759 * m/aviion-intel.h:
20854 * unexsni.c: Remove files for systems no longer supported.
20856 * m/intel386.h: Remove references to unsupported systems.
20858 * w32.c (get_emacs_configuration): Remove reference to i860.
20860 * sysdep.c: Remove dead code.
20862 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20865 * m/masscomp.h: Remove files. Platform is obsolete.
20867 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20869 * dbusbind.c (Fdbus_method_return): New function.
20870 (xd_read_message): Add the serial number to the event.
20871 (Fdbus_register_method): Activate the function.
20873 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20875 * keyboard.c (read_key_sequence): Fix typo.
20877 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20879 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20880 (xd_signature, xd_append_arg): Handle element type detection for
20882 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20883 SDATA () calls; this must be solved more general.
20884 (Fdbus_register_signal): Use SBYTES instead of strlen.
20886 2008-01-03 Magnus Henoch <magnus@zemdatav>
20888 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20889 unsigned int for byte values (necessary for big-endian platform).
20890 (Fdbus_call_method): Handle the case of no returned arguments.
20892 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20894 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20896 2007-12-31 Magnus Henoch <mange@freemail.hu>
20898 * dbusbind.c (xd_signature): Signature of variant is just "v".
20900 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20902 * dbusbind.c: Fix several errors and compiler warnings.
20903 Reported by Tom Tromey <tromey@redhat.com>.
20904 (XD_ERROR, XD_DEBUG_MESSAGE)
20905 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20906 (xd_append_arg): Part for basic D-Bus types rewritten.
20907 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20908 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20910 (xd_read_message): Return Qnil. Don't signal an error; it is not
20911 useful during event reading.
20912 (Fdbus_register_signal): Signal an error if the check for
20914 (Fdbus_register_method): New function. The implementation is not
20915 complete, the call of the function signals an error therefore.
20916 (Fdbus_unregister_object): New function, renamed from
20917 Fdbus_unregister_signal. The initial check signals an error, if
20918 the object is not well formed.
20920 2007-12-30 Richard Stallman <rms@gnu.org>
20922 * textprop.c (get_char_property_and_overlay):
20923 Signal error if POSITION is out of range in a buffer.
20925 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20927 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20928 because the original parameters are in pure storage now.
20930 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20932 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20934 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20936 * callint.c (syms_of_callint) <command-history>: Add reference to
20937 history-length in the doc string.
20939 2007-12-17 Jason Rumney <jasonr@gnu.org>
20941 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20942 before passing as wParam.
20944 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20946 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20947 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20948 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20949 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20951 (Fdbus_call_method): Fix docstring.
20953 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20955 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20957 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20958 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20960 (xd_signature): New function.
20961 (xd_append_arg): Compute also signatures. Major rewrite.
20962 (xd_retrieve_arg): Make debug messages friendly.
20963 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20964 Check for signatures of arguments.
20966 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20968 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20969 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20970 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20971 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20972 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20973 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20974 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20975 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20976 (xd_retrieve_value): Remove. Functionality included in ...
20977 (xd_append_arg): New function.
20978 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20980 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20982 * dbusbind.c (top): Include <stdio.h>.
20983 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20984 dbus_message_new_method_call and dbus_message_new_signal.
20985 (Fdbus_register_signal): Rename unique_name to uname.
20986 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20987 non-existing unique name. Fix typos in matching rule. Return an
20988 object which is useful in Fdbus_unregister_signal.
20989 (Fdbus_unregister_signal): Reimplementation, in order to remove
20990 only the corresponding entry.
20991 (Vdbus_registered_functions_table): Change the order of entries.
20992 Apply these changes in xd_read_message and Fdbus_register_signal.
20994 2007-12-16 Andreas Schwab <schwab@suse.de>
20996 * fileio.c (Finsert_file_contents): Fix overflow check to not
20997 depend on undefined integer overflow.
20999 2007-12-14 Jason Rumney <jasonr@gnu.org>
21001 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21002 for characters above 127.
21004 2007-12-13 Jason Rumney <jasonr@gnu.org>
21006 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21007 before dereferencing array.
21008 (lookup_vk_code): Remove zero comparison.
21010 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
21012 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21013 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21014 Use `unsigned int' instead of `uint'.
21015 (xd_read_message, Fdbus_register_signal): Split expressions into
21016 multiple lines before operators "&&" and "||", according to the
21017 GNU Coding Standards.
21019 2007-12-14 Eli Zaretskii <eliz@gnu.org>
21021 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21023 2007-12-12 Juri Linkov <juri@jurta.org>
21025 * buffer.c (Frename_buffer): In interactive spec replace
21026 `read-buffer' with `read-string' that uses `buffer-name-history'
21027 as history, and the current buffer's name as default.
21029 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21031 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21032 manipulating the backtrace manually.
21033 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21034 (struct backtrace, backtrace_list): Remove.
21035 (command_loop_1): Remove dead var `no_direct'.
21037 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21038 preserve non-built-in buffer-local variables.
21039 (Fkill_all_local_variables): Don't re-create&re-set permanent
21040 buffer-local variables.
21042 2007-12-09 Juri Linkov <juri@jurta.org>
21044 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21045 Lisp code that uses `read-buffer' with current buffer as default.
21047 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
21049 * dbusbind.c (xd_read_message): Generate an event for every
21050 registered handler. There might be several handlers registered
21051 for the same signal.
21052 (Fdbus_register_signal): Don't overwrite a registration for the
21053 same signal. Add a new registration if handlers are different.
21054 (Vdbus_registered_functions_table): Rework doc string.
21056 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
21058 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21059 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21060 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21061 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21062 Unify argument lists.
21063 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21064 arguments and hash table keys. Use unique name for service.
21065 (Fdbus_unregister_signal): Remove checks.
21066 (Vdbus_registered_functions_table): Fix doc string.
21068 2007-12-05 Magnus Henoch <mange@freemail.hu>
21070 * process.c (make_process): Initialize pty_flag to 0.
21072 2007-12-05 Jason Rumney <jasonr@gnu.org>
21074 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21077 2007-12-05 Richard Stallman <rms@gnu.org>
21079 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21081 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21083 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21085 (mac_try_close_socket) [MAC_OSX]: New function.
21086 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21087 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21089 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21090 Use mac_try_close_socket.
21092 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21094 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21096 (copy_dysymtab): Compute relocation base here.
21097 (rebase_reloc_address) [__ppc64__]: New function.
21098 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21101 2007-12-05 Jason Rumney <jasonr@gnu.org>
21103 * w32proc.c (sys_spawnve): Quote args with wildcards.
21105 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21107 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21109 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21111 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
21113 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21114 Move check for Vdbus_registered_functions_table to
21115 xd_read_queued_messages.
21116 (xd_read_queued_messages): Protect xd_read_message calls by
21117 internal_condition_case_1.
21119 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
21121 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21122 Qdbus_system_bus and Qdbus_session_bus, respectively.
21123 (Vdbus_intern_symbols): Remove.
21124 (Vdbus_registered_functions_table): New hash table.
21125 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21126 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21127 Rewrite in order to manage registered functions by hash table
21128 Vdbus_registered_functions_table.
21130 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21132 * xterm.c: Update URL to Window Manager Specification in comment.
21134 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
21136 * config.in (HAVE_DBUS): Add.
21138 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21139 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21140 (obj): Add $(DBUS_OBJ).
21141 (LIBES): Add $(DBUS_LIBS).
21142 (dbusbind.o): New target.
21144 * dbusbind.c: New file.
21146 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21148 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21149 (Qdbus_event): New Lisp symbol.
21150 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21151 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
21152 (keys_of_keyboard): Define dbus-event.
21154 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21156 2007-12-01 Richard Stallman <rms@gnu.org>
21158 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21160 2007-11-30 Jason Rumney <jasonr@gnu.org>
21162 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21163 (w32con_reset_terminal_modes): Clear screen buffer.
21164 (w32_face_attributes): Don't use color indexes that are out of range.
21165 Only reverse the default colors.
21167 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21170 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21172 2007-11-29 Jason Rumney <jasonr@gnu.org>
21174 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21175 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21176 if the terminal colors are initialized.
21177 (unspecified_fg, unspecified_bg): Remove unused declarations.
21179 2007-11-29 Andreas Schwab <schwab@suse.de>
21181 * keyboard.c (apply_modifiers): Fix typo.
21183 2007-11-29 Richard Stallman <rms@gnu.org>
21185 * keymap.c (Fcurrent_local_map): Doc fix.
21187 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21189 * s/gnu-kfreebsd.h: New file.
21191 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21193 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21194 Don't cast redundantly.
21196 * keyboard.c (KEY_TO_CHAR): New macro.
21197 (parse_modifiers, apply_modifiers): Accept integer arguments.
21198 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21199 for chars and symbol keys.
21200 After doing such remapping, apply function-key-map again.
21202 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21204 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21207 2007-11-26 Andreas Schwab <schwab@suse.de>
21209 * process.c (list_processes_1): Fix indentation level of the
21212 2007-11-23 Andreas Schwab <schwab@suse.de>
21214 * editfns.c (Fformat): Handle %c specially since it requires the
21215 argument to be of type int.
21217 2007-11-23 Markus Triska <markus.triska@gmx.at>
21219 * emacs.c (main): Call init_editfns before init_process, since
21220 init_process sets Vprocess_connection_type depending on OS release.
21222 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21224 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21225 (find_symbol_value): Use do_symval_forwarding.
21227 * data.c (set_internal): Set the value in the `cons-cell' (for
21228 Buffer_Local_values) not only for frame-local variables.
21230 2007-11-22 Andreas Schwab <schwab@suse.de>
21232 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21234 * keymap.c (Fsingle_key_description): Likewise.
21235 * print.c (print_object): Likewise.
21237 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21239 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21240 file for image is nil.
21242 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21244 * term.c: Include stdarg.h.
21245 (fatal): Implement using varargs.
21246 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21248 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21250 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21251 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21252 Update call to buffer_slot_type_mismatch.
21253 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21254 (buffer_slot_type_mismatch): Update.
21255 * buffer.c (buffer_local_types): Remove.
21256 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21257 (defvar_per_buffer): Set the type in the buffer_objfwd.
21259 2007-11-21 Jason Rumney <jasonr@gnu.org>
21261 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21262 CreateFileMapping returns NULL on failure.
21264 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21266 * search.c (Fset_match_data): Remove the `evaporate' feature.
21267 (unwind_set_match_data): Don't use the `evaporate' feature.
21269 2007-11-21 Jason Rumney <jasonr@gnu.org>
21271 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21273 * w32console.c (w32con_write_glyphs): Remove unused variables.
21275 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21277 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21279 * s/darwin.h (MULTI_KBOARD): Remove.
21281 * macfns.c (x_create_tip_frame, Fx_create_frame)
21282 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21284 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21286 * buffer.c (Fbuffer_local_value): Remove redundant test.
21287 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21288 than in `current-buffer' to match the comment.
21289 Do the swap using swap_in_global_binding.
21291 * data.c (store_symval_forwarding, set_internal):
21292 * eval.c (specbind): Remove dead code.
21294 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21295 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21296 Since we do not want to see internal Lisp_*fwd objects here.
21298 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21300 * sysdep.c (init_system_name): Use getaddrinfo if available.
21302 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21303 (x_scroll_bar_note_movement): start, end, with, height in struct
21304 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21306 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21308 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21310 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21312 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21313 This undoes Richard's change of 14-Oct-2002.
21315 * alloc.c (allocate_other_vector):
21316 * lisp.h (allocate_other_vector): Remove.
21318 * window.c (struct save_window_data): Move non-lisp data to the end
21319 and make it `int' rather than Lisp_Object.
21320 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21321 Done wrap/unwrap integer values.
21322 (Fset_window_configuration, compare_window_configurations):
21323 Update use of fields to their new types.
21325 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21326 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21327 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21328 (SET_SCROLL_BAR_X_WINDOW): Remove.
21329 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21330 Access the new x_window field directly.
21331 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21332 Don't wrap/unwrap integers into Lisp_Objects.
21333 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21334 (x_scroll_bar_report_motion):
21335 Don't wrap/unwrap integers into Lisp_Objects.
21336 (x_term_init): Use SDATA.
21337 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21338 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21339 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21340 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21341 * xfns.c (x_set_background_color):
21342 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21343 Access the new x_window field directly.
21345 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21346 (allocate_pseudovector): Make non-static.
21348 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21349 (allocate_pseudovector): Declare.
21350 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21352 2007-11-15 Andreas Schwab <schwab@suse.de>
21354 * editfns.c (Fformat): Correctly format EMACS_INT values.
21355 Also take precision into account when formatting an integer.
21357 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21359 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21361 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21362 (syms_of_keyboard): Defsubr it.
21364 * data.c (swap_in_global_binding): Fix longstanding bug where
21365 store_symval_forwarding was not called with the right second argument,
21366 thus causing objfwd-ing from being dropped.
21368 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21370 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21371 (Fx_display_pixel_height, Fx_display_planes)
21372 (Fx_display_color_cells, Fx_server_max_request_size)
21373 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21374 (Fx_display_visual_class, Fx_display_save_under):
21375 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21376 (Fx_display_pixel_height, Fx_display_planes)
21377 (Fx_display_color_cells, Fx_server_max_request_size)
21378 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21379 (Fx_display_mm_height, Fx_display_mm_width)
21380 (Fx_display_backing_store, Fx_display_visual_class)
21381 (Fw32_select_font, Fx_display_save_under):
21382 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21383 (Fx_display_pixel_height, Fx_display_planes)
21384 (Fx_display_color_cells, Fx_server_max_request_size)
21385 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21386 (Fx_display_save_under): Fix typos in docstrings.
21388 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21390 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21391 corresponding to deleted entries; they are an implementation detail.
21392 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21394 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21395 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21396 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21397 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21398 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21399 (Fw32_define_rgb_color, Fw32_load_color_file)
21400 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21401 Fix typos in docstrings.
21402 (Fx_server_version): Reflow docstring.
21403 (Fw32_shell_execute): Doc fixes.
21405 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21407 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21408 if w32_parse_hot_key returned nil.
21410 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21412 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21414 2007-11-09 Jason Rumney <jasonr@gnu.org>
21416 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21418 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21420 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21421 Remove W32_SCROLL_BAR_CLICK_EVENT.
21423 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21424 Add MULTIMEDIA_KEY_EVENT.
21426 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21427 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21428 (make_lispy_event) [WINDOWSNT]: Use it to translate
21429 MULTIMEDIA_KEY_EVENT.
21431 * w32term.h (WM_APPCOMMAND): Define if not already.
21432 (GET_APPCOMMAND_LPARAM): Likewise.
21434 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21437 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21438 (syms_of_w32fns): Export and initialize it.
21439 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21441 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21443 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21446 * xdisp.c (handle_face_prop): Fix last change.
21448 2007-11-09 Richard Stallman <rms@gnu.org>
21450 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21451 not just for after-strings and before-strings.
21452 Call face_for_overlay_string and pass the overlay to it.
21453 (handle_display_prop): Determine whether property came from an overlay.
21454 Pass OVERLAY arg to handle_single_display_spec.
21455 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21456 (load_overlay_strings): Fill in it->string_overlays.
21457 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21459 * xfaces.c (face_for_overlay_string): Function renamed from
21460 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21462 * dispextern.h (struct it): New elt string_overlays.
21463 New elt from_overlay, also in stack.
21464 Rearrange a few elements.
21465 (face_for_overlay_string): Decl renamed from
21466 face_at_buffer_position_no_overlays, and add argument.
21468 2007-11-09 Richard Stallman <rms@gnu.org>
21470 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21471 to get the base face for an overlay string.
21473 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21475 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21477 * xdisp.c (handle_stop): Move some code out of loop.
21479 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21481 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21482 Fix conversion from Lisp object to ATSUFontID.
21484 2007-11-09 Jason Rumney <jasonr@gnu.org>
21486 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21488 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21490 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21491 Don't assume regions are aligned to page boundary.
21492 (print_load_command_name): Add LC_UUID if defined.
21494 2007-11-09 Richard Stallman <rms@gnu.org>
21496 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21498 2007-11-07 Jason Rumney <jasonr@gnu.org>
21500 * s/windows95.h: Remove.
21502 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21504 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21505 abort with a message on unhandled store_type values.
21507 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21509 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21510 Remove HAVE_X11R5 and HAVE_X11R4.
21512 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21514 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21516 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21518 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21519 Don't set s->stippled_p here, since it has already been set by
21520 x_set_glyph_string_gc from x_draw_glyph_string.
21522 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21524 * sunfns.c: Remove file.
21528 * m/sparc.h: Remove Sun windows code.
21530 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21532 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21533 (init_keyboard): Set current_kboard's window-system to nil.
21534 (tty_read_avail_input): Typo.
21535 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21537 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21544 * Makefile.in: Remove all mentions of X10.
21546 * dispnew.c (syms_of_display): Don't mention version 10.
21548 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21550 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21551 ($(BLD)/abbrev.$(O)): Remove.
21553 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21555 Rewrite abbrev.c in Elisp.
21556 * image.c (Qcount): Don't declare as extern.
21557 (syms_of_image): Initialize and staticpro `Qcount'.
21558 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21559 * emacs.c (main): Don't call syms_of_abbrev.
21560 * Makefile.in (obj): Remove abbrev.o.
21561 (abbrev.o): Remove.
21562 * abbrev.c: Remove.
21564 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21566 * window.c (window_min_size_2): Don't count header-line.
21568 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21570 * frame.h (struct frame): Move all bit fields after the first bit
21571 field to take advantage of the available space. Group all the
21572 chars together to reduce wasted space due to padding.
21574 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21576 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21578 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21579 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21580 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21581 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21582 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21583 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21584 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21585 (last_marked, mark_object_loop_halt): Make static.
21587 * frame.c (syms_of_frame) <delete-frame-functions>:
21588 Fix typo in docstring.
21590 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21592 * w32.c (init_environment): Fix tiny memory leak.
21593 (w32_get_resource): Remove unused variable `ok'.
21595 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21597 Make `window-system' into a keyboard-local variable (rather than
21598 frame-local as done originally by multi-tty).
21600 * keyboard.h (struct kboard): Add Vwindow_system.
21601 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21602 (mark_kboards): Mark Vwindow_system.
21604 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21605 (init_display): Don't set the obsolete `window-system' frame-param.
21607 * xterm.c (x_term_init):
21608 * w32term.c (w32_create_terminal):
21609 * term.c (init_tty): Set Vwindow_system.
21610 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21611 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21613 * xfns.c (Fx_create_frame, x_create_tip_frame):
21614 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21615 * macfns.c (Fx_create_frame):
21616 Don't set the obsolete `window-system' frame-param.
21618 * frame.h (Qwindow_system): Remove.
21619 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21620 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21622 2007-10-24 Richard Stallman <rms@gnu.org>
21624 * frame.c (x_figure_window_size): For fullscreen case,
21625 set USPosition | PPosition without clobbering rest of window_prompting.
21627 * keyboard.c (Fcurrent_idle_time): Doc fix.
21629 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21631 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21633 * process.c (unwind_request_sigio): Only define if __ultrix__.
21635 * callproc.c (child_setup): Remove spurious *.
21637 * lisp.h (Fget_text_property): Declare.
21638 (have_menus_p): Declare it here rather than in sys-dep header files.
21639 * macterm.h (have_menus_p):
21640 * msdos.h (have_menus_p):
21641 * xterm.h (have_menus_p): Remove.
21643 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21644 (Fmake_variable_frame_local): Just check the variable's const-ness
21645 rather than checking nil or t.
21647 2007-10-22 Jason Rumney <jasonr@gnu.org>
21649 * w32fns.c: Include math.h.
21650 (w32_abort): Declaration moved to nt/config.nt.
21652 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21653 (abort): Redefinition moved to nt/config.nt.
21655 * m/windowsnt.h: Remove.
21657 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21659 * emacs.c (Fdump_emacs): Fix typo in message.
21660 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21661 <installation-directory>: Reflow docstring.
21663 2007-10-22 Juri Linkov <juri@jurta.org>
21665 * minibuf.c: Allow minibuffer default to be a list of default values.
21666 With empty input use the first element of this list as returned default.
21668 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21669 (read_minibuf): If defalt is cons, set histstring to its car.
21670 (Fread_string): If default_value is cons, set val to its car.
21671 (Fread_buffer): If def is cons, use its car.
21672 (Fcompleting_read): If defalt is cons, set val to its car.
21674 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21676 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21678 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21680 * doc.c (Fdocumentation): Check for advice in all cases.
21682 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21684 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21686 2007-10-19 Richard Stallman <rms@gnu.org>
21688 * doc.c (Fdocumentation): Check for and handle an advised function.
21690 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21692 * process.c (Fset_process_filter): Doc fix.
21694 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21696 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21697 which caused key-translation-map to applied repeatedly (thus breaking
21700 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21702 * xselect.c (x_own_selection, x_handle_selection_clear)
21703 (x_clear_frame_selections):
21704 * w32menu.c (list_of_panes, list_of_items):
21705 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21706 * textprop.c (validate_plist, interval_has_all_properties)
21707 (interval_has_some_properties, interval_has_some_properties_list)
21708 (add_properties, text_property_list):
21709 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21710 * minibuf.c (Fassoc_string):
21711 * macselect.c (x_own_selection, x_clear_frame_selections)
21712 (Fx_disown_selection_internal):
21713 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21714 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21716 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21718 * process.c: Link to libs for calling res_init() if available.
21719 (Fmake_network_process): Call res_init() before getaddrinfo or
21720 gethostbyname, if possible.
21722 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21724 * lread.c (read1): Set pvectype for char_tables.
21726 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21727 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21729 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21731 * alloc.c (free_misc): Use XMISCTYPE.
21732 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21734 2007-10-17 Glenn Morris <rgm@gnu.org>
21736 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21737 (syms_of_minibuf): Add Qcompletion_ignore_case.
21738 * dired.c (Qcompletion_ignore_case): Change to external.
21739 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21740 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21741 (Fread_file_name): Use it rather than intern'ing.
21743 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21744 (Fread_coding_system): Ignore case of user input.
21746 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21748 * xdisp.c (handle_display_prop): Ignore display specs after
21749 replacing one when string text is being replaced.
21750 (handle_single_display_spec): Pretend as if characters with display
21751 property haven't been consumed only when buffer text is being replaced.
21753 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21755 * xfns.c (Fx_create_frame, Fx_display_list):
21756 * window.c (window_fixed_size_p, enlarge_window)
21757 (shrink_window_lowest_first):
21758 * macterm.c (init_font_name_table):
21759 * macfns.c (Fx_create_frame, Fx_display_list):
21760 * lread.c (close_load_descs):
21761 * keyboard.c (read_char_x_menu_prompt):
21762 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21763 * coding.c (code_convert_region_unwind): Test the type of an object
21764 rather than just !NILP before extracting data from it.
21766 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21768 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21769 (XMISCANY): New macro.
21770 (XMISCTYPE): Use it.
21771 (struct Lisp_Misc_Any): New type.
21772 (union Lisp_Misc): Use it.
21773 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21774 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21775 (find_symbol_value, set_internal, default_value, Fset_default)
21776 (Fmake_variable_buffer_local, Fmake_local_variable)
21777 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21778 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21779 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21780 * alloc.c (allocate_buffer): Set the size and tag.
21781 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21783 (die): Follow the GNU convention for error messages.
21784 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21785 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21787 (set_buffer_internal_1):
21788 * frame.c (store_frame_param):
21789 * eval.c (specbind):
21790 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21792 * doc.c (Fsnarf_documentation): Simplify.
21794 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21796 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21797 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21799 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21801 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21803 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21805 * eval.c (do_autoload): Don't save autoloads.
21807 * data.c (Ffset): Save autoload of the function being set.
21809 2007-10-07 John Paul Wallington <jpw@pobox.com>
21811 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21812 parameter before setting up faces.
21814 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21816 * ccl.c (Fregister_code_conversion_map):
21817 * keyboard.c (append_tool_bar_item): Reformat last change.
21819 * lisp.h (eabs): Rename from `abs'. All callers changed.
21821 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21823 * buffer.c (add_overlay_mod_hooklist):
21824 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21825 * fontset.c (make_fontset):
21826 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21827 (append_tool_bar_item):
21828 * macmenu.c (grow_menu_items):
21829 * w32menu.c (grow_menu_items):
21830 * xmenu.c (grow_menu_items): Use larger_vector.
21832 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21834 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21835 selected frame'' on MSDOS).
21837 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21839 * frame.c (Qexplicit_name): New variable.
21840 (x_report_frame_params): Report it in parameter alist.
21841 (syms_of_frame): Intern and staticpro it.
21843 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21845 * macfns.c (x_create_tip_frame): Set terminal for frame.
21847 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21849 * frame.c (Qenvironment): Remove.
21850 (syms_of_frame) <Qenvironment>: Don't initialize.
21851 (Fdelete_frame): Don't treat the `environment' param specially.
21852 * frame.h (Qenvironment): Don't declare.
21853 * callproc.c (set_initial_environment): Don't set unused frame param.
21855 * frame.c (Fframe_with_environment): Remove.
21856 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21858 * lisp.h (Fframe_with_environment): Don't declare.
21860 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21862 * indent.c (indent_tabs_mode, last_known_column)
21863 (last_known_column_modified): Make static.
21864 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21866 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21868 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21870 2007-10-09 Jason Rumney <jasonr@gnu.org>
21872 * w32term.c (x_set_window_size): Disable code that attempts to tell
21873 Lisp code about a size change before it actually happens.
21875 2007-10-09 Richard Stallman <rms@gnu.org>
21877 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21878 return HANDLED_RETURN.
21880 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21882 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21883 when there's an unread command event.
21885 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21886 window autoselection act appropriately when leaving selected frame.
21887 (syms_of_frame): Initialize focus_follows_mouse.
21888 * frame.h (focus_follows_mouse): Extern it.
21889 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21890 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21891 * msdos.c (dos_rawgetc): Likewise.
21892 * w32term.c (w32_read_socket): Likewise.
21893 * xterm.c (handle_one_xevent): Likewise.
21894 * xdisp.c (syms_of_xdisp): In doc-string of
21895 mouse-autoselect-window mention focus-follows-mouse.
21897 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21899 * macterm.c (mac_load_query_font): Fix missing return value.
21900 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21903 2007-10-08 Richard Stallman <rms@gnu.org>
21905 * xdisp.c (get_window_cursor_type): Implement documented behavior
21906 for cursor-in-non-selected-windows = t.
21908 2007-10-08 Jason Rumney <jasonr@gnu.org>
21910 * w32.c (w32_get_resource): Always close registry keys.
21912 2007-10-08 Jason Rumney <jasonr@gnu.org>
21914 * makefile.w32-in (LIBS): Add COMCTL32.
21916 * w32fns.c (globals_of_w32fns): Init common controls.
21918 2007-10-08 Richard Stallman <rms@gnu.org>
21920 * image.c (our_memory_buffer): Rename from omfib_buffer.
21922 2007-10-08 Richard Stallman <rms@gnu.org>
21924 * buffer.c (Foverlays_at): Doc fix.
21926 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21928 * fns.c (Fplist_put): Preserve uneven tail data.
21930 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21932 * termhooks.h (enum event_kind): Remove trailing comma.
21934 * frame.h (enum): Remove trailing comma.
21936 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21938 * w32proc.c (delete_child): Don't terminate threads of zombies.
21940 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21942 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21944 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21945 last-repeatable-command.
21946 (init_kboard): Initialize Vlast_repeatable_command.
21947 (command_loop_1): Set it to real_this_command unless that was
21948 bound to an input event.
21949 (mark_kboards): Mark it.
21951 2007-10-08 Richard Stallman <rms@gnu.org>
21953 * eval.c (condition-case): Doc fix.
21955 2007-10-08 Masatake YAMATO <jet@gyve.org>
21957 * xfaces.c (tty_supports_face_attributes_p): Fix code
21958 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21959 was copied and not edited.
21961 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21963 Add new `input-decode-map' keymap and use it for terminal
21965 * keyboard.h (struct kboard): Add Vinput_decode_map.
21966 Remove Vlocal_key_translation_map.
21967 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21968 (init_kboard): Init input-decode-map.
21969 Replace local-key-translation-map back with key-translation-map.
21970 (syms_of_keyboard): Declare input-decode-map.
21971 Remove local-key-translation-map. Update docstrings.
21972 (mark_kboards): Mark Vinput_decode_map.
21973 Don't mark Vlocal_key_translation_map.
21974 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21975 Replace local-key-translation-map back with key-translation-map.
21976 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21977 Bind in input-decode-map rather than function-key-map.
21979 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21980 This was made redundant by the previous introduction of XSETPVECTYPE.
21982 2007-10-09 Richard Stallman <rms@gnu.org>
21984 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21986 2007-09-29 Richard Stallman <rms@gnu.org>
21988 * eval.c (internal_condition_case_2, internal_condition_case_1)
21989 (internal_condition_case): Reenable abort if x_catching_errors ()
21990 to see if that really happens and why.
21992 2007-10-06 Andreas Schwab <schwab@suse.de>
21994 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21996 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21998 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22000 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22002 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22004 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22006 * window.h (struct window):
22007 * window.c (struct save_window_data, struct saved_window):
22008 * termhooks.h (struct terminal):
22009 * process.h (struct Lisp_Process):
22010 * frame.h (struct frame):
22011 * buffer.h (struct buffer):
22012 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22013 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22014 The size field of (pseudo)vectors is now unsigned.
22015 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22017 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22018 Turn `count' into an integer.
22020 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22021 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22022 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22023 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22024 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22026 * alloc.c (allocate_pseudovector): New fun.
22027 (ALLOCATE_PSEUDOVECTOR): New macro.
22028 (allocate_window, allocate_terminal, allocate_frame)
22029 (allocate_process): Use it.
22030 (mark_vectorlike): New function.
22031 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22032 (mark_terminals): Use it.
22033 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22034 (Fmake_byte_code): Use XSETPVECTYPE.
22036 * frame.c (Fframe_parameters): Minor simplification.
22038 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22040 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22042 * buffer.c (Fget_buffer_create, init_buffer_once):
22043 * lread.c (defsubr):
22044 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22046 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22047 defined differently in the m/*.h files.
22048 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22049 (XSETPVECTYPE): New macro.
22050 (XSETPSEUDOVECTOR): Use it.
22052 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22053 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22055 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22056 * lread.c (defvar_per_buffer):
22057 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22059 * window.c (candidate_window_p): Only consider as visible frames that
22060 are on the same terminal.
22062 * m/ibms390x.h (MARKBIT): Remove unused macro.
22064 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
22066 * lread.c (Fload): Fix typo in docstring.
22068 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22070 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22071 of a non-zero value can't yield zero.
22073 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22075 * term.c (term_clear_mouse_face, term_mouse_highlight)
22076 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22078 * print.c (safe_debug_print): Use XHASH.
22080 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22081 Lisp elements such as tags.
22082 (XHASH): New macro.
22084 (SREF, SSET, STRING_COPYIN): Use SDATA.
22085 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22087 * alloc.c (mark_terminal): Remove left-over declaration.
22088 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22089 (allocate_vectorlike): Remove type argument. Adjust callers.
22090 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22091 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22093 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22094 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22095 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22096 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22097 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22100 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22101 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22102 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22104 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22106 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22109 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22111 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22113 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22115 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22117 (handle_one_term_event): Use Gpm_DrawPointer.
22118 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22119 Signal errors instead of returning nil. Always return nil.
22120 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22121 Make it a noop if gpm-mouse was not activated.
22122 (syms_of_term): Update names.
22124 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22126 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22127 (init_sys_modes): Check that gpm_tty is the current tty.
22129 * alloc.c (allocate_terminal): Set the vector size to only count the
22130 lisp fields. Initialize those to nil.
22131 (mark_object): Don't treat terminals specially.
22132 (mark_terminal): Remove.
22133 (mark_terminals): Use mark_object instead.
22135 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22136 the GC to the beginning.
22139 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22141 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22143 2007-09-25 Jason Rumney <jasonr@gnu.org>
22145 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22147 * w32console.c (create_w32cons_output): Remove.
22149 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22151 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22152 (reset_sys_modes): Use reset_terminal_modes_hook.
22154 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22156 * eval.c (do_autoload): Don't output any message.
22158 2007-09-24 Juri Linkov <juri@jurta.org>
22160 * emacs.c (standard_args): Change priority of "--no-splash"
22161 from 40 to 3. Add "--no-desktop" with the same priority.
22163 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22165 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22166 and optimize the case where they are all 1.
22168 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
22170 * lisp.h (abs): Define if not defined.
22171 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22172 Don't define `abs', since it's defined in lisp.h.
22174 2007-09-22 Eli Zaretskii <eliz@gnu.org>
22176 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22177 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22178 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22179 (init_tty): Use DEV_TTY instead of "/dev/tty".
22180 [WINDOWSNT]: No need to protect from NAME arg being null.
22182 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22184 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22187 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22189 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22190 (gpm_tty): Change its type.
22191 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22192 (gpm_tty): Change its type and initialize it.
22193 (Fterm_open_connection): Check the frame is indeed a tty.
22194 Use the new gpm_tty.
22195 (Fterm_close_connection): Use the new gpm_tty.
22196 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22197 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22199 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
22201 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22202 underline_color, to draw strike-through.
22204 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22206 * lisp.h (allocate_terminal): Declare.
22208 * window.c (candidate_window_p): Consider frames that are being placed
22209 by the user as somewhere between visible and iconified.
22210 (window_loop): Prefer windows on the current frame.
22211 (Fselect_window): Move the use of select-frame to the beginning so we
22212 can just delegate all the work (it'll call us back anyway).
22214 * frame.c (Qdisplay_environment_variable):
22215 * frame.h (Qdisplay_environment_variable): Delete.
22217 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22218 of the first arg, since that value may be a union.
22220 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22221 parameter rather than Qdisplay_environment_variable. If all else
22222 fails, look for DISPLAY in initial-environment.
22224 2007-09-21 Glenn Morris <rgm@gnu.org>
22226 * Makefile.in (emacstool): Remove target.
22227 (lisp, shortlisp): Remove termdev.elc.
22229 2007-09-21 Markus Triska <markus.triska@gmx.at>
22231 * xterm.c (x_delete_display): Compile session management conditionally.
22233 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22235 * callproc.c (getenv_internal_1): New function.
22236 (getenv_internal): Use it.
22237 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22239 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22240 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22241 (Fset_terminal_parameter): Work with dead terminals as well.
22242 (Fmodify_terminal_parameters): Remove.
22244 * terminal.c (get_terminal): Handle terminals.
22245 Make sure the terminal returned is live.
22246 (create_terminal): Use allocate_terminal.
22247 (mark_terminals): Move to alloc.c.
22248 (delete_terminal): Use terminal->name as liveness status.
22249 NULL out fields after freeing their contents.
22250 Don't deallocate the object.
22251 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22252 rather than an int.
22253 (Fterminal_live_p): Accept non-integer arguments.
22254 (Fterminal_list): Return terminal objects rather than an ints.
22256 * alloc.c (enum mem_type): New member for `terminal' objects.
22257 (allocate_terminal): New function.
22258 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22260 (mark_terminal): New fun.
22261 (mark_terminals): Move from terminal.c.
22263 * term.c (get_tty_terminal): Don't treat output_initial specially.
22264 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22265 (delete_tty): Use terminal->name as liveness status.
22267 * termhooks.h (struct terminal): Make it into a pseudovector.
22268 Remove `deleted' replaced by checking `name's nullness.
22270 * print.c (print_object): Handle terminals.
22272 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22273 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22275 * frame.c (make_terminal_frame):
22276 * keyboard.c (tty_read_avail_input):
22277 * w32term.c (x_delete_terminal):
22278 * xfns.c (Fx_create_frame, x_create_tip_frame):
22279 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22281 2007-09-20 Glenn Morris <rgm@gnu.org>
22283 * process.c (Fmake_network_process): Doc fix.
22285 2007-09-19 Jason Rumney <jasonr@gnu.org>
22287 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22289 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22291 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22292 Fix a C warning regarding variable constness.
22294 * xterm.c (handle_one_xevent): Fix a C warning.
22296 2007-09-18 Jason Rumney <jasonr@gnu.org>
22298 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22300 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22302 * gtkutil.c (gdpy_def): New variable.
22303 (xg_initialize): Initialize gdpy_def.
22304 (xg_display_close): If no other display exists, set gdpy_def to a
22307 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22309 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22310 when we have no file name for the icon.
22311 (xg_tool_bar_expose_callback): Remove.
22312 (xg_create_tool_bar): Don't connect expose signal to
22313 xg_tool_bar_expose_callback.
22314 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22316 2007-09-16 Andreas Schwab <schwab@suse.de>
22318 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22319 values instead of zapping them.
22321 2007-09-14 Glenn Morris <rgm@gnu.org>
22323 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22324 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22325 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22326 scope and rename to omfib_buffer for clarity.
22327 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22329 2007-09-14 Kenichi Handa <handa@m17n.org>
22331 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22333 2007-09-13 Jason Rumney <jasonr@gnu.org>
22335 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22337 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22339 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22340 (mac_term_init): Call here instead, passing rif.
22342 2007-09-13 Glenn Morris <rgm@gnu.org>
22344 * s/hpux.h: No longer define `static' as nothing.
22346 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22348 * callint.c (Fcall_interactively): Remove unused var `fun'.
22350 2007-09-12 Romain Francoise <romain@orebokech.com>
22352 * window.c (prefer_window_split_horizontally, display_buffer):
22353 Revert 2007-09-08 change.
22355 2007-09-12 Glenn Morris <rgm@gnu.org>
22357 * alloca.c: Remove file.
22358 * Makefile.in (alloca): Do not undef.
22359 (allocaobj, alloca.o): Remove.
22360 (otherobj): Remove allocaobj.
22361 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22362 * regex.c (C_ALLOCA): Remove all references and code that was only
22363 used when this was defined.
22364 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22365 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22366 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22368 * Makefile.in (SOURCES, unlock, relock): Delete.
22370 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22371 (menu_grab_callback): All uses changed.
22373 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22374 (x_reply_selection_request): All uses changed.
22376 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22378 * lread.c (load_warn_old_style_backquotes): Change message to look
22379 better when it appears in the middle of byte-compiler messages.
22381 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22383 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22385 * xterm.c (x_create_terminal): Add comment.
22387 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22389 2007-09-10 Richard Stallman <rms@gnu.org>
22391 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22393 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22395 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22396 (DEFUN): Document `intspec', use it instead of `prompt'.
22398 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22400 * data.c (Finteractive_form): If the interactive specification starts
22401 with a `(', use it as a Lisp form.
22403 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22404 name and file modes.
22406 * callint.c (Fcall_interactively): Comment fixes.
22408 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22410 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22411 and compiled functions.
22413 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22415 * window.c (prefer_window_split_horizontally): New variable.
22416 (display_buffer): Consider splitting window horizontally depending
22417 on prefer_window_split_horizontally.
22419 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22421 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22423 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22425 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22427 * frame.c (x_set_frame_parameters): Check number is positive before
22430 * window.c (freeze_window_start): Don't presume selected_window holds
22432 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22434 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22436 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22438 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22440 * window.c (Vsplit_window_preferred_function): New var.
22441 (Fdisplay_buffer): Use it.
22442 (syms_of_window): Export, and initialize it.
22444 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22446 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22448 2007-09-06 Glenn Morris <rgm@gnu.org>
22450 * gtkutil.c (menu_grab_callback) <cnt>:
22451 * xselect.c (x_reply_selection_request) <cnt>: Move static
22452 variable to file scope.
22454 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22456 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22457 consistent values of selected_frame and selected_window.
22459 2007-09-04 Jason Rumney <jasonr@gnu.org>
22461 * w32console.c (initialize_w32_display): Zero unused hooks.
22463 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22465 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22466 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22468 2007-09-04 Jason Rumney <jasonr@gnu.org>
22470 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22471 in w32console.c. Set up input. Remove XXX comments that have been
22472 confirmed as correct.
22474 * s/ms-w32.h (MULTI_KBOARD): Define.
22476 * w32console.c (one_and_only_w32cons): Remove.
22477 (initialize_w32_display): Take terminal argument.
22479 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22480 initialize_w32_display.
22481 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22483 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22485 * keyboard.c (discard_mouse_events): Discard it.
22486 (make_lispy_event): Translate it to a lisp event.
22487 (lispy_wheel_names): Add wheel-left and right events.
22488 (syms_of_keyboard): Enlarge wheel_syms.
22490 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22491 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22493 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22495 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22496 from WM_MOUSEHWHEEL.
22497 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22499 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22502 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22503 keyboard for the terminal.
22505 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22507 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22508 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22509 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22510 and resume-tty-function to resume-tty-hook.
22511 (Fsuspend_tty, Fresume_tty): Use new names.
22513 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22515 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22516 if it starts with "n:".
22518 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22520 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22522 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22525 * frame.c (Qterm_environment_variable): Remove.
22526 (syms_of_frame): Don't init and staticpro it.
22528 * callproc.c (getenv_internal): Remove special case for $TERM.
22530 * callproc.c (Vinitial_environment): New variable.
22531 (set_initial_environment): Initialize it.
22532 (syms_of_callproc): Declare it.
22533 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22534 TERM under which a process runs is never related to the TERM in which
22537 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22539 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22540 * s/darwin.h: ... do it here.
22542 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22544 * lisp.h (set_initial_environment): Rename from set_global_environment.
22546 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22547 removed by mistake on the multi-tty branch.
22549 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22550 (Fmodify_frame_parameters): Return a value.
22552 * image.c (png_load): Comment-out var only used in commented-out code.
22554 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22555 before passing it to mark_object.
22557 * xfaces.c (internal_resolve_face_name): Return a value.
22558 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22560 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22561 (x_icon): Comment-out var only used in commented-out code.
22563 2007-08-29 Romain Francoise <romain@orebokech.com>
22565 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22566 QUIT hasn't been provided.
22568 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22570 * callproc.c (child_setup, getenv_internal): Use the
22571 display-environment-variable and term-environment-variable frame params.
22572 (set_initial_environment): Initialise Vprocess_environment.
22574 * config.in: Disable multi-keyboard support on a mac.
22576 * frame.c (Qterm_environment_variable)
22577 (Qdisplay_environment_variable): New variables.
22578 (syms_of_frame): Intern and staticpro them.
22579 (Fmake_terminal_frame): Disable output method test.
22581 * frame.h: Declare them here.
22583 * macfns.c (x_set_mouse_color): Get rif from the frame.
22584 (x_set_tool_bar_lines): Don't use updating_frame.
22585 (mac_window): Add 2 new parameters for consistency with other systems.
22586 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22587 frame parameters following what is done in X11 and w32. Don't use
22588 FRAME_MAC_DISPLAY_INFO.
22589 (Fx_open_connection, start_hourglass): Remove window-system check.
22590 (x_create_tip_frame): Get the keyboard from the terminal.
22592 * macmenu.c: Reorder includes.
22593 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22595 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22596 terminal parameter.
22597 (x_clear_frame): Add a frame parameter.
22598 (note_mouse_movement): Get rif from the frame.
22599 (mac_term_init): Initialize the terminal.
22600 (mac_initialize): Make static and move terminal initialization ...
22601 (mac_create_terminal): ... to this new function.
22603 * macterm.h (struct mac_display_info): Add terminal.
22604 (mac_initialize): Delete declaration.
22606 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22608 * sysdep.c: Comment out text after #endif.
22610 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22611 is defined. Better initialize ttys in windows. Use terminal
22612 specific mouse_position_hook.
22614 * termhooks.h (union display_info): Add mac_display_info.
22616 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22617 Set the default minibuffer frame, window_system and the rest of the
22618 frame parameters following what is done in X11.
22620 * w32term.c (w32_initialize): Make static.
22622 * xselect.c (x_handle_selection_clear): Only access
22623 terminal->kboard when MULTI_KBOARD is defined.
22625 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22626 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22628 2007-08-29 Jason Rumney <jasonr@gnu.org>
22630 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22631 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22633 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22634 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22636 * keyboard.c (restore_kboard_configuration): Only define when
22637 MULTI_KBOARD defined.
22639 * makefile.w32-in: Update dependancies from Makefile.in.
22640 (OBJ1): Add terminal.$(O)
22642 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22643 Don't define function body.
22644 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22646 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22648 * w32.c (request_sigio, unrequest_sigio): Remove.
22650 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22651 (w32con_clear_frame, w32con_clear_end_of_line)
22652 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22653 (w32con_delete_glyphs, w32con_set_terminal_window)
22654 (scroll_line, w32_sys_ring_bell): Add frame arg.
22655 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22657 (PICK_FRAME): Remove.
22658 (w32con_write_glyphs): Use frame specific terminal coding.
22659 (one_and_only_w32cons): New global variable.
22660 (initialize_w32_display): Use it for storing hooks.
22661 (create_w32cons_output): New function.
22663 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22666 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22668 (x_set_tool_bar_lines): Don't use updating_frame.
22669 (Fx_create_frame): Set terminal and ref count.
22670 (Fx_open_connection): Remove window-system check.
22672 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22674 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22675 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22676 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22678 (x_delete_terminal, w32_create_terminal): New functions.
22679 (w32_term_init): Create a terminal.
22680 (w32_initialize): Move terminal specific initialization to
22681 w32_create_terminal.
22683 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22684 (w32_clear_rect, w32_clear_area): Use background from frame.
22685 (w32_display_info): Add terminal.
22686 (w32_sys_ring_bell, x_delete_display): Declare here.
22688 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22690 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22692 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22694 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22695 Fix get_named_tty calls for the controlling tty.
22697 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22699 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22701 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22703 * term.c (tty_insert_glyphs): Add missing first parameter.
22705 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22707 * buffer.c (Fbuffer_list, Fbury_buffer):
22708 Take frame->buried_buffer_list into account.
22710 * cm.c (current_tty): New variable, for cmputc().
22712 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22713 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22714 (cmgoto): Add tty parameter. Pass it on to calccost().
22715 Use emacs_tputs() instead of tputs().
22717 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22719 (current_tty): New variable, for cmputc().
22720 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22722 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22723 (internal_condition_case, internal_condition_case_1)
22724 (internal_condition_case_2): Don't abort when x_catching_errors.
22726 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22727 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22728 prevent crashes caused by bogus longjmps in read_char.
22730 * keymap.h (Fset_keymap_parent): Add EXFUN.
22732 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22733 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22734 Remove redundant definition.
22736 * macfns.c (x_set_mouse_color, x_make_gc):
22737 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22739 * w32term.c (x_free_frame_resources):
22740 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22741 (w32_initialize): Use the accessor macros for terminal characteristics.
22743 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22744 Use the accessor macros for terminal characteristics.
22745 * msdos.c (internal_terminal_init): Use the accessor macros for
22746 terminal characteristics.
22747 (ScreenVisualBell, internal_terminal_init):
22748 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22750 * termopts.h (no_redraw_on_reenter): Declare.
22752 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22753 (mark_terminals, mark_ttys): Declare.
22754 (Fgarbage_collect): Call them.
22755 (mark_object): Mark buried_buffer_list.
22757 * prefix-args.c: Include stdlib.h for exit.
22759 * syssignal.h: Add comment.
22761 * indent.c: Include stdio.h.
22763 * window.h (Vinitial_window_system): Declare.
22764 (Vwindow_system): Delete declaration.
22766 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22768 * image.c (lookup_image): Don't initialize `c' until the xasserts
22771 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22772 FRAME_FOREGROUND_PIXEL.
22774 * print.c (print_preprocess): Don't lose print_depth levels while
22777 * widget.c (update_from_various_frame_slots):
22778 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22780 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22782 (window_internal_height): Remove bogus make_number call.
22783 (init_window_once): Call make_terminal_frame with two zero parameters.
22785 * fileio.c (Fread_file_name): Update comment.
22787 * callint.c (Fcall_interactively):
22788 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22789 Make sure it is correctly unwound.
22791 * xsmfns.c (x_session_close): New function.
22793 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22794 Delete declarations.
22796 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22797 (x_output): Remove background_pixel and foreground_pixel fields.
22798 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22799 (x_delete_device, x_session_close): Declare.
22801 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22802 (read_filtered_event): Call `read_char' with a local
22803 `wrong_kboard_jmpbuf'.
22805 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22806 Don't call single_kboard_state. Use FRAME_RIF.
22808 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22811 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22812 (Fframe_with_environment, Fset_input_meta_mode)
22813 (Fset_quit_char): EXFUN.
22814 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22815 (init_sys_modes, reset_sys_modes): Update prototypes.
22816 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22818 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22819 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22820 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22821 Delete declarations.
22822 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22823 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22826 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22827 already does that during init_display(). Call syms_of_keymap
22828 before syms_of_keyboard. Call `syms_of_terminal'.
22829 Call set_initial_environment, not set_process_environment.
22830 (shut_down_emacs): Call reset_all_sys_modes() instead of
22833 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22834 (internal_resolve_face_name, resolve_face_name_error): New functions.
22835 (resolve_face_name): Protect against loops and errors thrown by Fget.
22836 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22837 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22839 * scroll.c: Replace CURTTY() with local variables throughout the
22840 file (where applicable).
22841 (calculate_scrolling, calculate_direct_scrolling)
22842 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22845 * keymap.c (Vfunction_key_map): Remove.
22846 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22847 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22848 (Vkey_translation_map): Remove.
22849 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22850 (Fdescribe_buffer_bindings)
22851 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22852 Update for terminal-local key-translation-map.
22854 * Makefile.in (callproc.o): Update dependencies.
22855 (lisp, shortlisp): Add termdev.elc.
22856 (obj): Add terminal.o.
22857 (terminal.o): Add dependencies.
22858 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22859 (data.o, fns.o): Add termhooks.h dependency.
22860 (SOME_MACHINE_LISP): Add dnd.elc.
22861 (minibuf.o): Fix typo.
22862 Update dependencies.
22864 * data.c (do_symval_forwarding, store_symval_forwarding)
22865 (find_symbol_value): Use the selected frame's keyboard, not
22868 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22871 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22873 (syms_of_xmenu): Update defsubr.
22874 (mouse_position_for_popup, Fx_popup_menu)
22875 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22876 (set_frame_menubar, free_frame_menubar)
22877 (create_and_show_popup_menu, xmenu_show)
22878 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22881 * xselect.c (x_own_selection): Abort if not an X frame.
22882 (some_frame_on_display): Check if it is an X frame.
22883 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22885 * coding.c: Include frame.h and termhooks.h.
22886 (terminal_coding, keyboard_coding): Delete.
22887 (Fset_terminal_coding_system_internal)
22888 (Fset_keyboard_coding_system_internal)
22889 (Fkeyboard_coding_system)
22890 (Fterminal_coding_system): Add a terminal parameter.
22891 Get terminal_coding from the terminal.
22892 (init_coding_once): Don't call setup_coding_system here.
22894 * dispextern.h (set_scroll_region, turn_off_insert)
22895 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22896 (tty_clear_end_of_line, tty_setup_colors)
22897 (delete_tty, updating_frame)
22898 (produce_special_glyphs, produce_glyphs, write_glyphs)
22899 (insert_glyphs): Remove.
22900 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22901 (tty_turn_off_highlight, get_tty_size): Add declaration.
22902 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22904 * frame.h (enum output_method): Add output_initial.
22905 (struct x_output): Delete.
22906 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22907 Access foreground_pixel and background_pixel directly from the frame.
22908 (tty_display): Delete.
22909 (struct frame): Add buried_buffer_list, foreground_pixel,
22910 background_pixel and terminal. Delete kboard.
22911 (union output_data): Add tty.
22912 (FRAME_KBOARD): Get the kboard from the terminal.
22913 (FRAME_INITIAL_P): New macro.
22914 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22915 (Qterm_environment_variable, Qdisplay_environment_variable)
22916 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22919 * termchar.h (tty_output, tty_display_info): New structures.
22920 (tty_list): Declare.
22921 (FRAME_TTY, CURTTY): New macros.
22922 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22923 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22924 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22925 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22927 * callproc.c: Include frame.h and termhooks.h, for terminal
22929 (add_env): New function.
22930 (child_setup): Use it.
22931 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22932 (getenv_internal): Fix get_terminal_param call.
22933 (Fgetenv_internal, egetenv): Update doc.
22934 (syms_of_callproc): Initialize Vprocess_environment to nil.
22935 Register and initialize them. Remove obsolete defvars. Update doc
22937 (child_setup): Handle Vlocal_environment_variables.
22938 (getenv_internal): Add terminal parameter.
22939 Handle Vlocal_environment_variables.
22940 (Fgetenv_internal): Add terminal parameter.
22941 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22942 environment in a frame (not terminal) parameter. Update doc strings.
22943 (set_initial_environment): Rename from set_global_environment.
22944 Store Emacs environment in initial frame parameter.
22946 * xdisp.c (redisplay_internal): Update references to
22947 `previous_terminal_frame'.
22948 (display_mode_line, Fformat_mode_line): Replace calls to
22949 `push_frame_kboard' with `push_kboard'.
22950 (get_glyph_string_clip_rects): Add extra parentheses and
22951 braces to prevent compiler warnings.
22952 (calc_pixel_width_or_height): Add xassert to check that the
22953 frame is alive. Don't call `lookup_image' on a termcap frame.
22954 (message2_nolog, message3_nolog, redisplay_internal)
22955 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22956 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22957 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22958 (Fx_display_pixel_width, Fx_display_pixel_height)
22959 (Fx_display_planes, Fx_display_color_cells)
22960 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22961 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22962 (Fx_display_backing_store, Fx_display_visual_class)
22963 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22964 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22966 * xfns.c (x_set_foreground_color x_set_background_color)
22967 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22968 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22969 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22970 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22971 terminal that is being deleted.
22972 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22973 frame parameter, and make sure it overrides any user-supplied setting.
22974 (Fx_close_connection, Fx_synchronize): Unify argument names with
22975 the rest of the DEFUNs.
22977 * dispnew.c (Fsend_string_to_terminal): Update call to
22978 `get_tty_terminal'.
22979 (Fredraw_frame, Fsend_string_to_terminal)
22980 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22981 FRAME_TERMCAP_P and FRAME_TTY.
22982 (window_change_signal): Don't believe width/height values that are
22984 (Vinitial_window_system): Rename from Vwindow_system.
22985 (termscript, Wcm, rif): Delete.
22987 * termhooks.h (struct terminal): New struct containing the
22988 previously global text display hooks and new members NAME,
22989 DELETED and PARAM_ALIST.
22990 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22991 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22992 (FRAME_RIF): New macros.
22993 (get_terminal_param, get_device): New declarations.
22994 (termscript): Delete declaration.
22996 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22997 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22998 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22999 FRAME_FOREGROUND_PIXEL.
23000 (x_fully_uncatch_errors): Disable definition.
23001 (x_scroll_bar_expose): Fix reference to foreground pixel.
23002 (XTread_socket): Disable loop on all X displays.
23003 (x_delete_terminal): Don't set terminal->deleted and let
23004 delete_terminal delete the frames on the terminal.
23005 (x_delete_display): Doc update to reflect changes in
23007 (x_display_info) <terminal>: Move member earlier in the struct.
23008 (deleting_tty): Remove old variable.
23009 (Fsuspend_tty): Call clear_tty_hooks.
23010 (Fresume_tty, init_tty): Call set_tty_hooks.
23011 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23012 errors on X frames.
23013 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23014 (handle_one_xevent): Initialize `f' to NULL.
23015 (x_delete_terminal, x_create_terminal): New functions.
23016 (XTset_terminal_modes, XTreset_terminal_modes)
23017 (XTread_socket, x_connection_closed, x_term_init)
23018 (x_term_init, x_delete_display): Add terminal parameter.
23019 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23022 * frame.c: Include termchar.h.
23023 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23024 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23025 (Qdisplay_environment_variable): New vars.
23026 (Fframep): Deal with output_initial.
23027 (Fframe-live-p): Doc fix.
23028 (Fwindow-system): New function.
23029 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23030 (make_terminal_frame): Don't create frames on a terminal that is
23031 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23032 (store_frame_param): Check for found_for_frame before calling XFRAME.
23033 (Fmake_terminal_frame): Handle NULL tty names correctly.
23034 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23035 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23036 frames to refer to a deleted frame in their 'environment parameter.
23037 (Fframe_with_environment): New function.
23038 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23039 (get_future_frame_param): New function.
23040 (Fmake_terminal_frame): Use it.
23041 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23043 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23044 * sysdep.c (reset_sys_modes): Update for renames.
23046 * keyboard.c (tty_read_avail_input): New function.
23047 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23048 (syms_of_keyboard): Defsubr them.
23049 (Fset_input_meta_mode, Fset_quit_char): New functions.
23050 (Fset_input_mode): Split to above functions.
23051 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23052 parameter. Use it in call to `read_char'.
23053 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23054 Set wrong_kboard_jmpbuf correctly in recursive calls.
23055 Use current_kboard to access Vkeyboard_translate_table.
23056 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23057 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23058 Update longjmp invocations. Remember the original current_kboard,
23059 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23060 changes it. Comment out unnecessary calls to
23061 `record_single_kboard_state' and `any_kboard_state'.
23062 Update recursive calls.
23063 (wrong_kboard_jmpbuf): Remove global variable.
23064 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23065 Handle deleted interrupted_kboards correctly; that is a legal
23066 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23067 and read_char calls. Abort if interrupted_kboard died in read_char.
23068 (any_kboard_state, single_kboard_state)
23069 (push_frame_kboard): Remove function.
23070 (pop_kboard): Switch out of single_kboard mode if the kboard has
23071 been deleted. Remove unused variable. Help debugging by not
23072 changing current_kboard unnecessarily. Set current_kboard to the
23073 kboard of the selected frame when the stored kboard object has
23074 been deleted before pop_kboard.
23075 (temporarily_switch_to_single_kboard): Change first parameter to a
23076 frame pointer. Throw an error when caller wants to change kboards
23077 while in single_kboard mode. Don't push_kboard if we weren't in
23078 single kboard state. Don't pop_kboard if we popped into any
23080 (restore_kboard_configuration): Abort if pop_kboard changed the
23081 kboard in single_kboard mode. Call pop_kboard only after setting
23082 up single_kboard mode.
23083 (Frecursive_edit): Switch to single_kboard mode only in nested
23085 (cmd_error, command_loop, command_loop_1, timer_check):
23086 Comment out unnecessary call to `any_kboard_state' and
23087 `record_single_kboard_state'.
23088 (delete_kboard): Exit single_kboard mode if we have just deleted
23089 that kboard. Use FRAME_KBOARD.
23090 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23091 `fatal_error_signal'.
23092 (record_single_kboard_state): Don't push_kboard if we weren't in
23093 single kboard state. Don't pop_kboard if we popped into any
23095 (push_frame_kboard): Rename to push_kboard.
23096 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23097 (read_avail_input): Read input from all terminals.
23098 (mark_kboards): Also mark Vkeyboard_translate_table.
23099 (kbd_buffer_store_event_hold): Simplify condition.
23100 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23101 (Vkeyboard_translate_table): Move to struct kboard.
23102 (init_kboard): Initialize Vkeyboard_translate_table.
23103 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23104 Vkeyboard_translate_table. Update doc strings. Update docs of
23105 local-function-key-map and function-key-map.
23107 * terminal.c: New file.
23109 * term.c: Include errno.h.
23110 (Vring_bell_function, device_list, initial_device)
23111 (next_device_id, ring_bell, update_begin, update_end)
23112 (set_terminal_window, cursor_to, raw_cursor_to)
23113 (clear_to_end, clear_frame, clear_end_of_line)
23114 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23115 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23116 (syms_of_term): Move their initialization to terminal.c.
23117 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23118 (Ftty_display_color_cells)
23119 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23120 (clear_tty_hooks, set_tty_hooks)
23121 (init_tty, maybe_fatal): New functions.
23122 (Ftty_type): Return nil if terminal is not on a tty instead of
23123 throwing an error. Doc update.
23124 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23125 Doc update. Initialize new subrs and variables.
23126 (delete_tty): Use terminal->deleted.
23127 (tty_set_terminal_modes): Rename from set_terminal_modes.
23128 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23129 (set_scroll_region): Rename to `tty_set_scroll_region'.
23130 (turn_on_insert): Rename to `tty_turn_on_insert'.
23131 (turn_off_insert): Rename to `tty_turn_off_insert'.
23132 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23133 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23134 (toggle_highligh): Rename to `tty_toggle_highlight'.
23135 (background_highlight): Rename to `tty_background_highlight'.
23136 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23137 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23138 (tty_set_scroll_region, tty_background_highlight)
23139 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23140 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23141 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23142 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23143 Add static modifier.
23144 (tty_reset_terminal_modes, tty_set_terminal_window)
23145 (tty_set_scroll_region, tty_background_highlight)
23146 (tty_highlight_if_desired, tty_cursor_to)
23147 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23148 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23149 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23152 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23154 * keyboard.c: Qrtl is new.
23155 (parse_tool_bar_item): Handle :rtl keyword.
23156 (syms_of_keyboard): Intern :rtl keyword.
23158 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23160 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23161 so no Lisp code is executed.
23162 (file_for_image, find_rtl_image): New functions.
23163 (xg_get_image_for_pixmap): Use file_for_image.
23164 (update_frame_tool_bar): If direction is RTL, use RTL image if
23165 defined. Use Gtk stock images if defined.
23167 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23169 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23170 for nonexistent or zero-width glyph in composition glyph.
23172 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23174 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23176 * xdisp.c (Finvisible_p): New function.
23177 (syms_of_xdisp): defsubr it.
23179 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
23181 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23184 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23186 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23188 2007-08-24 Martin Rudalics <rudalics@gmx.at>
23190 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23191 whether decoding has modified buffer contents.
23193 2007-08-24 Jason Rumney <jasonr@gnu.org>
23195 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23196 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23197 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23198 (init_svg_functions) [HAVE_NTGUI]: New function.
23199 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23200 (svg_load_image): Use them.
23201 (svg_load_image) [HAVE_NTGUI]: Implement background.
23203 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23205 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23206 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23207 (LIBX): Remove @RSVG_LIBS@.
23208 (LIBES): Add $(RSVG_LIBS).
23210 * image.c (svg_load_image): Blend with specified background if exists.
23211 Use IMAGE_BACKGROUND. Add Mac OS Support.
23213 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23214 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23216 [MAC_OSX] (socket_callback): Do nothing.
23217 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23219 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23221 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23223 2007-08-22 Glenn Morris <rgm@gnu.org>
23225 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23227 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23229 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23231 * image.c: Add support for SVG images. Some additional comments
23232 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23233 (svg_image_p): New function to test for SVG image.
23234 (svg_load): New function to load SVG image.
23235 (svg_load_image): New function, helper for svg_load.
23236 (Qsvg): New Lisp_object.
23237 (svg_keyword_index): New enum.
23238 (svg_format): New static `image_keyword' struct.
23239 (svg_type): New static `image_type' struct.
23240 (librsvg/rsvg.h): Include it.
23242 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23244 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23246 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23248 * lread.c (Qold_style_backquotes): New var.
23249 (syms_of_lread): Init and staticpro it.
23250 (load_warn_old_style_backquotes): New fun.
23251 (Fload): Use them to warn about old style backquotes.
23252 (end_of_file_error, Fload): Remove unused vars.
23254 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23256 * lread.c (Vold_style_backquotes): New var.
23257 (syms_of_lread): Init and export it to Elisp.
23258 (read1): Set it when we find an old-style (back)quote.
23260 2007-08-22 Jason Rumney <jasonr@gnu.org>
23262 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23264 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23266 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23268 2007-08-19 Richard Stallman <rms@gnu.org>
23270 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23272 2007-08-19 Andreas Schwab <schwab@suse.de>
23274 * alloc.c (pure): Round PURESIZE up.
23276 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23278 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23281 2007-08-16 Richard Stallman <rms@gnu.org>
23283 * eval.c (Fcommandp): Add parens to clarify.
23285 * minibuf.c (Fall_completions): Use enum for type of table.
23287 * emacs.c (USAGE2): Improve text.
23289 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23291 * term.c (tty_default_color_capabilities): Declare static
23292 variables in file scope, to avoid HPUX compiler problem.
23294 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23296 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23297 to gtk_toolbar_insert.
23299 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23301 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23303 * insdel.c (reset_var_on_error): New fun.
23304 (signal_before_change, signal_after_change):
23305 Use it to reset (after|before)-change-functions to nil in case of error.
23306 Bind inhibit-modification-hooks to t.
23307 Don't bind (after|before)-change-functions to nil while they run.
23309 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23311 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23312 filling pixmap with stippled background.
23314 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23316 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23317 Don't use invisible frame as parent window for repositioning.
23319 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23321 * print.c (new_backquote_output): Rename from old_backquote_output.
23322 (print): Inverse its logic (according to its name) so as to match the
23323 behavior of new_backquote_flag in lread.c.
23325 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23327 * gmalloc.c (posix_memalign): New function.
23329 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23330 ActivateControl/DeactivateControl here.
23331 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23332 frame-notice-user-settings is non-nil.
23333 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23334 for kEventParamFMFontStyle.
23335 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23336 mac_pass_command_to_system and mac_pass_control_to_system here.
23337 (XTread_socket): Call ActivateControl/DeactivateControl here.
23338 (XTread_socket) [TARGET_API_MAC_CARBON]:
23339 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23340 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23341 for window repositioning.
23343 2007-08-08 Glenn Morris <rgm@gnu.org>
23345 * Replace `iff' in doc-strings and comments.
23347 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23349 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23351 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23353 * fileio.c (Finsert_file_contents): Run format-decode and
23354 after_insert_file_functions on entire buffer when REPLACE is
23355 non-nil and inhibit modification_hooks and point_motion_hooks.
23356 For consistency, run after_insert_file_functions iff something
23357 got inserted. Move signal_after_change and update_compositions
23358 after code running after_insert_file_functions. Make sure that
23359 undo_list doesn't record intermediate steps of the decoding process.
23361 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23364 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23365 Call malloc_enable_thread on interactive startup.
23367 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23368 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23369 [USE_PTHREAD]: Conditionalize with it.
23370 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23371 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23374 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23376 * xdisp.c (redisplay_window): When restoring original buffer
23377 position, make sure it is still valid.
23379 * image.c (png_load): Ignore png-supplied background color.
23381 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23383 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23384 Use kCFAbsoluteTimeIntervalSince1970.
23386 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23388 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23389 event loop should be quit.
23390 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23391 Quit dialog event loop if quit_dialog_event_loop is set.
23393 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23394 (Selection): New typedef. Use instead of ScrapRef.
23395 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23396 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23397 (mac_clear_selection): Rename from clear_scrap.
23398 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23399 scrap_has_target_type. All uses changed.
23400 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23401 (mac_selection_has_target_p): New functions.
23402 (mac_put_selection_value): Rename from put_scrap_string.
23403 (mac_get_selection_value): Rename from get_scrap_string.
23404 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23405 (put_scrap_private_timestamp, scrap_has_target_type)
23406 (get_scrap_private_timestamp): Remove functions.
23407 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23408 (x_own_selection, x_get_local_selection):
23409 Use mac_valid_selection_value_p.
23410 (x_own_selection): Don't use put_scrap_private_timestamp.
23411 Record OWNERSHIP-INFO into Vselection_alist instead.
23412 (x_get_local_selection): Don't check type if request is local.
23413 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23414 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23416 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23418 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23419 add comment explaining why.
23421 2007-08-03 Richard Stallman <rms@gnu.org>
23423 * fileio.c (Fvisited_file_modtime): Use make_time.
23425 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23427 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23430 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23432 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23434 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23436 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23438 2007-07-30 Richard Stallman <rms@gnu.org>
23440 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23442 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23444 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23446 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23448 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23449 remote default-directory.
23451 * buffer.c (mode-line-format): Update doc string.
23453 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23455 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23457 (x_scroll_bar_create): Set bar->fringe_extended_p.
23458 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23459 on frame edge. Check fringe background extension. Don't clear
23460 extended fringe background area.
23462 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23463 (w32_fill_area): Enclose multiple statements with do ... while (0).
23465 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23466 Extend fringe background to scroll bar gap.
23467 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23468 Set bar->fringe_extended_p.
23469 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23470 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23471 background extension. Don't clear extended fringe background area.
23473 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23474 New member fringe_extended_p.
23476 2007-07-25 Glenn Morris <rgm@gnu.org>
23478 * Relicense all FSF files to GPLv3 or later.
23480 * COPYING: Switch to GPLv3.
23482 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23484 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23486 * data.c (Finteractive_form): Check for the presence of an
23487 `interactive-form' symbol property more thoroughly.
23489 * data.c (Finteractive_form): Use an `interactive-form' property if
23490 present, analogous to the function-documentation property.
23492 2007-07-24 Jason Rumney <jasonr@gnu.org>
23494 * w32fns.c (x_real_positions): Get real position from OS instead of
23497 2007-07-23 Jason Rumney <jasonr@gnu.org>
23499 * filelock.c (current_lock_owner): Allow for @ sign in username.
23501 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23503 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23504 remote default-directory.
23506 * buffer.c (mode-line-format): Describe above case in doc string.
23508 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23510 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23511 Define if not defined.
23513 2007-07-18 Jason Rumney <jasonr@gnu.org>
23515 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23517 2007-07-18 Richard Stallman <rms@gnu.org>
23519 * data.c (Fsetq_default): Doc fix.
23521 * eval.c (Fsetq): Doc fix.
23523 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23525 * coding.c (Ffind_operation_coding_system):
23526 * eval.c (For, Fand): Doc fixes.
23527 Reported by Johan Bockgård.
23529 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23531 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23533 * xterm.h: Declare x_ewmh_activate_frame.
23535 * xterm.c (x_ewmh_activate_frame): New function.
23536 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23538 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23540 * window.c (Fdisplay_buffer): If largest or LRU window is the
23541 only window, split it even if it is not eligible for splitting.
23542 This restores the original behavior broken by the 2007-07-15
23545 2007-07-17 Glenn Morris <rgm@gnu.org>
23547 * abbrev.c (abbrev_check_chars): New function.
23548 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23549 Call abbrev_check_chars to check abbrev characters are word
23550 constituents. Doc fix.
23552 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23554 * process.c (Fstart_process, Fmake_network_process)
23555 (read_process_output): Fix up last changes.
23557 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23559 * makefile.w32-in (clean): Don't delete *~.
23561 2007-07-16 Andreas Schwab <schwab@suse.de>
23563 * window.c (Fdisplay_buffer): Use NILP.
23564 (Fset_window_scroll_bars): Likewise.
23566 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23568 * window.c (window_min_size_2): New function.
23569 (window_min_size_1, size_window, Fdisplay_buffer)
23570 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23571 windows without mode- or header-lines when window-min-height is
23573 (size_window): Reset nodelete_p after testing it, following an
23574 earlier note by Kim F. Storm.
23575 (display_buffer): Do not set split_height_threshold to twice the
23576 value of window_min_height to avoid changing the value of a
23577 customizable variable. Rather explicitly check whether the
23578 height of the window that shall be splitted is at least as large
23579 as split_height_threshold.
23580 (Fwindow_full_width_p): New defun.
23581 (syms_of_window): Defsubr it.
23583 * window.h: Add EXFUN for Fwindow_full_width_p.
23585 2007-07-14 Jason Rumney <jasonr@gnu.org>
23587 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23589 2007-07-14 Richard Stallman <rms@gnu.org>
23591 * eval.c (maybe_call_debugger): New function.
23592 (find_handler_clause): Use maybe_call_debugger.
23593 Call it when the handler says `debug'.
23594 Eliminate DEBUGGER_VALUE_PTR.
23595 (Fsignal): Eliminate debugger_value.
23596 (Qdebug): New variable.
23597 (syms_of_eval): Initialize it.
23599 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23602 * keyboard.c (Ftrack_mouse):
23603 * print.c (Fwith_output_to_temp_buffer):
23604 * window.c (Fsave_window_excursion): Doc fix.
23606 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23608 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23610 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23612 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23613 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23614 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23615 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23616 Remove unused encoding_carryover.
23617 * process.c: Adjust all functions accordingly.
23619 2007-07-12 Richard Stallman <rms@gnu.org>
23621 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23623 2007-07-11 Jason Rumney <jasonr@gnu.org>
23625 * makefile.w32-in (LIBS): Include OLE32.
23627 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23628 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23630 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23632 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23633 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23634 from a Lisp_Object into a bare pointer.
23635 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23636 Adjust the code correspondingly.
23638 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23640 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23641 (term_show_mouse_face): Remove unused var `j'.
23642 (handle_one_term_event): Remove unused vars `i' and `j'.
23643 Don't cast return value of ttyname since it's not necessary.
23645 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23647 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23648 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23650 * fns.c (map_char_table): Use an array of int for `indices' rather than
23651 an array of Lisp_Objects (which are only ever integers anyway).
23652 (Fmap_char_table): Update caller.
23653 * lisp.h: Update prototype.
23654 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23655 * fontset.c (Ffontset_info):
23656 * casetab.c (set_case_table): Update callers.
23658 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23660 * keymap.c (struct accessible_keymaps_data)
23661 (struct where_is_internal_data): New structures.
23662 (accessible_keymaps_1, where_is_internal_1): Use them to change
23663 interface to adhere to the one used by map_keymap.
23664 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23665 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23667 * keymap.h (map_keymap_function_t): More informative prototype.
23669 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23671 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23672 (looking_at_1): Don't change search_regs and last_thing_searched
23673 if `inhibit-changing-match-data' is non-nil.
23674 (string_match_1, search_buffer, set_search_regs): Likewise.
23675 (syms_of_search): Add Lisp level definition for
23676 `inhibit-changing-match-data' and set it to nil.
23677 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23678 start and end of the match, instead of using values in search_regs.
23680 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23682 * minibuf.c (Fcompleting_read): New value `confirm-only'
23683 for `require-match'.
23685 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23687 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23688 part of the 2007-06-27 change to syms_of_fileio.
23690 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23692 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23693 Check WINDOWP before using XWINDOW. Consolidate return statements.
23695 2007-06-27 Richard Stallman <rms@gnu.org>
23697 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23699 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23701 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23703 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23705 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23706 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23707 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23708 (_free_internal, memalign): Use them.
23709 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23710 Initialize to PTHREAD_MUTEX_INITIALIZER.
23711 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23712 (morecore_nolock): Rename from morecore. All uses changed.
23713 Use only nolock versions of internal allocation functions.
23714 (_malloc_internal_nolock, _realloc_internal_nolock)
23715 (_free_internal_nolock): New functions created from
23716 _malloc_internal, _realloc_internal, and _free_internal.
23717 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23718 Copy hook value to automatic variable before its use.
23719 (memalign): Copy hook value to automatic variable before its use.
23721 2007-06-26 Kenichi Handa <handa@m17n.org>
23723 * coding.c (Ffind_operation_coding_system): Docstring improved.
23724 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23726 2007-06-25 David Kastrup <dak@gnu.org>
23728 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23729 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23730 cater for additional parameter.
23732 * keymap.h: Adjust number of parameters to `current-active-maps'.
23734 * doc.c (Fsubstitute_command_keys): Adjust call of
23735 `current-active-maps'.
23737 2007-06-25 David Kastrup <dak@gnu.org>
23739 * callint.c (Fcall_interactively): Make the parsing of interactive
23740 specs somewhat more readable.
23742 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23744 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23745 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23746 if extended background has already been filled.
23748 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23750 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23751 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23753 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23754 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23755 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23756 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23757 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23758 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23759 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23760 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23761 Run timers during dialog popup.
23762 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23764 2007-06-21 Jason Rumney <jasonr@gnu.org>
23766 * image.c (convert_mono_to_color_image): Swap fore and background.
23768 2007-06-20 Jason Rumney <jasonr@gnu.org>
23770 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23771 (w32_free_bdf_font): Unmap memory not handle.
23773 2007-06-20 Sam Steingold <sds@gnu.org>
23775 * gmalloc.c (__morecore): Fix the declaration to comply with the
23778 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23780 * w32term.c (w32_delete_display): Remove leftover declaration.
23781 (w32_define_cursor, w32_initialize): Make static.
23783 * w32.c (_wsa_errlist): Fix typo in error message.
23784 (init_environment): Ignore any environment variable from the
23785 registry having a null value.
23787 2007-06-20 Glenn Morris <rgm@gnu.org>
23789 * Makefile.in (LIBGIF): Default to -lgif.
23791 2007-06-17 Jason Rumney <jasonr@gnu.org>
23793 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23796 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23798 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23799 Fix typo in docstring.
23801 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23803 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23804 and their keybindings.
23806 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23808 * composite.c (update_compositions): Fix last fix.
23810 2007-06-14 Jason Rumney <jasonr@gnu.org>
23812 * w32.c (get_process_times_fn): New function pointer.
23813 (globals_of_w32): Intialize it if present in kernel32.dll.
23814 (w32_get_internal_run_time): New function.
23816 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23818 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23820 * composite.c (update_compositions): Check the validness of
23823 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23825 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23826 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23828 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23829 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23831 * macgui.h (USE_MAC_TOOLBAR): New define.
23833 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23834 Return immediately unless popup is activated.
23836 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23837 background to scroll bar gap.
23838 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23839 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23840 scroll bars on frame edge. Check fringe background extension.
23841 Don't clear extended fringe background area.
23842 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23843 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23844 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23845 [USE_MAC_TOOLBAR]: New macros.
23846 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23847 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23848 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23849 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23850 [USE_MAC_TOOLBAR]: New functions.
23851 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23852 manually if previous repositioning has failed.
23853 (mac_handle_keyboard_event): Use precomputed event kind.
23854 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23855 as tool bar item click. Handle mouse movement over tool bar items.
23857 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23858 toolbar_win_gravity.
23859 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23860 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23863 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23864 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23866 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23868 * image.c (search_image_cache): Remove unused variable.
23870 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23872 * xfns.c, xmenu.c: Link to xaw3d if available.
23874 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23876 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23877 frame_foreground and frame_background.
23879 * image.c (lookup_image): Save frame foreground and background colors.
23880 (search_image_cache): Check if saved and current frame colors match.
23882 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23884 * regex.c (regex_compile): Remove the `regnum' counter.
23885 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23887 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23889 * term.c: Include intervals.h to declare Fget_text_property.
23891 2007-06-10 Jason Rumney <jasonr@gnu.org>
23893 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23895 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23897 * callint.c (Fcall_interactively):
23898 * editfns.c (Fdelete_and_extract_region):
23899 * fileio.c (Fread_file_name):
23900 * fns.c (Fmapconcat):
23901 * keyboard.c (cmd_error_internal):
23902 * keymap.c (Fkey_description):
23904 * minibuf.c (read_minibuf):
23905 * search.c (wordify):
23906 * sunfns.c (sel_read):
23907 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23908 * xfns.c (x_default_scroll_bar_color_parameter):
23909 * xmenu.c (menu_help_callback):
23910 * xselect.c (Fx_get_atom_name):
23911 * xterm.c (x_term_init): Use empty_unibyte_string.
23913 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23915 * alloc.c (init_strings): Initialize canonical empty strings.
23916 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23917 canonical empty string when the requested size is 0.
23919 * emacs.c (empty_unibyte_string): Rename from empty_string.
23920 (empty_multibyte_string): New canonical empty string.
23921 (syms_of_emacs): Don't initialize empty_string.
23923 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23924 string, if appropriate.
23925 (empty_unibyte_string, empty_multibyte_string): New externs.
23926 (empty_string): Remove extern.
23928 * lread.c (syms_of_lread): Use empty_unibyte_string.
23930 2007-06-07 Jason Rumney <jasonr@gnu.org>
23932 * s/ms-w32.h: Don't define HAVE_TZNAME.
23934 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23936 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23938 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23940 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23941 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23943 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23944 Don't call next handler.
23945 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23946 Remove argument. Install handler to application.
23947 (set_frame_menubar): Don't change deep_p.
23948 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23949 FRAME_OUTER_TO_INNER_DIFF_Y.
23950 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23951 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23952 [HAVE_DIALOGS]: New macros.
23953 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23955 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23957 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23958 init_service_handler. All callers changed. Return OSStatus value.
23960 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23961 All callers changed so as not to call SetPortWindowPort.
23962 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23963 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23964 mac_draw_string_common.
23965 (mac_draw_image_string_qd): Likewise.
23966 (mac_draw_string_common): Use them. Add INLINE.
23967 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23968 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23970 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23971 and FRAME_OUTER_TO_INNER_DIFF_Y.
23972 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23973 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23974 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23975 repositioning window to mac_handle_window_event.
23976 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23977 saving window location to mac_handle_window_event
23978 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23979 (install_menu_target_item_handler): Remove argument in extern.
23980 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23981 Also accept command events.
23982 (do_keystroke): New function created from XTread_socket.
23983 (init_command_handler): Remove functions.
23984 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23985 and save window location by kEventWindowShowing and kEventWindowHiding
23986 handlers here. Don't call next handler for window state change and
23988 (mac_handle_application_event, mac_handle_keyboard_event)
23989 [TARGET_API_MAC_CARBON]: New functions.
23990 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23991 kEventWindowShowing and kEventWindowHiding events. Move installation
23992 of mouse, font, text input and menu target item handlers to
23993 install_application_handler.
23994 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23995 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23997 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23999 (XTread_socket) [TARGET_API_MAC_CARBON]:
24000 Consolidate SendEventToEventTarget calls.
24001 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24002 Move application activation handler to mac_handle_application_event.
24003 Move keyboard handler to mac_handle_keyboard_event.
24004 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24005 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24006 init_command_handler. Call install_application_handler.
24008 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24009 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24011 2007-06-07 Glenn Morris <rgm@gnu.org>
24013 * emacs.c (main): Use `emacs-copyright' in --version output.
24015 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
24017 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24019 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24021 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24023 * macgui.h: Replace WindowPtr with WindowRef.
24025 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24026 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24027 Replace ControlHandle with ControlRef.
24028 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24030 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24031 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24032 Replace ControlHandle with ControlRef.
24033 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24034 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24036 * macterm.h (struct scroll_bar): Rename member control_handle_low
24037 and control_handle_high to control_ref_low and control_ref_high.
24039 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24040 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24041 respectively. All uses changed.
24042 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24043 (install_window_handler, remove_window_handler): Replace WindowPtr
24044 with WindowRef in externs.
24046 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
24048 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24050 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
24052 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24054 * frame.c (Fmouse_position, Fmouse_pixel_position):
24055 Condition on HAVE_GPM too.
24057 * term.c (term_mouse_highlight): Remove unused variables.
24058 (Fterm_open_connection): Set gpm_zerobased to 1.
24059 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24060 Use zero based co-ordinates.
24061 (handle_one_term_event): Report a drag as mouse movement too.
24063 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24065 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
24067 * image.c (search_image_cache): New function. Require background
24068 color match if background color is unspecified in the image spec.
24069 (uncache_image, lookup_image): Use it.
24071 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
24073 * window.c (Fshrink_window): Reflow docstring.
24075 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
24077 * Version 22.1 released.
24079 2007-06-01 Richard Stallman <rms@gnu.org>
24081 * xfns.c (x_encode_text): Add GCPRO.
24083 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24085 * xfns.c (x_set_name_internal): Save encoded name before
24086 x_encode_text in case string data is relocated.
24088 2007-05-31 Richard Stallman <rms@gnu.org>
24090 * buffer.c (syms_of_buffer): Doc fix.
24092 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
24094 * sysdep.c (init_sys_modes): Add rather than replace with
24097 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24100 * termhooks.h (term_mouse_moveto): New extern.
24102 * term.c (mouse_face_window): Rename...
24103 (Qmouse_face_window): ...to this.
24104 (term_show_mouse_face, term_clear_mouse_face)
24105 (term_mouse_highlight): Use Qmouse_face_window.
24106 (term_mouse_moveto): New function.
24107 (term_mouse_position): Make it work.
24108 (syms_of_term): Uncomment assignment to mouse_position_hook.
24109 Staticpro Qmouse_face_window.
24111 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24113 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24114 around current_column call.
24116 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24118 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24119 * xdisp.c (next_element_from_buffer):
24120 * window.c (delete_window):
24121 * term.c (term_mouse_highlight):
24122 * msdos.c (getdefdir):
24123 * macterm.c (mac_create_bitmap_from_bitmap_data)
24124 (init_font_name_table):
24126 * data.c (Fmake_local_variable):
24127 * ccl.c (ccl_driver): Likewise.
24129 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24131 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24132 Call mac_wakeup_from_rne on window size change.
24134 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
24136 * image.c (uncache_image): Fix typo.
24138 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24140 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24142 2007-05-22 Richard Stallman <rms@gnu.org>
24144 * xterm.c (x_connection_closed): Remove NO_RETURN.
24146 2007-05-22 Martin Rudalics <rudalics@gmx.at>
24148 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24150 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
24152 * image.c (uncache_image): New function.
24153 (Fimage_refresh): New function.
24155 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24157 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24159 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24161 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24162 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24164 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24166 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24167 conditional on [HAVE_GPM_H].
24169 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24171 * syntax.c (skip_chars): Update syntax-table only after we checked that
24172 the new location is valid.
24174 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24176 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24177 mac_get_window_bounds.
24179 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24181 * Makefile.in (LIBGPM): Allow it to be set from configure.
24182 If set then link Emacs with it.
24184 * config.in: Regenerate.
24186 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24189 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24191 (handle_one_term_event, term_gpm): New externs.
24193 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24194 and allow it to be interrupted by SIGIO.
24196 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24197 (wait_reading_process_output): Wait on gpm_fd too.
24198 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24199 (add_gpm_wait_descriptor_called_flag): New variable.
24200 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24202 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24203 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24204 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24205 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24206 (make_lispy_event): Add case GPM_CLICK_EVENT.
24207 (read_avail_input): Handle mouse input.
24209 * term.c (write_glyphs_with_face): New function.
24210 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24211 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24212 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24213 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24214 (last_mouse_x, last_mouse_y): New variables.
24215 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24216 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24217 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24218 (Fterm_close_connection): New functions.
24219 (term_init): Initialise mouse_face_window.
24221 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
24223 * xdisp.c (redisplay_window): If first window line is a
24224 continuation line, recompute the new window start instead of
24227 2007-05-18 Glenn Morris <rgm@gnu.org>
24229 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24230 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24232 2007-05-17 Glenn Morris <rgm@gnu.org>
24234 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24236 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24238 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24239 dead key repeat and up events.
24241 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
24243 * image.c (pbm_load): Check image size for monochrome pbm.
24245 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
24247 * xterm.c (XTread_socket): Revert last change.
24249 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
24251 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24253 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24255 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24257 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24260 2007-05-07 Andreas Schwab <schwab@suse.de>
24262 * keymap.c (Flookup_key): Fix typo in last change.
24264 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24266 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24267 mapping for unibyte strings.
24269 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24271 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24272 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24274 2007-04-29 Richard Stallman <rms@gnu.org>
24276 * insdel.c (replace_range): For undo, record insertion first.
24278 2007-04-29 Andreas Schwab <schwab@suse.de>
24280 * lisp.h (VECSIZE): Use OFFSETOF.
24282 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24284 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24287 2007-04-28 Richard Stallman <rms@gnu.org>
24289 * lread.c (read_escape): In a string, \s is always space.
24291 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24293 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24295 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24296 submenu for menu bar items.
24298 See ChangeLog.10 for earlier changes.
24300 ;; Local Variables:
24302 ;; add-log-time-zone-rule: t
24305 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
24307 This file is part of GNU Emacs.
24309 GNU Emacs is free software: you can redistribute it and/or modify
24310 it under the terms of the GNU General Public License as published by
24311 the Free Software Foundation, either version 3 of the License, or
24312 (at your option) any later version.
24314 GNU Emacs is distributed in the hope that it will be useful,
24315 but WITHOUT ANY WARRANTY; without even the implied warranty of
24316 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24317 GNU General Public License for more details.
24319 You should have received a copy of the GNU General Public License
24320 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24322 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40