Fix typo.
[emacs.git] / src / ChangeLog
blob0589a4ba50a4ad51cebe716477746452fa377040
1 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
3         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
4         8th bit, since that only made sense in the ASCII world (bug#4751).
6 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
9         processing pending events when event is filtered for input method.
10         (Bug#3681)
12 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
14         * fns.c: Add #endif accidentally removed in previous change.
16 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
18         * fns.c: Remove code for unsupported system: MAC_OS.
19         * image.c: Likewise.  Include setjmp.h.
21 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
23         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
24         pixel -1 (bug #4742).
26 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
28         * process.c (create_pty): Remove conditionals for no longer
29         supported systems: UNIPLUS and RTU.
31         * xterm.c:
32         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
34         * alloc.c: Do not define struct catchtag.
35         * eval.c: Move struct catchtag definition ...
36         * lisp.h: ... here.
38         * image.c: Move png.h #include earlier to avoid warnings.
40         * xterm.c:
41         * xsmfns.c:
42         * xselect.c:
43         * xrdb.c:
44         * xmenu.c:
45         * xftfont.c:
46         * xfont.c:
47         * xfns.c:
48         * xfaces.c:
49         * xdisp.c:
50         * window.c:
51         * widget.c:
52         * w32xfns.c:
53         * w32uniscribe.c:
54         * w32term.c:
55         * w32select.c:
56         * w32reg.c:
57         * w32proc.c:
58         * w32menu.c:
59         * w32inevt.c:
60         * w32heap.c:
61         * w32font.c:
62         * w32fns.c:
63         * w32console.c:
64         * w32.c:
65         * w16select.c:
66         * vm-limit.c:
67         * unexsol.c:
68         * unexec.c:
69         * unexcw.c:
70         * unexaix.c:
71         * undo.c:
72         * tparam.c:
73         * textprop.c:
74         * terminfo.c:
75         * terminal.c:
76         * termcap.c:
77         * term.c:
78         * syntax.c:
79         * sound.c:
80         * sheap.c:
81         * search.c:
82         * scroll.c:
83         * region-cache.c:
84         * regex.c:
85         * ralloc.c:
86         * process.c:
87         * print.c:
88         * nsterm.m:
89         * nsselect.m:
90         * nsmenu.m:
91         * nsimage.m:
92         * nsfont.m:
93         * nsfns.m:
94         * msdos.c:
95         * minibuf.c:
96         * menu.c:
97         * marker.c:
98         * macros.c:
99         * keymap.c:
100         * keyboard.c:
101         * intervals.c:
102         * insdel.c:
103         * indent.c:
104         * gtkutil.c:
105         * ftxfont.c:
106         * ftfont.c:
107         * fringe.c:
108         * frame.c:
109         * fontset.c:
110         * font.c:
111         * fns.c:
112         * floatfns.c:
113         * filelock.c:
114         * fileio.c:
115         * emacs.c:
116         * editfns.c:
117         * dosfns.c:
118         * doprnt.c:
119         * doc.c:
120         * dispnew.c:
121         * dired.c:
122         * dbusbind.c:
123         * data.c:
124         * composite.c:
125         * coding.c:
126         * cmds.c:
127         * cm.c:
128         * chartab.c:
129         * charset.c:
130         * character.c:
131         * ccl.c:
132         * category.c:
133         * casetab.c:
134         * casefiddle.c:
135         * callproc.c:
136         * callint.c:
137         * bytecode.c:
138         * buffer.c:
139         * atimer.c: Include setjmp.h.  (Bug#4643)
141 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
143         Remove leftover table unibyte_to_multibyte_table.
144         * character.c (unibyte_to_multibyte_table): Remove.
145         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
146         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
147         * character.h (UNIBYTE_TO_CHAR): New macro.
148         (MAKE_CHAR_MULTIBYTE): Use it.
149         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
150         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
151         (message_dolog, set_message_1):
152         * search.c (Freplace_match):
153         * editfns.c (Fcompare_buffer_substrings):
154         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
155         (concat):
156         * insdel.c (copy_text, count_size_as_multibyte):
157         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
158         * term.c (produce_glyphs):
159         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
160         * regex.c (RE_CHAR_TO_MULTIBYTE):
161         * cmds.c (internal_self_insert):
162         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
164         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
166 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
168         * puresize.h (BASE_PURESIZE): Increase to 1310000.
170 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
172         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
174 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
176         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
177         still needed under Tiger.
179         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
181         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
182         __Apple__.
184         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
186 2009-10-15  Kenichi Handa  <handa@m17n.org>
188         * print.c (print_object): Escape a symbol like "2E10" too.
190 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
192         Cleanups and changes for 64-bit compile under Snow Leopard.
193         Based on suggestions by Erik Charlebois.
195         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
197         * nsfont.m (ns_char_width): Replace deprecated call.
198         (ns_findfonts, nsfont_list_family): Use long format in printf, and
199         cast argument.
200         (nsfont_open): Use ns_char_width() everywhere.
201         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
202         appropriate.
204         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
206         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
207         where appropriate.
209         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
210         where appropriate.
211         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
212         Use stringWithUTF8String.
213         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
215         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
216         Add formal protocol mention to inheritance.
217         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
219         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
220         Fix printf format.
221         (ns_query_color): Use CGFloat where appropriate.
222         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
223         (EmacsScroller-mouseDown:) Use long format in printf, and cast
224         argument.
226         * config.in (NS_HAVE_NSINTEGER): Drop.
228         * dbusbind.c (dbus-method-return-internal)
229         (dbus-method-error-internal): Use long format in printf, and cast
230         argument.
232         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
233         in printf, and cast argument.
235         * process.c (list_processes_1): Use long format in printf, and
236         cast argument.
238 2009-10-11  Glenn Morris  <rgm@gnu.org>
240         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
242 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
244         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
245         menu bar with a small width so it doesn't enlarge the frame.
247 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
249         * fontset.c (Fset_fontset_font): Fix typos in error messages.
251 2009-10-06  Glenn Morris  <rgm@gnu.org>
253         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
254         SOME_MACHINE_LISP (this enters indirectly via DOC).
256 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
258         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
260 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
262         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
263         Doc fix.
265 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
267         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
269 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
271         * lisp.h (Qdelete_directory_internal): Removed, because it is not
272         used anymore outside fileio.c.
274         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
276 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
278         * lisp.h (Qdelete_directory_internal):
279         Declare, instead of Qdelete_directory.
281         * w32fns.c (Fsystem_move_file_to_trash): Use it.
283 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
285         * eval.c (Fcalled_interactively_p): Add `kind' argument.
287 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
289         * fileio.c (Fdelete_directory_internal): Rename from
290         Fdelete_directory.  It is not a command anymore.  It has no file
291         name handler.
293 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
295         * xdisp.c (get_next_display_element): Use an enum in last change.
297 2009-09-28  Kenichi Handa  <handa@m17n.org>
299         * xdisp.c (get_next_display_element): Pay attention to
300         unibyte_display_via_language_environment in handling
301         Vnobreak_char_display.
303 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
305         * nsterm.h (ns_app_name): New extern variable.
307         * nsterm.m (ns_app_name): New variable.
308         (ns_term_init): Set and use it.
309         (ns_term_shutdown): Use it.
311         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
312         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
314         * nsfns.m (ns_set_name_iconic, ns_set_name)
315         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
316         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
318         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
319         Remove double-casting in client_data comparison.
321 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
323         * keyboard.c (make_lispy_event): Remember last wheel direction.
324         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
326 2009-09-26  Glenn Morris  <rgm@gnu.org>
328         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
329         internal.elc.  Add term/pc-win.elc.
330         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
331         term/x-win.elc.
332         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
333         term/w32-win.elc.
334         (NS_SUPPORT): New.
335         (lisp): Add NS_SUPPORT.
336         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
338 2009-09-25  David Reitter  <david.reitter@gmail.com>
340         * nsmenu.m (EmacsMenu-clear): Recognize application menu
341         on Mac OS X 10.6+ (bug#4513).
343 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
345         * frame.c (xrdb_get_resource): Return nil for empty string resources;
346         some parts of Emacs code (like font selection) don't grok them.  See
347         http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
349 2009-09-24  Andreas Schwab  <schwab@redhat.com>
351         * coding.c (decode_coding_iso_2022): Fix operator precedence.
353 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
355         * dired.c (Fdirectory_files): Fix typo in docstring.
357 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
359         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
360         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
361         (EmacsScroller-setPosition:portion:whole:): Remove -display call
362         under GNUstep.
363         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
365         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
366         glyph advancement.
368 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
370         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
371         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
373         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
374         deleted (bug #4492).
376         * nsfont.m (Vns_reg_to_script): New lisp variable.
377         (syms_of_nsfont): Declare it.
378         (ns_registry_to_script): New function.
379         (ns_get_req_script): Call it.
380         (ns_findfonts): Don't give up on non-unicode registry.
382         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
384 2009-09-20  Tom Tromey  <tromey@redhat.com>
386         * eval.c (find_handler_clause): Make stack-trace-on-error work in
387         batch mode (bug#4228).
389 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
391         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
392         carefully.  (Bug #4339)
394 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
396         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
398 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
400         * emacs.c (inhibit_x_resources): Update doc string for NS.
401         (main) [HAVE_NS]: Don't process --no-init-file option.  Remove
402         legacy code for -NXHost.  Fix error printf in daemon case.
404         * nsterm.h (ns_no_defaults): Remove.
406         * nsterm.m (ns_no_defaults): Remove.
407         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
408         (ns_use_qd_smoothing): Remove legacy variable.
409         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
410         don't update the NSWindow itself.
411         (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
412         state detection and store user rect ourselves.  (Bug #3581)
414         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
415         ns_use_qd_smoothing.
417         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
418         platform versions.  Drop support for emacs-20-style face specs.
419         (x-close-connection): Drop PSFlush() under OS X.
420         (x-focus-frame): Activate the app first.  (Bug #4180)
422 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
424         * emacs.c (inhibit_x_resources): New variable.
425         (main) [HAVE_NS]: Don't process --quick command line option.
426         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
428         * lisp.h (inhibit_x_resources): Declare it extern.
430         * w32reg.c (x_get_string_resource):
431         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
433 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
435         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
436         lisp/term/internal.elc.
438 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
440         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
441         (bug#4461).
443 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
445         * puresize.h (BASE_PURESIZE): Increase to 1290000.
447         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
448         (OBJECTS_MACHINE): Remove, unused.
450 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
452         * frame.c (x_get_resource_string): Remove unused.
454 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
456         * xterm.c (x_new_font): Call change_frame_size before calling
457         x_set_window_size, in case frame size won't change.
459         * frame.c (x_set_font): Remove dead code.
461 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
463         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
465 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
467         * lread.c (Fload): Don't output a message after loading an obsolete
468         package any more (done in Lisp now).
470 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
472         * fns.c (syms_of_fns): Doc fix (Bug#4227).
474 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
476         * keymap.c (Fwhere_is_internal): Use nconc2.
478 2009-09-11  Alan Mackenzie  <acm@muc.de>
480         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
481         batch mode.
483 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
485         * xdisp.c (display_mode_element): Detect cycles.
487 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
489         * keymap.c (where_is_internal): Don't erroneously return nil right after
490         filling the cache.
491         (where_is_internal_1): Fix up typo.
493 2009-09-11  Glenn Morris  <rgm@gnu.org>
495         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
496         share a common doc-string.
498 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
500         * keymap.c (get_keymap): Return the actual keymap symbol rather than
501         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
503         * keymap.c (QCadvertised_binding): New constant.
504         (syms_of_keymap): Initialize it.
505         (Fwhere_is_internal): Try and use bindings from :advertised-binding
506         if applicable.
508 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
510         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
511         (parse_menu_item): Streamline since bindings are recomputed all the
512         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
513         more and don't support lmenu's menu-alias any more either.
515         * keymap.c (where_is_internal_data): Make noindirect a boolean.
516         (where_is_internal): Strip it down to only traverse the keymaps.
517         Move the cache handling from Fwhere_is_internal to here.
518         (Fwhere_is_internal): Move the handling of remapping and the choice of
519         the best binding from where_is_internal to here.
520         Unify the cached/noncached paths, so remapping is also handled
521         correctly when the cache is used, and so the cache can be used to
522         speed up remap-handling when applicable.
523         Give preference to non-remapped bindings.
524         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
525         non-remapped bindings.
526         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
527         command remapping.
529         * xdisp.c (display_mode_element): Move list length limit from 50 to
530         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
532 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
534         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
536 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
538         * keymap.c (where_is_internal): Filter out shadowed remappings.
539         Assume that where_is_internal returns unshadowed bindings to simplify
540         the code and get rid of the gotos.  Use ASIZE.
542 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
544         * xterm.c (x_focus_changed): If we get a focusout and pointer
545         is invisible, make it visible.
547         * xterm.h: Remove condition for declaration of
548         x_*_window_to_frame.
550 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
552         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
553         initial terminal as well.
555 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
557         * xterm.h: Rename x_non_menubar_window_to_frame to
558         x_menubar_window_to_frame.
560         * xterm.c: Remove declarations also in xterm.h
561         (XTmouse_position): Do not return valid positions
562         for clicks in the menubar and the toolbar for Gtk+.
564         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
565         if the widget for the event has the same top level as a frame,
566         return the frame.
567         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
568         internal windows, bug #4122.
569         (x_non_menubar_window_to_frame): Remove.
571 2009-09-02  Glenn Morris  <rgm@gnu.org>
573         * buffer.c (default-major-mode): Move most of the doc from here...
574         (major-mode): ... to here.
576 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
578         * process.c (wait_reading_process_output): Keep the descriptor
579         when pty is used by a non-child process, e.g., in I/O buffer of
580         GDB this allows inferior to be restarted.
582 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
584         * xdisp.c (redisplay_internal): Remove redundant test and collapse
585         both branches into one.
587 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
589         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
590         (main): Use enable-multibyte-characters rather than
591         default-enable-multibyte-characters.  Output a warning message when
592         running a unibyte session.
594 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
596         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
597         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
598         (copy_data_segment): Also copy __program_vars section.
599         (copy_dyld_info) [LC_DYLD_INFO]: New function.
600         (dump_it) [LC_DYLD_INFO]: Use it.
602         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
604 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
606         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
607         $(SRC)/buildobj.h.
608         (buildobj.h): Renamed from $(SRC)/buildobj.h.
609         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
610         $(SRC)/buildobj.h.
611         (clean): Add buildobj.h.
613 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
615         * print.c (print_object): Set escapeflag to 1 when printing
616         hashtable keys and values.
618 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
620         * lread.c (read_integer): Use doubles (and potentially return a float
621         number) as we do in string-to-number.
622         (read1): Use strtol to read integers, signal errors on strtol's
623         overflow and use floats if strtol's output is too large for
624         Elisp integers.
626 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
628         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
629         (make-buildobj-SH): Fix last change.
630         (SRC): Move to before where it's first used.
632 2009-08-27  Kenichi Handa  <handa@m17n.org>
634         * process.c (send_process): Use encode_coding_object instead of
635         encode_coding_string to perform eol-conversion even if the string
636         is unibyte.
638         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
639         character.
641         * cmds.c (Fself_insert_command): Avoid unnecessay
642         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
644 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
646         * callproc.c (Fcall_process): Remove always true #if.
648         * lisp.h: Replace #if 0 code for checking with text pointing to
649         the --enable-checking configure flag.
651         * emacs.c (main): Mention the --enable-profiling configure flag
652         instead of using CFLAGS.
654 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
656         * Makefile.in (buildobj.h): New target.
657         (doc.o): Depend on it.
658         (temacs${EXEEXT}): Don't generate buildobj.lst.
659         (mostlyclean): Delete buildobj.h, not buildobj.lst.
660         * makefile.w32-in ($(SRC)/buildobj.h): New target.
661         ($(BLD)/doc.$(O)): Depend on it.
662         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
663         provided by Eli Zaretskii.)
664         ($(TEMACS)): Don't generate buildobj.lst.
665         * doc.c: Include buildobj.h.
666         (buildobj): New static variable.
667         (Fsnarf_documentation): Use it, instead of opening and reading
668         buildobj.lst.
670 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
672         * dbusbind.c (Fdbus_call_method)
673         (Fdbus_call_method_asynchronously): Use English numeric format for
674         timeout values in doc string.
676 2009-08-25  Kenichi Handa  <handa@m17n.org>
678         * alloc.c (mark_char_table): New function.
679         (mark_object): Use mark_char_table for a char-table.
681         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
682         (CHAR_TABLE_REF): Use it.
684 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
686         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
687         before invoking the newly build emacs to check for load-path
688         shadowing.
690 2009-08-22  Glenn Morris  <rgm@gnu.org>
692         * Makefile.in (bootstrap_exe): New variable.
693         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
694         Use ${bootstrap_exe}.
696 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
698         * coding.h (encode_coding_string): Don't encode unibyte strings.
699         (Bug#4047)
701 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
703         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
705         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
706         intended as hotfix only.
707         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
709 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
711         * nsterm.m (ns_get_color): Update documentation properly for last
712         change, and clean up loose ends in the code left by it.  Fix
713         longstanding bug with 16-bit hex parsing, and add support for
714         yet another X11 format (rgb:r/g/b) for compatibility.
715         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
716         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
718 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
720         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
722 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
724         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
725         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
726         (xd_initialize, xd_pending_messages): Check, whether
727         $DBUS_SESSION_BUS_ADDRESS is set.
729 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
731         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
733         * nsterm.m (ns_get_color): Remove incompatible color formats again.
735 2009-08-20  Glenn Morris  <rgm@gnu.org>
737         * emacs.c (system-type): Doc fix.
739 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
741         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
742         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
744 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
746         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
747         New functions.
748         (xd_initialize): Revert change from 2009-08-16.
750 2009-08-18  Kenichi Handa  <handa@m17n.org>
752         * fontset.c (Ffontset_font): If a nil element is found in a
753         font-group vector, return nil.
755 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
757         * process.c (status_notify): Don't perform redisplay.
758         (Fdelete_process, list_processes_1, process_send_signal):
759         Expliticly perform redisplay.
760         (wait_reading_process_output): Always check process status, but
761         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
763 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
765         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
766         (XFLOAT_INIT): New macro for storing a float value.
767         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
768         * fns.c (sxhash): Copy out the value of a float in order to
769         examine its bytes.
770         * dbusbind.c (xd_append_arg): Likewise.
772         * emacs.c (main): Don't call syms_of_data twice.
774 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
776         * dbusbind.c (xd_initialize): Add connection file descriptor to
777         input_wait_mask, in order to let select() detect, whether a new
778         message has been arrived.
779         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
781 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
783         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
784         New functions.
786         * lisp.h (xd_pending_messages): Declare.
788         * keyboard.c (readable_events): Call xd_pending_messages.
790 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
792         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
794         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
796         * buffer.c (set_buffer_internal_1)
797         (swap_out_buffer_local_variables): Check for unbound local
798         variables (Bug#4138).
800 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
802         * process.c (create_pty): Fix last change.
804 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
806         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
807         (xbm_load_image): Caller changed.
808         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
810 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
812         * process.c (create_pty): New function.
813         (Fstart_process): Use it to allow Emacs to just associate a pty
814         with the buffer.  See associated change in gdb-mi.el.
815         (list_processes_1): Deal with no program name.
816         (start_process_unwind): Use pid == -2 to mean no process.
818 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
820         * cmds.c (nonundocount): New global variable.
821         (keys_of_cmds): Initialize it.
822         (Fself_insert_command): Use it to combine upto 20 sequential chars
823         into a single undo entry, just like the Qself_insert_command code in
824         keyboard.c does.
825         Call frame_make_pointer_invisible, also like the Qself_insert_command
826         code in keyboard.c does.
827         * keyboard.c (command_loop_1): Use the new global nonundocount rather
828         than its own local replacement for it.
830 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
832         * fns.c (concat): Don't re-set string length to its current value.
834         * coding.h (decode_coding_string, encode_coding_string):
835         Use SBYTES macro.
837         * doprnt.c (doprnt_lisp): Delete unused function.
838         (doprnt): Merge with doprnt1, discarding lispstrings code.
839         * lisp.h (doprnt_lisp): Don't declare.
841 2009-08-07  Juri Linkov  <juri@jurta.org>
843         * puresize.h (BASE_PURESIZE): Increase to 1270000.
845 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
847         * print.c (syms_of_print): Undo previous change.
849 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
851         * lread.c (read1, syms_of_lread): Read hashtables back from the
852         readable format.
854         * print.c (print_preprocess, print_object): Print hashtables fully
855         and readably.
856         (syms_of_print): Provide 'hashtable-print-readable.
858 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
860         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
861         no family set.
862         (nsfont_open): Handle case when entity has no family.
864 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
866         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
867         element, not a list, for match case.
869 2009-07-28  Kenichi Handa  <handa@m17n.org>
871         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
872         rigidly.
874         * xfont.c (xfont_list_pattern): Don't ignore the return value of
875         font_parse_xlfd.  Check font properties more rigidly.
877 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
879         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
880         bsd-common.h.
882 2009-07-27  Kenichi Handa  <handa@m17n.org>
884         * xfaces.c (face_with_height): Call font_clear_prop.
886 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
888         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
890         * xterm.c (x_term_init): Use Qx.
892         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
894         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
895         (ns_get_color): Revert 2009-07-16 change.
897 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
899         * lread.c (syms_of_lread) <force_load_messages>: New variable.
900         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
902 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
904         * coding.h (decode_coding_string, encode_coding_string):
905         Use SCHARS macro.
907         * lread.c: Rewrite 2009-07-21 changes.
908         (load_depth): Delete.
909         (Qload_in_progress): New variable.
910         (load_unwind): Don't reference load_depth or load_in_progress.
911         (Fload): Likewise; specbind Qload_in_progress instead.
912         (init_lread): Don't initialize load_depth.
913         (syms_of_lread): Initialize and protect Qload_in_progress.
915 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
917         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
919 2009-07-23  Yavor Doganov  <yavor@gnu.org>
921         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
923 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
925         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
926         Bugs 3792, 3720, 2402.
927         (ns_lookup_indexed_color): Check for bad index.
928         (ns_index_color): Init unused slot to 0.
929         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
930         Bug 3714, possibly 3082.
932 2009-07-22  Jason Rumney  <jasonr@gnu.org>
934         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
935         Position IME window at cursor (Bug#2570).
936         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
937         (globals_of_w32fns): Dynamically load functions required above.
939         * w32term.c (w32_draw_window_cursor): Send message to reposition
940         any IME window.
942 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
944         * fileio.c: Revert 2009-07-16 changes.
945         (Vauto_save_include_big_deletions): New variable.
946         (Fdo_auto_save): Disable auto-save only if
947         auto-save-include-big-deletions is nil.
949 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
951         * xdisp.c (move_it_to): For continued lines ending in a tab, take
952         the overflowed pixels into account (Bug#3879).
954 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
956         * lread.c (load_depth): New variable.
957         (Fload, load_unwind, init_lread): Set it to the load recursion
958         depth; set load_in_progress as a simple boolean based on the
959         current load_depth.  (Bug#3892)
961 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
963         * nsfont.m (ns_has_attribute): Remove.
964         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
966 2009-07-18  Juri Linkov  <juri@jurta.org>
968         * process.c (Fset_process_query_on_exit_flag): Mention killing
969         a buffer in docstring.
971 2009-07-17  Kenichi Handa  <handa@m17n.org>
973         * casetab.c (shuffle): Fix the logic of setting up the cycle.
975 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
977         * nsfns.m (Fns_set_alpha): Remove function.
978         (syms_of_nsfns): Don't defsubr it.
980         * nsterm.m (ns_get_color): Remove incompatible color formats.
981         (ns_color_to_lisp): Generate #rrggbb color format string.
983 2009-07-16  Richard Stallman  <rms@gnu.org>
985         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
986         (Fset_buffer_auto_saved): Handle save_length = -2.
988 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
990         * xterm.c (Qx_gtk_map_stock): New var.
992         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
993         of calling intern each time.
995 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
997         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
998         does tiling.
1000         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1002 2009-07-14  Kenichi Handa  <handa@m17n.org>
1004         * font.c (font_vconcat_entity_vectors): New function.
1005         (struct font_sort_data): New member font_driver_preference.
1006         (font_compare): Check font_driver_preference.
1007         (font_sort_entities): The format of the first argument changed.
1008         (font_delete_unmatched): Likewise.
1009         (font_list_entities): The return type changed.
1010         (font_select_entity): The format of the second argument changed.
1011         (font_find_for_lface): Adjuste for the above changes.
1012         Don't suppress the checking of C even if the repertory supports it.
1013         (Flist_fonts): Adjust for the above changes.
1015         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
1016         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1017         Reject a font who has adstyle property that is different from a
1018         langname derived from registry property.
1019         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1021 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
1023         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1024         local copy of dirfilename.
1026 2009-07-13  Kenichi Handa  <handa@m17n.org>
1028         * chartab.c (sub_char_table_ref_and_range): Fix the range check
1029         against max_char.
1031         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1032         calling XSYMBOL (sym).
1034 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
1036         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1037         New function.
1038         (directory_files_internal) [WINDOWSNT]:
1039         Bind w32-get-true-file-attributes to either t or nil, depending whether
1040         the filesystem of the directory is fast or slow.
1042         * w32.c (logon_network_drive): Don't assume PATH is an absolute
1043         file name.
1044         (is_slow_fs): New function.
1045         (stat): Use it to determine whether to issue more system calls to
1046         get accurate file attributes, when w32-get-true-file-attributes is
1047         `local'.
1049 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
1051         * xfns.c (Fx_select_font): Remember last font selected in
1052         x_last_font_name and use that the next time.  Also try the frame
1053         parameter font-parameter as default to the font dialog.
1055 2009-07-10  Kenichi Handa  <handa@m17n.org>
1057         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1059 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
1061         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1063         * w32.c (stat): Treat UNC file names as residing on remote
1064         drives.  (Bug#3542)
1066 2009-07-09  Kenichi Handa  <handa@m17n.org>
1068         * fontset.c (fontset_find_font): Fix previous change.
1070 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
1072         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1073         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1074         error flag.
1076 2009-07-08  Kenichi Handa  <handa@m17n.org>
1078         * fontset.c (fontset_find_font): Fix the logic of handling
1079         charset_matched.
1080         (font_for_char): Delete unused var.
1081         (generate_ascii_font_name): Delete it.
1083         * coding.h (JIS_TO_SJIS2): Fix the code range check.
1085         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1086         (encode_coding_sjis): Fix the code range check.
1088 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
1090         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1091         (Fexpand_file_name): Copy string data properly (Bug#3772).
1093 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
1095         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1096         first MapNotify.
1098 2009-07-07  Kenichi Handa  <handa@m17n.org>
1100         * character.h (unibyte_has_multibyte_table): Delete extern.
1101         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1103         * charset.c (Fset_charset_priority): Update charset_unibyte.
1104         (syms_of_charset): Initialize charset_unibyte.
1106         * character.c (unibyte_has_multibyte_table): Delete it.
1107         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1108         charset_unibyte.
1109         (multibyte_char_to_unibyte_safe): Likewise.
1110         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1112         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1113         (x_produce_glyphs): Likewise.
1115         * .gdbinit (xcharset): Fix the treating $arg0.
1117 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
1119         Emulation of `getloadavg' on MS-Windows.
1120         * w32.c: Include float.h
1121         (g_b_init_get_native_system_info, g_b_init_get_system_times)
1122         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1123         (get_native_system_info, get_system_times): New functions.
1124         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1125         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1126         (globals_of_w32): Initialize g_b_init_get_native_system_info,
1127         g_b_init_get_system_times, and num_of_processors.
1129 2009-07-03  Jason Rumney  <jasonr@gnu.org>
1131         * w32term.c (w32_initialize): Use standard types.
1133 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
1135         * dired.c (Ffile_attributes): Decode user and group names by the
1136         locale's encoding.  (Bug#3443)
1138 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
1140         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1141         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1143         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1145         * term.c (init_tty): Remove spurious #ifdef.
1147         * m/mips.h: Mention this file is also used for netbsd.
1148         * m/pmax.h: Remove file.
1150 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
1152         * xterm.h (struct x_display_info): Add invisible_cursor.
1153         (struct x_output): Add current_cursor.
1155         * xterm.c (XTtoggle_invisible_pointer): New function.
1156         (x_define_frame_cursor): Don't define cursor if invisible or the
1157         same as before.  Set current_cursor.
1158         (x_create_terminal): Set toggle_invisible_pointer_hook.
1160         * xfns.c (make_invisible_cursor): New function.
1161         (x_set_mouse_color): Call make_invisible_cursor.
1162         Set current_cursor.
1163         (x_window): Set current_cursor.
1165         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1167         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1168         inserting a character.
1169         (read_avail_input): Call frame_make_pointer_visible.
1171         * frame.c (Vmake_pointer_invisible): New variable.
1172         (frame_make_pointer_invisible, frame_make_pointer_visible):
1173         New functions.
1174         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1176         * frame.h: Declare frame_make_pointer_invisible and
1177         frame_make_pointer_visible.
1178         (struct frame): Add pointer_invisible.
1180 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
1182         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1183         frame isn't visible.
1184         (xg_frame_resized): If width/height is -1, get size of window
1185         from X server.
1187         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1188         for MapNotify.
1190         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1191         here or call change_frame_size.  Just call flush_and_sync.
1192         (flush_and_sync): Reintroduce.
1194 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
1196         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1198         * xterm.c (x_handle_net_wm_state): Also look for sticky.
1199         (x_term_init): Initialize Xatom_net_wm_state_sticky.
1201         * frame.h: Declare Qsticky.
1203         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1205         * nsfns.m (ns_frame_parm_handlers): Ditto.
1207         * frame.c: Declare Qsticky.
1208         (frame_parms): Add sticky.
1210         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1212         * xterm.h: Declare x_set_sticky.
1214         * xterm.c (x_set_sticky): New function.
1216         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1217         (xg_tool_bar_menu_proxy): Attach enter/leave events to
1218         xg_tool_bar_proxy_help_callback.
1220         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1222         * frame.c: Qmaximized is new.
1223         (x_set_frame_parameters): Do not handle fullscreen specially.
1224         Only set width and height if explicitly set.
1225         (x_set_fullscreen): Handle Qmaximized.
1226         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1227         (syms_of_frame): Initialize Qmaximized.
1229         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1230         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1232         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1233         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
1234         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
1235         set gravity to NorthWestGravity when USE_GTK.
1236         (set_wm_state): New function.
1237         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
1238         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1239         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1240         or the case when no window manager is running.  That means remove calls
1241         to x_real_positions and x_fullscreen_adjust.
1243         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1244         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1245         flush_and_sync.
1246         (xg_height_changed): New function.
1247         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1248         and gtk_window_set_policy.  Set frame gravity after parsing the
1249         geometry string.
1250         (xg_update_frame_menubar, free_frame_menubar)
1251         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1252         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1253         Remove calls to xg_frame_set_char_size.
1255 2009-07-01  Kenichi Handa  <handa@m17n.org>
1257         * keyboard.c (decode_keyboard_code): New function.
1258         (tty_read_avail_input): Decode the input bytes if necessary.
1260         * coding.c (setup_coding_system):
1261         Initialize coding->carryover_bytes to 0.
1262         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1263         use Qno_conversion.
1265 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1267         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1269 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
1271         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1273 2009-06-30  Jason Rumney  <jasonr@gnu.org>
1275         * w32term.c (w32_initialize): Use GetModuleHandle for library that
1276         is already loaded.
1277         Set user model ID if supported (bug#1849).
1279 2009-06-29  Jim Meyering  <meyering@redhat.com>
1281         Remove useless if-before-xfree test.
1282         * nsfont.m (nsfont_close): Remove useless test.
1283         * term.c (delete_tty): Likewise.
1284         * w32.c (system_process_attributes): Likewise.
1285         * w32font.c (w32font_close): Likewise.
1286         * xfaces.c (x_free_gc): Likewise.
1287         * xselect.c (buffer): Likewise.
1289 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1291         * process.c (send_process): Keep decoded string in a local
1292         variable and protect it from GC.  (Bug#3521)
1294 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
1296         * term.c (create_tty_output) [MSDOS]: #ifdef away.
1297         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1299 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
1301         * xdisp.c (start_display, handle_face_prop)
1302         (move_it_vertically_backward, cursor_row_fully_visible_p)
1303         (redisplay_window, try_window_id, produce_image_glyph):
1304         Delete some #ifdef-ed out code chunks that are now obsolete.
1306         * xterm.c (x_update_window_begin, x_new_focus_frame)
1307         (x_scroll_bar_handle_click, handle_one_xevent)
1308         (handle_one_xevent, XTread_socket, x_focus_on_frame)
1309         (x_make_frame_visible, x_make_frame_invisible)
1310         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1311         code chunks that are now obsolete.
1313 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
1315         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1316         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
1317         for hours, when optimzation is enabled.
1318         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1319         (xd_read_message): Make them static.
1321 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
1323         * term.c (turn_on_face): Allow simultaneously bold and dim
1324         terminal faces (Bug#3530).
1326 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
1328         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1330         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1331         truncation glyphs (Bug#3686).
1333 2009-06-27  Glenn Morris  <rgm@gnu.org>
1335         * m/pmax.h: Restore file, with only netbsd portions.
1337 2009-06-26  David Reitter  <david.reitter@gmail.com>
1339         * nsterm.m (keydown): Avoid infinite loop.
1341 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
1343         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1344         the arg FORCE_SYMBOL.
1346 2009-06-25  Kenichi Handa  <handa@m17n.org>
1348         * fontset.c (fontset_find_font): When a usable rfont_def is found
1349         in a fallback font-group, make it the first element of the group.
1351 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
1353         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1355 2009-06-24  Kenichi Handa  <handa@m17n.org>
1357         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1358         set for C.
1359         (fontset_font): Record the availability of a font for C both in
1360         the realized fontsets of the current one and the default one.
1362 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
1364         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1365         conditional, it is always defined on AIX.
1367 2009-06-23  Miles Bader  <miles@gnu.org>
1369         * window.c (Vrecenter_redisplay): New variable.
1370         (syms_of_window): Initialize it.
1371         (Qtty): New extern declaration.
1372         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1374 2009-06-23  Jim Meyering  <meyering@redhat.com>
1376         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1377         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
1378         pointer dereferences are guaranteed to be valid.
1380 2009-06-23  Kenichi Handa  <handa@m17n.org>
1382         * emacs.c (main): Call init_font ().
1384         * font.h (Vfont_log): Extern it.
1385         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1387         * font.c (font_sort_entities, font_list_entities)
1388         (font_matching_entity, font_open_entity)
1389         (font_close_object): Change font_add_log to FONT_ADD_LOG.
1390         (Vfont_log): Delete static.
1391         (font_log_env_checked): Delete this variable.
1392         (font_add_log): Don't check font_log_env_checked.
1393         (font_deferred_log): Check Vfont_log.
1394         (init_font): New function.
1396         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1398         * w32font.c: Change font_add_log to FONT_ADD_LOG.
1400         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1402         * xfont.c: Change font_add_log to FONT_ADD_LOG.
1404         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1405         (face_for_char): Don't call font_deferred_log here.
1406         (font_for_char): Likewise.
1408 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
1410         * w32term.c (x_draw_glyph_string): Use the glyph string's width
1411         rather than its background_width for drawing the overline and
1412         underline (Bug#489).
1414         * xterm.c (x_draw_glyph_string): Use the glyph string's width
1415         rather than its background_width for drawing the overline and
1416         underline (Bug#489).
1417         (xg_default_icon_file): New variable.
1418         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1419         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
1421         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1422         (load_overlay_strings): Remove externs.
1423         (fast_find_position): Function deleted.
1424         (mouse_face_from_buffer_pos): New function, based on
1425         fast_find_position.  Correctly handle before-strings,
1426         display-strings, and after-strings (Bug#1220).
1427         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1429 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
1431         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
1432         (move_it_in_display_line_to, move_it_in_display_line_to)
1433         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1435 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
1437         * Branch for 23.1.
1439 2009-06-21  Jason Rumney  <jasonr@gnu.org>
1441         * w32term.c (keyboard_codepage): New static variable.
1442         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1443         (w32_read_socket) [WM_CHAR]: Use it to decode character
1444         input (bug#3237).
1445         (w32_initialize): Initialize it.
1446         (codepage_for_locale): New function.
1448 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
1450         * process.c (status_message): Pass Faset index argument as a lisp
1451         object, so as to work with USE_LISP_UNION_TYPE.
1453 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1455         * coding.c (Ffind_coding_systems_region_internal):
1456         Cache checked characters.
1458 2009-06-18  Kenichi Handa  <handa@m17n.org>
1460         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
1462 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
1464         * xdisp.c (redisplay_internal): Check that the frame is still
1465         live after redisplay of its windows.
1466         (redisplay_windows): Check that the window is still live.
1468 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
1470         * coding.c (detect_coding_utf_16): Fix previous change.
1472 2009-06-16  Kenichi Handa  <handa@m17n.org>
1474         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1475         UTF-16 by checking the dispersion of Eth and Oth bytes.
1477 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
1479         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1481 2009-06-15  Kenichi Handa  <handa@m17n.org>
1483         * process.c (status_message): Fix previous change.  Be sure to
1484         decode a localized string.
1486 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1488         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1489         add comment explaining why.
1491 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
1493         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
1495 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
1497         * nsfont.m (ns_attribute_value): Remove.
1498         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1499         (ns_has_attribute): Shrink the normal range.
1500         (ns_findfonts): Don't worry about requested spec in determining
1501         need for synthItal.
1502         (ns_get_covering_families): Retain scriptToFamilies.
1504 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
1506         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1508 2009-06-11  Kenichi Handa  <handa@m17n.org>
1510         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1511         overhang for the static composition case.
1513 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1515         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1516         overhang for the automatic composition case.
1518         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1519         composition case.
1521 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
1523         * xdisp.c (get_next_display_element): When handling wrap-prefix
1524         and line-prefix, treat \n as a control character (bug#3502).
1526 2009-06-10  Kenichi Handa  <handa@m17n.org>
1528         * font.c (font_parse_family_registry): Fix for one-char foundry.
1529         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1531 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
1533         * process.c (status_message): Fix handling of multibyte signal
1534         string (Bug#3499).
1536 2009-06-09  Jim Meyering  <meyering@redhat.com>
1538         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1539         color name is missing.
1541 2009-06-09  Kenichi Handa  <handa@m17n.org>
1543         * charset.c (Fmap_charset_chars): In docstring, state clearly that
1544         FROM-CODE and TO-CODE are codepoints of CHARSET.
1546 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
1548         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1550 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
1552         Changes to support :script/:lang/:otf in NS font driver.
1553         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1554         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1555         indicate not part of font driver interface, and change callers.
1556         (ns_get_family): Remove pointless null check.
1557         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1558         ns_spec_to_descriptor, ns_descriptor_to_entity.
1559         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1560         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1561         (ns_spec_to_descriptor, ns_descriptor_to_entity)
1562         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1563         (ns_get_req_script, ns_accumulate_script_ranges)
1564         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1565         New functions.
1566         (nsfont_list, nsfont_match): Use ns_findfonts.
1567         (nsfont_open): Use font descriptor instead of traits.
1568         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1569         (dump_glyphstring): Rename to ns_dump_glyphstring.
1571         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1573         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1575         * fontset.c (fontset_from_font): Remove NS-specific code.
1577 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
1579         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1580         nonactive windows.
1582 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
1584         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
1586 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
1588         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1590 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
1592         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1593         account for the overflowing of newlines into the last glyph on the
1594         display line (Bug#3482).
1596 2009-06-05  David Reitter  <david.reitter@gmail.com>
1598         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1599         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
1600         Fns_selection_exists_p, Fns_selection_owner_p.
1602 2009-06-03  Jason Rumney  <jasonr@gnu.org>
1604         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1605         available.  (Bug#3379)
1607 2009-05-29  Kenichi Handa  <handa@m17n.org>
1609         * coding.c (get_translation_table):
1610         Check Venable_character_translation.
1612 2009-05-26  David Reitter  <david.reitter@gmail.com>
1614         * nsterm.m (ns_raise_frame): Only raise frame if visible.
1615         (x_make_frame_visible): Move frame to front rather than calling
1616         ns_raise_frame().
1617         (keyDown:): Do not swallow events that aren't re-sent if frame
1618         isn't key window.
1619         (drawRect:): Do not set visibility/iconified flags because
1620         drawRect may be called by NSView even if the frame is hidden.
1622         * nsfns.m (Fx_create_frame): Follow other ports in
1623         determining visibility; default to t.  Ensure async_visible is set.
1625 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
1627         * dired.c (Ffile_attributes): Doc fix.
1629 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
1631         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1633 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
1635         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1636         and xfont_scratch_props.
1637         (syms_of_xfont): Do it here instead.
1638         (xfont_find_ccl_program): Delete, unused.
1639         (xfont_open): Delete unused var `i'.
1641 2009-05-21  Kenichi Handa  <handa@m17n.org>
1643         * fontset.c (Qlatin): Don't make it static.
1645         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1646         New functions.
1647         (xfont_scripts_cache, xfont_scratch_props): New variables.
1648         (Qlatin, Vscalable_fonts_allowed): Extern it.
1649         (xfont_list_pattern): Argument changed.  Callers changed.
1650         Check Vscalable_fonts_allowed.  Check the support of a script.
1651         (xfont_list): Don't reject a font spec with :script property.
1652         (xfont_has_char): Fix setting of encoding.
1653         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1654         xfont_scratch_props.
1656 2009-05-19  Kenichi Handa  <handa@m17n.org>
1658         * font.c (font_sort_entities): Rename from font_sort_entites.
1659         Callers changed.
1661 2009-05-18  Kenichi Handa  <handa@m17n.org>
1663         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1665 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1667         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1668         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1670 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1672         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1673         (x_delete_terminal): Dissociate resource database from display and
1674         then call XrmDestroyDatabase before closing display.
1676 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
1678         * nsterm.m (ns_read_socket): Remove unused variable.
1679         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1680         whether selected frame is viable before raising it (based on patch
1681         by David Reitter), and improve commentary.
1682         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
1684 2009-05-15  Kenichi Handa  <handa@m17n.org>
1686         * font.c (Ffont_spec): Check arguments.
1688 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
1690         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1691         weight when testing attributes (Bug#3282).
1693 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1695         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1696         what we expect to get in the next ConfigureNotify event.
1698         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1699         before Xft one (Bug#1696).
1701 2009-05-07  David Reitter  <david.reitter@gmail.com>
1703         * nsfns.m (Fx_display_planes): Compute bitplanes using
1704         NSBitsPerPixelFromDepth (Bug#3207).
1706 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
1708         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1710 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
1712         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1714 2009-05-07  David Reitter  <david.reitter@gmail.com>
1716         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1717         Respect mouse face background.
1719 2009-05-07  David Reitter  <david.reitter@gmail.com>
1721         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1722         Mouse movement/highlight: bracket drawing operations
1723         in ns_update_begin and ns_update_end.
1725 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
1727         * nsfns.m (ns_get_screen): Rewrite.
1728         Don't presume selected-frame is of type `ns'.
1730         * font.c (font_update_drivers): Sanity fallback to avoid disabling
1731         all drivers.
1733         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1735 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1737         * keyboard.h (add_user_signal): Fix typo in extern.
1739         * lisp.h (add_user_signal): Remove extern.
1741         * unexelf.c (unexec): Consider a section to precede the .bss section
1742         if its addresses overlap that of .bss.
1743         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1744         instead of dumping process.
1746 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
1748         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1750 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
1752         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1754 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
1756         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1757         any statements.
1759 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1761         * process.c (read_process_output): Make sure the current buffer is
1762         always restored.
1764         * coding.c (record_conversion_result): Don't modify
1765         Vlast_code_conversion_error for successful result.
1766         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
1768 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
1770         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
1771         (load_charset_map): Remove unnecessary code.
1773 2009-04-30  David Reitter  <david.reitter@gmail.com>
1775         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
1776         through f24.
1778 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
1780         * xfaces.c (face_at_buffer_position): New arg base_face_id.
1782         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1783         face_at_buffer_position.
1784         (face_before_or_after_it_pos, get_next_display_element)
1785         (note_mouse_highlight): Update face_at_buffer_position call.
1787         * term.c (term_mouse_highlight):
1788         * msdos.c (IT_note_mouse_highlight):
1789         * fontset.c (Finternal_char_font):
1790         * font.c (font_at, font_range): Update face_at_buffer_position call.
1792         * dispextern.h (face_at_buffer_position): Update prototype.
1794 2009-04-30  Kenichi Handa  <handa@m17n.org>
1796         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
1798 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
1800         * callproc.c (Fcall_process): Fix GC protection.  Make sure
1801         current buffer is always restored.
1803 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1805         * atimer.c (init_atimer): Also clear stopped_atimers.
1807         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1809         * process.c (create_process): Clean up merger residues of
1810         2008-07-17 change.
1812 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
1814         * lread.c (Vread_circle): New variable.
1815         (read1): Disable recursive read if Vread_circle is nil.
1817 2009-04-29  Kenichi Handa  <handa@m17n.org>
1819         * fontset.h (set_default_ascii_font): Delete extern.
1821         * fontset.c (set_default_ascii_font): Delete this unused function.
1823         * frame.c (x_set_font): When ARG is a font-object, check if the
1824         font-object matches with the ASCII font-spec of the frame's
1825         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
1827 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
1829         * fns.c (Flocale_info): Protect vector from GC during decoding.
1831         * process.c (Fstart_process): Protect argv strings from GC during
1832         encoding.
1834 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
1836         * sysdep.c: Include <ctype.h>.
1838 2009-04-27  David Reitter  <david.reitter@gmail.com>
1840         * nsfont.m (nsfont_open): Remove unused variable shrink.
1841         Remove commented-out code.
1843 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
1845         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1847 2009-04-25  Jason Rumney  <jasonr@gnu.org>
1849         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1851 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1853         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1854         Swap bytes in short integer if fringe bitmap width > 8.
1856 2009-04-23  Kenichi Handa  <handa@m17n.org>
1858         * xfaces.c (Fx_list_fonts): If a font size is specified in
1859         PATTERN, set it in returned scalable fonts.
1861 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
1863         * keyboard.c (Fset_input_meta_mode): Doc fix.
1865         * dispnew.c (Fsend_string_to_terminal): Doc fix.
1867         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
1869         * coding.c (Fterminal_coding_system): Doc fix.
1871         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1872         (Fx_display_pixel_height, Fx_display_planes)
1873         (Fx_display_color_cells, Fx_server_max_request_size)
1874         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1875         (Fx_display_mm_height, Fx_display_mm_width)
1876         (Fx_display_backing_store, Fx_display_visual_class)
1877         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1878         Doc fixes, replacing "terminal id" with "terminal object".
1879         (check_x_display_info): Handle terminal objects instead of
1880         terminal ids.
1882         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1883         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1884         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1885         Doc fixes, replacing "terminal id" with "terminal object".
1887 2009-04-21  Kenichi Handa  <handa@m17n.org>
1889         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
1890         (font_score): Check AVGWIDTH too.
1892         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1893         worst case.
1894         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1895         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
1897 2009-04-19  Jason Rumney  <jasonr@gnu.org>
1899         The following changes fix Bug#3005 for wide glyphs on each platform,
1900         without reintroducing Bug#1258 for stretch glyphs.
1902         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1903         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
1904         get_phys_cursor_geometry.
1906         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
1907         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
1908         using get_phys_cursor_geometry.
1910         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1911         correctly calculated.
1913 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
1915         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
1916         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
1917         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1918         is deprecated.
1920 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
1922         * font.c (font_put_frame_data): Use xfree instead of free.
1924 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
1926         * w32font.c (Qja, Qko): Remove declarations.
1927         (syms_of_w32font): Don't DEFSYM them.
1929 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
1931         * font.c (Qja, Qko): Move definitions here from ftfont.c.
1933         * font.h (Qja, Qko): Extern them.
1935         * ftfont.c (Qja, Qko): Remove declarations.
1937         * xfont.c (Qja, Qko): Remove declarations.
1939 2009-04-17  Kenichi Handa  <handa@m17n.org>
1941         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1942         string from a vector to handle Latin-1 characters correctly.
1944         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1945         entity even if the cache hits.
1947 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
1949         * search.c (boyer_moore): Use zero as marker value for a possible
1950         match instead of depending on overflow behavior.  (Bug#2844)
1952         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
1953         * lisp.h: Adjust prototypes.
1955 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
1957         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1958         change (Bug#3003).
1960 2009-04-16  Kenichi Handa  <handa@m17n.org>
1962         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
1964         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1965         adstyle.
1967         * ftfont.c (Qja, Qko): Don't make them static.
1968         (enum ftfont_cache_for): New enum.
1969         (fc_charset_table): Undo the previous change.
1970         (ftfont_get_latin1_charset): Delete it.
1971         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
1972         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
1973         non-scarable font, try to get AVERAGE_WIDTH.
1974         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1975         Change ft_face_cache from a list of a hash-table.  Don't check
1976         `ja' and `ko' adstyle here.
1977         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1978         FTFONT_CACHE_FOR_CHARET.
1979         (ftfont_get_charset): Undo the previous change.
1980         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
1981         (ftfont_close): Likewise.
1982         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1984         * font.c (font_sort_entites): Change the meaning of the arg
1985         BEST-ONLY.  Don't optimize for VEC of lenght 1.
1986         (font_select_entity): Just return the value of font_sort_entites.
1988         * xfaces.c (merge_face_vectors): Reflect font properties in
1989         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
1990         font_clear_prop if a face attribute doesn't change.
1992         * charset.h (charset_ksc5601): Extern it.
1994         * charset.c (charset_ksc5601): New variable.
1995         (Fdefine_charset_internal): Set charset_ksc5601.
1996         (init_charset_once): Initialize charset_ksc5601 to -1.
1998 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
2000         * fileio.c (history_delete_duplicates): Remove unused declaration.
2002         * callint.c (history_delete_duplicates): New declaration.
2003         (Fcall_interactively): Remove command history duplicates when
2004         history_delete_duplicates is true.
2006 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
2008         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2010 2009-04-14  Kenichi Handa  <handa@m17n.org>
2012         * font.c (Ffont_info): Fix docstring.  Fix the second element of
2013         the returned value (bug#2949).
2015 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
2017         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2019 2009-04-14  Kenichi Handa  <handa@m17n.org>
2021         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2022         encoding charset is ascii_compatible.
2024         * charset.c (Fdefine_charset_internal): Make charset
2025         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2026         code_offset is 0, and covers all ASCII characters.
2028 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2030         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2031         (ns_string_to_pasteboard_internal):
2032         * nsmenu.m (process_dialog):
2033         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2034         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2035         * lisp.h (Fx_load_color_file): Declare.
2037 2009-04-13  Kenichi Handa  <handa@m17n.org>
2039         * font.c (font_delete_unmatched): Preserve the order of list elements.
2040         (font_select_entity): Suppress the code to optimize for the same
2041         kind of fonts.
2042         (font_load_for_lface): Get a font that supports at least ASCII
2043         characters.
2045         * ftfont.c (Qja, Qko): New variables.
2046         (fc_charset_table): Delete uniquifier data for iso8859-1.
2047         (ftfont_get_latin1_charset): New function.
2048         (get_adstyle_property): New function.
2049         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2050         bitmap fonts.
2051         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2052         Delete iso-8859-1 range from the charset of fonts whose adstyle is
2053         `ko' or `ja'.
2054         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2055         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2056         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2057         property.
2058         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2059         (syms_of_ftfont): DEFSYM Qja and Qko.
2061 2009-04-09  Kenichi Handa  <handa@m17n.org>
2063         * charset.c (map_charset_chars): For a charset of `superset'
2064         method, fix calculation of code range.
2066         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2067         from the list of extra properties.
2068         (font_clear_prop): Be sure to delete `:name' font property.
2070 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2072         * dispnew.c (redraw_overlapping_rows): Fix detection of
2073         overlapping for topmost and bottommost rows.
2075         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2077 2009-04-06  Jason Rumney  <jasonr@gnu.org>
2079         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2081 2009-04-06  Kenichi Handa  <handa@m17n.org>
2083         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2085         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2087 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2089         * ftfont.c (ftfont_open): Fix checking of the return value of
2090         FT_Load_Char.  Fix setting font->underline_thickness.
2092 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
2094         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2095         (Fterminal_parameters, Fterminal_parameter)
2096         (Fset_terminal_parameter): In doc string, refer to terminal
2097         objects rather than terminal ids.
2099 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
2101         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2102         ret_lim_data.  (Bug#2867)
2104 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
2106         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2107         so they don't get wider than the window, matching 2006-01-23
2108         change to the partner function in xdisp.c (Bug#2800).
2110 2009-04-03  Kenichi Handa  <handa@m17n.org>
2112         * print.c (print_object): Make each lowest sub_char_table start a
2113         new line (Bug#2866).
2115 2009-04-02  Kenichi Handa  <handa@m17n.org>
2117         * fontset.c (fontset_font): Record no-font when a fontset
2118         explicitly tells not to try another font-specs.
2120 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
2122         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2124 2009-03-30  Kenichi Handa  <handa@m17n.org>
2126         * fontset.c (fontset_from_font): Specify only registry in a
2127         font-spec for all characters supported by that registry.
2129         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
2130         even if HAVE_M17N_FLT is not defined.
2132 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
2134         * ftfont.c: Conditionalize prototyping and use of
2135         ftfont_variation_glyphs.
2137 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2139         * frame.c (delete_frame): Work around compiler bug.
2141         * editfns.c (general_insert_function): Adjust to insdel.c changes.
2142         * insdel.c (prepare_to_modify_buffer, signal_before_change):
2143         Some more EMACS_INT.
2144         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2146         * xdisp.c (dump_glyph): Fix typo.
2148         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2149         (adjust_markers_gap_motion, adjust_markers_for_delete)
2150         (adjust_markers_for_insert, adjust_point)
2151         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2152         (make_gap, copy_text, count_size_as_multibyte, insert)
2153         (insert_and_inherit, insert_before_markers)
2154         (insert_before_markers_and_inherit, insert_1)
2155         (count_combining_before, count_combining_after, insert_1_both)
2156         (insert_from_string, insert_from_string_before_markers)
2157         (insert_from_string_1, insert_from_gap, insert_from_buffer)
2158         (insert_from_buffer_1, adjust_after_replace)
2159         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2160         (replace_range_2, del_range, del_range_1, del_range_byte)
2161         (del_range_both, del_range_2, modify_region)
2162         (prepare_to_modify_buffer, signal_before_change)
2163         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2164         for buffer positions and sizes.
2165         * lisp.h: Adjust prototypes accordingly.
2167         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2168         (non_regular_inserted, non_regular_nbytes, read_non_regular)
2169         (Finsert_file_contents): Use EMACS_INT for buffer positions.
2171         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2173 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
2175         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2176         lines and columns so we keep the same pixel height and width.
2178         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2179         the property _NET_WM_STATE has changed.
2180         (x_handle_net_wm_state): New function to update frame parameter
2181         fullscreen.
2182         (x_term_init): Initialize atoms for _NET_WM_STATE.
2184         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2186 2009-03-27  Kevin Ryde  <user42@zip.com.au>
2188         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2189         Gpm_GetEvent as an error that justifies closing the filedescriptor.
2190         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2191         (Fgpm_mouse_stop): Pass that new parameter.
2192         * termhooks.h (close_gpm): Adjust prototype.
2194 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
2196         * lisp.h (Fx_focus_frame): Declare.
2198         * callint.c (Fcall_interactively): For '^' just delegate the work to
2199         handle-shift-selection.
2200         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2202 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
2204         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2206         * data.c (Qinteractive_form): New variable.
2207         (Finteractive_form): Use it.
2209         * eval.c (Fcommandp): Use Qinteractive_form.
2211 2009-03-24  Jason Rumney  <jasonr@gnu.org>
2213         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2214         Calculate total size precisely.  Decode environment variables
2215         before substituting.  (Bug#38)
2217 2009-03-24  Kenichi Handa  <handa@m17n.org>
2219         * font.c (find_font_encoding): Return Qnil for unsupported
2220         encoding (Bug#2722).
2222 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
2224         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2225         that gdpy is set.
2227 2009-03-22  Alan Mackenzie  <acm@muc.de>
2229         * callint.c (Finteractive): Clarify the doc string - even
2230         promptless elements need \n separators.
2232 2009-03-22  Jason Rumney  <jasonr@gnu.org>
2234         * w32term.c (syms_of_w32term): Doc fix for
2235         x-use-underline-position-properties.
2237 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
2239         * w32.c (getpwuid): Change argument type to unsigned.
2240         (struct w32_id): Change type of `rid' member to unsigned.
2241         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2242         argument ID to unsigned.  All callers changed.
2243         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2245 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
2247         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2248         negative, produce a float value.
2250         * dired.c (make_uid, make_gid): New functions.
2251         (Ffile_attributes): Use them to avoid negative UID and GID.
2253 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
2255         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2256         (syms_of_keyboard) <command-hook-internal, input-method-function>:
2257         Fix typos in docstrings.
2259 2009-03-19  Kenichi Handa  <handa@m17n.org>
2261         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2262         changed, use font_load_for_lface to get a new font object.
2263         Call free_realized_fontset after handling ASCII font change.
2265         * frame.c (x_set_font): Handle the case that ARG is a cons.
2267 2009-03-19  Glenn Morris  <rgm@gnu.org>
2269         * fileio.c (Fsubstitute_in_file_name): Doc fix.
2271 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
2273         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2275 2009-03-19  Kenichi Handa  <handa@m17n.org>
2277         * charset.c (load_charset_map_from_file): When a mapfile can't be
2278         loaded, signal an error.
2280 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
2282         * dired.c (Ffile_attributes): Make sure UID and GID are always
2283         positive, even if the value is too large for a positive EMACS_INT.
2284         Doc fix.
2286         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
2288 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2290         * xmenu.c (xdialog_show): Move Fredisplay call ...
2291         (Fx_popup_dialog): ... here.
2293 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2295         * dired.c (file_name_completion): Disable the first optimization just
2296         installed, since it is not implemented correctly.
2298 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2300         * dired.c (file_name_completion): Check completion-ignored-extensions
2301         only if the entry can affect bestmatch.
2302         Stop the search early, as Ftry_completion already does.
2304 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
2306         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
2308 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
2310         * keyboard.c (parse_menu_item): Don't display remappings as menu
2311         equivalent bindings (Bug#788).
2313 2009-03-15  Jason Rumney  <jasonr@gnu.org>
2315         * w32term.h (WM_EMACS_PAINT): New message.
2316         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2317         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2318         before passing to lisp thread.  (Bug#950)
2320 2009-03-14  David Reitter  <david.reitter@gmail.com>
2322         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2323         variable as it was never reset.
2324         (ns_term_init): Remove initialization of Lisp-settable defaults
2325         and ns_expand_space.
2326         (-setPanelFromDefaultValues): Remove ns_expand_space.
2327         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2328         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
2329         i.e. no additional spacing, similar to Carbon port.
2331         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2332         * nsfns.m (ns-popup-prefs-panel): Remove.
2334 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
2336         * sound.c (alsa_configure): Remove call to deprecated
2337         snd_pcm_sw_params_set_xfer_align.
2339 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
2341         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2342         after clicking in a detached tool bar.
2343         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2345 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2347         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2348         int/Lisp_Object mixup).
2350 2009-03-13  Kenichi Handa  <handa@m17n.org>
2352         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
2353         Handle NAME nil and t correctly.  Callers changed.
2354         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2355         (set_fontset_font): Change ARG to a vector.  Handle range_list in
2356         ARG correctly.
2357         (Fset_fontset_font): Fix the case that TARGET is both a script
2358         name and charset name.  Adjust the arg to set_fontset_font for
2359         the above change.
2360         (fontset_from_font): Fix previous change.
2361         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
2362         entry.  If FONTSET is the default fontset, don't set the extra
2363         slot of the returning char-table.
2365 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
2367         * nsfns.m (Fx_close_connection): Doc fix.
2368         (Fns_do_applescript): Reflow docstring.
2369         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2370         (Fx_display_pixel_width, Fx_display_pixel_height)
2371         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2372         Fix typos in docstrings.
2373         (Fns_set_alpha): Fix typos in error messages.
2375 2009-03-12  David Reitter  <david.reitter@gmail.com>
2377         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
2378         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
2379         were used for such events.
2381         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2382         (toggleToolbar, performDragOperation, runHelp): Use it.
2384         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
2385         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2387 2009-03-11  Kenichi Handa  <handa@m17n.org>
2389         * font.h (font_open_by_spec): Extern it.
2391         * font.c (font_open_by_spec): New function.
2392         (font_open_by_name): Use font_open_by_spec.
2394         * frame.c (x_set_font): When ARG is a font-object, don't alter the
2395         fontset of the frame.
2397         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2398         modify the default font of frames that use this fontset.
2399         (num_auto_fontsets): New variable.
2400         (fontset_from_font): Use num_auto_fontsets to decide a fontset
2401         name.  Be sure to set FONTSET_ASCII to the correct font name.
2402         (update_auto_fontset_alist): New function.
2404 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
2406         * makefile.w32-in: Update dependencies.
2408 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
2410         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2412 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2414         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2416 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
2418         * lread.c (Feval_buffer): Doc fix.
2420 2009-03-09  Kenichi Handa  <handa@m17n.org>
2422         * charset.c (Qfile_name_handler_alist): Extern it.
2423         (load_charset_map_from_file): Temporarily bind
2424         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
2426 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
2428         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2429         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
2431 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
2433         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2434         (x_set_window_size): Change back to calculated method of setting
2435         toolbar height under Cocoa.  (Bug#2546)
2436         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2437         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2439         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2441         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2442         accelerator in parens under GNUstep.
2444 2009-03-06  Kenichi Handa  <handa@m17n.org>
2446         These changes are to detect incorrect composition sequence without
2447         looking ahead the source.  (Bug#2370)
2449         * coding.h: Include "composite.h".
2450         (enum compisition_state): New enum.
2451         (struct compisition_status): New struct.
2452         (struct iso_2022_spec): New member cmp_status.
2453         (struct emacs_mule_spec): New struct.
2454         (struct coding_system): New members ctext_extended_segment_len and
2455         embedded_utf_8.  Change the union member
2456         spec.emacs_mule_full_support to spec.emacs_mule.
2458         * coding.c (CODING_ISO_CMP_STATUS): New macro.
2459         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
2460         (MAX_ANNOTATION_LENGTH): Define to 5.
2461         (ADD_COMPOSITION_DATA): New arg nbytes.
2462         (emacs_mule_char): New arg cmp_status.
2463         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2464         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2465         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2466         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2467         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2468         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2469         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2470         (EMACS_MULE_COMPOSITION_END): New macro.
2471         (emacs_mule_finish_composition): New function.
2472         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2473         (decode_coding_emacs_mule): Avoid long looking ahead while
2474         handling composition.
2475         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2476         (ENCODE_COMPOSITION_RULE): New macro.
2477         (finish_composition): New function.
2478         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2479         (DECODE_COMPOSITION_START): New implementation.
2480         (DECODE_COMPOSITION_END): Likewise.
2481         (STORE_COMPOSITION_RULE): New macro.
2482         (decode_coding_iso_2022): Avoid long looking ahead while handling
2483         composition, CTEXT extended segment, and embedded UTF-8.
2484         (setup_coding_system): For a coding of type iso-2022, reset
2485         CODING_ISO_EXTSEGMENT_LEN (coding) and
2486         CODING_ISO_EMBEDDED_UTF_8 (coding).
2487         (get_translation): Delete arguments last_block, from_nchars,
2488         to_nchars.  Callers changed.
2489         (produce_chars): Don't modify charbuf.  Adjusted for the change of
2490         get_translation.
2491         (produce_composition): Adjust for the new annotation sequence.
2492         (handle_composition_annotation): Likewise.
2493         (consume_chars): Adjust for the change of get_translation.
2495 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
2497         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
2499 2009-03-05  Kenichi Handa  <handa@m17n.org>
2501         * font.c (font_select_entity): New function.
2502         (font_find_for_lface): Use font_select_entity to select a font.
2504         * fontset.c (fontset_find_font): If a font found without
2505         restricting to the characters C doesn't support C, try to find a
2506         font with C restriction.
2508 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
2510         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2512 2009-03-04  Jason Rumney  <jasonr@gnu.org>
2514         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
2515         characters that have already been read.  (Bug#2569)
2517         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2518         Log an error message if check_image_size failed.
2519         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
2520         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
2522 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
2524         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2525         when decoding process output.
2527 2009-03-01  Richard M Stallman  <rms@gnu.org>
2529         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2531         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2533 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
2535         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2536         (decode_coding_emacs_mule, decode_coding_iso_2022)
2537         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2538         (decode_coding_raw_text, decode_coding_charset)
2539         (setup_coding_system, decode_eol, decode_coding, consume_chars):
2540         Honor inhibit-eol-conversion.  (Bug #2186)
2542 2009-02-28  Jason Rumney  <jasonr@gnu.org>
2544         * coding.c (detect_coding_charset): If not checking latin extra,
2545         fail on characters between 0x80 and 0xA0.  (Bug#2354)
2547 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
2549         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2550         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
2552 2009-02-27  Glenn Morris  <rgm@gnu.org>
2554         * callint.c (Finteractive): Doc fix.
2556 2009-02-27  Kenichi Handa  <handa@m17n.org>
2558         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2560 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
2562         * font.c (font_style_to_value): Set value for unknown symbols to
2563         100 instead of 255.
2564         (weight_table, slant_table, width_table): Treat "unspecified" as
2565         the default value.
2567 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
2569         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2571 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
2573         * lread.c (Fload): Stop checking Vloads_in_progress and signal
2574         error as soon as a recursive load is detected.
2576 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
2578         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2579         before caching.
2581 2009-02-24  Kenichi Handa  <handa@m17n.org>
2583         * fontset.c (fontset_find_font): Fix the condition for checking
2584         unavailable font.
2586 2009-02-24  Glenn Morris  <rgm@gnu.org>
2588         * xfaces.c (Finternal_set_font_selection_order): Remove leading
2589         whitespace that confuses documentation.
2591 2009-02-23  Miles Bader  <miles@gnu.org>
2593         * process.c (Flist_system_processes, Fprocess_attributes)
2594         (syms_of_process): Rename `system-process-attributes' to
2595         `process-attributes'.
2597 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
2599         * coding.h (struct coding_system): Make safe_charsets a pointer to
2600         unsigned char.
2601         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2602         being 255.
2603         (SAFE_CHARSET_P): Likewise.
2604         (setup_iso_safe_charsets): Properly setup safe_charsets.
2605         (Fdefine_coding_system_internal): Likewise.
2606         (setup_coding_system): Likewise.  Remove unneeded casts.
2607         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2608         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.  Remove
2609         unneeded casts.
2611         * insdel.c (del_range_2): Don't modify gap contents when called
2612         from decode_coding_object.  (Bug#1809)
2614 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
2616         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2617         Qfont_object.
2618         (Ftype_of): Recognize font objects.
2620         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2622         * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2623         moved to data.c.
2625 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
2627         * nsterm.m (x_make_frame_invisible): Unset async_visible,
2628         async_iconified.  Based on a patch by Christian Lynbech
2629         <christian.lynbech@tieto.com>.
2630         (EmacsView-windowDidMiniaturize:): Unset async_visible.
2632 2009-02-20  Glenn Morris  <rgm@gnu.org>
2634         * syntax.c (Fskip_chars_forward): Fix doc typo.
2636 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
2638         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2640 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
2642         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2644 2009-02-19  Kenichi Handa  <handa@m17n.org>
2646         * coding.c (detect_coding): Preserve coding->mode.
2647         Don't overflow coding->carryover.  (Bug#2370)
2649 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
2651         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2653 2009-02-18  Kenichi Handa  <handa@m17n.org>
2655         * font.c (font_check_otf_features): Fix handling of `nil' element.
2656         (Ffont_spec): Describe :lang and :otf in the docstring.
2658 2009-02-16  Andreas Schwab  <schwab@suse.de>
2660         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2661         string.
2663 2009-02-16  Kenichi Handa  <handa@m17n.org>
2665         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
2666         (Bug#1723)
2668 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
2670         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
2672         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2673         (handle_line_prefix): Suppress wrapping of wrap prefixes.
2675 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
2677         * msdos.c (MAX_SCREEN_BUF): New macro.
2678         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2679         Encode the entire run of glyphs sharing the same face, instead of
2680         doing that one glyph at a time (fixes a bug with displaying
2681         double-size characters).
2683 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
2685         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2687         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2688         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
2689         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
2691         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
2692         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
2694 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2696         * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2697         invisible areas.
2699 2009-02-12  Jason Rumney  <jasonr@gnu.org>
2701         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
2702         (add_font_entity_to_list): Call check_face_name even when family
2703         is unspecified.
2705         * w32term.c (x_display_pixel_height, x_display_pixel_width):
2706         Release DC when finished.  Use NULL window to refer to desktop.
2707         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
2709         * w32font.c (add_font_entity_to_list): Fix check for substituted
2710         raster fonts.  (Bug#2219)
2712 2009-02-12  Kenichi Handa  <handa@m17n.org>
2714         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2715         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2716         (autocmp_chars): Use fast_looking_at.  Don't compose more
2717         characters than MAX_COMPOSITION_COMPONENTS.
2718         (find_automatic_composition): While looking forward and backward,
2719         check static composition.  Fix where to stop looking forward.
2720         (composition_adjust_point): Fix checking of static composition.
2721         (Fcomposition_get_gstring): Pay attention to
2722         MAX_COMPOSITION_COMPONENTS.
2724         * lisp.h (fast_looking_at): Extern it.
2726         * search.c (fast_looking_at): New function.
2728         * term.c (encode_terminal_code): Adjust for the change of
2729         <struct glyph>.u.cmp.to.
2730         (append_composite_glyph): Likewise.
2732         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
2733         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
2734         composition.
2735         (append_composite_glyph): Adjust for the change of
2736         <strcut glyph>.u.cmp.to.
2738 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
2740         * casetab.c (init_casetab_once):
2741         * coding.c (ALLOC_CONVERSION_WORK_AREA):
2742         * font.c (font_update_lface):
2743         * fontset.c (Fnew_fontset):
2744         * ftfont.c (ftfont_drive_otf):
2745         * xfont.c (xfont_open):
2746         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2748 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2750         * fileio.c (Fwrite_region): !NILP -> CONSP.
2752 2009-02-10  Andreas Schwab  <schwab@suse.de>
2754         * process.c (send_process): Properly relocate pointer into data
2755         when using encoded data.  (Bug#2272)
2757 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
2759         * coding.c (detect_coding_charset): Fix previous change.
2761 2009-02-08  Jason Rumney  <jasonr@gnu.org>
2763         * w32fns.c (w32_hide_hourglass): Handle case where frame
2764         disappeared while hourglass was displayed.  (Bug #2193)
2766 2009-02-07  Andreas Schwab  <schwab@suse.de>
2768         * unexelf.c (unexec): Fix error message.
2770 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
2772         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
2773         when modal window is active.  (Bug #2152)
2774         (applicationShouldTerminate:): Remove now-unneeded while loop
2775         around NSRunAlertPanel.
2777         * nsmenu.m (popupSession): New file-global variable.
2778         (pop_down_menu): End the popupSession before closing dialog.
2779         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2780         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2781         don't query NSApp for events (just sleep instead).
2783 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
2785         * coding.c (syms_of_coding) <translation-table-for-input>:
2786         Modify doc string to discourage use for character code unification.
2788 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2790         * atimer.c (run_timers): Update pending_atimers.
2792 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
2794         * image.c (svg_load_image): Fix last change.
2796         * xfns.c (Fx_create_frame): Signal an error if no font is
2797         found (Bug#2147).
2799 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
2801         * character.c (syms_of_character) <script-representative-chars>:
2802         Fix typo in docstring.
2804 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
2806         * nsmenu.m (pop_down_menu): New function.
2807         (ns_popup_dialog): Call it on unwind.
2808         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2809         call timer_check() (Bug#2154).
2810         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2811         handling_signal is set.
2812         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2814         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
2816         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2818         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2820         * keyboard.c (poll_for_input_1, handle_async_input):
2821         Set handling_signal under HAVE_NS.
2823 2009-02-04  Glenn Morris  <rgm@gnu.org>
2825         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2827 2009-02-04  Kenichi Handa  <handa@m17n.org>
2829         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2831         * charset.c (Fchar_charset): New optional arg restriction.
2833         * coding.h (coding_system_charset_list): Extern it.
2835         * coding.c (coding_system_charset_list): New function.
2837         * composite.c: Include coding.h and termhooks.h.
2838         (composition_gstring_p): Fix for the terminal case.
2839         (composition_gstring_width): Likewise.
2840         (fill_gstring_body): Likewise.
2841         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2842         the frame.
2843         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2844         is within a composition.
2845         (Fcomposition_get_gstring): Fix the terminal case.
2847         * term.c (encode_terminal_code): Fix handling of composition.
2848         (produce_composite_glyph): For static composition, get pixel_width
2849         from struct composition.
2851 2009-02-02  Andreas Schwab  <schwab@suse.de>
2853         * unexelf.c (unexec): Handle unaligned bss offset.
2855 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
2857         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2858         XT,w32read_socket changes to ns_read_socket.
2860         * keyboard.c (handle_interrupt): Don't call
2861         quit_throw_to_read_char() under NS.
2863         * blockinput.h: Remove NS-specific code.
2865 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
2867         * dispnew.c (window_change_signal): Don't try to get the size of a
2868         suspended tty frame.
2869         * term.c (Fresume_tty): Resize if the size has changed while the
2870         tty was suspended.
2872         * alloc.c (mark_stack): Properly conditionalize previous change.
2874 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
2876         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2877         * w32term.c (w32_read_socket) [SYNC_INPUT]:
2878         Remove; this code is not used on Windows.
2880 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
2882         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2883         EOLs that also has stray ^M characters.
2885 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
2887         * atimer.c (run_timers, alarm_signal_handler):
2888         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2889         * w32inevt.c (w32_console_read_socket):
2890         * w32term.c (w32_read_socket):
2891         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2893 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
2895         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2896         Initialize it as a relative filename pattern.
2897         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2898         (Fcall_process_region): Simplify temp file creation using
2899         temporary-file-directory.
2901 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
2903         * msdos.c: Rename pending_signals to msdos_pending_signals.
2904         (sig_suspender, sigprocmask): Adjust.
2906 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
2908         * keyboard.c (pending_signals): New var.
2909         (poll_for_input, input_available_signal, init_keyboard): Set it.
2910         (process_pending_signals): New function.
2912         * lisp.h (QUIT): Check pending_signals instead of
2913         interrupt_input_pending.  Use process_pending_signals.
2915         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
2917         * process.c (wait_reading_process_output): Use process_pending_signals.
2919         * sysdep.c (emacs_write): Use process_pending_signals.
2921         * xterm.c (XTread_socket): Update pending_signals.
2923         * w32term.c (w32_read_socket): Update pending_signals.
2925         * w32inevt.c (w32_console_read_socket): Update pending_signals.
2927 2009-01-29  Kenichi Handa  <handa@m17n.org>
2929         * xftfont.c (xftfont_has_char): New function.
2930         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2932 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
2934         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2935         under GNUstep.
2936         (ns_query_color): New declaration.
2938         * nsterm.m (ns_confirm_quit): New variable.
2939         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2940         (EmacsApp-applicationShouldTerminate:): Use it.
2941         (EmacsPrefsController): Let user set it.
2942         (ns_query_color): New function.
2943         (ns_defined_color): Use it.
2944         (ns_initialize): Drop.
2945         (ns_term_init): Add two lines from ns_initialize(), and set
2946         input_interrupt_mode to nil.
2948         * image.c (svg_load_image): Don't right-shift background RGB when
2949         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
2951 2009-01-28  Kenichi Handa  <handa@m17n.org>
2953         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2954         (fontset_get_font_group): Remember that no font-group is specified
2955         for C.
2957 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
2959         * fns.c (concat): Check for string overflow (bug#1787).
2961         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2962         Quadruple undo limits (bug#1501).
2964 2009-01-27  Kenichi Handa  <handa@m17n.org>
2966         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2967         directly use GT_Get_Char_index.
2969         * xftfont.c (struct xftfont_info): New member `index'.
2971         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
2972         (Ffontset_font): Adjust for the change of fontset entry.
2974 2009-01-26  Kenichi Handa  <handa@m17n.org>
2976         * fontset.c (fontset_find_font): Fix handling of non-cons return
2977         value of fontset_get_font_group.
2978         (fontset_font): Revert last change.
2980 2009-01-26  Jason Rumney  <jasonr@gnu.org>
2982         * w32font.c (w32font_list_internal): Return quickly if registry is
2983         unknown.  Simplify final return.
2984         (add_font_entity_to_list): Break complex logic down into more
2985         manageable chunks.  Move unknown registry check to
2986         w32font_list_internal.
2988 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
2990         Changes to remove Feval calls from GUI under NS.
2992         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2993         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
2994         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2996         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2997         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2998         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2999         instead of NON_ASCII_KEYSTROKE_EVENT.
3000         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3001         (EmacsApp-applicationShouldTerminate:): Query user.
3002         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3003         instead of Feval.
3005         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3007         * keyboard.c (kbd_buffer_get_event): Check for it.
3008         (keys_of_keyboard): Define lispy keys for
3009         ns-put/unput-working-text.
3011         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3012         versions.
3013         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3015 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
3017         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3018         setting current_buffer directly.  (Bug#2044)
3020 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
3022         * fontset.c (fontset_font): If we know there is no font, don't do
3023         any work.  (Bug#1952, bug#1990).
3025         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
3027 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
3029         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3030         (ns_no_defaults): New declaration.
3031         (main): Use it.
3033         * nsterm.h (ns_no_defaults): New declaration.
3035         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3037         * nsterm.m (ns_no_defaults): New variable.
3038         (ns_initialize): Don't read defaults when ns_no_defaults.
3039         (EmacsView-readSelectionFromPasteboard:)
3040         (writeSelectionToPasteboard:types:): New stubbed-out methods for
3041         NSServicesRequests protocol.  (Bug#1435)
3042         (ns_dumpglyphs_stretch): New function.
3043         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3044         of 2008-11-15 to other terms.  (Bug#615)
3046         * nsimage.m (setPixmapData:): Set to ignore image DPI.
3048 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
3050         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3051         call for Sparc64.
3053 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
3055         * nsfns.m:
3056         * nsgui.h:
3057         * nsmenu.m:
3058         * nsselect.m:
3059         * nsterm.h:
3060         * nsterm.m: Remove '23' comments that indicated code added during
3061         update from emacs-20 -> emacs-23.
3063 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
3065         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3066         ns_alternate_modifier.  (Bug#1217)
3068         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3069         Display all shortcuts, including those w/o super modifier.
3071         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3073 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
3075         * fileio.c (Vwrite_region_post_annotation_function)
3076         (Vwrite_region_annotation_buffers): New vars.
3077         (build_annotations_unwind): Just reset
3078         Vwrite_region_annotation_buffers.
3079         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3080         Call write-region-post-annotation-function.
3081         (build_annotations): Add to Vwrite_region_annotation_buffers if
3082         buffer changes.
3084 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
3086         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3087         Tiger.
3088         * nsfns.m (ns_do_applescript):
3089         Conditionalize typeUTF16ExternalRepresentation on Tiger.
3091 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
3093         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3095 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
3097         * nsmenu.m (NSMENUPROFILE): Change #if style.
3099         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3101         * nsterm.m (x_set_frame_alpha): Add prototype.
3102         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3103         handle Ctrl-tab.  (Bug#1841)
3104         (ns_get_color): Use unsigned long long for scanned hex string value.
3105         (ns_term_shutdown): Abort on non SIGTERM signals.
3106         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3107         (EmacsPrefsController-setPanelFromDefaultValues): New function.
3108         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
3109         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3110         (ns_defined_color): Fix settings of the XColor variable fields:
3111         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
3113         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3114         DPI.  (Bug#1316)
3115         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3116         values in onTiger section.
3118 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
3120         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3121         Check return value of font_spec_from_name.
3122         (Fx_list_fonts): Doc fix.  (Bug#1951)
3124         * font.c (font_spec_from_name): Return Qnil if font name could not
3125         be parsed.
3126         (font_parse_name): Treat a `?' character as part of an XLFD.
3128         * fns.c (Fsubstring): Doc fix.
3130 2009-01-19  Kenichi Handa  <handa@m17n.org>
3132         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3133         (ftfont_list): Likewise.
3135 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
3137         * dbusbind.c (Fdbus_register_signal):
3138         * process.c (conv_sockaddr_to_lisp):
3139         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3141         * callproc.c (Fgetenv_internal): Doc fix.
3143 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
3145         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3146         it is not even used.
3148 2009-01-16  Glenn Morris  <rgm@gnu.org>
3150         * font.c (Ffont_variation_glyphs): Silence compiler.
3152 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
3154         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3155         Reported by David Robinow <drobinow@gmail.com>.
3157 2009-01-15  Kenichi Handa  <handa@m17n.org>
3159         * coding.c (detect_coding_system): Fix handling of null_byte_found.
3161 2009-01-14  Jason Rumney  <jasonr@gnu.org>
3163         * frame.c (x_set_font): Always store a font to the font parameter,
3164         never a fontset.  (Bug#1562)
3166 2009-01-14  Kenichi Handa  <handa@m17n.org>
3168         * coding.c (TWO_MORE_BYTES): New macro.
3169         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3171 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
3173         * font.c (font_clear_prop): If clearing the family, clear the font
3174         width index too.
3176         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3178 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
3180         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3181         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
3182         functions, use sizeof.
3184 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
3186         * keyboard.c (read_char): Fix case where last_nonmenu_event
3187         returned a bad value with submenus.  (Bug#447)
3189 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
3191         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3192         family, clear the font width index too.
3194 2009-01-11  Jason Rumney  <jasonr@gnu.org>
3196         * keyboard.c (cmd_error_internal): Exit when errors occur before
3197         frame creation and not in daemon mode.  (Bug#1836)
3199 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
3201         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3202         of a display vector, backtrack.
3203         (try_window_reusing_current_matrix): Check glyph type before
3204         referencing charpos member.
3206 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
3208         Fix Bug #876:
3210         * coding.c (inhibit_null_byte_detection): New variable.
3211         (detect_coding, detect_coding_system): Don't pay attention to null
3212         bytes if inhibit_null_byte_detection is non-zero.
3213         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3214         <inhibit-iso-escape-detection>: Doc fix.
3216 2009-01-09  Jason Rumney  <jasonr@gnu.org>
3218         * w32font.c (add_font_entity_to_list): Don't report unknown
3219         Windows charset as any unrecognized registry.  (Bug#1548)
3220         Only report Unicode Plane 2 fonts as unicode-sip.
3222 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
3224         * xfaces.c (Fx_font_family_list): Delete function.
3225         Move compatibility version to faces.el.
3227         * font.c (Ffont_family_list): Return a list of strings, not symbols.
3229 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
3231         * frame.c (x_set_frame_parameters): Remember requested value for
3232         fullscreen before it's reset by the parameter handler.
3234 2009-01-09  Glenn Morris  <rgm@gnu.org>
3236         * keyboard.c (last_command_char): For clarity, rename to...
3237         (last_command_event): ... and update all users.
3238         (last_input_char): For clarity, rename to...
3239         (last_input_event): ... and update all users.
3240         (last-command-char, last-input-char): Move to subr.el as aliases.
3241         * cmds.c, commands.h: Update for last_command_char rename.
3243 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
3245         * font.c (font_open_for_lface): Handle unspecified height attribute.
3247 2009-01-08  Jason Rumney  <jasonr@gnu.org>
3249         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3250         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3251         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3252         Don't declare.
3253         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
3254         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3256 2009-01-07  Kenichi Handa  <handa@m17n.org>
3258         * fileio.c (Finsert_file_contents): In the case of replace,
3259         remember the coding system used for decoding in
3260         coding_system (Bug#1039).
3262         * coding.c (decode_coding_utf_8): Check byte_after_cr before
3263         breaking the loop.  (Bug#870)
3264         (decode_coding_utf_16, decode_coding_emacs_mule)
3265         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3266         (decode_coding_charset): Likewise.
3268 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
3270         * frame.c (x_set_frame_parameters): Make sure height (width) get
3271         applied when fullwidth (fullheight) is set.  (Bug#1522)
3273 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
3275         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
3276         (utc_base): Declare as ULONGLONG, not long double.
3277         (convert_time_raw): Delete.
3278         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3279         (initialize_utc_base): New function.
3280         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3281         (convert_from_time_t): Use initialize_utc_base; compute result with
3282         64-bit arithmetic.
3283         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3285 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
3287         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3288         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3289         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3290         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3291         [!subprocesses]: Define.
3292         (syms_of_process) [!subprocesses]: Intern and staticpro them.
3293         (Flist_system_processes, Fsystem_process_attributes)
3294         [!subprocesses]: Call list_system_processes and
3295         system_process_attributes instead of returning Qnil.
3297         * dosfns.c (system_process_attributes, list_system_processes):
3298         New functions.
3300         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3302         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3303         Don't use the default (no-op) implementation.
3305 2009-01-03  Jason Rumney  <jasonr@gnu.org>
3307         * keyboard.c (parse_modifiers_uncached): Wheel events are
3308         clicks (bug#687).
3310         * w32term.c (x_query_colors, x_query_color): New functions.
3312         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3313         (svg_load_image): Cast returned pointers from dynamically loaded
3314         functions.  Eliminate W32 specific code.
3316 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
3318         * nsfns.m (x_set_foreground_color, x_set_background_color)
3319         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3320         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3321         x_ prefix instead of ns_.  Update references.
3322         (syms_of_nsfns): Add a FIXME comment.
3324         * nsterm.m (x_set_cursor_type): New prototype.
3325         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3327         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3328         for Solaris instead of incorrectly providing Qutime and Qcutime.
3330 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
3332         * w32.c (process_times): Compute sum of utime and stime.
3333         (system_process_attributes): Add Qtime to the alist.
3335         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3336         and add them to the alist.
3338         * process.c (top level) <Qtime, Qctime>: New variables.
3339         (syms_of_process): staticpro them.
3340         (Fsystem_process_attributes): Add their documentation to the doc
3341         string.
3343         * process.h: Declare Qtime and Qctime.
3345 2009-01-02  Jason Rumney  <jasonr@gnu.org>
3347         * image.c (Qgobject): New symbol.
3348         (syms_of_image): Initialize it.
3349         (init_svg_functions): Load some functions from gobject library.
3351 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
3353         * frame.c (make_terminal_frame): Remove redundant code and useless
3354         block.
3356 2009-01-01  Andreas Schwab  <schwab@suse.de>
3358         * process.c (conv_sockaddr_to_lisp): Add workaround for
3359         getsockname bug on BSD.
3361 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
3363         * xfns.c (x_create_tip_frame): Set border width of the X window.
3365         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
3367 2009-01-01  Jason Rumney  <jasonr@gnu.org>
3369         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
3370         Don't block input, as per earlier xterm.c changes.
3372 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
3374         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3375         (ns_appkit_version_int): New function.
3376         (x-server-version): Use ns_appkit_version_int and follow 21+
3377         convention of returning 3 integers.
3379 2008-12-30  Kenichi Handa  <handa@m17n.org>
3381         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3382         (CHAR_SURROGATE_PAIR_P): New macro.
3384         * font.h (struct font_driver): New member get_variation_glyphs.
3386         * font.c (font_range): Don't require a font for a variation selector.
3387         (Ffont_variation_glyphs): New function.
3388         (syms_of_font): Defsubr it.
3390         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3391         ftfont_variation_glyphs.
3392         (setup_otf_gstring): New function.
3393         (ftfont_drive_otf): Use it.
3394         (ftfont_shape_by_flt): Handle variation selector.
3395         (ftfont_variation_glyphs): New function.
3397 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
3399         * frame.c (Vemacs_iconified): Remove.
3401 2008-12-30  Jason Rumney  <jasonr@gnu.org>
3403         * frame.c (store_frame_param, x_get_arg): Enable newer code on
3404         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
3406 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
3408         * indent.c (Fvertical_motion): Don't advance iterator if we have
3409         reseated to the desired position.
3411         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3412         checking for pos match.
3414 2008-12-30  Kenichi Handa  <handa@m17n.org>
3416         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3417         just get the low 8-bit of the code.
3419         * font.c (font_intern_prop): Validate str as multibyte.
3421 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
3423         * dispextern.h (struct face): Move lface and hash from the middle
3424         of bitfields.
3426         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3428 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
3430         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3431         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3432         instead of intervals.h.
3434 2008-12-26  Andreas Schwab  <schwab@suse.de>
3436         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3437         cons.
3439 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
3441         * textprop.c (Qminibuffer_prompt): New variable.
3442         (syms_of_textprop): Initialize it.
3443         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3444         in minibuffer-prompt face.  (Bug#1662)
3446 2008-12-25  Jason Rumney  <jasonr@gnu.org>
3448         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3450 2008-12-24  Jason Rumney  <jasonr@gnu.org>
3452         * ralloc.c (r_alloc_reset_variable): New function.
3454         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
3455         record of what points where.  (Bug#716)
3457 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
3459         * minibuf.c (read_minibuf): Follow the non-interactive case when
3460         running as a daemon, before detaching.
3462 2008-12-22  Andreas Schwab  <schwab@suse.de>
3464         * buffer.c (init_buffer): Use realloc instead of xrealloc.
3465         * gtkutil.c (free_widget_value): Use xfree instead of free.
3467 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
3469         * frame.c (delete_frame): New function derived from
3470         Fdelete_frame to handle Qnoelisp value for FORCE argument.
3471         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
3472         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
3473         saying that FORCE non-nil doesn't run `delete-frame-functions'.
3474         * frame.h: Extern delete_frame.
3475         * window.c (window_loop):
3476         * terminal.c (delete_terminal):
3477         * xterm.c (x_connection_closed):
3478         * xfns.c (Fx_hide_tip):
3479         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
3481 2008-12-21  Jason Rumney  <jasonr@gnu.org>
3483         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3484         when character maps to .notdef character.
3486 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
3488         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3490 2008-12-20  Jason Rumney  <jasonr@gnu.org>
3492         * frame.c (Fmake_terminal_frame): Raise an error when called from
3493         a graphical frame on Windows.  (Bug#1325)
3495 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
3497         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3499 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
3501         * minibuf.c (Fread_buffer): Doc fix.
3503 2008-12-20  Jason Rumney  <jasonr@gnu.org>
3505         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
3506         server name in UNC paths.  (Bug#719)
3508         * coding.c (decode_coding): Clear chars_at_source flag when using
3509         charbuf.  (Bug#1035)
3511 2008-12-19  Daniel Engeler  <engeler@gmail.com>
3513         * sysdep.c (serial_configure): Fix typo.
3515 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
3517         * sysdep.c: Include alloca.h.
3518         (system_process_attributes): Add implementation for Solaris.
3520         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
3522 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
3524         Reorganize implementation of Flist_system_processes and
3525         Fsystem_process_attributes.  No functional changes.
3526         * process.c: Don't #include pwd.h, grp.h and limits.h.
3527         (Flist_system_processes): Just call list_system_processes.
3528         (Fsystem_process_attributes): Just call system_process_attributes.
3529         (procfs_list_system_processes, time_from_jiffies)
3530         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3531         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3533         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
3534         (list_system_processes): Rename from
3535         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
3536         Provide a do nothing implementation.
3537         (system_process_attributes): Rename from
3538         procfs_list_system_processes.
3539         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3540         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
3542         * w32.c (list_system_processes): Rename from
3543         w32_list_system_processes.
3544         (system_process_attributes): Rename from
3545         w32_system_process_attributes.
3547         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3549         * process.h (w32_list_system_processes)
3550         (w32_system_process_attributes): Remove.
3551         (list_system_processes, system_process_attributes): New
3552         prototypes.
3554 2008-12-19  Kenichi Handa  <handa@m17n.org>
3556         * xfont.c (xfont_decode_coding_xlfd): New function.
3557         (xfont_encode_coding_xlfd): New function.
3558         (xfont_list_pattern): Decode XLFD by iso-8859-1.
3559         (xfont_list): Decode and encode XLFD by iso-8859-1.
3560         (xfont_match): Likewise.
3561         (xfont_list_family): Likewise.
3562         (xfont_open): Likewise.
3564         * ftfont.c (ftfont_open): Generate a multibyte string if given
3565         names are utf-8.
3567         * xftfont.c (xftfont_open): Generate a multibyte string if given
3568         names are utf-8.
3570 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
3572         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3573         changed.
3574         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3575         clicked on a detached tool bar button.
3577 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
3579         * emacs.c (main): Print and error and exit when no data is read
3580         from the pipe.
3582 2008-12-17  Jason Rumney  <jasonr@gnu.org>
3584         * w32font.c (w32font_has_char): Always return -1.
3586 2008-12-16  Kenichi Handa  <handa@m17n.org>
3588         * font.c (font_open_entity): Fix previous change.
3590 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
3592         * process.c: Include <limits.h>.
3594 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
3596         * font.c (font_update_drivers): Fix mistake in reconstructing the
3597         driver list.
3599 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
3601         * font.c (font_clear_cache): Fix format of font cache data.
3603 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
3605         * xftfont.c (xftfont_open): Free Xft font pattern if
3606         XftFontOpenPattern fails.
3608         * xterm.c (x_free_frame_resources): Remove extraneous call to
3609         free_frame_faces.
3611 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
3613         * xterm.c (x_delete_display): Move xim_close_dpy call to
3614         x_delete_terminal.
3615         (x_delete_terminal): Call xim_close_dpy.
3617 2008-12-13  Jason Rumney  <jasonr@gnu.org>
3619         * w32font.c (intern_font_name): New function.
3620         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3621         (w32font_open_internal, Fx_select_font): Decode font name.
3622         (fill_in_logfont, list_all_matching_fonts): Encode font name.
3624         * w32font.h (intern_font_name): Declare new function.
3626         * w32uniscribe.c (add_opentype_font_name_to_list):
3627         Use intern_font_name.
3629 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
3631         * frame.c (Fdelete_frame): Call free_font_driver_list.
3633         * font.c (free_font_driver_list): Implement missing function.
3635         * w32term.c (w32_term_init): Don't initialize the image cache
3636         here; it will be done in init_frame_faces.
3638         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3639         (struct x_display_info): Remove unused member null_pixel.  New
3640         member xim_callback_data.
3642         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3643         (xim_initialize): Save pointer to callback function data.
3644         (xim_close_dpy): Free callback function data.  Call XCloseIM,
3645         reverting 2008-11-04 change by David Smith.
3646         (x_term_init): Don't initialize the image cache here; it will be
3647         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
3648         (x_delete_display): Free x_dnd_atoms member.
3650 2008-12-13  Kenichi Handa  <handa@m17n.org>
3652         * font.c (font_rescale_ratio): Moved from xfaces.c.
3653         Argument type changed.  Handle a font-spec too.
3654         (font_score): Check Vface_font_rescale_alist.
3655         (font_open_entity): Likewise.  (Bug#1547)
3657         * xfaces.c (font_rescale_ratio): Moved to font.c.
3659 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
3661         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3663 2008-12-12  Jason Rumney  <jasonr@gnu.org>
3665         * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3666         Vwindow_system_version to the real w32 major version.
3668 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
3670         * term.c (init_tty): Move setting the terminal name before the
3671         potential user: maybe_fatal.
3673 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
3675         * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3676         all callers changed.  Call free_frame_faces to free the face cache.
3678 2008-12-11  Jason Rumney  <jasonr@gnu.org>
3680         * w32font.c (fill_in_logfont): Don't assume symbol script means
3681         SYMBOL_CHARSET.  (Bug#547)
3683         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
3684         size for surrogates.  (Bug#1096, bug#872)
3686 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
3688         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3690 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
3692         * process.c (Fsystem_process_attributes, syms_of_process):
3693         Fix typo in name of Ssystem_process_attributes.
3694         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3696 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
3698         * syntax.c (Fmodify_syntax_entry): Doc fix.
3700 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
3702         * font.c (Ffont_spec): Move usage to end of docstring.
3704 2008-12-10  Jason Rumney  <jasonr@gnu.org>
3706         * w32font.c (Qcham): New symbol.
3707         (font_supported_scripts): Add cham, and comments for other new
3708         scripts in bitfield from OpenType spec.
3709         (add_font_entity_to_list): Limit unicode-sip fonts to those that
3710         contain characters beyond the bmp.
3712 2008-12-10  Kenichi Handa  <handa@m17n.org>
3714         * ftfont.c (fc_charset_table): Add "unicode-sip".
3715         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
3716         Qunicode_sip.
3718 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
3720         * coding.c (QCdefault_char): Rename from QCdefalut_char.
3721         (Fcoding_system_put): Use QCdefault_char.
3722         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3724 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
3726         * xftfont.c (syms_of_xftfont): Fix typo.
3728         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
3730 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
3732         * emacs.c (main): Close daemon_pipe on exec.
3734 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
3736         * termchar.h (struct tty): New members termcap_term_buffer and
3737         termcap_strings_buffer.
3739         * term.c (encode_terminal_code): Free any previous memory blocks
3740         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
3741         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
3742         All callers changed.
3743         (init_tty): Store termcap data and string buffers in new struct
3744         tty members termcap_term_buffer and termcap_strings_buffer.
3745         (delete_tty): Free them.
3746         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
3748 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
3750         * nsfns.m (ns_set_background_color): Remove code duplication.
3751         It was a substitute for face-transparency on OS X 10.3.
3753 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
3755         * coding.c (make_conversion_work_buffer): Disable buffer
3756         modification hooks in the work buffer.
3758 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
3760         * process.c (procfs_system_process_attributes): If `nread' has a
3761         negative value, assign zero to it.
3763 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
3765         * eval.c (Vdebug_on_error): Doc fix.
3767 2008-12-05  Kenichi Handa  <handa@m17n.org>
3769         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3770         second character is a combining character.
3772 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
3774         * process.c (procfs_system_process_attributes): Don't use cmd,
3775         cmdsize, and q without initializing them first.
3777 2008-12-04  Jason Rumney  <jasonr@gnu.org>
3779         * w32font.c (w32font_draw): Initialize orig_clip before getting
3780         it, and delete it when finished.
3782 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
3784         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3785         case when running as a daemon before detaching.
3787 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
3789         * w32.c (init_environment): Don't unload library shell32.dll.
3791 2008-12-03  Kenichi Handa  <handa@m17n.org>
3793         * font.c (font_at): Set `multibyte' at first.
3795         * coding.c (decode_coding_charset): Check type of an element of
3796         vector VALIDS.
3797         (encode_coding_emacs_mule): Be sure to set `code'.
3799         * fontset.c (face_for_char): Handle invalid charset property correctly.
3800         (font_for_char): Likewise.
3802 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
3804         * font.c (Fopen_font): Compute pixel size correctly.
3805         (font_update_lface): Handle fonts with corrupted size specs,
3806         i.e. non-int and non-float.
3808         * ftfont.c (ftfont_match): Initialize entity variable.
3809         (ftfont_resolve_generic_family): Avoid using uninitialized var.
3810         (ftfont_list_family): Initialize list var earlier.
3812         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3814         * xterm.c (x_draw_glyph_string): Fall back on
3815         underline_minimum_offset for underline position.
3817 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
3819         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3821         * character.c (c_string_width): Specify the type for LEN.
3823 2008-12-03  Kenichi Handa  <handa@m17n.org>
3825         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
3826         (decode_coding_utf_8): Likewise.
3827         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
3828         (produce_chars): Initialize consumed_chars to 0.
3830 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
3832         * keyboard.c (make_lispy_position): Only use PT if the selected
3833         window is current.
3835 2008-12-02  Andreas Schwab  <schwab@suse.de>
3837         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3839         * doprnt.c (doprnt1): Fix size of charbuf.
3841 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
3843         * keyboard.c (timer_check): Revert last change.
3845 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
3847         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3849 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
3851         * makefile.w32-in: Update dependencies.
3852         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3854 2008-12-01  Andreas Schwab  <schwab@suse.de>
3856         * font.c (register_font_driver): Use xmalloc.
3857         (font_put_frame_data): Likewise.
3859 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
3861         * xfaces.c (realize_x_face): Make abort condition clearer.
3863         * gtkutil.c (update_frame_tool_bar): Initialize variable.
3865 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
3867         * keyboard.c (timer_check): After a timer runs, ensure that the
3868         selected window's buffer is current.
3870 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
3872         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3873         It was accidentally restored by the Unicode merge.
3875         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3877 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
3879         * w32proc.c: Include "coding.h".
3880         (Fw32_short_file_name): Encode filename passed to Windows API.
3881         (Fw32_long_file_name): Encode filename passed to Windows API and
3882         decode back the result.  (Bug#1433)
3884 2008-11-29  Kenichi Handa  <handa@m17n.org>
3886         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3887         not before accessing it.
3889         * charset.c (Fdefine_charset_internal): After calculating
3890         min_char, max_char, and fastmap, copy the charset structure again.
3891         (encode_char): Fix the previous change.
3893 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
3895         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3897         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3899         * nsterm.m (x_set_frame_alpha): New function.
3901 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
3903         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3905 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
3907         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3908         pointer to check_face_name.
3910 2008-11-27  Kenichi Handa  <handa@m17n.org>
3912         * category.h (SET_CATEGORY_SET): Call set_category_set.
3913         (set_category_set): Extern it.
3915         * category.c (hash_get_category_set): New function.
3916         (Fmodify_category_entry): Adjusted for the change of
3917         char_table_ref_and_range.  Call hash_get_category_set to get a
3918         category set to store in the table.
3920         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3921         Funify_charset.
3923         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
3924         (DECODE_CHAR): Check if the decoder vector is ready.
3925         (ENCODE_CHAR): Check if the encoder char-table is ready.
3926         (maybe_unify_char): Extern it.
3928         * charset.c (Vchar_unified_charset_table): Delete it.
3929         (inhibit_load_charset_map): New variable.
3930         (temp_charset_work): New variable.
3931         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3932         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3933         New macros.
3934         (load_charset_map): Meaning of control_flag changed.  If
3935         inhibit_load_charset_map is nonzero, setup a table in
3936         temp_charset_work.
3937         (load_charset): New argument control_flag.
3938         (map_charset_for_dump): New function.
3939         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3940         map_charset_for_dump.
3941         (Fdefine_charset_internal): If the charset method is MAP, load
3942         mapping tables by calling load_charset.
3943         (Funify_charset): Don't load a mapping table but directly set
3944         Vchar_unify_table.
3945         (maybe_unify_char): New function.
3946         (decode_char): Don't handle the deleted method MAP_DEFERRED.
3947         Handle the case of inhibit_load_charset_map being nonzero.
3948         (encode_char): Don't handle the deleted method MAP_DEFERRED.
3949         Handle the case of inhibit_load_charset_map being nonzero.
3950         (Fclear_charset_maps): Just free temp_charset_work.
3951         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3952         variable.
3954         * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3955         change of char_table_ref_and_range.
3956         (char_table_ref_and_range): Change the meaning of argument FROM
3957         and TO.  Now the caller must provide initial values for *FROM
3958         and *TO.
3960         * fontset.c (fontset_add): Adjusted for the change of
3961         char_table_ref_and_range.
3962         (fontset_get_font_group): Likewise.
3963         (Ffontset_info): Likewise.
3965         * keymap.c (describe_vector): Adjusted for the change of
3966         char_table_ref_and_range.  For char-table, put boundary between
3967         non-ASCII and 8-bit characters.
3969         * print.c (print_object): For bool-vector, delete unnecessary
3970         check of ASCII_BYTE_P.
3972 2008-11-26  Jason Rumney  <jasonr@gnu.org>
3974         * w32font.c (w32font_open_internal): Don't include external
3975         leading in font height.  (Bug#879)
3977 2008-11-26  Glenn Morris  <rgm@gnu.org>
3979         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3980         redefinition with ifdef.  (Bug#1383)
3982 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
3984         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3986 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
3988         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3989         New EmacsView methods.
3990         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3991         Fixes bug #1048,1357,1414.
3993 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
3995         Fix bug #1362.
3996         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3997         is not an indexed color.
3998         * nsterm.m (free_indexed_color): Add argument checking.
3999         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4001 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
4003         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4004         Document confirm-after-completion value for
4005         minibuffer-completion-confirm.
4007 2008-11-24  Jason Rumney  <jasonr@gnu.org>
4009         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
4010         warning.
4012 2008-11-23  Jason Rumney  <jasonr@gnu.org>
4014         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4015         restored before returning.
4017         * w32font.c (check_face_name): New function.
4018         (add_font_entity_to_list): Use it to filter out common substituted
4019         fonts.  (Bug#642)
4021 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
4023         * buffer.c (Fswitch_to_buffer): Reword and mention new option
4024         confirm-nonexistent-file-or-buffer in doc-string.
4026 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
4028         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4029         Fix copy/paste typo.  Add checks.
4031 2008-11-21  Kenichi Handa  <handa@m17n.org>
4033         * coding.c (detect_coding_iso_2022): Reject invalid composition
4034         sequence.
4035         (DECODE_COMPOSITION_START): If the current source is the last
4036         block, and the current composition doesn't end, regard this
4037         sequence as invalid.
4038         (decode_coding_iso_2022): Handle invalid composition sequence.
4040 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
4042         * window.c (coordinates_in_window): Don't return
4043         ON_VERTICAL_BORDER for the rightmost position of a mode/header
4044         line when the window is not the rightmost one.  (Bug#1372)
4046 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
4048         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4050 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
4052         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4053         and bright_bg if noninteractive is non-zero.
4055 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4057         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4058         x_draw_glyph_string_background.
4060         * w32term.c (x_draw_glyph_string): Likewise.
4062 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
4064         * xterm.c (x_draw_glyph_string): Stop drawing the background of
4065         the next glyph string once past the overhang width.
4067         * nsterm.m (ns_draw_glyph_string): Likewise.
4069         * w32term.c (x_draw_glyph_string): Likewise.
4071 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
4073         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4074         double file close.
4076 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
4078         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4079         dedicated status of window before attempting to display another
4080         buffer in it.
4082 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
4084         * msdos.c (Fmsdos_long_file_names):
4085         (syms_of_msdos) <dos-unsupported-char-glyph>:
4086         * dosfns.c (Fint86): Fix typos in docstrings.
4088 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
4090         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4092 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
4094         * puresize.h (BASE_PURESIZE): Increase to 1260000.
4096 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
4098         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4100         * frame.h: Negative alpha means "don't touch".
4102         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4104         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4106 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
4108         * hftctl.c:
4109         * chpdef.h:
4110         * acldef.h: Remove files used only for systems no longer supported.
4112         * Makefile.in: Fix .o alphabetical ordering.
4113         (hftctl.o): Remove dependency, file removed.
4114         (keymap.o, print.o): Depend on charset.h.
4116 2008-11-10  Kenichi Handa  <handa@m17n.org>
4118         * character.c (Fget_byte): Fix and make it faster for unibyte target.
4120 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
4122         * dired.c (file_name_completion): If completion_ignore_case is
4123         enabled, ignore case when checking completion-regexp-list.
4125 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
4127         * vm-limit.c (get_lim_data): Fix last change.
4129 2008-11-08  Kenichi Handa  <handa@m17n.org>
4131         * character.c (Fget_byte): New function.
4132         (syms_of_character): Defsubr Fget_byte.
4134 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
4136         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4137         cursor position is valid after scrolling.
4139 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
4141         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4143 2008-11-06  Glenn Morris  <rgm@gnu.org>
4145         * xterm.c (handle_one_xevent): Don't let popup menus cause
4146         mouse-autoselect-window related window switching.  (Bug#1261)
4148 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
4150         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4152 2008-11-04  Andreas Schwab  <schwab@suse.de>
4154         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4156 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
4158         * xfns.c (Fx_wm_set_size_hint): New function.
4160 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
4162         * textprop.c (Fprevious_single_char_property_change): Return 0
4163         when there's no change in a string.  (Bug#1301)
4165 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
4167         * frame.c (do_switch_frame): New argument NORECORD passed to
4168         Fselect_window.
4169         (Fselect_frame): New argument NORECORD passed to
4170         do_switch_frame.
4171         (Fset_frame_selected_window): New argument NORECORD passed to
4172         Fselect_frame.
4173         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4174         in call of do_switch_frame.
4175         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4176         Handle NORECORD argument in call of Fselect_frame.
4177         * lisp.h (do_switch_frame, Fselect_frame)
4178         (Fset_frame_selected_window): Adjust declarations.
4179         * window.c (select_frame_norecord): New function.
4180         (run_window_configuration_change_hook): Use it and call
4181         Fselect_frame with NORECORD set.
4182         (Fselect_window): Pass NORECORD to Fselect_frame.
4183         (Fset_window_configuration): Handle NORECORD argument in call of
4184         do_switch_frame.
4185         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4186         Fset_frame_selected_window.
4187         * keyboard.c (command_loop_1): Handle NORECORD in call of
4188         Fselect_frame (currently ifdefd).
4190 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
4192         * emacs.c (USAGE2): Untabify.
4194 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
4196         * composite.c (fill_gstring_header): Fix copy/paste typo.
4198 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
4200         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4201         (Fother_window): Rename argument and rewrite doc-string.
4202         (select_window_norecord): Fix return value.  (Bug#1276)
4204 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
4206         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4207         new frames overriding foreground for tooltips.  Based on similar patch
4208         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
4210 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
4212         * emacs.c (Fdaemon_initialized): Initialize nfd.
4214 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
4216         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4217         (Fwindow_text_height): Clarify doc-strings.
4218         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4219         doc-string of window-scroll-functions.
4221 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
4223         * category.c (syms_of_category): Fix typo in docstring.
4225 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
4227         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4228         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4229         Fix typos in docstrings.
4231 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
4233         * emacs.c (daemon_pipe): Make non-static.
4234         (IS_DAEMON): Move definition ...
4235         * lisp.h (IS_DAEMON): ... here.
4236         (daemon_pipe): Declare.
4237         (is_daemon): Remove.
4238         * dispnew.c (init_display): Use IS_DAEMON.
4240 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
4242         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4243         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4245         * emacs.c (is_daemon): Remove.
4246         (main): Don't set is_daemon.
4247         (IS_DAEMON): New macro.
4248         (Fdaemonp, Fdaemon_initialized): Use it.
4249         (Fdaemon_initialized): Write a char into the pipe to make sure the
4250         parent exits.
4251         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4253 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
4255         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4256         over-sized glyph, draw it with the default glyph width.
4258         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4259         glyph, draw it with the default glyph width.
4261         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4262         glyph, draw it with the default glyph width.
4264         * xdisp.c (try_scrolling): When computing the distance from the
4265         scroll margin to PT, try moving some distance past the window
4266         bottom before giving up.
4268 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
4270         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4271         (Fset_window_buffer): Explain in doc-string that a window can be
4272         "strongly" dedicated to its buffer.
4274 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
4276         * emacs.c (daemon_name): New variable.
4277         (main): Deal with --daemon=SERVER_NAME.
4278         (Fdaemonp): Return a name if one was passed to --daemon.
4280 2008-10-26  Romain Francoise  <romain@orebokech.com>
4282         * emacs.c (daemon_pipe): New variable.
4283         (main): Create a pipe before forking, make the parent exit only after
4284         the child has closed its end of the pipe.  Move closing the
4285         descriptors ...
4286         (Fdaemon_initialized): ... here.  New function.
4288 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
4290         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4291         the previous unoptimized table.
4293         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4294         the distinction between non-nil and non-t value of `dedicated'.
4296 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
4298         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4299         read_char_minibuf_menu_text is large enough to hold the menu string.
4301 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
4303         * window.c (Fget_buffer_window, Fdelete_windows_on)
4304         (Freplace_buffer_in_windows): Make buffer argument optional and
4305         rename to buffer_or_name.
4307 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
4309         * xdisp.c (handle_single_display_spec, handle_display_prop):
4310         Undo 2005-05-16 change.
4311         (handle_stop): Pop iterator if it's loaded with an empty string.
4312         (get_overlay_strings_1): Don't save iterator if it's loaded with
4313         an empty string (bug#1201).
4315 2008-10-24  Kenichi Handa  <handa@m17n.org>
4317         * ftfont.c (ftfont_otf_features): Fix previous change.
4318         (ftfont_otf_capability): Check FeatureList.FeatureCount before
4319         calling ftfont_otf_features.
4321 2008-10-24  Kenichi Handa  <handa@m17n.org>
4323         * font.c (font_match_p): Fix for the case that a vector of
4324         characters is in script-representative-chars.
4326 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
4328         * dbusbind.c (xd_in_read_queued_messages): New variable.
4329         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
4330         (xd_read_queued_messages): Catch Qdbus_error from the macros.
4331         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4332         macro.  (Bug#1186).
4334 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
4336         * s/sol2-10.h: New file.
4338 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
4340         * xdisp.c (fill_glyph_string): Fix typo in source (though the
4341         poor beast has survived 9+ years and the jump from xterm.c!).
4343 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
4345         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4346         Reword doc-string.
4347         (Fbury_buffer): In doc-string say what happens to the buffer's window.
4349 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
4351         * character.c (syms_of_character) <script-representative-chars>:
4352         <unicode-category-table>: Doc fixes.
4354 2008-10-23  Noah Friedman  <friedman@splode.com>
4356         * coding.c (make_conversion_work_buffer): Check that
4357         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4358         Fget_buffer_create.
4360 2008-10-23  Kenichi Handa  <handa@m17n.org>
4362         * font.c (font_add_log): Check the values of extra properties.
4364 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
4366         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4367         Reword doc-string.
4368         (Fset_window_parameter): Use NILP.
4369         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
4370         (Frecenter): Use "selected" instead of "current" window in doc-strings.
4372 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
4374         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4376 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
4378         * nsfns.m (ns_appkit_version): New function.
4379         (x-server-version): Use it.
4380         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4381         (x-server-vendor): Don't check_ns().
4383         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4385 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
4387         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4388         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4390 2008-10-22  Kenichi Handa  <handa@m17n.org>
4392         * syntax.c (scan_words): Call word_boundary_p instead of comparing
4393         scripts.
4395         * category.c (word_boundary_p): Check scripts instead of charset.
4396         Handle nil value in word-separating-categories and
4397         word-combining-categories.
4398         (syms_of_category): Fix docstrings of word-separating-categories
4399         and word-combining-categories.
4401 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
4403         * coding.c (Fencode_coding_region, Fdecode_coding_region)
4404         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4406 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
4408         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4409         Rename arg "buffer" to "buffer_or_name".
4410         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4411         it optional.
4412         (no_switch_window): Remove since the return value is not used.
4413         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
4414         Consider window as dedicated when Fwindow_dedicated_p returns a
4415         non-nil value.
4416         * lisp.h: Remove prototype for no_switch_window.
4418 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
4420         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
4421         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
4423 2008-10-21  Kenichi Handa  <handa@m17n.org>
4425         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4426         check Vlatin_extra_code_table.
4428 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
4430         * fileio.c (Fset_file_modes): Doc fix.
4432 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
4434         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4435         in arrays.
4437 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
4439         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4440         Mention kill-buffer in doc-string.
4441         (Fset_window_buffer): Reinsert tem check removed in last commit.
4442         (Fenlarge_window, Fshrink_window): Have argument names and
4443         doc-string follow Elisp manual more closely.
4445 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
4447         * fileio.c (Fset_file_modes): Doc fix.
4449 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
4451         * window.c (Fwindow_width, Fset_window_start)
4452         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
4453         (Fdelete_windows_on, Freplace_buffer_in_windows):
4454         Make doc-strings follow code and Elisp manual more closely.
4455         (Fwindow_dedicated_p): Make window argument optional.
4456         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4457         (Fset_window_buffer): Respect any non-nil dedicated value for
4458         window.  Rename "buffer" argument to "buffer_or_name".
4460 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
4462         * m/sh3.h: New file, machine description for SuperH.
4464 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
4466         * window.c (Fsplit_window): Rename arg horflag to horizontal.
4468 2008-10-17  Kenichi Handa  <handa@m17n.org>
4470         * ftfont.c (ftfont_otf_features): Fix indexing
4471         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
4473 2008-10-16  Magnus Henoch  <mange@freemail.hu>
4475         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4476         (Fdbus_call_method_asynchronously): Ditto.
4477         This change makes C-h f display the argument list.
4479 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
4481         * fileio.c (Fexpand_file_name): Doc fix.
4483         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4484         of :foreground and :background equivalent to unspecified (20.x
4485         compatibility).
4487 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
4489         * buffer.c (syms_of_buffer): Doc fix.
4491 2008-10-14  Kenichi Handa  <handa@m17n.org>
4493         * font.c (font_clear_prop): When clearing font width, clear the
4494         average width field too.
4496 2008-10-12  Andreas Schwab  <schwab@suse.de>
4498         * ftfont.c (ftfont_shape_by_flt): Make static.
4499         * ftfont.h (ftfont_shape_by_flt): Don't declare.
4501         * font.c: Don't include <m17n-flt.h>.
4503 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
4505         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4507 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
4509         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4510         away code.
4512 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
4514         * dispnew.c (update_text_area): Avoid looping due to large glyph
4515         overhangs (bug#1070).
4517 2008-10-09  Kenichi Handa  <handa@m17n.org>
4519         * fontset.c (face_for_char): If face->fontset is negative, just
4520         return ascii_face.
4522         * font.c (font_delete_unmatched): Fix previous change.
4523         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
4525 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
4527         * frame.c (Fraise_frame): On text-only terminals select frame in
4528         order to make it visible.  (Bug#1061)
4530 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
4532         * fontset.c (fontset_find_font): Check frame validity.
4534 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
4536         * gtkutil.c (xg_display_open): Reset default display if none exists.
4537         (xg_display_close): Allow Emacs to close all displays (bug#985).
4539 2008-10-06  Andreas Schwab  <schwab@suse.de>
4541         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
4543 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
4545         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
4547         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
4549         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4550         during initialization.
4552 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
4554         * xdisp.c (redisplay_internal): If frame switched, redisplay the
4555         whole thing on MSDOS frames as well as on a TTY.
4557         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4558         well as for TTY.
4559         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4560         well as on a TTY.
4562         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4563         as well as for TTY.
4565         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4567         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4568         MSDOS frames as well.
4570 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
4572         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4573         correct arguments.
4574         * menu.c (find_and_return_menu_selection): Add cast.
4576 2008-10-03  Glenn Morris  <rgm@gnu.org>
4578         * emacs.c (USAGE1): Add --daemon.
4580 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
4582         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4583         100, so it's in percents as advertised.
4585 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
4587         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4588         (ns_output.current_cursor, ns_output.desired_cursor)
4589         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4590         (FRAME_NEW_CURSOR_COLOR): Remove.
4592         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
4593         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
4594         enumeration (HOLLOW_BOX_CURSOR, etc.).
4596         * nsterm.m (ns_frame_rehighlight): Remove commented code.
4597         (draw_window_cursor): Simplify code.
4598         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4599         Don't change cursor type.  In latter, call rehighlight instead of doing
4600         updates manually.
4601         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4602         Use core Emacs cursor types.
4604         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
4606 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
4608         * process.c (Faccept_process_output): Fix doc-string.
4610 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
4612         * gmalloc.c (__sbrk): Also define for uClibc.
4614         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4615         for uClibc.
4617 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
4619         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4620         styles.
4621         (nsfont_open): Reenable the cache.
4623 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
4625         * font.c (font_matching_entity): Reflect ATTRS in font selection.
4626         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4628 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
4630         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4631         a suspended terminal.
4633 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
4635         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4637 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
4639         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4641 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
4643         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4644         in a continued line coincides with a line beginning.
4646 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
4648         * nsfont.m (nsfont_trait_distance): Fix bug.
4649         (nsfont_list): Return a list rather than a vector (syncs with Handa
4650         changes of 2008-05-14).
4651         (nsfont_open): Improve logging.
4653 2008-09-29  Andreas Schwab  <schwab@suse.de>
4655         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4657 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
4659         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4660         name as char-resolve-modifiers.
4661         Reported by: Markus Triska <markus.triska@gmx.at>
4663 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
4665         * dispnew.c (init_display): Return earlier when running as a daemon.
4667 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
4669         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4671 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
4673         * composite.c (Fcomposition_get_gstring)
4674         (Fcompose_region_internal, Fcompose_string_internal)
4675         (Ffind_composition_internal): Doc fix.
4676         (syms_of_composite) <compose-chars-after-function>: Doc fix.
4677         (syms_of_composite) <auto-composition-function>: Doc fix.
4678         (syms_of_composite) <composition-function-table>: Doc fix.
4680 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
4682         * search.c (wordify): New argument for lax word-ends.
4683         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4685 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
4687         * lisp.h (is_daemon): Declare.
4688         * dispnew.c (init_display): Do not try to initialize the terminal
4689         when running as a daemon.
4691 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
4693         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4694         x_display_pixel_height.
4696 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
4698         * undo.c (record_point): Don't call Fundo_boundary for first
4699         change.  (Bug#731)
4701 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
4703         * emacs.c (Fdaemonp): Doc fix.
4705 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
4707         * emacs.c (main): Place #ifdef in the proper place.
4709 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
4711         * emacs.c (standard_args): Add --daemon.
4712         (main): Disconnect from the terminal when --daemon is passed.
4713         (is_daemon): New variable.
4714         (Fdaemonp): New function.
4715         (syms_of_emacs): Defsubr it.
4717 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
4719         * xdisp.c (get_next_display_element): Handle string display
4720         correctly when checking for the end of a box run.
4722 2008-09-20  Glenn Morris  <rgm@gnu.org>
4724         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4725         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4726         (Frename_file): Avoid copying to trash if a rename involves
4727         a delete.  (Bug#964).
4729 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
4731         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4732         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4733         frames as well as termcap frames.
4734         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4735         get_named_tty.
4737 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
4739         * process.c (procfs_system_process_attributes): Fix cmdline in
4740         case /proc/PID/cmdline is empty.
4742         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4743         x_display_pixel_height.
4745 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
4747         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4749         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4750         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4752 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
4754         * dispextern.h (struct it): Move line_wrap away from the middle of
4755         bitfields.  Move voffset in struct iterator_stack_entry after the
4756         bitfields.  Move tab_width near after another short.
4758 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
4760         * frame.h (struct frame): Move alpha from the middle of bitfields.
4762         * window.h (struct window): Move frozen_window_start_p after the
4763         rest of the bitfields to reduce padding.
4765 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
4767         * xterm.h (x_display_info): Remove `height' and `width' members.
4769         * nsterm.h (ns_display_info): Remove `height' and `width' members.
4771         * w32term.h (w32_display_info): Remove `height', `width',
4772         `height_in', and `width_in' members.
4774         * xterm.c (x_display_pixel_height, x_display_pixel_width):
4775         New functions.
4776         (x_calc_absolute_position): Use them.
4777         (x_term_init): Omit removed `height' and `width' members.
4779         * w32term.c (x_display_pixel_height, x_display_pixel_width):
4780         New functions.
4781         (w32_read_socket, x_calc_absolute_position): Use them.
4782         (w32_initialize_display_info, w32_term_init): Omit removed members
4783         of w32_display_info.
4785         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4786         New functions.
4787         (ns_initialize_display_info): Omit removed members of ns_display_info.
4789         * xterm.c (x_display_pixel_height, x_display_pixel_width):
4790         New functions.
4791         (x_calc_absolute_position): Use them.
4792         (x_term_init): Omit removed `height' and `width' members.
4794         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4795         (compute_tip_xy):
4796         * frame.c (x_fullscreen_adjust):
4797         * xmenu.c (menu_position_func): Use x_display_pixel_height and
4798         x_display_pixel_width.
4800 2008-09-18  Kenichi Handa  <handa@m17n.org>
4802         * composite.c (fill_gstring_header): Don't check FROM and TO here.
4803         (composition_compute_stop_pos): Fix handling of static composition.
4804         (Fcomposition_get_gstring): Check FROM and TO at first.
4806 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
4808         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
4809         mixup (YAILOM).
4811 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
4813         * indent.c (Fvertical_motion): Use position reported by iterator
4814         instead of PT for determining screen motion (bug#943).
4816 2008-09-17  Romain Francoise  <romain@orebokech.com>
4818         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4820 2008-09-17  Kenichi Handa  <handa@m17n.org>
4822         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4824         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4825         if necessary.
4827 2008-09-16  Kenichi Handa  <handa@m17n.org>
4829         * coding.c (make_conversion_work_buffer): Avoid calling
4830         Fget_buffer_create if it is not necessary.
4832 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
4834         * window.c (Fselect_window): Don't update window_select_count and
4835         use_time when norecord is not nil.
4837 2008-09-14  Kenichi Handa  <handa@m17n.org>
4839         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4840         specpdl_ptr.
4842 2008-09-12  Kenichi Handa  <handa@m17n.org>
4844         * indent.c (scan_for_column): Don't handle automatic composition
4845         if the current buffer is not associated with a window.
4847         * composite.c (composition_reseat_it): If the current buffer is
4848         not associated with a window, ignore the automatic composition.
4849         (find_automatic_composition): Likewise.
4851 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
4853         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4854         (Fgpm_mouse_stop): Use it.
4855         * termhooks.h (close_gpm): Declare.
4856         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4857         connection if Gpm_GetEvent fails.
4859         * window.c (set_window_buffer): Always preserve current-buffer.
4861 2008-09-12  Glenn Morris  <rgm@gnu.org>
4863         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
4865 2008-09-11  Glenn Morris  <rgm@gnu.org>
4867         * charset.c (charset-map-path): Doc fix.
4869 2008-09-10  Kenichi Handa  <handa@m17n.org>
4871         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4873         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4874         compose a grapheme cluster with the preceding base glyph.
4876         * composite.c (composition_compute_stop_pos): Fix previous change.
4877         Reset cmp_it->id to -1 at first.
4879 2008-09-10  Glenn Morris  <rgm@gnu.org>
4881         * Makefile.in (character.o, chartab.o): Fix config.h typo.
4883 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
4885         * keyboard.c (read_key_sequence): Reapply translation maps when
4886         switching keyboards.
4888 2008-09-09  Kenichi Handa  <handa@m17n.org>
4890         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4891         characters.
4893         * composite.c (FORWARD_CHAR): Fix calculation
4894         of (POSITION).pos_byte.
4895         (composition_compute_stop_pos): Limit the search of composition to
4896         at most 500 characters ahead.  If we reach the limit or find a
4897         newline, set cmp_it->ch to -2 and return 0.
4898         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4900 2008-09-08  Kenichi Handa  <handa@m17n.org>
4902         * indent.c (Fvertical_motion): Be sure to set
4903         it_overshoot_expected if it.cmp_it.id is non-negative.
4905 2008-09-07  Andreas Schwab  <schwab@suse.de>
4907         * callproc.c (Fcall_process): Don't hold references to string data
4908         across garbage collection.  Move initialisation of new_argv down
4909         to avoid compiler bug.
4911 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
4913         * process.c (Fsystem_process_attributes): Doc fix.
4915 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
4917         * callproc.c (Fcall_process): Canonicalize current directory name.
4919         * xdisp.c (move_it_to): When moving by vpos, ensure that the
4920         iterator advances to the next line if the current line ends in a
4921         continued tab.
4923 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
4925         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4926         member to point to cmp_from.
4928         * xdisp.c: Doc fix for references to gidx data member.
4930 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
4932         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4934 2008-09-07  Kenichi Handa  <handa@m17n.org>
4936         * composite.c (FORWARD_CHAR): Check STOP after
4937         incrementing (POSITION).pos.
4939 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
4941         * process.c (Fsystem_process_attributes): Doc fix.
4943 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
4945         * keyboard.c (Ftop_level): Doc fix.
4947 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
4949         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4950         minibuffer, don't let lower part of menu invade the echo area.
4952         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4953         "char *q" to access menu text and advance through it.  Revert the
4954         change that displayed ">" instead of ASCII character 0x10.
4956 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
4958         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4959         toggle boxes and radio buttons on MS-DOS as well.
4961 2008-09-05  Kenichi Handa  <handa@m17n.org>
4963         * composite.c (autocmp_chars): Check lookback count.
4964         (composition_compute_stop_pos): Set cmp_it->lookback.
4965         (composition_reseat_it): Check lookback count.
4966         (struct position_record): New struct.
4967         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4968         (find_automatic_composition): New function.
4969         (composition_adjust_point): Use find_automatic_composition.
4971         * dispextern.h (struct composition_it): New member lookback.
4973 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
4975         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4976         if moving by a single line.
4978 2008-09-02  Andreas Schwab  <schwab@suse.de>
4980         * xterm.c (x_delete_display): Fix merge error.
4982         * fileio.c (Fexpand_file_name): Remove unused variables.
4984 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
4986         * fileio.c (Fexpand_file_name): Copy argument `name' into local
4987         storage on all platforms, not just on DOS_NT.
4989 2008-09-02  Jason Rumney  <jasonr@gnu.org>
4991         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4992         Ensure mouse is not grabbed after menu is finished.
4994 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
4996         * xfaces.c (Finternal_set_alternative_font_family_alist)
4997         (Finternal_set_alternative_font_registry_alist): Properly copy
4998         entire alist structure.
5000 2008-09-01  Kenichi Handa  <handa@m17n.org>
5002         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5003         representative chars of the script is a vector.
5004         (ftfont_list): Handle the case where the representative chars of
5005         the script is a vector.
5007         * character.c (syms_of_character): Docstring of
5008         script-representative-chars fixed.
5010 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
5012         * msdos.c (BUILD_CHAR_GLYPH): New macro.
5013         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5014         the menu.  Allocate larger buffer for `text', to account for
5015         possible ^C characters.
5017 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
5019         * xdisp.c (prepare_menu_bars): Don't call
5020         Vwindow_size_change_functions with arg Qt.
5022 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
5024         * font.h (font_range):
5025         * fileio.c (report_file_error):
5026         * composite.c (composition_update_it): Yet another int/Lisp_Object
5027         mixup (YAILOM).
5029 2008-08-30  Glenn Morris  <rgm@gnu.org>
5031         * data.c (Fmake_variable_frame_local): Doc fix.
5033         * frame.c (Fmodify_frame_parameters): Doc fix.
5035 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
5037         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5038         needed by GetTokenInformation.
5039         (w32_system_process_attributes): Check return values of all system
5040         APIs.
5042         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5043         only when the state changes.
5044         (IT_update_begin, IT_update_end): Add termscript trace.
5046         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5047         clipboard is unavailable.  Set dst to NULL if it doesn't point to
5048         malloc'ed data.
5049         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5050         passing random values to xfree.
5052         * dispnew.c (init_display): Set `tty's association in frame's
5053         parameters alist to the name of the terminal device, if that is known.
5055 2008-08-29  Jason Rumney  <jasonr@gnu.org>
5057         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5059 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
5061         * composite.c (fill_gstring_body): Avoid compiler warnings.
5063         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5064         LGLYPH_SET_CODE to avoid compiler warnings.
5066         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5068         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5070         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5071         LGLYPH_SET_CODE.
5073 2008-08-29  Kenichi Handa  <handa@m17n.org>
5075         * fileio.c (report_file_error): Don't downcase the first character
5076         of errstring if it is still unibyte.
5078 2008-08-29  Kenichi Handa  <handa@m17n.org>
5080         These changes are to re-implement the automatic composition so
5081         that it doesn't use text properties.
5083         * Makefile.in (ftfont.o): Depend on composite.h.
5084         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5086         * character.h (Vunicode_category_table): Extern it.
5088         * character.c (Vunicode_category_table): New variable.
5089         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5091         * chartab.c (optimize_sub_char_table): Perform more greedy
5092         optimization.
5094         * composite.h (enum composition_method):
5095         Delete COMPOSITION_WITH_GLYPH_STRING.
5096         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5097         (Vcomposition_function_table): Extern it.
5098         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5099         (composition_gstring_put_cache, composition_gstring_from_id)
5100         (composition_gstring_p, composition_gstring_width)
5101         (composition_compute_stop_pos, composition_reseat_it)
5102         (composition_update_it, composition_adjust_point): Extern them.
5103         (Fcomposition_get_gstring): EXFUN it.
5105         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5106         (Vcomposition_function_table)
5107         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5108         (gstring_hash_table, gstring_work, gstring_work_headers):
5109         New variables.
5110         (gstring_lookup_cache, composition_gstring_put_cache)
5111         (composition_gstring_from_id, composition_gstring_p)
5112         (composition_gstring_width, fill_gstring_header)
5113         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5114         (composition_reseat_it, composition_update_it)
5115         (composition_adjust_point, Fcomposition_get_gstring): New functions.
5116         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5117         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
5118         Defsubr compostion_get_gstring.
5120         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
5121         cmp_id.
5122         (struct glyph_string): Delete the member gidx.  New members
5123         cmp_id, cmp_from, and cmp_to.
5124         (enum it_method): Delete GET_FROM_COMPOSITION.
5125         (struct composition_it): New struct.
5126         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5127         Delete c, len, cmp_id, cmp_len in u.comp.
5129         * font.h (enum lgstring_indices): Delete it.
5130         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5131         (enum lglyph_indices): Likewise.
5132         (font_range): Adjust extern.
5133         (font_fill_lglyph_metrics): Extern it.
5135         * font.c (QCf): New variable.
5136         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5137         (font_prepare_composition): Delete this function.
5138         (font_range): Type and arguments changed.
5139         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5140         (font_fill_lglyph_metrics): New function.
5141         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5142         (syms_of_font): DEFSYM QCf.  Delete defsubr for
5143         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5144         Defsubr Sfont_shape_gstring.
5146         * fontset.h (font_for_char): Extern it.
5148         * fontset.c (font_for_char): New function.
5150         * ftfont.c: Include composite.h.
5151         (ftfont_resolve_generic_family): Add langset "en" to pattern.
5152         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5154         * indent.c: Include composite.h and dispextern.h.
5155         (check_composition): Delete this function.
5156         (scan_for_column): Handle composition by
5157         composition_compute_stop_pos, composition_reseat_it, and
5158         composition_update_it.
5159         (compute_motion): Likewise.
5160         (Fvertical_motion): Fix checking of composition.
5162         * keyboard.c (adjust_point_for_property): Check composition by
5163         composition_adjust_point.
5165         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5166         struct glyph_string.
5168         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5169         (append_composite_glyph): Adjust for the change of struct it and
5170         struct glyph.
5171         (produce_composite_glyph): Likewise.
5173         * w32term.c (x_draw_composite_glyph_string_foreground):
5174         Adjust for the change of struct glyph_string.
5175         (x_draw_glyph_string): Likewise.
5177         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5178         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5180         * xdisp.c: Include font.h.
5181         (it_props): Delete the entry for Qauto_composed.
5182         (init_iterator): Initialize it->cmp_it.id to -1.
5183         (compute_stop_pos): Call composition_compute_stop_pos.
5184         (face_before_or_after_it_pos): Adjust for the change of struct it.
5185         (handle_auto_composed_prop): Delete it.
5186         (handle_composition_prop): Handle only static composition.
5187         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5188         from xassert.  Initialize it->cmp_it.stop_pos.
5189         (push_it): Adjust for the change of struct it.
5190         (pop_it): Likewise.
5191         (get_next_element): Delete next_element_from_composition.
5192         (CHAR_COMPOSED_P): New macro.
5193         (get_next_display_element): For automatic composition, get a face
5194         from the font in the glyph-string.
5195         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5196         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
5197         (next_element_from_string): Check if the character at the current
5198         position is composed by CHAR_COMPOSED_P.
5199         (next_element_from_buffer): Likewise.
5200         (next_element_from_composition): Adjust for the change of struct it.
5201         Update it->cmp_it.
5202         (dump_glyph): Adjust for the change of struct glyph.
5203         (fill_composite_glyph_string): Adjust for the change of struct
5204         it and struct glyph.  Don't handle automatic composition here.
5205         (fill_gstring_glyph_string): New function.
5206         (x_get_glyph_overhangs): Handle automatic composition.
5207         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5208         (BUILD_GSTRING_GLYPH_STRING): New macro.
5209         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5210         automatic composition.
5211         (append_composite_glyph): Adjust for the change of struct it and
5212         struct glyph.
5213         (x_produce_glyphs): Adjust for the change of struct it.
5215         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5216         the change of struct glyph_string.
5217         (x_draw_glyph_string): Likewise.
5219 2008-08-29  Glenn Morris  <rgm@gnu.org>
5221         * buffer.c (word-wrap): Doc fix.
5222         * xdisp.c (truncate-partial-width-windows): Doc fix.
5223         Increase default to 50.
5225 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
5227         * xdisp.c (update_tool_bar_unwind): New function.
5228         (update_tool_bar): Temporarily set selected frame before building
5229         tool-bar items.
5231 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
5233         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5234         snprintf, respectively.
5235         (xd_append_arg): Convert strings with Fstring_make_unibyte.
5237 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
5239         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5240         LDFLAGS to GNUstep CC invocation.
5242 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
5244         * indent.c (Fvertical_motion): Revert last change.  Handle the
5245         general case where we are moving forward, and PT spans multiple
5246         screen lines.
5248         * eval.c (find_handler_clause): Temporarily increase
5249         max-lisp-eval-depth while printing the backtrace buffer, to
5250         guarantee that help-mode code can run.
5252 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
5254         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5255         colors under -rv.
5256         (IT_set_frame_parameters): Don't swap foreground and background
5257         colors if `(reverse . t)' is present in the frame properties.
5258         (internal_terminal_init): Call init_frame_faces only for the
5259         initial frame.
5261 2008-08-27  Andreas Schwab  <schwab@suse.de>
5263         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5265 2008-08-27  Andreas Schwab  <schwab@suse.de>
5267         * search.c (search_buffer): Set char_base to zero only at the end.
5269 2008-08-27  Kenichi Handa  <handa@m17n.org>
5271         * fileio.c (report_file_error): Fix handling of multibyte error string.
5273 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
5275         * xterm.c (x_term_init): Temporarily hide the partially
5276         initialized terminal while calling vendor-specific-keysyms.
5278 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
5280         * msdos.c (internal_terminal_init): Most initializations done only
5281         once, especially initial_screen_colors[] and termscript open.
5283 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
5285         * eval.c (Fcondition_case): Doc fix.
5287         * widgetprv.h (EmacsFramePart): Change font member to the new font
5288         struct.
5290         * widget.c: Include character.h and font.h for XSETFONT.
5291         (setup_frame_gcs): Compute X font id from font struct, just once.
5293 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
5295         * term.c (get_named_tty): Fix last change.
5297 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
5299         * indent.c (Fvertical_motion): If moving forward starting from a
5300         multi-line string, move the iterator to the last line of that string.
5302 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
5304         * frame.c (do_switch_frame): Mark previously displayed frame as
5305         obscured for FRAME_MSDOS_P frames as well.
5307 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
5309         * frame.c (make_terminal_frame): Initialize f->terminal,
5310         f->terminal->reference_count, and scroll bars on MS-DOS as well.
5311         Set the top frame to newly created frame.
5312         (Fmake_terminal_frame): Reuse the_only_display_info.
5314         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5315         estimating available memory.
5317 2008-08-23  David Reitter  <david.reitter@gmail.com>
5319         * nsterm.m (ns_draw_window_cursor): Don't call
5320         NSDisableScreenUpdates and NSEnableScreenUpdates on
5321         non-NS_IMPL_COCOA systems.
5323 2008-08-23  Andreas Schwab  <schwab@suse.de>
5325         * process.c (procfs_system_process_attributes): Fix use of
5326         uninitialized variables.
5328 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
5330         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5332         * dispnew.c (init_display): Remove MS-DOS specific conditions for
5333         calling tty-set-up-initial-frame-faces.
5335         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5336         Allow MSDOS frames along with X frames.
5338         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5339         addition to output_termcap.
5341         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5343         * termchar.h (FRAME_TTY): Support output_msdos_raw.
5344         (struct tty_display_info) [MSDOS]: Add fields related to mouse
5345         highlight.
5347         * process.c [!subprocesses]: Define QCname.
5348         (syms_of_process): Intern and staticpro it.
5350         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5351         Adjust for changes in encoding/decoding routines.
5352         Use encode_coding_object and decode_coding_object instead of
5353         encode_coding and decode_coding.
5355         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
5357         * dosfns.c: Include frame.h before termhooks.h.
5358         (dos_cleanup): Use CURTTY ()->termscript instead of a global
5359         variable termscript.
5361         * s/msdos.h (USER_FULL_NAME): Define.
5362         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5364         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5365         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5366         pw->pw_gecos.
5368         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5369         SELECTED_FRAME as additional (1st) argument.
5370         (tty_read_avail_input): Handle output_msdos_raw in
5371         addition to output_termcap.
5373         * msdos.c: Include frame.h before termhooks.h.
5374         (mouse_on, mouse_off, mouse_moveto, mouse_init)
5375         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5376         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5377         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5378         (IT_set_terminal_modes, IT_reset_terminal_modes)
5379         (IT_set_frame_parameters): Use tty->termscript instead of a global
5380         variable termscript.
5381         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5382         global variable terminal_coding.  Don't refer to
5383         Vnonascii_translation_table.
5384         (internal_terminal_init): Set Vwindow_system in current_kboard.
5385         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
5386         Announce date and time of session start, if termscript is open.
5387         Don't zero out the_only_display_info (it is done in
5388         term.c:init_tty).  Open termscript only of not already open.
5389         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
5390         here instead of dos_ttraw.  Don't initialize display if this is an
5391         initial tty.  Don't set FRAME_FONT.
5392         (Vwindow_system_version): Bump to 23.
5393         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
5394         is available, set up mouse_position_hook.
5395         (dos_ttraw, IT_set_terminal_modes): If called with initial
5396         terminal, do nothing.
5397         (IT_set_frame_parameters): Handle the Qtty_type frame
5398         parameter by calling internal_terminal_init.
5399         (dos_set_window_size, show_mouse_face)
5400         (clear_mouse_face, IT_note_mode_line_highlight)
5401         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5402         (dos_rawgetc): Use tty_display_info instead of x_display_info.
5403         (initialize_msdos_display): New function.
5404         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5405         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5406         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5407         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
5408         Accept additional argument: a pointer to a frame.  Update all callers.
5409         (request_sigio, unrequest_sigio): Don't define, now defined on
5410         sysdep.c.
5411         (IT_write_glyphs): Rewrite to use encode_terminal_code.
5413         * term.c [MSDOS]: Include msdos.h.
5414         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
5415         conditional to DOS_NT.  Allow only one call to this function in a
5416         session.  Don't allocate a new struct tty_display_info; instead,
5417         reuse the_only_display_info.  Call get_tty_size to get screen
5418         dimensions.  Call init_baud_rate to set bad_rate.
5419         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5420         (Fsuspend_tty) [MSDOS]: Don't close input and output.
5421         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
5422         (get_tty_terminal, get_named_tty, Ftty_type)
5423         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5424         output_termcap.
5425         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5426         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
5427         only when subprocesses are supported.
5429         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5430         f->output_data.x.
5431         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5432         terminal devices.
5434         * msdos.h: Remove definition of struct x_display_info and struct
5435         x_output.
5436         (FRAME_FONT): Use output_data.tty.
5437         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
5438         (struct x_display_info): Rename from display_info.  Update all users in
5439         msdos.c.
5440         (struct x_output): Remove background_pixel and foreground_pixel.
5441         (the_only_display_info): Rename from the_only_x_display.
5442         (dos_ttraw): Update prototype.
5444         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5445         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5447 2008-08-23  Jason Rumney  <jasonr@gnu.org>
5449         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5450         (fn_TIFFSetDirectory): New library function used.
5451         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5452         (tiff_load): Use :index to select among multiple images.  Set count
5453         property when multiple images exist.
5454         (gif_format): Use :index, not :image.
5456 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
5458         * xdisp.c (try_scrolling): Check INT_MAX instead of
5459         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
5460         to obtain INT_MAX.
5462 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
5464         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5466 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
5468         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5469         GNUstep library location.
5471 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
5473         * xfaces.c (x_update_menu_appearance): Check validity of menu font
5474         before using it.
5476         * puresize.h (BASE_PURESIZE): Increase to 1250000.
5478 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
5480         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5481         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5482         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5483         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5484         (EmacsApp-cursor_blink_handler): Remove declaration.
5485         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5486         match 01 Feb 2008 changes in xterm.c.
5487         (ns_read_socket): Add cast to avoid warning.
5488         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5489         GNUstep.
5491 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
5493         * xselect.c (x_get_foreign_selection): Return nil if desired
5494         selection could not be obtained, instead of signalling an error.
5496 2008-08-20  David Reitter  <david.reitter@gmail.com>
5498         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5499         * nsterm.m: Remove ns-specific code for cursor blinking.
5500         (ns_draw_window_cursor): Clear cursor properly rather than
5501         redrawing the area.  Respect width of bar cursors.
5502         These changes enable the use of generic blink-cursor-mode and
5503         generic cursor types in NS and support smooth cursor movements (do
5504         not blink off after command).
5505         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5506         Nextstep, too.
5508 2008-08-19  Kenichi Handa  <handa@m17n.org>
5510         * font.c (Vfont_log_deferred): New variable.
5511         (font_add_log): Check Vfont_log_deferred.
5512         (font_deferred_log): New function.
5514         * font.h (font_deferred_log): Extern it.
5516         * fontset.c (reorder_font_vector): Use encoding charset of fonts
5517         for sorting.
5518         (face_for_char): Use deferred log.
5520 2008-08-18  Kenichi Handa  <handa@m17n.org>
5522         * fontset.c (face_for_char): Add font log.
5524         * font.c (font_add_log): Add the font properties :script, :lang,
5525         and :otf in the log.
5527 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
5529         * xdisp.c: Remove dead code.
5530         (handle_invisible_prop, next_overlay_string): Defer call to
5531         setup_for_ellipsis.
5532         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5534 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
5536         * xfaces.c (lookup_derived_face): Properly handle possible zero
5537         return value of get_lface_attributes.
5538         (merge_faces): Don't tell lookup_derived_face to signal an error
5539         if face is not found.
5541         * dired.c (Fdirectory_files): Doc fix.
5543         * process.c (make_process): Initialize kill_without_query struct
5544         member.
5546 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
5548         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5549         Alternative calculation of totphys for Visual Studio 6.
5551         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5553         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5554         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5555         All users changed.
5556         (stat): Only root directory passed to GetDriveType.  Allow RAM
5557         disk as well as local fixed disk when w32-get-true-file-attributes
5558         is set to `local'.
5559         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5560         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5561         (w32_cached_id, w32_add_to_cache): New functions.
5562         (get_name_and_id): Look account names in the cache before calling
5563         lookup_account_sid.
5564         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5565         New initialization flags.
5566         (globals_of_w32): Initialize them to zero.
5567         (w32_system_process_attributes): Use w32_cached_id and
5568         w32_add_to_cache.
5570 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
5572         * lread.c (Fread_char, Fread_char_exclusive): If no character
5573         event is read before timeout is reached, return nil, rather than
5574         converting to a number.
5576 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
5578         * fns.c (use_dialog_box): Doc fix.
5580         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5581         on OS X.
5583 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
5585         * frame.c (Qns_parse_geometry): New var.
5586         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5588 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
5590         * xdisp.c (x_produce_glyphs): Handle the case when font has no
5591         space character in calculating tabs.
5593 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
5595         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5597 2008-08-10  Glenn Morris  <rgm@gnu.org>
5599         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5600         silence gcc "limited range of data type" warnings in some
5601         make_fixnum_or_float calls.
5603 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
5605         * w32.c (w32_system_process_attributes): If the process does not
5606         exist, return nil.
5608         * w32.c: Include thelp32.h, psapi.h and coding.h.
5609         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5610         declarations.
5611         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5612         (Process32Next_Proc): New typedefs.
5613         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5614         (g_b_init_process32_next, g_b_init_open_thread_token)
5615         (g_b_init_impersonate_self, g_b_init_revert_to_self)
5616         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5617         (g_b_init_get_process_working_set_size)
5618         (g_b_init_global_memory_status_ex): New static variables.
5619         (globals_of_w32): Initialize them.
5620         (create_toolhelp32_snapshot, process32_first, process32_next)
5621         (open_thread_token, impersonate_self, revert_to_self)
5622         (get_process_memory_info, get_process_working_set_size)
5623         (global_memory_status, global_memory_status_ex): New wrapper
5624         functions.
5625         (w32_list_system_processes, w32_system_process_attributes)
5626         (enable_privilege, restore_privilege, ltime, process_times):
5627         New functions.
5628         (convert_time_raw): New function.
5629         (convert_time): Remove conversion of FILETIME into time in 100
5630         nsec units, call convert_time_raw instead.
5632         * process.h (w32_list_system_processes, w32_system_process_attributes):
5633         Add prototypes.
5634         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5635         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5636         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5637         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5639         * process.c (Fsystem_process_attributes): Doc fix.
5641 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
5643         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5644         a continued multi-char glyph; if so, advance to the actual glyph.
5646 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
5648         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5650         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5651         (.m.o): Use it.
5652         * config.in: Regenerate.
5654 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
5656         * xdisp.c (redisplay_window): Revert last change.
5657         (try_window): Check bottom scroll margin too.
5659 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
5661         * config.in: Regenerate.
5663         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5664         -list-load-path-shadows'.
5665         (nsgui.h): Reduce number of things depending on it.
5667 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
5669         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5670         instead of window-end which does the wrong thing at eob.
5671         (try_cursor_movement): Minor optimization.
5672         (redisplay_window): If scroll margin is defined, don't assume
5673         window doesn't need scrolling.
5675 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
5677         * config.in: Regenerate.
5679         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5680         (mostlyclean): Don't delete *.d under NS.
5682         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5684 2008-08-06  Kenichi Handa  <handa@m17n.org>
5686         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5688 2008-08-06  Andreas Schwab  <schwab@suse.de>
5690         * config.in: Regenerate.
5692 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
5694         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5695         forcing a window start.
5697         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5698         (auto_save_1): Update modtime when auto-save-list-file-name is on.
5700 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
5702         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5703         argument.
5705 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
5707         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5708         <scroll-down-aggressively, before-change-functions>:
5709         <after-change-functions>: Reflow docstrings.
5711 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
5712             Ken Raeburn  <raeburn@gnu.org>
5714         Dock menu customization, based on a patch by Ken Raeburn, plus some
5715         other fixes.
5716         * nsmenu.m (dockMenu): New variable.
5717         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5719         * nsterm.h (dockMenu): Declare.
5721         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5722         (ns_term_init): Initialize dockMenu.
5723         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5724         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5725         left.
5727         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5729 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
5731         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5733         * config.in: Regenerate.
5735 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
5737         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5739 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
5741         * nsterm.h (find_and_call_menu_selection): Fix prototype.
5743 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
5745         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5747         * keyboard.h: Comment an #endif.
5749         * lisp.h (have_menus_p): Adjust comment.
5751         * menu.c (find_and_return_menu_selection): Fix comparison with
5752         client_data.
5754         * nsmenu.m (popup_activated_flag): New variable.
5755         (popup_activated): New function.
5756         (menu-or-popup-active-p): New exported lisp definition.
5757         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
5758         when popup done.
5759         (ns_popup_dialog): Set popup_activated_flag.
5761         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5762         version for GNUstep (handled by conditional typedef in nsterm.m).
5763         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5764         in rgb.txt).
5766         * process.c (init_process): Use DARWIN_OS, not DARWIN.
5768         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5770         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5772         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5773         shortcircuit if popup_activated like GTK and X toolkit.
5775         * m/inter386.h: Change DARWIN to DARWIN_OS.
5777         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
5778         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
5779         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.  Expand
5780         comment on NO_SOCK_SIGIO.
5782 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
5784         * nsterm.m (windowDidResize): Remove stopModal call.
5786 2008-08-03  Andreas Schwab  <schwab@suse.de>
5788         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5789         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5791 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
5793         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5794         Don't use uninitialized pointer variable when using getrlimit.
5796 2008-08-02  Jason Rumney  <jasonr@gnu.org>
5798         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5800 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
5802         * alloc.c (NSTATICS): Bump to 0x640.
5804         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5806         * lisp.h: Add prototype for directory_files_internal.
5808         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5809         New functions.
5810         (syms_of_process): Defsubr them.  Add initializations for various
5811         Q* symbols used in procfs_system_process_attributes.
5812         (procfs_list_system_processes, procfs_system_process_attributes)
5813         [HAVE_PROCFS]: New functions.
5814         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5815         (procfs_get_total_memory): New functions.
5817 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
5819         * xfaces.c (Fx_load_color_file): Fix previous change;
5820         it is #ifdef WINDOWSNT, not WINDOWS_NT.
5822 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
5824         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5826 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
5828         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5830 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
5832         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5834         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5835         define NSApplicationDelegateReplySuccess.
5836         (EmacsView -converstationIdentifier): Use long instead of
5837         NSInteger for GNUstep, since it doesn't have NSInteger.
5839         * xmenu.c: Revert last change.
5841         * keyboard.h: Fix last change.
5843 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
5845         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5846         on Windows.
5848 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
5850         Warning clearing and clean-up in NS port.
5851         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5852         Add prototypes.
5853         * nsgui.h (FACE_DEFAULT): Remove, unused.
5854         (XGCValues): Change colors to unsigned long.
5855         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5856         nsterm.m.
5857         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5858         (ns_list_fonts): Remove, unused.
5859         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5860         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5861         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5862         (nsfont_draw): Compare face colors to 0, not nil.
5863         * nsmenu.m (struct widget_value): Drop unneeded declaration.
5864         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5865         (-addSubmenuWithTitle:): Use NSMenuItem class.
5866         (ns_popup_menu): Use NO, not NULL, for enabled setting.
5867         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5868         (ns_clip_to_row): Make gc arg a BOOL.
5869         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5870         ns_clip_to_row() call.
5871         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5872         used).  Cast FRAME_FONT assignments.
5873         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5874         (ns_string_to_lispmod): Change arg to const char.
5875         (ns_term_init): Use NSMenuItem class.
5876         (EmacsApp -openFile:): Move to different section of file.
5877         (EmacsApp -application:openFiles:): Don't return a value, call
5878         -replyToOpenOrPrint:.
5879         (EmacsView -keyDown:): Fix up cast.
5880         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5881         (EmacsView -menuDown:): Cast tag in call to
5882         find_and_call_menu_selection().
5883         (ns_list_fonts): Remove, unused.
5884         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
5885         (ns_fontname_to_xlfd): Make static.
5886         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5887         Remove prototypes (now in keyboard.h).
5888         (next_menubar_widget_id): Remove, unused.
5889         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5890         Remove prototypes (now in keyboard.h).
5891         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5893 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
5895         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5896         (floatfns.o): Depend on syssignal.h.
5897         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5899         * systty.h: Fix previous change that removed BSD_TERMIOS.
5900         Add comments to #ifdefs.
5902 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
5904         * w32fns.c (w32-load-color-file): Remove.
5905         (x-open-connection): Use renamed Fx_load_color_file.
5906         * xfaces.c (x-load-color-file): Add.
5907         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5908         Emacs.clr.
5909         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5911 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
5913         * dbusbind.c (Fdbus_call_method_asynchronously)
5914         (Fdbus_method_error_internal): New defuns.
5915         (xd_read_message): Handle also reply messages.
5916         (Vdbus_registered_functions_table): Extend docstring.
5918 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
5920         * keyboard.c (gobble_input): Fix previous change.
5922 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
5924         * bitmaps/README:
5925         * xfns.c:
5926         * termcap.c:
5927         * term.c:
5928         * syswait.h:
5929         * systty.h:
5930         * systime.h:
5931         * syssignal.h:
5932         * sysdep.c:
5933         * process.h:
5934         * process.c:
5935         * print.c:
5936         * ndir.h:
5937         * lread.c:
5938         * keyboard.c:
5939         * getpagesize.h:
5940         * floatfns.c:
5941         * fileio.c:
5942         * emacs.c:
5943         * doc.c:
5944         * dispnew.c:
5945         * dired.c:
5946         * data.c:
5947         * callproc.c:
5948         * buffer.c:
5949         * README:
5950         * Makefile.in:
5951         * s/template.h:
5952         * s/msdos.h:
5953         * m/vax.h: Remove VMS support.
5954         * s/vms.h:
5955         * vlimit.h:
5956         * uaf.h:
5957         * temacs.opt:
5958         * param.h:
5959         * ioctl.h: Remove file.
5961 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
5963         * s/ms-w32.h (MULTI_KBOARD): Remove.
5964         * xterm.c:
5965         * xselect.c:
5966         * xfns.c:
5967         * window.c:
5968         * w32term.c:
5969         * w32fns.c:
5970         * terminal.c:
5971         * termhooks.h:
5972         * term.c:
5973         * sysdep.c:
5974         * keyboard.h:
5975         * keyboard.c:
5976         * frame.h:
5977         * frame.c:
5978         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5979         * config.in: Regenerate.
5981 2008-07-30  Jason Rumney  <jasonr@gnu.org>
5983         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5985         * w32font.c (w32font_encode_char): Leave as unicode if in range.
5986         (w32font_open_internal): Get unicode version of textmetrics.
5987         Don't enable or disable glyph indices here.
5988         (w32font_open): Disable use of glyph indices.
5990         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5992 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
5994         * minibuf.c (Vread_buffer_function): Doc fix.
5996 2008-07-30  John Paul Wallington  <jpw@pobox.com>
5998         * minibuf.c (read_buffer_completion_ignore_case): New var.
5999         (Fread_buffer): Use it.
6001 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
6003         * systty.h (sensemode): Remove empty #if.  Remove reference to
6004         BSD_TERMIOS, unused.
6006         * sysdep.c: Remove reference to DGUX.
6007         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6009         * config.in: Regenerate.
6011 2008-07-30  Jason Rumney  <jasonr@gnu.org>
6013         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6015 2008-07-29  Jason Rumney  <jasonr@gnu.org>
6017         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6018         is populated.
6019         (uniscribe_encode_char): Always use uniscribe.
6020         Avoid using context if cache is populated.
6022 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
6024         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6025         open menu.
6027         * gtkutil.c (menu_nav_ended): Remove.
6028         (create_menus): Remove signal connect for menu_nav_ended.
6030 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
6032         * xdisp.c (redisplay_window): Check return value of
6033         compute_window_start_on_continuation_line before forcing a window
6034         start.
6036 2008-07-28  Jason Rumney  <jasonr@gnu.org>
6038         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6040         * w32term.c (w32_enable_unicode_output, cleartype_active):
6041         Remove obsolete display options.
6042         (x_draw_glyph_string_background): Don't use old cleartype_active
6043         workaround.
6044         (w32_initialize): Remove cleartype_active initialization.
6045         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6047 2008-07-28  Andreas Schwab  <schwab@suse.de>
6049         * lisp.h (init_weak_hash_tables, syms_of_font)
6050         (xd_read_queued_messages, syms_of_dbusbind): Declare.
6051         (remove_hash_entry): Don't declare.
6052         * eval.c (maybe_call_debugger): Make static and move before use.
6053         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6054         * xdisp.c: Include "gtkutil.h" if USE_GTK.
6055         * xterm.h (x_set_frame_alpha): Declare.
6057 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
6059         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6060         (create_menus): Connect selection-done to menu_nav_ended.
6062 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
6064         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6065         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
6066         parameter with read of 'alpha' one.
6067         (Qns_frame_parameter): Remove.
6068         * nsselect.m (selection-coding-system)
6069         (next-selection-coding-system, Vselection_coding_system)
6070         (Vnext_selection_coding_system): Drop.
6072 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
6074         * nsfns.m (do-applescript, do_applescript): Rename to
6075         ns-do-applescript, ns_do_applescript, and move within file.
6077 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
6079         Remove support for Mac Carbon.
6080         * mactoolbox.c:
6081         * macterm.h:
6082         * macterm.c:
6083         * macselect.c:
6084         * macmenu.c:
6085         * macgui.h:
6086         * macfns.c:
6087         * mac.c: Remove file.
6088         * s/darwin.h:
6089         * m/intel386.h:
6090         * xfaces.c:
6091         * xdisp.c:
6092         * window.c:
6093         * tparam.c:
6094         * termhooks.h:
6095         * termcap.c:
6096         * term.c:
6097         * syssignal.h:
6098         * sysselect.h:
6099         * sysdep.c:
6100         * process.c:
6101         * lread.c:
6102         * lisp.h:
6103         * keyboard.c:
6104         * image.c:
6105         * fringe.c:
6106         * frame.h:
6107         * frame.c:
6108         * fontset.c:
6109         * font.h:
6110         * font.c:
6111         * fns.c:
6112         * fileio.c:
6113         * emacs.c:
6114         * dispnew.c:
6115         * dispextern.h:
6116         * config.in:
6117         * atimer.c:
6118         * Makefile.in: Remove code for Carbon.
6120 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6122         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6124 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6126         * macterm.h (kCGBitmapByteOrder32Host): New define for
6127         non-universal SDKs.
6129         * image.c (mac_create_cg_image_from_image, image_load_image_io)
6130         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6132         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6133         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6135 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
6137         * w32inevt.c: Include dispextern.h.
6139 2008-07-26  Andreas Schwab  <schwab@suse.de>
6141         * print.c (print_object): Fix off-by-one in last change.
6143 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
6145         * term.c (syms_of_term): Don't initialize default_orig_pair,
6146         default_set_foreground and default_set_background on Windows.
6148 2008-07-25  Jason Rumney  <jasonr@gnu.org>
6150         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6151         ScriptItemize.  Clean up return value checking.  Remove unused
6152         variables.
6153         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6154         shaping engine.
6156         * w32font.c (w32font_has_char): Handle the case where we can't
6157         determine the script for a character.
6159 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6161         * term.c (syms_of_term): Initialize default_orig_pair,
6162         default_set_foreground, and default_set_background.
6164         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6165         clash (bug#86).
6166         (getloadavg): Callers changed.
6168         * image.c (svg_load_image): Fix last change.
6169         (svg_load_image): Use rsvg_handle_get_dimensions to check that
6170         image size is valid.  Use g_object_unref instead of deprecated
6171         rsvg_handle_free to free rsvg handle.
6172         (x_from_xcolors): Don't initialize pixmap (silence compiler).
6174 2008-07-25  Jason Rumney  <jasonr@gnu.org>
6176         * w32font.c (w32font_encode_char): Encode characters outside BMP as
6177         surrogates before looking up glyph index.
6178         (w32font_text_extents): Encode as surrogates if falling back to
6179         functions that need UTF-16 wide chars.
6181         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6182         BMP as surrogates before looking up glyph index.
6184 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6186         * image.c (svg_load_image): Check for failure in return value of
6187         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
6189 2008-07-25  Jason Rumney  <jasonr@gnu.org>
6191         * w32font.c (Fx_select_font): Reverse sense of second arg.
6193 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
6195         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6196         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6198         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6199         (PURESIZE): Use it.
6201 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
6203         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6204         * m/alpha.h (TEXT_END):
6205         * m/ibmrs6000.h (TEXT_END):
6206         * m/macppc.h (TEXT_END):
6207         * s/darwin.h (TEXT_END):
6208         * s/msdos.h (TEXT_END): Remove, unused.
6209         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6210         * s/cygwin.h: Remove comment.
6212         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6213         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6214         * m/intel386.h (DOT_GLOBAL_START):
6215         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6216         (USG): Remove, file not used on USG platforms.
6218         * Makefile.in (HAVE_X11): Remove empty #else.
6220 2008-07-24  Andreas Schwab  <schwab@suse.de>
6222         * fileio.c (Finsert_file_contents): Properly adjust undo list
6223         after format conversion.
6225 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
6227         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6228         (menu_nav_ended): Remove.
6229         (create_menus): Remove signal connect for menu_nav_ended.
6230         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6231         create_menus.
6232         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6234 2008-07-23  Jason Rumney  <jasonr@gnu.org>
6236         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6237         with opened font.
6238         (w32font_open): Set font type to gdi.
6240         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6242 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
6244         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6245         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6246         defines it.
6247         * unexec.c (ADDR_CORRECT): Define unconditionally.
6249         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6251         * unexec.c: Remove code depending on !COFF and USG, the file is
6252         not used for such systems.
6254         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6255         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6256         (LD_SWITCH_SYSTEM_1): Remove, update users.
6258         * s/darwin.h (DATA_END):
6259         * m/intel386.h (DATA_END):
6260         * m/ibmrs6000.h (DATA_END):
6261         * m/alpha.h (DATA_END): Remove, unused.
6263         * config.in: Regenerate.
6264         * s/ms-w32.h (subprocesses): Define unconditionally.
6265         * s/template.h (subprocesses): Update comment.
6266         * s/vms.h (subprocesses):
6267         * s/usg5-4.h (subprocesses):
6268         * s/hpux10-20.h (subprocesses):
6269         * s/gnu-linux.h (subprocesses):
6270         * s/cygwin.h (subprocesses):
6271         * s/bsd-common.h (subprocesses):
6272         * s/aix4-2.h (subprocesses):
6273         * s/darwin.h (subprocesses): Do not define, defined by default now.
6275         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6276         Remove all references.
6277         (temacs): Add GNUstep specific ld flags.
6279         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6280         similarly to what X does.
6282 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
6284         * nsfns.m (x-list-fonts): Remove.
6285         (syms_of_nsfns): Drop the x-list-fonts declaration.
6286         * nsterm.m: Get rid of remaining "//" comments.
6288 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
6290         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6292         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6293         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6294         (Fns_own_selection_internal, Fx_disown_selection_internal)
6295         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6297         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6298         ... */' style of docstrings.  Doc fixes.
6300 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
6302         * terminfo.c (UP, BC, PC): Undo previous change.
6304         * nsfns.m: Rename ns prefixed functions/variables to the
6305         corresponding x versions.  Update references.
6307 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
6309         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6311 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
6313         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6314         Remove forwarding functions.
6315         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6316         non-static.
6317         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6318         non-static.
6319         (ns_frame_parm_handlers): Use the new names.
6320         (syms_of_nsfns): Move to the end of file.
6322         * nsterm.m (syms_of_nsterm): Move to the end of file.
6324         * dispnew.c (init_display): Remove code for X10.
6326 2008-07-22  Jason Rumney  <jasonr@gnu.org>
6328         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6329         bare drive.
6331 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
6333         * nsterm.m (syms_of_nsterm): Remove debugging println.
6335 2008-07-22  David Reitter  <david.reitter@gmail.com>
6337         * nsfns.m (do_applescript, F_do_applescript): NS version of the
6338         Carbon implementation of the same functionality: execute arbitrary
6339         AppleScript code.
6341 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
6343         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6344         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6345         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6346         (Fx_display_mm_height, Fx_display_mm_width)
6347         (Fx_display_backing_store, Fx_display_visual_class)
6348         (Fx_display_save_under, Fx_open_connection)
6349         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6350         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6351         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6352         (Fx_display_pixel_width, Fx_display_pixel_height)
6353         (Fx_display_usable_bounds, Fx_display_planes)
6354         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6355         ... */' style of docstrings.
6357 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
6359         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6360         on this platform.
6361         (mips):
6362         * m/iris4d.h (mips): Do not define.
6363         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6365         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6367         * image.c:
6368         * nsfns.m:
6369         * nsselect.m:
6370         * nsterm.h:
6371         * nsterm.m: Rename ns prefixed functions/variables to the
6372         corresponding x versions.  Update references.
6374         * m/ibms390x.h (NO_REMAP): Do not undefine.
6376         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6378 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
6380         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6381         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6382         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6383         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6384         (Fns_display_mm_height, Fns_display_mm_width)
6385         (Fns_display_backing_store, Fns_display_visual_class)
6386         (Fns_display_save_under, Fns_open_connection)
6387         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6388         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6389         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6390         (Fns_display_pixel_width, Fns_display_pixel_height)
6391         (Fns_display_usable_bounds, Fx_display_planes)
6392         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6394 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
6396         * print.c (print_object): Check print_depth before searching for
6397         circularities.
6399 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
6401         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6402         only sprintf.
6404 2008-07-21  Kenichi Handa  <handa@m17n.org>
6406         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6408 2008-07-20  Andreas Schwab  <schwab@suse.de>
6410         * syntax.c (find_start_pos, find_start_value)
6411         (find_start_value_byte, find_start_begv, find_defun_start)
6412         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6414 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
6416         * s/sol2-3.h: Insert contents of s/sol2.h.
6417         (LD_SWITCH_SYSTEM): Remove redundant definition.
6418         * s/sol2.h: Remove, unused.
6420 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
6422         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6424 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
6426         * Makefile.in (ns_appdir): Fix typo in find command.
6428 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
6430         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6432         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6433         added not supported anymore.
6435         * s/usg5-4-2.h (LIBS_SYSTEM):
6436         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6438         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6439         * s/lynxos.h (GETPGRP_NO_ARG):
6440         * s/hpux10-20.h (NO_SIOCTL_H):
6441         * s/gnu.h (GETPGRP_NO_ARG):
6442         * s/gnu-linux.h (NO_SIOCTL_H):
6443         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6444         * s/cygwin.h (GETPGRP_NO_ARG):
6445         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6446         (C_DEBUG_SWITCH): Remove duplicate definition.
6448         * m/ibms390.h: Remove boilerplate comments.
6450         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6452         * process.c (HAVE_SERIAL): Consolidate ifdefs.
6453         (wait_reading_process_output): Remove code for SunOS, platform not
6454         supported anymore.  Use SOLARIS2 instead of sun.
6456 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
6458         * font.c (font_open_by_name): Under NS, default lface height to zero.
6459         (font_open_for_lface): Under NS, set size based on frame fontsize.
6460         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6461         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6463 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
6465         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6466         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6467         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6468         YES/NO.
6469         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6470         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6471         * Makefile.in (clean): Clear out build destination dir.
6473 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
6475         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6476         xterm, xselect.
6477         * lisp.h: Remove declaration of hash_remove.
6478         * nsgui.h: Remove redefinitions of hash_remove.
6479         * fns.c (hash_remove): Rename to hash_remove_from_table.
6481 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
6483         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6484         strdup() the family UTF8String before modifying it.
6486 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
6488         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6489         NS_FACE_BACKGROUND with 0 instead of nil.
6490         * nsfont.m (nsfont_draw): Same.
6492 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
6494         * nsfns.m (ns_set_background_color): Fix crash.
6496 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
6498         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6500 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
6502         * puresize.h (BASE_PURESIZE): Increase to 1240000.
6504 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6506         * gtkutil.c: Include <config.h> instead of "config.h".
6508         * lisp.h (Foverlay_buffer): Add EXFUN.
6510         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6511         child process to complete child_setup.  Undo 2005-09-21 change.
6513         * s/darwin.h: Mention setsid after vfork.
6515 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6517         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6518         Depend on macgui.h.
6520         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6521         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6523         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6524         and f19.
6525         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6527         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6528         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6529         Remove enumerators.
6531         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6532         Check if FACE_FROM_ID returns NULL.
6534 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
6536         * w32inevt.c (change_frame_size): Remove extern declaration.
6537         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6538         change_frame_size.
6540 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
6542         * getloadavg.c: Revert last change (2008-07-15).
6544 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
6546         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6547         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6548         from configure.
6550 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
6552         * s/sol2.h:
6553         * s/sol2-4.h: Reorganize conditionals.
6555         * ecrt0.c: Remove code depending on m68000, not used anymore.
6557         * fns.c (hash_remove): Make static.
6558         * lisp.h (hash_remove): Don't prototype.
6560         * m/ibmrs6000.h:
6561         * m/ibms390x.h:
6562         * m/macppc.h: Remove boilerplate comments.
6564         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6565         Solaris, which does not need them.
6567         * m/vax.h: Remove comments about unsupported systems.
6569         * s/darwin.h: Reorganize ifdefs.
6571 2008-07-17  Andreas Schwab  <schwab@suse.de>
6573         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6575 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
6577         Use SDATA.  Follow coding convention of placing operators at
6578         beginning of next line rather than end of previous line, and placing
6579         spaces around infix operators.
6581         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6582         in case it was defined already.
6583         USE @GNUSTEP_MAKEFILES@ rather than envvars.
6584         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6585         ns_default.
6586         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6587         Lisp_Objects.
6588         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6589         (ns_defined_color, ns_color_to_lisp): Declare.
6590         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6591         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6592         it's accepted even with USE_LISP_UNION_TYPE.
6593         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6594         (update_frame_tool_bar): Remove apparently obsolete tests for
6595         non-integerness of f->tool_bar_lines.
6596         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6597         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6598         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6599         (nsfont_open): Don't confuse NULL for Qnil.
6600         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6601         * menu.h (find_and_call_menu_selection):
6602         * menu.c (find_and_call_menu_selection): Use just int for vector size.
6603         (find_and_return_menu_selection): Always return something.
6604         * frame.h: Include dispextern.h for Display_Info.
6605         (display_x_get_resource): Declare.
6607 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
6609         * syntax.c: Remove stdio.h include accidentally introduced in
6610         Emacs.app commit.
6611         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6612         NS_IMPL_COCOA.
6613         * keyboard.c (handle_async_input, input_available_signal): Remove
6614         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6616 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6618         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6619         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6620         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6621         Use SDATA.
6623         * keymap.c: Remove all NS-specific code.
6624         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6625         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6626         where_is_preferred_modifier, return a different value depending on how
6627         preferred is the binding.
6628         (where_is_internal): Adjust accordingly.
6629         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6630         Adjust to new preferred_sequence_p.
6631         (syms_of_keymap): Declare `where-is-preferred-modifier'.
6632         * keyboard.c (parse_solitary_modifier): Not static any more.
6633         * keyboard.h (parse_solitary_modifier): Declare.
6635 2008-07-16  Andreas Schwab  <schwab@suse.de>
6637         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6638         of easymenu.
6640 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
6642         * xdisp.c (move_it_in_display_line): Account for word wrap, so
6643         that we don't move off the line.
6645 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6647         * keyboard.c (Qsuper): Remove.
6648         (parse_menu_item): Don't call where_is_internal specially for NS.
6650 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
6652         * s/gnu-linux.h: Remove boilerplate comments.
6654         * m/alpha.h (__ELF__): Consolidate conditions.
6656         * m/m68k.h (linux): Use GNU_LINUX instead.
6657         Remove boilerplate comments.
6659         * m/intel386.h: Undo refactoring from previous change.
6660         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6661         too, remove dead code.
6662         (linux): Use GNU_LINUX instead.
6664 2008-07-16  Jason Rumney  <jasonr@gnu.org>
6666         * w32gui.h: Repeat 26 June changes lost by last change.
6668 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
6670         * systty.h: Remove code for Aix on 386, unsupported platform.
6672         * s/ms-w32.h: Remove boilerplate comments.
6673         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6675         * s/gnu-linux.h (TERM): Remove support.
6676         (HAVE_SYSVIPC): Remove, unused.
6677         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6678         for this system.
6680         * process.c: Remove support for IRIS, unused.
6681         Remove support for TERM, not relevant anymore.
6683         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6684         used with the definition.
6686         * s/aix4-2.h (static): Do not undef.
6688         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6689         only used on Aix.
6690         (HAVE_SYSVIPC): Remove, unused.
6692         * m/hp800.h (CANNOT_DUMP): Do not undef.
6694         * m/alpha.h: Fix comment.
6696         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6697         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6698         used by this configuration.
6699         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6700         * unexec.c: Remove code depending on HPUX and
6701         USG_SHARED_LIBRARIES, not used with this file.  Remove code
6702         depending on IRIS, unused.  Remove if 0-ed code.
6704         * s/template.h: Remove comments about static.
6706         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6707         Remove if 0-ed code.
6708         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6709         were the same as the default.
6710         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6711         Remove boilerplate comments.
6712         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6713         (HAVE_SYSVIPC): Remove, unused.
6714         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6716         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6717         Remove boilerplate comments.
6718         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6719         Remove boilerplate comments.
6720         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6721         Remove boilerplate comments.
6722         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6724         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6725         USG systems which do not use DATA_SEG_BITS.
6726         Refactor code.  Remove boilerplate comments.
6728         * m/ibms390.h:
6729         * m/m68k.h:
6730         * s/bsd-common.h:
6731         * s/cygwin.h:
6732         * s/darwin.h:
6733         * s/freebsd.h:
6734         * s/gnu.h:
6735         * s/msdos.h: Remove boilerplate comments.
6737         * m/iris4d.h: Remove boilerplate comments and code for systems that
6738         do not use this file.
6739         (IRIS_4D): Remove, unused.
6741         * m/mips.h: Remove boilerplate comments and code for systems that
6742         do not use this file.
6743         (SIGN_EXTEND_CHAR):
6744         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6745         * unexmips.c: Remove file, unused.
6747         * editfns.c (Fuser_full_name): Replace the only use of
6748         USER_FULL_NAME with its value.
6749         * config.in: Regenerate.
6751 2008-07-16  David Reitter  <david.reitter@gmail.com>
6753         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6754         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6756 2008-07-16  Glenn Morris  <rgm@gnu.org>
6758         * emacs.c (system-type): Doc fix.
6760 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
6762         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6763         If the cache doesn't work, let's fix it, rather than work around it.
6765 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
6767         * Makefile.in: Correct additions for nsfont.o in last commit.
6768         * nsfont.m: New file (forgot last commit).
6770 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
6772         * callproc.c (set_initial_environment): Initialize
6773         Vprocess_environment under CANNOT_DUMP (fixes crash when
6774         batch-compiling for bootstrap).
6776 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
6777             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6779         (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6780         fix crash due to different init order.
6782 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
6784         Changes and additions for NeXTstep windowing system (Cocoa and
6785         GNUstep) support.
6787         * Makefile.in:
6788         * config.in: Support defines and build commands for NS port.
6789         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6790         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6791         * dispextern.h: Include nsgui.h and add needed typedefs under NS
6792         windowing.
6793         (struct face): Add synth_ital field.
6794         * dispnew.c: Include nsterm.h when compiling under NS windowing.
6795         (init_display): Initialize Vinitial_window_system to "ns" when so
6796         compiled.
6797         * emacs.c: Include GSConfig.h when compiling under GNUstep.
6798         (display_arg): Use under NS.
6799         (main): Under NS, allocate autorelease pool and handle command line
6800         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6801         (standard_args): Add NS-specific args.
6802         (shut_down_emacs): Shut down NS terminal if compiled under NS.
6803         * font.c (DEFAULT_ENCODING): New variable.
6804         (font_find_for_lface): Use it.
6805         (syms_of_font): Load syms_of_nsfont under NS.
6806         * font.h: Declare nsfont_driver when compiled under NS.
6807         * fontset.c: When compiling under NS, include nsterm.h.
6808         (fontset_from_font): Autoconstruct fontset under NS.
6809         * frame.c (various): Under NS, include nsterm.h, add Qns window system
6810         symbol, document and use it.
6811         (do_switch_frame): When for_deletion under Cocoa, add
6812         Fraise_frame(Qnil).
6813         (x_set_frame_parameters): Ensure font attribute changes are picked up.
6814         (x_get_arg): Allow "yes" and "no" as boolean values.
6815         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
6816         Qright under Cocoa.
6817         (focus-follows-mouse): Default to 0 under NS.
6818         * frame.h (enum output_method): Add output_ns.
6819         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6820         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6821         (FRAME_WINDOW_P): NS-specific definition.
6822         * fringe.c (max_used_fringe_bitmap): Make public.
6823         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6824         (getloadavg): Use NeXT code under descendant OS's.
6825         * image.c (includes and header section, x_create_bitmap_from_data)
6826         (x_create_bitmap_from_file, free_bitmap_record, image_background)
6827         (image_background_transparent, x_clear_image_1)
6828         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6829         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6830         (x_to_xcolors, x_from_xcolors, x_disable_image)
6831         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6832         other GUIs, including XPM support using code originally written for
6833         Carbon GUI.
6834         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6835         using NS API.
6836         (image_ascent): Use font metrics macros instead of direct struct field
6837         access.
6838         * keyboard.c (includes): Add nsterm.h when compiling under NS.
6839         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6840         Also, handle NS as GTK for menu bar purposes.
6841         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6842         toolkit where they differ.
6843         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
6844         use cachelist, still needed under NS.
6845         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6846         (struct widget_value): Define it here for menu.c.
6847         * keymap.c (includes): Include modifier internals.
6848         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6849         NS.
6850         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6851         support for preferring sequences using certain modifiers, specified by
6852         the FIRSTONLY argument.
6853         * lisp.h (hash_remove): Rename to avoid name clash when compiling
6854         under NS GNUstep implementation.
6855         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6856         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6857         * menu.c: Include nsterm.h under NS.
6858         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6859         (free_menubar_widget_tree_value, update_submenu_strings)
6860         (find_and_call_menu_selection): Treat NS as X and NT.
6861         (find_and_return_menu_selection): New function, used for popup menus.
6862         * nsgui.h:
6863         * nsterm.h:
6864         * nsfns.m:
6865         * nsimage.m:
6866         * nsmenu.m:
6867         * nsselect.m:
6868         * nsterm.m: New files.
6869         * process.c (wait_reading_process_output): Under NS, call ns_select()
6870         instead of plain select().
6871         * syntax.c (char_quoted): Under NS, avoid a crash when called near
6872         beginning of buffer.
6873         * sysselect.h (init_process): Rename when compiling under Cocoa to
6874         avoid name conflict.
6875         * termhooks.h (display_info): Add ns_display_info to union.
6876         * terminal.c (Fterminal_live_p): Add ns to terminal types.
6877         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6878         COCOA environment.
6879         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6880         unexec() signature.  (Note, this will dump, but the resulting file
6881         crashes; unexosx is used instead; keeping around for reference and
6882         possible aid in getting dump working under GNUstep.)
6883         * w32gui.h (button_type, widget_value): Remove definitions (now in
6884         keyboard.h).
6885         * window.c: Include nsterm.h when compiling under NS.
6886         * xdisp.c (includes): Include nsterm.h when compiling under NS.
6887         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6888         other GUI windowing systems.
6889         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6890         GTK.
6891         (x_consider_frame_title): Under NS, set icon type and frame
6892         modified-state indicator; use ns_set_name_as_filename() when using
6893         formatted title.
6894         (update_window_cursor): Make public when compiling under NS.
6895         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6896         (hourglass_atimer, Vhourglass_delay
6897         * xfaces.c (header section, init_frame_faces, clear_font_table)
6898         (defined_color, unload_color, x_face_list_fonts)
6899         (prepare_face_for_display): Add NS support parallel to other GUIs.
6900         Emulate GCs like other non-X GUIs.
6901         (split_font_name): Don't lowercase font name under NS.
6902         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6903         under NS.
6904         * s/darwin.h: Add support for compilation under NS.
6906 2008-07-15  Jason Rumney  <jasonr@gnu.org>
6908         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6909         (w32_show_hourglass): Rename from show_hourglass.
6910         (w32_hide_hourglass): Rename from hide_hourglass.
6911         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6912         (Vhourglass_delay): Declare extern.
6913         (hourglass_started): Remove.
6915         * xdisp.c (Vhourglass_delay): Remove static.
6916         (hourglass_started, start_hourglass, cancel_hourglass):
6917         Don't include these versions on WINDOWSNT.
6919 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
6921         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6922         variables (formerly in xfns.c).
6923         (show_hourglass, hide_hourglass): New prototypes (same).
6924         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6925         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6926         in xfns.c).
6927         (syms_of_xdisp): Declare/initialize display-hourglass,
6928         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
6929         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6930         formerly in xfns.c.
6931         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6932         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6933         (start_hourglass, cancel_hourglass): Remove.
6934         (show_hourglass, hide_hourglass): Remove prototypes and static
6935         modifiers.
6936         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6937         hourglass_atimer, hourglass_shown_p declaration/initialization.
6938         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6939         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6940         (start_hourglass, cancel_hourglass): Remove.
6941         (show_hourglass, hide_hourglass): Remove prototypes and static
6942         modifiers.
6943         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6944         hourglass_atimer, hourglass_shown_p declaration/initialization.
6945         * w32fns.c (display_hourglass_p, Vhourglass_delay)
6946         (DEFAULT_HOURGLASS_DELAY): Remove.
6947         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6948         hourglass_shown_p declaration/initialization.
6950 2008-07-14  Jason Rumney  <jasonr@gnu.org>
6952         * w32fns.c (w32_get_arg): Remove wrapper function.
6953         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6954         directly.
6955         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
6957 2008-07-14  Kenichi Handa  <handa@m17n.org>
6959         * xfont.c (xfont_open): Add workaround for X's bug.
6961 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
6963         * fontset.c: Include <stdio.h> unconditionally.
6965 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
6967         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6968         for filtering.
6970 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
6972         * s/vms.h: Use __GNUC__ instead of _GNUC_.
6974         * m/macppc.h:
6975         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
6977         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6978         (SPECIAL_EMACS_INT):
6979         * m/ia64.h (SPECIAL_EMACS_INT):
6980         * m/amdx86-64.h (SPECIAL_EMACS_INT):
6981         * s/gnu.h (NLIST_STRUCT):
6982         * s/aix4-2.h (X11R5_INHIBIT_I18N):
6983         * s/gnu-linux.h (LINUX):
6984         * s/msdos.h (HAVE_FACES):
6985         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6987         * systty.h:
6988         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6989         anymore.
6991 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
6993         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
6994         always defined as int.
6996         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6997         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6998         * s/gnu-linux.h (HAVE_WAIT_HEADER):
6999         * s/freebsd.h (HAVE_WAIT_HEADER):
7000         * s/bsd-common.h (HAVE_UNION_WAIT):
7001         * s/aix4-2.h (HAVE_WAIT_HEADER):
7002         * m/mips.h (HAVE_UNION_WAIT):
7003         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7004         (COFF, static): Do not define, they are undefined later in the file.
7006         * process.c (update_status): Don't use a union.
7007         (status_convert):
7008         (sigchld_handler): Use int instead of WAITTYPE.
7010 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
7012         * indent.c (Fvertical_motion): Restore hscroll before moving to
7013         goal column.
7015 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
7017         * lisp.h: Remove left over code.
7019 2008-07-11  Andreas Schwab  <schwab@suse.de>
7021         * lisp.h: Fix logic in last change.
7023         * menu.h: New file.
7024         * menu.c: Include it.
7025         * xmenu.c: Likewise.
7026         * Makefile.in: Update dependencies.
7028 2008-07-11  Kenichi Handa  <handa@m17n.org>
7030         * fontset.c (fontset_from_font): Cancel the previous change.
7032 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
7034         * lisp.h:
7035         * w32heap.c:
7036         * emacs.c:
7037         * alloc.c: Replace all references of NO_UNION_TYPE with
7038         USE_LISP_UNION_TYPE.
7040         * m/xtensa.h (NO_UNION_TYPE):
7041         * m/vax.h (NO_UNION_TYPE):
7042         * m/template.h (NO_UNION_TYPE):
7043         * m/sparc.h (NO_UNION_TYPE):
7044         * m/mips.h (NO_UNION_TYPE):
7045         * m/macppc.h (NO_UNION_TYPE):
7046         * m/m68k.h (NO_UNION_TYPE):
7047         * m/iris4d.h (NO_UNION_TYPE):
7048         * m/intel386.h (NO_UNION_TYPE):
7049         * m/ibms390x.h (NO_UNION_TYPE):
7050         * m/ibms390.h (NO_UNION_TYPE):
7051         * m/ibmrs6000.h (NO_UNION_TYPE):
7052         * m/ia64.h (NO_UNION_TYPE):
7053         * m/hp800.h (NO_UNION_TYPE):
7054         * m/arm.h (NO_UNION_TYPE):
7055         * m/amdx86-64.h (NO_UNION_TYPE):
7056         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7057         defining it the same.
7059 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
7061         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7063 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
7065         * fileio.c:
7066         * sysdep.c
7067         * systty.h:
7068         * m/ibmrs6000.h:
7069         * m/iris4d.h:
7070         * s/aix4-2.h:
7071         * s/freebsd.h:
7072         * s/gnu-linux.h:
7073         * s/hpux10-20.h:
7074         * s/hpux11.h:
7075         * s/netbsd.h:
7076         * s/sol2-3.h:
7077         * s/sol2-4.h:
7078         * s/sol2.h:
7079         * s/usg5-4.h:
7080         * s/vms.h: Remove references to unused variables.
7082 2008-07-10  Andreas Schwab  <schwab@suse.de>
7084         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7085         pattern before matching the generic family.
7087 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
7089         * unexec.c:
7090         * s/vms.h:
7091         * s/usg5-4-2.h:
7092         * s/sol2-5.h:
7093         * s/freebsd.h:
7094         * s/darwin.h: Remove dead code.
7096         * m/template.h:
7097         * m/sparc.h:
7098         * m/mips.h:
7099         * m/m68k.h:
7100         * m/iris4d.h:
7101         * m/intel386.h:
7102         * m/ibms390x.h:
7103         * m/ibms390.h:
7104         * m/ia64.h:
7105         * m/hp800.h:
7106         * m/arm.h:
7107         * m/amdx86-64.h: Remove dead code and references to unused
7108         and compiler defined symbols.
7110         * unexmips.c:
7111         * unexelf.c: Remove references to desupported systems.
7113         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7115         * m/powermac.h: Remove boilerplate comments.
7116         (NO_REMAP): Remove unused definition.
7118         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7119         define them.
7121 2008-07-10  Kenichi Handa  <handa@m17n.org>
7123         * xfont.c (xfont_open): Log the reason of failure.
7125 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
7127         * fontset.c (fontset_get_font_group):
7128         * font.c (font_check_otf): Specify argument types.
7130 2008-07-09  Kenichi Handa  <handa@m17n.org>
7132         * coding.c (detect_coding_utf_8): Set detect_info->found only when
7133         non-ASCII char is found.
7135         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7136         (reorder_font_vector): Change the arg preferred_family to font.
7137         Prefer the spec matching with font.
7138         (fontset_get_font_group): New function.
7139         (fontset_find_font): Change the format of an element of a realized
7140         fontset.  Use fontset_get_font_group.
7141         (fontset_font): Try the current fontset, the default fontset, the
7142         fallbacks of the current fontset, and the fallbacks of the default
7143         fontset in this order.
7144         (face_for_char): Delete the shortcut to use the current font.
7145         (fontset_from_font): Don't set fonts for Latin in the fontset.
7147         * font.h (font_make_object, font_match_p): Adjust prototypes.
7149         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7151         * font.c (font_make_object): New arg entity and pixelsize.
7152         (font_check_otf_features, font_check_otf): New functions.
7153         (font_match_p): Check :lang, :script, and :otf properties.
7155         * xfont.c (xfont_open): Adjust it for the change of
7156         font_make_object.
7157         (xfont_text_extents): Fix initial setting of metrics.
7159         * ftfont.c (struct ftfont_info): New member index, delete member
7160         fc_charset_idx.  Make the member order compatible with struct
7161         xftfont_info.
7162         (fc_charset_table): Change charset names to registry names.
7163         (ftfont_pattern_entity): Delete the args registry and
7164         fc_charset_idx.  Change the value of :font-entity property
7165         to (FONTNAME . INDEX).  Always set :registry property to
7166         `iso10646-1'.
7167         (struct ftfont_cache_data): New struct.
7168         (ftfont_lookup_cache): New arg for_face.
7169         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7170         (ftfont_driver): Set the member otf_capability.
7171         (ftfont_get_charset): Adjust it for the change of
7172         fc_charset_table.
7173         (OTF_TAG_SYM): New macro.
7174         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
7175         for the change of fc_charset_table.
7176         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7177         ftfont_pattern_entity.  Add FC_INDEX to objset.
7178         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7179         and ftfont_pattern_entity.
7180         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7181         font_make_object, struct ftfont_info.
7182         (ftfont_has_char): Use ftfont_get_fc_charset.
7183         (ftfont_otf_features, ftfont_otf_capability): New functions.
7184         (ftfont_shape): Use ftfont_get_otf.
7185         (ftfont_text_extents): Fix initial setting of metrics.
7187         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
7188         member order compatible with struct ftfont_info.
7189         (xftfont_open): Add FC_CHARSET to the pattern.  Set
7190         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
7191         properties if appropriate.
7192         (xftfont_close): Unlock the face.
7193         (xftfont_anchor_point, xftfont_shape): Deleted.
7194         (syms_of_xftfont): Don't set members anchor_point and shape of
7195         xftfont_driver.
7197         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7198         font_make_object.
7200         * w32font.c (w32font_open): Adjust it for the change of
7201         font_make_object.
7202         (w32font_open_internal): Don't set properties of font_object here.
7204 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
7206         * macfns.c (x_create_tip_frame):
7207         * w32fns.c (x_create_tip_frame):
7208         * xfns.c (x_create_tip_frame): Pass parameter argument to
7209         face-set-after-frame-default.
7211         * xfaces.c (Finternal_merge_in_global_face): Save merged
7212         attributes for the default face back into the face vector.
7214 2008-07-08  Andreas Schwab  <schwab@suse.de>
7216         * fontset.h: Declare fontset_from_font.  Don't declare
7217         new_fontset_from_font and fontset_from_font_name.
7218         * xterm.c: Include "fontset.h".
7219         * Makefile.in (xterm.o): Update dependencies.
7221 2008-07-08  Glenn Morris  <rgm@gnu.org>
7223         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
7224         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7226 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
7228         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7229         (x_set_frame_parameters): Don't bind it.
7231 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
7233         * w32fns.c (map_w32_filename): Declare extern.
7235 2008-07-07  Jason Rumney  <jasonr@gnu.org>
7237         * w32term.c (WS_EX_LAYERED): Define if not already.
7239 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
7241         * xfaces.c (set_font_frame_param): Don't try to set the font
7242         parameter if it is still unspecified in the lface.
7244 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
7246         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7247         face if it didn't already exist.
7249         * xdisp.c (try_window_id): Give up if word-wrapping is on.
7251 2008-07-05  Andreas Schwab  <schwab@suse.de>
7253         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7255 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
7257         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7258         word-wrapping.
7259         (IT_DISPLAYING_WHITESPACE): New macro.
7260         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7261         when word-wrapping.  Simplify word-wrapping logic.  Use correct
7262         pixel positions when saving copies of the iterator.
7263         (display_line): Use proper wrap point if the last character on a
7264         line was preceded by whitespace.
7266 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
7268         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7270 2008-07-04  Kenichi Handa  <handa@m17n.org>
7272         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7274         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7276 2008-07-02  Jason Rumney  <jasonr@gnu.org>
7278         * xfns.c (syms_of_xfns): Only define x-select-font when both
7279         HAVE_FREETYPE and USE_GTK.
7281         * xdisp.c (next_element_from_display_vector): Move assignment out
7282         of if statement.
7284 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
7286         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7288         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7289         (syms_of_fileio): Initialize and export them.
7290         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7292         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7293         (Fsystem_move_file_to_trash): New function.
7294         (syms_of_w32fns): Export it to lisp.
7296 2008-07-01  Jason Rumney  <jasonr@gnu.org>
7298         * w32font.c (w32font_text_extents): Don't count overhang as part
7299         of width.
7301 2008-06-30  Miles Bader  <miles@gnu.org>
7303         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7304         Add `avoid_cursor_p' field.
7306         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7307         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7308         (append_glyph, append_composite_glyph, produce_image_glyph)
7309         (append_stretch_glyph): Initialize avoid_cursor_p.
7310         (get_it_property): Rename from `get_line_height_property'.
7311         (x_produce_glyphs): Use get_it_property.
7312         (handle_line_prefix, push_display_prop): New functions.
7313         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7314         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7315         New variables.
7316         (syms_of_xdisp): Initialize them.
7318 2008-06-30  Kenichi Handa  <handa@m17n.org>
7320         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7321         XftDefaultSubstitute (they are called in XftFontMatch).
7322         (xftfont_open): Fix args to ftfont_font_format.
7324         * ftfont.c (fc_charset_table): New member lang.
7325         (ftfont_resolve_generic_family): New arg pattern.
7326         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
7327         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7328         (ftfont_open): Fix args to ftfont_font_format.
7329         (ftfont_font_format): New arg filename.
7331 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
7333         * xfaces.c (Finternal_merge_in_global_face): If default face was
7334         modified, realize it again.  Update the font face attribute.
7336 2008-06-29  Jason Rumney  <jasonr@gnu.org>
7338         * w32term.c (x_set_frame_alpha): Fix logic.
7340 2008-06-29  Kenichi Handa  <handa@m17n.org>
7342         * fontset.c (Finternal_char_font): Return font-object instead of
7343         font-name.
7345         * composite.c (get_composition_id): Fix the width calculation for TAB.
7347 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
7349         * indent.c (Fvertical_motion): Properly handle float column arg.
7351 2008-06-28  Jason Rumney  <jasonr@gnu.org>
7353         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7354         (pfnSetLayeredWindowAttributes): New function pointer.
7355         (w32_initialize): Initialize it when supported.
7356         (x_set_frame_alpha): New function.
7358         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7359         (w32_frame_parm_handlers): Set alpha handler.
7361         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7363 2008-06-27  Jason Rumney  <jasonr@gnu.org>
7365         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7366         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7367         (w32_to_x_charset, x_to_w32_charset)
7368         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7369         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7370         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7371         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7372         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7373         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7374         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7375         (Qw32_charset_unicode): Remove.
7376         (syms_of_w32fns): Update for above changes.
7378         * w32font.c (w32_to_x_charset, x_to_w32_charset)
7379         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7380         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7381         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7382         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7383         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7384         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7385         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7386         (syms_of_w32font): Update for above changes.
7388 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
7390         * s/usg5-4.h: Fix previous change: keep the correct branch of a
7391         removed #if.
7392         (USG_SHARED_LIBRARIES): Remove duplicate definition.
7394 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
7395             Eli Zaretskii  <eliz@gnu.org>
7397         * makefile.w32-in (LOCAL_FLAGS):
7398         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7400         * sysdep.c (_spawnlp, _getpid):
7401         Declare with explicit _cdecl instead of _CRTAPI1.
7403         * editfns.c (Fget_internal_run_time):
7404         Check for WINDOWSNT with #ifdef, not #if.
7406 2008-06-26  Jason Rumney  <jasonr@gnu.org>
7408         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7410         * w32term.c (x_draw_glyph_string_foreground)
7411         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7412         Use FONT_HANDLE macro.
7413         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7415         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7416         (uniscribe_encode_char): Use FONT_HANDLE macro.
7418         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7419         (w32font_text_extents): Use precast w32_font.
7420         (w32font_close): Free cached metrics.
7421         (w32font_open_internal): Allocate space for name on stack.
7423 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
7425         * xdisp.c (extend_face_to_end_of_line): Fix last change.
7427 2008-06-26  Jason Rumney  <jasonr@gnu.org>
7429         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7430         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7432 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
7434         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7436 2008-06-26  Jason Rumney  <jasonr@gnu.org>
7438         * w32bdf.c, w32bdf.h: Remove obsolete files.
7440         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7442         * w32gui.h: Don't include w32bdf.h.
7443         (XCharStruct, enum w32_char_font_type, W32FontStruct):
7444         Remove obsolete font support.
7446         * w32font.h (struct w32font_info): Remove compat_w32_font.
7447         Add hfont member.
7448         (FONT_COMPAT): Remove obsolete macro.
7450         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
7451         (w32font_encode_char, w32font_text_extents): Use new hfont member.
7452         (w32font_open_internal): Remove compat code.  Set new hfont member.
7453         (Fx_select_font): Use new hfont member.
7455         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7456         (uniscribe_encode_char): Use new hfont member.
7458         * w32term.c (x_draw_glyph_string_foreground)
7459         (x_draw_composite_glyph_string_foreground): Use new hfont member.
7460         (x_draw_glyph_string): Use metrics in w32font_info.
7462 2008-06-26  Kenichi Handa  <handa@m17n.org>
7464         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7466 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
7468         * unexnext.c:
7469         * m/ews4800.h:
7470         * m/hp9000s300.h:
7471         * m/ibm370aix.h:
7472         * m/mips-siemens.h:
7473         * m/ncr386.h:
7474         * m/next.h:
7475         * m/pmax.h:
7476         * m/powerpcle.h:
7477         * m/tandem-s2.h:
7478         * s/386bsd.h:
7479         * s/bsd386.h:
7480         * s/bsd4-1.h:
7481         * s/bsd4-2.h:
7482         * s/bsdos2-1.h:
7483         * s/bsdos2.h:
7484         * s/bsdos3.h:
7485         * s/bsdos4.h:
7486         * s/nextstep.h:
7487         * s/ultrix4-3.h:
7488         * s/usg5-0.h:
7489         * s/usg5-2-2.h:
7490         * s/usg5-2.h:
7491         * s/usg5-4-3.h:
7492         * s/ux4800.h:
7493         * s/uxpds.h:
7494         * s/uxpv.h: Remove support for obsolete systems.
7495         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
7496         Remove, insert contents in s/hpux10-20.h.
7497         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7498         Remove, insert contents in s/aix4-2.h.
7499         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7500         * s/bsd4-3.h: Rename to ...
7501         * s/bsd-common.h: ... this.
7502         * data.c:
7503         * doc.c:
7504         * ecrt0.c:
7505         * emacs.c:
7506         * fileio.c:
7507         * floatfns.c:
7508         * keyboard.c:
7509         * mem-limits.h:
7510         * print.c:
7511         * process.c:
7512         * sysdep.c:
7513         * syssignal.h:
7514         * systty.h:
7515         * syswait.h:
7516         * term.c:
7517         * unexec.c:
7518         * unexelf.c:
7519         * unexhp9k800.c:
7520         * m/hp800.h:
7521         * m/ibmrs6000.h:
7522         * m/mips.h:
7523         * m/vax.h:
7524         * s/darwin.h:
7525         * s/freebsd.h:
7526         * s/gnu.h:
7527         * s/ms-w32.h:
7528         * s/msdos.h:
7529         * s/netbsd.h:
7530         * s/template.h: Remove references to obsolete variables.
7532         * Makefile.in: Add dependencies for all unexec files.
7533         (admindir): Remove unused variable.
7534         (UNEXEC_SRC): Remove references.
7536 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
7538         * xfns.c (x_default_font_parameter): If Xft is available, first
7539         try Monospace-12 for the default font.
7541 2008-06-25  Jason Rumney  <jasonr@gnu.org>
7543         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7545 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
7547         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7549         * buffer.c (syms_of_buffer): Remove default-word-wrap.
7551 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
7553         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7554         <scroll-conservatively>: Fix typo in docstring.
7556         * xselect.c (Fx_send_client_event): Doc fix.
7558 2008-06-25  Kenichi Handa  <handa@m17n.org>
7560         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7562         * font.c (font_parse_fcname): Remove unused variables.
7563         (font_sort_entites): Delete the arg SPEC.  Caller changed.
7564         Fix for the case of ! best_only.
7565         (font_delete_unmatched): Check DPI and AVGWIDTH too.
7567         * lisp.h (Fstring_to_unibyte): EXFUN it.
7569         * character.h (str_to_unibyte): Extern it.
7571         * character.c (str_to_unibyte): New function.
7573         * fns.c (Fstring_to_unibyte): New function.
7574         (syms_of_fns): Defsubr it.
7576 2008-06-24  Kenichi Handa  <handa@m17n.org>
7578         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7579         DPI too.
7580         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7582 2008-06-24  Andreas Schwab  <schwab@suse.de>
7584         * Makefile.in (${lispsource}loaddefs.el): Rename from
7585         ../lisp/loaddefs.el.
7586         (bootstrap-clean): Do what distclean does but don't remove
7587         Makefile.
7588         (distclean): Depend on bootstrap-clean and remove Makefile.
7590 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
7592         * buffer.h (struct buffer): New member word_wrap.
7594         * buffer.c (syms_of_buffer): New variables default-word-wrap and
7595         word-wrap.
7596         (init_buffer_once): Initialize them.
7598         * dispextern.h (struct it): Replace bool truncate_lines_p with a
7599         line_wrap enum possessing three possible values.
7601         * termopts.h: Replace truncate_partial_width_windows with
7602         Vtruncate_partial_width_windows.
7604         * dispnew.c (direct_output_for_insert): Avoid direct output when
7605         inserting a space with word wrap on.
7607         * indent.c (compute_motion): Obey integer values of
7608         truncate-partial-width-windows.
7610         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7611         replacing truncate_partial_width_windows.
7612         (init_iterator): If Vtruncate_partial_width_windows is an integer,
7613         truncate only if the window width is below that integer.
7614         (start_display, resize_mini_window, produce_stretch_glyph)
7615         (display_string, move_it_in_display_line_to): Use line_wrap.
7616         (back_to_previous_visible_line_start, reseat_1): Reset
7617         string_from_display_prop_p.
7618         (display_line): Extend default face to end of line when wrapping.
7620 2008-06-24  Kim F. Storm  <storm@cua.dk>
7622         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7623         to wrap continued lines at word boundaries.
7625 2008-06-24  Jason Rumney  <jasonr@gnu.org>
7627         * font.c (Ffont_face_attributes): Multiply pixel size before point
7628         conversion to avoid multiplying rounding error.
7630 2008-06-23  Jason Rumney  <jasonr@gnu.org>
7632         * w32term.c (x_draw_glyph_string_background)
7633         (x_draw_glyph_string): Remove old bdf font code.
7635         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7637 2008-06-22  Kenichi Handa  <handa@m17n.org>
7639         * font.c (font_find_for_lface): Try the adstyle specified in
7640         the property of LFACE_FONT of LFACE (if any).
7642 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
7643             Ryo Yoshitake  <ryo@shiftmode.net>
7645         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7647 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
7649         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7650         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7651         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7652         (witness-emacs): Remove.
7653         (lisp, shortlisp): Move loaddefs.el earlier.
7654         (mostlyclean): Forget about witness-emacs.
7656 2008-06-22  Glenn Morris  <rgm@gnu.org>
7658         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7659         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7661 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
7663         * Makefile.in (PRECOMP): Remove.
7664         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7665         (witness-emacs): Run `compile-first'.
7666         (.el.elc): Use the new compile-onefile target.
7668 2008-06-21  Kenichi Handa  <handa@m17n.org>
7670         * xftfont.c (xftfont_open): Handle QCembolden only when
7671         FC_EMBOLDEN is defined.
7673 2008-06-21  Andreas Schwab  <schwab@suse.de>
7675         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7676         (.el.elc): Likewise.
7678 2008-06-21  Miles Bader  <miles@gnu.org>
7680         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7681         build dir, not the lisp source dir.
7683 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
7685         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7686         (bootstrapclean): Remove.
7687         (.el.elc): New rule.
7688         (PRECOMP): New var.
7689         (../lisp/subdirs.el): Remove.
7690         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7691         (witness-emacs): New target.
7692         (mostlyclean): Remove witness-emacs as well.
7693         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7694         Add witness-emacs dependency.
7696 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
7698         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7699         defined by the font.
7701 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7703         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7704         (bootstrap-clean): New target that keeps TAGS around.
7705         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7706         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7708 2008-06-20  Jason Rumney  <jasonr@gnu.org>
7710         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7711         Remove obsolete font code.
7713         * w32font.c (font_matches_spec): Use csb bitfield from font signature
7714         to determine language support.
7716 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7718         * sysdep.c (cfsetspeed): New fun extracted from the code.
7719         (cfmakeraw): Move before first use.
7721 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
7723         * sysdep.c (cfmakeraw): Provide fallback implementation.
7724         (serial_configure): Provide fallback implementation of cfsetspeed.
7726 2008-06-20  Kenichi Handa  <handa@m17n.org>
7728         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7729         the pattern.
7731         * fontset.c (fontset_from_font): Copy font_spec before changing
7732         the elements.
7734         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7736 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7738         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7739         for explicit `font' parameters.
7741         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7743 2008-06-19  Kenichi Handa  <handa@m17n.org>
7745         * frame.c: Include <ctype.h>.
7746         (x_set_font_backend): Allow spacing characters in the X resource
7747         for FontBackend.
7749 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7751         * w32fns.c, xfns.c (Qfont_param): New var.
7752         (syms_of_w32fns): Initialize it.
7753         (x_default_font_parameter): Record explicit `font' into
7754         `font-parameter'.
7756 2008-06-18  Kenichi Handa  <handa@m17n.org>
7758         * font.c (font_parse_xlfd): Fix previous change.
7759         (font_parse_fcname): Don't use :fc-unknown-spec.
7760         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7761         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7762         (font_add_log): Prepend the driver name to the resulting fonts.
7764         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
7765         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7766         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7768         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7769         (QCembolden): New variables.
7770         (syms_of_xftfont): DEFSYM them.
7771         (xftfont_open): Call XftFontMatch.  Don't trust the result of
7772         XftTextExtents8 if the pixel_size is less than 5.
7774 2008-06-18  Andreas Schwab  <schwab@suse.de>
7776         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7777         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7779 2008-06-18  Jason Rumney  <jasonr@gnu.org>
7781         * w32font.c (w32font_list, w32font_match): Add logging.
7783         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7785 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
7787         * font.c (font_parse_fcname): Store divider characters for
7788         unknown-spec list.  For known key symbols, intern using correct
7789         symbol name.
7791 2008-06-17  Kenichi Handa  <handa@m17n.org>
7793         * xfaces.c (realize_default_face): If the frame is not on window
7794         system, set the fontset of face to nil.
7796 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
7798         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7800 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
7802         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7803         (build_font_name_from_vector): Delete externs.
7805         * xfaces.c (struct font_name): Don't declare.
7807 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
7809         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7811 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
7813         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7815 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
7817         * font.c (Ffont_spec): Fix usage in docstring.
7818         (Ffont_face_attributes): Doc fix.
7820 2008-06-16  Andreas Schwab  <schwab@suse.de>
7822         * font.c (Ffont_face_attributes): Fix definition.
7824 2008-06-16  Jason Rumney  <jasonr@gnu.org>
7826         * font.h (font_style_symbolic_from_value): Remove.
7828         * font.c (font_style_symbolic_from_value): Remove.
7829         (font_style_symbolic): Revert to pre 2008-06-13 version.
7831         * w32font.c (w32_to_fc_weight): New function.
7832         (w32font_full_name, logfont_to_fcname): Use it.
7834 2008-06-16  Kenichi Handa  <handa@m17n.org>
7836         * font.c (font_check_object): Delete it.
7837         (font_clear_cache): Check if a font-object is alive.
7838         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
7839         font-object to nil.
7840         (font_close_object): Don't check FONT_CLOSE_OBJECT.
7841         (font_at): Don't call font_check_object.
7842         (Ffont_get): Return a symbol for :weight, :slant, and :width.
7844 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
7846         * puresize.h (BASE_PURESIZE): Increase to 1230000.
7848 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
7850         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7852 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
7854         * font.c (font_parse_fcname): Only one decimal point.
7855         (font_unparse_fcname): Handle data in family and foundry indices
7856         as symbols, not strings.
7857         (font_unparse_gtkname, Ffont_face_attributes): New functions.
7859         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7861         * font.h (font_unparse_gtkname): Add prototype.
7863 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
7865         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7867 2008-06-15  Andreas Schwab  <schwab@suse.de>
7869         * font.c (font_update_drivers): Fix crash when no drivers match.
7871 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
7873         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7874         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7876 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
7878         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7880 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7882         * process.c (Fserial_process_configure, Fprocess_send_eof):
7883         Use EQ to compare Lisp_Objects.
7885 2008-06-13  Jason Rumney  <jasonr@gnu.org>
7887         * w32fns.c (Fw32_select_font): Remove old font API function.
7889         * w32font.c (logfont_to_fcname): New function.
7890         (Fx_select_font): New font dialog function compatible with
7891         GTK/fontconfig version.
7893         * font.c (font_style_symbolic_from_value): New function.
7894         (font_style_symbolic): Use it.
7896         * font.h (font_style_symbolic_from_value): Declare new function.
7898 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
7900         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7901         <font-width-table>: Fix typos in docstrings.
7903 2008-06-13  Daniel Engeler  <engeler@gmail.com>
7905         These changes add serial port access.
7906         * process.c: Add HAVE_SERIAL.
7907         (Fdelete_process, Fprocess_status, Fset_process_buffer)
7908         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7909         (list_processes_1, select_wrapper, Fstop_process)
7910         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7911         (status_notify): Modify to handle serial processes.
7912         [HAVE_SERIAL] (Fserial_process_configure)
7913         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7914         New functions.
7915         * process.h (struct Lisp_Process): Add `type'.
7916         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7917         New functions.
7918         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7919         serial ports.
7920         (serial_open, serial_configure): New functions.
7921         * w32.h: Add FILE_SERIAL.
7922         (struct _child_process): Add ovl_read, ovl_write.
7924 2008-06-13  Kenichi Handa  <handa@m17n.org>
7926         * dispextern.h (enum lface_attribute_index): New member
7927         LFACE_FOUNDRY_INDEX.
7929         * font.c (font_score): Delete arg alternate_families.  Check only
7930         weight, slant, width, and size.  Ignore the difference of alias
7931         style symbols.
7932         (font_sort_entites): Adjust for the above change.  Reflect the
7933         order of font-driver to scores.
7934         (font_list_entities): Don't check alternate_familes here.
7935         (font_clear_prop): Handle foundry.
7936         (font_update_lface): Don't parse "foundry-family" form here.
7937         Handle FONT_FOUNDRY_INDEX.
7938         (font_find_for_lface): Likewise.  Handle alternate families here.
7939         If registry is nil, try iso8859-1 and ascii-0.
7940         (font_open_for_lface): Pay attention to size in ENTITY.
7941         (font_open_by_name): Simplify by calling font_load_for_lface.
7942         (free_font_driver_list): Delete it.
7943         (font_update_drivers): Preserve the order of backends.
7944         (syms_of_font): Setting of sort_shift_bits adjusted for the change
7945         of font_score and font_sort_entites.
7946         (font_update_sort_order): Likewise.
7948         * xfaces.c (LFACE_FOUNDRY): New macro.
7949         (check_lface_attrs): Check foundry.
7950         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7951         (merge_face_vectors): Check foundry.
7952         (merge_face_ref): Likewise.
7953         (Finternal_set_lisp_face_attribute): Likewise.
7954         (x_update_menu_appearance): Likewise.
7955         (Finternal_get_lisp_face_attribute): Likewise.
7956         (lface_hash): Likewise.
7957         (lface_same_font_attributes_p): Likewise.
7958         (x_supports_face_attributes_p): Likewise.
7959         (tty_supports_face_attributes_p): Likewise.
7960         (Finternal_set_alternative_font_family_alist): Intern strings.
7961         (Finternal_set_alternative_font_registry_alist): Downcase strings.
7962         (realize_default_face): Set LFACE_FOUNDRY (lface).
7964         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7965         font-driver at first.
7967         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7969 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
7971         * lread.c (Fload): Use xfree, not free on saved_doc_string.
7973 2008-06-12  Jim Meyering  <meyering@redhat.com>
7975         Make unexec_free handle NULL the same way free does.
7976         * unexmacosx.c (unexec_free): Ignore a NULL argument.
7978 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
7980         * character.h (CHAR_TO_BYTE_SAFE): New macro.
7981         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7982         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7983         (WEAK_ALIAS): Simplify.
7984         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7985         when searching a unibyte buffer.
7987 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
7989         * xfns.c (Fx_select_font): Rename from x-font-dialog.
7991 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
7993         * w32font.c: Include ctype.h.
7995 2008-06-11  Jason Rumney  <jasonr@gnu.org>
7997         * w32font.c (w32font_encode_char): Detect missing glyphs that are
7998         misreported as space.
7999         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8000         as aliases for registry iso10646-1.
8002 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8004         * buffer.c (clone_per_buffer_values): Skip `name'.
8006 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
8008         * font.c (font_parse_fcname): Fix last change; accept decimal
8009         points in font size.
8011 2008-06-10  Jason Rumney  <jasonr@gnu.org>
8013         * w32uniscribe.c (add_opentype_font_name_to_list):
8014         Skip non unicode fonts.
8016 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
8018         * xfns.c (Fx_font_dialog): New function.
8020         * gtkutil.c (xg_dialog_response_cb): Rename from
8021         xg_file_response_callback.
8022         (pop_down_dialog): Rename from pop_down_file_dialog.
8023         (xg_get_file_name): Callers changed.
8024         (xg_get_font_name): New function.
8026         * gtkutil.h (xg_get_font_name): Insert prototype.
8028 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
8030         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8031         x_underline_minimum_display_offset.
8032         (syms_of_xdisp): Declare it here rather than in xterm.c.
8033         * dispextern.h (underline_minimum_offset): Declare it.
8034         * w32term.c (x_draw_glyph_string): Use it.
8035         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8036         (syms_of_xterm): Don't declare it any more.
8037         (x_draw_glyph_string): Adjust to the new name.
8039 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>  (tiny change)
8041         * xterm.c (x_underline_minimum_display_offset): New var.
8042         (x_draw_glyph_string): Use it.
8043         (syms_of_xterm): Declare it.
8045 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
8047         * font.c (font_parse_fcname): Accept GTK-style font names too.
8049 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
8051         * dired.c (file_name_completion): Don't return t if the match is exact
8052         but with different capitalization.
8053         * minibuf.c (Ftry_completion): Simplify.
8055         * window.c (Vwindow_point_insertion_type): New var.
8056         (set_window_buffer): Use it.
8057         (syms_of_window): Init and export it to Lisp.
8059 2008-06-10  Kenichi Handa  <handa@m17n.org>
8061         * font.h (font_intern_prop): Prototype adjusted.
8063         * font.c (font_intern_prop): New arg force_symbol.
8064         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8065         Adjust for the change of font_intern_prop.
8067         * ftfont.c (ftfont_pattern_entity):
8068         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8069         (w32_registry):
8070         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8071         the change of font_intern_prop.
8073 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
8075         * w32menu.c (digest_single_submenu): Declare extern.
8077 2008-06-09  Jason Rumney  <jasonr@gnu.org>
8079         * w32term.c (x_make_frame_visible): Use alternate restore flags.
8081         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8082         (parse_single_submenu): Remove.
8083         (digest_single_submenu): Remove.
8084         (syms_of_w32menu): Don't initialise variables that have moved
8085         to menu.c.
8086         (set_frame_menubar): Sync with version in xmenu.c.
8087         (w32_menu_show): Sync with xmenu_show in xmenu.c.
8089         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8090         Make static again.
8092 2008-06-09  Jason Rumney  <jasonr@gnu.org>
8094         Changes to w32 files related to the move of common menu code
8095         to menu.c on 2008-06-08 by Chong Yidong.
8097         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8098         defs to w32gui.h.
8099         (single_keymap_panes, push_menu_item, push_menu_pane):
8100         Make globally visible.
8102         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8103         (local_free, malloc_widget_value, free_widget_value)
8104         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8105         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8106         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8107         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8108         (menu_items, menu_items_allocated, menu_items_used)
8109         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8110         (init_menu_items, finish_menu_items, discard_menu_items)
8111         (grow_menu_items, push_submenu_start, push_submenu_end)
8112         (push_left_right_boundary, push_menu_pane, push_menu_item)
8113         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8114         (free_menubar_widget_tree_value, parse_single_submenu)
8115         (update_submenu_strings): Remove functions.
8116         (xmalloc_widget_value): Remove and declare extern.
8118         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8119         (OBJ1): Build it.
8121         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8122         (local_heap, local_alloc, local_free, malloc_widget_value)
8123         (free_widget_value): Define here.
8125 2008-06-09  Kenichi Handa  <handa@m17n.org>
8127         * font.h (Qascii_0): Extern it.
8129         * font.c (Qascii_0): New variable.
8130         (syms_of_font): DEFSYM it.
8131         (font_open_by_name): If the registry "iso8859-1" fails, try also
8132         "ascii-0".
8134         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8136 2008-06-08  Kenichi Handa  <handa@m17n.org>
8138         * .gdbinit (xfont): New command.
8140 2008-06-08  Andreas Schwab  <schwab@suse.de>
8142         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8143         * Makefile.in (menu.o): Update dependencies.
8145         * Makefile.in (obj): Always add menu.o.
8146         * emacs.c (main): Always call syms_of_menu.
8147         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8149 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
8151         * Makefile.in: Compile menu.c.
8153         * lisp.h: Declare syms_of_menu.
8155         * emacs.c (main): Call syms_of_menu.
8157         * keyboard.h: Relocate platform-independent menu definitions from
8158         xmenu.c.
8160         * menu.c: New file.  Relocate platform-independent menu
8161         definitions from xmenu.c.  Suggested by Adrian Robert.
8163         * xmenu.c: Remove platform-independent menu definitions.
8164         (menu_items menu_items_inuse, menu_items_allocated)
8165         (menu_items_used, menu_items_n_panes)
8166         (menu_items_submenu_depth): Move to keyboard.h.
8167         (init_menu_items, finish_menu_items, unuse_menu_items)
8168         (discard_menu_items, restore_menu_items, save_menu_items)
8169         (grow_menu_items, push_submenu_start, push_submenu_end)
8170         (push_left_right_boundary, push_menu_pane, push_menu_item)
8171         (keymap_panes, single_keymap_panes, single_menu_item)
8172         (list_of_panes, list_of_items, find_and_call_menu_selection)
8173         (xmalloc_widget_value, free_menubar_widget_value_tree)
8174         (parse_single_submenu, digest_single_submenu)
8175         (update_submenu_strings): Move to menu.c.
8177 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
8179         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8181 2008-06-06  Miles Bader  <miles@gnu.org>
8183         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8184         face, not frame default.
8186 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
8188         * window.c (pop_up_windows, pop_up_frames)
8189         (display_buffer_reuse_frames, Vpop_up_frame_function)
8190         (Vdisplay_buffer_function, Veven_window_heights)
8191         (Vspecial_display_buffer_names, Vspecial_display_regexps)
8192         (Vspecial_display_function, Vsame_window_buffer_names)
8193         (Vsame_window_regexps, split_height_threshold)
8194         (Vsplit_window_preferred_function): Move those vars to window.el.
8195         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8196         (Fdisplay_buffer): Move those functions to window.el.
8197         (syms_of_window): Remove corresponding declarations.
8198         (display_buffer): New function.
8199         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8200         * dispnew.c (Flast_nonminibuf_frame): New function.
8201         * buffer.c (Fpop_to_buffer): Move to window.el.
8203 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
8205         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8207 2008-06-05  Kenichi Handa  <handa@m17n.org>
8209         * coding.c (detect_coding): Fix previous change.
8210         (detect_coding_system): Likewise.
8212 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
8214         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8216         * keymap.c (Vminibuffer_local_filename_must_match_map):
8217         Rename from Vminibuffer_local_must_match_filename_map.
8218         (syms_of_keymap):
8219         * minibuf.c (Fcompleting_read): Adjust accordingly.
8220         * commands.h: Rename declaration as well.
8222 2008-06-05  Kenichi Handa  <handa@m17n.org>
8224         * font.c (Ffont_spec): Don't use font_parse_family_registry for
8225         family name.
8226         (Ffont_put): Likewise.
8228         * fontset.c (fontset_find_font): Call font_open_for_lface with the
8229         current font-spec.
8231         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8232         is unspecified.
8234         * xfaces.c (realize_x_face): If the font-related face attributes
8235         are the same as those of default face, realize a new fontset from
8236         default->fontset.
8237         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8239 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
8241         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8242         (move_it_in_display_line): New wrapper.
8244         * window.c (window_scroll_pixel_based_preserve_x)
8245         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8246         (window_scroll_pixel_based, window_scroll_line_based):
8247         Use them to preserve column positions.
8248         (syms_of_window): Initialize them.
8250         * indent.c (Fvertical_motion): Extend first arg to allow passing an
8251         (HPOS . VPOS) pair.
8253         * dispextern.h (move_it_in_display_line): Declare.
8255 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
8257         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8258         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
8259         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
8261 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
8263         * window.c (Fset_window_parameter): Doc fix.
8264         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8266 2008-06-04  Joakim Verona  <joakim@verona.se>
8268         * window.h (struct window): Add new member window_parameters.
8270         * window.c (Fwindow_parameters, Fwindow_parameter)
8271         (Fset_window_parameter): New defuns.
8272         (syms_of_window): Defsubr the new defuns.
8273         (make_window): Initialize window_parameters to nil.
8275 2008-06-04  John Paul Wallington  <jpw@pobox.com>
8277         * eval.c (Fdefmacro): Doc fix.
8279 2008-06-04  Kenichi Handa  <handa@m17n.org>
8281         * coding.c (detect_coding): Fix handling of coding->head_ascii.
8282         Be sure to call setup_coding_system when we find a proper coding system.
8283         (detect_coding_system): Fix handling of coding->head_ascii.
8285 2008-06-03  Andreas Schwab  <schwab@suse.de>
8287         * font.c (font_prop_validate_spacing): Fix last change.
8289 2008-06-03  Kenichi Handa  <handa@m17n.org>
8291         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8292         (font_parse_fcname): Fix handling of unknown key.
8294         * xfont.c (xfont_list): Try an alias.
8296         * charset.c (char_charset): Return NULL if the arg charset_list is
8297         specified and C doesn't belong to any of them.
8299 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
8301         * font.c (font_pixel_size): Don't take cdr of an integer.
8303 2008-06-02  Jim Meyering  <meyering@redhat.com>
8305         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8306         * alloc.c (xfree): Return right away for a NULL arg.
8307         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8308         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8309         * mac.c (create_apple_event_from_event_ref): Likewise.
8310         (create_apple_event_from_drag_ref, cfstring_create_normalized):
8311         Likewise.
8312         * doprnt.c (doprnt1): Likewise.
8313         * frame.c (frame): Likewise.
8314         * keyboard.c (wipe_kboard): Likewise.
8315         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8316         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8317         * term.c (tty_default_color_capabilities, maybe_fatal)
8318         (delete_tty): Likewise.
8319         * w16select.c (string): Likewise.
8320         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8321         * w32bdf.c (w32_free_bdf_font): Likewise.
8322         * w32fns.c (w32_unload_font): Likewise.
8323         * w32font.c (w32font_close): Likewise.
8324         * window.c (size_window): Likewise.
8325         * xselect.c (receive_incremental_selection): Likewise.
8326         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8327         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8328         * w32.c (stat): Likewise.
8330         Remove useless if-before-free tests.
8331         * editfns.c (Fset_time_zone_rule): Likewise.
8332         * lread.c (nosuffix): Likewise.
8333         * ralloc.c (get_bloc): Likewise.
8334         * regex.c (reg_free): Likewise.
8335         * xftfont.c (xftfont_open, xftfont_close): Likewise.
8336         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8337         * xsmfns.c (smc_save_yourself_CB): Likewise.
8339 2008-06-02  Kenichi Handa  <handa@m17n.org>
8341         * font.c (font_find_for_lface): Handle float font size.
8342         (font_open_for_lface): Likewise.
8344         * xfaces.c (x_supports_face_attributes_p): Check face->font before
8345         comparing the properties.
8347 2008-06-01  Jason Rumney  <jasonr@gnu.org>
8349         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8350         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8351         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8352         Don't add empty script list.
8353         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8355 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
8357         * Makefile.in (dot, dotdot): Remove, update users.
8358         ".." has been used elsewhere in the file for a long time.
8359         (LIBXT_STATIC): Remove conditional based on unused variable.
8361 2008-06-01  Miles Bader  <miles@gnu.org>
8363         * xfaces.c (Vface_remapping_alist): New variable.
8364         (syms_of_xfaces): Initialize it.
8365         (enum named_merge_point_kind): New type.
8366         (struct named_merge_point): Add `named_merge_point_kind' field.
8367         (push_named_merge_point): Make cycle detection respect different
8368         named-merge-point kinds.
8369         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8370         Remove face-name alias resolution.
8371         (lface_from_face_name): New definition using
8372         `lface_from_face_name_no_resolve'.
8373         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8374         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8375         (get_lface_attributes): New definition that layers face-remapping on
8376         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
8377         (lookup_basic_face): New function.
8378         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8379         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8380         `get_lface_attributes'.
8381         (face_at_buffer_position): Use `lookup_basic_face' to lookup
8382         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
8383         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8385         * xdisp.c (init_iterator): Pass base_face_id through
8386         `lookup_basic_face' when we actually use it as a face-id.
8387         (handle_single_display_prop): Use `lookup_basic_face' to lookup
8388         DEFAULT_FACE_ID.
8390         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8391         lookup the initial face-id.
8393         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8395 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
8397         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8398         (Fremove_text_properties): Fix typos in docstrings.
8400 2008-05-31  Kenichi Handa  <handa@m17n.org>
8402         * font.c (font_list_entities): Fix the car part of data to be
8403         stored in the cache.
8405         * ftfont.c (ftfont_font_format): Don't use strcasestr.
8407 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
8409         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8410         Add a `test' argument so another predicate than `equal' can be used.
8411         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8412         (map_char_table): Remove unused vars `c' and `i'.
8413         * lisp.h (Foptimize_char_table): Adjust declaration.
8414         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8416 2008-05-30  Kenichi Handa  <handa@m17n.org>
8418         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8419         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8420         defined.
8422 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
8424         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8425         (Fmake_variable_frame_local): Disallow mixing buffer-local and
8426         frame-local settings for the same variable.
8428 2008-05-30  Kenichi Handa  <handa@m17n.org>
8430         * fontset.c (Ffont_info): Move to font.c.
8431         (syms_of_fontset): Delete defsubr of Sfont_info.
8433         * font.c (font_style_to_value, font_score): Delete casting of the
8434         args to xstcasecmp.
8435         (register_font_driver): Increment num_font_drivers only when
8436         registering the driver globally.
8437         (Ffont_info): Move from fontset.c.  Handle a font object too.
8438         (syms_of_font): Defsubr Sfont_info.
8440 2008-05-29  Kenichi Handa  <handa@m17n.org>
8442         * coding.h (enum define_coding_utf8_arg_index): New enum.
8443         (enum coding_attr_index): Change coding_attr_utf_16_bom to
8444         coding_attr_utf_bom.
8445         (enum utf_bom_type): Rename from utf_16_bom_type.
8446         (struct utf_16_spec): Adjust for the above change.
8447         (struct coding_system): Add utf_8_bom in `spec' union.
8449         * coding.c (CODING_UTF_8_BOM): New macro.
8450         (enum coding_category): Delete coding_category_utf_8, add
8451         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8452         coding_category_utf_8_sig.
8453         (CATEGORY_MASK_UTF_8): Delete it.
8454         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8455         (CATEGORY_MASK_UTF_8_SIG): New macros.
8456         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8457         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8458         CATEGORY_MASK_UTF_8_SIG.
8459         (CATEGORY_MASK_UTF_8): New macro.
8460         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8461         (detect_coding_utf_8): Check BOM.
8462         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8463         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8464         (encode_coding_utf_16): Likewise.
8465         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
8466         (detect_coding, detect_coding_system): Handle utf-8-auto.
8467         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8468         (syms_of_coding): Fix setting up of Vcoding_category_table.
8470 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
8472         * process.c (Faccept_process_output): If `millisec' is non-nil,
8473         `seconds' default to 0.
8474         (wait_reading_process_output): Also return non-nil if we read output
8475         from a non-running process.
8477 2008-05-29  Jason Rumney  <jasonr@gnu.org>
8479         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8480         `raster' specified.
8481         (add_font_entity_to_list): Allow non-opentype truetype fonts back
8482         in the uniscribe backend, but disallow any font that has no
8483         unicode subrange support.
8485 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
8487         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8488         Fix typos in docstrings.
8490 2008-05-29  Kenichi Handa  <handa@m17n.org>
8492         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8493         (Fx_family_fonts): Set frame correctly.
8495 2008-05-28  Jason Rumney  <jasonr@gnu.org>
8497         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8499 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8501         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8502         calling build_annotations.
8504 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
8506         * coding.c (Fdecode_coding_region, Fencode_coding_region)
8507         (Fencode_coding_string):
8508         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8509         <latin-extra-code-table>: Fix typos in docstrings.
8510         (syms_of_coding) <coding-system-alist>: Doc fix.
8511         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8513 2008-05-28  Kenichi Handa  <handa@m17n.org>
8515         * fontset.c (Ffont_info): Don't call font_close_object.
8517         * font.c (font_parse_family_registry): Use Ffont_put to validate
8518         foundry and family.
8519         (font_delete_unmatched): Don't check spacing.
8520         (font_list_entities): Add spacing to the spec to list fonts.
8522         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8523         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
8525         * coding.c (encode_coding_raw_text): Fix previous change.
8526         (encode_coding_object): When the dst_object is a buffer and is
8527         different from src_object, move gap to PT.
8529 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
8531         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8533 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
8535         * coding.c (encode_coding_raw_text): Set coding->produced_char for
8536         all branches.  Compute it differently.
8538         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8540 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
8542         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8543         into "else if () ... else ...".
8545 2008-05-27  Jason Rumney  <jasonr@gnu.org>
8547         * w32font.c (w32font_open_internal): Determine if glyph indices
8548         are likely to work here.
8550 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
8552         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8553         draw overlap glyphs with appropriate highlighting.
8555 2008-05-27  Kenichi Handa  <handa@m17n.org>
8557         * xfont.c (xfont_open): Fix calculation of font->average_width.
8559 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
8561         * casefiddle.c (casify_object): Try to guess better whether the
8562         argument is a byte or a char.
8564 2008-05-26  Andreas Schwab  <schwab@suse.de>
8566         * xselect.c (x_reply_selection_request): Properly handle format == 32.
8567         Always send multiples of format size.
8569         * xterm.c (x_set_frame_alpha): Fix type mismatch.
8571 2008-05-26  Jason Rumney  <jasonr@gnu.org>
8573         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8574         (compute_metrics): Don't set failure if we just cleared the cache.
8575         (w32_weight_table): Remove unused variable.
8576         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8577         backwards compatibility.
8579 2008-05-25  Kenichi Handa  <handa@m17n.org>
8581         * w32term.c (x_draw_glyph_string):
8582         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8584         * xfaces.c: Delete unused function prototypes.
8585         (xstrlwr, font_frame): Delete them.
8586         (clear_face_cache): Delete unused variable.
8588         * xftfont.c (xftfont_open): Delete unused variable.
8589         If underline_thickness is not 1, adjust underline_position.
8591         * ftxfont.c (ftxfont_open): Delete unused variable.
8593         * fontset.c (face_for_char): Optimize for the case of no charset
8594         property.
8596         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8597         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8598         (otf_open, font_otf_capability, generate_otf_features)
8599         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8600         Comment out by surrounding "#if 0" and "#endif" for the moment.
8601         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8602         (syms_of_font): Codes for accessing above commented out.
8604 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
8606         * w32proc.c: Include dispextern.h.
8608         * w32.c: Include dispextern.h.
8610 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
8612         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8613         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8614         Fix typos in docstrings.
8616 2008-05-23  Jason Rumney  <jasonr@gnu.org>
8618         * xsmfns.c: Remove includes that are already included by config.h.
8620 2008-05-23  Kenichi Handa  <handa@m17n.org>
8622         * charset.c (Qemacs, charset_emacs): New variables.
8623         (char_charset): Fix for non-Unicode characters.
8624         (syms_of_charset): Define charset_emacs.
8626         * w32term.c (x_draw_glyph_string): Be sure to update
8627         s->underline_thickness and s->underline_position.  Be sure to draw
8628         underline within the current line area.
8630         * xterm.c (x_draw_glyph_string): Be sure to update
8631         s->underline_thickness and s->underline_position.  Be sure to draw
8632         underline within the current line area.
8634         * fontset.c: Delete unused variables and add casting for char *
8635         throughout the file.
8636         (fontset_font): Try the fallback fonts of the current fontset
8637         before consulting the default fontset.
8639         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8641         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8643 2008-05-22  Jason Rumney  <jasonr@gnu.org>
8645         * font.c: Don't include strings.h.
8647         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8649         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8650         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8651         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8652         to call xstrcasecmp.
8654         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8656         * fontset.c (fs_query_fontset): Use xstrcasecmp.
8658         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8660         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8662 2008-05-22  Kenichi Handa  <handa@m17n.org>
8664         * puresize.h (BASE_PURESIZE): Increase to 1220000.
8666         * font.c (font_prop_validate_style): Adjust for the format
8667         change of font_style_table.
8669         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8670         two args.
8672         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8673         two args.
8675 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
8677         * minibuf.c (keys_of_minibuf): Delete.
8678         * lisp.h (keys_of_minibuf): Delete.
8679         * emacs.c (main): Don't call keys_of_minibuf.
8681 2008-05-22  Kenichi Handa  <handa@m17n.org>
8683         * ftfont.c (ftfont_resolve_generic_family): Rename from
8684         ftfont_list_generic_family.  Return a single family for each
8685         generic family.
8686         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8687         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8688         Call font_add_log.
8689         (ftfont_match): Call font_add_log.
8691         * font.h (Ffont_xlfd_name): EXFUN adjusted.
8692         (FONT_DEBUG): Define it.
8693         (font_add_log): Extern it.
8694         (font_assert): Rename from xassert.
8696         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8697         (xfont_list_family): Call font_add_log.
8698         (xfont_match): Likewise.
8699         (memq_no_quit): Delete.
8701         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8702         call of Ffont_xlfd_name.
8704         * xfaces.c (struct table_entry, slant_table, weight_table)
8705         (swidth_table): Move to font.c.
8707         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
8708         xassert are changed to font_assert.  Delete many unused variables.
8709         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8710         New variables.
8711         (struct table_entry): Move from xfaces.c and modified.
8712         (weight_table, slant_table, width_table): Move from xfaces.c and
8713         contents adjusted for the change of struct table_entry.
8714         (font_style_to_value, font_style_symbolic): Adjust for the
8715         format change of font_style_table.
8716         (font_parse_family_registry): Don't overwrite existing foundry and
8717         family of font_spec.
8718         (font_score): Fix calculation of diff for sizes.
8719         (font_sort_entites): Call font_add_log.
8720         (font_delete_unmatched): Return a newly created list.
8721         (font_list_entities): Fix previous change.  Call font_add_log.
8722         (font_matching_entity, font_open_entity, font_close_entity):
8723         Call font_add_log.
8724         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8725         (Finternal_set_font_style_table): Delete.
8726         (BUILD_STYLE_TABLE): New macro.
8727         (build_style_table): New function.
8728         (Vfont_log, font_log_env_checked): New variables.
8729         (font_add_log): New function.
8730         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8731         Declare Lisp variables "font-weight-table", "font-slant-table",
8732         "font-width-table", and "font-log".  Initialize font_style_table.
8734 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
8736         * xterm.c (x_set_frame_alpha): Move declarations before statements.
8738 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
8739             Ryo Yoshitake  <ryo@shiftmode.net>
8741         * frame.c (Qalpha): Add a new frame parameter `alpha'.
8742         (Vframe_alpha_lower_limit): New variable.
8743         (x_set_alpha): New function.
8745         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8747         * xfns.c (x-create-frame, Qalpha):
8748         Initialize the frame parameter `alpha'.
8749         * xterm.c (OPAQUE, OPACITY): New.
8750         (x_set_frame_alpha): New function.
8751         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8753         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8754         * w32fns.c (w32_frame_parm_handlers): Likewise.
8756 2008-05-20  Jason Rumney  <jasonr@gnu.org>
8758         * w32font.c (add_font_entity_to_list): Don't add non-opentype
8759         truetype fonts to opentype list.
8761 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
8763         * fontset.c (Ffontset_info): Doc fix.
8764         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8765         <ignore-relative-composition>: Fix typos in docstrings.
8767         * font.c (syms-of-font) <font-encoding-alist>:
8768         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8769         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8770         (Ffont_otf_alternates): Doc fixes.
8772 2008-05-20  Kenichi Handa  <handa@m17n.org>
8774         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
8775         font.h through out the file.
8776         (FONT_DRIVERS): Rename from FONTOBJ.
8777         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
8778         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8780         * emacs.c (main): Call syms_of_font unconditionally.
8782         * font.h (find_font_encoding): Extern it.
8784         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8785         fontset.c.
8786         (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8787         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8788         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8789         only when HAVE_WINDOW_SYSTEM is defined.
8790         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8791         when HAVE_WINDOW_SYSTEM is defined.
8793         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8794         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8796         * xfaces.c: Include font.h unconditionally.
8797         (merge_face_ref, merge_face_vectors)
8798         (Finternal_set_lisp_face_attribute): Cancel the previous change.
8800 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
8802         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8803         indirect_variable.
8804         * eval.c (lisp_indirect_variable): New fun.
8805         (Fuser_variable_p): Use it.
8807 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8809         * lisp.h (indirect_variable):
8810         * data.c (indirect_variable, let_shadows_buffer_binding_p):
8811         Use Lisp_Symbol pointers rather than Lisp_Object.
8812         Adjust callers.
8813         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8814         To this end, change calling-convention.
8816         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8817         if some non-hidden buffers are selected by string&pred.
8819 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
8821         * process.c (wait_reading_process_output): Always check status
8822         when in batch mode.
8824 2008-05-19  Kenichi Handa  <handa@m17n.org>
8826         * font.c (font_list_entities): Fix handling of cache.
8827         (font_matching_entity): Likewise.
8829         * ftfont.c (cs_iso8859_1): Delete.
8830         (ft_face_cache): New variable.
8831         (struct ftfont_info): New member fc_charset_idx.
8832         (ftfont_build_basic_charsets): Delete.
8833         (fc_charset_table): New variable.
8834         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
8835         . FC_CHARSET_IDX) as :font-entity property in the font entity.
8836         Callers changed.
8837         (ftfont_lookup_cache, ftfont_get_charset): New functions.
8838         (ftfont_spec_pattern): New argument fc_charset_idx.
8839         Check registry more rigidly.  Change callers.
8840         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8841         change of :font-entity property of the font.
8843         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8844         property of the font.
8846 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
8848         * coding.c (Fcoding_system_p): Rename argument to match docstring.
8849         (Funencodable_char_position, Fcheck_coding_systems_region)
8850         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8851         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8852         (Ffind_operation_coding_system, Fset_coding_system_priority)
8853         (Fcoding_system_eol_type): Doc fixes.
8855 2008-05-17  Glenn Morris  <rgm@gnu.org>
8857         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8859 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
8861         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8862         and st_gid.
8864         * frame.c (Fdelete_frame): Don't call font_update_drivers if
8865         HAVE_WINDOW_SYSTEM is not defined.
8867         * xfaces.c (merge_face_ref, merge_face_vectors)
8868         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8869         HAVE_WINDOW_SYSTEM is defined.
8870         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8872 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8874         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8876 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8878         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8880 2008-05-15  Kenichi Handa  <handa@m17n.org>
8882         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8883         preference.
8885 2008-05-15  Glenn Morris  <rgm@gnu.org>
8887         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8889 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
8891         * fns.c (init_fns): Don't initialize weak_hash_tables here.
8892         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
8894         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8896 2008-05-15  Kenichi Handa  <handa@m17n.org>
8898         * ftfont.c (ftfont_list): Downcase family name to check generic
8899         families.
8901         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8902         font-spec for QCfont value.
8904         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8905         buffer.  Check the return value of it.
8907 2008-05-14  Jason Rumney  <jasonr@gnu.org>
8909         * w32term.c (w32_get_glyph_overhangs): Remove.
8910         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8912 2008-05-14  Kenichi Handa  <handa@m17n.org>
8914         * font.c (font_prop_validate): Make nil a valid value.
8915         (font_clear_cache): Check if the cached vector of entities is nil
8916         or not.
8918 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8920         * emacs.c (main_thread): Conditionalize on
8921         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8922         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8924         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8925         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8926         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8928 2008-05-14  Kenichi Handa  <handa@m17n.org>
8930         * coding.c (detect_coding_iso_2022): Ignore a coding category that
8931         has no corresponding coding system.
8933 2008-05-14  Jason Rumney  <jasonr@gnu.org>
8935         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8937         * w32font.h (w32font_open_internal): Update declaration.
8939         * w32font.c (w32font_open_internal): Change last argument from
8940         w32font_info struct to font object.  Fill in font object from
8941         font_entity.  Get Outline metrics if possible.  Use them to
8942         calculate underline position and thickness.  Use xlfd name as name
8943         property.  Don't set codepage.
8944         (w32font_open): Pass font_object to w32font_open_internal.  Don't
8945         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8946         (w32font_draw): Use s->font.
8947         (clear_cached_metrics): Don't clear non-existent blocks.
8949         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8950         font was not found.
8951         (x_draw_glyph_string): Use underline position and thickness from font.
8953         * w32uniscribe.c (uniscribe_open): Pass font_object to
8954         w32font_open_internal.
8956 2008-05-14  Kenichi Handa  <handa@m17n.org>
8958         These changes are to delete all legacy font-handling codes, and
8959         make Emacs use only font-backends.
8961         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8962         (frame.o, image.o, print.o): Depend on $(FONTSRC).
8964         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8966         * charset.h (Vcharset_non_preferred_head)
8967         (Vcurrent_iso639_language): Extern them.
8969         * charset.c (Vcharset_non_preferred_head): New variable.
8970         (Vcurrent_iso639_language): New variable.
8971         (syms_of_charset): Declare it as a Lisp variable.
8972         (char_charset): Don't check non preferred charsets.  As a last
8973         resort, return charset_unicode.
8974         (Fset_charset_priority): Update Vcharset_non_preferred_head.
8976         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8977         conditionals.  Don't check enable_font_backend.  Delete all codes
8978         used only when USE_FONT_BACKEND is not defined.
8980         * dispextern.h (struct glyph_string): Change type of `font' to
8981         `struct font *'.
8982         (struct glyph_string): New member underline_position and
8983         underline_thickness.
8984         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8985         (struct face): Change type of `font' to `struct font *'.  Remove
8986         members `font_name', `font_info_id'.
8987         (per_char_metric, encode_char): Delete externs.
8988         (calc_pixel_width_or_height): Adjust the prototype.
8990         * emacs.c (enable_font_backend): Delete extern.
8991         (main): Don't set enable_font_backend.  Don't check the command
8992         line argument "-disable-font-backend".
8994         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8995         (enum font_property_index): New members FONT_DPI_INDEX,
8996         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8997         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8998         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
8999         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9000         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9001         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9002         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9003         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9004         (struct font_spec, struct font_entity): New structs.
9005         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9006         (struct font): Many members from old "struct font_info" moved to
9007         here.  Members font and entity deleted.
9008         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9009         the new font-related objects.
9010         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9011         (CHECK_FONT_GET_OBJECT): Likewise.
9012         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9013         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9014         (struct font_driver): New members case_sensitive anc check.  Type
9015         of the member list and open changed.
9016         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9017         (font_symbolic_width, font_find_object, font_get_spec)
9018         (font_set_lface_from_name): Delete extern.
9019         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9021         * font.c: Include <strings.h>.
9022         (enable_font_backend): Delete it.
9023         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9024         (CHECK_VALIDATE_FONT_SPEC): Delete it.
9025         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9026         (null_string): Delete it.
9027         (null_vector): Make it static.
9028         (font_family_alist): Delete it.
9029         (Qnormal): Extern it.
9030         (QCextra, QClanguage): Delete it.
9031         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9032         (font_make_spec, font_make_entity, font_make_object)
9033         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
9034         the string.  Callers changed.
9035         (font_pixel_size): Adjusted for the format change of font-related
9036         objects.
9037         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9038         (font_style_to_value, font_style_symbolic): New function.
9039         (build_font_family_alist): Delete it.
9040         (font_registry_charsets): Use Fassoc_string instead of
9041         assq_no_quit.
9042         (font_prop_validate_symbol): Don't return null_string.
9043         (font_prop_validate_style): Adjusted for the change of
9044         style-related values in a font vector.
9045         (font_property_table): Delete entries for QClanguage and
9046         QCantialias, add entries for QCavgwidth.
9047         (get_font_prop_index): Delete the 2nd argument FROM.
9048         (font_prop_validate): Arguments changed.
9049         (font_put_extra): Adjusted for the change of font-related objects.
9050         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9051         (font_parse_fcname, font_unparse_fcname)
9052         (font_prepare_composition): Likewise.
9053         (font_parse_family_registry): Renamed from font_merge_old_spec.
9054         (otf_open): Delete the 1st arg entity.
9055         (font_otf_capability): Adjusted for the above change.
9056         (font_score): New arg alternate_families.  Adjusted for the change
9057         of font-related objects.
9058         (font_sort_entites): New arg best_only.
9059         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9060         Delete them.
9061         (font_match_p): Check alternate families.
9062         (font_find_object): Delete it.
9063         (font_check_object): New function.
9064         (font_clear_cache): Adjusted for the change of font-related objects.
9065         (font_delete_unmatched): New arg.
9066         (font_list_entities): Call font_driver->list with a spec that
9067         doesn't specify style-related properties.
9068         (font_matching_entity): Arguments changed.  Caller changed.
9069         (font_open_entity): Adjusted for the change of font-related objects.
9070         (font_close_object, font_has_char, font_encode_char)
9071         (font_get_name, font_get_spec): Likewise.
9072         (font_spec_from_name, font_clear_prop, font_update_lface):
9073         New functions.
9074         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9075         (font_prepare_for_face, font_done_for_face, font_open_by_name)
9076         (font_at): Adjusted for the change of font-related objects.
9077         (font_range): New function.
9078         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9079         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9080         (Fcopy_font_spec, Fmerge_font_spec): New function.
9081         (Ffont_family_list): Renamed from list-families.
9082         (Finternal_set_font_style_table): Arguments changed.
9083         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9084         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9085         change of font-related objects.
9086         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
9088         * fontset.h (struct font_info): Delete it.  Most members go to
9089         struct font.
9090         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9091         (enum FONT_SPEC_INDEX): Delete it.
9092         (font_info, list_fonts_func, load_font_func, query_font_func)
9093         (set_frame_fontset_func, find_ccl_program_func)
9094         (get_font_repertory_func, new_fontset_from_font_name): Delete
9095         externs.
9096         (fontset_from_font_name): Extern it.
9097         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9098         (FONT_INFO_FROM_FACE): Deleted.
9099         (face_for_font): Adjust prototype.
9101         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9102         conditionals.  Don't check enable_font_backend.  Delete all codes
9103         used only when USE_FONT_BACKEND is not defined.
9104         (get_font_info_func, list_font_func, load_font_func)
9105         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9106         (get_font_repertory_func): Delete them.
9107         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9108         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9109         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9110         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9111         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9112         (fontset_compare_rfontdef): New function.
9113         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
9114         rfont-defs by qsort.  Adjusted for the change of font-group vector.
9115         (load_font_get_repertory): Deleted.
9116         (fontset_find_font): Use new macros to ref/set elements of
9117         font-def and rfont-def.
9118         (fontset_font): Fix the timing of remembering that no font for C.
9119         (free_face_fontset): Do nothing if the face has no fontset.
9120         (face_suitable_for_char_p): Use new macros to ref/set elements of
9121         rfont-def.
9122         (face_for_char): Likewise.  Call face_for_char with font_object.
9123         (fs_load_font): Delete.  Delete #pragma surrounding it.
9124         (fs_query_fontset): Use strcasecmp instead of strcmp.
9125         (generate_ascii_font_name): Adjusted for the format change of
9126         font-spec.
9127         (Fset_fontset_font): Likewise.  Use new macros to set elements of
9128         font-def.
9129         (Fnew_fontset): Use font_unparse_xlfd to generate
9130         FONTSET_ASCII (fontset).
9131         (new_fontset_from_font_name): Deleted.
9132         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
9133         a fontset is already created for the font.  FIx updating of
9134         Vfontset_alias_alist.
9135         (fontset_ascii_font): Deleted.
9136         (Ffont_info): Adjusted for the format change of font-spec.
9137         (Finternal_char_font): Likewise.
9138         (Ffontset_info): Likewise.
9139         (syms_of_fontset): Don't check load_font_func.
9141         * fns.c (internal_equal): Handle PREV_FONT.
9143         * frame.h: Delete USE_FONT_BACKEND conditional.
9145         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9146         conditionals.  Don't check enable_font_backend.  Delete all codes
9147         used only when USE_FONT_BACKEND is not defined.
9148         (x_set_font): Call x_new_font, not x_new_fontset2.
9149         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9150         already set for the frame.
9152         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
9153         a font-entity by font_make_entity.  Use font_intern_prop instead
9154         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
9155         font property.  If a font is scalable, set avgwidth property to 0.
9156         Set font-entity property by font_put_extra.
9157         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9158         (ffont_driver): Adjusted for the change of struct font_driver.
9159         (ftfont_spec_pattern): New function.
9160         (ftfont_list): Return a list, not vector.
9161         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9162         (ftfont_list_family): Don't downcase names.
9163         (ftfont_free_entity): Deleted.
9164         (ftfont_open): Return a font-object.  Adjusted for the change of
9165         struct font.  Get underline_thickness and underline_position from
9166         font property.  Don't update dpyinfo->smallest_font_height and
9167         dpyinfo->smallest_char_width.
9168         (ftfont_close): Don't free `struct font'.
9169         (ftfont_has_char): Adjusted for the format change of font-entity.
9170         (ftfont_encode_char, ftfont_text_extents): Likewise.
9172         * ftxfont.c (ftxfont_list): Return a list, not vector.
9173         (ftxfont_open): Return a font-object.  Adjusted for the change of
9174         struct font.  Get underline_thickness and underline_position from
9175         font property.  Don't update dpyinfo->smallest_font_height and
9176         dpyinfo->smallest_char_width.
9177         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9178         (ftxfont_draw): Adjusted for the change of struct font.
9180         * image.c (image_ascent): Don't include "charset.h".  Include
9181         "character.h" and "font.h".
9183         * lisp.h (enum pvec_type): New member PREV_FONT.
9184         (Fassoc_string): EXFUN it.
9186         * print.c: Include font.h.
9187         (print_object): Handle font-related objects.
9189         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9190         conditionals.  Don't check enable_font_backend.  Delete all codes
9191         used only when USE_FONT_BACKEND is not defined.
9192         (handle_auto_composed_prop): Do nothing if it->f is not on a
9193         window system.  Check how many following characters can be
9194         displayed by the same font.
9195         (calc_pixel_width_or_height): Type of the 4th arg is changed to
9196         'struct font *'.
9197         (get_char_face_and_encoding): Assign the whole encoding task to
9198         the `encode-char' method of a font driver.
9199         (fill_composite_glyph_string): Adjusted for the change of `struct
9200         face' and `struct glyph_string'.
9201         (fill_glyph_string): Likewise.
9202         (get_per_char_metric): Arguments changed.
9203         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9204         and `struct glyph_string'.
9205         (produce_stretch_glyph, calc_line_height_property)
9206         (x_produce_glyphs): Likewise.
9208         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9209         conditionals.  Don't check enable_font_backend.  Delete all codes
9210         used only when USE_FONT_BACKEND is not defined.  Use
9211         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9212         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9213         (Qp): Extern them.
9214         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9215         Deleted.
9216         (struct font_name): Deleted.
9217         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9218         (compare_fonts_by_sort_order): New function.
9219         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9220         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9221         Deleted.
9222         (Fx_family_fonts): Use font_list_entities, and sort fonts by
9223         compare_fonts_by_sort_order.
9224         (Fx_font_family_list): Call Ffont_family_list.
9225         (face_numeric_value, face_numeric_weight, face_numeric_slant)
9226         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9227         (face_symbolic_slant, face_symbolic_swidth)
9228         (split_font_name_into_vector, build_font_name_from_vector)
9229         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9230         (font_rescale_ratio, split_font_name, build_font_name)
9231         (free_font_names, sort_fonts, x_face_list_fonts)
9232         (face_font_available_p, sorted_font_list, cmp_font_names)
9233         (font_list_1, concat_font_list, font_list, remove_duplicates):
9234         Deleted.
9235         (Fx_list_fonts): Use Ffont_list.
9236         (LFACE_AVGWIDTH): Deleted.
9237         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
9238         by FONTP.
9239         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9240         (set_lface_from_font_name): Delete it.
9241         (set_lface_from_font): Renamed from
9242         set_lface_from_font_and_fontset.  Caller changed.  Don't set
9243         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
9244         for face.
9245         (merge_face_vectors): Copy font-spec if necessary.
9246         Clear properties of the font-spec if necessary.
9247         (merge_face_ref): Clear properties of the font-spec if necessary.
9248         (Finternal_set_lisp_face_attribute): Likewise.
9249         (set_font_frame_param): Use font_load_for_lface to load a
9250         font-object, and call Fmodify_frame_parameters with it.
9251         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
9252         font name by Ffont_xlfd_name.
9253         (Finternal_lisp_face_attribute_values): Don't check QCweight,
9254         QCslant, and QCwidth.
9255         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9256         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9257         Compare fonts by EQ.
9258         (lookup_non_ascii_face): Deleted.
9259         (face_for_font): The 2nd argument changed.
9260         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9261         Check atomic font properties by case insensitive.
9262         (realize_non_ascii_face): Set face->overstrike correctly.
9263         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
9264         (dump_realized_face): Get font name from
9265         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
9267         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9268         conditionals.  Don't check enable_font_backend.  Delete all codes
9269         used only when USE_FONT_BACKEND is not defined.
9270         (xic_create_xfontset): Original code deleted and renamed from
9271         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
9272         (x_make_gc): Don't set GCFont in GCs.
9273         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9274         opened by "fixed".
9275         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9276         find_ccl_program_func, query_font_func, set_frame_fontset_func,
9277         get_font_repertory_func.
9279         * xfont.c: Include <stdlib.h> and "ccl.h".
9280         (struct xfont_info): New structure.
9281         (xfont_query_font): Deleted.
9282         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9283         moved from xterm.c.
9284         (xfont_driver): Adjusted for the change of struct font_driver.
9285         (compare_font_names): New function.
9286         (xfont_list_pattern): Sort font names case insensitively.  Make
9287         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
9288         (xfont_list): Return a list, not vector.
9289         (xfont_match): If the font doesn't have QCname property, generate
9290         a name from the other font properties.
9291         (xfont_open): Return a font-object.  Adjusted for the change of
9292         struct font.  Get underline_thickness and underline_position from
9293         font property.  Don't update dpyinfo->smallest_font_height and
9294         dpyinfo->smallest_char_width.
9295         (xfont_close): Don't free struct font.
9296         (xfont_prepare_face): Adjusted for the change of struct font.
9297         (xfont_done_face): Deleted.
9298         (xfont_has_char): Adjusted for the change of struct font.
9299         (xfont_encode_char, xfont_draw): Likewise.
9300         (xfont_check): New function.
9302         * xftfont.c (xftfont_list): Adjusted for the change of `list'
9303         callback function.
9304         (xftfont_match): Adjusted for the format change of font-entity.
9305         (xftfont_open): Adjusted for the format change of font-entity and
9306         font-object.  Adjusted for the change of struct font.  Return a
9307         font-object.  Don't update dpyinfo->smallest_font_height and
9308         dpyinfo->smallest_char_width.
9309         (xftfont_close): Block input while calling XftFontClose.
9310         (xftfont_prepare_face): Don't block input while calling
9311         xftfont_get_colors.  Adjusted for the change of struct font.
9312         (xftfont_shape): Return value of error case fixed.
9314         * xrdb.c (x_load_resources): Don't setup a fontset resource.
9316         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9317         conditionals.
9318         (FONT_WIDTH): Return (f)->max_width.
9319         (struct x_display_info): Delete member `font'.
9320         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9321         (x_find_ccl_program, x_get_font_repertory): Delete externs.
9322         (struct x_output): Change type of `font' to `struct font *'.
9324         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9325         conditionals.  Don't check enable_font_backend.  Delete all codes
9326         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
9327         (x_per_char_metric, x_encode_char): Deleted.
9328         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9329         (x_compute_glyph_string_overhangs): Adjusted for the change of
9330         `struct face'.
9331         (x_draw_glyph_string_foreground)
9332         (x_draw_composite_glyph_string_foreground): Likewise.
9333         (x_draw_glyph_string): Likewise.  Use font->underline_position and
9334         font->underline_thickness.
9335         (x_new_font): Renamed from x_new_fontset2.
9336         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9337         (x_check_font): Call `check' method of a font driver.
9338         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9339         (x_query_font, x_get_font_repertory): Deleted.
9340         (x_find_ccl_program): Renamed and moved to xfont.c.
9341         (x_redisplay_interface): Adjusted for the change of `struct
9342         redisplay_interface'.
9344         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9345         conditionals.  Don't check enable_font_backend.  Delete all codes
9346         used only when USE_FONT_BACKEND is not defined.  Surround non-used
9347         code by "#ifdef OLD_FONT" and "endif".
9348         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9350         * w32font.h (struct w32font_info): New member.
9351         (FONT_COMPAT): New macro.
9352         (w32font_open_internal): Prototype adjusted.
9354         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9355         OLD_FONT" and "endif".
9357         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9358         conditionals.  Don't check enable_font_backend.  Delete all codes
9359         used only when USE_FONT_BACKEND is not defined.
9360         (w32font_open): Return a font-object.  Make a font-object by
9361         font_make_object.  Adjusted for the change of struct w32font_info.
9362         (w32font_close): Don't free struct font.  Adjusted for the change
9363         of struct w32font_info.
9364         (w32font_encode_char, w32font_text_extents, w32font_draw):
9365         Adjusted for the change of struct w32font_info.
9366         (w32font_draw): Likewise.
9367         (w32font_list_internal): Return a list, not vector.
9368         (w32font_open_internal): Change the 4th arg to font-object.
9369         Adjusted for the change of struct w32font_info and font-object format.
9370         (add_font_name_to_list): Don't downcase names.
9371         (w32_enumfont_pattern_entity): Make a font-entity by
9372         font_make_entity.  Adjusted for the format change of font-entity.
9373         Use FONT_SET_STYLE to set a style-related font property.  If a
9374         font is scalable, set avgwidth property to 0.  Set font-entity
9375         property by font_put_extra.
9376         (font_matches_spec): Adjusted for the format change of font-entity.
9377         (w32_weight_table, w32_decode_weight): New variables.
9378         (w32_encode_weight): New function.
9379         (fill_in_logfont): Adjusted for the format change of font-spec.
9380         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9381         weight value.
9382         (w32font_driver): Adjusted for the change of struct font_driver.
9384         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9385         conditionals.  Don't check enable_font_backend.  Surround non-used
9386         code by "#ifdef OLD_FONT" and "endif".
9387         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9388         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9390         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9391         conditionals.  Don't check enable_font_backend.  Delete all codes
9392         used only when USE_FONT_BACKEND is not defined.  Surround non-used
9393         code by "#ifdef OLD_FONT" and "endif".
9395         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9396         (uniscribe_open): Return value changed to font-object.
9397         Adjusted for the format change of font-object.
9398         (uniscribe_otf_capability): Adjusted for the change of struct font.
9399         (add_opentype_font_name_to_list): Don't downcase names.
9400         (uniscribe_font_driver): Adjusted for the change of struct
9401         font_driver.
9403 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
9405         * dispnew.c (update_frame_1): Check if tty output is still valid
9406         before flushing it.
9408 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
9410         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9411         to Gtk+ menus.
9413 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
9415         * dired.c (file_name_completion): Tweak the code so as to always do it
9416         in a single pass.  Tighten the scope of some variables.
9418         * dired.c (Qdefault_directory): New var.
9419         (file_name_completion): Use it instead of Fexpand_file_name.
9420         (syms_of_dired): Initialize it.
9422 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9424         * fileio.c (double_dollars): Remove dead code.
9426 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
9428         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9429         Mention w32-get-true-file-attributes in doc string.
9431         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9433 2008-05-09  Glenn Morris  <rgm@gnu.org>
9435         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9436         2008-04-23.
9438 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
9440         Support for reporting owner and group of each file on MS-Windows:
9441         * dired.c (stat_uname, stat_gname): New functions, with special
9442         implementation for w32.
9443         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9445         * w32.c: Rename the_passwd_* to dflt_passwd_*.
9446         (dflt_group_name): New static variable.
9447         (dflt_group): Rename from the_group.
9448         (init_user_info): Init dflt_group fields.  Get user's group name
9449         from LookupAccountSid.
9450         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9451         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9452         New initialization states.
9453         (globals_of_w32): Initialize them to zero.  Initialize the default
9454         group name to "None".
9455         (GetFileSecurity_Name): New global var, the name of the function
9456         to call for GetFileSecurity.
9457         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9458         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9459         (get_file_security, get_security_descriptor_owner)
9460         (get_security_descriptor_group, is_valid_sid)
9461         (get_file_security_desc, get_rid, get_name_and_id)
9462         (get_file_owner_and_group): New functions.
9463         (stat): Use get_file_security_desc and get_file_owner_and_group to
9464         report the owner and primary group of each file.  Don't ignore the
9465         high 32 bits of file's size, now that st_size is 64-bit wide.
9466         Fix test when to get true file attributes.
9467         (init_user_info): Use get_rid instead of equivalent inline code.
9468         (fstat): Don't ignore the high 32 bits of file's size.
9470 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
9472         * image.c (png_load): Use correct bit-depth for setting background
9473         color.
9475 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
9477         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9478         epa-hook.elc.
9480 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
9482         * font.c (Ffont_match_p): Don't use `iff' in docstring.
9484 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
9486         * macfns.c (Fx_create_frame): Make a copy of frame parameters
9487         because the original parameters are in pure storage now.
9488         (mac_window): Remove unused params.  Update callers.
9490 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
9492         * lread.c (substitute_object_recurse): Use lower-level primitives.
9493         Don't signal errors when traversing sub-char-tables.
9494         Don't loop over all the possible characters when traversing char-tables.
9496         * print.c (print_preprocess): Add sub-char-tables to the print-table,
9497         just like we do in print.c.
9499 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
9501         * minibuf.c (Ftry_completion): Remove code left over from when we used
9502         scmp instead of Fcompare_strings.
9504 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
9506         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9508 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9510         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9511         Create bitmap context in native byte order.
9513         * macterm.c (XDrawLine)
9514         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9515         context in native byte order.
9517 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9519         * config.in: Regenerate.
9521         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9522         New definitions for Image I/O support.
9523         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9524         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9525         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9526         (mac_data_provider_release_data, image_load_image_io)
9527         [USE_MAC_IMAGE_IO]: New functions.
9528         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9529         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9530         (init_image_func_pointer) [MAC_OSX]: Remove function.
9531         (image_load_quartz2d) [MAC_OSX]: Check availability of
9532         CGImageCreateWithPNGDataProvider at compile time.
9533         Use lowercase `false' for boolean constant.
9534         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9535         Use image_load_image_io.
9536         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9537         Don't check MyCGImageCreateWithPNGDataProvider.
9538         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9539         Don't call init_image_func_pointer.
9541         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9543         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9544         Make variable non-static.
9545         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9546         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9548         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9549         (RED_FROM_ULONG): Mask off higher bits.
9550         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9552         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9553         Include AvailabilityMacros.h.
9554         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9555         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9557 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
9559         * chartab.c (Fset_char_table_range): If range is t, really set all
9560         chars to that value.
9562 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
9564         * dired.c (Ffile_attributes): Don't allow the device number become
9565         negative.
9567 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
9569         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9571 2008-05-02  Juri Linkov  <juri@jurta.org>
9573         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9574         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9575         DEFAULT argument as a list of default values in docstrings.
9577 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
9579         * puresize.h (BASE_PURESIZE): Increase to 1210000.
9581 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
9583         * dispnew.c (change_frame_size_1): Preserve small windows when
9584         shrinking frames by calling set_window_height|width with third
9585         arg 2.
9587         * window.h (struct window): Replace field too_small_ok by field
9588         resize_proportionally.
9590         * window.c (make_window): Initialize resize_proportionally.
9591         (enlarge_window): Temporarily set resize_proportionally to make
9592         sure that shrink_windows does scale the window proportionally.
9593         (shrink_windows): When window has resize_proportionally set try
9594         to shrink it proportionally by stealing from other windows.
9595         (struct saved_window, Fset_window_configuration)
9596         (compare_window_configurations): Handle resize_proportionally.
9597         (WINDOW_TOTAL_SIZE): New macro.
9598         (window_min_size, shrink_windows, size_window): Use it.
9599         (check_min_window_sizes): Remove.  Invalid values of
9600         window-min-height|width are handled by window_min_size_2 now.
9601         (size_window, Fsplit_window, enlarge_window)
9602         (adjust_window_trailing_edge, grow_mini_window): Don't call
9603         check_min_window_sizes.
9604         (window_min_size_2, window_min_size_1, window_min_size):
9605         New argument safe_p for retrieving "safe" minimum sizes.
9606         (Fdisplay_buffer, Fsplit_window, enlarge_window)
9607         (adjust_window_trailing_edge, grow_mini_window):
9608         Adjust arguments of window_min_size... functions.
9609         (shrink_windows): Argument min_size removed.  New argument
9610         safe_p allows shrinking windows to their safe minimum sizes.
9611         Calculate minimum size and decide whether a window shall be
9612         deleted for each window individually.
9613         (size_window): When nodelete_p equals 2, tell shrink_windows to
9614         delete windows only if their new minimum size is no more safe.
9615         (shrink_window_lowest_first): Call window_min_size_1 to make
9616         sure to preserve modeline of bottom-most window when resizing
9617         the minibuffer.
9618         (Fset_window_configuration, Fcurrent_window_configuration)
9619         (compare_window_configurations): Do not handle
9620         window-min-height|width any more.
9621         (syms_of_window): Clarify window-min-height|width doc-strings.
9623 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
9625         * dired.c (file_name_completion): Fix up the encoding/decoding issue
9626         some more.  Copy some of the code from Ftry_completions.
9627         Remove special case code that dates back to initial revision when the
9628         slash was only added when necessary and that can't trigger nowadays.
9630 2008-04-27  Kenichi Handa  <handa@m17n.org>
9632         * font.c (font_prop_validate): Signal `error' instead of `font'.
9634 2008-04-29  Jason Rumney  <jasonr@gnu.org>
9636         * w32fns.c (Fw32_battery_status): New defun.
9637         (syms_of_w32fns): Defsubr it.
9639 2008-04-28  Andreas Schwab  <schwab@suse.de>
9641         * dired.c (file_name_completion): Fix another mixing of encoded
9642         and decoded names.
9644 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
9646         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9648 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
9650         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9652 2008-04-27  Andreas Schwab  <schwab@suse.de>
9654         * dired.c (file_name_completion): Fix inappropriate mixing of
9655         encoded and decoded names.
9657         * xterm.c (XTread_socket): Fix use of uninitialized variable.
9659         * puresize.h (BASE_PURESIZE): Increase to 1200000.
9661 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
9663         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9664         2008-03-31, it's not needed anymore with `struct stat' definition
9665         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
9666         for the same reasons.
9668 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
9670         * m/sparc.h: Additional redefinitions for GNU/Linux.
9672 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9674         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9675         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9676         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9677         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9678         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9679         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9680         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9681         Likewise.
9683         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9684         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9685         (mac_ax_number_of_characters): Add externs.
9686         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9687         [USE_MAC_TSM]: Likewise.
9688         (mac_handle_text_input_event) [MAC_OSX]:
9689         Handle kEventTextInputOffsetToPos for no active input area case.
9690         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9691         (mac_handle_document_access_event)
9692         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9693         (install_application_handler) [MAC_OSX]: Register handlers for
9694         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9695         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9696         Register mac_handle_document_access_event.
9698         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9699         Make functions non-static.
9701 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
9703         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9704         (read_file_name_completion_ignore_case, insert_default_directory)
9705         (Qdefault_directory): Move to minibuffer.el.
9706         (Fread_file_name): Call the new `read-file-name' instead.
9708 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9710         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9711         Make function non-static.
9712         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9713         Remove function.
9714         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9715         Move to mactoolbox.c.
9716         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9718         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9719         (mac_rect_make): New macro.
9721         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9722         instead of float.
9723         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9724         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9725         (XSetBackground) [USE_CG_DRAWING]: Likewise.
9726         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9727         CGRectMake.
9728         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9729         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9730         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9731         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9732         instead of WindowRef in argument type.
9733         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9734         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9735         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9736         instead of DISPLAY.  All uses changed.
9737         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9738         (x_calc_absolute_position): Simplify so as not to use
9739         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9741         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9742         instead of WindowRef in argument type.
9743         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9744         [TARGET_API_MAC_CARBON]: Remove externs.
9745         (create_apple_event, mac_event_parameters_to_lisp)
9746         [TARGET_API_MAC_CARBON]: Add externs.
9748         * mactoolbox.c (Vmac_ts_script_language_on_focus)
9749         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9750         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9751         is clicked.
9752         (x_activate_menubar): Remove extern for saved_menu_event_location.
9753         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9754         Move from mac.c.
9756 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9758         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9759         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9761 2008-04-23  Jason Rumney  <jasonr@gnu.org>
9763         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9764         attributes only for local files.
9766         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9767         default to Qlocal.
9769 2008-04-22  Juri Linkov  <juri@jurta.org>
9771         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9772         read-buffer-to-switch instead of using the letter "B".
9774 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9776         * fileio.c (Qdefault_directory): New variable.
9777         (Fread_file_name): Use it to pass `dir' to the completion functions.
9779 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
9781         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9783 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9785         * keyboard.c (Vpre_help_message): Remove.
9786         (show_help_echo): Remove default C code.
9788         * dired.c (directory_files_internal, file_name_completion):
9789         Only call ENCODE_FILE if the string is indeed decoded.
9791 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9793         * Makefile.in (TOOLKIT_DEFINES): Remove.
9794         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9796 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9798         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9799         (mactoolbox.o): New target.
9801         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9802         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9804         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9805         Use mac_set_frame_window_background instead of XSetWindowBackground.
9806         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9807         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9808         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9809         instead of SetWindowTitleWithCFString.
9810         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9811         Move function to mactoolbox.c.
9812         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9813         Use mac_set_window_modified instead of SetWindowModified.
9814         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9815         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9816         (Fx_focus_frame): Use mac_front_non_floating_window instead of
9817         FrontNonFloatingWindow.  Use mac_activate_window instead of
9818         ActivateWindow.  Use mac_active_non_floating_window instead of
9819         ActiveNonFloatingWindow.
9820         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9821         Use mac_show_hourglass and mac_hide_hourglass.
9822         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9823         instead of GetGlobalMouse.
9824         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9825         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9826         Use mac_bring_window_to_front instead of BringToFront.
9827         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9828         mactoolbox.c.
9829         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9830         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
9831         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9832         mactoolbox.c.
9834         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9835         (XtPointer): Move typedef from macmenu.c.
9836         (enum button_type): Move enum from macmenu.c.
9837         (widget_value): Move typedef from macmenu.c.
9838         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9839         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9840         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9841         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9842         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9843         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9844         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9845         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9846         (Selection): Move typedef from macselect.c.
9847         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9848         macterm.c.
9849         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9850         (mac_is_window_collapsed, mac_bring_window_to_front)
9851         (mac_send_window_behind, mac_hide_window, mac_show_window)
9852         (mac_collapse_window, mac_front_non_floating_window)
9853         (mac_active_non_floating_window, mac_activate_window)
9854         (mac_move_window_structure, mac_move_window, mac_size_window)
9855         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9857         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9858         (enum mac_menu_kind): Move enum to mactoolbox.c.
9859         (min_menu_id): Move variable to mactoolbox.c.
9860         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9861         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9862         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9863         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9864         [TARGET_API_MAC_CARBON]: Likewise.
9865         (XtPointer): Move typedef to macgui.h.
9866         (enum button_type): Move enum to macgui.h.
9867         (widget_value): Move typedef to macgui.h.
9868         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9869         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9870         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9871         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9872         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9873         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9874         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9875         (popup_activated_flag): Make variable non-static.
9876         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9877         (add_menu_item, fill_menu, dispose_menus):
9878         Move functions to mactoolbox.c.
9879         (restore_show_help_function, menu_target_item_handler)
9880         (install_menu_target_item_handler, mac_handle_dialog_event)
9881         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9882         [TARGET_API_MAC_CARBON]: Likewise.
9883         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9884         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9885         (find_and_call_menu_selection, name_is_separator): Make function
9886         non-static.
9887         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9888         to mactoolbox.c.
9889         (set_frame_menubar): Don't call install_menu_quit_handler.
9890         (menu_item_selection): New variable.
9891         (mac_menu_show): Use create_and_show_popup_menu.
9892         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9893         selection but set variable menu_item_selection.  All uses changed.
9894         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
9895         Call install_menu_quit_handler.  Move to mactoolbox.c.
9897         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9898         (Selection): Move typedef to macgui.h.
9899         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9900         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9901         Make variables non-static.
9902         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9903         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9904         Make functions non-static.
9905         (Vmac_service_selection) [MAC_OSX]: Likewise.
9906         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9907         (mac_valid_selection_target_p, mac_clear_selection)
9908         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9909         (mac_put_selection_value, mac_selection_has_target_p)
9910         (mac_get_selection_value, mac_get_selection_target_list)
9911         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9912         Move functions to mactoolbox.c.
9913         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9914         Likewise.
9915         (copy_scrap_flavor_data, mac_handle_service_event)
9916         (install_service_handler) [MAC_OSX]: Likewise.
9917         (syms_of_macselect) <Vmac_dnd_known_types>:
9918         Use mac_dnd_default_known_types.
9920         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9921         Move to mactoolbox.c.
9922         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9923         (Fx_selection_owner_p): Add EXFUN.
9924         (install_window_handler, remove_window_handler, XSetWindowBackground):
9925         Remove externs.
9926         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9927         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9928         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9929         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9930         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9931         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9932         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9933         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9934         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9935         (create_and_show_popup_menu, mac_get_selection_from_symbol)
9936         (mac_valid_selection_target_p, mac_clear_selection)
9937         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9938         (mac_put_selection_value, mac_selection_has_target_p)
9939         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9940         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9941         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9942         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9943         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9944         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9945         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9946         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9947         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9949         * mactoolbox.c: New file.
9951 2008-04-18  Jason Rumney  <jasonr@gnu.org>
9953         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9955 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9957         * character.c (Fmultibyte_char_to_unibyte):
9958         Return latin1 chars unchanged.
9960         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9961         relocated if it points to `name'.
9963 2008-04-17  Kenichi Handa  <handa@m17n.org>
9965         * data.c (Faset): Allow setting a multibyte character in an
9966         ASCII-only unibyte string.
9968         * lisp.h (STRING_SET_MULTIBYTE): New macro.
9970 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
9972         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9973         done in config.h.
9975 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
9977         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9978         (Fchar_direction): Add usage in the docstring.
9980 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
9982         * keyboard.c (read_key_sequence): Remove always-true checks.
9984 2008-04-14  Jason Rumney  <jasonr@gnu.org>
9986         * w32font.c (w32font_open_internal): Set max_bounds.descent in
9987         compatibility struct, for better underline positioning.
9989 2008-04-13  David Hansen  <david.hansen@gmx.net>
9991         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9992         string.
9994 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
9996         * m/hp800.h (XUINT, XSET): Remove.
9998 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
10000         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10001         previous change.
10003 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10005         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10006         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10008 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10010         * keymap.h (map_keymap_canonical): Declare.
10011         * xmenu.c (single_keymap_panes): Use it.
10013 2008-04-11  Glenn Morris  <rgm@gnu.org>
10015         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10016         set the target's value to that of the alias.
10018 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10020         * term.c (set_tty_color_mode): Left over typo.
10022 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
10024         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10025         only after check for file name handler functions.  Signal, when
10026         native functionality is not supported.
10027         (syms_of_fileio): Declare it unconditionally.
10029 2008-04-10  Jason Rumney  <jasonr@gnu.org>
10031         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10032         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10034         * w32.c (logon_network_drive): Also logon to remote drives that
10035         are mapped to drive letters.
10037 2008-04-10  Glenn Morris  <rgm@gnu.org>
10039         * xdisp.c (truncate-partial-width-windows): Doc fix.
10041 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10043         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10044         Move functions to minibuffer.el.
10045         (syms_of_fileio): Don't declare them.
10047 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
10049         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10050         (syms_of_minibuf): Remove its initialization.
10052         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10054 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
10056         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10058 2008-04-09  Jason Rumney  <jasonr@gnu.org>
10060         * makefile.w32-in (distclean): Delete makefile too.
10061         (maintainer-clean): New target.
10063         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10065         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10066         for new font backend and composite cases.
10068 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
10070         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10071         Most of the code moved to run_timers.
10072         (do_pending_atimers): Call run_timers.
10073         (run_timers): New function.
10075         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10076         run atimers.
10078         * process.c (wait_reading_process_output): The same as above.
10080 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
10082         * minibuf.c (last_exact_completion): Remove variable.
10083         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10084         (complete_and_exit_1, complete_and_exit_2)
10085         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10086         (Fdisplay_completion_list, display_completion_list_1)
10087         (Fminibuffer_completion_help, Fself_insert_and_exit)
10088         (Fexit_minibuffer, Fminibuffer_message): Move functions to
10089         minibuffer.el.
10090         (syms_of_minibuf): Remove corresponding initializations.
10092         * keyboard.c (Qdeactivate_mark): New var.
10093         (command_loop_1): Use it to call `deactivate-mark'.
10094         (syms_of_keyboard): Initialize it.
10096         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10097         to another frame.
10098         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10099         Don't call set_tty_color_mode.
10100         (store_frame_param): Reset previous_frame rather than call
10101         set_tty_color_mode.
10102         * term.c (set_tty_color_mode): Rewrite.
10103         * dispextern.h (set_tty_color_mode): New type.
10104         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10106 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
10108         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10109         for generic chars, which do not exist any more in emacs-unicode.
10111 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
10113         * coding.c (detect_coding_emacs_mule)
10114         (Ffind_operation_coding_system): Fix typo.
10116 2008-04-08  Jason Rumney  <jasonr@gnu.org>
10118         * w32uniscribe.c (SNAME): Extract only symbol name.
10120         * w32font.h (struct w32_metric_cache): New struct.
10121         (w32font_info): Use it.
10122         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10123         (CACHE_BLOCKSIZE): New constants.
10125         * w32font.c (Qja, Qko, Qzh): New symbols.
10126         (syms_of_w32font): Initialise them.
10127         (font_matches_spec): Use them to filter by language.
10128         (recompute_cached_metrics): Remove function.
10129         (compute_metrics, clear_cached_metrics): New functions.
10130         (w32font_encode_char): Use them to manage metric cache.
10131         (w32font_text_extents): Cache metrics for all glyphs on demand.
10132         Delay converting glyph indices to WORD until needed.
10133         (w32font_open_internal): Initialize metric cache to empty.
10134         (registry_to_w32_charset): Charset should always be a symbol.
10135         (fill_in_logfont, list_all_matching_fonts): Family should
10136         always be a symbol.
10138 2008-04-06  Jason Rumney  <jasonr@gnu.org>
10140         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10141         Give up if glyph indices not supported.  Use uniscribe obtained
10142         ABC widths for individual metrics.  Map glyph clusters back to
10143         characters using fClusterStart flag.  Return number of glyphs
10144         produced, not chars processed.
10145         (uniscribe_shape): Map char at FROM to current glyph.
10147 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10149         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10150         Use SetMenuItemHierarchicalMenu.
10152 2008-04-05  Jason Rumney  <jasonr@gnu.org>
10154         * image.c (pbm_load): Allow color values up to 65535.
10155         Throw an error if max_color_idx is outside the supported range.
10156         Report an error when image size is invalid.
10157         Read two bytes at a time when raw images have max_color_idx above 255.
10159 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
10161         * w32.c (readdir): If FindFirstFile/FindNextFile return in
10162         cFileName a file name that includes `?' characters, use the 8+3
10163         alias in cAlternateFileName instead.
10165 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
10167         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10168         append "CCL: Quitted" when the CCL program is quitted.
10169         (setup_ccl_program): Initialize ccl->quit_silently to zero.
10171         * ccl.h (struct ccl_program): New member quit_silently.
10173 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
10175         * search.c (compile_pattern_1): Treat non-nil and non-string of
10176         search-spaces-regexp as nil.
10178         * minibuf.c (Fassoc_string): Tweak docstring.
10180 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
10182         * dired.c (Ffile_attributes): Support inode numbers wider than 32
10183         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
10184         2008-03-14 to force inode be positive.
10186         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10187         _S_* ones, since we now use our own sys/stat.h.
10188         (stat, fstat): Don't mangle the inode number.
10189         (init_user_info): Don't restrict UID and GID to 0-60000 range.
10191 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
10193         * frame.h (struct frame): Give one more bit to `visible' since we use
10194         values larger than 1 to indicate obscured frames on ttys.
10196         * keymap.c (Qkeymap_canonicalize): New var.
10197         (Fmap_keymap_internal): New fun.
10198         (describe_map): Use keymap-canonicalize.
10200         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10201         (Fundo_boundary): Set them.
10202         (syms_of_undo): Initialize them.
10203         (record_point): Use them instead of last_point_position*.
10204         (last_undo_buffer): Change type.
10206 2008-04-04  Jason Rumney  <jasonr@gnu.org>
10208         * w32font.c (w32font_text_extents): Use font's ascent and descent.
10209         (recompute_cached_metrics): Don't set ascent and descent per char.
10211         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10212         (uniscribe_check_otf): Add GC protection before consing.
10213         Rearrange loop for counting features.
10215 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
10217         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10218         buffer with byte-size of source buffer.
10220 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
10222         * callint.c (Fcall_interactively): Handle temporary region even
10223         when shift-select-mode is off.
10225 2008-04-03  Jason Rumney  <jasonr@gnu.org>
10227         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10229 2008-04-03  Kenichi Handa  <handa@m17n.org>
10231         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10232         (CATEGORY_MASK_UTF_16): Likewise.
10233         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10234         binary file.
10235         (detect_coding): Add null-byte detection for a binary file.
10236         (detect_coding_system): Likewise.
10238 2008-04-03  Jason Rumney  <jasonr@gnu.org>
10240         * w32uniscribe.c: New file.
10242         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10244         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10246         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10247         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10248         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10249         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10250         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10251         (Qphonetic): New symbols.
10252         (syms_of_w32font): Initialize them.
10253         (font_supported_scripts): Use them.
10254         (w32font_list_family): List all charsets.
10255         (w32font_text_extents, recompute_cached_metrics): Fix metric
10256         calculations.
10257         (w32_enumfont_pattern_entity): Make full_type a DWORD.
10258         Give opentype fonts their own format.
10259         (font_matches_spec): New arguments backend and logfont.
10260         Handle :otf spec for uniscribe backend.
10261         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10262         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10264         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10265         font backend.
10266         (globals_of_w32fns): Initialize uniscribe font backend.
10268         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
10269         dependencies.
10270         (w32uniscribe.$(O)): New file to build.
10271         (FONT_OBJ): Include w32uniscribe.$(O).
10272         (LIBS): Add uniscribe libraries.
10274         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10276 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
10278         * callint.c (Vshift_select_mode): New var.
10279         (Finteractive): Document new ^ spec.
10280         (Fcall_interactively): Call handle-shift-selection if the ^ spec
10281         is present.
10283         * keyboard.c (Vthis_command_keys_shift_translated): New var.
10284         (command_loop_1): Avoid running the direct display versions of
10285         forward-char and backward-char if shift-selection may occur.
10286         (read_key_sequence): Set Vthis_command_keys_shift_translated if
10287         shift-translation takes place.
10289         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10290         avoid clobbering by define-minor-mode.
10292         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10293         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10295         * syntax.c (Fforward_word): Add ^ interactive spec.
10297         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10298         (Fscroll_right): Add ^ interactive spec.
10300 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
10302         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10304         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10306         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10308 2008-03-31  Juri Linkov  <juri@jurta.org>
10310         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10312 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
10314         * gtkutil.c (xg_set_geometry): Fix indentation.
10315         (xg_resize_outer_widget): Remove.
10316         (x_wm_size_hint_off): Fix indentation.
10317         (xg_frame_set_char_size): Call flush_and_sync after
10318         gtk_window_resize.
10319         (x_wm_set_size_hint): Pass NULL as geometry window to
10320         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10321         Add menu bar and tool bar height to base height.
10322         (xg_update_frame_menubar, free_frame_menubar)
10323         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10324         (update_frame_tool_bar, free_frame_tool_bar):
10325         Change xg_resize_outer_widget to xg_frame_set_char_size.
10327 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
10329         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10330         (Fdbus_call_method): New parameter TIMEOUT.
10331         (dbus-send-signal): Optimize UNGCPRO call.
10333 2008-03-29  Juri Linkov  <juri@jurta.org>
10335         * window.c (Fdisplay_buffer): Move call to
10336         Vsplit_window_preferred_function out of conditions that check
10337         if window is eligible for vertical splitting.
10338         When Vsplit_window_preferred_function is non-nil, call it and use
10339         its non-nil return value as window.  Otherwise, continue doing
10340         vertical splitting using Fsplit_window with arg horflag=nil.
10341         (syms_of_window) <Vsplit_window_preferred_function>: Change the
10342         default value from `split-window' to nil.
10344 2008-03-29  Juri Linkov  <juri@jurta.org>
10346         * callint.c (Fcall_interactively): Revert 2008-03-16 change
10347         for interactive code letters 'b' and 'B'.
10349 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
10351         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10352         multibyte string.
10354 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
10356         * keyboard.c (pending_funcalls): New var.
10357         (timer_check): Run it.
10358         (syms_of_keyboard): Initialize it.
10359         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10360         (Vdelete_terminal_functions): New vars.
10361         (syms_of_terminal): Initialize them.
10362         (Fdelete_terminal): Run delete-terminal-functions.
10363         * xdisp.c (safe_eval): Rewrite.
10364         (safe_call2): New fun.
10365         * frame.c (Qdelete_frame_functions): New var.
10366         (syms_of_frame): Initialize it.
10367         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10368         * lisp.h (safe_call2, pending_funcalls): Declare.
10370 2008-03-28  Andreas Schwab  <schwab@suse.de>
10372         * indent.c (Fmove_to_column): Move declaration before statements.
10374 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10376         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
10377         (struct frame): Use bit fields for boolean vars.
10379         * process.c (server_accept_connection): Simplify naming.
10380         (emacs_get_tty_pgrp): Use SDATA.
10382         * coding.c (decode_coding_object): Fix last change.
10384 2008-03-27  Jason Rumney  <jasonr@gnu.org>
10386         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10388 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
10390         * charset.c (Fdefine_charset_internal): Change the way of
10391         registering charsets in Vcharset_order_list.
10392         (syms_of_charset): Make the charset `eight-bit' supplementary.
10394 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
10396         * regex.c (EXTEND_BUFFER): Change order of pointer addition
10397         operations, to avoid having the difference between pointers
10398         overflow.
10400 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
10402         * indent.c (check_display_width): New fun.
10403         (scan_for_column): Use it.
10405         * data.c (syms_of_data): Mark most-positive-fixnum and
10406         most-negative-fixnum as constants.
10408         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10410         * indent.c (scan_for_column): Extract from current_column_1.
10411         Merge with the same code from Fmove_to_column.
10412         (current_column_1, Fmove_to_column): Use it.
10414 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
10416         * keymap.c (map_keymap_internal): New fun.
10417         (map_keymap): Use it.
10418         (Fmap_keymap_internal): New fun.
10419         (Fmap_keymap): Remove left-out test from before make_save_value.
10421         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10423         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10424         Use XCAR/XCDR.
10426         * process.h (struct Lisp_Process): Remove filter_multibyte.
10427         * process.c (QCfilter_multibyte): Remove.
10428         (setup_process_coding_systems): Don't use filter_multibyte.
10429         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10430         (read_process_output): Don't adjust multibyteness to filter_multibyte.
10431         (Fset_process_filter_multibyte): Change the coding-system to
10432         approximate the previous behavior.
10433         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10434         coding-system.
10436         * coding.c (decode_coding_object): When not decoding into a buffer,
10437         obey the coding system's preference of (uni|multi)byte.
10439 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
10441         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10442         every char is changed and has a different byte-length.
10443         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10444         Fix int -> EMACS_INT.
10446 2008-03-23  David Hansen  <david.hansen@gmx.net>
10448         * dbusbind.c (xd_read_message): Remove extra copying of message
10449         strings.  Check for NULL `interface' or `member'.
10451 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
10453         * w32.c (readdir): If FindFirstFile/FindNextFile return in
10454         cFileName a file name that includes `?' characters, use the 8+3
10455         alias in cAlternateFileName instead.
10457 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10459         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10461 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10463         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10464         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
10465         work on current_buffer only instead (that was already the case
10466         for some of the code anyway).
10467         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10468         (temp_set_point, temp_set_point_both): Use EMACS_INT.
10469         (SET_PT, SET_PT_BOTH): Adjust.
10470         * intervals.h (set_point, temp_set_point, set_point_both)
10471         (temp_set_point_both): Remove redundant declarations.
10473 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10475         * fileio.c (Finsert_file_contents):
10476         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10477         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
10478         when buffer != current_buffer anyway.
10480 2008-03-20  Andreas Schwab  <schwab@suse.de>
10482         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10483         as default.
10485 2008-03-19  Jason Rumney  <jasonr@gnu.org>
10487         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10488         (syms_of_w32fns): Initialize them.
10489         (HOURGLASS_ID): New constant.
10490         (x_window_to_frame): Don't check hourglass_window.
10491         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10492         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10493         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10494         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10495         Only change the cursor if hourglass is not active.
10496         (Fx_create_frame): Initialize frame's current_cursor.
10497         (hourglass_atimer): Remove.
10498         (hourglass_started): New function.
10499         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10500         (show_hourglass): Adapt to w32, changing argument to frame.
10502         * w32term.h (struct w32_output): Remove hourglass_window.
10503         Add current_cursor.
10505         * eval.c (call_debugger, Fsignal):
10506         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10507         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10508         (Fexecute_extended_command, cancel_hourglass_unwind):
10509         * minibuf.c (read_minibuf):
10510         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10512 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
10514         * window.c (run_funs): New fun.
10515         (run_window_configuration_change_hook): Use it to run the buffer-local
10516         and the global part of the hook.
10518         * xdisp.c (format_mode_line_unwind_data): Add window argument.
10519         (unwind_format_mode_line): Restore selected window.
10520         (x_consider_frame_title, Fformat_mode_line): Set selected window.
10522 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
10524         * editfns.c (Fchar_equal): Check they are valid characters.
10526         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10528 2008-03-17  Andreas Schwab  <schwab@suse.de>
10530         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10531         against a charset.
10533         * lisp.h (Fbuffer_list): Declare.
10535 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
10537         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10538         handlebox_widget is != 0.
10540 2008-03-16  Juri Linkov  <juri@jurta.org>
10542         * callint.c (Fcall_interactively): For interactive code letters
10543         'b' and 'B' put the buffer list into the list of default "future"
10544         values of the minibuffer.
10546 2008-03-16  Andreas Schwab  <schwab@suse.de>
10548         * keyboard.c (read_key_sequence): Fix downcasing of letters with
10549         modifiers.
10551         * regex.c (re_match_2_internal): Correct matching of a charset
10552         against latin-1 characters.
10554 2008-03-16  Kenichi Handa  <handa@m17n.org>
10556         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10557         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10558         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10559         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10560         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10561         CHAR_STRING_ADVANCE.
10562         (produce_chars): Fix for the case that the source and the
10563         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
10564         instead of CHAR_STRING_ADVANCE.
10565         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10566         STRING_CHAR_ADVANCE.
10568 2008-03-15  Andreas Schwab  <schwab@suse.de>
10570         * regex.c (re_match_2_internal): Correct matching of eight bit
10571         characters in unibyte strings.
10573 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
10575         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10576         at end of range when it coincides with the end of the buffer.
10578 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
10580         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10582         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10584 2008-03-14  Jason Rumney  <jasonr@gnu.org>
10586         * editfns.c (initial_tz): New variable.
10587         (syms_of_editfns): Initialize it.
10588         (Fset_time_zone_rule): Set it when first called.
10589         Use it when TZSTRING is nil.
10591         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10592         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10593         (monitor_from_point_fn, get_monitor_info_fn): New globals.
10594         (globals_of_w32fns): Initialize them.
10595         (compute_tip_xy): Use them to position tooltips.
10597 2008-03-14  Glenn Morris  <rgm@gnu.org>
10599         * emacs.c (main): Revert previous change.
10600         (standard_args): Revert -internal-script back to -scriptload,
10601         and remove the long-option form.
10603 2008-03-13  Glenn Morris  <rgm@gnu.org>
10605         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10606         Remove option -enable-font-backend.
10608 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10610         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10612 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
10614         * xterm.c (x_connection_closed): For GTK: If this is the last
10615         terminal just exit without closing the display.
10617 2008-03-11  Jason Rumney  <jasonr@gnu.org>
10619         * w32font.c (w32font_full_name): Use floor to round.
10621 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
10623         * sound.c (alsa_configure): Declare vol at beginning of block.
10625         * fontset.c (Ffontset_info): Remove extra semicolon.
10627 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10629         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10630         size of resulting string.
10632 2008-03-10  Jason Rumney  <jasonr@gnu.org>
10634         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10636 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10638         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10639         Don't pretend as if characters with display property haven't been
10640         consumed for string-replacing-string case.
10642 2008-03-08  Kim F. Storm  <storm@cua.dk>
10644         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10645         (get_next_display_element, next_element_from_string)
10646         (next_element_from_ellipsis, next_element_from_buffer): Use it.
10648 2008-03-08  Andreas Schwab  <schwab@suse.de>
10650         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10652 2008-03-06  Jason Rumney  <jasonr@gnu.org>
10654         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
10655         when charset not specified.  Only translate ANSI to unicode when
10656         font_type is truetype.
10657         (w32font_coverage_ok): New function.
10658         (add_font_entity_to_list): Use it to filter unsuitable fonts.
10660 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
10662         * lread.c (Fread_char): Resolve modifiers.
10663         (Fread_char_exclusive): Likewise.
10665         * character.c (char_resolve_modifier_mask): New function.
10666         (char_string): Use char_resolve_modifier_mask.
10667         (Fchar_resolve_modifiers): New function.
10668         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10669         function.
10671 2008-03-04  Jason Rumney  <jasonr@gnu.org>
10673         * makefile.w32-in: Always include w32font.c in the build.
10674         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10676 2008-03-04  Andreas Schwab  <schwab@suse.de>
10678         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10679         (versionclean): Likewise.
10681 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
10683         * .cvsignore: Add oo.
10685 2008-03-03  Andreas Schwab  <schwab@suse.de>
10687         * coding.c (decode_coding_object): Inhibit gap shrinking while
10688         decoding in place.
10690 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
10692         * w32term.c: Remove unused include "gnu.h".
10693         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10695         * gnu.h: Rename to ...
10696         * emacs-icon.h: ... this.
10697         * xterm.c: Use emacs-icon.h instead of gnu.h.
10698         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10700 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
10702         * w32font.c: Include math.h.
10704 2008-03-03  Jason Rumney  <jasonr@gnu.org>
10706         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10707         Compute options separately.
10708         (w32font_open_internal): Set glyph_idx before caching metrics.
10710         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10711         Define if system headers don't.
10712         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
10713         (w32font_encode_char): Don't declare here.
10715         * w32font.c (Quniscribe, QCformat): New symbols.
10716         (syms_of_w32font): Define them.
10717         (w32font_has_char): Indicate uncertainty.
10718         (w32font_encode_char): Encode as glyph point.  Make static.
10719         (recompute_cached_metrics): New function.
10720         (w32font_open_internal): Use it.  Set font to use glyph points
10721         initially.  Set format based on type of font.
10722         (w32font_text_extents, w32font_draw): Optionally use glyph points.
10723         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
10724         on it.  Set format based on information available here.
10725         (add_font_entity_to_list): Identify backend based on opentype_only.
10727 2008-03-02  Andreas Schwab  <schwab@suse.de>
10729         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10731         * coding.c (decode_coding_big5, produce_chars):
10732         Fix typos in last change.
10734 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
10736         * gnu.h: New icon.
10738 2008-03-02  Kenichi Handa  <handa@m17n.org>
10740         * coding.c (decode_coding_utf_8): When eol-type of CODING is
10741         `dos', don't decode '\r' if that is the last in the source.
10742         (decode_coding_utf_16, decode_coding_emacs_mule)
10743         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10744         (decode_coding_raw_text, decode_coding_charset): Likewise.
10745         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
10747 2008-03-01  Jason Rumney  <jasonr@gnu.org>
10749         * w32font.c (w32font_full_name): Report point size for scalable fonts.
10751 2008-03-01  Kim F. Storm  <storm@cua.dk>
10753         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10755 2008-03-01  Jason Rumney  <jasonr@gnu.org>
10757         * w32font.c (w32font_full_name): New function.
10758         (w32font_open_internal): Use it.
10760 2008-03-01  Kim F. Storm  <storm@cua.dk>
10762         * dispnew.c (line_draw_cost): Fix invalid glyph check.
10764 2008-03-01  Jason Rumney  <jasonr@gnu.org>
10766         * font.c (font_unparse_fcname): Increase len when style is a symbol.
10768 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
10770         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10771         xg_frame_resized when the event is for the edit widget.
10773         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10775         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10776         set_char_size.
10777         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
10778         operations on widgets here.  Just set frame size if needed.
10779         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10780         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10781         (x_wm_set_size_hint): Set size hints on the edit widget only, not
10782         the whole frame.
10783         (xg_create_tool_bar): Move attachment of the tool bar to
10784         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
10785         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10787 2008-03-01  Jason Rumney  <jasonr@gnu.org>
10789         * w32fns.c (w32_msg_pump): Disable debug code.
10791 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10793         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10795 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
10797         * xdisp.c (next_overlay_string): Don't set
10798         overlay_strings_at_end_processed_p if we're currently reading from
10799         a display string.
10801 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
10803         * xdisp.c (get_overlay_strings_1): Fix typo.
10805 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
10807         * xdisp.c (get_overlay_strings_1): Add missing argument type.
10809 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
10811         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10813         * xdisp.c (display_mode_element): Cancel the previous change.
10814         (decode_mode_spec): Likewise.
10815         (handle_auto_composed_prop): Don't make composition if it->string
10816         is a string.
10818 2008-02-27  Kim F. Storm  <storm@cua.dk>
10820         * lisp.h (GLYPH): Change type from int to struct with separate char
10821         and face_id members.
10822         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10823         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10824         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10825         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
10826         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
10827         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10828         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10829         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10830         handle new Lisp glyph code encoding, either an integer or a cons.
10832         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10833         (GLYPH_ALIAS): Delete.
10834         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10835         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10836         (GLYPH_FROM_CHAR): Replace macro by ...
10837         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
10839         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10840         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10841         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
10842         (GLYPH_INVALID_P): New macro.
10843         (spec_glyph_lookup_face): Update prototype.
10845         * dispnew.c (line_draw_cost): Adapt to new glyph type.
10846         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10847         new glyph code encoding.
10848         (spec_glyph_lookup_face): No return value; update passed glyph instead.
10849         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10851         * xdisp.c (get_next_display_element, next_element_from_display_vector):
10852         Adapt to new glyph type and new glyph code encoding.
10854         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10856         * indent.c (current_column, current_column_1, Fmove_to_column)
10857         (compute_motion): Adapt to new glyph code encoding.
10859         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10861 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
10863         * process.c (wait_reading_process_output): Check for window
10864         changes caused by timers.
10865         Suggested by Johan Bockgård.
10867 2008-02-27  Glenn Morris  <rgm@gnu.org>
10869         * emacs.c (USAGE1): Add `--disable-font-backend'.
10871 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10873         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10874         is made to the buffer.
10876 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
10878         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10879         (face_at_string_position):
10880         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10881         (face_at_string_position):
10882         * xdisp.c (display_string, next_overlay_change):
10883         * buffer.h (overlays_at):
10884         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10885         Update callers.
10887 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
10889         * editfns.c (Fformat): Doc fix.
10891 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
10893         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10894         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10895         (Ffont_otf_alternates, Fquery_font): Doc fixes.
10897 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
10899         * buffer.c (Fbuffer_swap_text): New function.
10900         (syms_of_buffer): Defsubr it.
10902 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
10904         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10906 2008-02-25  Jason Rumney  <jasonr@gnu.org>
10908         * w32font.c (w32font_draw): Draw one character at a time when padding.
10910 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
10912         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10913         Handle a nil arg.  Use run_window_configuration_change_hook.
10914         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10915         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10916         Use run_window_configuration_change_hook.
10918 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
10920         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10921         1-pixel width.
10923 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
10925         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10926         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10927         if the glyph in the font is zero pixel with.
10929         * dispextern.h (struct glyph_string): New member padding_p.
10931         * w32font.c (w32font_draw): Pay attention to s->padding_p.
10933         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10935         * xfont.c (xfont_draw): Pay attention to s->padding_p.
10937         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10939         * font.c: If the font driver doesn't have `shape' function, return Qnil.
10941 2008-02-25  Jason Rumney  <jasonr@gnu.org>
10943         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10945 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
10947         Allow fine-grained image-cache flushing.
10948         * dispextern.h (struct image): Add `dependencies' field.
10949         (clear_image_caches): Change arg to Lisp_Object.
10950         * image.c (make_image): Initialize `dependencies' field.
10951         (clear_image_cache): Change arg to allow fine-grained flushing.
10952         Perform the flush even if image-cache-eviction-delay is nil.
10953         (clear_image_caches): Change arg to Lisp_Object.
10954         (Fclear_image_cache): Expand meaning of the argument.
10955         (mark_image): Mark `dependencies' field.
10956         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10957         (lface_hash): Use XHASH rather than XFASTINT.
10958         (face_at_buffer_position): Fix int -> EMACS_INT position.
10959         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10960         (select_frame_for_redisplay): Remove code duplication.
10961         (redisplay_internal): Adapt arg to call to clear_image_caches.
10963 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
10965         * s/vms4-0.h:
10966         * s/vms4-2.h:
10967         * s/vms4-4.h:
10968         * s/vms5-5.h: Remove, unused.
10970         * s/irix5-2.h:
10971         * s/irix6-0.h:
10972         * s/riscos5.h:
10973         * s/mach-bsd4-3.h:
10974         * m/mips4.h: Remove files for obsolete systems.
10976         * Makefile.in:
10977         * filelock.c:
10978         * unexmips.c:
10979         * m/hp9000s300.h:
10980         * m/iris4d.h:
10981         * s/aix3-1.h:
10982         * s/hpux.h:
10983         * s/msdos.h:
10984         * s/usg5-0.h:
10985         * s/usg5-2-2.h:
10986         * s/usg5-2.h:
10987         * s/usg5-3.h: Remove references to obsolete variables.
10989         * s/irix5-0.h: Remove, move all the contents ...
10990         * s/irix6-5.h: ... here.  Simplify.
10991         * config.in: Regenerate.
10993 2008-02-24  Jason Rumney  <jasonr@gnu.org>
10995         * w32term.c (x_draw_glyph_string_background): Clear the background
10996         manually when cleartype is in use.
10997         (x_draw_glyph_string_foreground): Draw text transparently when
10998         cleartype is in use.
11000         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11001         a font into it unless we have to.
11003 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11005         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
11006         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11008 2008-02-18  Jason Rumney  <jasonr@gnu.org>
11010         * w32fns.c (Fw32_shell_execute): Encode parameters.
11012 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
11014         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11016 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
11018         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11020 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
11022         * xterm.c (x_set_offset): Don't change the gravity if
11023         CHANGE_GRAVITY is -1.
11025 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
11027         * fileio.c (auto_save_error_occurred): New var.
11028         (auto_save_error): Set it.
11029         (Fdo_auto_save): Don't overwrite the error message if an auto-save
11030         error occurred.
11032 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
11034         * w32.c (globals_of_w32): Add initializations for
11035         g_b_init_get_sid_sub_authority and
11036         g_b_init_get_sid_sub_authority_count.
11038 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
11040         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11041         (font_parse_xlfd): Use them for sanity check.
11042         (Finternal_set_font_style_table): Make sure the table is bijective.
11044         Consolidate the image_cache to the terminal struct.
11045         * termhooks.h (P_): Remove redundant def.
11046         (struct terminal): New field `image_cache'.
11047         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
11048         of FRAME_X_IMAGE_CACHE.
11049         * xterm.h (struct x_display_info): Remove image_cache field.
11050         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
11051         * w32term.h (struct w32_display_info): Remove image_cache field.
11052         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
11053         * macterm.h (struct mac_display_info): Remove image_cache field.
11054         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
11055         * xterm.c (x_term_init):
11056         * w32term.c (w32_term_init):
11057         * macterm.c (mac_term_init): Set the image_cache in the terminal.
11058         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11059         Remove declarations.
11060         (clear_image_caches, mark_image_cache): New declarations.
11061         * xfaces.c (clear_face_cache):
11062         * xdisp.c (redisplay_internal): Use clear_image_caches.
11063         * image.c (clear_image_cache): Don't check that a frame is on
11064         a window-system before checking if it shares the same cache.
11065         (clear_image_caches): New function.
11066         (Fclear_image_cache): Use it.
11067         (mark_image): Move from allo.c.
11068         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11069         * alloc.c (mark_image, mark_image_cache): Move to image.c.
11070         (mark_object): Don't call mark_image_cache for frames.
11071         (mark_terminals): Call mark_image_cache.
11073         * lisp.h (Fdelete_terminal): Declare.
11075         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11076         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11077         wrong_type_argument.
11079 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
11081         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11082         malayalam.el, and tamil.el.  Add sinhala.el.
11084 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
11086         * xterm.c (x_connection_closed): Consolidate identical tests.
11087         (x_delete_terminal): Don't crash if called via x_connection_closed.
11089 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
11091         * xdisp.c (decode_mode_spec): New arg string.
11092         (display_mode_element): Adjust for the above change.
11094 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11096         * callint.c (Fcall_interactively): Use AREF.
11098 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
11100         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11102 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
11104         * xfns.c (Fx_show_tip): Set string to " " if empty.
11106 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
11108         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11109         with Qt.
11111 2008-02-17  Kenichi Handa  <handa@m17n.org>
11113         * ftfont.c (ftfont_shape): Return Lispy number.
11115         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11116         for GCs.
11117         (Finternal_set_font_selection_order): Call font_update_sort_order
11118         only when enable_font_backend is set.
11119         (realize_x_face): Set face->font_info to that of default face only
11120         when enable_font_backend is set.
11122         * xdisp.c (handle_composition_prop): Set it->c to the fist
11123         character of the composed region.
11124         (fill_composite_glyph_string): Set base_face->font_info to
11125         s->font_info.  Get a face for ascii from base_face->ascii_face.
11126         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11127         with a face already decided.
11128         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11129         non-negative.
11130         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11131         call font_prepare_composition unconditionally.
11133         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11135         * xterm.h (struct x_display_info): New member font.
11137         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11138         (x_set_mouse_face_gc, x_new_font): Likewise.
11139         (x_term_init): Setup display_info->font.
11140         (x_delete_terminal): Free display_info->font.
11142         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11144         * ftxfont.c (ftxfont_default_fid): Delete it.
11145         (ftxfont_open): Set xfont->fid to 0.
11146         (ftxfont_end_for_frame): Clear data specific to the frame and the
11147         font-driver.
11149         * xftfont.c (xftfont_default_fid): Delete it.
11150         (xftfont_open): Set xfont->fid to 0.
11152         * fontset.c (FONTSET_OBJLIST): New macro.
11153         (fontset_find_font): Update font-object list of the fontset.
11154         (free_realized_fontset): New function.
11155         (free_face_fontset): Call free_realized_fontset.
11156         (Ffont_info): Call font_close_object only when enable_font_backend
11157         is set.
11159         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11160         [HAVE_NTGUI]: Include w32term.h.
11161         [MAC_OS]: Include macterm.ch.
11162         (font_otf_ValueRecord): Use make_number.
11163         (font_finish_cache): Fix handling of reference count.
11164         (font_clear_cache): Update num_fonts.
11165         (font_open_entity): Update smallest_char_width and
11166         smallest_font_height of the frame.
11167         (font_close_object): Update num_fonts.
11168         (Fclear_font_cache): Fix finding the target cache data.
11170 2008-02-16  Glenn Morris  <rgm@gnu.org>
11172         * fontset.c (Finternal_char_font): Fix compilation warning.
11174 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
11176         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11177         instead of char arrays.  Enlarge the size of array passed to
11178         get_token_information.
11180         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11181         warnings.
11183 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
11185         * .gdbinit: Don't set `args', it breaks gdb --args.
11187 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
11189         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11190         within a narrowed buffer.
11192 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
11194         * coding.c (decode_coding_object, encode_coding_object):
11195         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
11197 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11199         * coding.c (coding_set_destination): Use BEG_BYTE rather than
11200         hardcoding 1.
11201         (detect_coding_system):
11202         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11203         (string_char_to_byte, string_byte_to_char, insert_from_gap):
11204         * insdel.c (insert_from_gap):
11205         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11206         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11207         (string_to_multibyte):
11208         * character.c (chars_in_text, multibyte_chars_in_text):
11209         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11211         * character.h (FETCH_STRING_CHAR_ADVANCE)
11212         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11213         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11214         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11216         * casefiddle.c (casify_region): Only call after-change and composition
11217         functions on the part of the region that was changed.
11219         * keyboard.c (read_avail_input):
11220         * frame.c (Fdelete_frame): Call Fdelete_terminal.
11222 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
11224         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11225         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11227 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
11229         * w32menu.c (push_submenu_start, push_submenu_end)
11230         (push_left_right_boundary, push_menu_pane, push_menu_item):
11231         * keyboard.c (read_key_sequence): Don't pass args with side effects
11232         to AREF, it fails when compiling with -DENABLE_CHECKING.
11234 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
11236         * Makefile.in (${lispsource}international/charprop.el):
11237         Delete this target.
11239         * search.c (boyer_moore): Fix incorrect synching of the trunk and
11240         emacs-unicode-2.
11242 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
11244         * terminal.c (Fdelete_terminal): Clean up the `force' path.
11246 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11248         * frame.c (Qnoelisp): New symbol.
11249         (syms_of_frame): Initialize it.
11250         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11251         harmless Elisp code, from a strong `force' from x_connection_closed.
11252         * frame.h (Qnoelisp): Declare.
11253         * xterm.c (x_connection_closed): Pass `noelisp'.
11255         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11256         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11257         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11258         rather than `int' for the type of `type'.
11260 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
11262         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11264         * Makefile.in (GNUC): Remove support for gcc-1.x.
11266 2008-02-10  Richard Stallman  <rms@gnu.org>
11268         * lisp.h (ASET): Use AREF, not ASLOT.
11270 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11272         * lisp.h (ASET): Check bounds.
11274 2008-02-10  Glenn Morris  <rgm@gnu.org>
11276         * buffer.c (mode-name): Doc fix.
11278 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
11280         * Makefile.in:
11281         * emacs.c:
11282         * gmalloc.c:
11283         * keyboard.c:
11284         * lisp.h:
11285         * m/ibm370aix.h:
11286         * process.c:
11287         * regex.c:
11288         * s/hpux.h:
11289         * sysdep.c:
11290         * sysselect.h:
11291         * systty.h:
11292         * unexec.c:
11293         * w32term.c:
11294         * xsmfns.c:
11295         * xterm.c: Remove code that deals with obsolete variables.
11297         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11299         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11300         nothing else needs it anymore.
11302 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
11304         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11305         instead of unibyte_char_to_multibyte.
11307 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
11309         * s/gnu-linux.h: Remove commented out code.
11311         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11313         * Makefile.in: Update what RMS says about using autoconf.
11314         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11315         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11316         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11317         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11319 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
11321         * keymap.c (Fkey_description): Move side effect outside of macro call.
11323         * xfaces.c (Finternal_make_lisp_face):
11324         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11326         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11327         (syms_of_fontset): Use ASET.
11329         * fns.c (concat): Move side effect outside of macro call.
11330         (hash_clear): Use ASET.
11332 2008-02-08  Richard Stallman  <rms@gnu.org>
11334         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11335         If FORCE, and frame has a surrogate minibuffer for another frame,
11336         delete the other frame first.
11338 2008-02-07  Timo Savola  <timo.savola@iki.fi>
11340         * xterm.c (x_detect_focus_change): Handle embed client message.
11341         (handle_one_xevent): Ditto.
11342         (handle_one_xevent): If embedded and we get a button press/release,
11343         request focus.
11344         (xembed_set_info, xembed_send_message): New functions.
11345         (x_make_frame_visible): Call xembed_set_info if embedded.
11346         (x_make_frame_invisible): Call xembed_set_info if embedded.
11347         (x_term_init): Initialize Xatom_XEMBED.
11348         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11349         (x_iconify_frame): Ditto.
11351         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11352         (enum xembed_info, enum xembed_message, enum xembed_focus)
11353         (enum xembed_modifier, enum xembed_accelerator): New.
11354         (xembed_set_info, xembed_send_message): Declare.
11355         (FRAME_X_EMBEDDED_P): New.
11357         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11358         gtk_plug_new.
11360         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11361         window ID of a frame.
11362         (x_window): Reparent frame if embedded.
11363         (Fx_create_frame): Don't set border width if embedded.
11365         * emacs.c (USAGE3): Add --parent-id.
11366         (standard_args): Ditto.
11368 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
11370         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11372 2008-02-07  Jim Meyering  <meyering@redhat.com>
11374         Use "do...while (0)", not "if (1)...else" in macro definitions.
11375         The latter provokes a warning from gcc about the empty else, when
11376         followed by ";".  Also, without that trailing semicolon, it would
11377         silently swallow up any following statement.
11378         * syntax.h (SETUP_SYNTAX_TABLE)
11379         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11380         * buffer.h (DECODE_POSITION): Likewise.
11381         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11382         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11383         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11384         (FETCH_CHAR_ADVANCE): Likewise.
11385         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11387 2008-02-07  Jim Meyering  <meyering@redhat.com>
11389         * lread.c [lint]: Don't include <sys/inode.h>.
11391 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
11393         * xselect.c (x_handle_dnd_message):
11394         * xmenu.c (digest_single_submenu, xmenu_show):
11395         * xdisp.c (with_echo_area_buffer_unwind_data)
11396         (format_mode_line_unwind_data, unwind_format_mode_line)
11397         (display_menu_bar):
11398         * eval.c (Ffetch_bytecode):
11399         * doc.c (store_function_docstring):
11400         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11401         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11402         * buffer.c (add_overlay_mod_hooklist): Use ASET.
11404 2008-02-07  Kenichi Handa  <handa@m17n.org>
11406         * ftxfont.c (ftxfont_open): Don't set
11407         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11409         * ftfont.c (ftfont_open): Fix previous change.
11411 2008-02-06  Jason Rumney  <jasonr@gnu.org>
11413         * w32font.c (w32font_text_extents): Fill in lbearing metric.
11414         Use cached metrics for ASCII characters.
11415         (w32font_open_internal): Don't set font's owning_frame.
11416         Cache metrics for ASCII characters.
11418         * w32font.h (struct w32font_info): Add ascii_metrics.
11419         Remove owning_frame.
11421 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
11423         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11424         to negative value.
11426         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11428         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11430         * charset.c (syms_of_charset): Set QCtest and Qeq.
11432 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
11434         * process.c (Fstart_process):
11435         * callproc.c (Fcall_process): Handle the case where
11436         Funhandled_file_name_directory returns nil.
11438         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11439         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11440         * font.c (check_gstring): Use them and AREF to access the vector before
11441         we know it's really a gstring.
11442         (Ffont_shape_text): Fix typo.
11443         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
11445         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11446         Declare.
11448         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11450 2008-02-05  Jason Rumney  <jasonr@gnu.org>
11452         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11453         Set smallest_font_height and smallest_char_width in display info.
11455 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
11457         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11459 2008-02-05  Miles Bader  <miles@gnu.org>
11461         * xfaces.c (get_lface_attributes, merge_named_face)
11462         (lookup_named_face, lookup_derived_face, realize_named_face):
11463         Revert 2008-02-01 change by cyd@stupidchicken.com.
11465 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
11467         * fontset.c (Ffontset_info): Handle the case of inhibitting the
11468         fallback fonts.
11469         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11471 2008-02-04  Jason Rumney  <jasonr@gnu.org>
11473         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11474         set full_name.
11475         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11477 2008-02-03  Jason Rumney  <jasonr@gnu.org>
11479         * makefile.w32-in (OBJ1): Include font.o here.
11480         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11482 2008-02-02  Jason Rumney  <jasonr@gnu.org>
11484         * makefile.w32-in (temacs): Bump EMHEAP to 21.
11486 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11488         * s/cygwin.h: Define VIRT_ADDR_VARIES.
11490         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11492 2008-02-01  Andreas Schwab  <schwab@suse.de>
11494         * Makefile.in (shortlisp, lisp): Update for rename of
11495         ../lisp/language/myanmar.el.
11497 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
11499         * xfaces.c (get_lface_attributes): Delete function.
11500         (merge_named_face, lookup_named_face, lookup_derived_face)
11501         (realize_named_face): Call lface_from_face_name directly, and use
11502         the fact that merge_face_vectors does not alter its FROM argument.
11504 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11506         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11507         input in the default locale.  Handle non-Unicode multibyte input.
11509 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11511         * fontset.c (reorder_font_vector): Exclude nil elements from the
11512         font group.  Don't try multiple fonts.
11513         (fontset_font): Adjust for the above change.
11514         (Finternal_char_font): Return nil if the found font doesn't
11515         contain the character ch.
11517         * Makefile.in (lisp, shortlisp): Add cham.el.
11519 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11521         * font.h (FONTP): Make it return 1 also for a font-object.
11523         * .gdbinit (xfontset): New function.
11525         * font.c (font_find_for_lface): Check if the character C is
11526         supported or not only for the first font.
11528         * fontset.c (reorder_font_vector): Fix typo.
11529         (fontset_find_font): Don't add a font-spec specifying a script.
11530         Use 0 (not Qt) for the indication of empty font-group.  Change the
11531         format of RFONT-DEF.  Return Qt if no font in the font-group
11532         support the character.
11533         (fontset_font): Adjust for the above change.  If no font was
11534         found the character, remember that.
11535         (face_for_char): Adjust for the change of RFONT-DEF.
11536         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11537         no font for the target.
11538         (Finternal_char_font): Adjust for the change of RFONT-DEF.
11540 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11542         * font.c (font_load_for_face): Handle the case that the font in
11543         face->lface is a string.
11545 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11547         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11549 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11551         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11552         Fix previous change.  If the frame is not on a window system,
11553         signal an error.
11555 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11557         * coding.c (decode_coding_object, encode_coding_object): Adjust
11558         marker positions after conversion.
11560         * lisp.h (struct Lisp_Marker): New member need_adjustment.
11562 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11564         * font.c (font_find_for_lface): Fix the handling of the return
11565         value of font_has_char.
11566         (Ffont_shape_text): Fix previous change.
11568         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11569         (fontset_ref_and_range): Delete it.
11570         (fontset_find_font): Call char_table_ref_and_range instead of
11571         FONTSET_REF_AND_RANGE.
11572         (make_fontset): Don't setup font groups of Latin here.
11573         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11574         (new_fontset_from_font): Make the specified font the default for
11575         all Latin characters.
11577 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11579         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11580         is on a window system before accessing the fontset of the frame.
11582 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11584         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11586         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11587         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11589         * font.c (Ffont_shape_text): If the font driver doesn't have a
11590         shaper function, make zero-width glyphs to have at least one-pixel
11591         width.  Fix setting of `to' field of glyphs.
11593 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11595         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11596         glyphs.
11598         * font.h (struct font_driver): Improve docstring of member `shape'.
11600 2008-02-01  Kenichi Handa  <handa@m17n.org>
11602         * composite.c (syms_of_composite): Fix docstring of
11603         auto-composition-function.
11605         * font.h (LGLYPH_SIZE): New macro.
11607         * font.c (Ffont_fill_gstring): Stop filling when a character not
11608         supported by the font is found.
11609         (Ffont_shape_text): When a shape callback function returns nil,
11610         try at most two more times with larger gstring.
11611         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
11613         * xdisp.c (handle_auto_composed_prop): Change the argument to
11614         auto-composition-function.
11616         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11617         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11618         Lispy glyph and store it in the lgstring.
11620         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11622         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11624 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11626         * font.c (Ffont_shape_text): Avoid unnecessary composition.
11628         * fontset.c (Vfont_encoding_charset_alist): New variable.
11629         (syms_of_fontset): DEFVAR it.
11630         (reorder_font_vector, fontset_find_font): Optimize for the case of
11631         no need of reordering.
11632         (face_for_char): Map the charset property by
11633         Vfont_encoding_charset_alist.
11635 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11637         * w32font.c (logfonts_match): Don't check adstyle here.
11638         (font_matches_spec): Check here against physical font instead.
11639         (add_font_entity_to_list): Avoid some substitutions.
11641         * font.c (font_parse_fcname): Default weight and slant to normal.
11642         (font_score): Prefer normal fonts if weight or slant unspecified.
11643         (font_score) [WINDOWSNT]: Scale weight difference down to closer
11644         match freetype scores.
11646 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11648         * w32font.c (w32font_text_extents): Don't use the frame stored in the
11649         font, as it may have been deleted.
11650         (w32_enumfont_pattern_entity): Map generic family to adstyle using
11651         most common hyphenless variation.
11652         (logfonts_match): Check generic family.
11653         (font_matches_spec): Don't check generic family here.
11654         (fill_in_logfont): Set generic family based on adstyle.
11656         * w32font.h (w32font_get_cache): Update declaration.
11658 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11660         * ftfont.c (ftfont_get_cache): Adjust the argument type.
11662         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11663         If none of the new drivers are available, call font_update_drivers
11664         with the old drivers.
11666         * w32font.c (w32font_get_cache): Adjust the argument type.
11668         * xfont.c (xfont_get_cache): Adjust the argument type.
11670         * font.h (struct font_driver): Change argument type of get_cache.
11672         * xftfont.c (xftfont_start_for_frame): Delete prototype.
11674         * font.c (Ffont_get): Fix arguments to Fassoc.
11675         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11676         (font_clear_cache): New function.
11677         (font_list_entities, font_matching_entity): Use font_get_cache.
11678         (font_update_drivers): Call font_clear_cache when finishing a driver.
11680         * fontset.c (fontset_find_font): Fix previous change.
11682 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11684         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11685         dpyinfo->font_table.
11686         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11687         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11689         * font.c (font_at): Handle the case that the arg C is negative.
11690         Handle the unibyte case.
11691         (Ffont_at): Call font_at with the arg C -1.
11693         * xdisp.c (handle_auto_composed_prop): Don't get a character at
11694         the position here, and call font_at with the arg C -1.
11695         Don't check the range of the existing composition at the point.
11697 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11699         * fontset.c (fontset_add): New args charset_id and family.
11700         Change caller.
11701         (load_font_get_repertory, fontset_find_font): Assume that
11702         font_spec is always a font-spec object.
11703         (Fset_fontset_font): Always store a font-spec object in a fontset.
11705         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11706         instead of get_property_and_range.
11708 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11710         * xftfont.c (struct xftfont_info): Delete the member ft_face.
11711         (xftfont_open): Don't keep locking face.
11712         (xftfont_close): Don't unlock face.
11713         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11715         * fontset.c (fontset_find_font): Don't prefer a font of
11716         supplementary charset.
11718 2008-02-01  Kenichi Handa  <handa@m17n.org>
11720         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11721         script, langsys_tag to langsys, new member script.
11722         (OTF_TAG_STR): Terminate by '\0'.
11723         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
11724         listing to the script specified in that property.  Fix arg to
11725         OTF_check_features.
11727 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11729         * w32font.h: New file.
11731         * w32font.c: Include it.
11732         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
11733         (w32font_open): Set owning_frame.
11734         (w32font_text_extents): Use owning_frame.
11735         (struct font_callback_data): Add opentype_only field.
11736         (add_font_entity_to_list): Use it to filter fonts.
11737         Don't check against full name.
11738         (w32font_list_internal): New function.
11739         (w32font_list): Use it.
11740         (w32font_match_internal): New function.
11741         (w32font_match): Use it.
11742         (w32font_open_internal): New function.
11743         (w32font_open): Use it.
11744         (w32font_get_cache, w32font_close, w32font_has_char)
11745         (w32font_encode_char, w32font_text_extents, w32font_draw):
11746         Make non-static.
11748         * makefile.w32-in (w32font.o): Depend on w32font.h.
11750 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11752         * charset.c (Fdefine_charset_internal): Record a supplementary
11753         charset at the tail of Vcharset_order_list.
11755         * font.c (Ffont_shape_text): Fix the return value.
11757         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11759         * xdisp.c (handle_auto_composed_prop): Fix previous change.
11761 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11763         * ftfont.c (struct OpenTypeSpec): New struct.
11764         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11765         (ftfont_get_open_type_spec): New function.
11766         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11768         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11770 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11772         * w32font.c (add_font_entity_to_list): Compare only the beginning
11773         of full name.
11775 2008-02-01  Kenichi Handa  <handa@m17n.org>
11777         * xdisp.c (handle_auto_composed_prop): Simplify the code.
11778         Never return HANDLED_RECOMPUTE_PROPS.
11780 2008-02-01  Kenichi Handa  <handa@m17n.org>
11782         * font.c (font_gstring_produce): Delete it.
11784         * composite.h (COMPOSITION_METHOD):
11785         Handle COMPOSITION_WITH_GLYPH_STRING.
11787 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11789         * xfont.c (Qx): Delete.
11790         (syms_of_xfont): Don't initialize Qx.
11792         * composite.h (enum composition_method):
11793         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11795 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11797         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11798         (choose_face_font): Accept new form of font-spec.
11800         * frame.h (font_driver_list): Declare it unconditionally.
11801         (struct frame): Define members font_driver_list and font_data_list
11802         unconditionally.
11804         * fontset.c: Include "font.h" unconditionally.
11805         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11806         (Fset_fontset_font): Accept a font-spec object.
11808         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11809         PIXEL_SIZE part a wild card.
11811         * dispextern.h (struct glyph_string): Define members clip and
11812         num_clips unconditionally.
11813         (struct face): Define members font_info and extra unconditionally.
11815         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11816         ftfont_info only when HAVE_LIBOTF is defined.
11818 2008-02-01  Andreas Schwab  <schwab@suse.de>
11820         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11821         and end.
11823 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11825         * w32font.c (w32font_driver): Add new fields.
11827 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11829         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11830         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11831         (LIBES): Add @M17N_FLT_CFLAGS@.
11833         * composite.c (compose_text): Don't treat the new style
11834         composition specially.
11836         * emacs.c (main): Call syms_of_font unconditionally.
11838         * font.h (FONT_ENTITY_NOT_LOADABLE)
11839         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11840         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11841         (struct font_driver): New member shape.
11842         (font_registry_charsets): Extern it.
11843         (font_find_for_lface, font_prepare_composition): Adjust prototype.
11844         (font_otf_capability, font_drive_otf): Delete their externs.
11846         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11847         (font_charset_alist, font_registry_charsets): Move from xfont.c
11848         and rename.
11849         (font_prop_validate_otf): New function.
11850         (font_property_table): Register it for QCotf.
11851         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11852         (font_drive_otf): Delete.
11853         (font_prepare_composition): New arg F.  Adjust for the change of
11854         lispy gstring.
11855         (font_find_for_lface): New arg C.
11856         (font_load_for_face): Adjust for the change of font_find_for_lface.
11857         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11858         lispy gstring.
11859         (Ffont_shape_text): New function.
11860         (Fopen_font): If the font size is not given, use 12-pixel.
11861         (Ffont_at): New arg STRING.
11862         (syms_of_font): Initalize font_charset_alist.
11863         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
11864         conditionally.
11866         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11867         fonts of the same font-spec.  Change the format of RFONT-DEF.
11868         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11869         Adjust for the change of RFONT-DEF.
11870         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11872         * ftfont.h: New file.
11874         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
11875         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11876         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11877         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11878         font_otf_capability and font_drive_otf, set ftfont_shape.
11879         (ftfont_list): Adjust for the change of :otf property value.
11880         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11881         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11882         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11883         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11884         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11885         (otf_gstring, gstring, m17n_flt_initialized): New variables.
11887         * w32term.c (x_draw_composite_glyph_string_foreground):
11888         Adjust for the change of lispy gstring.
11890         * xdisp.c (handle_composition_prop): Adjust for the change of
11891         lispy gstring.  Call a function for auto-composition with the
11892         third arg it->window.
11893         (fill_composite_glyph_string): Adjust for the change of lispy string.
11894         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11896         * xfaces.c (set_font_frame_param): Adjust for the change of
11897         font_find_for_lface.
11899         * xfont.c (x_font_charset_alist): Move to font.c and rename.
11900         (xfont_registry_charsets): Likewise.  Change caller.
11901         (syms_of_xfont): Don't handle x_font_charset_alist.
11903         * xftfont.c: Include "ftfont.h".
11904         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11905         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11906         (xftfont_close) [HAVE_LIBOTF]: Close otf.
11907         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11908         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11909         Set xftfont_driver.shape to xftfont_shape.
11911         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11912         the change of lispy gstring.
11914 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11916         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11918 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11920         * w32font.c (w32font_draw): Fill background manually.
11922 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11924         * font.c (Qfontp): Remove unused symbol.
11925         (QCantialias): New symbol.
11926         (syms_of_font): Define it.
11927         (font_property_table): Set a validator for QCantialias.
11929         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11930         Define if not already.
11931         (QCfamily): Share with xfaces.c.
11932         (Qstandard, Qsubpixel, Qnatural): New symbols.
11933         (syms_of_w32font): Define them.  Don't define QCfamily here.
11934         (w32_antialias_type, lispy_antialias_type): New functions.
11935         (w32_enumfont_pattern_entity): New arg requested_font.
11936         Set antialias parameter if non-default was requested.
11937         (fill_in_logfont): Fill in lfQuality if :antialias specified.
11939 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11941         * lread.c (read1): Undo the previous change.
11943 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
11945         * frame.c (Fdelete_frame): Call font_update_drivers only when
11946         USE_FONT_BACKEND is defined.
11948 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
11950         * font.h (struct font_bitmap): New member bits_per_pixel.
11951         (struct font_driver): New members start_for_frame and end_for_frame.
11952         (struct font_data_list): New struct.
11953         (font_put_frame_data, font_get_frame_data): Extern them.
11955         * frame.h (struct frame): New member font_data_list.
11957         * font.c (font_update_drivers): Call driver->start_for_frame and
11958         driver->end_for_frame at proper timings.
11959         (font_put_frame_data, font_get_frame_data): New functions.
11960         (Ffont_spec): Add usage in the docstring.
11962         * frame.c (make_frame): Initialize f->font_data_list to NULL.
11963         (Fdelete_frame): Call font_update_drivers.
11965         * xftfont.c (struct xftface_info): Delete the member xft_draw.
11966         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11967         (xftfont_get_xft_draw): New function.
11968         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11969         (xftfont_end_for_frame): New function.
11970         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11972         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11973         Change argument.  Cache GCs in the per-frame data.
11974         (struct ftxfont_frame_data): New struct.
11975         (ftxfont_draw_bitmap): New arg gc_fore and flush.
11976         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11977         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
11978         (ftxfont_end_for_frame): New function.
11979         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11981         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11983 2008-02-01  Kenichi Handa  <handa@m17n.org>
11985         * xselect.c (Vselection_coding_system)
11986         (Vnext_selection_coding_system): Delete them.
11987         (syms_of_xselect): Don't declare selection-coding-system and
11988         next-selection-coding-system.  They are declared in select.el.
11990 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11992         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11994         * w32fns.c: Include imm.h.
11995         (get_composition_string_fn, get_ime_context_fn): New optional
11996         system functions.
11997         (globals_of_w32fns): Load them from imm32.dll.
11998         (ignore_ime_char): New flag.
11999         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12000         WM_IME_ENDCOMPOSITION messages.
12002         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12003         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12005 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
12007         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12008         (READCHAR_REPORT_MULTIBYTE): New macro.
12009         (readchar): New 2nd arg MULTIBYTE.
12010         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12011         Make symbol's name multibyte according to the multibyteness of the
12012         source.
12014 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
12016         * xfaces.c (face_for_overlay_string): Call lookup_face with
12017         correct arguments (fix of synching with the trunk).
12019 2008-02-01  Kenichi Handa  <handa@m17n.org>
12021         * font.c (font_prop_validate_symbol, font_prop_validate_style)
12022         (font_prop_validate_non_neg, font_prop_validate_spacing):
12023         Delete argument prop_index.
12024         (font_property_table): Change arguments to validater.  Change Callers.
12025         (font_lispy_object): Delete.
12026         (font_at): Use font_find_object instead fo font_lispy_object.
12028 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
12030         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12031         and file names.
12033 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12035         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12036         (font_matches_spec): Remove debug output.
12037         (add_font_entity_to_list): Avoid using substituted fonts.
12039 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12041         * doc.c (Fsnarf_documentation):
12042         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12044 2008-02-01  Miles Bader  <miles@gnu.org>
12046         * dispextern.h (struct glyph_row): Only define "clip" field if
12047         HAVE_WINDOW_SYSTEM is defined.
12049 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12051         Fix up multi-tty merge.
12053         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12054         and indentation.
12056         * xfaces.c (free_realized_face, clear_face_gcs):
12057         Include font_done_for_face in the input_blocked section, just in case.
12059         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12060         (get_char_face_and_encoding): Undo last change and remove the *other*
12061         duplicate definition (i.e. keep the one that's better scoped and that
12062         includes code for the font-backend).
12064         * terminal.c (create_terminal): Default keyboard_coding to
12065         `no-conversion' and terminal_coding to `undecided'.
12067         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12069         * fontset.c (free_realized_fontsets): Check that the table entry does
12070         contain a fontset before trying to compare it to `base'.
12072         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12073         syms_of_charset, and syms_of_coding earlier because init_window_once
12074         now needs Vcoding_system_hash_table to be setup.
12076         * coding.h (default_buffer_file_coding): Remove.
12078         * coding.c (default_buffer_file_coding): Remove.
12079         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12080         than ->symbol, and use the terminal-local coding system.
12081         (syms_of_coding): Don't setup the coding-systems that are not
12082         terminal-local.
12083         (Fdefine_coding_system_internal): Use XCAR/XCDR.
12085         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12086         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12088         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
12089         in chartab.c and were re-added here by mistake.
12090         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12092         * doc.c (Fsnarf_documentation):
12093         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12094         src to etc.
12096         * ChangeLog.10: Add mistakenly removed entry.
12098 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
12100         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12102 2008-02-01  Miles Bader  <miles@gnu.org>
12104         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12105         Add extra args to FACE_FOR_CHAR.
12107 2008-02-01  Kenichi Handa  <handa@m17n.org>
12109         * keymap.c (where_is_internal_1): If key is a cons, store the copy
12110         in sequence.
12112         * chartab.c (map_sub_char_table, map_char_table): If the range
12113         contains just one character, call the function with that character
12114         even if the depth is not 3.
12116 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12118         * w32font.c (w32font_text_extents): Calculate metrics for the
12119         whole string.
12121 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12123         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12125 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12127         * w32term.c (x_set_glyph_string_clipping): Use
12128         get_glyph_string_clip_rects.
12129         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12130         Adjust for the change of struct glyph_string.
12132         * w32font.c (w32font_draw): Do clipping here.
12134 2008-02-01  Kenichi Handa  <handa@m17n.org>
12136         * xftfont.c (xftfont_draw): Adjust for the change of struct
12137         glyph_string.
12139         * xterm.c (x_set_glyph_string_clipping): Use
12140         get_glyph_string_clip_rects.
12141         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12142         Adjust for the change of struct glyph_string.
12144         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12145         the resulting clip(s}.
12146         (expose_overlaps): Add arg r.  Change callers.  Set it to
12147         row->clip temporarily.
12148         (expose_window): Redraw rows overlapping the exposed area.
12150         * dispextern.h (struct glyph_row): New member clip.
12151         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12152         clip_height, new member clip, and num_clips.
12154 2008-02-01  Kenichi Handa  <handa@m17n.org>
12156         * data.c (Fchar_or_string_p): Fix docstring.
12158 2008-02-01  Kenichi Handa  <handa@m17n.org>
12160         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12161         create a temporary XftDraw object.
12163 2008-02-01  Kenichi Handa  <handa@m17n.org>
12165         * font.c (Ffontp): Fix docstring.
12167         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12168         strong evidence of ISO-2022.
12170 2008-02-01  Kenichi Handa  <handa@m17n.org>
12172         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12173         SYNTAX_ENTRY_FOLLOW_PARENT.
12175 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12177         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12178         its type.
12179         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12180         Update to the new type of weak_hash_tables and next_weak.
12182         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12183         a plain C pointer to Lisp_Hash_Table.
12185         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12186         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12187         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12188         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12189         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12190         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12191         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12192         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12193         (GC_EQ): Remove since they've been identical to their non-GC_
12194         alter-egos ever since the markbit was eradicated.
12196         * alloc.c:
12197         * buffer.c:
12198         * buffer.h:
12199         * data.c:
12200         * fileio.c:
12201         * filelock.c:
12202         * fns.c:
12203         * frame.h:
12204         * lisp.h:
12205         * macterm.c:
12206         * print.c:
12207         * process.c:
12208         * w32fns.c:
12209         * w32menu.c:
12210         * w32term.c:
12211         * xfns.c:
12212         * xmenu.c:
12213         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12215 2008-02-01  Kenichi Handa  <handa@m17n.org>
12217         * chartab.c (map_sub_char_table): Make it work for the top-level
12218         char-table.  Fix handling of parent char-table.
12219         (map_char_table): Adjust for the above change.
12221 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12223         * w32font.c (Qgdi): Rename from Qw32.
12225 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12227         * w32bdf.c (get_quoted_string): Make function static.
12229 2008-02-01  Kenichi Handa  <handa@m17n.org>
12231         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12232         bigger ascent and descent than those of the font, use them as
12233         font's ascent and descent.
12235 2008-02-01  Kenichi Handa  <handa@m17n.org>
12237         * Makefile.in (${lispsource}international/charprop.el): Move this
12238         target within "#ifdef HAVE_UNIDATA" and "#endif".
12240 2008-02-01  Kenichi Handa  <handa@m17n.org>
12242         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12243         (shortlisp): Add ../lisp/language/tai-viet.el.
12245 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
12247         * Makefile.in (${lispsource}international/charprop.el): Depend on
12248         temacs${EXEEXT}.
12250 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12252         * w32font.c (w32font_close): Delete the GDI font object.
12254         * w32menu.c: Include character.h.
12256         * w32proc.c: Likewise.
12258         * w32select.c: Likewise.
12260         * makefile.w32-in (w32proc.o): Depend on character.h.
12262 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12264         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12266         * w32menu.c (syms_of_w32menu): Likewise.
12268         * w32proc.c (syms_of_ntproc): Likewise.
12270         * w32select.c (syms_of_w32select): Likewise.
12272         * w32term.c (syms_of_w32term): Likewise.
12274 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12276         * w32font.c (w32font_draw): Delete brush after using it.
12278 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12280         * w32font.c (w32font_open): Don't set font_idx.
12281         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12282         to font settings.
12283         (w32font_draw): Fill background explicitly.
12285 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12287         * w32term.c (w32_initialize): Don't call w32font_initialize.
12289         * w32font.c (w32font_info): Remove subranges.
12290         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12291         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12292         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12293         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12294         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12295         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12296         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12297         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12298         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12299         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12300         New symbols.
12301         (font_callback_data): New struct.
12302         (w32font_list, w32font_match): Use it.
12303         (w32font_open): Don't populate subranges.
12304         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12305         (w32font_encode_char): Always return unicode code-point as-is.
12306         (w32font_text_extents): Supply a transformation matrix to
12307         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
12308         twice.  Use unicode version of GetTexExtentPoint32 instead of
12309         glyph index version.
12310         (set_fonts_frame): Remove.
12311         (w32_enumfont_pattern_entity): Add frame parameter, use it to
12312         set frame parameter.  Use backward compatible fake foundries.
12313         Save generic family in extra slot under QCfamily.  Make width slot
12314         constant.  Save QCspacing value.  Save list of scripts instead of
12315         binary subranges.
12316         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12317         (add_font_entity_to_list): Use font_callback_data struct.  Filter
12318         unwanted fonts.
12319         (add_one_font_entity_to_list): Use font_callback_data struct.
12320         (w32_registry): Default to iso10646_1.
12321         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
12322         string font registries.  Don't fill in font name if it is a generic
12323         family name, fill family instead.  Use spacing, family and script
12324         extra info to fill pitch, family and charset fields.
12325         (list_all_matching_fonts): Use font_callback_data struct.
12326         (unicode_range_for_char): Remove.
12327         (font_supported_scripts): New function.
12328         (w32font_initialize): Remove.
12329         (syms_of_w32font): Update which symbols are defined.
12331 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12333         * font.c (font_pixel_size): Reverse assq_no_quit args.
12335         * w32term.h (FONT_WIDTH): Report max width, not average.
12336         (FONT_MAX_WIDTH): Remove.
12337         (FONT_AVG_WIDTH): New macro.
12339         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12340         redefinition of FONT_WIDTH.
12342         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12343         (w32_cache_char_metrics): Use FONT_WIDTH.
12345         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12347 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12349         * w32font.c (w32font_open): Make lfHeight negative.
12351         * w32fns.c (x_default_font_parameter): Use new style font name.
12352         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12354 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12356         * w32font.c (QCsubranges): New symbol.
12357         (w32font_open, w32font_has_char): Get subranges from subproperty
12358         of extra.
12359         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12360         (syms_of_w32font): Define :subranges symbol.
12362         * font.c (font_put_extra): Expose externally.
12364         * font.h (font_put_extra): Move declaration from font.c.
12366         * font.c (Ffont_get): Use font driver to determine otf capability.
12367         (adjust_anchor): Check if driver defines anchor_point before using.
12369         * w32font.c (w32font_open): Handle size, height and pixel_size better.
12370         (w32font_draw): Use options.
12371         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12372         Fix detection of truetype fonts.
12373         (registry_to_w32_charset): Handle charsets other than iso8859-1
12374         expressed as lisp symbols.
12375         (w32_registry): Express charset as lisp symbol.
12376         (fill_in_logfont): Reverse pixel and point height logic.
12377         Don't set width here.  Set quality to default.
12379         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12380         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12382         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12383         Remove redundant loop and allocation.
12385         * makefile.w32-in (font.o, w32font.o): New objects.
12386         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12387         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12389         * xdisp.c (fill_composite_glyph_string): Make the first arg to
12390         STORE_XCHARB a valid l-value.
12392         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12393         calculations for non-Truetype fonts.
12394         (x_draw_glyph_string): Sync with xterm.c.
12395         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12396         Remove redundant code.
12397         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12399         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12400         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12402         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12403         (x_to_w32_charset, w32_to_x_charset): Expose externally.
12405         * w32font.c: New file for w32 font backend.
12407 2008-02-01  Kenichi Handa  <handa@m17n.org>
12409         * term.c: Don't include "buffer.h" twice.
12411 2008-02-01  Kenichi Handa  <handa@m17n.org>
12413         * character.c (Funibyte_string): New function.
12414         (syms_of_character): Defsubr it.
12416 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12418         * w32term.c [USE_FONT_BACKEND]:
12419         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12420         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12421         (x_draw_glyph_string, x_draw_glyph_string_foreground)
12422         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12423         (x_free_frame_resources): Sync with xterm.c.
12425 2008-02-01  Andreas Schwab  <schwab@suse.de>
12427         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12428         char-table size.
12430 2008-02-01  Kenichi Handa  <handa@m17n.org>
12432         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12434 2008-02-01  Kenichi Handa  <handa@m17n.org>
12436         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12437         font_otf_gpos, add font_drive_otf.
12439         * fontset.c (fontset_find_font): Pay attention to font size
12440         specified for a font.
12441         (reorder_font_vector): Check contents of font_def.
12443         * font.c (struct otf_list): Delete it.
12444         (otf_list): Make it a lisp variable.
12445         (otf_open): Use lispy otf_list.
12446         (generate_otf_features): Rename from parse_gsub_gpos_spec.
12447         (check_otf_features): New function.
12448         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12449         New functions.
12450         (font_drive_otf): New function merging font_otf_gsub and
12451         font_otf_gpos.
12452         (font_open_for_lface): New arg spec.  Change argument order.
12453         (font_load_for_face): Adjust for the change of font_open_for_lface.
12454         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12455         Ffont_otf_gpos.
12456         (syms_of_font): Staticpro otf_list.  Delete defsubr of
12457         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
12459         * xfaces.c (set_font_frame_param): Adjust for the change of
12460         font_open_for_lface.
12462         * font.h (font_open_for_lface): Adjust prototype.
12463         (struct font_driver): Delete members otf_gsub and otf_gpos, add
12464         member otf_drive.
12465         (font_otf_gsub, font_otf_gpos): Delete externs.
12466         (font_drive_otf): Extern it.
12468 2008-02-01  Kenichi Handa  <handa@m17n.org>
12470         * font.c (font_at): If the window W is not on a window system,
12471         return Qnil.
12473         * coding.c (produce_chars, encode_coding): Don't call
12474         insert_from_gap if no characters to produce.
12476 2008-02-01  Kenichi Handa  <handa@m17n.org>
12478         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12479         Fclear_face_cache.
12481         * xfaces.c (face_for_font): Check also face->font==font->font.font.
12483 2008-02-01  Miles Bader  <miles@gnu.org>
12485         * emacs.c (main): Change default value of `enable_font_backend' to 1.
12486         Parse "--disable-font-backend" option.
12487         (standard_args): Add "--disable-font-backend" option.
12489 2008-02-01  Kenichi Handa  <handa@m17n.org>
12491         * fontset.c (fontset_find_font): New function.
12492         (fontset_font): Use fontset_find_font.
12493         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12494         Register the specified font for all Latin characters.
12495         (new_fontset_from_font): Register the specified font for all Latin
12496         characters.
12497         (dump_fontset): For a realized fontset, include the base fontset
12498         name in the returned vector.
12500 2008-02-01  Kenichi Handa  <handa@m17n.org>
12502         * character.h (CHAR_STRING): Cast C to unsigned on calling
12503         char_string.
12505         * character.c (char_string): Type of arg C changed to unsigned.
12506         Signal an error if C is an invalid character code.
12508         * editfns.c (general_insert_function, Fchar_to_string):
12509         Use CHARACTERP, not INTEGERP.
12511 2008-02-01  Kenichi Handa  <handa@m17n.org>
12513         * character.h (MIN_MULTIBYTE_LEADING_CODE)
12514         (MAX_MULTIBYTE_LEADING_CODE): New macros.
12516         * regex.c (analyse_first): Fix for multibyte characters in "case
12517         charset:" and "case categoryspec:".
12519 2008-02-01  Andreas Schwab  <schwab@suse.de>
12521         * Makefile.in (LIBES): Move standard libraries to the end.
12523 2008-02-01  Kenichi Handa  <handa@m17n.org>
12525         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12526         nonzero, don't shrink the buffer nextb.
12528         * buffer.h (struct buffer_text): New member inhibit_shrinking.
12530         * coding.c (coding_alloc_by_making_gap): New arg offset.
12531         (alloc_destination): Call coding_alloc_by_making_gap with the arg
12532         offset.
12533         (decode_coding_iso_2022): Update coding->safe_charsets.
12534         (decode_coding_gap): Temporarily set
12535         current_buffer->text->inhibit_shrinking to 1.
12537 2008-02-01  Kenichi Handa  <handa@m17n.org>
12539         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12540         indexing into elements of s->cmp and s->char2b.
12542 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
12544         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12546 2008-02-01  Kenichi Handa  <handa@m17n.org>
12548         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12549         target_multibyte instead of multibyte.
12550         (re_match_2_internal): Call bcmp_translate with target_multibyte.
12551         (bcmp_translate): Change the argument name from multibyte to
12552         target_multibyte.
12554 2008-02-01  Kenichi Handa  <handa@m17n.org>
12556         These changes are to compile a regexp into a pattern that can be
12557         used both for multibyte and unibyte targets.
12559         * Makefile.in (search.o): Depend on charset.h.
12561         * character.c (multibyte_char_to_unibyte_safe): New function.
12563         * search.c: Include "charset.h".
12564         (compile_pattern_1): Delete argument multibyte.  Don't set
12565         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
12566         (compile_pattern): Don't compare cp->buf.target_multibyte.
12567         Compare cp->buf.charset_unibyte.
12568         (compile_pattern): Set cp->buf.target_multibyte.
12570         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12572         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12574         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12575         multibyte.  Change callers.
12576         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12577         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
12578         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12579         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12580         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12581         (regex_compile): Make the compiled pattern usable both for
12582         multibyte and unibyte targets.
12583         (analyse_first): Make the fastmap usable both for multibyte and
12584         unibyte targets.
12585         (TRANSLATE_VIA_MULTIBYTE): Delete.
12586         (re_match_2_internal): Pay attention to the case that the
12587         multibyteness of bufp and target may be different.
12589 2008-02-01  Kenichi Handa  <handa@m17n.org>
12591         * xdisp.c (x_produce_glyphs): When a font is not found, make the
12592         empty box occupy at least one column width.
12594 2008-02-01  Miles Bader  <miles@gnu.org>
12596         * Makefile.in: Remove redundant HAVE_XFT clause.
12598 2008-02-01  Kenichi Handa  <handa@m17n.org>
12600         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12602 2008-02-01  Kenichi Handa  <handa@m17n.org>
12604         * fontset.c (Finternal_char_font): Fix for the case of POSITION
12605         being nil.
12607 2008-02-01  Kenichi Handa  <handa@m17n.org>
12609         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12611 2008-02-01  Kenichi Handa  <handa@m17n.org>
12613         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12615 2008-02-01  Kenichi Handa  <handa@m17n.org>
12617         * search.c (simple_search): Fix previous change.
12619 2008-02-01  Kenichi Handa  <handa@m17n.org>
12621         * xftfont.c (ftfont_font_format): Extern declaration.
12623         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12625         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12626         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12628         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12629         (ftfont_font_format): Fix previous change.
12631         * font.h (Ffont_xlfd_name): EXFUN it.
12633         * font.c (font_parse_xlfd): Fix the array size of `f'.
12634         (register_font_driver): Use EQ to compare driver->type.
12636         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12637         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12638         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12640 2008-02-01  Kenichi Handa  <handa@m17n.org>
12642         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12643         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12645 2008-02-01  Kenichi Handa  <handa@m17n.org>
12647         * xfont.c (xfont_open): Set font->format.
12649         * xftfont.c (xftfont_open): Set font->format.
12651         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12652         (ftfont_list): Include FC_FONTFORMAT in FcObject.
12653         (ftfont_open): Set font->format.
12654         (ftfont_font_format): New function.
12656         * font.h (struct font): New member format.
12658         * font.c (Qopentype): New variable.
12659         (syms_of_font): Defsym it.
12660         (Fquery_font): Change the format of the last element of the return
12661         value.
12663 2008-02-01  Kenichi Handa  <handa@m17n.org>
12665         * xfns.c (xic_create_xfontset): Try the default fontset name as a
12666         last resort.
12668 2008-02-01  Kenichi Handa  <handa@m17n.org>
12670         * coding.c (detect_coding_charset): Fix detection of multi-byte
12671         charset.
12673 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
12675         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12677 2008-02-01  Kenichi Handa  <handa@m17n.org>
12679         * xdisp.c (get_next_display_element): Set it->face_id for the
12680         first component of a composition.
12681         (x_produce_glyphs): Check if the font is changed or not for composition.
12683 2008-02-01  Kenichi Handa  <handa@m17n.org>
12685         * fontset.c (Qlatin): New variable.
12686         (syms_of_fontset): Define it as a lisp symbol.
12687         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12689 2008-02-01  Kenichi Handa  <handa@m17n.org>
12691         * font.c (font_unparse_fcname): Pay attention to the case that
12692         some of font property is a null string.
12694 2008-02-01  Kenichi Handa  <handa@m17n.org>
12696         * term.c: Include "composite.h".
12697         (encode_terminal_code): Output all components of composition.
12698         Check the size of encode_terminal_src.
12699         (produce_glyphs): For composition, call produce_composite_glyph.
12700         (append_composite_glyph, produce_composite_glyph): New functions.
12702         * xdisp.c (x_produce_glyphs): In handling composition, if a font
12703         is not found, get font_info from the current ascii face.
12705 2008-02-01  Kenichi Handa  <handa@m17n.org>
12707         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12708         buffer-file-name to Qnil before calling insert_from_buffer.
12710         * font.c (font_unparse_fcname): Pay attention to the case that
12711         foundry is a null string.
12713 2008-02-01  Kenichi Handa  <handa@m17n.org>
12715         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12717         * font.c (Qunicode_sip): New variable.
12718         (syms_of_font): Declare it as a Lisp symbol.
12720         * font.h (Qunicode_sip): Extern it.
12722 2008-02-01  Kenichi Handa  <handa@m17n.org>
12724         * composite.c (get_composition_id): Pay attention to TAB component.
12726         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12727         TAB.  Adjust for the change of s->char2b which always points to
12728         the first element of allocated memory.
12730         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12732         * xdisp.c (handle_composition_prop): Set it->c to the first
12733         non-TAB component.
12734         (fill_composite_glyph_string): Change argument.
12735         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12736         (x_produce_glyphs): Fix handling of left/right padding.
12738 2008-02-01  Kenichi Handa  <handa@m17n.org>
12740         * coding.c (detect_coding_system): Fix for handling off
12741         inhibit_iso_escape_detection.  Fix for the case that no coding
12742         system is defined for a specific coding category.
12744 2008-02-01  Kenichi Handa  <handa@m17n.org>
12746         * font.c (font_matching_entity): Delete unused local var.
12748         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12749         opening a font.
12751         * fileio.c (Finsert_file_contents): On recovering a file, assume
12752         Unix-like eol.
12753         (choose_write_coding_system): On auto-saving a file, force
12754         Unix-like eol.
12756         * coding.c (setup_coding_system): Fix setting of
12757         coding->common_flags based on eol_type.
12758         (coding_inherit_eol_type): If PARENT is not nil, be sure to
12759         inherit from it.
12761 2008-02-01  Kenichi Handa  <handa@m17n.org>
12763         * alloc.c (NSTATICS): Increas to 0x600.
12765 2008-02-01  Kenichi Handa  <handa@m17n.org>
12767         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12768         (ftfont_list): Don't check :name property.
12769         (ftfont_match): New function.
12770         (ftfont_pattern_entity): If the pattern doesn't contain
12771         FC_SPACING, don't assume FC_MONO.
12773         * font.h (struct font_driver): New member `match'.
12774         (font_update_drivers): Adjust prototype.
12776         * font.c (font_parse_fcname, font_parse_name): Don't change :name
12777         property of FONT.
12778         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12779         them unconditionally.
12780         (font_matching_entity): New function.
12781         (font_open_by_name): Try font_matching_entity if exact match is
12782         not found.
12783         (font_update_drivers): Delete the arg FONT.  Return a list of
12784         actually used backends.  Don't free faces, font caches here.
12785         Don't store data in frame parameters.  Don't call x_set_font.
12786         (Ffont_spec): Store :name property as is.
12787         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12788         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12789         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12790         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12791         Call font->driver->otf_gsub instead of font_otf_gsub.
12793         * frame.c (x_set_font_backend): Do more works that were done in
12794         font_update_drivers before.
12796         * xfont.c (xfont_match): New function.
12797         (xfont_driver): Set xfont_driver.match to xfont_match.
12798         (xfont_draw): Set font in GC if necessary.
12800         * ftxfont.c (ftxfont_match): New function.
12801         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12803         * xftfont.c (xftfont_match): New function.
12804         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12806 2008-02-01  Kenichi Handa  <handa@m17n.org>
12808         * font.h (struct font): New member scalable.
12809         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12810         (font_otf_gsub): Adjust prototype.
12812         * font.c (font_otf_capability): Fix handling of the default langsys.
12813         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
12814         Check the contents of SPEC.
12815         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12816         (check_gstring): New function.
12817         (REPLACEMENT_CHARACTER): New macro.
12818         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
12819         glyph codes of GSTRING.
12820         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12821         (font_prepare_composition): Set cmp->glyph_len.
12822         (font_open_entity): Set font->scalable.
12823         (Ffont_get): Handle :otf property.
12824         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12825         functions.
12826         (Fquery_font): Use font->font.full_name.
12827         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12828         Sfont_otf_alternates.
12830         * ftfont.c (ftfont_open): Set font->font.full_name and
12831         font->font.name properly.  Fix calculation of font->font.height
12832         and font->min_width.
12834         * ftxfont.c (ftxfont_create_gcs): New function.
12835         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12836         (ftxfont_draw_backgrond): Fix filling region.
12837         (ftxfont_default_fid): New function.
12838         (ftxfont_open): Set xfont->fid to the return value of
12839         ftxfont_default_fid.
12840         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12841         (ftxfont_done_face): Free only GCs that are created by
12842         ftxfont_create_gcs.
12843         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12845         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12846         Clip to src->width, etc (not src->clip_XXX).
12848         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12849         FontBackend frame parameter.
12851 2008-02-01  Kenichi Handa  <handa@m17n.org>
12853         * font.h (struct font_driver_list): New member `on'.
12854         (Fclear_font_cache): EXFUN it.
12855         (font_update_drivers): Extern it.
12857         * font.c (font_unparse_fcname): Fix typo (swidth->width).
12858         (font_list_entities): Check driver_list->on.
12859         (register_font_driver): Initalize `on' member to 0.
12860         (font_update_drivers): New function.
12861         (Fclear_font_cache): Check driver_list->on.
12863         * frame.h (Qfont_backend): Extern it.
12864         (x_set_font_backend): Extern it.
12866         * frame.c (Qfont_backend): New variable.
12867         (frame_parms): New element for font-backend.
12868         (x_set_font_backend): New function.
12870         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12871         FontBackend frame parameter.
12872         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12873         x_set_font_backend.
12875         * xfont.c (xfont_list): Don't try listing by :name property if the
12876         name is not for XLFD.
12878 2008-02-01  Kenichi Handa  <handa@m17n.org>
12880         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12881         (LGLYPH_SET_TO): New macros.
12882         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12883         element of G is vector or not.
12884         (font_at): Extern it.
12886         * font.c: Include window.h.
12887         (font_lispy_object): New function.
12888         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12889         end of valid glyph.
12890         (font_close_object): Fix getting (struct font *).
12891         (font_at): New function.
12892         (Ffont_get): If FONT is a font-object, get entity from it.
12893         (Ffont_make_gstring): Initialize elements of glyphs with nil.
12894         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
12895         range check.
12896         (Ffont_at): New function.
12897         (syms_of_font): Defsubr Sfont_at.
12899         * xdisp.c (it_props): Move the entry for Qauto_composed to just
12900         before the entry for Qcomposition.
12901         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12902         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12903         the font in gstring.
12904         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12905         LGLYPH_FORM (g) to detect the end of valid glyph.
12906         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12907         we are composing with gstring.
12909         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12910         Check if adjustment is vector or not.
12912         * Makefile.in (font.o): Make it depends on window.h.
12914 2008-02-01  Kenichi Handa  <handa@m17n.org>
12916         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12917         adjustment is vector or not.
12919 2008-02-01  Miles Bader  <miles@gnu.org>
12921         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12923 2008-02-01  Kenichi Handa  <handa@m17n.org>
12925         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12926         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12927         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12929         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12930         (DEVICE_DELTA): Fix typo.
12931         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12932         LGLYPH format.
12934         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12935         the change of LGLYPH format.
12937 2008-02-01  Kenichi Handa  <handa@m17n.org>
12939         * ftfont.c (ftfont_list): Fix typo.
12940         (ftfont_build_basic_charsets): Don't include letters with diacritics.
12942 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
12944         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12946         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12947         xftface_info is non-NULL.
12949 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
12951         * ftfont.c (ftfont_list): Move misplaced #endif.
12953 2008-02-01  Kenichi Handa  <handa@m17n.org>
12955         * ftfont.c (ftfont_list): Pay attention to the case that
12956         FC_CAPABILITY is not defined.
12958 2008-02-01  Kenichi Handa  <handa@m17n.org>
12960         * xftfont.c (xftfont_open): Set charset related members to -1.
12962         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
12963         QCname.
12964         (ftfont_open): Set charset related members to -1.
12966         * fontset.c (Votf_script_alist): New variable.
12967         (syms_of_fontset): Initialize it.
12968         (fontset_font): Delete unused variable.
12970         * fontset.h (Votf_script_alist): Extern it.
12972         * font.c (font_find_for_lface): Optimize code.
12974         * font.h (font_close_object, font_merge_old_spec): Extern them.
12976 2008-02-01  Kenichi Handa  <handa@m17n.org>
12978         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12979         (syms_of_font): Initialize them.
12980         (font_pixel_size): Allow float value in dpi.
12981         (font_prop_validate_type): Delete.
12982         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12983         Change caller.
12984         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12985         (font_prop_validate_extra): Delete.
12986         (font_prop_validate_spacing): New function.
12987         (font_property_table): Add elements for all known properties.
12988         (get_font_prop_index): Rename from check_font_prop_name.  New
12989         argument FROM.  Change caller.
12990         (font_prop_validate): Validate all known properties.
12991         (font_put_extra): Delete argument force.  Change caller.
12992         (font_expand_wildcards): Make it static.  Fix the way of shrinking
12993         the possible range.
12994         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
12995         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
12996         Change caller.
12997         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12998         (font_parse_fcname): Delete argument merge.  Fix parsing of point
12999         size.  Don't validate properties values here.  Change caller.
13000         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13001         (font_open_by_name): Delete unused variable.
13002         (Ffont_spec): Likewise.  Validate property values.
13003         (Ffont_match_p): New function.
13005         * font.h (QCscalable): Extern it.
13006         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13008         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13010         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13011         (xfont_list_pattern): New function.
13012         (xfont_list): Use xfont_list_pattern.
13014 2008-02-01  Kenichi Handa  <handa@m17n.org>
13016         * font.h (Flist_fonts): EXFUN it.
13018 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13020         * w32term.c (w32_initialize): Add back smoothing_type and
13021         smoothing_enabled definitions.
13023 2008-02-01  Kenichi Handa  <handa@m17n.org>
13025         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13026         s->face->font on determining underline position.
13028 2008-02-01  Kenichi Handa  <handa@m17n.org>
13030         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13031         (font_has_char): Accept font-object too.
13032         (font_find_for_lface): Try at first with a size specified in face.
13034 2008-02-01  Kenichi Handa  <handa@m17n.org>
13036         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13037         font_open_by_name.
13039 2008-02-01  Kenichi Handa  <handa@m17n.org>
13041         * font.h (QCspacing, QCdpi): Extern them.
13042         (enum font_spacing): New enum.
13043         (FONT_PIXEL_SIZE_QUANTUM): New macro.
13045         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13046         (QCspacing, QCdpi): New variables.
13047         (syms_of_font): Initialize them.
13048         (font_pixel_size): New function.
13049         (font_put_extra): New function.
13050         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
13051         in FONT_EXTRA.
13052         (font_parse_fcname): Handle enumerated values (e.g. bold).
13053         Fix handling font size.  Add QCname property that contains only
13054         unknown properties.
13055         (font_score): Change argument.  Change caller.  Pay attention to
13056         FONT_PIXEL_SIZE_QUANTUM.
13057         (font_sort_entites, font_list_entities, font_find_for_lface)
13058         (font_open_for_lface, font_open_by_name): Fix handling of font size.
13059         (Ffont_spec): Add QCname property that contains only unknown properties.
13061         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
13062         include weight in listing pattern, instead check weight of each
13063         listed font.  Don't include scalable in pattern.  Pay attention to
13064         FONT_PIXEL_SIZE_QUANTUM.
13066 2008-02-01  Kenichi Handa  <handa@m17n.org>
13068         * font.c (font_parse_fcname): Fix parsing of point-size.
13069         (font_unparse_fcname): Produce symbolic names for style properties.
13070         (font_list_entities): Handle float size correctly.
13071         (font_open_by_name): Prefer `normal' property values if the name
13072         doesn't specify them.
13074         * fontset.c (Finternal_char_font): Use font_get_name, not
13075         Ffont_xlfd_name.
13077         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13078         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13079         pattern.  Don't force scalable.
13081         * xftfont.c (xftfont_open): For generating a name, start from
13082         96-byte buffer.
13084 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
13086         * frame.h (x_new_fontset2): Fix prototype.
13088 2008-02-01  Kenichi Handa  <handa@m17n.org>
13090         * font.h (struct font_driver): Delete member parse_name.
13091         (font_match_p, font_get_spec, font_parse_fcname)
13092         (font_unparse_fcname): Extern them.
13093         (font_get_name): Adjust prototype.
13095         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13096         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13097         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
13098         unnecessary checks for weight, slant, and swidth.
13099         (font_parse_fcname): New function.
13100         (font_unparse_fcname): New function.
13101         (font_parse_name): New function.
13102         (font_match_p): New function.
13103         (font_get_name): Change return value to Lisp string.
13104         (font_get_spec): New function.
13105         (Qunspecified, Qignore_defface): Don't extern them.
13106         (font_find_for_lface): Assume that LFACE is fully specified.
13107         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13108         object, use it for FACE.
13109         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
13110         driver->parse_name.
13111         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13113         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13114         prototype.
13116         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13117         argument F.  Don't call Fnew_fontset.  Instead, directly call
13118         make_fontset.
13120         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13122         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13123         of x_new_fontset2.
13125         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13126         (Qsans__serif): New variables.
13127         (ftfont_generic_family_list): New variable.
13128         (syms_of_ftfont): Initialize the above variables.
13129         (ftfont_pattern_entity): Delete argument NAME.
13130         (ftfont_list_generic_family): New function.
13131         (ftfont_parse_name): Delete this function.
13132         (ftfont_list): Try generic family only when FcFontList found no font.
13133         (ftfont_list_family): Fix args to FcObjectSetBuild.
13135         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13136         object in attrs[LFACE_FONT_INDEX].
13137         (set_lface_from_font_name): Cancel all changes for font-backend.
13138         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13139         function.
13140         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13141         font object in QCfont attribute.
13142         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13143         (realize_default_face) [USE_FONT_BACKEND]: Call
13144         set_lface_from_font_and_fontset.
13146         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13147         "fixed", and signal error here if no suitable font was found.
13149         * xfont.c (xfont_parse_name): Delete this function.
13151         * xftfont.c (xftfont_open): Change coding style of error
13152         handling.  Generate fontconfig's fontname pattern.
13154         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13155         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13157         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13158         Both args FONTSET and FONT_OBJECT must be existing ones.
13160 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13162         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13164 2008-02-01  Kenichi Handa  <handa@m17n.org>
13166         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13168         * font.h (struct font): Fix typo.
13170         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13171         XLFD_XXX_INDEX.
13172         (enum xlfd_field_mask): New enum.
13173         (intern_font_field): Changed argument.  Change caller.  If digits
13174         are followed by non-digits, return a symbol.
13175         (font_expand_wildcards): New function.
13176         (font_parse_xlfd): Fix wildcard handling.
13177         (Ffont_spec): If :name is specified, reflect the info in the other
13178         properties.
13180         * ftfont.c (ftfont_pattern_entity): Fix typo.
13181         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13182         locale.
13184 2008-02-01  Kenichi Handa  <handa@m17n.org>
13186         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13188         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13189         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
13190         registry doesn't specify encoding part.
13191         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13192         (font_open_by_name): At first try parsing the name.
13193         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13194         as Lisp symbols.
13196         * fontset.c (reorder_font_vector): Pay attention to the case that
13197         the 3rd element of font_def is nil.
13198         (fontset_font): For the default fontset, append one more fontset
13199         elements for a script-based font specification.  Don't add script
13200         attribute on finding a font.
13201         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13202         font name.
13203         (fontset_ascii_font): If a font can't be opened, return nil.
13205         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13206         (ftfont_pattern_entity): New function.
13207         (ftfont_get_cache): Assume that freetype_font_cache is already
13208         initialized.
13209         (ftfont_list): Handle the case that a file is specified in font
13210         name.  Use ftfont_pattern_entity to generate entities.
13211         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13212         (syms_of_ftfont): Initialize freetype_font_cache.
13214         * xftfont.c (xftfont_open): Make the font name fontconfig's
13215         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
13216         (xftfont_close): Free font->font.name if not NULL.
13218         * xfont.c (xfont_list): If script is specified for a font, return
13219         null_vector.
13220         (xfont_list_family): Declare argument type.
13222         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13223         name, set LFACE_FONT (lface) to nil.
13225         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13226         return Qnil.
13228 2008-02-01  Kenichi Handa  <handa@m17n.org>
13230         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13231         (standard_args): Add "-enable-font-backend".
13233 2008-02-01  Kenichi Handa  <handa@m17n.org>
13235         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13236         (struct xftdraw_list, xftdraw_list): Delete them.
13237         (register_xftdraw, check_xftdraw): Delete them.
13238         (xftfont_prepare_face): Don't call register_xftdraw.
13239         (xftfont_done_face): Don't call check_xftdraw.
13240         (xftfont_draw): Get background color only when with_background is
13241         nonzero.
13243         * xfont.c (xfont_encode_char): Fix calculation of char2b.
13245 2008-02-01  Kenichi Handa  <handa@m17n.org>
13247         These changes are for the new font handling codes.
13249         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13250         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13251         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13252         (FONTSRC, FONTOBJ): New variables.
13253         (obj): Add $(FONTOBJ).
13254         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13255         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13256         @LIBOTF_LIBS@.
13257         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13258         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13260         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13262         * character.h (Vscript_representative_chars): Extern it.
13264         * character.c (Vscript_representative_chars): New variable.
13265         (syms_of_character): Declare it as a Lisp variable.
13267         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13268         enable_font_backend is nonzero, accept the composition method
13269         COMPOSITION_WITH_GLYPH_STRING.
13271         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13272         enumeration COMPOSITION_WITH_GLYPH_STRING.
13274         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13275         members clip_x, clip_y, clip_width, and clip_height.
13276         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13278         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13279         --enable-font-backend.  Call syms_of_font.
13281         * fns.c (assoc_no_quit): New function.
13283         * fontset.h (FONT_INFO_FROM_FACE): New macro.
13284         (face_for_font, new_fontset_from_font)
13285         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13287         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13288         (fontset_font, fontset_ascii, face_for_char)
13289         (make_fontset_for_ascii_face, Ffont_info)
13290         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13291         is nonzero, use font-backend mechanism.
13292         (find_font_encoding): Make it non-static.
13293         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13294         New functions.
13296         * frame.h (struct frame): New members resx and resy.
13297         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13298         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13300         * frame.c [USE_FONT_BACKEND]: Include "font.h".
13301         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13303         * lisp.h (assoc_no_quit): Extern it.
13305         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13306         Through out the file, use FONT_INFO_FROM_FACE instead of
13307         FONT_INFO_FROM_ID, use get_per_char_metric instead of
13308         rif->per_char_metric.
13309         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13310         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13311         (get_glyph_face_and_encoding, fill_composite_glyph_string)
13312         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13313         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13314         nonzero, use font-backend mechanism.
13315         (get_per_char_metric): New function.
13317         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13318         (set_lface_from_font_name)
13319         (set_font_frame_param, free_realized_face)
13320         (prepare_face_for_display, clear_face_gcs)
13321         (Finternal_set_font_selection_order, realize_x_face)
13322         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13323         font-backend mechanism.
13324         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13325         (load_face_font) [USE_FONT_BACKEND]: Abort.
13326         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13327         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13329         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13330         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13331         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13332         nonzero, register all available font drivers.  Call
13333         x_default_font_parameter for deciding a font.
13334         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13336         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13337         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13338         (x_set_glyph_string_clipping_exactly)
13339         (x_compute_glyph_string_overhangs)
13340         (x_draw_glyph_string_foreground)
13341         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13342         (x_free_frame_resources) [USE_FONT_BACKEND]: If
13343         enable_font_backend is nonzero, use font-backend mechanism.
13344         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13346 2008-02-01  Kenichi Handa  <handa@m17n.org>
13348         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13349         system_eol_type.
13350         (syms_of_coding): Initialize system_eol_type.
13352         * process.c (Fset_process_coding_system): Inherit system's eol
13353         format if necessary.
13355 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13357         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13359 2008-02-01  Kenichi Handa  <handa@m17n.org>
13361         * coding.c (decode_eol): Pay attention to buffer relocation in
13362         del_range_2.
13363         (decode_coding): Call decode_eol before restoring undo_list.
13365 2008-02-01  Kenichi Handa  <handa@m17n.org>
13367         * charset.c (Fdefine_charset_internal): Fix setting of
13368         emacs_mule_bytes.
13370 2008-02-01  Kenichi Handa  <handa@m17n.org>
13372         * keyboard.c (read_char): Check if C is a character or not before
13373         looking up Vkeyboard_translate_table.
13375 2008-02-01  Kenichi Handa  <handa@m17n.org>
13377         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13378         condition to terminate the loop.
13380 2008-02-01  Kenichi Handa  <handa@m17n.org>
13382         * coding.c (produce_composition): Compare charbuf[i] instead of
13383         args[i] against 0.
13384         (Fterminal_coding_system): Use EQ to compare Lisp objects.
13386 2008-02-01  Kenichi Handa  <handa@m17n.org>
13388         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13389         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13390         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13391         detect_coding.
13392         (emacs_mule_char): Handle old style (Emacs 20) component character
13393         of a composition.
13394         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13395         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13396         composition rule.
13397         (decode_coding_emacs_mule): Handle invalid bytes correctly.
13399 2008-02-01  Kenichi Handa  <handa@m17n.org>
13401         * coding.c (encode_coding_ccl): Allocate destination dynamically
13402         when necessary.
13404 2008-02-01  Kenichi Handa  <handa@m17n.org>
13406         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13407         the loop.  When quitted, show a proper error message.
13409 2008-02-01  Kenichi Handa  <handa@m17n.org>
13411         * xterm.c (x_set_glyph_string_clipping_exactly): Set
13412         src->clip_head and src->clip_tail temporarily instead of src->hl.
13414         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13415         character sequence.
13416         (Fccl_execute_on_string): Use ASET, not XSET.
13418 2008-02-01  Kenichi Handa  <handa@m17n.org>
13420         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13422 2008-02-01  Kenichi Handa  <handa@m17n.org>
13424         * coding.c (decode_coding): Fix the condition of terminating the
13425         decoding loop.
13427 2008-02-01  Kenichi Handa  <handa@m17n.org>
13429         * data.c (Faset): On setting a character bigger than 255 in a
13430         unibyte string, signal an error instead of make the string multibyte.
13432 2008-02-01  Kenichi Handa  <handa@m17n.org>
13434         * charset.c (map_charset_chars): Fix for ascii-compatible charset
13435         made by a mapping table.
13437 2008-02-01  Kenichi Handa  <handa@m17n.org>
13439         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13440         not.
13441         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13442         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13444         * xterm.c (x_draw_composite_glyph_string_foreground): Check
13445         s->face is NULL or not.
13447 2008-02-01  Kenichi Handa  <handa@m17n.org>
13449         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13450         (x_draw_glyph_string): Fix drawing of right_overhang and
13451         left_overhang around/on cursor.
13453         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13455 2008-02-01  Kenichi Handa  <handa@m17n.org>
13457         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13459 2008-02-01  Kenichi Handa  <handa@m17n.org>
13461         * coding.c (Fdefine_coding_system_internal)
13462         (Fdefine_coding_system_alias): Avoid a duplicated element in
13463         Vcoding_system_alist.
13465 2008-02-01  Kenichi Handa  <handa@m17n.org>
13467         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13469         * coding.c (Qcoding_system_define_form): New variable.
13470         (syms_of_coding): Intern and staticpro it.
13471         (Fcoding_system_p): Check Qcoding_system_define_form.
13472         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13474         * coding.h (CODING_SYSTEM_P): If ID is not available, call
13475         Fcoding_system_p.
13476         (CHECK_CODING_SYSTEM): If ID is not available, call
13477         Fcheck_coding_system.
13478         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13479         Try also Fcheck_coding_system.
13481 2008-02-01  Kenichi Handa  <handa@m17n.org>
13483         * coding.c (code_conversion_restore): GCPRO arg.
13485 2008-02-01  Kenichi Handa  <handa@m17n.org>
13487         * character.c (lisp_string_width): Check multibyteness of STRING.
13489 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13491         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13492         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
13493         (decode_mac_font_name): Use decode_coding_c_string instead of
13494         decode_coding.
13495         (x_load_font): Initialize fontp->fontset to -1.  Set
13496         fontp->encoding_type.
13498 2008-02-01  Kenichi Handa  <handa@m17n.org>
13500         * search.c (search_buffer): Give up BM search on case-fold-search
13501         if one of a target character has a case-equivalence of different
13502         byte length even if that target charcter is an ASCII.
13503         (simple_search): Fix calculation of byte length of matched text.
13504         (boyer_moore): Fix handling of case-equivalent multibyte characters.
13506 2008-02-01  Kenichi Handa  <handa@m17n.org>
13508         * coding.c (decode_coding): Fix handling of invalid bytes.
13510 2008-02-01  Kenichi Handa  <handa@m17n.org>
13512         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13513         Unicode characters.
13515 2008-02-01  Kenichi Handa  <handa@m17n.org>
13517         * coding.c (encode_coding_object): If a pre-write-conversion
13518         function makes a new buffer, kill it.
13520 2008-02-01  Kenichi Handa  <handa@m17n.org>
13522         * coding.c (QCascii_compatible_p): New variable.
13523         (syms_of_coding): Initialize it.
13524         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13525         calling string_char.
13526         (record_conversion_result): Add `default:' case.
13527         (coding_charset_list): Delete unused variable `coding_type'.
13528         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13529         property in the plist of the coding system.
13530         (Fcoding_system_put): Check QCascii_compatible_p.
13532 2008-02-01  Miles Bader  <miles@gnu.org>
13534         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13535         removed calculation of frame `f', as it's now used.
13537 2008-02-01  Kenichi Handa  <handa@m17n.org>
13539         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13540         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13541         (UNIDATA): New variable.
13542         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13543         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
13544         $(RUN_TEMACS) unconditionally.
13546 2008-02-01  Kenichi Handa  <handa@m17n.org>
13548         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13549         (admindir): New variable.
13550         ($(lispsource)international/charprop.el): New target.
13552 2008-02-01  Miles Bader  <miles@gnu.org>
13554         * character.c (chars-in-region): Remove obsolete function.
13555         (syms_of_character): Remove its initialization.
13557 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
13559         * w32select.c (validate_coding_system)
13560         (setup_windows_coding_system): New functions.
13561         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13562         setup_windows_coding_system.
13563         (setup_config, Fw32_get_clipboard_data): Use
13564         validate_coding_system.
13565         (Fx_selection_exists): Move call to setup_config to a place
13566         where signals are allowed.
13568         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13569         (Fcheck_coding_system): Add declarations.
13571 2008-02-01  Kenichi Handa  <handa@m17n.org>
13573         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13575 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13577         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13578         string as the second argument for x_new_fontset.
13580 2008-02-01  Kenichi Handa  <handa@m17n.org>
13582         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13583         (encode_coding_object): Use safe_call instead of call2.
13585 2008-02-01  Kenichi Handa  <handa@m17n.org>
13587         * fontset.c (Fset_fontset_font): Check family element of a given vector.
13589         * Makefile.in (lisp): Include charprop.el.
13591 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13593         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13594         Not sure if it's unnecessary.
13596 2008-02-01  Steven Tamm  <steventamm@mac.com>
13598         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13599         some possibly unnecessary fontset checking code that crashed
13600         when creating a new frame.
13602 2008-02-01  Kenichi Handa  <handa@m17n.org>
13604         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13605         lookup_face.
13607         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13609         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13611 2008-02-01  Kenichi Handa  <handa@m17n.org>
13613         * coding.c: Cancel the change done in HEAD on 2008-02-01.
13614         (coding_charset_list): New function.
13616         * coding.h (coding_charset_list): Extern it.
13618 2008-02-01  Kenichi Handa  <handa@m17n.org>
13620         * fontset.c (Fset_fontset_font): Call find_font_encoding with
13621         concatenation of family and registry.
13623 2008-02-01  Kenichi Handa  <handa@m17n.org>
13625         * character.h (BYTE8_STRING): Fix typo.
13627         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13628         string to multibyte (sync to HEAD).
13630         * casefiddle.c (casify_region): Handle changes in byte-length
13631         using replace_range_2 (sync to HEAD).
13633 2008-02-01  Andreas Schwab  <schwab@suse.de>
13635         * chartab.c (map_char_table): GCPRO table and arg.
13637 2008-02-01  Kenichi Handa  <handa@m17n.org>
13639         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13640         already at limit.
13642 2008-02-01  Kenichi Handa  <handa@m17n.org>
13644         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13645         instead of fast_c_string_match_ignore_case.
13646         (find_font_encoding): Change argument to Lisp_Object.  Use
13647         fast_string_match_ignore_case instead of
13648         fast_c_string_match_ignore_case.  Change caller.
13650 2008-02-01  Kenichi Handa  <handa@m17n.org>
13652         * xdisp.c (get_next_display_element): In unibyte case, decide to
13653         display in octal form by checking a character by
13654         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13656         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13658         * character.c (unibyte_has_multibyte_table): New variable.
13660         * character.h (unibyte_has_multibyte_table): Extern it.
13661         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13663 2008-02-01  Kenichi Handa  <handa@m17n.org>
13665         * coding.c (encode_coding_iso_2022): Fix handling of charset
13666         annotation.
13668 2008-02-01  Kenichi Handa  <handa@m17n.org>
13670         * coding.c (setup_coding_system): If coding_system is nil, use
13671         Qundecided.
13672         (Fterminal_coding_system): Return nil if terminal coding system is
13673         `undecided'.
13674         (syms_of_coding): Define coding-system `undecided' here.  Setup
13675         terminal_coding as `undecided'.
13677 2008-02-01  Kenichi Handa  <handa@m17n.org>
13679         * xdisp.c (message_dolog, set_message_1): Call
13680         unibyte_char_to_multibyte with arg type int.
13682         * lread.c (read1): Fix reading of a char-table.
13684         * print.c (print_object): Include sub char-table in circularities
13685         detection.
13687 2008-02-01  Kenichi Handa  <handa@m17n.org>
13689         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13690         Append the found sequences in car of ARGS instead of prepending.
13692 2008-02-01  Kenichi Handa  <handa@m17n.org>
13694         * fileio.c (report_file_error): Make a unibyte string from
13695         strerror (errorno).
13696         (Fsubstitute_in_file_name): Fix the arg to
13697         unibyte_char_to_multibyte.  It is evaluated twice.
13699 2008-02-01  Kenichi Handa  <handa@m17n.org>
13701         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13703 2008-02-01  Kenichi Handa  <handa@m17n.org>
13705         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13706         BOM is not found.
13707         (detect_coding, detect_coding_system): Optimization for ISO-2022
13708         when no 8-bit data is found.
13710 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13712         * w32fns.c (x_to_w32_font): Update to use new coding struct.
13714 2008-02-01  Kenichi Handa  <handa@m17n.org>
13716         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13717         CHARS.
13719 2008-02-01  Steven Tamm  <steventamm@mac.com>
13721         * macterm.c (mac_encode_char): Add charset argument and update
13722         to use encoding_type.
13723         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13724         switch to pure fontset.
13725         (decode_mac_font_name): Temporarily remove decoding.
13726         (x_font_name_to_mac_font_name): Temporarily remove encoding.
13727         (x_load_font): Temporarily remove encoding.
13729 2008-02-01  Kenichi Handa  <handa@m17n.org>
13731         * xfaces.c (Fface_font): If frame is not on a window system,
13732         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
13733         refer to face->font.
13734         (split_font_name_into_vector, build_font_name_from_vector)
13735         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13736         when HAVE_WINDOW_SYSTEM is defined.
13738 2008-02-01  Kenichi Handa  <handa@m17n.org>
13740         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13741         (x_produce_glyphs): Fix setting of members of cmp in case
13742         cmp->glyph_len is zero.
13744         * fontset.c (Fset_fontset_font): Fix docstring.
13745         (Ffontset_info): Make it backward compatible.  New arg ALL.
13747 2008-02-01  Kim F. Storm  <storm@cua.dk>
13749         * process.c (read_process_output): Grow decoding_buf when needed;
13750         this could cause a crash in allocate_string and compact_small_strings.
13752 2008-02-01  Kenichi Handa  <handa@m17n.org>
13754         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13756 2008-02-01  Kenichi Handa  <handa@m17n.org>
13758         * coding.c (setup_coding_system): Set coding->common_flags
13759         correctly for raw-text.
13760         (consume_chars): On encoding unibyte text by raw-text, don't check
13761         multibyte form.
13762         (encode_coding): On encoding by raw-text, never use translation tables.
13764         * fileio.c (e_write): Short cut for the case of no encoding.
13766 2008-02-01  Kenichi Handa  <handa@m17n.org>
13768         * coding.c (detect_coding, detect_coding_system): Delete unused
13769         variables.
13771 2008-02-01  Kenichi Handa  <handa@m17n.org>
13773         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13774         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13776 2008-02-01  Kenichi Handa  <handa@m17n.org>
13778         * coding.c (Ffind_coding_systems_region_internal): Include
13779         raw-text and no-conversion in the result.
13781 2008-02-01  Kenichi Handa  <handa@m17n.org>
13783         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13784         (load_font_get_repertory): Delete unnecessary check of ENCODING of
13785         FONT_DEF.
13786         (font_def_arg, add_arg, from_arg, to_arg): New args.
13787         (set_fontset_font): Change argument.
13788         (Fset_fontset_font): Fix for the case that TARGET is a script
13789         name and charset name.
13790         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13792 2008-02-01  Kenichi Handa  <handa@m17n.org>
13794         * fontset.c (fontset_font): Rename from fontset_face.  Change return
13795         value.
13796         (face_suitable_for_char_p, face_for_char): Adjust for the change
13797         of fontset_font.
13798         (make_fontset_for_ascii_face): Fix setting of the fontset element
13799         for ASCII.
13800         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13801         to get a font name.
13802         (Ffontset_info): Adjust for the change of fontset_font.
13804         * coding.c (emacs_mule_char): Check invalid code more rigidly.
13806         * character.h (LEADING_CODE_LATIN_1_MIN)
13807         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13809 2008-02-01  Kenichi Handa  <handa@m17n.org>
13811         * editfns.c (check_translation): New function.
13812         (Ftranslate_region_internal): Handle M:N mapping.
13814 2008-02-01  Kenichi Handa  <handa@m17n.org>
13816         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13818 2008-02-01  Kenichi Handa  <handa@m17n.org>
13820         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13821         goto invalid_code.
13822         (decode_coding_iso_2022): Fix handling of invalid designation.
13824         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13825         after calling code_conversion_save.
13827 2008-02-01  Kenichi Handa  <handa@m17n.org>
13829         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13831         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13833         * fontset.c: Include "intervals.h".
13834         (fontset_face): Fix comparing of Lisp_Objects.
13835         (free_face_fontset, new_fontset_from_font_name): Fix
13836         Lisp_Object/int mixup.
13838         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13840         * coding.c: Add many prototypes for static functions.
13841         (get_translation_table): Allow max_lookup to be NULL.
13842         (decode_coding, Ffind_coding_systems_region_internal)
13843         (Funencodable_char_position, Fcheck_coding_systems_region): Call
13844         get_translation_table with max_lookup NULL.
13846 2008-02-01  Kenichi Handa  <handa@m17n.org>
13848         * coding.c (get_translation_table): Declare it as Lisp_Object.
13849         (LOOKUP_TRANSLATION_TABLE): New macro.
13850         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13851         instead of CHAR_TABLE_REF.
13853 2008-02-01  Kenichi Handa  <handa@m17n.org>
13855         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13856         annotation data format.
13857         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13858         Change arguments FROM and TO to single argument NCHARS.  Change caller.
13859         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13860         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13861         (decode_coding_ccl, decode_coding_charset): Pay attention to
13862         coding->charbuf_used.
13863         (get_translation): New function.
13864         (produce_chars): New arguments translation_table and last_block.
13865         Translate characters here.  Return number of carryover chars.
13866         Change caller.
13867         (produce_composition): New argument pos.  Change caller.
13868         Adjust for the change of annotation data format.
13869         (produce_charset, produce_annotation): Likewise.
13870         (decode_coding, encode_coding): Don't call translate_chars.
13871         (consume_chars): New arg translation_table.  Change caller.
13872         (translate_chars): Delete.
13873         (syms_of_coding): Make translation-table's number of extra slots 2.
13875 2008-02-01  Kenichi Handa  <handa@m17n.org>
13877         * search.c (simple_search): Fix setting this_pos_byte in backward
13878         search.
13880         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13881         byte sequence.
13882         (detect_coding_ccl): Fix setting of the variable valids.
13884 2008-02-01  Kenichi Handa  <handa@m17n.org>
13886         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13888         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13890         * editfns.c (Ftranslate_region_internal): Rename from
13891         Ftranslate_region.  Accept a char-table in TABLE.
13892         (syms_of_editfns): Defsubr Stranslate_region_internal.
13894         * xfaces.c (set_lface_from_font_name): If a font is specified for
13895         a frame, generate a fontset from the font.
13896         (build_scalable_font_name): If the scalable font is requested for
13897         a specific size, don't change that size.
13898         (try_font_list): Try a scalable font also in the case that a
13899         pattern string is specified.
13901 2008-02-01  Kenichi Handa  <handa@m17n.org>
13903         * xfaces.c (Fface_font): New optional arg CHARACTER.
13905 2008-02-01  Kenichi Handa  <handa@m17n.org>
13907         * charset.h (CHARSET_OFFSET): New macro.
13909 2008-02-01  Kenichi Handa  <handa@m17n.org>
13911         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13913         * fontset.c (fontset_face): Handle the case that repertory is a
13914         char-table.
13915         (find_font_encoding): Return nil for unknown encoding.
13916         (Fset_fontset_font): Ignore a font of unknown encoding.
13918 2008-02-01  Kenichi Handa  <handa@m17n.org>
13920         * keymap.c (describe_vector): Handle default value of a char table.
13922         * fontset.c (fontset_face): Handle fallback fonts correctly.
13923         (Ffontset_info): Return infomation about fallback fonts.
13925 2008-02-01  Kenichi Handa  <handa@m17n.org>
13927         * fontset.c (FONTSET_DEFAULT): New macro.
13928         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13929         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13930         the case that it is nil.
13931         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13932         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13934         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13935         subset or superset.
13937 2008-02-01  Kenichi Handa  <handa@m17n.org>
13939         * emacs.c (main): Call init_charset after syms_of_XXX.
13941         * charset.c (Vcharset_map_directory): Delete.
13942         (Vcharset_map_path): New variable.
13943         (load_charset_map_from_file): Use Vcharset_map_path instead.
13944         (init_charset): Initialize Vcharset_map_path.
13945         (syms_of_charset): Delete declaration of "charset-map-directory",
13946         add declaration of "charset-map-path".
13948 2008-02-01  Kenichi Handa  <handa@m17n.org>
13950         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13951         ASCII only string.
13953         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13955         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13956         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13958 2008-02-01  Kenichi Handa  <handa@m17n.org>
13960         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13962         * coding.c (QCmnemonic, QCdefalut_char)
13963         (QCdecode_translation_table, QCencode_translation_table)
13964         (QCpost_read_conversion, QCpre_write_conversion): New variables.
13965         (get_translation_table): Return a list of translation tables if
13966         necessary.
13967         (decode_coding): Call get_translation_table with ENCODEP 0.
13968         (char_encodable_p): If translation_table is non-nil, always call
13969         translate_char.
13970         (Fdefine_coding_system_internal): Accept list of translation
13971         tables as :encode-translation-table and :decode-translation-table.
13972         (Fcoding_system_put): New function.
13973         (syms_of_coding): Declare new symbols.  Defsubr
13974         Scoding_system_put.
13975         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13976         typically JISX0212.
13978         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13979         when the charset is superset type.
13981         * character.c (translate_char): Accept list of translation tables.
13983 2008-02-01  Kenichi Handa  <handa@m17n.org>
13985         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13986         (CODING_ATTR_TRANS_TBL): New macro.
13988         * coding.c (get_translation_table): New function.
13989         (translate_chars): Fix the bug of skipping annotation data.
13990         (decode_coding, encode_coding): Utilize get_translation_table.
13991         (char_encodable_p, Funencodable_char_position): Translate char if
13992         necessary.
13993         (Ffind_coding_systems_region_internal)
13994         (Fcheck_coding_systems_region): Setup translation table for encode
13995         in a coding system attribute vector in advance.
13996         (Fdefine_coding_system_internal): Allow a symbol as translation
13997         table.  For shift-jis type coding system, allow 4th charset.
13999 2008-02-01  Kenichi Handa  <handa@m17n.org>
14001         * coding.c (decode_coding_sjis): Check the first byte rigidly.
14003         * xdisp.c (get_next_display_element): Pass -1 as POS to
14004         FACE_FOR_CHAR if displaying a C-string.
14006 2008-02-01  Kenichi Handa  <handa@m17n.org>
14008         * composite.c (get_composition_id): Handle xoff and yoff in a
14009         composition rule.
14011         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14012         (struct composition): New member lbearing and rbearing.
14014         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14015         (x_get_glyph_overhangs): Handle a composition glyph.
14016         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14018         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14019         composition glyph.
14021 2008-02-01  Kenichi Handa  <handa@m17n.org>
14023         * print.c: Include charset.h.
14024         (Vprint_charset_text_property): New variable.
14025         (Qdefault): Extern it.
14026         (PRINT_STRING_NON_CHARSET_FOUND)
14027         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14028         (print_check_string_result): New variable.
14029         (print_check_string_charset_prop): New function.
14030         (print_prune_charset_plist): New variable.
14031         (print_prune_string_charset): New function.
14032         (print_object): Call print_prune_string_charset if
14033         Vprint_charset_text_property is not t.
14034         (print_interval): Print nothing if interval->plist is nil.
14035         (syms_of_print): Declare Vprint_charset_text_property as a lisp
14036         variable.  Init and staticpro print_prune_charset_plist.
14038 2008-02-01  Kenichi Handa  <handa@m17n.org>
14040         * fontset.c (new_fontset_from_font_name): Use the specified font
14041         for all characters in the new fontset.
14043         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14044         OBJECT args.
14046         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14047         OBJECT args for composition too.
14049         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14050         OBJECT args.
14052 2008-02-01  Kenichi Handa  <handa@m17n.org>
14054         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14056         * fontset.c (reorder_font_vector): Adjust for the change of
14057         FONT_DEF format.
14058         (fontset_face): New arg id.  Change caller.
14059         (face_for_char): New args pos and object.
14060         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14061         (fs_query_fontset): Check NAME by Fassoc too.
14062         (Fset_fontset_font): Allow non-XLFD font name.
14063         (Ffontset_info): Adjust for the change of FONT_DEF format.
14065         * fontset.h (face_for_char): Adjust prototype.
14067         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14068         (append_space, extend_face_to_end_of_line)
14069         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14070         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14072         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14073         POS and OBJECT args.
14075         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14076         POS and OBJECT args.
14078 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14080         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14081         of GlobalAlloc'ed memory.
14083 2008-02-01  Kenichi Handa  <handa@m17n.org>
14085         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14087         * charset.h (charset_table_used): Delete extern.
14089         * charset.c (charset_table_used): Make it static.
14090         (map_charset_chars): Fix args to c_function with.
14092         * chartab.c (map_sub_char_table_for_charset): Fix args to
14093         c_function with.
14095         * coding.h (enum coding_result_code): Delete
14096         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14098         * coding.c (Qinsufficient_source, Qinconsistent_eol)
14099         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14100         (Vlast_code_conversion_error): New variables.
14101         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14102         (ONE_MORE_BYTE): Record error if any instead of signaling an
14103         error.  If non-ASCII multibyte char is found, return the negative
14104         value of the code.  All callers changed to check it.
14105         (ONE_MORE_BYTE_NO_CHECK): Likewise.
14106         (record_conversion_result): New function.  Change all codes setting
14107         coding->result to call this function.
14108         (detect_coding_utf_8, decode_coding_utf_8)
14109         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14110         Don't use the local variable incomplete.
14111         (emacs_mule_char): Change the second arg to `const'.
14112         (decode_coding): Fix of flushing out unprocessed data.
14113         (make_conversion_work_buffer): Fix making of a work buffer.
14114         (decode_coding_object): Return coding->dst_object.
14116         * fontset.c (set_fontset_font): Fix args.
14118         * lisp.h (CHARACTERBITS): Define as 22.
14120         * process.c (send_process): Be sure to set coding->src_multibyte.
14122         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14124 2008-02-01  Kenichi Handa  <handa@m17n.org>
14126         * xdisp.c (handle_auto_composed_prop): Give limit to
14127         Fnext_single_char_property_change.
14129 2008-02-01  Kenichi Handa  <handa@m17n.org>
14131         * composite.c (syms_of_composite): Don't make the composition hash
14132         table weak.
14134         * fontset.c (Fset_fontset_font): Fix docstring.
14136         * lisp.h (detect_coding_system): Adjust prototype.
14138         * fileio.c (kill_workbuf_unwind): Delete this function.
14139         (Finsert_file_contents): Adjust the call of detect_coding_system.
14140         Get conversion_buffer by code_conversion_save.  Use the macro
14141         CODING_MAY_REQUIRE_DECODING.  After decoding, update
14142         coding_system.
14144         * coding.h (make_conversion_work_buffer): Delete extern.
14145         (code_conversion_save): Extern it.
14147         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14148         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
14149         (decode_coding_utf_8): Don't do eol converion.
14150         (detect_coding_utf_16): Check coding->src_chars, not
14151         coding->src_bytes.  Add heuristics for those that have no signature.
14152         (decode_coding_emacs_mule, decode_coding_iso_2022)
14153         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14154         Don't do eol converion.
14155         (adjust_coding_eol_type): Return a new coding system.
14156         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
14157         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14158         each change.
14159         (decode_coding): Pay attention to undo_list.  Do eol conversion for
14160         all types of coding-systems (if necessary).
14161         (Vcode_conversion_work_buf_list): Delete it.
14162         (Vcode_conversion_reused_workbuf): Rename from
14163         Vcode_conversion_reused_work_buf.
14164         (Vcode_conversion_workbuf_name): New variable.
14165         (reused_workbuf_in_use): New variable.
14166         (make_conversion_work_buffer): Delete the arg DEPTH.
14167         (code_conversion_restore): Change argument to cons.
14168         (code_conversion_save): Delete the argument BUFFER.  Change callers.
14169         (detect_coding_system): New argument src_chars.  Change callers.
14170         Fix for utf-16 detection.
14171         (init_coding_once): Don't use ISO_carriage_return.
14172         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14173         reused_workbuf_in_use.
14175 2008-02-01  Kenichi Handa  <handa@m17n.org>
14177         * keymap.c (store_in_keymap): Pay attention to the case that idx
14178         is a cons specifying a character range.
14180 2008-02-01  Kenichi Handa  <handa@m17n.org>
14182         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14183         HANDLED_RECOMPUTE_PROPS.
14185         * coding.c (Fdefine_coding_system_internal): Fix checking of
14186         ascii compatibility.
14188 2008-02-01  Kenichi Handa  <handa@m17n.org>
14190         * charset.c (find_charsets_in_text): Delete unused locale variable.
14191         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14193         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14194         Resync charset_list to Vemacs_mule_charset_list.
14196         * keymap.c (store_in_keymap): Pay attention to the case that idx
14197         is a cons specifying a character range.
14199 2008-02-01  Kenichi Handa  <handa@m17n.org>
14201         * composite.c (update_compositions): Bind inhibit-read-only, etc
14202         to t before calling remove-list-of-text-properties.
14204         * print.c (print_object): Always print ASCII chars as is.
14206 2008-02-01  Kenichi Handa  <handa@m17n.org>
14208         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14210         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14211         is a char table.
14213 2008-02-01  Kenichi Handa  <handa@m17n.org>
14215         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14217 2008-02-01  Kenichi Handa  <handa@m17n.org>
14219         * xfaces.c (set_lface_from_font_name): Fix for the case that
14220         FONTNAME is not fontset name.
14222 2008-02-01  Kenichi Handa  <handa@m17n.org>
14224         * fns.c (base64_encode_1): Fix previous change.
14226 2008-02-01  Kenichi Handa  <handa@m17n.org>
14228         * fontset.c (set_fontset_font): New function.
14229         (Fset_fontset_font): If a font is specified for a charset, use
14230         map_charset_chars to store the font spec in a fontset.
14232 2008-02-01  Kenichi Handa  <handa@m17n.org>
14234         * fontset.c (fontset_face): Create a fallback fontset on demand.
14235         (make_fontset): Don't create a fallback fontset here.
14236         (free_face_fontset): Free a fallback fontset (if any) too.
14237         (n_auto_fontsets): Delete this variable.
14238         (auto_fontset_alist): New variable.
14239         (new_fontset_from_font_name): Check auto_fontset_alist.
14240         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14241         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14242         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14243         Defsubr Sfontset_list_all.
14245 2008-02-01  Kenichi Handa  <handa@m17n.org>
14247         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14249 2008-02-01  Kenichi Handa  <handa@m17n.org>
14251         * fontset.c (Fnew_fontset): Check NAME more rigidly.
14253 2008-02-01  Kenichi Handa  <handa@m17n.org>
14255         * editfns.c (Fgoto_char): Fix docstring.
14257 2008-02-01  Kenichi Handa  <handa@m17n.org>
14259         * insdel.c (insert_from_gap): Adjust intervals correctly.
14261 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14263         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14264         (pfnGetFontUnicodeRanges): New dynamically loaded function.
14265         (w32_initialize): Try to load it.
14266         (x_get_font_repertory): Use it if available.
14267         (w32_encode_char): Add shortcut for unicode output.
14269         * w32fns.c (w32_load_system_font): Default charset to -1.
14270         (x_to_w32_charset): Match all fonts for unicode.
14271         (w32_to_x_charset): New parameter matching.  Don't return partial
14272         or wildcard charsets.
14273         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14274         (w32_codepage_for_font): Return CP_UNICODE for unicode.
14275         (w32_to_x_font): Match charset to real charset.
14276         (enum_font_cb2): Always list unicode versions.
14278         * makefile.w32-in (temacs): Increase EMHEAP.
14280 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14282         * w32term.c (w32_encode_char): New charset parameter.
14283         font_info.encoding becomes encoding_type.
14284         (x_get_font_repertory): New function.  Warning: stub only!
14285         (x_new_font): Return quickly if font already set.
14286         (x_new_fontset): fontsetname parameter is Lisp_Object.
14287         Use new fs_query_fontset.  Try new_fontset_from_font_name.
14288         Use fontset_name for return value.
14290         * w32term.h: Declare x_get_font_repertory.
14292         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14293         place of find_charset_in_text.  Use encode_coding_object in place
14294         of encode_coding.
14295         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14296         decode_coding.
14298         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14299         of x_new_fontset.
14300         (w32_load_system_font): Initialize charset as unicode.
14301         font_info.encoding becomes encoding_type.
14302         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14303         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14304         (syms_of_w32fns): Set get_font_repertory_func.
14306         * w32console.c: Include character.h.  Use terminal_encode_buffer
14307         from term.c.
14308         (write_glyphs): Use new version of encode_terminal_code.  Use
14309         encode_coding_object in place of encode_coding.
14311         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14312         encoding becomes encoding_type.
14314         * term.c (terminal_encode_buffer): Make externally visible.
14316         * makefile.w32-in: Add character.h dependancies.
14317         (character.o, chartab.o): New targets.
14319 2008-02-01  Kenichi Handa  <handa@m17n.org>
14321         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14322         CODING_ID_EOL_TYPE.
14324 2008-02-01  Andreas Schwab  <schwab@suse.de>
14326         * coding.c (produce_chars): Revert last change.
14328 2008-02-01  Kenichi Handa  <handa@m17n.org>
14330         * charset.h (charset_unicode): Extern it.
14332         * charset.c (string_xstring_p): Check by (C >= 0x100).
14333         (find_charsets_in_text): Change format of the arc CHARSETS.  New
14334         arg MULTIBYTE.
14335         (Ffind_charset_region, Ffind_charset_string): Adjust for the
14336         change of find_charsets_in_text.
14337         (Fsplit_char): Fix doc.  Never return unknown.
14339         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14341         * coding.c (Fdefine_coding_system_alias): Update
14342         Vcoding_system_list.
14344         * fontset.c (load_font_get_repertory): Pay attention to the case
14345         that ENCODING of a font is specified by a char-table.
14347         * xterm.c (x_get_font_repertory): Handle the case that the
14348         encoding of font is other than Unicode.
14350 2008-02-01  Kenichi Handa  <handa@m17n.org>
14352         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
14353         if a character is encodable by the terminal coding system.  If
14354         not, produces proper number of `?'s.  Update
14355         terminal_encode_buffer and terminal_encode_buf_size if necessary.
14356         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14358 2008-02-01  Kenichi Handa  <handa@m17n.org>
14360         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14361         variables.
14362         (encode_terminal_code): Change argument.  Encode multiple
14363         characters at once.  Store the result of encoding in
14364         terminal_encode_buffer.
14365         (write_glyphs, insert_glyphs): Adjust for the change of
14366         encode_terminal_code.
14367         (term_init): Initialize terminal_encode_buffer and
14368         terminal_encode_buf_size.
14370         * coding.c (consume_chars): If coding->src_object is nil, don't
14371         check annotation.
14373 2008-02-01  Kenichi Handa  <handa@m17n.org>
14375         * character.c (char_string): Use ASCII_CHAR_P instead of
14376         SINGLE_BYTE_CHAR_P.
14378 2008-02-01  Kenichi Handa  <handa@m17n.org>
14380         * xdisp.c (handle_auto_composed_prop): Check if the last
14381         characters of auto-composed region is newly composed with the
14382         following characters.
14383         (handle_composition_prop): Fix checking of point being inside
14384         composition.
14386 2008-02-01  Kenichi Handa  <handa@m17n.org>
14388         * fns.c (concat): Don't change multibyteness of the result by
14389         concatenating an 8-bit character.
14391         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
14392         multibyteness of the result when newelt is an 8-bit character.
14394 2008-02-01  Dave Love  <fx@gnu.org>
14396         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14397         EMACS_INT.
14399         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14401         * xfaces.c (face_numeric_value): Declare dim size_t.
14402         (Finternal_lisp_face_equal_p): Remove unused f.
14404         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14405         (MATRIX_ROW): Remove unused vars.
14406         (draw_glyphs, x_insert_glyphs, fast_find_position)
14407         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14408         byte/char counts.
14410         * regex.c (regex_compile): Remove unused var.
14412         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14414         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14415         (Faccessible_keymaps, where_is_internal): Remove unused vars.
14417         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14419         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14421         * fileio.c (Fwrite_region): Remove unused var.
14423         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14424         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14426         * composite.c (Fremove_list_of_text_properties): Declare.
14428         * coding.c (inhibit_pre_post_conversion): Remove (unused).
14429         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14430         (coding_inherit_eol_type): Remove unused attrs.
14431         (detect_coding): Cast arg of detect_eol.
14433         * charset.c (syms_of_charset): Remove unused var p.
14434         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14435         byte/char counts.
14437         * casetab.c (set_case_table): Remove unused var.
14439         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14440         unused vars.
14442 2008-02-01  Dave Love  <fx@gnu.org>
14444         * xterm.c (x_bitmap_mask): Declare.
14446 2008-02-01  Dave Love  <fx@gnu.org>
14448         * xterm.c (x_term_init): Fix type error.
14450         * lisp.h: Add Funibyte_char_to_multibyte.
14452         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14453         (Fset_coding_system_priority): Doc fix.
14455         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14457         * indent.c (check_composition): Make start and end EMACS_INT.
14459         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14461         * xdisp.c (handle_composition_prop, check_point_in_composition):
14462         Make buffer positions EMACS_INT.
14464         * composite.c (find_composition, run_composition_function)
14465         (update_compositions, Ffind_composition_internal): Make buffer
14466         positions EMACS_INT.
14468         * composite.h (find_composition, update_compositions): Make
14469         position args EMACS_INT.
14471         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14473         * intervals.c (get_property_and_range):
14474         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14476         * unexalpha.c: Don't include varargs.h.
14478 2008-02-01  Dave Love  <fx@gnu.org>
14480         * coding.h (ENCODE_UTF_8): New.
14482         * Makefile.in (gtkutil.o): Depend on coding.h.
14484         * coding.c (Fset_coding_system_priority): Doc fix.
14486 2008-02-01  Kenichi Handa  <handa@m17n.org>
14488         * fileio.c (Finsert_file_contents): Call setup_coding_system in
14489         the case of auto saving.
14491 2008-02-01  Andreas Schwab  <schwab@suse.de>
14493         * chartab.c (map_char_table, map_char_table_for_charset): Protect
14494         `range' from GC.
14496 2008-02-01  Kenichi Handa  <handa@m17n.org>
14498         * coding.c (decode_coding_sjis): Check bytes more rigidly.
14500 2008-02-01  Kenichi Handa  <handa@m17n.org>
14502         * fileio.c (choose_write_coding_system): Return a decided coding system.
14503         (Fwrite_region): Set Vlast_coding_system_used to the return value
14504         of choose_write_coding_system.
14506 2008-02-01  Kenichi Handa  <handa@m17n.org>
14508         * charset.c (Fset_charset_priority): Pay attention to duplicated
14509         arguments.
14511         * coding.c (QCcategory): New variable.
14512         (syms_of_coding): Defsym it.  Set all elements of
14513         Vcoding_category_table and their symbol values.
14514         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
14515         coding-category-XXX, and coding-category-list.
14516         (Fdefine_coding_system_internal): Add category in the plist.
14518 2008-02-01  Kenichi Handa  <handa@m17n.org>
14520         * callproc.c (Fcall_process): Handle carryover correctly.
14522         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14523         (raw_text_coding_system): Check NILP (coding_system).
14524         (coding_inherit_eol_type): Check NILP (coding_system) and
14525         NILP (parent).
14526         (consume_chars): Fix for the case of raw-text.
14528         * process.c (read_process_output): Handle carryover correctly.
14530 2008-02-01  Dave Love  <fx@gnu.org>
14532         * regex.c (re_search_2): Fix last change.
14534 2008-02-01  Kenichi Handa  <handa@m17n.org>
14536         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14537         target_multibyte.  Even in a unibyte case, return a converted
14538         multibyte char.
14539         (GET_CHAR_AFTER): New macro.
14540         (PATFETCH): Translate via multibyte char.
14541         (HANDLE_UNIBYTE_RANGE): Delete this macro.
14542         (SETUP_MULTIBYTE_RANGE): New macro.
14543         (regex_compile): Setup compiled code so that its multibyteness
14544         matches that of a target.  Fix the handling of "[X-YZ]" using
14545         SETUP_MULTIBYTE_RANGE.
14546         (analyse_first) <charset>: For filling fastmap for all multibyte
14547         characters, don't check by BASE_LEADING_CODE_P.
14548         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
14549         the same as RE_MULTIBYTE_P (bufp) now.
14550         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14551         (TARGET_CHAR_AND_LENGTH): Delete this macro.
14552         (TRANSLATE_VIA_MULTIBYTE): New macro.
14553         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14554         It is the same as RE_MULTIBYTE_P (bufp) now.
14555         <exactn>: Translate via multibyte.
14556         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
14557         translate it.
14558         <charset, charset_not>: Fetch a character by
14559         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
14560         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14561         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14562         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14563         by GET_CHAR_AFTER.
14564         (bcmp_translate): Likewise.
14566         * search.c (compile_pattern): Check the member target_multibyte,
14567         not the member multibyte of buf.
14569         * lread.c (read1): While reading a string, set force_singlebyte
14570         and force_multibyte correctly.
14572         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14573         up of unibyte_to_multibyte_table.
14575 2008-02-01  Kenichi Handa  <handa@m17n.org>
14577         * coding.c (setup_coding_system): If coding has
14578         post-read-conversion or pre-write-conversion, set
14579         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14580         respectively.
14581         (decode_coding_gap): Run post-read-conversion if any.
14583         * fileio.c (Finsert_file_contents): Even if we read into a
14584         unibyte buffer, check if we must decode the result or not.
14586 2008-02-01  Kenichi Handa  <handa@m17n.org>
14588         * coding.c (make_conversion_work_buffer): Change the work buffer
14589         name to the same one as that of Emacs 21.
14591 2008-02-01  Kenichi Handa  <handa@m17n.org>
14593         * coding.h (make_conversion_work_buffer): Adjust prototype.
14594         (code_conversion_restore): Don't extern it.
14596         * coding.c (detected_mask): Delete unused variable.
14597         (decode_coding_iso_2022): Pay attention to the byte sequence of
14598         CTEXT extended segment, and retain those bytes as is.
14599         (decode_coding_ccl): Delete unused variable `valids'.
14600         (setup_coding_system): Delete unused variable `category'.
14601         (consume_chars): Delete unused variable `category'.  Make it work
14602         for non-multibyte case.
14603         (make_conversion_work_buffer): Change argument.
14604         (saved_coding): Delete unused variable.
14605         (code_conversion_restore): Don't check saved_coding->destination.
14606         (code_conversion_save): New function.
14607         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14608         instead of record_unwind_protect.
14609         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
14610         (detect_coding_system): Delete unused variable `mask'.
14611         (Fdefine_coding_system_internal): Delete unused variable id.
14613         * fileio.c (kill_workbuf_unwind): New function.
14614         (Finsert_file_contents): On replacing, call
14615         make_conversion_work_buffer with correct args, and call
14616         record_unwind_protect with the first arg kill_workbuf_unwind.
14618         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14620 2008-02-01  Kenichi Handa  <handa@m17n.org>
14622         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14623         (fontset_add): Fix for the case that TO is less than TO1.
14624         (Ffontset_info): Don't use fallback fontset on checking the
14625         default fontset.
14626         (dump_fontset): New function for debugging.
14628         * coding.c (Fdefine_coding_system_internal): Fix for the case that
14629         coding_type is Qcharset.
14631 2008-02-01  Kenichi Handa  <handa@m17n.org>
14633         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14634         (map_char_table): Don't inherit the value from the parent on
14635         initializing VAL.  Adjust for the above change.
14637 2008-02-01  Kenichi Handa  <handa@m17n.org>
14639         * coding.c (Qsignature, Qendian): Delete these variables.
14640         (syms_of_coding): Don't initialize them.
14641         (CATEGORY_MASK_UTF_16_AUTO): New macro.
14642         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14643         detect_info->found.
14644         (decode_coding_utf_16): Don't detect BOM here.
14645         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14646         is NOT utf_16_without_bom.
14647         (setup_coding_system): For a coding system of type utf-16, check
14648         if the attribute :endian is Qbig or not (not nil or not), and set
14649         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14650         (detect_coding): If coding type is utf-16 and BOM detection is
14651         required, detect it.
14652         (Fdefine_coding_system_internal): For a coding system of type
14653         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14655 2008-02-01  Kenichi Handa  <handa@m17n.org>
14657         * coding.c (coding_set_source): Fix for the case that the current
14658         buffer is different from coding->src_object.
14659         (decode_coding_object): Don't use the conversion work buffer if
14660         DST_OBJECT is a buffer.
14662 2008-02-01  Dave Love  <fx@gnu.org>
14664         * lread.c (read_emacs_mule_char) [len==2]: Index
14665         emacs_mule_charset correctly.
14667 2008-02-01  Dave Love  <fx@gnu.org>
14669         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14670         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14671         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
14672         treated specially.)
14673         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14674         (detected_mask): Remove Big5 bits.
14676 2008-02-01  Kenichi Handa  <handa@m17n.org>
14678         The following changes are to make the font rescaling facility
14679         compatible with Emacs 21.
14681         * xfaces.c (Vface_font_rescale_alist): Rename from
14682         Vface_resizing_fonts.
14683         (struct font_name): Rename member resizing_ratio to rescale_ratio.
14684         (font_rescale_ratio): Rename from font_resizing_ratio.
14685         (split_font_name): Set font->rescale_ratio.
14686         (better_font_p): Pay attention to font->rescale_ratio.
14687         (build_scalable_font_name): Likewise.  Change RESX, and RESY
14688         fields.
14689         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14691 2008-02-01  Kenichi Handa  <handa@m17n.org>
14693         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14694         (Qutf_16_le): Remove these variables.
14695         (syms_of_coding): Don't DEFSYM them.
14696         (decode_coding_utf_16): Fix handling of BOM.
14697         (encode_coding_utf_16): Fix handling of BOM.
14699 2008-02-01  Kenichi Handa  <handa@m17n.org>
14701         * fileio.c (Finsert_file_contents): On replacing, before decoding
14702         the file into the work buffer, set point of the work buffer to the end.
14704 2008-02-01  Dave Love  <fx@gnu.org>
14706         * coding.c (Fcheck_coding_systems_region): Fix type errors.
14708 2008-02-01  Dave Love  <fx@gnu.org>
14710         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14711         and fix C types.
14713 2008-02-01  Kenichi Handa  <handa@m17n.org>
14715         * xdisp.c (SKIP_GLYPHS): New macro.
14716         (set_cursor_from_row): Pay attention to string display properties.
14718         * category.c (copy_category_entry): Fix for the case that RANGE
14719         is an integer.
14721         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14723         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14725 2008-02-01  Kenichi Handa  <handa@m17n.org>
14727         * charset.c (Fcharset_id_internal): New function.
14728         (syms_of_charset): Defsubr it.
14730         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14731         with the last arg charset_list acquired from coding.
14732         (Fdefine_coding_system_internal): For ccl-based coding system, fix
14733         the attribute coding_attr_ccl_valids.
14735         * coding.h (enum define_coding_ccl_arg_index): Set the first
14736         member coding_arg_ccl_decoder to coding_arg_max.
14738         * ccl.h (ccl_driver): Adjust prototype.
14740         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14741         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
14742         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
14743         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14744         last arg Qnil.
14746 2008-02-01  Kenichi Handa  <handa@m17n.org>
14748         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14749         call encode_char.
14751         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14753 2008-02-01  Dave Love  <fx@gnu.org>
14755         * composite.c (syms_of_composite): Make composition_hash_table weak.
14757 2008-02-01  Kenichi Handa  <handa@m17n.org>
14759         * dispextern.h (check_face_attributes, generate_ascii_font_name)
14760         (font_name_registry): Don't extern them.
14761         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14763         * fontset.h (Qfontset): Don't extern it.
14764         (new_fontset_from_font_name): Extern it.
14766         * fontset.c: Give 8 extra slots to fontset objects.
14767         (Qfontset_info): New variable.
14768         (syms_of_fontset): Defsym it.
14769         (FONTSET_FALLBACK): New macro.
14770         (fontset_face): Try also the default fontset.
14771         (make_fontset): Realize a fallback fontset from the default fontset.
14772         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
14773         using split_font_name_into_vector and build_font_name_from_vector.
14774         (Fset_fontset_font): Access the elements of font_spec by enum
14775         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
14776         name by using split_font_name_into_vector.
14777         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14778         generate a proper font name from the fontset name.  Update
14779         Vfontset_alias_alist.
14780         (n_auto_fontsets): New variable.
14781         (new_fontset_from_font_name): New function.
14782         (Ffont_info): Store the information about fonts generated from the
14783         default fontset in the first extra slot of the returned char-table.
14785         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14786         (font_name_registry): Delete function.
14787         (split_font_name_into_vector): New function.
14788         (build_font_name_from_vector): New function.
14789         (font_list): The argument REGISTRY is now a list of registry names.
14790         (choose_face_font): If we are choosing an ASCII font, and ATTRS
14791         specifies an explicit font name, return the name as is.  Make a
14792         list of registy names.
14794         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14795         of x_new_fontset.
14796         (Fx_create_frame): Don't call x_new_fontset here.  Just use
14797         x_list_fonts to check the existence of fonts.
14799         * xterm.h (x_new_fontset): Adjust prototype.
14801         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14802         string.  Use new_fontset_from_font_name to create a fontset from a
14803         font name.
14805 2008-02-01  Kenichi Handa  <handa@m17n.org>
14807         * syntax.c (Vfind_word_boundary_function_table): New name for
14808         Vnext_word_boundary_function_table.
14809         (find-word-boundary-function-table): New name for
14810         next-word-boundary-function-table.
14812 2008-02-01  Dave Love  <fx@gnu.org>
14814         * Makefile.in: Fix some dependencies.
14816         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14817         set it to nil before returning.
14819         * composite.c (update_compositions): Fix type error.
14821         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14823 2008-02-01  Kenichi Handa  <handa@m17n.org>
14825         * xterm.c (x_new_font): Optimize for the case that the font is
14826         already set for the frame.
14828 2008-02-01  Kenichi Handa  <handa@m17n.org>
14830         * chartab.c (char_table_ascii): Check if the char table contents
14831         is sub-char-table or not.
14832         (char_table_set, char_table_set_range): Fix argument to
14833         char_table_ascii.
14835         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14836         (detect_coding_utf_8, detect_coding_utf_16)
14837         (detect_coding_emacs_mule, detect_coding_iso_2022)
14838         (detect_coding_sjis, detect_coding_big5)
14839         (detect_coding_ccl, detect_coding_charset): Change argument MASK
14840         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
14841         sequence is valid in this coding system.  Change callers.
14842         (MAX_ANNOTATION_LENGTH): New macro.
14843         (ADD_ANNOTATION_DATA): New macro.
14844         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
14845         ADD_ANNOTATION_DATA.  Change the format of annotation data.
14846         (ADD_CHARSET_DATA): New macro.
14847         (emacs_mule_char): New argument ID.  Change callers.
14848         (decode_coding_emacs_mule, decode_coding_iso_2022)
14849         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14850         Produce charset annotation data in coding->charbuf.
14851         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14852         to charset annotation data in coding->charbuf.
14853         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14854         coding->common_flags if the coding system is iso-2022 based and
14855         uses designation.
14856         (produce_composition): Adjust for the new annotation data format.
14857         (produce_charset): New function.
14858         (produce_annotation): Handle charset annotation.
14859         (handle_composition_annotation, handle_charset_annotation): New
14860         functions.
14861         (consume_chars): Handle charset annotation.  Utilize the above two
14862         functions.
14863         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14864         buffer, get the deleted text as a string and set
14865         coding->src_object to that string.
14866         (detect_coding, detect_coding_system): Use the new struct
14867         coding_detection_info.
14869         * coding.h (struct coding_detection_info): New structure.
14870         (struct coding_system): Adjust prototype of the member `detector'.
14871         (CODING_ANNOTATE_CHARSET_MASK): New macro.
14873 2008-02-01  Kenichi Handa  <handa@m17n.org>
14875         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14877 2008-02-01  Dave Love  <fx@gnu.org>
14879         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14880         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
14881         to new local and nullify apropos_accumulate before returning.
14882         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14884 2008-02-01  Kenichi Handa  <handa@m17n.org>
14886         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14887         correctly.
14889 2008-02-01  Dave Love  <fx@gnu.org>
14891         * fns.c (Flanginfo): Call synchronize_system_time_locale.
14893 2008-02-01  Kenichi Handa  <handa@m17n.org>
14895         The following changes are to make character composition happen
14896         automatically on displaying.
14898         * Makefile.in (lisp, shortlisp): Add composite.elc.
14900         * composite.h (Qauto_composed, Vauto_composition_function)
14901         (Qauto_composition_function): Extern them.
14903         * composite.c (Vcomposition_function_table)
14904         (Qcomposition_function_table): Delete variables.
14905         (Qauto_composed, Vauto_composition_function)
14906         (Qauto_composition_function): New variables.
14907         (run_composition_function): Don't call
14908         compose-chars-after-function.
14909         (update_compositions): Clear `auto-composed' text property.
14910         (compose_chars_in_text): Delete this function.
14911         (syms_of_composite): Staticpro Qauto_composed and
14912         Qauto_composition_function.  Declare Vauto_composition_function as
14913         a Lisp variable.
14915         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14917         * xdisp.c (it_props): Add an entry for Qauto_composed.
14918         (handle_auto_composed_prop): New function.
14920         * xselect.c (selection_data_to_lisp_data): Don't call
14921         compose_chars_in_text.
14923 2008-02-01  Dave Love  <fx@gnu.org>
14925         * keyboard.c (read_char): Modify checking around use of
14926         Vkeyboard_translate_table.
14928         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14929         and fix C types.
14931 2008-02-01  Kenichi Handa  <handa@m17n.org>
14933         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14934         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14935         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14936         the case that the last byte is '\r' correctly.
14937         (decode_coding): Flush out the unprocessed data correctly.
14938         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14940 2008-02-01  Dave Love  <fx@gnu.org>
14942         * xterm.c (XTread_socket): Fix changes for defined keysyms.
14943         Add XK_ISO... case.
14944         (xaw_scroll_callback): Revert last change.
14946 2008-02-01  Kenichi Handa  <handa@m17n.org>
14948         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14950 2008-02-01  Kenichi Handa  <handa@m17n.org>
14952         * xfaces.c (Vface_resizing_fonts): New variable.
14953         (struct font_name): New member `resizing_ratio'.
14954         (font_resizing_ratio): New function.
14955         (split_font_name): Set font->resizing_ratio.
14956         (better_font_p): Pay attention to font->resizing_ratio.
14957         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
14958         RESX, and RESY fields.
14959         (try_alternative_families): Try scalable fonts if
14960         Vscalable_fonts_allowed is not Qt.
14961         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14963 2008-02-01  Dave Love  <fx@gnu.org>
14965         * xterm.c (xaw_scroll_callback): Cast correctly.
14967 2008-02-01  Dave Love  <fx@gnu.org>
14969         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14970         (lispy_kana_keys): Comment out.
14971         (make_lispy_event) [XK_kana_A]: Comment out.
14973         * xterm.c (xaw_scroll_callback): Cast call_data.
14974         (XTread_socket): Deal with ASCII keysyms.
14975         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14977 2008-02-01  Dave Love  <fx@gnu.org>
14979         * xterm.c (Vx_keysym_table): New.
14980         (syms_of_xterm): Initialize it.
14981         (XTread_socket): Use it.
14982         From head: Eliminate incorrect optimization that tried to avoid
14983         decoding the output of X*LookupString.
14984         (x_get_font_repertory): Delete charset declaration.
14986 2008-02-01  Kenichi Handa  <handa@m17n.org>
14988         * coding.c (detect_coding_charset): If only ASCII bytes are found,
14989         return 0.
14990         (Fdefine_coding_system_internal): Setup
14991         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14993 2008-02-01  Dave Love  <fx@gnu.org>
14995         * coding.c (Fcheck_coding_system): Doc fix.
14997         * editfns.c (Finsert_byte): Return a proper value.
14999 2008-02-01  Kenichi Handa  <handa@m17n.org>
15001         * coding.c (decode_coding): Fix args to translate_chars.  Pay
15002         attention to Vstandard_translation_table_for_decode.
15003         (encode_coding): Fix args to translate_chars.  Pay attention to
15004         Vstandard_translation_table_for_encode.
15006         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15007         SINGLE_BYTE_CHAR_P.
15009         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15010         not by SINGLE_BYTE_CHAR_P.
15012         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15013         SINGLE_BYTE_CHAR_P.
15015         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15016         SINGLE_BYTE_CHAR_P.
15018         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15019         by SINGLE_BYTE_CHAR_P.
15021         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15022         SINGLE_BYTE_CHAR_P.
15024 2008-02-01  Dave Love  <fx@gnu.org>
15026         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15028 2008-02-01  Dave Love  <fx@gnu.org>
15030         * fns.c (Flanginfo): Fix typo.
15032         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15034 2008-02-01  Kenichi Handa  <handa@m17n.org>
15036         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15037         (detect_coding_emacs_mule, detect_coding_iso_2022)
15038         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15039         incomplete byte sequence.  Don't update *mask when correctly detected.
15040         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15041         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15042         (detect_coding, detect_coding_system): Adjust for the changes above.
15044 2008-02-01  Kenichi Handa  <handa@m17n.org>
15046         * character.c (char_string): Rename from
15047         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
15048         (string_char): Rename from string_char.
15050         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15051         if C is greater than MAX_3_BYTE_CHAR.
15052         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15053         string_char instead of string_char_with_unification.
15055 2008-02-01  Dave Love  <fx@gnu.org>
15057         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15059 2008-02-01  Kenichi Handa  <handa@m17n.org>
15061         * keymap.c (push_key_description): Pay attention to force_multibyte.
15063         * regex.c (re_search_2): Fix for the case of unibyte buffer.
15065 2008-02-01  Dave Love  <fx@gnu.org>
15067         * charset.c (define_charset_internal): Rename `supprementary'.
15069         * Makefile.in (lisp, shortlisp): Remove latin-N.
15071 2008-02-01  Dave Love  <fx@gnu.org>
15073         * xfns.c (x_window, x_window): Use use_xim.
15075         * xterm.c (use_xim): Initialize.
15076         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15077         (x_term_init): Maybe set use_xim.
15079         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15081 2008-02-01  Kenichi Handa  <handa@m17n.org>
15083         * search.c (search_buffer): Fix case-fold-search of multibyte
15084         characters.
15085         (boyer_moore): Rename the last argument to char_high_bits.
15087 2008-02-01  Kenichi Handa  <handa@m17n.org>
15089         * xdisp.c (display_string): Fix for the case of zero width glyph.
15091         * xfns.c (x_set_font): Change the error message of the case that
15092         x_new_fontset returns Qt.
15094         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15095         (Finternal_set_lisp_face_attribute): Use signal_error for the
15096         error of invalid fontset.
15098         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15099         fontset, return Qt.
15101 2008-02-01  Dave Love  <fx@gnu.org>
15103         * unexelf.c (unexec): Make .got handling not SGI-specific.
15105         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15107         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15109         * keyboard.c (read_key_sequence): Fix type error.
15111         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15112         type error.
15114         * fontset.c (fontset_add): Return Lisp_Object.
15116 2008-02-01  Dave Love  <fx@gnu.org>
15118         * charset.h (charset_ordered_list_tick): Declare extern.
15120 2008-02-01  Kenichi Handa  <handa@m17n.org>
15122         The following changes (and some of 2008-02-01 changes of mine) are
15123         for handling syntax, category, and case conversion for unibyte
15124         characters by converting them to multibyte on the fly.  With these
15125         changes, we don't have to setup syntax and case tables for unibyte
15126         characters in each language environment.
15128         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15129         multibyte if necessary.
15131         * bytecode.c (Fbyte_code): Likewise.
15133         * character.h (LEADING_CODE_LATIN_1_MIN)
15134         (LEADING_CODE_LATIN_1_MAX): New macros.
15135         (unibyte_to_multibyte_table): Extern it.
15136         (unibyte_char_to_multibyte): New macro.
15137         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15138         (CHAR_LEADING_CODE): New macro.
15139         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15141         * character.c (unibyte_to_multibyte_table): New variable.
15142         (unibyte_char_to_multibyte): Move to character.h and define as macro.
15143         (multibyte_char_to_unibyte): If C is an eight-bit character,
15144         convert it to the corresponding byte value.
15146         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15147         not 1, signals an error.  Update the elements of
15148         unibyte_to_multibyte_table.
15149         (init_charset_once): Initialize unibyte_to_multibyte_table.
15150         (syms_of_charset): Define the charset `iso-8859-1'.
15152         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15153         as is without converting it to unibyte.  In a unibyte buffer,
15154         convert C to multibyte before checking the syntax.
15156         * lisp.h (unibyte_char_to_multibyte): Delete extern.
15158         * minibuf.c (Fminibuffer_complete_word): Use the macro
15159         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15161         * regex.h (struct re_pattern_buffer): New member target_multibyte.
15163         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15164         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
15165         that is zero, convert an eight-bit char to multibyte.
15166         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15167         non-emacs case.
15168         (PATFETCH): Convert an eight-bit char to multibyte.
15169         (HANDLE_UNIBYTE_RANGE): New macro.
15170         (regex_compile): Setup the compiled pattern for multibyte chars
15171         even if the given regex string is unibyte.  Use PATFETCH_RAW
15172         instead of PATFETCH in many places.  To handle `charset'
15173         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
15174         only for ASCII chars.
15175         (analyse_first) <exactn>: Simplify because the compiled pattern
15176         is multibyte.
15177         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15178         <charset>: Use CHAR_LEADING_CODE to get leading codes.
15179         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15180         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15181         multibyte always 1.
15182         (re_search_2): In emacs, set the locale variable multibyte to 1,
15183         otherwise to 0.  New local variable target_multibyte.  Check it
15184         to decide the multibyteness of STR1 and STR2.  If
15185         target_multibyte is zero, convert unibyte chars to multibyte
15186         before translating and checking fastmap.
15187         (TARGET_CHAR_AND_LENGTH): New macro.
15188         (re_match_2_internal): In emacs, set the locale variable multibyte
15189         to 1, otherwise to 0.  New local variable target_multibyte.  Check
15190         it to decide the multibyteness of STR1 and STR2.  Use
15191         TARGET_CHAR_AND_LENGTH to fetch a character from D.
15192         <charset, charset_not>: If multibyte is nonzero, check fastmap
15193         only for ASCII chars.  Call bcmp_translate with
15194         target_multibyte, not with multibyte.
15195         <begline>: Declare the local variable C as `unsigned'.
15196         (bcmp_translate): Change the last arg name to target_multibyte.
15198         * search.c (compile_pattern_1): Don't adjust the multibyteness of
15199         the regexp pattern and the matching target.  Set cp->buf.multibyte
15200         to the multibyteness of the regexp pattern.  Set
15201         cp->but.target_multibyte to the multibyteness of the matching target.
15202         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15203         FETCH_STRING_CHAR_ADVANCE.
15204         (Freplace_match): Convert unibyte chars to multibyte.
15206         * syntax.c (char_quoted, back_comment, scan_words)
15207         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15208         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15209         unibyte chars to multibyte.
15210         (skip_chars): Delete the arg syntaxp, and move the code for
15211         handling syntaxes to skip_syntaxes.  Change callers.
15212         Fix the case that the multibyteness of STRING and the current
15213         buffer doesn't match.
15214         (skip_syntaxes): New function.
15215         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15216         SINGLE_BYTE_CHAR_P.
15218 2008-02-01  Kenichi Handa  <handa@m17n.org>
15220         * xfaces.c (QCfontset): New variable.
15221         (LFACE_FONTSET): New macro.
15222         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15223         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15224         (Finternal_set_lisp_face_attribute)
15225         (Finternal_get_lisp_face_attribute): Handle QCfontset.
15226         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15227         check also LFACE_FONTSET_INDEX.
15228         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15229         attrs[LFACE_FONT_INDEX].
15230         (syms_of_xfaces): Intern and staticpro QCfontset.
15232         * dispextern.h (enum lface_attribute_index): New member
15233         LFACE_FONTSET_INDEX.
15235         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15237 2008-02-01  Kenichi Handa  <handa@m17n.org>
15239         * coding.c (coding_set_destination): Fix coding->destination for
15240         the case converting a region.
15241         (encode_coding_utf_8): Encode eight-bit chars as single byte.
15242         (encode_coding_object): Fix coding->dst_pos and
15243         coding->dst_pos_byte for the case converting a region.
15245         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15247         * character.h (BYTE8_STRING): New macro.
15249         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15251 2008-02-01  Kenichi Handa  <handa@m17n.org>
15253         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15254         characters by octal form.
15256         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15258         * buffer.h (_fetch_multibyte_char_len): Delete extern.
15259         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15260         _fetch_multibyte_char_len.
15261         (FETCH_CHAR_AS_MULTIBYTE): New macro.
15263         * casetab.c (set_canon, set_identity, shuffle): Simplify.
15265         * casefiddle.c (casify_object): Simplify.  Handle the case that
15266         the case conversion change the byte length.
15267         (casify_region): Likewise.
15269         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15271         * character.c (_fetch_multibyte_char_len): Delete this variable.
15272         (syms_of_character): Setup Vprintable_chars.
15274         * editfns.c (Fchar_equal): Fix for the unibyte case.
15275         (Finsert_byte): New function.
15276         (syms_of_editfns): Defsubr it.
15278         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15279         of direct code 0x3ffff.
15281         * search.c (Freplace_match): Fix for the unibyte case.
15283 2008-02-01  Kenichi Handa  <handa@m17n.org>
15285         * lread.c (safe_to_load_p): Fix the logic.
15287         * syntax.c (scan_words): Don't treat characters belonging to
15288         different scripts as constituting a word.
15290         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15292         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15294         * emacs.c (main): In the case of --unibyte, instead of aborting on
15295         finding non-empty buffer, make it unibyte.
15297 2008-02-01  Kenichi Handa  <handa@m17n.org>
15299         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15300         to create a fontset.
15302 2008-02-01  Dave Love  <fx@gnu.org>
15304         * character.c (Funibyte_char_to_multibyte): Doc fix.
15306         * xfns.c [HAVE_STDLIB_H]: Fix last change.
15308 2008-02-01  Kenichi Handa  <handa@m17n.org>
15310         * fontset.c (fontset_add): Make the type `int'.
15311         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15313         * character.c (unibyte_char_to_multibyte)
15314         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15315         charset_unibyte, not charset_primary.
15317         * charset.h (charset_unibyte): Extern it instead of charset_primary.
15319         * charset.c (charset_unibyte): Rename from charset_primary.
15320         (Funibyte_charset): Rename from Fprimary_charset.
15321         (Fset_unibyte_charset): Rename from Fset_primary_charset.
15322         (syms_of_charset): Adjust for the above changes.
15324         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15325         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
15326         it->multibyte_p is zero.
15328         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15329         Delete extern.
15331 2008-02-01  Kenichi Handa  <handa@m17n.org>
15333         * coding.c (Fdefine_coding_system_internal): Fix category setting
15334         for a coding system of type iso-2022.
15336 2008-02-01  Kenichi Handa  <handa@m17n.org>
15338         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15340 2008-02-01  Kenichi Handa  <handa@m17n.org>
15342         * syntax.c (Vnext_word_boundary_function_table): New variable.
15343         (next-word-boundary-function-table): Declare it as a Lisp variable
15344         in syms_of_syntax.
15345         (scan_words): Call functions in Vnext_word_boundary_function_table
15346         if any.
15348         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15350         * fontset.c (fs_load_font): If fontp->charset is not negative,
15351         return fontp without setting its members.
15353 2008-02-01  Dave Love  <fx@gnu.org>
15355         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15357         * m/sparc.h (HAVE_ALLOCA): Delete.
15359         * s/irix6-5.h: Don't include strings.h.
15360         (bcopy, bzero, bcmp): Don't undef.
15362         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15364         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15365         (TIOCSIGSEND): Don't test IRIX6.
15366         (bcopy, bzero, bcmp): Define conditionally.
15368 2008-02-01  Kenichi Handa  <handa@m17n.org>
15370         * buffer.c (Qas, Qmake, Qto): New variables.
15371         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
15372         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15374         * callproc.c (Fcall_process): Don't call insert_1_both directly if
15375         we are inserting a process output into a multibyte buffer.
15377         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15378         multibyte_char_to_unibyte.
15380         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15381         by the primary charset, make it eight-bit char.
15382         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15384         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15385         (charset_8_bit__control, charset_8_bit_graphic)
15386         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15387         (define_charset_internal): New function.
15388         (syms_of_charset): Call define_charset_internal for pre-defined
15389         charsets.
15391         * charset.h (charset_8_bit): Extern it.
15393         * coding.c (make_conversion_work_buffer): Adjust for the change
15394         of Fset_buffer_multibyte.
15395         (encode_coding_raw_text): Increment p0 in the loop.
15397         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15399         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15400         for the change of Fset_buffer_multibyte.
15402         * fns.c (Fstring_to_multibyte): New function.
15403         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15405 2008-02-01  Dave Love  <fx@gnu.org>
15407         * xfns.c (x_put_x_image): Declare args.
15409         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15410         (try_font_list): Declare an arg.
15412         * xdisp.c (message2_nolog, set_message): Declare an arg.
15414         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
15416         * syntax.c (scan_sexps_forward): Declare an arg.
15418         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15419         Declare an arg.
15421         * lisp.h (Fnew_fontset): Declare.
15423         * keymap.c (push_key_description): Call CHARACTERP correctly.
15425         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
15426         (face_for_char): Delete unused vars.
15427         (Fset_fontset_font): Doc fix.  Delete unused vars.
15429         * doc.c (Fsubstitute_command_keys): Delete unused vars.
15431         * composite.c (update_compositions): Declare arg.
15433         * cm.c (calccost, cmgoto): Declare args.
15435         * charset.c: Remove `emacs' conditional.  Doc fixes.
15436         (map_char_table_for_charset): Declare.
15438         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15440         * ccl.c: Remove `emacs' conditional.
15442 2008-02-01  Kenichi Handa  <handa@m17n.org>
15444         The following changes are to allow specifying multiple font
15445         patterns for a character range (specified by script or charset).
15447         * Makefile.in (abbrev.o): Depend on syntax.h.
15448         (xfaces.o): Depend on charset.h.
15450         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15451         SINGLE_BYTE_CHAR_P.
15453         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15455         * character.h (Vchar_script_table): Extern it.
15457         * character.c (Vscript_alist): Delete.
15458         (Vchar_script_table, Qchar_script_table): New variable.
15459         (syms_of_character): Declare Vchar_script_table as a lisp variable
15460         and initialize it.
15462         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
15463         have property char-table-extra-slots, make no extra slot.
15465         * dispextern.h (struct face): Delete member `charset'.
15466         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15467         SINGLE_BYTE_CHAR_P.
15468         (choose_face_font, lookup_non_ascii_face, font_name_registry):
15469         Add prototypes.
15470         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15471         (generate_ascii_font_name): Rename from generate_ascii_font.
15473         * fontset.h (get_font_repertory_func): New prototype.
15474         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15475         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15477         * fontset.c (Qprepend, Qappend): New variables.
15478         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15479         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15480         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15481         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15482         (fontset_ref_and_range, fontset_add, reorder_font_vector)
15483         (load_font_get_repertory): New functions.
15484         (fontset_set): Delete.
15485         (fontset_face): New arg FACE.  Return face ID, not face.
15486         Complete re-write to handle new fontset structure.  Change caller.
15487         (free_face_fontset): Use ASET istead of AREF (X) = Y.
15488         (face_for_char): Don't call lookup_face.
15489         (make_fontset_for_ascii_face): New arg FACE.
15490         (fs_load_font): New arg CHARSET_ID.  Don't check
15491         Vfont_encoding_alist here.
15492         (find_font_encoding): New function.
15493         (list_fontsets): Use STRINGP, not ! NILP.
15494         (accumulate_script_ranges): New function.
15495         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15496         re-written to handle new fontset structure.
15497         (Ffontset_font): Return a copy of element.
15498         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
15499         docstring of font-encoding-alist.
15501         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15502         (Fset_fotset_font): Fix arguments to 5.
15504         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15506         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15507         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15508         (highlight_trailing_whitespace): Adjust for the change of
15509         lookup_named_face.
15511         * xfaces.c: Include charset.h.
15512         (load_face_font): Delete argument C.  Change caller.
15513         (generate_ascii_font_name): Rename from generate_ascii_font.
15514         (font_name_registry): New function.
15515         (cache_face): Store ascii faces before non-ascii faces in buckets.
15516         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
15517         Lookup only ascii faces.
15518         (lookup_non_ascii_face): New function.
15519         (lookup_named_face): Delete argument C.  Change caller.
15520         (lookup_derived_face): Delete argument C.  Change caller.
15521         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
15522         a string, just call font_list with it.
15523         (choose_face_font): Delete arguments FACE and C.  New arg
15524         FONT_SPEC.  Change caller.
15525         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15526         Change caller.
15527         (realize_non_ascii_face): New function.
15528         (realize_x_face): Call load_face_font here.
15529         (realize_tty_face): Delete argument C.  Change caller.
15530         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15531         get a face ID.
15532         (dump_realized_face): Don't print charset of FACE.
15534         * xfns.c (x_set_font): Always call x_new_fontset and
15535         store_frame_parameter.
15536         (Fx_create_frame): Call x_new_fontset, not x_new_font.
15537         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15539         * xterm.h (x_get_font_repertory): Extern it.
15541         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15542         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
15543         it->multibyte_p is zero.
15544         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15545         (x_new_fontset): If FONTSETNAME doesn't match any existing
15546         fontsets, create a new one.
15547         (x_get_font_repertory): New function.
15549 2008-02-01  Kenichi Handa  <handa@m17n.org>
15551         * coding.c (Ffind_coding_systems_region_internal): Detect an
15552         ASCII only string correctly.
15554         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15555         version is 0.
15557 2008-02-01  Kenichi Handa  <handa@m17n.org>
15559         * lread.c: Include "coding.h".
15560         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15561         (load_each_byte, unread_char): New variables.
15562         (readchar_backlog): Delete.
15563         (readchar): Return a character unless load_each_byte is nonzero.
15564         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15565         cons.  If unread_char is not -1, simply return it.
15566         (unreadchar): Handle the case that readcharfun is
15567         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
15568         (read_multibyte): Delete.
15569         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15570         (read_emacs_mule_char): New functions.
15571         (Fload): Even if the file doesn't have the extension ".elc", if
15572         safe_to_load_p returns a positive version number, assume that the
15573         file contains bytecompiled code.  If the version is less than 22,
15574         load the file while decoding multibyte sequences by emacs-mule.
15575         (readevalloop): Don't use readchar_backlog.
15576         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
15577         (Fread_from_string): Pay attention to the case that STREAM is a cons.
15578         (read_escape): Delete the arg BYTEREP.
15579         (read1): Set load_each_byte to 1 temporarily while handling
15580         #@NUMBER.  Don't call read_multibyte.
15581         (read_vector): Call Fread with a cons.  If readcharfun is
15582         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15583         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15584         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15585         and Qload_force_doc_strings.
15587 2008-02-01  Kenichi Handa  <handa@m17n.org>
15589         * xdisp.c (face_before_or_after_it_pos): Call
15590         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15592 2008-02-01  Kenichi Handa  <handa@m17n.org>
15594         * character.h (TRAILING_CODE_P): New macro.
15595         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15596         (string_char_with_unification): Fix prototype.
15597         (Vscript_alist): Extern it.
15599         * character.c (Vscript_alist): New variable.
15600         (string_char_with_unification, str_as_unibyte)
15601         (string_escape_byte8): Add `const' to local variables.
15602         (syms_of_character): Declare script-alist as a Lisp variable.
15604         * charset.h (Vcharset_ordered_list): Extern it.
15605         (charset_ordered_list_tick): Extern it.
15606         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15607         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15608         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15609         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15610         (Funify_charset): Adjust for the change of Funify_charset.
15612         * charset.c (charset_ordered_list_tick): New variable.
15613         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15614         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
15615         deunify intead of unify a charset.
15616         (string_xstring_p): Add `const' to local variables.
15617         (find_charsets_in_text): Add `const' to arguments and local variables.
15618         (encode_char): Adjust for the change of Funify_charset.  Fix
15619         detecting of invalid code.
15620         (Fset_charset_priority): Increment charset_ordered_list_tick.
15621         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15622         and TO_CODE.
15624         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15625         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15626         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15627         (decode_coding_ccl, consume_chars)
15628         (Ffind_coding_systems_region_internal)
15629         (Fcheck_coding_systems_region): Add `const' to local variables.
15631         * print.c (print_object): Use octal form for printing the
15632         contents of a bool vector.
15634 2008-02-01  Dave Love  <fx@gnu.org>
15636         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15637         <version == 20>: Refuse to load.
15639 2008-02-01  Dave Love  <fx@gnu.org>
15641         * fns.c: Move coding.h.
15642         (Qcodeset, Qdays, Qmonths): New.
15643         (concat): Use CHARACTERP instead of INTEGERP.
15644         (Flocale_codeset): Delete.
15645         (Flanginfo): New function.
15646         (syms_of_fns): Change accordingly.
15648         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15650 2008-02-01  Dave Love  <fx@gnu.org>
15652         * casetab.c (init_casetab_once, init_casetab_once): Fix
15653         CHAR_TABLE_SET call.
15655         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15657         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15659         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
15660         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15661         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15663         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15665         * coding.c (ENCODE_DESIGNATION, decode_eol)
15666         (make_conversion_work_buffer, code_conversion_restore)
15667         (Fdefine_coding_system_internal): Convert Lisp types.
15668         (code_conversion_restore): Use EQ, not ==.
15669         (Fencode_coding_string): Fix code_convert_string call.
15671         * coding.h (code_convert_region): Fix prototype.
15673         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15675         * fontset.c (fontset_ref, fontset_set, fs_load_font)
15676         (Ffontset_info): Convert Lisp types.
15678         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15680         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15682         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15684         * chartab.c: Include "...h", not <...h> in some cases.
15686         * callproc.c (Fcall_process): Remove unused variables.
15688 2008-02-01  Dave Love  <fx@gnu.org>
15690         * coding.c (Fset_coding_system_priority): Allow null arg list.
15692 2008-02-01  Dave Love  <fx@gnu.org>
15694         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15695         (Fself_insert_and_exit): Use CHARACTERP.
15697         * callproc.c (Fcall_process): Remove unused vars.
15699         * xterm.c (XTread_socket): Add extra dead keysyms.
15701         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15703         * dispextern.h: Remove prototypes for redraw_frame,
15704         redraw_garbaged_frames.
15706         * cmds.c (Fself_insert_command): Use CHARACTERP.
15708         * chartab.c (make_sub_char_table): Remove unused var.
15709         (Fset_char_table_default, Fmap_char_table): Doc fix.
15711         * keymap.c (access_keymap): Remove generic char code.
15712         (push_key_description): Use CHARACTERP.
15714 2008-02-01  Dave Love  <fx@gnu.org>
15716         * charset.c: Doc fixes.
15717         (Funify_charset): Extra checking.
15719 2008-02-01  Dave Love  <fx@gnu.org>
15721         * lread.c: Remove some unused variables.
15722         (safe_to_load_p): If safe, return the magic number version byte.
15723         (Fload): Maybe use load-with-code-conversion.
15725 2008-02-01  Kenichi Handa  <handa@m17n.org>
15727         * category.c (Fmodify_category_entry): Don't modify the contents
15728         of category_set for characters out of the range.  Avoid
15729         unnecessary modification.
15731         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15732         Vchar_unify_table.  The default value of the table is now nil.
15734         * character.c (syms_of_character): Setup Vchar_width_table for
15735         eight-bit-control and raw-byte chars.
15737         * charset.h (enum define_charset_arg_index): Delete
15738         charset_arg_parents and add charset_arg_subset and
15739         charset_arg_superset.
15740         (enum charset_attr_index): Delete charset_parents and add
15741         charset_subset and charset_superset.
15742         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15743         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15744         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15745         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15746         (CHARSET_SUPERSET): New macros.
15747         (charset_work): Extern it.
15748         (ENCODE_CHAR): Use charset_work.
15749         (CHAR_CHARSET_P): Adjust for the change of encoder format.
15750         (map_charset_chars): Extern it.
15752         * charset.c (load_charset_map): Set the default value of encoder
15753         and deunifier char-tables to nil.
15754         (map_charset_chars): Change argument.  Change callers.  Use
15755         map_char_table_for_charset instead of map_char_table.
15756         (Fmap_charset_chars): New optional args from_code and to_code.
15757         (Fdefine_charset_internal): Adjust for the change of
15758         `define-charset' (:parents -> :subset or :superset).
15759         (charset_work): New variable.
15760         (encode_char, syms_of_charset): Adjust for the change of
15761         Fdefine_charset_internal.
15762         (Ffind_charset_string): Setup the vector `charsets' correctly.
15764         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
15765         the previous change.
15766         (char_table_ref_and_range): Adjust for the above change.
15767         (map_sub_char_table_for_charset): New function.
15768         (map_char_table_for_charset): New function.
15770         * keymap.c (describe_vector): Handle a char-table directly here.
15771         (describe_char_table): Delete.
15773         * lisp.h (map_charset_chars): Delete.
15775 2008-02-01  Dave Love  <fx@gnu.org>
15777         * fns.c (count_combining): Comment out (unused).
15778         (Flocale_codeset): New.
15779         (syms_of_fns): Defsubr it.
15781         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15782         (size_t): Remove.
15784 2008-02-01  Dave Love  <fx@gnu.org>
15786         * Makefile.in (chartab.o): Depend on charset.h.
15788 2008-02-01  Kenichi Handa  <handa@m17n.org>
15790         * character.c (syms_of_character): Set the default value of
15791         Vprintable_chars to Qnil.
15793 2008-02-01  Dave Love  <fx@gnu.org>
15795         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15797 2008-02-01  Kenichi Handa  <handa@m17n.org>
15799         * charset.c (load_charset_map): Handle the case that from < to
15800         correctly.
15802         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15803         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15804         Pay attention to raw-8-bit chars.
15806 2008-02-01  Kenichi Handa  <handa@m17n.org>
15808         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15809         It is not bytecompiled now.
15811         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15812         (charset_jisx0208): New variables.
15813         (Fdefine_charset_internal): Setup them if appropriate.
15814         (init_charset_once): Initialize them to -1.
15816         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15817         (charset_jisx0208): Extern them.
15819         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15820         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15821         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15822         (setup_iso_safe_charsets): Fix arguments to Fassq.
15823         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15824         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15825         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15826         (encode_coding_iso_2022): Change the 1st arg to
15827         ENCODE_ISO_CHARACTER to a variable.
15829 2008-02-01  Kenichi Handa  <handa@m17n.org>
15831         * charset.h (enum define_charset_arg_index): New enums
15832         charset_arg_min_code and charset_arg_max_code.
15833         (struct charset): New member char_index_offset.
15835         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15836         Take charset->char_index_offset into account.
15837         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15838         args[charset_arg_max_code].  Setup charset.char_index_offset.
15839         (syms_of_charset): Fix args to Fdefine_charset_internal.
15841 2008-02-01  Dave Love  <fx@gnu.org>
15843         * coding.c (decode_coding_utf_8): Reject overlong sequences.
15845 2008-02-01  Dave Love  <fx@gnu.org>
15847         * coding.c: Doc fixes.
15848         (Fcoding_system_aliases): Fix return value.
15849         (Qmac): Remove (duplicated) definition.
15851 2008-02-01  Dave Love  <fx@gnu.org>
15853         * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15854         functions.
15856         * character.c (Fstring): Doc fix.
15858         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15860         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not
15861         ids.
15862         (font-encoding-alist): Doc fix.
15864 2008-02-01  Dave Love  <fx@gnu.org>
15866         * term.c (costs_set): Declare static, non-initialized for pcc.
15867         (encode_terminal_code): Remove unused var.
15869         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15870         for K&R.
15872         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15874         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15875         (suffixes): Move out of make_subsidiaries for K&R.
15877         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15879         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15881 2008-02-01  Dave Love  <fx@gnu.org>
15883         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
15885         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
15887 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
15889         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15891         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15893 2008-02-01  Kenichi Handa  <handa@m17n.org>
15895         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15896         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
15898 2008-02-01  Kenichi Handa  <handa@m17n.org>
15900         * coding.c (decode_coding_charset): Adjust for the change of
15901         Fdefine_coding_system_internal.
15902         (Fdefine_coding_system_internal): For a coding system of
15903         `charset' type, store a list of charset IDs in
15904         `charset_attr_charset_valids' element of coding attributes.
15906 2008-02-01  Kenichi Handa  <handa@m17n.org>
15908         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15909         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
15910         caller.  Handle 2-byte and 3-byte charsets correctly.
15911         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15912         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
15913         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15914         (DECODE_EMACS_MULE_21_COMPOSITION): Call
15915         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
15916         sequence.
15917         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
15918         `src' and `consumed_chars' correctly before calling emacs_mule_char.
15919         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15920         and alt&rule composition.
15921         (decode_coding_iso_2022): Handle composition correctly.
15922         (init_coding_once): Setup emacs_mule_bytes for private charsets.
15924         * charset.c (Fdefine_charset_internal): Fix bug for the case of
15925         re-defining a charset.  If the charset has :emacs-mule-id, setup
15926         emacs_mule_bytes.
15927         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15929 2008-02-01  Kenichi Handa  <handa@m17n.org>
15931         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15932         (encode_coding_big5, encode_coding_charset): If coding requires safe
15933         encoding, produce a character specified by
15934         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15936 2008-02-01  Dave Love  <fx@gnu.org>
15938         * xterm.c (XSetIMValues): Declare.
15940         * process.c: Conditionally include sys/wait.h, pty.h.
15942         * print.c (print_object): Fix print format for 64-bit systems.
15944         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15946         * buffer.c (emacs_strerror): Declare.
15948         * fontset.c (Fclear_face_cache): Declare.
15949         (accumulate_font_info): Comment-out (unused).
15950         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15951         variables.
15953         * character.h (string_escape_byte8): Declare.
15955         * charset.c (load_charset_map, load_charset_map_from_file): Remove
15956         unused vars.
15957         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15958         (Fmap_charset_chars): Doc fix.
15960         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15961         (Fset_coding_system_priority, Fset_coding_system_priority)
15962         (Fdefine_coding_system_internal): Doc fix.
15964 2008-02-01  Dave Love  <fx@gnu.org>
15966         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15968 2008-02-01  Kenichi Handa  <handa@m17n.org>
15970         * character.c (string_escape_byte8): Make multibyte string with
15971         correct size.
15973         * charset.c (Fmake_char): Delete unnecessary code.
15975 2008-02-01  Kenichi Handa  <handa@m17n.org>
15977         * xfns.c (x_encode_text): Allocate coding.destination here, and
15978         call encode_coding_object with dst_object Qnil.
15980         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15981         multibyte form correctly.
15983         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15984         against Vfont_encoding_alist.
15986         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
15987         handling of charset list.
15988         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15989         (decode_coding_object): Move point to coding->dst_pos before
15990         calling post-read-conversion function.
15991         (encode_coding_object): Give correct arguments to
15992         pre-write-conversion.  Ignore the return value of
15993         pre-write-conversion function.  Pay attention to the case that
15994         pre-write-conversion changes the current buffer.  If dst_object is
15995         Qt, even if coding->src_bytes is zero, allocate at least one byte
15996         to coding->destination.
15998         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16000         * charset.c (Fmake_char): Make it more backward compatible.
16001         (Fmap_charset_chars): Fix docstring.
16003 2008-02-01  Dave Love  <fx@gnu.org>
16005         * coding.c: Doc fixes.
16006         (Fdefine_coding_system_alias): Use names, not symbols, in
16007         coding-system-alist.
16009 2008-02-01  Kenichi Handa  <handa@m17n.org>
16011         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16012         of calling free_realized_face.
16014 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
16016         * charset.c (read_hex): Don't treat SPC as a comment starter.
16017         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16018         (Fdecode_char): Fix typo.
16020 2008-02-01  Kenichi Handa  <handa@m17n.org>
16022         * charset.h (struct charset): New member `code_space_mask'.
16024         * coding.c (coding_set_source): Delete the local variable beg_byte.
16025         (encode_coding_charset, Fdefine_coding_system_internal):
16026         Delete the local variable charset.
16027         (Fdefine_coding_system_internal): Setup
16028         attrs[coding_attr_charset_valids] correctly.
16030         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16031         member to check if CODE is valid or not.
16032         (Fdefine_charset_internal): Initialize `code_space_mask' member.
16033         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16034         is within the range of charset->min_code and carset->max_code.
16036 2008-02-01  Dave Love  <fx@gnu.org>
16038         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16040         * dispextern.h (generate_ascii_font): Fix return type.
16042         * xfaces.c (generate_ascii_font): Fix arg declaration.
16044         * coding.c (coding_inherit_eol_type)
16045         (Fset_terminal_coding_system_internal)
16046         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16048 2008-02-01  Kenichi Handa  <handa@m17n.org>
16050         * coding.c (decode_coding_charset, encode_coding_charset): Handle
16051         multiple charsets correctly.
16053 2008-02-01  Kenichi Handa  <handa@m17n.org>
16055         * search.c (boyer_moore): Fix handling of multibyte character
16056         translation.
16058         * xdisp.c (display_mode_element): When the variable `elt' is
16059         changed, update `this' and `lisp_string'.
16061 2008-02-01  Kenichi Handa  <handa@m17n.org>
16063         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16065         * callproc.c (Fcall_process): Be sure to give the current buffer
16066         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
16068         * charset.c (struct charset_map_entries): New struct.
16069         (load_charset_map): Rename from parse_charset_map.  New args
16070         entries and n_entries.  Change caller.
16071         (load_charset_map_from_file): Rename from load_charset_map.
16072         Change caller.  New arg control_flag.  Call load_charset_map at
16073         the tail.
16074         (load_charset_map_from_vector): New function.
16075         (Fdefine_charset_internal): Setup charset.compact_codes_p.
16076         (encode_char): If the charset is compact, change a character index
16077         to a code point.
16079         * coding.c (coding_alloc_by_making_gap): Check the case that the
16080         source and destination are the same correctly.
16081         (decode_coding_raw_text): Set coding->consumed_char and
16082         coding->consumed to 0.
16083         (produce_chars): If coding->chars_at_source is nonzero, update
16084         coding->consumed_char and coding->consumed before calling
16085         alloc_destination.
16086         (Fdefine_coding_system_alias): Register ALIAS in
16087         Vcoding_system_alist.
16088         (syms_of_coding): Define `no-conversion' coding system at the tail.
16090         * fileio.c (Finsert_file_contents): Set coding_system instead of
16091         val.  If the current buffer is multibyte, always call
16092         decode_coding_gap.
16094         * xfaces.c (try_font_list): Give higher priority to fontset's
16095         family than face's family.
16097 2008-02-01  Kenichi Handa  <handa@m17n.org>
16099         * callproc.c (Fcall_process): Be sure to give the current buffer
16100         to decode_coding_c_string.
16102         * xfaces.c (try_font_list): Give a family specified in a fontset
16103         higher priority than a family specified in a face.
16105 2008-02-01  Kenichi Handa  <handa@m17n.org>
16107         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16108         Fix arguments to insert_from_buffer.
16110         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16112 2008-02-01  Kenichi Handa  <handa@m17n.org>
16114         * coding.c (produce_chars): Set the variable `multibytep' correctly.
16115         (decode_coding_gap): Set coding->dst_multibyte correctly.
16117 2008-02-01  Kenichi Handa  <handa@m17n.org>
16119         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16120         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16121         (encode_coding_utf_16): Substitute coding->default_char for
16122         non-Unicode characters.
16123         (decode_coding): Don't call record_insert here.
16124         (setup_coding_system): Initialize `surrogate' of
16125         coding->spec.utf_16 to 0.
16126         (EMIT_ONE_BYTE): Fix for multibyte case.
16128         * insdel.c (insert_from_gap): Call record_insert.
16130 2008-02-01  Kenichi Handa  <handa@m17n.org>
16132         * casefiddle.c (casify_region): Fix multibyte case.
16134         * character.c (c_string_width): Add return type `int'.
16135         (char_string_with_unification): Delete arg ADVANCED.
16137         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16138         (CHAR_STRING): Adjust for the change of char_string_with_unification.
16139         (CHAR_STRING_ADVANCE): Make it do-while statement.
16141         * chartab.c (sub_char_table_set_range): Optimize for the case
16142         DEPTH == 3.  Add workaround code for a GCC optimization bug.
16144         * charset.c (parse_charset_map): Remove an unused variable.
16146         * coding.c: Delete unused variables.
16148         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16149         earlier.  If inserted is zero and the coding system doesn't
16150         require flushing, don't call decode_coding_gap.
16152         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16154 2008-02-01  Kenichi Handa  <handa@m17n.org>
16156         The following changes are for using Unicode as an internal
16157         character model, and use UTF-8 format for buffer/string
16158         representation.
16160         * .gdbinit (xchartable): Adjust for the change of char table structure.
16161         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16163         * Makefile.in (obj): Add character.o and chartab.o.
16164         (lisp, shortlisp): Remove utf-8.elc.
16165         (*.o): For many files, change dependency on charset.h to
16166         character.h, and add dependency on character.h.
16167         (character.o, chartab.o): New targets.
16169         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16170         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16171         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16172         of "charset.h".
16174         * dired.c, filelock.c: Include "character.h".
16176         * alloc.c: Include "character.h" instead of "charset.h".
16177         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16178         (syms_of_alloc): Remove defsubr for Smake_char_table.
16180         * buffer.c: Include "character.h" instead of "charset.h", don't
16181         include "coding.h".
16182         (Fset_buffer_multibyte): Adjust for UTF-8.
16184         * buffer.h: EXFUN Fbuffer_live_p.
16186         * callproc.c: Include "character.h" instead of "charset.h".
16187         (Fcall_process): Big change for the new code-conversion APIs.
16189         * casetab.c: Include "character.h" instead of "charset.h".
16190         (set_canon, set_identity, shuffle): Adjust for the new
16191         map_char_table spec.
16192         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16193         accessing the char table structure.
16195         * chartab.c: New file that implements char table.
16197         * category.c: Include "character.h".
16198         (copy_category_entry): New function.
16199         (copy_category_table): Call map_char_table and copy_category_entry.
16200         (Fmake_category_table): Initialize all top-level slots.
16201         (char_category_set): New function.
16202         (modify_lower_category_set): Delete.
16203         (Fmodify_category_entry): Call char_table_ref_and_range.
16205         * category.h (CATEGORY_SET): Just call char_category_set.
16207         * ccl.c: Include "character.h".
16208         (Qccl, Qcclp): New variables.
16209         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16210         it's less than 256.
16211         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16212         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16213         and DST type.
16214         (ccl_driver): Change types of argument, adjust code accordingly.
16215         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16216         ccl_driver.
16217         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16219         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16220         New members src_multibyte, dst_multibyte, consumed, and produced.
16221         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
16222         (CODING_SPEC_CCL_PROGRAM): New macro.
16223         (ccl_driver): Update prototype.
16224         (Qccl, Qcclp, Fccl_program_p): Extern them.
16225         (CHECK_CCL_PROGRAM): New macro.
16227         * character.c, character.h, chartab.c: New files.
16229         * charset.c: Mostly re-written.  Move character and multibyte sequence
16230         handling codes to character.c.
16232         * charset.h: Mostly re-written.  Move character and multibyte sequence
16233         handling codes to character.h.
16235         * coding.c, coding.h: Mostly re-written.
16237         * composite.c: Include "character.h" instead of "charset.h".
16238         (CHAR_WIDTH): Move to character.h.
16239         (HASH_KEY, HASH_VALUE): Delete.
16241         * composite.h (enum composition_method): Change order of enumeration
16242         symbols.
16244         * data.c: Include "character.h" instead of "charset.h".
16245         (Faref): Call CHAR_TABLE_REF for a char table.
16246         (Faset): Call CHAR_TABLE_SET for a char table.
16248         * dispextern.h (free_realized_face, check_face_attribytes)
16249         (generate_ascii_font): Extern them.
16250         (free_realized_multibyte_face): Delete extern.
16252         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16253         table structure.
16255         * editfns.c: Include "character.h" instead of "charset.h".
16256         (Fchar_to_string): Always call CHAR_STRING.
16258         * emacs.c (main): Call init_charset_once, init_charset,
16259         syms_of_chartab, and syms_of_character.
16261         * fileio.c: Include "character.h" instead of "charset.h".
16262         (Finsert_file_contents): Big change for the new code-conversion API.
16263         (choose_write_coding_system, Fwrite_region): Likewise.
16264         (build_annotations_2): Delete.
16265         (e_write): Big change for the new code-conversion API.
16267         * fns.c: Include "character.h" instead of "charset.h".
16268         (copy_sub_char_table): Move to chartab.c.
16269         (Fcopy_sequence): Call copy_char_table for a char table.
16270         (concat): Delete codes calling count_multibyte.
16271         (string_char_to_byte, string_byte_to_char): Adjust for the new
16272         multibyte form.
16273         (internal_equal): Adjust for the change of char table structure.
16274         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16275         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16276         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16277         (char_table_translate, optimize_sub_char_table)
16278         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16279         chartab.c.
16280         (char_table_ref_and_index): Delete.
16281         (HASH_KEY, HASH_VALUE): Move to lisp.h.
16282         (Fmd5): Call preferred_coding_system instead of accessing
16283         Vcoding_category_list.  Adjust for the new code-conversion API.
16284         (syms_of_fns): Move defsubr for char table related functions to
16285         chartab.c.
16287         * fontset.c: Mostly re-written.
16289         * fontset.h (struct font_info): Change type of the member encoding_type.
16290         (enum FONT_SPEC_INDEX): New enum.
16291         (fontset_font_pattern, fs_load_font): Update prototype.
16292         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16294         * indent.c: Include "character.h" instead of "charset.h".
16295         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16297         * insdel.c: Include "character.h" instead of "charset.h".
16298         (copy_text): Don't refer to Vnonascii_translation_table.
16299         (insert_from_gap): New function.
16301         * keyboard.c: Include "character.h" instead of "charset.h".
16302         (command_loop_1): Never call direct_output_forward_char before
16303         a non-ASCII character.
16304         (read_char): If Vkeyboard_translate_table is a char table, always
16305         translate a character.
16307         * keymap.c: Include "character.h".
16308         (store_in_keymap): Handle the case that IDX is a cons.
16309         (Fdefine_key): Handle the case that KEY is a cons and the car part
16310         is also a cons (range).
16311         (push_key_description): Adjust for the new character code.
16312         (describe_vector): Call describe_char_table for a char table.
16313         (describe_char_table): New function.
16315         * keymap.h (describe_char_table): Extern it.
16317         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16318         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16319         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16320         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16321         Delete.
16322         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16323         structure.
16324         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16325         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16326         (CHARTAB_SIZE_BITS_3): New macros.
16327         (chartab_size): Extern it.
16328         (struct Lisp_Char_Table): Re-design.
16329         (struct Lisp_Sub_Char_Table): New structure.
16330         (HASH_KEY, HASH_VALUE): Move from fns.c.
16331         (CHARACTERBITS): Define as 22.
16332         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16333         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16334         (GC_SUB_CHAR_TABLE_P): New macro.
16335         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16336         (code_convert_string_norecord): Deleted extern.
16337         (init_character_once, syms_of_character, init_charset)
16338         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16340         * lread.c: Include "character.h".
16341         (read_multibyte): New arg NBYTES.
16342         (read_escape): Change the meaning of returned *BYTEREP.
16343         (to_multibyte): Delete.
16344         (read1): Adjust the handling of char table and string.
16346         * print.c: Include "character.h" instead of "charset.h".
16347         (print_string): Convert 8-bit raw bytes to octal form by
16348         string_escape_byte8.
16349         (print_object): Adjust for the new multibyte form.  Print 8-bit
16350         raw bytes always in octal form.  Handle sub char table correctly.
16352         * process.c: Include "character.h" instead of "charset.h".
16353         (read_process_output, send_process): Adjust for the new
16354         code-conversion API.
16356         * puresize.h (BASE_PURESIZE): Increase.
16358         * regex.c: Include "character.h" instead of "charset.h".
16359         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16360         (regex_compile): Accept a range whose starting and ending
16361         character have different leading bytes.
16362         (analyse_first): Adjust for the above change.
16364         * search.c: Include "character.h" instead of "charset.h".
16365         (search_buffer, boyer_moore): Adjust for the new multibyte form.
16366         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16368         * syntax.c: Include "character.h" instead of "charset.h".
16369         (syntax_parent_lookup): Delete.
16370         (Fmodify_syntax_entry): Accept a cons as CHAR.
16371         (skip_chars): Adjust for the new multibyte form.
16372         (init_syntax_once): Call char_table_set_range instead of directly
16373         accessing the structure of a char table.
16375         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16376         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16377         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16378         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16380         * term.c: Include "buffer.h" and "character.h".
16381         (encode_terminal_code, write_glyphs): Adjust for the new
16382         code-conversion API.
16383         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16385         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16387         * xdisp.c: Include "character.h".
16388         (get_next_display_element): Adjust for the new multibyte form.
16389         (disp_char_vector): Adjust for the new char table structure.
16390         (decode_mode_spec_coding): Adjust for the new structure of
16391         coding system.
16392         (decode_mode_spec): Adjust for the new code-conversion API.
16394         * xfaces.c: Include "character.h" instead of "charset.h".
16395         (load_face_font): Adjust for the change of choose_face_font and
16396         FS_LOAD_FONT.
16397         (generate_ascii_font): New function.
16398         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16399         (set_font_frame_param): Adjust for the change of choose_face_font.
16400         (free_realized_face): Make it public.
16401         (free_realized_faces_for_fontset): Rename from
16402         free_realized_multibyte_face.  Free also faces realized for ASCII.
16403         (choose_face_font): Change arguments.  Adjust for the change of
16404         fontset_font_pattern and FS_LOAD_FONT.
16406         * xfns.c: Include "character.h".
16407         (x_encode_text): Adjust for the new code-conversion API.
16409         * xselect.c: Don't include "charset.h".
16410         (selection_data_to_lisp_data): Adjust for the new code conversion API.
16412         * xterm.c: Include "character.h".
16413         (x_encode_char): New argument CHARSET.  Change caller.
16414         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16415         Call ENCODE_CHAR instead of SPLIT_CHAR.
16416         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16417         CHAR_WIDTH instead of CHARSET_WIDTH.
16418         (XTread_socket): Adjust for the new code-conversion API.
16419         (x_new_font): Adjust for the change of FS_LOAD_FONT.
16420         (x_load_font): Adjust for the change of struct font.
16422 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
16424         * xfaces.c (face_at_buffer_position): Remove unused vars.
16426 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
16428         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16429         Fix overflow checking.
16431 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
16433         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16434         Cancel previous change.
16436 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
16438         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16439         ccl->eight_bit_control.  Fix check for buffer overflow.
16440         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16441         (ccl_driver): Initialize extra_bytes to 0.
16443 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
16445         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16446         return it ORed with ctrl_modifier.
16448 2008-01-29  Miles Bader  <miles@gnu.org>
16450         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16452 2008-01-28  Jason Rumney  <jasonr@gnu.org>
16454         * w32.c (stat): Don't double check for networked drive.
16456 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16458         * window.c (run_window_configuration_change_hook): New function.
16459         Code extracted from set_window_buffer.  Set the selected frame.
16460         (set_window_buffer): Use it.
16461         * window.h (run_window_configuration_change_hook): Declare.
16462         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16464         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16466 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
16468         * Makefile.in: Remove references to unused macros.
16470 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
16472         * w32.c (g_b_init_get_sid_sub_authority)
16473         (g_b_init_get_sid_sub_authority_count): New static variables.
16474         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16475         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16476         (init_user_info): Use them to retrieve uid and gid.
16477         Use 500/513, the Windows defaults, as Administrator's uid/gid.
16478         (fstat): Use pw_uid and pw_gid from the_passwd structure for
16479         st_uid and st_gid of the file.
16481 2008-01-26  Jason Rumney  <jasonr@gnu.org>
16483         * w32.c (logon_network_drive): New function.
16484         (stat): Use it.
16486 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
16488         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16489         invisible text covered with an ellipsis.
16491 2008-01-25  Richard Stallman  <rms@gnu.org>
16493         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16494         jump back to beginning.  Move some other initializations after that.
16495         (Qwindow_text_change_functions, Vwindow_text_change_functions):
16496         New variables.
16497         (syms_of_xdisp): Init them.
16499         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16501         * buffer.c (reset_buffer_local_variables):
16502         Implement `permanent-local-hook'.
16503         (Qpermanent_local_hook): New variable.
16504         (syms_of_buffer): Init and staticpro it.
16506 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
16508         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16510 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
16512         * fns.c (Fclrhash): Return TABLE.
16514 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16516         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16517         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16518         is set even without positional changes.
16519         (x_scroll_bar_clear): Set bar->redraw_needed_p.
16521         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16523 2008-01-23  Jason Rumney  <jasonr@gnu.org>
16525         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16527         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16528         the unicode range available in MULE by locale-coding-system.
16529         Improve dbcs lead byte detection.  Set event timestamp and modifiers
16530         earlier.
16532 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16534         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16535         [MAC_OSX] (init_mac_osx_environment): Initialize it.
16536         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16537         when used on child processes.
16539 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
16541         * dbusbind.c (Fdbus_method_return_internal): Rename from
16542         Fdbus_method_return.
16543         (Fdbus_unregister_object): Move to dbus.el.
16544         (Fdbus_call_method, Fdbus_method_return_internal)
16545         (Fdbus_send_signal): Improve debug messages.
16547 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
16549         * undo.c (undo_inhibit_record_point): New variable.
16550         (syms_of_undo): Initialize it.
16551         (record_point): Don't record point when undo_inhibit_record_point
16552         is set.
16554 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16556         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16558         * xdisp.c (Qauto_hscroll_mode): New var.
16559         (syms_of_xdisp): Initialize it.
16560         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16561         window's buffer.
16562         (hscroll_windows): Don't check automatic_hscrolling_p here.
16564         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16565         vscroll if we're setting window-buffer to the value it already has.
16567 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
16569         * m/intel386.h: Remove references to XENIX.
16571 2008-01-17  Andreas Schwab  <schwab@suse.de>
16573         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16574         instead of HAVE_X86_64_LIB64_DIR.
16575         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16577 2008-01-17  Glenn Morris  <rgm@gnu.org>
16579         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16580         to HAVE_X86_64_LIB64_DIR.
16582 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
16584         * s/irix3-3.h:
16585         * s/irix4-0.h:
16586         * s/386-ix.h:
16587         * s/domain.h:
16588         * s/hpux9-x11r4.h:
16589         * s/hpux9shxr4.h: Remove files for systems no longer supported.
16591         * sysdep.c: Remove code containing references to symbols defined
16592         by unsupported systems.
16594 2008-01-16  Glenn Morris  <rgm@gnu.org>
16596         * coding.c (select-safe-coding-system-function): Doc fix.
16598 2008-01-15  Glenn Morris  <rgm@gnu.org>
16600         * config.in: Revert 2008-01-13 change: this is a generated file.
16602 2008-01-13  Tom Tromey  <tromey@redhat.com>
16604         * lisp.h: Fix typo.
16606 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
16608         * m/sequent-ptx.h:
16609         * m/sequent.h:
16610         * s/ptx.h:
16611         * s/ptx4-2.h:
16612         * s/ptx4.h: Remove files for systems no longer supported.
16614         * callproc.c (Fcall_process): Fix previous change.
16616 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
16618         * unexsunos4.c: Remove file, system not supported anymore.
16620         * m/mips.h:
16621         * m/intel386.h:
16622         * callproc.c:
16623         * config.in:
16624         * ecrt0.c:
16625         * emacs.c:
16626         * fileio.c:
16627         * frame.c:
16628         * getpagesize.h:
16629         * keyboard.c:
16630         * lread.c:
16631         * process.c:
16632         * puresize.h:
16633         * sysdep.c:
16634         * systty.h:
16635         * syswait.h:
16636         * unexec.c:
16637         * xdisp.c:
16638         * alloc.c: Remove code containing references to symbols defined by
16639         unsupported systems.
16641 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
16643         * coding.c (detect_coding_mask): Fix previous change.
16645 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
16647         * coding.c (detect_coding_iso2022): New arg
16648         latin_extra_code_state.  Allow Latin extra codes only
16649         when *latin_extra_code_state is nonzero.
16650         (detect_coding_mask): If there is a NULL byte, detect the encoding
16651         as UTF-16 or binary.  If Latin extra codes exist, detect the
16652         encoding as ISO-2022 only when there's no other proper encoding is
16653         found.
16655 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16657         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16658         #ifdef MAC_OS.
16660 2008-01-08  Richard Stallman  <rms@gnu.org>
16662         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16664 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
16666         * keyboard.c (parse_menu_item): Don't enclose key bindings on
16667         menu bar in parentheses.
16669 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
16671         * m/7300.h:
16672         * m/acorn.h:
16673         * m/alliant-2800.h:
16674         * m/alliant.h:
16675         * m/alliant1.h:
16676         * m/alliant4.h:
16677         * m/altos.h:
16678         * m/amdahl.h:
16679         * m/apollo.h:
16680         * m/att3b.h:
16681         * m/aviion-intel.h:
16682         * m/aviion.h:
16683         * m/celerity.h:
16684         * m/clipper.h:
16685         * m/cnvrgnt.h:
16686         * m/convex.h:
16687         * m/cydra5.h:
16688         * m/delta88k.h:
16689         * m/dpx2.h:
16690         * m/dual.h:
16691         * m/elxsi.h:
16692         * m/f301.h:
16693         * m/gould-np1.h:
16694         * m/gould.h:
16695         * m/i860.h:
16696         * m/ibmps2-aix.h:
16697         * m/ibmrt-aix.h:
16698         * m/ibmrt.h:
16699         * m/irist.h:
16700         * m/is386.h:
16701         * m/isi-ov.h:
16702         * m/mega68.h:
16703         * m/mg1.h:
16704         * m/news-r6.h:
16705         * m/news-risc.h:
16706         * m/news.h:
16707         * m/nh3000.h:
16708         * m/nh4000.h:
16709         * m/ns16000.h:
16710         * m/ns32000.h:
16711         * m/nu.h:
16712         * m/orion.h:
16713         * m/orion105.h:
16714         * m/paragon.h:
16715         * m/pfa50.h:
16716         * m/plexus.h:
16717         * m/pyramid.h:
16718         * m/pyrmips.h:
16719         * m/sh3el.h:
16720         * m/sps7.h:
16721         * m/sr2k.h:
16722         * m/stride.h:
16723         * m/sun1.h:
16724         * m/sun2.h:
16725         * m/sun3-68881.h:
16726         * m/sun3-fpa.h:
16727         * m/sun3-soft.h:
16728         * m/sun3.h:
16729         * m/sun386.h:
16730         * m/symmetry.h:
16731         * m/tad68k.h:
16732         * m/tahoe.h:
16733         * m/targon31.h:
16734         * m/tek4300.h:
16735         * m/tekxd88.h:
16736         * m/tower32.h:
16737         * m/tower32v3.h:
16738         * m/ustation.h:
16739         * m/wicat.h:
16740         * m/xps100.h:
16741         * s/cxux.h:
16742         * s/cxux7.h:
16743         * s/dgux.h:
16744         * s/dgux4.h:
16745         * s/dgux5-4-3.h:
16746         * s/dgux5-4r2.h:
16747         * s/esix.h:
16748         * s/esix5r4.h:
16749         * s/hiuxmpp.h:
16750         * s/hiuxwe2.h:
16751         * s/iris3-5.h:
16752         * s/iris3-6.h:
16753         * s/isc2-2.h:
16754         * s/isc3-0.h:
16755         * s/isc4-0.h:
16756         * s/isc4-1.h:
16757         * s/newsos5.h:
16758         * s/newsos6.h:
16759         * s/osf1.h:
16760         * s/osf5-0.h:
16761         * s/riscix1-1.h:
16762         * s/riscix12.h:
16763         * s/sco4.h:
16764         * s/sco5.h:
16765         * s/sunos4-0.h:
16766         * s/sunos4-1.h:
16767         * s/sunos413.h:
16768         * s/sunos4shr.h:
16769         * s/umax.h:
16770         * s/unipl5-2.h:
16771         * s/xenix.h:
16772         * cxux-crt0.s:
16773         * unexapollo.c:
16774         * unexconvex.c:
16775         * unexenix.c:
16776         * unexsni.c: Remove files for systems no longer supported.
16778         * m/intel386.h: Remove references to unsupported systems.
16780         * w32.c (get_emacs_configuration): Remove reference to i860.
16782         * sysdep.c: Remove dead code.
16784 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
16786         * s/rtu.h:
16787         * m/masscomp.h: Remove files.  Platform is obsolete.
16789 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
16791         * dbusbind.c (Fdbus_method_return): New function.
16792         (xd_read_message): Add the serial number to the event.
16793         (Fdbus_register_method): Activate the function.
16795 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
16797         * keyboard.c (read_key_sequence): Fix typo.
16799 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
16801         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16802         (xd_signature, xd_append_arg): Handle element type detection for
16803         empty arrays.
16804         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16805         SDATA () calls; this must be solved more general.
16806         (Fdbus_register_signal): Use SBYTES instead of strlen.
16808 2008-01-03  Magnus Henoch  <magnus@zemdatav>
16810         * dbusbind.c (xd_append_arg): Use unsigned char instead of
16811         unsigned int for byte values (necessary for big-endian platform).
16812         (Fdbus_call_method): Handle the case of no returned arguments.
16814 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
16816         * dbusbind.c (xd_read_message): Use non-static input_event struct.
16818 2007-12-31  Magnus Henoch  <mange@freemail.hu>
16820         * dbusbind.c (xd_signature): Signature of variant is just "v".
16822 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
16824         * dbusbind.c: Fix several errors and compiler warnings.
16825         Reported by Tom Tromey <tromey@redhat.com>.
16826         (XD_ERROR, XD_DEBUG_MESSAGE)
16827         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16828         (xd_append_arg): Part for basic D-Bus types rewritten.
16829         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16830         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
16831         appropriate.
16832         (xd_read_message): Return Qnil.  Don't signal an error; it is not
16833         useful during event reading.
16834         (Fdbus_register_signal): Signal an error if the check for
16835         FUNCTIONP fails.
16836         (Fdbus_register_method): New function.  The implementation is not
16837         complete, the call of the function signals an error therefore.
16838         (Fdbus_unregister_object): New function, renamed from
16839         Fdbus_unregister_signal.  The initial check signals an error, if
16840         the object is not well formed.
16842 2007-12-30  Richard Stallman  <rms@gnu.org>
16844         * textprop.c (get_char_property_and_overlay):
16845         Signal error if POSITION is out of range in a buffer.
16847 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
16849         * w32fns.c (Fx_create_frame): Make copy of frame parameters
16850         because the original parameters are in pure storage now.
16852 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16854         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16856 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
16858         * callint.c (syms_of_callint) <command-history>: Add reference to
16859         history-length in the doc string.
16861 2007-12-17  Jason Rumney  <jasonr@gnu.org>
16863         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16864         before passing as wParam.
16866 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
16868         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16869         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16870         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16871         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16872         as number.
16873         (Fdbus_call_method): Fix docstring.
16875 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
16877         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16878         New macros.
16879         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16880         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16881         Simplify.
16882         (xd_signature): New function.
16883         (xd_append_arg): Compute also signatures.  Major rewrite.
16884         (xd_retrieve_arg): Make debug messages friendly.
16885         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16886         Check for signatures of arguments.
16888 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
16890         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16891         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16892         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16893         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16894         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16895         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16896         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16897         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16898         (xd_retrieve_value): Remove.  Functionality included in ...
16899         (xd_append_arg): New function.
16900         (Fdbus_call_method, Fdbus_send_signal): Apply it.
16902 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
16904         * dbusbind.c (top): Include <stdio.h>.
16905         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16906         dbus_message_new_method_call and dbus_message_new_signal.
16907         (Fdbus_register_signal): Rename unique_name to uname.
16908         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
16909         non-existing unique name.  Fix typos in matching rule.  Return an
16910         object which is useful in Fdbus_unregister_signal.
16911         (Fdbus_unregister_signal): Reimplementation, in order to remove
16912         only the corresponding entry.
16913         (Vdbus_registered_functions_table): Change the order of entries.
16914         Apply these changes in xd_read_message and Fdbus_register_signal.
16916 2007-12-16  Andreas Schwab  <schwab@suse.de>
16918         * fileio.c (Finsert_file_contents): Fix overflow check to not
16919         depend on undefined integer overflow.
16921 2007-12-14  Jason Rumney  <jasonr@gnu.org>
16923         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16924         for characters above 127.
16926 2007-12-13  Jason Rumney  <jasonr@gnu.org>
16928         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16929         before dereferencing array.
16930         (lookup_vk_code): Remove zero comparison.
16932 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
16934         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16935         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16936         Use `unsigned int' instead of `uint'.
16937         (xd_read_message, Fdbus_register_signal): Split expressions into
16938         multiple lines before operators "&&" and "||", according to the
16939         GNU Coding Standards.
16941 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
16943         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16945 2007-12-12  Juri Linkov  <juri@jurta.org>
16947         * buffer.c (Frename_buffer): In interactive spec replace
16948         `read-buffer' with `read-string' that uses `buffer-name-history'
16949         as history, and the current buffer's name as default.
16951 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16953         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16954         manipulating the backtrace manually.
16955         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16956         (struct backtrace, backtrace_list): Remove.
16957         (command_loop_1): Remove dead var `no_direct'.
16959         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16960         preserve non-built-in buffer-local variables.
16961         (Fkill_all_local_variables): Don't re-create&re-set permanent
16962         buffer-local variables.
16964 2007-12-09  Juri Linkov  <juri@jurta.org>
16966         * buffer.c (Frename_buffer): Change interactive spec from "s" to
16967         Lisp code that uses `read-buffer' with current buffer as default.
16969 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
16971         * dbusbind.c (xd_read_message): Generate an event for every
16972         registered handler.  There might be several handlers registered
16973         for the same signal.
16974         (Fdbus_register_signal): Don't overwrite a registration for the
16975         same signal.  Add a new registration if handlers are different.
16976         (Vdbus_registered_functions_table): Rework doc string.
16978 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
16980         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16981         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16982         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16983         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16984         Unify argument lists.
16985         (xd_read_message, Fdbus_register_signal): Reorder and extend event
16986         arguments and hash table keys.  Use unique name for service.
16987         (Fdbus_unregister_signal): Remove checks.
16988         (Vdbus_registered_functions_table): Fix doc string.
16990 2007-12-05  Magnus Henoch  <mange@freemail.hu>
16992         * process.c (make_process): Initialize pty_flag to 0.
16994 2007-12-05  Jason Rumney  <jasonr@gnu.org>
16996         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16997         specified XBMs.
16999 2007-12-05  Richard Stallman  <rms@gnu.org>
17001         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17003 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17005         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17006         New variable.
17007         (mac_try_close_socket) [MAC_OSX]: New function.
17008         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17009         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
17011         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17012         Use mac_try_close_socket.
17014 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17016         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
17017         reloc_base.
17018         (copy_dysymtab): Compute relocation base here.
17019         (rebase_reloc_address) [__ppc64__]: New function.
17020         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17021         changed.
17023 2007-12-05  Jason Rumney  <jasonr@gnu.org>
17025         * w32proc.c (sys_spawnve): Quote args with wildcards.
17027 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17029         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17030         __objc_* sections.
17031         (unrelocate) [_LP64]: Set relocation base to address of data segment.
17033 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
17035         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17036         Move check for Vdbus_registered_functions_table to
17037         xd_read_queued_messages.
17038         (xd_read_queued_messages): Protect xd_read_message calls by
17039         internal_condition_case_1.
17041 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
17043         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17044         Qdbus_system_bus and Qdbus_session_bus, respectively.
17045         (Vdbus_intern_symbols): Remove.
17046         (Vdbus_registered_functions_table): New hash table.
17047         (XD_SYMBOL_INTERN_SYMBOL): Remove.
17048         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17049         Rewrite in order to manage registered functions by hash table
17050         Vdbus_registered_functions_table.
17052 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
17054         * xterm.c: Update URL to Window Manager Specification in comment.
17056 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
17058         * config.in (HAVE_DBUS): Add.
17060         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17061         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17062         (obj): Add $(DBUS_OBJ).
17063         (LIBES): Add $(DBUS_LIBS).
17064         (dbusbind.o): New target.
17066         * dbusbind.c: New file.
17068         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17070         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17071         (Qdbus_event): New Lisp symbol.
17072         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17073         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17074         (keys_of_keyboard): Define dbus-event.
17076         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17078 2007-12-01  Richard Stallman  <rms@gnu.org>
17080         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17082 2007-11-30  Jason Rumney  <jasonr@gnu.org>
17084         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17085         (w32con_reset_terminal_modes): Clear screen buffer.
17086         (w32_face_attributes): Don't use color indexes that are out of range.
17087         Only reverse the default colors.
17089         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17090         WINDOWSNT.
17092         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17094 2007-11-29  Jason Rumney  <jasonr@gnu.org>
17096         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17097         (w32_face_attributes): Use Vtty_defined_color_alist to determine
17098         if the terminal colors are initialized.
17099         (unspecified_fg, unspecified_bg): Remove unused declarations.
17101 2007-11-29  Andreas Schwab  <schwab@suse.de>
17103         * keyboard.c (apply_modifiers): Fix typo.
17105 2007-11-29  Richard Stallman  <rms@gnu.org>
17107         * keymap.c (Fcurrent_local_map): Doc fix.
17109 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17111         * s/gnu-kfreebsd.h: New file.
17113 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
17115         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17116         Don't cast redundantly.
17118         * keyboard.c (KEY_TO_CHAR): New macro.
17119         (parse_modifiers, apply_modifiers): Accept integer arguments.
17120         (read_key_sequence): Use them to unify the "shift->unshift" mapping
17121         for chars and symbol keys.
17122         After doing such remapping, apply function-key-map again.
17124 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
17126         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17127         compiled anymore.
17129 2007-11-26  Andreas Schwab  <schwab@suse.de>
17131         * process.c (list_processes_1): Fix indentation level of the
17132         command column.
17134 2007-11-23  Andreas Schwab  <schwab@suse.de>
17136         * editfns.c (Fformat): Handle %c specially since it requires the
17137         argument to be of type int.
17139 2007-11-23  Markus Triska  <markus.triska@gmx.at>
17141         * emacs.c (main): Call init_editfns before init_process, since
17142         init_process sets Vprocess_connection_type depending on OS release.
17144 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
17146         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17147         (find_symbol_value): Use do_symval_forwarding.
17149         * data.c (set_internal): Set the value in the `cons-cell' (for
17150         Buffer_Local_values) not only for frame-local variables.
17152 2007-11-22  Andreas Schwab  <schwab@suse.de>
17154         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17155         values to sprintf.
17156         * keymap.c (Fsingle_key_description): Likewise.
17157         * print.c (print_object): Likewise.
17159 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
17161         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17162         file for image is nil.
17164 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
17166         * term.c: Include stdarg.h.
17167         (fatal): Implement using varargs.
17168         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
17170 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
17172         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17173         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17174         Update call to buffer_slot_type_mismatch.
17175         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17176         (buffer_slot_type_mismatch): Update.
17177         * buffer.c (buffer_local_types): Remove.
17178         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17179         (defvar_per_buffer): Set the type in the buffer_objfwd.
17181 2007-11-21  Jason Rumney  <jasonr@gnu.org>
17183         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17184         CreateFileMapping returns NULL on failure.
17186 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
17188         * search.c (Fset_match_data): Remove the `evaporate' feature.
17189         (unwind_set_match_data): Don't use the `evaporate' feature.
17191 2007-11-21  Jason Rumney  <jasonr@gnu.org>
17193         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17195         * w32console.c (w32con_write_glyphs): Remove unused variables.
17197 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
17199         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17201         * s/darwin.h (MULTI_KBOARD): Remove.
17203         * macfns.c (x_create_tip_frame, Fx_create_frame)
17204         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17206 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
17208         * buffer.c (Fbuffer_local_value): Remove redundant test.
17209         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17210         than in `current-buffer' to match the comment.
17211         Do the swap using swap_in_global_binding.
17213         * data.c (store_symval_forwarding, set_internal):
17214         * eval.c (specbind): Remove dead code.
17216         * coding.c (detect_coding, Fupdate_coding_systems_internal):
17217         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17218         Since we do not want to see internal Lisp_*fwd objects here.
17220 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
17222         * sysdep.c (init_system_name): Use getaddrinfo if available.
17224         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17225         (x_scroll_bar_note_movement): start, end, with, height in struct
17226         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17228 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
17230         * puresize.h (BASE_PURESIZE): Increase to 1190000.
17232 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
17234         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17235         This undoes Richard's change of 14-Oct-2002.
17237         * alloc.c (allocate_other_vector):
17238         * lisp.h (allocate_other_vector): Remove.
17240         * window.c (struct save_window_data): Move non-lisp data to the end
17241         and make it `int' rather than Lisp_Object.
17242         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17243         Done wrap/unwrap integer values.
17244         (Fset_window_configuration, compare_window_configurations):
17245         Update use of fields to their new types.
17247         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17248         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
17249         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17250         (SET_SCROLL_BAR_X_WINDOW): Remove.
17251         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17252         Access the new x_window field directly.
17253         * xterm.c (x_scroll_bar_create): Use a pseudovector.
17254         Don't wrap/unwrap integers into Lisp_Objects.
17255         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17256         (x_scroll_bar_report_motion):
17257         Don't wrap/unwrap integers into Lisp_Objects.
17258         (x_term_init): Use SDATA.
17259         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17260         (x_scroll_bar_set_handle, x_scroll_bar_remove)
17261         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17262         (x_scroll_bar_report_motion, x_scroll_bar_clear):
17263         * xfns.c (x_set_background_color):
17264         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17265         Access the new x_window field directly.
17267         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17268         (allocate_pseudovector): Make non-static.
17270         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17271         (allocate_pseudovector): Declare.
17272         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17274 2007-11-15  Andreas Schwab  <schwab@suse.de>
17276         * editfns.c (Fformat): Correctly format EMACS_INT values.
17277         Also take precision into account when formatting an integer.
17279         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17281 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
17283         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17284         (syms_of_keyboard): Defsubr it.
17286         * data.c (swap_in_global_binding): Fix longstanding bug where
17287         store_symval_forwarding was not called with the right second argument,
17288         thus causing objfwd-ing from being dropped.
17290 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
17292         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17293         (Fx_display_pixel_height, Fx_display_planes)
17294         (Fx_display_color_cells, Fx_server_max_request_size)
17295         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17296         (Fx_display_visual_class, Fx_display_save_under):
17297         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17298         (Fx_display_pixel_height, Fx_display_planes)
17299         (Fx_display_color_cells, Fx_server_max_request_size)
17300         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17301         (Fx_display_mm_height, Fx_display_mm_width)
17302         (Fx_display_backing_store, Fx_display_visual_class)
17303         (Fw32_select_font, Fx_display_save_under):
17304         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17305         (Fx_display_pixel_height, Fx_display_planes)
17306         (Fx_display_color_cells, Fx_server_max_request_size)
17307         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17308         (Fx_display_save_under): Fix typos in docstrings.
17310 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
17312         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17313         corresponding to deleted entries; they are an implementation detail.
17314         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17315         Remove variables.
17316         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17317         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17318         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17319         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17320         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17321         (Fw32_define_rgb_color, Fw32_load_color_file)
17322         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17323         Fix typos in docstrings.
17324         (Fx_server_version): Reflow docstring.
17325         (Fw32_shell_execute): Doc fixes.
17327 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
17329         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17330         if w32_parse_hot_key returned nil.
17332 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17334         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17336 2007-11-09  Jason Rumney  <jasonr@gnu.org>
17338         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17340         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17342         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17343         Remove W32_SCROLL_BAR_CLICK_EVENT.
17345         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17346         Add MULTIMEDIA_KEY_EVENT.
17348         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17349         (lispy_multimedia_keys) [WINDOWSNT]: New array.
17350         (make_lispy_event) [WINDOWSNT]: Use it to translate
17351         MULTIMEDIA_KEY_EVENT.
17353         * w32term.h (WM_APPCOMMAND): Define if not already.
17354         (GET_APPCOMMAND_LPARAM): Likewise.
17356         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17357         WM_APPCOMMAND.
17359         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17360         (syms_of_w32fns): Export and initialize it.
17361         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17363 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
17365         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17366         twice.
17368         * xdisp.c (handle_face_prop): Fix last change.
17370 2007-11-09  Richard Stallman  <rms@gnu.org>
17372         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17373         not just for after-strings and before-strings.
17374         Call face_for_overlay_string and pass the overlay to it.
17375         (handle_display_prop): Determine whether property came from an overlay.
17376         Pass OVERLAY arg to handle_single_display_spec.
17377         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17378         (load_overlay_strings): Fill in it->string_overlays.
17379         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17381         * xfaces.c (face_for_overlay_string): Function renamed from
17382         face_at_buffer_position_no_overlays, and add arg OVERLAY.
17384         * dispextern.h (struct it): New elt string_overlays.
17385         New elt from_overlay, also in stack.
17386         Rearrange a few elements.
17387         (face_for_overlay_string): Decl renamed from
17388         face_at_buffer_position_no_overlays, and add argument.
17390 2007-11-09  Richard Stallman  <rms@gnu.org>
17392         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17393         to get the base face for an overlay string.
17395         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17397         * xfaces.c (face_at_buffer_position_no_overlays): New function.
17399         * xdisp.c (handle_stop): Move some code out of loop.
17401 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17403         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17404         Fix conversion from Lisp object to ATSUFontID.
17406 2007-11-09  Jason Rumney  <jasonr@gnu.org>
17408         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17410 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17412         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17413         Don't assume regions are aligned to page boundary.
17414         (print_load_command_name): Add LC_UUID if defined.
17416 2007-11-09  Richard Stallman  <rms@gnu.org>
17418         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17420 2007-11-07  Jason Rumney  <jasonr@gnu.org>
17422         * s/windows95.h: Remove.
17424 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
17426         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17427         abort with a message on unhandled store_type values.
17429 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
17431         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17432         Remove HAVE_X11R5 and HAVE_X11R4.
17434 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
17436         * Makefile.in: Remove references to sunfns.c and sunfns.o.
17438 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
17440         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17441         Don't set s->stippled_p here, since it has already been set by
17442         x_set_glyph_string_gc from x_draw_glyph_string.
17444 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
17446         * sunfns.c: Remove file.
17448         * m/sun386.h:
17449         * m/sun2.h:
17450         * m/sparc.h: Remove Sun windows code.
17452 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
17454         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17455         (init_keyboard): Set current_kboard's window-system to nil.
17456         (tty_read_avail_input): Typo.
17457         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17459 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
17461         * s/usg5-4.h:
17462         * s/usg5-3.h:
17463         * s/ptx.h:
17464         * m/is386.h:
17465         * m/ibmps2-aix.h:
17466         * Makefile.in: Remove all mentions of X10.
17468         * dispnew.c (syms_of_display): Don't mention version 10.
17470 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
17472         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17473         ($(BLD)/abbrev.$(O)): Remove.
17475 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
17477         Rewrite abbrev.c in Elisp.
17478         * image.c (Qcount): Don't declare as extern.
17479         (syms_of_image): Initialize and staticpro `Qcount'.
17480         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17481         * emacs.c (main): Don't call syms_of_abbrev.
17482         * Makefile.in (obj): Remove abbrev.o.
17483         (abbrev.o): Remove.
17484         * abbrev.c: Remove.
17486 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
17488         * window.c (window_min_size_2): Don't count header-line.
17490 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
17492         * frame.h (struct frame): Move all bit fields after the first bit
17493         field to take advantage of the available space.  Group all the
17494         chars together to reduce wasted space due to padding.
17496 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
17498         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17500         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17501         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17502         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17503         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17504         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17505         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17506         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17507         (last_marked, mark_object_loop_halt): Make static.
17509         * frame.c (syms_of_frame) <delete-frame-functions>:
17510         Fix typo in docstring.
17512 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
17514         * w32.c (init_environment): Fix tiny memory leak.
17515         (w32_get_resource): Remove unused variable `ok'.
17517 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
17519         Make `window-system' into a keyboard-local variable (rather than
17520         frame-local as done originally by multi-tty).
17522         * keyboard.h (struct kboard): Add Vwindow_system.
17523         * keyboard.c (init_kboard): Set a default for Vwindow_system.
17524         (mark_kboards): Mark Vwindow_system.
17526         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17527         (init_display): Don't set the obsolete `window-system' frame-param.
17529         * xterm.c (x_term_init):
17530         * w32term.c (w32_create_terminal):
17531         * term.c (init_tty): Set Vwindow_system.
17532         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17533         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
17535         * xfns.c (Fx_create_frame, x_create_tip_frame):
17536         * w32fns.c (Fx_create_frame, x_create_tip_frame):
17537         * macfns.c (Fx_create_frame):
17538         Don't set the obsolete `window-system' frame-param.
17540         * frame.h (Qwindow_system): Remove.
17541         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
17542         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17544 2007-10-24  Richard Stallman  <rms@gnu.org>
17546         * frame.c (x_figure_window_size): For fullscreen case,
17547         set USPosition | PPosition without clobbering rest of window_prompting.
17549         * keyboard.c (Fcurrent_idle_time): Doc fix.
17551         * print.c (Fwith_output_to_temp_buffer): Doc fix.
17553 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
17555         * process.c (unwind_request_sigio): Only define if __ultrix__.
17557         * callproc.c (child_setup): Remove spurious *.
17559         * lisp.h (Fget_text_property): Declare.
17560         (have_menus_p): Declare it here rather than in sys-dep header files.
17561         * macterm.h (have_menus_p):
17562         * msdos.h (have_menus_p):
17563         * xterm.h (have_menus_p): Remove.
17565         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17566         (Fmake_variable_frame_local): Just check the variable's const-ness
17567         rather than checking nil or t.
17569 2007-10-22  Jason Rumney  <jasonr@gnu.org>
17571         * w32fns.c: Include math.h.
17572         (w32_abort): Declaration moved to nt/config.nt.
17574         * s/ms-w32.h (HAVE_STDLIB_H): Define.
17575         (abort): Redefinition moved to nt/config.nt.
17577         * m/windowsnt.h: Remove.
17579 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
17581         * emacs.c (Fdump_emacs): Fix typo in message.
17582         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17583         <installation-directory>: Reflow docstring.
17585 2007-10-22  Juri Linkov  <juri@jurta.org>
17587         * minibuf.c: Allow minibuffer default to be a list of default values.
17588         With empty input use the first element of this list as returned default.
17589         (string_to_object)
17590         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17591         (read_minibuf): If defalt is cons, set histstring to its car.
17592         (Fread_string): If default_value is cons, set val to its car.
17593         (Fread_buffer): If def is cons, use its car.
17594         (Fcompleting_read): If defalt is cons, set val to its car.
17596 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
17598         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17600 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
17602         * doc.c (Fdocumentation): Check for advice in all cases.
17604 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
17606         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17608 2007-10-19  Richard Stallman  <rms@gnu.org>
17610         * doc.c (Fdocumentation): Check for and handle an advised function.
17612 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
17614         * process.c (Fset_process_filter): Doc fix.
17616 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
17618         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17619         which caused key-translation-map to applied repeatedly (thus breaking
17620         double-mode).
17622 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
17624         * xselect.c (x_own_selection, x_handle_selection_clear)
17625         (x_clear_frame_selections):
17626         * w32menu.c (list_of_panes, list_of_items):
17627         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17628         * textprop.c (validate_plist, interval_has_all_properties)
17629         (interval_has_some_properties, interval_has_some_properties_list)
17630         (add_properties, text_property_list):
17631         * process.c (Fget_buffer_process, list_processes_1, status_notify):
17632         * minibuf.c (Fassoc_string):
17633         * macselect.c (x_own_selection, x_clear_frame_selections)
17634         (Fx_disown_selection_internal):
17635         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17636         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17638 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
17640         * process.c: Link to libs for calling res_init() if available.
17641         (Fmake_network_process): Call res_init() before getaddrinfo or
17642         gethostbyname, if possible.
17644 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
17646         * lread.c (read1): Set pvectype for char_tables.
17648         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17649         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17650         Add type checks.
17651         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17653         * alloc.c (free_misc): Use XMISCTYPE.
17654         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17656 2007-10-17  Glenn Morris  <rgm@gnu.org>
17658         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17659         (syms_of_minibuf): Add Qcompletion_ignore_case.
17660         * dired.c (Qcompletion_ignore_case): Change to external.
17661         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17662         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17663         (Fread_file_name): Use it rather than intern'ing.
17665         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17666         (Fread_coding_system): Ignore case of user input.
17668 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17670         * xdisp.c (handle_display_prop): Ignore display specs after
17671         replacing one when string text is being replaced.
17672         (handle_single_display_spec): Pretend as if characters with display
17673         property haven't been consumed only when buffer text is being replaced.
17675 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
17677         * xfns.c (Fx_create_frame, Fx_display_list):
17678         * window.c (window_fixed_size_p, enlarge_window)
17679         (shrink_window_lowest_first):
17680         * macterm.c (init_font_name_table):
17681         * macfns.c (Fx_create_frame, Fx_display_list):
17682         * lread.c (close_load_descs):
17683         * keyboard.c (read_char_x_menu_prompt):
17684         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17685         * coding.c (code_convert_region_unwind): Test the type of an object
17686         rather than just !NILP before extracting data from it.
17688         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17690         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17691         (XMISCANY): New macro.
17692         (XMISCTYPE): Use it.
17693         (struct Lisp_Misc_Any): New type.
17694         (union Lisp_Misc): Use it.
17695         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17696         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17697         (find_symbol_value, set_internal, default_value, Fset_default)
17698         (Fmake_variable_buffer_local, Fmake_local_variable)
17699         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17700         (Flocal_variable_if_set_p, Fvariable_binding_locus):
17701         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17702         * alloc.c (allocate_buffer): Set the size and tag.
17703         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17704         Use XMISCANY.
17705         (die): Follow the GNU convention for error messages.
17706         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17707         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17708         tag any more.
17709         (set_buffer_internal_1):
17710         * frame.c (store_frame_param):
17711         * eval.c (specbind):
17712         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17714         * doc.c (Fsnarf_documentation): Simplify.
17716 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
17718         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17719         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17721 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
17723         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17725 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
17727         * eval.c (do_autoload): Don't save autoloads.
17729         * data.c (Ffset): Save autoload of the function being set.
17731 2007-10-07  John Paul Wallington  <jpw@pobox.com>
17733         * xfns.c (x_create_tip_frame): Set the `display-type' frame
17734         parameter before setting up faces.
17736 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
17738         * ccl.c (Fregister_code_conversion_map):
17739         * keyboard.c (append_tool_bar_item): Reformat last change.
17741         * lisp.h (eabs): Rename from `abs'.  All callers changed.
17743 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
17745         * buffer.c (add_overlay_mod_hooklist):
17746         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17747         * fontset.c (make_fontset):
17748         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17749         (append_tool_bar_item):
17750         * macmenu.c (grow_menu_items):
17751         * w32menu.c (grow_menu_items):
17752         * xmenu.c (grow_menu_items): Use larger_vector.
17754 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
17756         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17757         selected frame'' on MSDOS).
17759 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
17761         * frame.c (Qexplicit_name): New variable.
17762         (x_report_frame_params): Report it in parameter alist.
17763         (syms_of_frame): Intern and staticpro it.
17765 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
17767         * macfns.c (x_create_tip_frame): Set terminal for frame.
17769 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17771         * frame.c (Qenvironment): Remove.
17772         (syms_of_frame) <Qenvironment>: Don't initialize.
17773         (Fdelete_frame): Don't treat the `environment' param specially.
17774         * frame.h (Qenvironment): Don't declare.
17775         * callproc.c (set_initial_environment): Don't set unused frame param.
17777         * frame.c (Fframe_with_environment): Remove.
17778         (syms_of_frame) <Sframe_with_environment>: Don't declare.
17780         * lisp.h (Fframe_with_environment): Don't declare.
17782 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
17784         * indent.c (indent_tabs_mode, last_known_column)
17785         (last_known_column_modified): Make static.
17786         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17788 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
17790         * puresize.h (BASE_PURESIZE): Increase to 1170000.
17792 2007-10-09  Jason Rumney  <jasonr@gnu.org>
17794         * w32term.c (x_set_window_size): Disable code that attempts to tell
17795         Lisp code about a size change before it actually happens.
17797 2007-10-09  Richard Stallman  <rms@gnu.org>
17799         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17800         return HANDLED_RETURN.
17802 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
17804         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17805         when there's an unread command event.
17807         * frame.c (focus_follows_mouse): Move here from frame.el to allow
17808         window autoselection act appropriately when leaving selected frame.
17809         (syms_of_frame): Initialize focus_follows_mouse.
17810         * frame.h (focus_follows_mouse): Extern it.
17811         * macterm.c (XTread_socket): When focus_follows_mouse is nil
17812         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17813         * msdos.c (dos_rawgetc): Likewise.
17814         * w32term.c (w32_read_socket): Likewise.
17815         * xterm.c (handle_one_xevent): Likewise.
17816         * xdisp.c (syms_of_xdisp): In doc-string of
17817         mouse-autoselect-window mention focus-follows-mouse.
17819 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17821         * macterm.c (mac_load_query_font): Fix missing return value.
17822         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17823         Add BLOCK_INPUT.
17825 2007-10-08  Richard Stallman  <rms@gnu.org>
17827         * xdisp.c (get_window_cursor_type): Implement documented behavior
17828         for cursor-in-non-selected-windows = t.
17830 2007-10-08  Jason Rumney  <jasonr@gnu.org>
17832         * w32.c (w32_get_resource): Always close registry keys.
17834 2007-10-08  Jason Rumney  <jasonr@gnu.org>
17836         * makefile.w32-in (LIBS): Add COMCTL32.
17838         * w32fns.c (globals_of_w32fns): Init common controls.
17840 2007-10-08  Richard Stallman  <rms@gnu.org>
17842         * image.c (our_memory_buffer): Rename from omfib_buffer.
17844 2007-10-08  Richard Stallman  <rms@gnu.org>
17846         * buffer.c (Foverlays_at): Doc fix.
17848 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
17850         * fns.c (Fplist_put): Preserve uneven tail data.
17852 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
17854         * termhooks.h (enum event_kind): Remove trailing comma.
17856         * frame.h (enum): Remove trailing comma.
17858 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
17860         * w32proc.c (delete_child): Don't terminate threads of zombies.
17862 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
17864         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17866         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17867         last-repeatable-command.
17868         (init_kboard): Initialize Vlast_repeatable_command.
17869         (command_loop_1): Set it to real_this_command unless that was
17870         bound to an input event.
17871         (mark_kboards): Mark it.
17873 2007-10-08  Richard Stallman  <rms@gnu.org>
17875         * eval.c (condition-case): Doc fix.
17877 2007-10-08  Masatake YAMATO  <jet@gyve.org>
17879         * xfaces.c (tty_supports_face_attributes_p): Fix code
17880         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17881         was copied and not edited.
17883 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
17885         Add new `input-decode-map' keymap and use it for terminal
17886         escape sequences.
17887         * keyboard.h (struct kboard): Add Vinput_decode_map.
17888         Remove Vlocal_key_translation_map.
17889         * keyboard.c (read_key_sequence): Add support for input-decode-map.
17890         (init_kboard): Init input-decode-map.
17891         Replace local-key-translation-map back with key-translation-map.
17892         (syms_of_keyboard): Declare input-decode-map.
17893         Remove local-key-translation-map.  Update docstrings.
17894         (mark_kboards): Mark Vinput_decode_map.
17895         Don't mark Vlocal_key_translation_map.
17896         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17897         Replace local-key-translation-map back with key-translation-map.
17898         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17899         Bind in input-decode-map rather than function-key-map.
17901         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17902         This was made redundant by the previous introduction of XSETPVECTYPE.
17904 2007-10-09  Richard Stallman  <rms@gnu.org>
17906         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17908 2007-09-29  Richard Stallman  <rms@gnu.org>
17910         * eval.c (internal_condition_case_2, internal_condition_case_1)
17911         (internal_condition_case): Reenable abort if x_catching_errors ()
17912         to see if that really happens and why.
17914 2007-10-06  Andreas Schwab  <schwab@suse.de>
17916         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17918 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
17920         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17922 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
17924         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17926 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
17928         * window.h (struct window):
17929         * window.c (struct save_window_data, struct saved_window):
17930         * termhooks.h (struct terminal):
17931         * process.h (struct Lisp_Process):
17932         * frame.h (struct frame):
17933         * buffer.h (struct buffer):
17934         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17935         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17936         The size field of (pseudo)vectors is now unsigned.
17937         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17939         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17940         Turn `count' into an integer.
17942         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17943         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17944         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17945         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17946         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17948         * alloc.c (allocate_pseudovector): New fun.
17949         (ALLOCATE_PSEUDOVECTOR): New macro.
17950         (allocate_window, allocate_terminal, allocate_frame)
17951         (allocate_process): Use it.
17952         (mark_vectorlike): New function.
17953         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17954         (mark_terminals): Use it.
17955         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17956         (Fmake_byte_code): Use XSETPVECTYPE.
17958         * frame.c (Fframe_parameters): Minor simplification.
17960         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17962         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17964         * buffer.c (Fget_buffer_create, init_buffer_once):
17965         * lread.c (defsubr):
17966         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17968         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17969         defined differently in the m/*.h files.
17970         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17971         (XSETPVECTYPE): New macro.
17972         (XSETPSEUDOVECTOR): Use it.
17974         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17975         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17977         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17978         * lread.c (defvar_per_buffer):
17979         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17981         * window.c (candidate_window_p): Only consider as visible frames that
17982         are on the same terminal.
17984         * m/ibms390x.h (MARKBIT): Remove unused macro.
17986 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
17988         * lread.c (Fload): Fix typo in docstring.
17990 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
17992         * floatfns.c (Fexpt): Manually check for overflows, so that a power
17993         of a non-zero value can't yield zero.
17995 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
17997         * term.c (term_clear_mouse_face, term_mouse_highlight)
17998         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18000         * print.c (safe_debug_print): Use XHASH.
18002         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18003         Lisp elements such as tags.
18004         (XHASH): New macro.
18005         (EQ): Use it.
18006         (SREF, SSET, STRING_COPYIN): Use SDATA.
18007         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18009         * alloc.c (mark_terminal): Remove left-over declaration.
18010         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18011         (allocate_vectorlike): Remove type argument.  Adjust callers.
18012         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18013         Only handle the one remaining MEM_TYPE_VECTORLIKE.
18015         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18016         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18017         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18018         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18019         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18020         Use them.
18022         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18023         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18024         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18026 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
18028         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18029         loaded by default.
18031 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
18033         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18034         on this tty.
18035         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18037         * term.c (mouse_face_window): Rename from Qmouse_face_window.
18038         Update all users.
18039         (handle_one_term_event): Use Gpm_DrawPointer.
18040         (Fgpm_mouse_start): Rename from Fterm_open_connection.
18041         Signal errors instead of returning nil.  Always return nil.
18042         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18043         Make it a noop if gpm-mouse was not activated.
18044         (syms_of_term): Update names.
18046 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
18048         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18049         (init_sys_modes): Check that gpm_tty is the current tty.
18051         * alloc.c (allocate_terminal): Set the vector size to only count the
18052         lisp fields.  Initialize those to nil.
18053         (mark_object): Don't treat terminals specially.
18054         (mark_terminal): Remove.
18055         (mark_terminals): Use mark_object instead.
18057         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18058         the GC to the beginning.
18060         * indent.h:
18061         * indent.c: Use EMACS_INT for ints coming from Elisp data.
18063         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18065 2007-09-25  Jason Rumney  <jasonr@gnu.org>
18067         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18069         * w32console.c (create_w32cons_output): Remove.
18071         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18073         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18074         (reset_sys_modes): Use reset_terminal_modes_hook.
18076 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
18078         * eval.c (do_autoload): Don't output any message.
18080 2007-09-24  Juri Linkov  <juri@jurta.org>
18082         * emacs.c (standard_args): Change priority of "--no-splash"
18083         from 40 to 3.  Add "--no-desktop" with the same priority.
18085 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
18087         * alloc.c (gc_sweep): Check cons cell mark bits word by word
18088         and optimize the case where they are all 1.
18090 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
18092         * lisp.h (abs): Define if not defined.
18093         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18094         Don't define `abs', since it's defined in lisp.h.
18096 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
18098         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
18099         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18100         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18101         (init_tty): Use DEV_TTY instead of "/dev/tty".
18102         [WINDOWSNT]: No need to protect from NAME arg being null.
18104 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
18106         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18107         up the tty state.
18109 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
18111         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
18112         (gpm_tty): Change its type.
18113         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
18114         (gpm_tty): Change its type and initialize it.
18115         (Fterm_open_connection): Check the frame is indeed a tty.
18116         Use the new gpm_tty.
18117         (Fterm_close_connection): Use the new gpm_tty.
18118         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18119         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18121 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
18123         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18124         underline_color, to draw strike-through.
18126 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
18128         * lisp.h (allocate_terminal): Declare.
18130         * window.c (candidate_window_p): Consider frames that are being placed
18131         by the user as somewhere between visible and iconified.
18132         (window_loop): Prefer windows on the current frame.
18133         (Fselect_window): Move the use of select-frame to the beginning so we
18134         can just delegate all the work (it'll call us back anyway).
18136         * frame.c (Qdisplay_environment_variable):
18137         * frame.h (Qdisplay_environment_variable): Delete.
18139         * .gdbinit (xbacktrace): Print the arg's address rather than the value
18140         of the first arg, since that value may be a union.
18142         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18143         parameter rather than Qdisplay_environment_variable.  If all else
18144         fails, look for DISPLAY in initial-environment.
18146 2007-09-21  Glenn Morris  <rgm@gnu.org>
18148         * Makefile.in (emacstool): Remove target.
18149         (lisp, shortlisp): Remove termdev.elc.
18151 2007-09-21  Markus Triska  <markus.triska@gmx.at>
18153         * xterm.c (x_delete_display): Compile session management conditionally.
18155 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
18157         * callproc.c (getenv_internal_1): New function.
18158         (getenv_internal): Use it.
18159         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
18161         * terminal.c (get_terminal): Don't accept ints to represent terminals.
18162         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18163         (Fset_terminal_parameter): Work with dead terminals as well.
18164         (Fmodify_terminal_parameters): Remove.
18166         * terminal.c (get_terminal): Handle terminals.
18167         Make sure the terminal returned is live.
18168         (create_terminal): Use allocate_terminal.
18169         (mark_terminals): Move to alloc.c.
18170         (delete_terminal): Use terminal->name as liveness status.
18171         NULL out fields after freeing their contents.
18172         Don't deallocate the object.
18173         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
18174         rather than an int.
18175         (Fterminal_live_p): Accept non-integer arguments.
18176         (Fterminal_list): Return terminal objects rather than an ints.
18178         * alloc.c (enum mem_type): New member for `terminal' objects.
18179         (allocate_terminal): New function.
18180         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18181         Handle terminals.
18182         (mark_terminal): New fun.
18183         (mark_terminals): Move from terminal.c.
18185         * term.c (get_tty_terminal): Don't treat output_initial specially.
18186         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18187         (delete_tty): Use terminal->name as liveness status.
18189         * termhooks.h (struct terminal): Make it into a pseudovector.
18190         Remove `deleted' replaced by checking `name's nullness.
18192         * print.c (print_object): Handle terminals.
18194         * lisp.h (enum pvec_type): New `terminal' pseudovector.
18195         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18197         * frame.c (make_terminal_frame):
18198         * keyboard.c (tty_read_avail_input):
18199         * w32term.c (x_delete_terminal):
18200         * xfns.c (Fx_create_frame, x_create_tip_frame):
18201         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18203 2007-09-20  Glenn Morris  <rgm@gnu.org>
18205         * process.c (Fmake_network_process): Doc fix.
18207 2007-09-19  Jason Rumney  <jasonr@gnu.org>
18209         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18211 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
18213         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18214         Fix a C warning regarding variable constness.
18216         * xterm.c (handle_one_xevent): Fix a C warning.
18218 2007-09-18  Jason Rumney  <jasonr@gnu.org>
18220         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18222 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
18224         * gtkutil.c (gdpy_def): New variable.
18225         (xg_initialize): Initialize gdpy_def.
18226         (xg_display_close): If no other display exists, set gdpy_def to a
18227         new connection.
18229 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
18231         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18232         when we have no file name for the icon.
18233         (xg_tool_bar_expose_callback): Remove.
18234         (xg_create_tool_bar): Don't connect expose signal to
18235         xg_tool_bar_expose_callback.
18236         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18238 2007-09-16  Andreas Schwab  <schwab@suse.de>
18240         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18241         values instead of zapping them.
18243 2007-09-14  Glenn Morris  <rgm@gnu.org>
18245         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18246         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18247         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18248         scope and rename to omfib_buffer for clarity.
18249         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18251 2007-09-14  Kenichi Handa  <handa@m17n.org>
18253         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18255 2007-09-13  Jason Rumney  <jasonr@gnu.org>
18257         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18259         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18261         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18262         (mac_term_init): Call here instead, passing rif.
18264 2007-09-13  Glenn Morris  <rgm@gnu.org>
18266         * s/hpux.h: No longer define `static' as nothing.
18268 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
18270         * callint.c (Fcall_interactively): Remove unused var `fun'.
18272 2007-09-12  Romain Francoise  <romain@orebokech.com>
18274         * window.c (prefer_window_split_horizontally, display_buffer):
18275         Revert 2007-09-08 change.
18277 2007-09-12  Glenn Morris  <rgm@gnu.org>
18279         * alloca.c: Remove file.
18280         * Makefile.in (alloca): Do not undef.
18281         (allocaobj, alloca.o): Remove.
18282         (otherobj): Remove allocaobj.
18283         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18284         * regex.c (C_ALLOCA): Remove all references and code that was only
18285         used when this was defined.
18286         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18287         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18288         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18290         * Makefile.in (SOURCES, unlock, relock): Delete.
18292         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18293         (menu_grab_callback): All uses changed.
18295         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18296         (x_reply_selection_request): All uses changed.
18298 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
18300         * lread.c (load_warn_old_style_backquotes): Change message to look
18301         better when it appears in the middle of byte-compiler messages.
18303 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
18305         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18307         * xterm.c (x_create_terminal): Add comment.
18309         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18311 2007-09-10  Richard Stallman  <rms@gnu.org>
18313         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18315 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
18317         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18318         (DEFUN): Document `intspec', use it instead of `prompt'.
18320         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18322         * data.c (Finteractive_form): If the interactive specification starts
18323         with a `(', use it as a Lisp form.
18325         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18326         name and file modes.
18328         * callint.c (Fcall_interactively): Comment fixes.
18330 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
18332         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18333         and compiled functions.
18335 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
18337         * window.c (prefer_window_split_horizontally): New variable.
18338         (display_buffer): Consider splitting window horizontally depending
18339         on prefer_window_split_horizontally.
18341 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
18343         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18345 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
18347         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18349         * frame.c (x_set_frame_parameters): Check number is positive before
18350         using XFASTINT.
18352         * window.c (freeze_window_start): Don't presume selected_window holds
18353         a window object.
18354         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18356 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
18358         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18360 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
18362         * window.c (Vsplit_window_preferred_function): New var.
18363         (Fdisplay_buffer): Use it.
18364         (syms_of_window): Export, and initialize it.
18366 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
18368         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18370 2007-09-06  Glenn Morris  <rgm@gnu.org>
18372         * gtkutil.c (menu_grab_callback) <cnt>:
18373         * xselect.c (x_reply_selection_request) <cnt>: Move static
18374         variable to file scope.
18376 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
18378         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18379         consistent values of selected_frame and selected_window.
18381 2007-09-04  Jason Rumney  <jasonr@gnu.org>
18383         * w32console.c (initialize_w32_display): Zero unused hooks.
18385 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
18387         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18388         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18390 2007-09-04  Jason Rumney  <jasonr@gnu.org>
18392         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18393         in w32console.c.  Set up input.  Remove XXX comments that have been
18394         confirmed as correct.
18396         * s/ms-w32.h (MULTI_KBOARD): Define.
18398         * w32console.c (one_and_only_w32cons): Remove.
18399         (initialize_w32_display): Take terminal argument.
18401         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18402         initialize_w32_display.
18403         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18405         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18407         * keyboard.c (discard_mouse_events): Discard it.
18408         (make_lispy_event): Translate it to a lisp event.
18409         (lispy_wheel_names): Add wheel-left and right events.
18410         (syms_of_keyboard): Enlarge wheel_syms.
18412         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18413         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18415         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18417         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18418         from WM_MOUSEHWHEEL.
18419         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18421         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18422         terminal.
18424         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18425         keyboard for the terminal.
18427 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
18429         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18430         (Vresume_tty_hook): Rename from Vresume_tty_functions.
18431         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18432         and resume-tty-function to resume-tty-hook.
18433         (Fsuspend_tty, Fresume_tty): Use new names.
18435 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
18437         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18438         if it starts with "n:".
18440 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
18442         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18444 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
18446         * frame.h:
18447         * frame.c (Qterm_environment_variable): Remove.
18448         (syms_of_frame): Don't init and staticpro it.
18450         * callproc.c (getenv_internal): Remove special case for $TERM.
18452         * callproc.c (Vinitial_environment): New variable.
18453         (set_initial_environment): Initialize it.
18454         (syms_of_callproc): Declare it.
18455         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18456         TERM under which a process runs is never related to the TERM in which
18457         Emacs is running.
18459 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
18461         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18462         * s/darwin.h: ... do it here.
18464 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
18466         * lisp.h (set_initial_environment): Rename from set_global_environment.
18468         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18469         removed by mistake on the multi-tty branch.
18471         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18472         (Fmodify_frame_parameters): Return a value.
18474         * image.c (png_load): Comment-out var only used in commented-out code.
18476         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18477         before passing it to mark_object.
18479         * xfaces.c (internal_resolve_face_name): Return a value.
18480         (internal_resolve_face_name, resolve_face_name_error): Comment out.
18482         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18483         (x_icon): Comment-out var only used in commented-out code.
18485 2007-08-29  Romain Francoise  <romain@orebokech.com>
18487         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18488         QUIT hasn't been provided.
18490 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
18492         * callproc.c (child_setup, getenv_internal): Use the
18493         display-environment-variable and term-environment-variable frame params.
18494         (set_initial_environment): Initialise Vprocess_environment.
18496         * config.in: Disable multi-keyboard support on a mac.
18498         * frame.c (Qterm_environment_variable)
18499         (Qdisplay_environment_variable): New variables.
18500         (syms_of_frame): Intern and staticpro them.
18501         (Fmake_terminal_frame): Disable output method test.
18503         * frame.h: Declare them here.
18505         * macfns.c (x_set_mouse_color): Get rif from the frame.
18506         (x_set_tool_bar_lines): Don't use updating_frame.
18507         (mac_window): Add 2 new parameters for consistency with other systems.
18508         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
18509         frame parameters following what is done in X11 and w32.  Don't use
18510         FRAME_MAC_DISPLAY_INFO.
18511         (Fx_open_connection, start_hourglass): Remove window-system check.
18512         (x_create_tip_frame): Get the keyboard from the terminal.
18514         * macmenu.c: Reorder includes.
18515         (Fx_popup_menu): Use terminal specific mouse_position_hook.
18517         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18518         terminal parameter.
18519         (x_clear_frame): Add a frame parameter.
18520         (note_mouse_movement): Get rif from the frame.
18521         (mac_term_init): Initialize the terminal.
18522         (mac_initialize): Make static and move terminal initialization ...
18523         (mac_create_terminal): ... to this new function.
18525         * macterm.h (struct mac_display_info): Add terminal.
18526         (mac_initialize): Delete declaration.
18528         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18530         * sysdep.c: Comment out text after #endif.
18532         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18533         is defined.  Better initialize ttys in windows.  Use terminal
18534         specific mouse_position_hook.
18536         * termhooks.h (union display_info): Add mac_display_info.
18538         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18539         Set the default minibuffer frame, window_system and the rest of the
18540         frame parameters following what is done in X11.
18542         * w32term.c (w32_initialize): Make static.
18544         * xselect.c (x_handle_selection_clear): Only access
18545         terminal->kboard when MULTI_KBOARD is defined.
18547         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18548         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18550 2007-08-29  Jason Rumney  <jasonr@gnu.org>
18552         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18553         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18555         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18556         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18558         * keyboard.c (restore_kboard_configuration): Only define when
18559         MULTI_KBOARD defined.
18561         * makefile.w32-in: Update dependancies from Makefile.in.
18562         (OBJ1): Add terminal.$(O)
18564         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18565         Don't define function body.
18566         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18568         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18570         * w32.c (request_sigio, unrequest_sigio): Remove.
18572         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18573         (w32con_clear_frame, w32con_clear_end_of_line)
18574         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18575         (w32con_delete_glyphs, w32con_set_terminal_window)
18576         (scroll_line, w32_sys_ring_bell): Add frame arg.
18577         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18578         Add terminal arg.
18579         (PICK_FRAME): Remove.
18580         (w32con_write_glyphs): Use frame specific terminal coding.
18581         (one_and_only_w32cons): New global variable.
18582         (initialize_w32_display): Use it for storing hooks.
18583         (create_w32cons_output): New function.
18585         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18586         arg a frame.
18588         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18589         Set window_system.
18590         (x_set_tool_bar_lines): Don't use updating_frame.
18591         (Fx_create_frame): Set terminal and ref count.
18592         (Fx_open_connection): Remove window-system check.
18594         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18596         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18597         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18598         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18599         Add frame arg.
18600         (x_delete_terminal, w32_create_terminal): New functions.
18601         (w32_term_init): Create a terminal.
18602         (w32_initialize): Move terminal specific initialization to
18603         w32_create_terminal.
18605         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18606         (w32_clear_rect, w32_clear_area): Use background from frame.
18607         (w32_display_info): Add terminal.
18608         (w32_sys_ring_bell, x_delete_display): Declare here.
18610         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18612         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18614 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
18616         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18617         Fix get_named_tty calls for the controlling tty.
18619 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
18621         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18623 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
18625         * term.c (tty_insert_glyphs): Add missing first parameter.
18627 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
18629         * buffer.c (Fbuffer_list, Fbury_buffer):
18630         Take frame->buried_buffer_list into account.
18632         * cm.c (current_tty): New variable, for cmputc().
18633         (cmputc): Use it.
18634         (cmcheckmagic): Add tty parameter, look up terminal streams there.
18635         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
18636         (cmgoto): Add tty parameter.  Pass it on to calccost().
18637         Use emacs_tputs() instead of tputs().
18639         * cm.h (emacs_tputs): New macro to set current_tty, and then call
18640         tputs().
18641         (current_tty): New variable, for cmputc().
18642         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18644         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18645         (internal_condition_case, internal_condition_case_1)
18646         (internal_condition_case_2): Don't abort when x_catching_errors.
18648         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18649         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
18650         prevent crashes caused by bogus longjmps in read_char.
18652         * keymap.h (Fset_keymap_parent): Add EXFUN.
18654         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18655         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18656         Remove redundant definition.
18658         * macfns.c (x_set_mouse_color, x_make_gc):
18659         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18661         * w32term.c (x_free_frame_resources):
18662         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18663         (w32_initialize): Use the accessor macros for terminal characteristics.
18665         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18666         Use the accessor macros for terminal characteristics.
18667         * msdos.c (internal_terminal_init): Use the accessor macros for
18668         terminal characteristics.
18669         (ScreenVisualBell, internal_terminal_init):
18670         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18672         * termopts.h (no_redraw_on_reenter): Declare.
18674         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18675         (mark_terminals, mark_ttys): Declare.
18676         (Fgarbage_collect): Call them.
18677         (mark_object): Mark buried_buffer_list.
18679         * prefix-args.c: Include stdlib.h for exit.
18681         * syssignal.h: Add comment.
18683         * indent.c: Include stdio.h.
18685         * window.h (Vinitial_window_system): Declare.
18686         (Vwindow_system): Delete declaration.
18688         * fontset.c (Finternal_char_font): Use FRAME_RIF.
18690         * image.c (lookup_image): Don't initialize `c' until the xasserts
18691         have been run.
18693         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18694         FRAME_FOREGROUND_PIXEL.
18696         * print.c (print_preprocess): Don't lose print_depth levels while
18697         iterating.
18699         * widget.c (update_from_various_frame_slots):
18700         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18702         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18703         frames.
18704         (window_internal_height): Remove bogus make_number call.
18705         (init_window_once): Call make_terminal_frame with two zero parameters.
18707         * fileio.c (Fread_file_name): Update comment.
18709         * callint.c (Fcall_interactively):
18710         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18711         Make sure it is correctly unwound.
18713         * xsmfns.c (x_session_close): New function.
18715         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18716         Delete declarations.
18718         * xterm.h: Remove declaration for x_fully_uncatch_errors.
18719         (x_output): Remove background_pixel and foreground_pixel fields.
18720         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
18721         (x_delete_device, x_session_close): Declare.
18723         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
18724         (read_filtered_event): Call `read_char' with a local
18725         `wrong_kboard_jmpbuf'.
18727         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18728         Don't call single_kboard_state.  Use FRAME_RIF.
18730         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18731         systems.
18733         * lisp.h (set_process_environment): Rename to `set_global_environment'.
18734         (Fframe_with_environment, Fset_input_meta_mode)
18735         (Fset_quit_char): EXFUN.
18736         (x_create_device, tty_output, terminal, tty_display_info): Declare.
18737         (init_sys_modes, reset_sys_modes): Update prototypes.
18738         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18740         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18741         Vlocal_key_translation_map, and Vkeyboard_translate_table.
18742         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18743         Delete declarations.
18744         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18745         (temporarily_switch_to_single_kboard, tty_read_avail_input):
18746         New declarations.
18748         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18749         already does that during init_display().  Call syms_of_keymap
18750         before syms_of_keyboard.  Call `syms_of_terminal'.
18751         Call set_initial_environment, not set_process_environment.
18752         (shut_down_emacs): Call reset_all_sys_modes() instead of
18753         reset_sys_modes().
18755         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18756         (internal_resolve_face_name, resolve_face_name_error): New functions.
18757         (resolve_face_name): Protect against loops and errors thrown by Fget.
18758         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18759         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18761         * scroll.c: Replace CURTTY() with local variables throughout the
18762         file (where applicable).
18763         (calculate_scrolling, calculate_direct_scrolling)
18764         (scrolling_1, scroll_cost): Use the accessor macros for terminal
18765         characteristics.
18767         * keymap.c (Vfunction_key_map): Remove.
18768         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18769         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18770         (Vkey_translation_map): Remove.
18771         (syms_of_keymap): Remove DEFVAR for key-translation-map.
18772         (Fdescribe_buffer_bindings)
18773         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18774         Update for terminal-local key-translation-map.
18776         * Makefile.in (callproc.o): Update dependencies.
18777         (lisp, shortlisp): Add termdev.elc.
18778         (obj): Add terminal.o.
18779         (terminal.o): Add dependencies.
18780         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18781         (data.o, fns.o): Add termhooks.h dependency.
18782         (SOME_MACHINE_LISP): Add dnd.elc.
18783         (minibuf.o): Fix typo.
18784         Update dependencies.
18786         * data.c (do_symval_forwarding, store_symval_forwarding)
18787         (find_symbol_value): Use the selected frame's keyboard, not
18788         current_kboard.
18790         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18791         Vwindow_system.
18793         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18794         Fmenu_bar_open.
18795         (syms_of_xmenu): Update defsubr.
18796         (mouse_position_for_popup, Fx_popup_menu)
18797         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18798         (set_frame_menubar, free_frame_menubar)
18799         (create_and_show_popup_menu, xmenu_show)
18800         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18801         an X frame.
18803         * xselect.c (x_own_selection): Abort if not an X frame.
18804         (some_frame_on_display): Check if it is an X frame.
18805         (x_handle_selection_clear): Deal with MULTI_KBOARD.
18807         * coding.c: Include frame.h and termhooks.h.
18808         (terminal_coding, keyboard_coding): Delete.
18809         (Fset_terminal_coding_system_internal)
18810         (Fset_keyboard_coding_system_internal)
18811         (Fkeyboard_coding_system)
18812         (Fterminal_coding_system): Add a terminal parameter.
18813         Get terminal_coding from the terminal.
18814         (init_coding_once): Don't call setup_coding_system here.
18816         * dispextern.h (set_scroll_region, turn_off_insert)
18817         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18818         (tty_clear_end_of_line, tty_setup_colors)
18819         (delete_tty, updating_frame)
18820         (produce_special_glyphs, produce_glyphs, write_glyphs)
18821         (insert_glyphs): Remove.
18822         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18823         (tty_turn_off_highlight, get_tty_size): Add declaration.
18824         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18826         * frame.h (enum output_method): Add output_initial.
18827         (struct x_output): Delete.
18828         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18829         Access foreground_pixel and background_pixel directly from the frame.
18830         (tty_display): Delete.
18831         (struct frame): Add buried_buffer_list, foreground_pixel,
18832         background_pixel and terminal.  Delete kboard.
18833         (union output_data): Add tty.
18834         (FRAME_KBOARD): Get the kboard from the terminal.
18835         (FRAME_INITIAL_P): New macro.
18836         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18837         (Qterm_environment_variable, Qdisplay_environment_variable)
18838         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18839         New declarations.
18841         * termchar.h (tty_output, tty_display_info): New structures.
18842         (tty_list): Declare.
18843         (FRAME_TTY, CURTTY): New macros.
18844         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18845         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18846         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18847         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18849         * callproc.c: Include frame.h and termhooks.h, for terminal
18850         parameters.
18851         (add_env): New function.
18852         (child_setup): Use it.
18853         (child_setup, getenv_internal): Handle the new Vprocess_environment.
18854         (getenv_internal): Fix get_terminal_param call.
18855         (Fgetenv_internal, egetenv): Update doc.
18856         (syms_of_callproc): Initialize Vprocess_environment to nil.
18857         Register and initialize them.  Remove obsolete defvars.  Update doc
18858         strings.
18859         (child_setup): Handle Vlocal_environment_variables.
18860         (getenv_internal): Add terminal parameter.
18861         Handle Vlocal_environment_variables.
18862         (Fgetenv_internal): Add terminal parameter.
18863         (child_setup, getenv_internal, Fgetenv_internal): Store the local
18864         environment in a frame (not terminal) parameter.  Update doc strings.
18865         (set_initial_environment): Rename from set_global_environment.
18866         Store Emacs environment in initial frame parameter.
18868         * xdisp.c (redisplay_internal): Update references to
18869         `previous_terminal_frame'.
18870         (display_mode_line, Fformat_mode_line): Replace calls to
18871         `push_frame_kboard' with `push_kboard'.
18872         (get_glyph_string_clip_rects): Add extra parentheses and
18873         braces to prevent compiler warnings.
18874         (calc_pixel_width_or_height): Add xassert to check that the
18875         frame is alive.  Don't call `lookup_image' on a termcap frame.
18876         (message2_nolog, message3_nolog, redisplay_internal)
18877         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18878         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18879         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18880         (Fx_display_pixel_width, Fx_display_pixel_height)
18881         (Fx_display_planes, Fx_display_color_cells)
18882         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18883         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18884         (Fx_display_backing_store, Fx_display_visual_class)
18885         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18886         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18888         * xfns.c (x_set_foreground_color x_set_background_color)
18889         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18890         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18891         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18892         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18893         terminal that is being deleted.
18894         (Fx_create_frame): Use `store_frame_param' to set `window-system'
18895         frame parameter, and make sure it overrides any user-supplied setting.
18896         (Fx_close_connection, Fx_synchronize): Unify argument names with
18897         the rest of the DEFUNs.
18899         * dispnew.c (Fsend_string_to_terminal): Update call to
18900         `get_tty_terminal'.
18901         (Fredraw_frame, Fsend_string_to_terminal)
18902         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18903         FRAME_TERMCAP_P and FRAME_TTY.
18904         (window_change_signal): Don't believe width/height values that are
18905         impossibly small.
18906         (Vinitial_window_system): Rename from Vwindow_system.
18907         (termscript, Wcm, rif): Delete.
18909         * termhooks.h (struct terminal): New struct containing the
18910         previously global text display hooks and new members NAME,
18911         DELETED and PARAM_ALIST.
18912         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18913         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18914         (FRAME_RIF): New macros.
18915         (get_terminal_param, get_device): New declarations.
18916         (termscript): Delete declaration.
18918         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18919         (XTflash, x_free_frame_resources, x_scroll_bar_create)
18920         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18921         FRAME_FOREGROUND_PIXEL.
18922         (x_fully_uncatch_errors): Disable definition.
18923         (x_scroll_bar_expose): Fix reference to foreground pixel.
18924         (XTread_socket): Disable loop on all X displays.
18925         (x_delete_terminal): Don't set terminal->deleted and let
18926         delete_terminal delete the frames on the terminal.
18927         (x_delete_display): Doc update to reflect changes in
18928         delete_terminal.
18929         (x_display_info) <terminal>: Move member earlier in the struct.
18930         (deleting_tty): Remove old variable.
18931         (Fsuspend_tty): Call clear_tty_hooks.
18932         (Fresume_tty, init_tty): Call set_tty_hooks.
18933         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18934         errors on X frames.
18935         (x_catch_errors_unwind): Abort if x_error_message is NULL.
18936         (handle_one_xevent): Initialize `f' to NULL.
18937         (x_delete_terminal, x_create_terminal): New functions.
18938         (XTset_terminal_modes, XTreset_terminal_modes)
18939         (XTread_socket, x_connection_closed, x_term_init)
18940         (x_term_init, x_delete_display): Add terminal parameter.
18941         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18942         X connections.
18944         * frame.c: Include termchar.h.
18945         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18946         (Qwindow_system, Qenvironment, Qterm_environment_variable)
18947         (Qdisplay_environment_variable): New vars.
18948         (Fframep): Deal with output_initial.
18949         (Fframe-live-p): Doc fix.
18950         (Fwindow-system): New function.
18951         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18952         (make_terminal_frame): Don't create frames on a terminal that is
18953         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18954         (store_frame_param): Check for found_for_frame before calling XFRAME.
18955         (Fmake_terminal_frame): Handle NULL tty names correctly.
18956         (syms_of_frame): Enhance doc string of `default-frame-alist'.
18957         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
18958         frames to refer to a deleted frame in their 'environment parameter.
18959         (Fframe_with_environment): New function.
18960         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
18961         (get_future_frame_param): New function.
18962         (Fmake_terminal_frame): Use it.
18963         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18965         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18966         * sysdep.c (reset_sys_modes): Update for renames.
18968         * keyboard.c (tty_read_avail_input): New function.
18969         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18970         (syms_of_keyboard): Defsubr them.
18971         (Fset_input_meta_mode, Fset_quit_char): New functions.
18972         (Fset_input_mode): Split to above functions.
18973         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18974         parameter.  Use it in call to `read_char'.
18975         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
18976         Set wrong_kboard_jmpbuf correctly in recursive calls.
18977         Use current_kboard to access Vkeyboard_translate_table.
18978         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18979         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18980         Update longjmp invocations.  Remember the original current_kboard,
18981         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18982         changes it.  Comment out unnecessary calls to
18983         `record_single_kboard_state' and `any_kboard_state'.
18984         Update recursive calls.
18985         (wrong_kboard_jmpbuf): Remove global variable.
18986         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18987         Handle deleted interrupted_kboards correctly; that is a legal
18988         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
18989         and read_char calls.  Abort if interrupted_kboard died in read_char.
18990         (any_kboard_state, single_kboard_state)
18991         (push_frame_kboard): Remove function.
18992         (pop_kboard): Switch out of single_kboard mode if the kboard has
18993         been deleted.  Remove unused variable.  Help debugging by not
18994         changing current_kboard unnecessarily.  Set current_kboard to the
18995         kboard of the selected frame when the stored kboard object has
18996         been deleted before pop_kboard.
18997         (temporarily_switch_to_single_kboard): Change first parameter to a
18998         frame pointer.  Throw an error when caller wants to change kboards
18999         while in single_kboard mode.  Don't push_kboard if we weren't in
19000         single kboard state.  Don't pop_kboard if we popped into any
19001         kboard state.
19002         (restore_kboard_configuration): Abort if pop_kboard changed the
19003         kboard in single_kboard mode.  Call pop_kboard only after setting
19004         up single_kboard mode.
19005         (Frecursive_edit): Switch to single_kboard mode only in nested
19006         command loops.
19007         (cmd_error, command_loop, command_loop_1, timer_check):
19008         Comment out unnecessary call to `any_kboard_state' and
19009         `record_single_kboard_state'.
19010         (delete_kboard): Exit single_kboard mode if we have just deleted
19011         that kboard.  Use FRAME_KBOARD.
19012         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19013         `fatal_error_signal'.
19014         (record_single_kboard_state): Don't push_kboard if we weren't in
19015         single kboard state.  Don't pop_kboard if we popped into any
19016         kboard state.
19017         (push_frame_kboard): Rename to push_kboard.
19018         (kbd_buffer_get_event): Use FRAME_TERMINAL.
19019         (read_avail_input): Read input from all terminals.
19020         (mark_kboards): Also mark Vkeyboard_translate_table.
19021         (kbd_buffer_store_event_hold): Simplify condition.
19022         (read_key_sequence): Reinitialize fkey and keytran at each replay.
19023         (Vkeyboard_translate_table): Move to struct kboard.
19024         (init_kboard): Initialize Vkeyboard_translate_table.
19025         (syms_of_keyboard): Use DEFVAR_KBOARD to define
19026         Vkeyboard_translate_table.  Update doc strings.  Update docs of
19027         local-function-key-map and function-key-map.
19029         * terminal.c: New file.
19031         * term.c: Include errno.h.
19032         (Vring_bell_function, device_list, initial_device)
19033         (next_device_id, ring_bell, update_begin, update_end)
19034         (set_terminal_window, cursor_to, raw_cursor_to)
19035         (clear_to_end, clear_frame, clear_end_of_line)
19036         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19037         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19038         (syms_of_term): Move their initialization to terminal.c.
19039         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19040         (Ftty_display_color_cells)
19041         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19042         (clear_tty_hooks, set_tty_hooks)
19043         (init_tty, maybe_fatal): New functions.
19044         (Ftty_type): Return nil if terminal is not on a tty instead of
19045         throwing an error.  Doc update.
19046         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19047         Doc update.  Initialize new subrs and variables.
19048         (delete_tty): Use terminal->deleted.
19049         (tty_set_terminal_modes): Rename from set_terminal_modes.
19050         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19051         (set_scroll_region): Rename to `tty_set_scroll_region'.
19052         (turn_on_insert): Rename to `tty_turn_on_insert'.
19053         (turn_off_insert): Rename to `tty_turn_off_insert'.
19054         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19055         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19056         (toggle_highligh): Rename to `tty_toggle_highlight'.
19057         (background_highlight): Rename to `tty_background_highlight'.
19058         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19059         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19060         (tty_set_scroll_region, tty_background_highlight)
19061         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19062         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19063         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19064         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19065         Add static modifier.
19066         (tty_reset_terminal_modes, tty_set_terminal_window)
19067         (tty_set_scroll_region, tty_background_highlight)
19068         (tty_highlight_if_desired, tty_cursor_to)
19069         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19070         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19071         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19072         renames.
19074 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
19076         * keyboard.c: Qrtl is new.
19077         (parse_tool_bar_item): Handle :rtl keyword.
19078         (syms_of_keyboard): Intern :rtl keyword.
19080         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19082         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19083         so no Lisp code is executed.
19084         (file_for_image, find_rtl_image): New functions.
19085         (xg_get_image_for_pixmap): Use file_for_image.
19086         (update_frame_tool_bar): If direction is RTL, use RTL image if
19087         defined.  Use Gtk stock images if defined.
19089 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19091         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19092         for nonexistent or zero-width glyph in composition glyph.
19094 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19096         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19098         * xdisp.c (Finvisible_p): New function.
19099         (syms_of_xdisp): defsubr it.
19101 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
19103         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19104         Doc fixes.
19106 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19108         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19110 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
19112         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19113         whether decoding has modified buffer contents.
19115 2007-08-24  Jason Rumney  <jasonr@gnu.org>
19117         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19118         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19119         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19120         (init_svg_functions) [HAVE_NTGUI]: New function.
19121         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19122         (svg_load_image): Use them.
19123         (svg_load_image) [HAVE_NTGUI]: Implement background.
19125 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19127         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19128         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19129         (LIBX): Remove @RSVG_LIBS@.
19130         (LIBES): Add $(RSVG_LIBS).
19132         * image.c (svg_load_image): Blend with specified background if exists.
19133         Use IMAGE_BACKGROUND.  Add Mac OS Support.
19135         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19136         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19137         Remove macros.
19138         [MAC_OSX] (socket_callback): Do nothing.
19139         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19140         ReceiveNextEvent.
19141         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
19142         socket_callback.
19143         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19145 2007-08-22  Glenn Morris  <rgm@gnu.org>
19147         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19149 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
19151         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19153         * image.c: Add support for SVG images.  Some additional comments
19154         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
19155         (svg_image_p): New function to test for SVG image.
19156         (svg_load): New function to load SVG image.
19157         (svg_load_image): New function, helper for svg_load.
19158         (Qsvg): New Lisp_object.
19159         (svg_keyword_index): New enum.
19160         (svg_format): New static `image_keyword' struct.
19161         (svg_type): New static `image_type' struct.
19162         (librsvg/rsvg.h): Include it.
19164 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
19166         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19168 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
19170         * lread.c (Qold_style_backquotes): New var.
19171         (syms_of_lread): Init and staticpro it.
19172         (load_warn_old_style_backquotes): New fun.
19173         (Fload): Use them to warn about old style backquotes.
19174         (end_of_file_error, Fload): Remove unused vars.
19176         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19178         * lread.c (Vold_style_backquotes): New var.
19179         (syms_of_lread): Init and export it to Elisp.
19180         (read1): Set it when we find an old-style (back)quote.
19182 2007-08-22  Jason Rumney  <jasonr@gnu.org>
19184         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19186 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
19188         * puresize.h (BASE_PURESIZE): Increase to 1140000.
19190 2007-08-19  Richard Stallman  <rms@gnu.org>
19192         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19194 2007-08-19  Andreas Schwab  <schwab@suse.de>
19196         * alloc.c (pure): Round PURESIZE up.
19198 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
19200         * xterm.c (handle_one_xevent): Remove check that mouse click is in
19201         active frame.
19203 2007-08-16  Richard Stallman  <rms@gnu.org>
19205         * eval.c (Fcommandp): Add parens to clarify.
19207         * minibuf.c (Fall_completions): Use enum for type of table.
19209         * emacs.c (USAGE2): Improve text.
19211 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
19213         * term.c (tty_default_color_capabilities): Declare static
19214         variables in file scope, to avoid HPUX compiler problem.
19216 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
19218         * gtkutil.c (update_frame_tool_bar): Use -1 as index
19219         to gtk_toolbar_insert.
19221 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
19223         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19225         * insdel.c (reset_var_on_error): New fun.
19226         (signal_before_change, signal_after_change):
19227         Use it to reset (after|before)-change-functions to nil in case of error.
19228         Bind inhibit-modification-hooks to t.
19229         Don't bind (after|before)-change-functions to nil while they run.
19231 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19233         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19234         filling pixmap with stippled background.
19236 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19238         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19239         Don't use invisible frame as parent window for repositioning.
19241 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19243         * print.c (new_backquote_output): Rename from old_backquote_output.
19244         (print): Inverse its logic (according to its name) so as to match the
19245         behavior of new_backquote_flag in lread.c.
19247 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19249         * gmalloc.c (posix_memalign): New function.
19251         * macterm.c (frame_highlight, frame_unhighlight): Don't call
19252         ActivateControl/DeactivateControl here.
19253         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19254         frame-notice-user-settings is non-nil.
19255         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19256         for kEventParamFMFontStyle.
19257         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19258         mac_pass_command_to_system and mac_pass_control_to_system here.
19259         (XTread_socket): Call ActivateControl/DeactivateControl here.
19260         (XTread_socket) [TARGET_API_MAC_CARBON]:
19261         Check mac_pass_command_to_system and mac_pass_control_to_system here.
19262         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19263         for window repositioning.
19265 2007-08-08  Glenn Morris  <rgm@gnu.org>
19267         * Replace `iff' in doc-strings and comments.
19269 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
19271         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19273 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
19275         * fileio.c (Finsert_file_contents): Run format-decode and
19276         after_insert_file_functions on entire buffer when REPLACE is
19277         non-nil and inhibit modification_hooks and point_motion_hooks.
19278         For consistency, run after_insert_file_functions iff something
19279         got inserted.  Move signal_after_change and update_compositions
19280         after code running after_insert_file_functions.  Make sure that
19281         undo_list doesn't record intermediate steps of the decoding process.
19283 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19285         * emacs.c (main)
19286         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19287         Call malloc_enable_thread on interactive startup.
19289         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19290         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19291         [USE_PTHREAD]: Conditionalize with it.
19292         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19293         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19294         New functions.
19296 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
19298         * xdisp.c (redisplay_window): When restoring original buffer
19299         position, make sure it is still valid.
19301         * image.c (png_load): Ignore png-supplied background color.
19303 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19305         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19306         Use kCFAbsoluteTimeIntervalSince1970.
19308         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19309         New variable.
19310         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19311         event loop should be quit.
19312         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19313         Quit dialog event loop if quit_dialog_event_loop is set.
19315         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19316         (Selection): New typedef.  Use instead of ScrapRef.
19317         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19318         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19319         (mac_clear_selection): Rename from clear_scrap.
19320         (get_flavor_type_from_symbol): New argument SEL and subsume function of
19321         scrap_has_target_type.  All uses changed.
19322         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19323         (mac_selection_has_target_p): New functions.
19324         (mac_put_selection_value): Rename from put_scrap_string.
19325         (mac_get_selection_value): Rename from get_scrap_string.
19326         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19327         (put_scrap_private_timestamp, scrap_has_target_type)
19328         (get_scrap_private_timestamp): Remove functions.
19329         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19330         (x_own_selection, x_get_local_selection):
19331         Use mac_valid_selection_value_p.
19332         (x_own_selection): Don't use put_scrap_private_timestamp.
19333         Record OWNERSHIP-INFO into Vselection_alist instead.
19334         (x_get_local_selection): Don't check type if request is local.
19335         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19336         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19338 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
19340         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19341         add comment explaining why.
19343 2007-08-03  Richard Stallman  <rms@gnu.org>
19345         * fileio.c (Fvisited_file_modtime): Use make_time.
19347 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
19349         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19350         build.
19352 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
19354         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19356 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
19358         * puresize.h (BASE_PURESIZE): Increase to 1130000.
19360 2007-07-30  Richard Stallman  <rms@gnu.org>
19362         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19364 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
19366         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
19368 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
19370         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19371         remote default-directory.
19373         * buffer.c (mode-line-format): Update doc string.
19375 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19377         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19378         scroll bar gap.
19379         (x_scroll_bar_create): Set bar->fringe_extended_p.
19380         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19381         on frame edge.  Check fringe background extension.  Don't clear
19382         extended fringe background area.
19384         * w32term.h (struct scroll_bar): New member fringe_extended_p.
19385         (w32_fill_area): Enclose multiple statements with do ... while (0).
19387         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19388         Extend fringe background to scroll bar gap.
19389         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19390         Set bar->fringe_extended_p.
19391         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19392         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
19393         background extension.  Don't clear extended fringe background area.
19395         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19396         New member fringe_extended_p.
19398 2007-07-25  Glenn Morris  <rgm@gnu.org>
19400         * Relicense all FSF files to GPLv3 or later.
19402         * COPYING: Switch to GPLv3.
19404 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19406         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19408         * data.c (Finteractive_form): Check for the presence of an
19409         `interactive-form' symbol property more thoroughly.
19411         * data.c (Finteractive_form): Use an `interactive-form' property if
19412         present, analogous to the function-documentation property.
19414 2007-07-24  Jason Rumney  <jasonr@gnu.org>
19416         * w32fns.c (x_real_positions): Get real position from OS instead of
19417         calculating it.
19419 2007-07-23  Jason Rumney  <jasonr@gnu.org>
19421         * filelock.c (current_lock_owner): Allow for @ sign in username.
19423 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
19425         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19426         remote default-directory.
19428         * buffer.c (mode-line-format): Describe above case in doc string.
19430 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
19432         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19433         Define if not defined.
19435 2007-07-18  Jason Rumney  <jasonr@gnu.org>
19437         * w32proc.c (w32_executable_type): Handle 64 bit executables.
19439 2007-07-18  Richard Stallman  <rms@gnu.org>
19441         * data.c (Fsetq_default): Doc fix.
19443         * eval.c (Fsetq): Doc fix.
19445 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
19447         * coding.c (Ffind_operation_coding_system):
19448         * eval.c (For, Fand): Doc fixes.
19449         Reported by Johan Bockgård.
19451 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
19453         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19455         * xterm.h: Declare x_ewmh_activate_frame.
19457         * xterm.c (x_ewmh_activate_frame): New function.
19458         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19460 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
19462         * window.c (Fdisplay_buffer): If largest or LRU window is the
19463         only window, split it even if it is not eligible for splitting.
19464         This restores the original behavior broken by the 2007-07-15
19465         change.
19467 2007-07-17  Glenn Morris  <rgm@gnu.org>
19469         * abbrev.c (abbrev_check_chars): New function.
19470         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19471         Call abbrev_check_chars to check abbrev characters are word
19472         constituents.  Doc fix.
19474 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
19476         * process.c (Fstart_process, Fmake_network_process)
19477         (read_process_output): Fix up last changes.
19479 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
19481         * makefile.w32-in (clean): Don't delete *~.
19483 2007-07-16  Andreas Schwab  <schwab@suse.de>
19485         * window.c (Fdisplay_buffer): Use NILP.
19486         (Fset_window_scroll_bars): Likewise.
19488 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
19490         * window.c (window_min_size_2): New function.
19491         (window_min_size_1, size_window, Fdisplay_buffer)
19492         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19493         windows without mode- or header-lines when window-min-height is
19494         too small.
19495         (size_window): Reset nodelete_p after testing it, following an
19496         earlier note by Kim F. Storm.
19497         (display_buffer): Do not set split_height_threshold to twice the
19498         value of window_min_height to avoid changing the value of a
19499         customizable variable.  Rather explicitly check whether the
19500         height of the window that shall be splitted is at least as large
19501         as split_height_threshold.
19502         (Fwindow_full_width_p): New defun.
19503         (syms_of_window): Defsubr it.
19505         * window.h: Add EXFUN for Fwindow_full_width_p.
19507 2007-07-14  Jason Rumney  <jasonr@gnu.org>
19509         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19511 2007-07-14  Richard Stallman  <rms@gnu.org>
19513         * eval.c (maybe_call_debugger): New function.
19514         (find_handler_clause): Use maybe_call_debugger.
19515         Call it when the handler says `debug'.
19516         Eliminate DEBUGGER_VALUE_PTR.
19517         (Fsignal): Eliminate debugger_value.
19518         (Qdebug): New variable.
19519         (syms_of_eval): Initialize it.
19521 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
19523         * eval.c (Fprogn):
19524         * keyboard.c (Ftrack_mouse):
19525         * print.c (Fwith_output_to_temp_buffer):
19526         * window.c (Fsave_window_excursion): Doc fix.
19528 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
19530         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19532 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
19534         * process.h (struct Lisp_Process): Turn slots infd, outfd,
19535         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19536         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19537         read_output_delay, and read_output_skip from Lisp_Objects to ints.
19538         Remove unused encoding_carryover.
19539         * process.c: Adjust all functions accordingly.
19541 2007-07-12  Richard Stallman  <rms@gnu.org>
19543         * term.c: Include unistd.h only if HAVE_UNISTD_H.
19545 2007-07-11  Jason Rumney  <jasonr@gnu.org>
19547         * makefile.w32-in (LIBS): Include OLE32.
19549         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19550         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19552 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19554         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19555         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19556         from a Lisp_Object into a bare pointer.
19557         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19558         Adjust the code correspondingly.
19560         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19562         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19563         (term_show_mouse_face): Remove unused var `j'.
19564         (handle_one_term_event): Remove unused vars `i' and `j'.
19565         Don't cast return value of ttyname since it's not necessary.
19567 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19569         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19570         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19572         * fns.c (map_char_table): Use an array of int for `indices' rather than
19573         an array of Lisp_Objects (which are only ever integers anyway).
19574         (Fmap_char_table): Update caller.
19575         * lisp.h: Update prototype.
19576         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19577         * fontset.c (Ffontset_info):
19578         * casetab.c (set_case_table): Update callers.
19580         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19582         * keymap.c (struct accessible_keymaps_data)
19583         (struct where_is_internal_data): New structures.
19584         (accessible_keymaps_1, where_is_internal_1): Use them to change
19585         interface to adhere to the one used by map_keymap.
19586         (Faccessible_keymaps, where_is_internal): Use map_keymap.
19587         (accessible_keymaps_char_table, where_is_internal_2): Remove.
19589         * keymap.h (map_keymap_function_t): More informative prototype.
19591 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
19593         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19594         (looking_at_1): Don't change search_regs and last_thing_searched
19595         if `inhibit-changing-match-data' is non-nil.
19596         (string_match_1, search_buffer, set_search_regs): Likewise.
19597         (syms_of_search): Add Lisp level definition for
19598         `inhibit-changing-match-data' and set it to nil.
19599         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19600         start and end of the match, instead of using values in search_regs.
19602 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
19604         * minibuf.c (Fcompleting_read): New value `confirm-only'
19605         for `require-match'.
19607 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
19609         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19610         part of the 2007-06-27 change to syms_of_fileio.
19612 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19614         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19615         Check WINDOWP before using XWINDOW.  Consolidate return statements.
19617 2007-06-27  Richard Stallman  <rms@gnu.org>
19619         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19621 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
19623         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19625 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19627         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19628         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19629         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19630         (_free_internal, memalign): Use them.
19631         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19632         Initialize to PTHREAD_MUTEX_INITIALIZER.
19633         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19634         (morecore_nolock): Rename from morecore.  All uses changed.
19635         Use only nolock versions of internal allocation functions.
19636         (_malloc_internal_nolock, _realloc_internal_nolock)
19637         (_free_internal_nolock): New functions created from
19638         _malloc_internal, _realloc_internal, and _free_internal.
19639         (_malloc_internal, _realloc_internal, _free_internal): Use them.
19640         Copy hook value to automatic variable before its use.
19641         (memalign): Copy hook value to automatic variable before its use.
19643 2007-06-26  Kenichi Handa  <handa@m17n.org>
19645         * coding.c (Ffind_operation_coding_system): Docstring improved.
19646         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19648 2007-06-25  David Kastrup  <dak@gnu.org>
19650         * keymap.c (Fcurrent_active_maps): Add `position' argument.
19651         (Fwhere_is_internal): Adjust call to `current-active-maps' to
19652         cater for additional parameter.
19654         * keymap.h: Adjust number of parameters to `current-active-maps'.
19656         * doc.c (Fsubstitute_command_keys): Adjust call of
19657         `current-active-maps'.
19659 2007-06-25  David Kastrup  <dak@gnu.org>
19661         * callint.c (Fcall_interactively): Make the parsing of interactive
19662         specs somewhat more readable.
19664 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19666         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19667         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
19668         if extended background has already been filled.
19670 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19672         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19673         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19675         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19676         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19677         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19678         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19679         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19680         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
19681         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19682         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19683         Run timers during dialog popup.
19684         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19686 2007-06-21  Jason Rumney  <jasonr@gnu.org>
19688         * image.c (convert_mono_to_color_image): Swap fore and background.
19690 2007-06-20  Jason Rumney  <jasonr@gnu.org>
19692         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19693         (w32_free_bdf_font): Unmap memory not handle.
19695 2007-06-20  Sam Steingold  <sds@gnu.org>
19697         * gmalloc.c (__morecore): Fix the declaration to comply with the
19698         definition.
19700 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
19702         * w32term.c (w32_delete_display): Remove leftover declaration.
19703         (w32_define_cursor, w32_initialize): Make static.
19705         * w32.c (_wsa_errlist): Fix typo in error message.
19706         (init_environment): Ignore any environment variable from the
19707         registry having a null value.
19709 2007-06-20  Glenn Morris  <rgm@gnu.org>
19711         * Makefile.in (LIBGIF): Default to -lgif.
19713 2007-06-17  Jason Rumney  <jasonr@gnu.org>
19715         * w32menu.c (add_menu_item): Don't use multibyte string functions on
19716         unicode strings.
19718 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
19720         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19721         Fix typo in docstring.
19723 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
19725         * w32menu.c (add_menu_item): Escape `&' characters in menu items
19726         and their keybindings.
19728 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
19730         * composite.c (update_compositions): Fix last fix.
19732 2007-06-14  Jason Rumney  <jasonr@gnu.org>
19734         * w32.c (get_process_times_fn): New function pointer.
19735         (globals_of_w32): Intialize it if present in kernel32.dll.
19736         (w32_get_internal_run_time): New function.
19738         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19740 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
19742         * composite.c (update_compositions): Check the validness of
19743         compositions.
19745 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19747         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19748         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19750         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19751         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19753         * macgui.h (USE_MAC_TOOLBAR): New define.
19755         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19756         Return immediately unless popup is activated.
19758         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19759         background to scroll bar gap.
19760         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19761         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19762         scroll bars on frame edge.  Check fringe background extension.
19763         Don't clear extended fringe background area.
19764         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19765         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19766         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19767         [USE_MAC_TOOLBAR]: New macros.
19768         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19769         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19770         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19771         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19772         [USE_MAC_TOOLBAR]: New functions.
19773         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19774         manually if previous repositioning has failed.
19775         (mac_handle_keyboard_event): Use precomputed event kind.
19776         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19777         as tool bar item click.  Handle mouse movement over tool bar items.
19779         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19780         toolbar_win_gravity.
19781         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19782         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19783         Add externs.
19785         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19786         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19788 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
19790         * image.c (search_image_cache): Remove unused variable.
19792 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
19794         * xfns.c, xmenu.c: Link to xaw3d if available.
19796 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19798         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19799         frame_foreground and frame_background.
19801         * image.c (lookup_image): Save frame foreground and background colors.
19802         (search_image_cache): Check if saved and current frame colors match.
19804 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
19806         * regex.c (regex_compile): Remove the `regnum' counter.
19807         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
19809 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19811         * term.c: Include intervals.h to declare Fget_text_property.
19813 2007-06-10  Jason Rumney  <jasonr@gnu.org>
19815         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19817 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
19819         * callint.c (Fcall_interactively):
19820         * editfns.c (Fdelete_and_extract_region):
19821         * fileio.c (Fread_file_name):
19822         * fns.c (Fmapconcat):
19823         * keyboard.c (cmd_error_internal):
19824         * keymap.c (Fkey_description):
19825         * lread.c (openp):
19826         * minibuf.c (read_minibuf):
19827         * search.c (wordify):
19828         * sunfns.c (sel_read):
19829         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19830         * xfns.c (x_default_scroll_bar_color_parameter):
19831         * xmenu.c (menu_help_callback):
19832         * xselect.c (Fx_get_atom_name):
19833         * xterm.c (x_term_init): Use empty_unibyte_string.
19835 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
19837         * alloc.c (init_strings): Initialize canonical empty strings.
19838         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19839         canonical empty string when the requested size is 0.
19841         * emacs.c (empty_unibyte_string): Rename from empty_string.
19842         (empty_multibyte_string): New canonical empty string.
19843         (syms_of_emacs): Don't initialize empty_string.
19845         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19846         string, if appropriate.
19847         (empty_unibyte_string, empty_multibyte_string): New externs.
19848         (empty_string): Remove extern.
19850         * lread.c (syms_of_lread): Use empty_unibyte_string.
19852 2007-06-07  Jason Rumney  <jasonr@gnu.org>
19854         * s/ms-w32.h: Don't define HAVE_TZNAME.
19856         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19858 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19860         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19862         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19863         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19865         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19866         Don't call next handler.
19867         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19868         Remove argument.  Install handler to application.
19869         (set_frame_menubar): Don't change deep_p.
19870         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19871         FRAME_OUTER_TO_INNER_DIFF_Y.
19872         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19873         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19874         [HAVE_DIALOGS]: New macros.
19875         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19876         Use them.
19877         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19879         * macselect.c [MAC_OSX] (install_service_handler): Rename from
19880         init_service_handler.  All callers changed.  Return OSStatus value.
19882         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
19883         All callers changed so as not to call SetPortWindowPort.
19884         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19885         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19886         mac_draw_string_common.
19887         (mac_draw_image_string_qd): Likewise.
19888         (mac_draw_string_common): Use them.  Add INLINE.
19889         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19890         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19891         GetGlobalMouse.
19892         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19893         and FRAME_OUTER_TO_INNER_DIFF_Y.
19894         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19895         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19896         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19897         repositioning window to mac_handle_window_event.
19898         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19899         saving window location to mac_handle_window_event
19900         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19901         (install_menu_target_item_handler): Remove argument in extern.
19902         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19903         Also accept command events.
19904         (do_keystroke): New function created from XTread_socket.
19905         (init_command_handler): Remove functions.
19906         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19907         and save window location by kEventWindowShowing and kEventWindowHiding
19908         handlers here.  Don't call next handler for window state change and
19909         focus events.
19910         (mac_handle_application_event, mac_handle_keyboard_event)
19911         [TARGET_API_MAC_CARBON]: New functions.
19912         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19913         kEventWindowShowing and kEventWindowHiding events.  Move installation
19914         of mouse, font, text input and menu target item handlers to
19915         install_application_handler.
19916         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19917         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19918         New function.
19919         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19920         Register it.
19921         (XTread_socket) [TARGET_API_MAC_CARBON]:
19922         Consolidate SendEventToEventTarget calls.
19923         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19924         Move application activation handler to mac_handle_application_event.
19925         Move keyboard handler to mac_handle_keyboard_event.
19926         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19927         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19928         init_command_handler.  Call install_application_handler.
19930         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19931         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19933 2007-06-07  Glenn Morris  <rgm@gnu.org>
19935         * emacs.c (main): Use `emacs-copyright' in --version output.
19937 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
19939         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19941 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19943         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19945         * macgui.h: Replace WindowPtr with WindowRef.
19947         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19948         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
19949         Replace ControlHandle with ControlRef.
19950         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19952         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19953         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
19954         Replace ControlHandle with ControlRef.
19955         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
19956         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19958         * macterm.h (struct scroll_bar): Rename member control_handle_low
19959         and control_handle_high to control_ref_low and control_ref_high.
19960         All uses changed.
19961         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19962         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19963         respectively.  All uses changed.
19964         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19965         (install_window_handler, remove_window_handler): Replace WindowPtr
19966         with WindowRef in externs.
19968 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
19970         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19972 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
19974         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19976         * frame.c (Fmouse_position, Fmouse_pixel_position):
19977         Condition on HAVE_GPM too.
19979         * term.c (term_mouse_highlight): Remove unused variables.
19980         (Fterm_open_connection): Set gpm_zerobased to 1.
19981         (term_mouse_movement, term_mouse_click, handle_one_term_event):
19982         Use zero based co-ordinates.
19983         (handle_one_term_event): Report a drag as mouse movement too.
19985         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19987 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
19989         * image.c (search_image_cache): New function.  Require background
19990         color match if background color is unspecified in the image spec.
19991         (uncache_image, lookup_image): Use it.
19993 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
19995         * window.c (Fshrink_window): Reflow docstring.
19997 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
19999         * Version 22.1 released.
20001 2007-06-01  Richard Stallman  <rms@gnu.org>
20003         * xfns.c (x_encode_text): Add GCPRO.
20005 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20007         * xfns.c (x_set_name_internal): Save encoded name before
20008         x_encode_text in case string data is relocated.
20010 2007-05-31  Richard Stallman  <rms@gnu.org>
20012         * buffer.c (syms_of_buffer): Doc fix.
20014 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
20016         * sysdep.c (init_sys_modes): Add rather than replace with
20017         O_NONBLOCK.
20019         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20020         term_mouse_moveto.
20022         * termhooks.h (term_mouse_moveto): New extern.
20024         * term.c (mouse_face_window): Rename...
20025         (Qmouse_face_window): ...to this.
20026         (term_show_mouse_face, term_clear_mouse_face)
20027         (term_mouse_highlight): Use Qmouse_face_window.
20028         (term_mouse_moveto): New function.
20029         (term_mouse_position): Make it work.
20030         (syms_of_term): Uncomment assignment to mouse_position_hook.
20031         Staticpro Qmouse_face_window.
20033 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20035         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20036         around current_column call.
20038 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
20040         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20041         * xdisp.c (next_element_from_buffer):
20042         * window.c (delete_window):
20043         * term.c (term_mouse_highlight):
20044         * msdos.c (getdefdir):
20045         * macterm.c (mac_create_bitmap_from_bitmap_data)
20046         (init_font_name_table):
20047         * fns.c (Fsxhash):
20048         * data.c (Fmake_local_variable):
20049         * ccl.c (ccl_driver): Likewise.
20051 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20053         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20054         Call mac_wakeup_from_rne on window size change.
20056 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
20058         * image.c (uncache_image): Fix typo.
20060 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
20062         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20064 2007-05-22  Richard Stallman  <rms@gnu.org>
20066         * xterm.c (x_connection_closed): Remove NO_RETURN.
20068 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
20070         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20072 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
20074         * image.c (uncache_image): New function.
20075         (Fimage_refresh): New function.
20077 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
20079         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20081 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
20083         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20084         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20086 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
20088         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20089         conditional on [HAVE_GPM_H].
20091 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
20093         * syntax.c (skip_chars): Update syntax-table only after we checked that
20094         the new location is valid.
20096 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20098         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20099         mac_get_window_bounds.
20101 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
20103         * Makefile.in (LIBGPM): Allow it to be set from configure.
20104         If set then link Emacs with it.
20106         * config.in: Regenerate.
20108         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20109         New externs.
20111         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20112         Include gpm.h.
20113         (handle_one_term_event, term_gpm): New externs.
20115         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20116         and allow it to be interrupted by SIGIO.
20118         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20119         (wait_reading_process_output): Wait on gpm_fd too.
20120         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20121         (add_gpm_wait_descriptor_called_flag): New variable.
20122         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20124         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20125         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20126         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20127         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20128         (make_lispy_event): Add case GPM_CLICK_EVENT.
20129         (read_avail_input): Handle mouse input.
20131         * term.c (write_glyphs_with_face): New function.
20132         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20133         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20134         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20135         (mouse_face_face_id, term_gpm, pos_x, pos_y)
20136         (last_mouse_x, last_mouse_y): New variables.
20137         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20138         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20139         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20140         (Fterm_close_connection): New functions.
20141         (term_init): Initialise mouse_face_window.
20143 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
20145         * xdisp.c (redisplay_window): If first window line is a
20146         continuation line, recompute the new window start instead of
20147         recentering.
20149 2007-05-18  Glenn Morris  <rgm@gnu.org>
20151         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20152         Suggested by Alfred M. Szmidt <ams@gnu.org>.
20154 2007-05-17  Glenn Morris  <rgm@gnu.org>
20156         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20158 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20160         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20161         dead key repeat and up events.
20163 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
20165         * image.c (pbm_load): Check image size for monochrome pbm.
20167 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
20169         * xterm.c (XTread_socket): Revert last change.
20171 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
20173         * image.c (pbm_load): Correctly check image size for greyscale pbm.
20175         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20177 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20179         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20180         mixup (YAILOM).
20182 2007-05-07  Andreas Schwab  <schwab@suse.de>
20184         * keymap.c (Flookup_key): Fix typo in last change.
20186 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20188         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20189         mapping for unibyte strings.
20191 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20193         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20194         (Fx_popup_dialog) [MAC_OSX]: Likewise.
20196 2007-04-29  Richard Stallman  <rms@gnu.org>
20198         * insdel.c (replace_range): For undo, record insertion first.
20200 2007-04-29  Andreas Schwab  <schwab@suse.de>
20202         * lisp.h (VECSIZE): Use OFFSETOF.
20204 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20206         * xdisp.c (try_window_reusing_current_matrix): Fix number of
20207         disabled lines.
20209 2007-04-28  Richard Stallman  <rms@gnu.org>
20211         * lread.c (read_escape): In a string, \s is always space.
20213 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
20215         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20217         * gtkutil.c (xg_update_menubar, create_menus): Create empty
20218         submenu for menu bar items.
20220 See ChangeLog.10 for earlier changes.
20222 ;; Local Variables:
20223 ;; coding: utf-8
20224 ;; add-log-time-zone-rule: t
20225 ;; End:
20227     Copyright (C) 2007, 2008, 2009  Free Software Foundation, Inc.
20229   This file is part of GNU Emacs.
20231   GNU Emacs is free software: you can redistribute it and/or modify
20232   it under the terms of the GNU General Public License as published by
20233   the Free Software Foundation, either version 3 of the License, or
20234   (at your option) any later version.
20236   GNU Emacs is distributed in the hope that it will be useful,
20237   but WITHOUT ANY WARRANTY; without even the implied warranty of
20238   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20239   GNU General Public License for more details.
20241   You should have received a copy of the GNU General Public License
20242   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
20244 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40