Fix 2010-10-29T06:51:36Z!rgm@gnu.org for non-CLASH_DETECTION platforms.
[emacs.git] / src / ChangeLog
blob2d46e42e17b0cd2285faea528e2e06d9c5285dcd
1 2010-10-29  Eli Zaretskii  <eliz@gnu.org>
3         * emacs.c (main): Call syms_of_filelock unconditionally.
5         * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
6         clause, but keep part of it conditioned on CLASH_DETECTION.
8 2010-10-29  Glenn Morris  <rgm@gnu.org>
10         * nsfns.m (Fx-display-save-under, Fx-open-connection)
11         (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
12         * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
13         * xfns.c (Fxw_color_defined_p, Fx_open_connection):
14         Sync docs between X, W32, NS.
16         * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
17         * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
19 2010-10-26  Juanma Barranquero  <lekktu@gmail.com>
21         * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
22         otherwise, bootstrapping on Windows fails to compile macroexp.el.
24 2010-10-26  Eli Zaretskii  <eliz@gnu.org>
26         * cmds.c (internal_self_insert): Don't insert if argument N is
27         zero or negative.  (Bug#7281)
29 2010-10-26  Jan Djärv  <jan.h.d@swipnet.se>
31         * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
33 2010-10-25  Glenn Morris  <rgm@gnu.org>
35         * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
37 2010-10-24  Glenn Morris  <rgm@gnu.org>
39         * w32fns.c (Fx_synchronize, Fx_change_window_property)
40         (Fx_window_property, Fx_file_dialog):
41         * xfns.c (Fx_synchronize, Fx_change_window_property)
42         (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
44 2010-10-24  Chong Yidong  <cyd@stupidchicken.com>
46         * xterm.c (x_connection_closed): Kill Emacs unconditionally.
48 2010-10-24  Eli Zaretskii  <eliz@gnu.org>
50         * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
52         * dispnew.c (syms_of_display) <initial-window-system, window-system>:
53         Deprecate use as a boolean flag.
55 2010-10-24  Jim Meyering  <jim@meyering.net>
57         * emacs.c (argmatch): Don't treat "--" as "--chdir".
59 2010-10-24  Glenn Morris  <rgm@gnu.org>
61         * w16select.c (syms_of_win16select) <selection-coding-system>:
62         <next-selection-coding-system>:
63         * w32select.c (syms_of_w32select) <selection-coding-system>:
64         <next-selection-coding-system>:
65         Sync docs with select.el.
67         * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
68         Lisp version.
70         * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
71         Sync doc with the xterm.c version.
73         * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
74         * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
76 2010-10-23  Glenn Morris  <rgm@gnu.org>
78         * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
79         * frame.c (syms_of_frame) <menu-bar-mode>:
80         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
81         <hourglass-delay>: Sync docs with Lisp.
83 2010-10-23  Eli Zaretskii  <eliz@gnu.org>
85         Implement mouse highlight for bidi-reordered lines.
87         * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
88         (mouse_face_from_string_pos): New function, replaces
89         fast_find_string_pos.
90         (note_mouse_highlight): Call it instead of fast_find_string_pos.
91         (note_mode_line_or_margin_highlight): Support bidi-reordered
92         strings and R2L glyph rows.  Fix comments.
93         (note_mouse_highlight): When bidi reordering is turned on in a
94         buffer, call next-single-property-change and
95         previous-single-property-change with last argument nil.  Clear
96         mouse highlight when mouse pointer is in a R2L row on the stretch
97         glyph that stands for no text beyond the line end.
98         (row_containing_pos): Don't return too early when CHARPOS is in a
99         bidi-reordered continued line.  Return immediately when the first
100         hit is found in a line that is not continued, or when an exact
101         match for CHARPOS is found.
102         (rows_from_pos_range): New function.
103         (mouse_face_from_buffer_pos): Use it instead of calling
104         row_containing_pos for START_CHARPOS and END_CHARPOS.  Rewrite the
105         function to support mouse highlight in bidi-reordered lines and
106         not to assume that START_CHARPOS is always in mouse_face_beg_row.
107         If necessary, swap mouse_face_beg_row and mouse_face_end_row so
108         that the former is always above the latter or identical to it.
109         (show_mouse_face): Support drawing highlighted R2L lines.
110         (coords_in_mouse_face_p): New function, bidi-aware.
111         (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
112         Call it instead of comparing with mouse-face members of dpyinfo.
113         (note_mode_line_or_margin_highlight): Fix confusingly swapped
114         usage of hpos and vpos.
116 2010-10-22  Jan Djärv  <jan.h.d@swipnet.se>
118         * xrdb.c: Include keyboard.h for MOTIF.
120         * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
121         MOTIF (Bug#7263).
123         * xfns.c: Include Xm/TextF and Xm/List.
124         (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
125         ANSI prototypes.
127 2010-10-22  Glenn Morris  <rgm@gnu.org>
129         * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
130         Remove ccl and duplicate mouse.
132 2010-10-21  Chong Yidong  <cyd@stupidchicken.com>
134         * insdel.c (prepare_to_modify_buffer): Don't set
135         saved-region-selection if modification hooks are disabled.
137 2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
139         * cmds.c (Fdelete_char): Doc fix.
141 2010-10-19  Ken Brown  <kbrown@cornell.edu>
143         * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
145 2010-10-19  Kenichi Handa  <handa@m17n.org>
147         Fix incorrect font metrics when the same font is opened with
148         different pixelsizes.
150         * xftfont.c: Include composite.h.
151         (xftfont_shape): New function.
152         (syms_of_xftfont): Set xftfont_driver.shape.
154 2010-10-18  Julien Danjou  <julien@danjou.info>
156         * frame.c (Fframe_pointer_visible_p):
157         Add `frame-pointer-visible-p' to get the pointer visibility.
159 2010-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
161         * gnutls.c (emacs_gnutls_read): Return 0 if we get a
162         non-"EAGAIN"-like error to signal to Emacs that the socket should
163         be closed.
165 2010-10-15  Eli Zaretskii  <eliz@gnu.org>
167         * unexcoff.c (make_hdr): Fix prototype according to changes in
168         2010-10-03T13:59:56Z!dann@ics.uci.edu.
170         * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
172 2010-10-15  Tassilo Horn  <tassilo@member.fsf.org>
174         * Makefile.in (really-oldXMenu): Fix typo in variable name that
175         made building the X menu fail.
176         (really-oldXMenu): Fix my previous fix.
178 2010-10-14  Damyan Pepper  <damyanp@gmail.com>
180         Fix handling of font properties on Windows (bug#6303).
181         * font.c (font_filter_properties): New function, refactored from
182         ftfont_filter_properties.
183         * font.h (font_filter_properties): Declare.
184         * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
185         * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
186         (w32font_filter_properties): New function.
187         (w32font_driver): Add w32font_filter_properties.
189 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
191         * font.c (Ffont_variation_glyphs):
192         * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
194 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
196         * w32fns.c (w32_wnd_proc, file_dialog_callback):
197         * w32font.c (w32_generic_family):
198         * w32inevt.c (key_event):
199         * w32menu.c (fill_in_menu):
200         * w32proc.c (reader_thread, w32_executable_type, compare_env)
201         (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
202         * w32term.c (w32_read_socket): Make static.
204 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
206         * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
207         prototypes; all callers changed.
209 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
211         * makefile.w32-in (TLIB2): Rename from TLIBW32.
212         (OBJ2): New macro.
213         (WIN32OBJ, FONTOBJ): Remove.
214         (OBJ1): Redistribute object files with OBJ2.
215         (LIBS, $(TEMACS)): Use TLIB2.
216         (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
217         ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
219 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
221         * emacs.c (Vdynamic_library_alist)
222         (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
223         Doc fix.
225         * lisp.h (Vdynamic_library_alist): Declare extern.
227         * image.c (Vimage_library_alist)
228         (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
229         (lookup_image_type): Use Vdynamic_library_alist.
230         (Finit_image_library): Doc fix.
232 2010-10-12  Dan Nicolaescu  <dann@ics.uci.edu>
234         * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
235         (lispdir): Remove trailing /, update all uses.
237 2010-10-12  Jan Djärv  <jan.h.d@swipnet.se>
239         * nsterm.m (Qleft): Declare.
240         (ns_right_alternate_modifier): New variable
241         (NSRightAlternateKeyMask): New define.
242         (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
243         ns_right_alternate_modifier isn't Qleft.
244         (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
245         as emacs modifier for NSRightAlternateKeyMask.
246         (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
248 2010-10-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
250         * gnutls.c (emacs_gnutls_write): If we're trying to write before
251         gnutls is ready, return EAGAIN as the errno.
253 2010-10-10  Dan Nicolaescu  <dann@ics.uci.edu>
255         * vm-limit.c:
256         * unexhp9k800.c:
257         * unexelf.c:
258         * unexaix.c:
259         * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
261         * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
262         (PROFILING_LDFLAGS): Remove, not needed anymore.
264         * Makefile.in: Use $(...) everywhere instead of ${...}
265         (CRT_DIR): Move near potential user.
266         (START_FILE): Move near CRT_DIR, it might use it.
268         * sysdep.c (LPASS8): Remove, unused.
269         (emacs_ospeed): Change from being a global to a local in the only
270         user: init_baud_rate.
272 2010-10-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
274         * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
275         (emacs_gnutls_write): Remove the debuggin fsync call.
276         (emacs_gnutls_read): Return -1 if we got an error from
277         gnutls_read.  This allows us to actually read lots of data from
278         the GnuTLS stream.
279         (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
280         According to the documentation, this is correct, and it seems to
281         make things work.
283 2010-10-09  Chong Yidong  <cyd@stupidchicken.com>
285         * xterm.c (x_draw_relief_rect): Clear corner pixels.
287 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
289         * keyboard.c: Revert last change; it was not intended to be
290         synchronized with the trunk.
292 2010-10-08  Kenichi Handa  <handa@m17n.org>
294         * coding.c (complement_process_encoding_system): Fix previous change.
296 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
298         * dbusbind.c (syms_of_dbusbind): Move putenv call ...
299         (Fdbus_init_bus): ... here.  (Bug#7113)
301 2010-10-08  Glenn Morris  <rgm@gnu.org>
303         * buffer.c (before-change-functions, after-change-functions):
304         Three-year overdue doc fix following 2007-08-13 change.
306 2010-10-08  Kenichi Handa  <handa@m17n.org>
308         * coding.c (coding_inherit_eol_type): If parent doesn't specify
309         eol-format, inherit from the system's default.
310         (complement_process_encoding_system): Make a new coding system
311         inherit the original eol-format.
313 2010-10-08  Kenichi Handa  <handa@m17n.org>
315         * coding.c (complement_process_encoding_system): New function.
317         * coding.h (complement_process_encoding_system): Extern it.
319         * callproc.c (Fcall_process): Complement the coding system for
320         encoding arguments.
321         (Fcall_process_region): Complement the coding system for encoding
322         the input to the process.
324         * process.c (Fstart_process): Complement the coding system for
325         encoding arguments.
326         (send_process): Complement the coding system for encoding what
327         sent to the process.
329 2010-10-08  Kenichi Handa  <handa@m17n.org>
331         * xfont.c (xfont_open): Fix setting of font->average_width from
332         :avgwidth property (Bug#7123).
334 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
336         * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
337         is more portable.
339         * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
340         (kbd_buffer_get_event): ... here. This is needed for cygwin, which
341         has not defined SIGIO.
343 2010-10-08  Chong Yidong  <cyd@stupidchicken.com>
345         * xterm.c (x_draw_relief_rect): If box width is larger than 1,
346         draw the outermost line using the black relief, for legibility.
347         Omit drawing the four corner pixels.
349 2010-10-04  Chong Yidong  <cyd@stupidchicken.com>
351         * keyboard.c (echo_prompt): Function moved into read_key_sequence.
352         (read_key_sequence): Inline echo_prompt.
353         (echo_dash): Add a dash only if key is continued (Bug#7137).
355 2010-10-04  Dan Nicolaescu  <dann@ics.uci.edu>
357         Remove O_RDONLY, O_WRONLY definitions, not needed.
358         * unexcoff.c:
359         * lread.c:
360         * fileio.c:
361         * doc.c:
362         * callproc.c:
363         * alloc.c:
364         * termcap.c: Remove O_RDONLY O_WRONLY definitions.
366 2010-10-03  Teodor Zlatanov  <tzz@lifelogs.com>
368         * gnutls.h (GNUTLS_LOG2): Convenience macro.
370         * gnutls.c: Add property list symbol holders.
371         (emacs_gnutls_handshake): Clarify how sockets are passed to
372         GnuTLS.
373         (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
374         (Fgnutls_boot): Get all parameters from a plist.  Require trustfiles
375         and keyfiles to be a list of file names.  Default to "NORMAL" for
376         the priority string.  Improve logging.
378 2010-10-03  Glenn Morris  <rgm@gnu.org>
380         * fileio.c (Vdirectory_sep_char): Remove.
382 2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
384         * termhooks.h: Remove #ifdef CONSP.
386         * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
388         Include <fcntl.h> unconditionally.
389         * termcap.c:
390         * sysdep.c:
391         * lread.c:
392         * keyboard.c:
393         * filelock.c:
394         * fileio.c:
395         * doc.c:
396         * callproc.c:
397         * alloc.c: Remove include guards for <fcntl.h>, process.c already
398         does it.
400         * process.c: Do not include <sys/wait.h>, syswait.h does it.
402         * sysdep.c (flush_pending_output): Remove code, does not do
403         anything on any platform.
405         Remove unused code.
406         * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
407         select emulation, all systems support select.
408         (set_exclusive_use): Remove, the only user is in an #if 0 block.
409         * process.c (create_process): Remove #if 0 code.
411         Remove unused arguments for unexec.
412         The third one is never used, and the last two are always passed as zero.
413         * emacs.c (unexec): Add declaration.
414         (Fdump_emacs): Only pass the first two arguments to unexec.
415         Simplify #ifdef.
416         * unexw32.c (unexec):
417         * unexsol.c (unexec):
418         * unexhp9k800.c (unexec):
419         * unexcw.c (unexec): Remove the last 3 arguments, unused.
420         * unexelf.c (unexec): Remove the last 3 arguments, unused.
421         (find_section): Use const.
422         * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
423         (unexec_error): Declare it NO_RETURN.
424         * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
425         it as an argument, remove data_start and entry_address arguments, unused.
426         (unexec): Remove bss_start, data_start and
427         entry_address arguments.
428         * unexaix.c (make_hdr): Assume bss_start is always zero, remove
429         it as an argument, remove data_start and entry_address arguments, unused.
430         (unexec): Remove bss_start, data_start and
431         entry_address arguments.
433 2010-10-03  Juanma Barranquero  <lekktu@gmail.com>
435         * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
437         * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
438         (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
439         (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
440         Fix typos in docstrings.
441         (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
442         (Fgnutls_errorp): Doc fix; use ERR for the argument name.
444 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
446         * keyboard.c (command_loop_1): Make sure the mark is really alive
447         before using it (Bug#7044).
449 2010-10-02  Juanma Barranquero  <lekktu@gmail.com>
451         * makefile.w32-in (tags): Rename target to full-tags.
453 2010-10-02  Eli Zaretskii  <eliz@gnu.org>
455         * emacs.c (main): Remove !WINDOWSNT conditional.
456         (Fkill_emacs): Don't mention exemption on MS-Windows.
458 2010-10-02  Glenn Morris  <rgm@gnu.org>
460         * character.c (Fchar_bytes): Remove obsolete function.
461         (syms_of_character): Remove Schar_bytes.
463         * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
464         (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
465         in batch-mode.
466         (Fkill_emacs): Doc fix.  Also run the hook in batch mode.
467         (kill-emacs-hook): Doc fix.
469 2010-10-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
471         * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
472         (parse_region): Reworked to take regions instead of strings, and
473         renamed to reflect that these are the libxml functions.
475 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
477         * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
478         screen dimensions in tty->Wcm.
480         * xdisp.c (set_cursor_from_row): When the row is truncated and
481         point is outside the range of displayed characters, position the
482         cursor inside the scroll margin.  (Bug#6349)
484 2010-10-01  Dan Nicolaescu  <dann@ics.uci.edu>
486         Do not include stdlib.h and string.h, config.h does it.
487         * xfont.c:
488         * w32term.c:
489         * w32reg.c:
490         * w32inevt.c:
491         * w32heap.c:
492         * w32console.c:
493         * w16select.c:
494         * unexsol.c:
495         * term.c:
496         * sound.c:
497         * scroll.c (m):
498         * gtkutil.c:
499         * font.c:
500         * filelock.c:
501         * fileio.c:
502         * dosfns.c:
503         * dbusbind.c:
504         * bidi.c:
505         * callproc.c:
506         * process.c:
507         * msdos.c:
508         * charset.c: Do not include stdlib.h and string.h, config.h does it.
510         * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
512         * process.c: Move #include <pty.h> earlier.
513         (SIGCHLD): Remove conditional definition, syssignal.h defines it.
514         (pty_name): Move definition later.
516         * nsselect.m (syms_of_nsselect):
517         * nsmenu.m (syms_of_nsmenu):
518         * nsfns.m (syms_of_nsfns):
519         * msdos.c (syms_of_msdos):
521         * image.c (syms_of_image):
522         * charset.c (syms_of_charset): Use intern_c_string instead of intern.
524         * point.h: Remove, unused.
526 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
528         * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
529         (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
530         (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
532 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
534         * xml.c (parse_string): Use const.
536 2010-09-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
538         * eval.c (Fbacktrace): Don't overwrite print-level on exit.  Also
539         only override Vprint_level if it isn't already bound, and increase
540         the level to 8 to produce more useful backtraces for bug reports.
542 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
544         * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
546 2010-09-30  Juanma Barranquero  <lekktu@gmail.com>
548         * w32console.c (vga_stdcolor_name): Remove unused function;
549         presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
551 2010-09-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
553         * gnutls.c (emacs_gnutls_handshake): Made into internal function.
554         (Fgnutls_boot): Start the handshake.
555         (emacs_gnutls_read): Perform the handshake from the reader loop.
556         (Fgnutls_boot): Remove some debugging messages.
557         Change indentation throughout to use the Emacs style.
558         (emacs_gnutls_handshake): Cast the fds to something that's
559         possibly the expected length.
560         (emacs_gnutls_write): Return -1 if we try to write before handshake.
562         * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
564         * process.c (make_process): Set the gnutls_p field to zero by
565         default.
566         (read_process_output): Always call the gnutls_read function if the
567         stream is a gnutls stream.
568         (send_process): Ditto for writes.
570         * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
571         or write anything until the state is GNUTLS_STAGE_READY.
572         (Fgnutls_boot): Mark the stream as being a gnutls stream.
574 2010-09-29  Eli Zaretskii  <eliz@gnu.org>
576         * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
577         NEUTRAL_DIR.
578         (handle_invisible_prop, iterate_out_of_display_property)
579         (next_element_from_buffer): If bidi_it.first_elt is set, call
580         bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
581         (Bug#7128)
583         * print.c (print_object): Fix format string and argument types for
584         printing a Lisp_Misc_Marker.
586         * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
587         (load_overlay_strings, get_overlay_strings_1)
588         (get_overlay_strings, forward_to_next_line_start)
589         (back_to_previous_visible_line_start, reseat, reseat_to_string)
590         (get_next_display_element, next_element_from_string)
591         (next_element_from_c_string, next_element_from_buffer)
592         (move_it_vertically_backward, move_it_by_lines, add_to_log)
593         (message_dolog, message_log_check_duplicate, message2_nolog)
594         (message3, message3_nolog, vmessage, set_message, set_message_1)
595         (hscroll_window_tree, text_outside_line_unchanged_p)
596         (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
597         (find_last_unchanged_at_beg_row)
598         (find_first_unchanged_at_end_row, row_containing_pos)
599         (trailing_whitespace_p, display_mode_element, decode_mode_spec)
600         (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
601         EMACS_INT for buffer and string positions.
603         * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
604         (row_containing_pos): Adjust prototype.
606         * lisp.h (pos_visible_p, message2, message2_nolog, message3)
607         (message2_nolog, set_message): Adjust prototypes.
609 2010-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
611         * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
612         (Fgnutls_boot): Use SDATA.
613         (Fgnutls_handshake): Remove unused var `max_log_level'.
615 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
617         * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
618         (Bug#7113)
620 2010-09-27  Jan Djärv  <jan.h.d@swipnet.se>
622         * xgselect.c (xg_select): Clear file descriptors not set from
623         rfds and wfds.
625         * process.c (wait_reading_process_output): Add missing FD_CLR
626         for write_mask (must mirror connect_wait_mask).
628 2010-09-27  Teodor Zlatanov  <tzz@lifelogs.com>
630         * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
631         prefix.
632         (Fgnutls_boot): Use changed process members.  Use log level with a
633         function parameter to set it.  Bring back Emacs-level debugging
634         messages at log level 1 and 2.
636         * process.c (make_process): Initialize gnutls_log_level.
638         * process.h: Add gnutls_log_level and rename x509_cred and
639         anon_cred to have the gnutls_ prefix for consistency.
641         * gnutls.h (GNUTLS_LOG): Add convenience macro.
643 2010-09-27  Juanma Barranquero  <lekktu@gmail.com>
645         * w32.c (g_b_init_get_sid_identifier_authority)
646         (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
647         Remove, not used.
648         (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
649         (init_winsock): Remove useless assignment.
650         (open_process_token, get_token_information, lookup_account_sid)
651         (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
652         (get_security_descriptor_owner, get_security_descriptor_group)
653         (is_valid_sid, equal_sid, get_length_sid, copy_sid)
654         (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
655         (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
656         (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
657         (unc_volume_file_attributes, convert_from_time_t)
658         (create_toolhelp32_snapshot, process32_first, process32_next)
659         (open_thread_token, impersonate_self, revert_to_self)
660         (get_process_memory_info, get_process_working_set_size)
661         (global_memory_status, global_memory_status_ex, socket_to_fd)
662         (shutdown_handler): Make static.
664 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
666         * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
667         (xd_pending_messages): Functions removed.
668         (xd_read_queued_messages): Add parameters fd, *data, for_read in
669         order to be compatible with add_read_fd.  Determine bus from data,
670         and call xd_read_message just for this bus.
671         (xd_add_watch): Use xd_read_queued_messages as callback function.
672         Add data.
674         * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
676 2010-09-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
678         * gnutls.c (gnutls_log_function): Added more debugging.
679         (emacs_gnutls_read): Don't infloop while reading.
681 2010-09-27  Kenichi Handa  <handa@m17n.org>
683         These changes are to remove restriction on the number of glyphs in
684         one composition.
686         * dispextern.h (struct glyph): Change the member "slice" to union.
687         Remove u.cmp.from and u.cmp.to.  Give more bits to u.cmp.id.
688         (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
690         * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
691         instead of glyph->slice.
692         (marginal_area_string): Likewise.
694         * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
695         glyph->u.cmp.
696         (append_composite_glyph): Likewise.
698         * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
699         glyph->u.cmp.
700         (fill_gstring_glyph_string, x_get_glyph_overhangs)
701         (append_composite_glyph): Likewise.
702         (fill_image_glyph_string): Use glyph->slice.img instead of
703         glyph->slice.
704         (append_glyph, produce_image_glyph, append_stretch_glyph)
705         (note_mouse_highlight): Likewise.
707 2010-09-26  Jan Djärv  <jan.h.d@swipnet.se>
709         * process.c (add_keyboard_wait_descriptor)
710         (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
711         (wait_reading_process_output): Don't pass write_mask to select
712         if SELECT_CANT_DO_WRITE_MASK is defined.
713         (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
715         * process.h (add_read_fd, delete_read_fd, add_write_fd)
716         (delete_write_fd): Declare.
718         * process.c (gpm_wait_mask, max_gpm_desc): Remove.
719         (write_mask): New variable.
720         (max_input_desc): Renamed from max_keyboard_desc.
721         (fd_callback_info): New variable.
722         (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
723         New functions.
724         (Fmake_network_process): FD_SET write_mask.
725         (deactivate_process): FD_CLR write_mask.
726         (wait_reading_process_output): Connecting renamed to Writeok.
727         check_connect removed.  check_write is new.  Remove references to gpm.
728         Use Writeok/check_write unconditionally (i.e. no #ifdef
729         NON_BLOCKING_CONNECT) instead of Connecting.
730         Loop over file descriptors and call callbacks in fd_callback_info
731         if file descriptor is ready for I/O.
732         (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
733         (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
734         (keyboard_bit_set): Use max_input_desc.
735         (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
736         Remove #ifdef subprocesses.  Use max_input_desc.
737         (init_process): Initialize write_mask and fd_callback_info.
739         * keyboard.c (readable_events, gobble_input): Remove DBUS code.
741         * dbusbind.c: Include process.h.
742         (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
743         (xd_read_message_1): New functions.
744         (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
745         Handle watch for both read and write.
746         (Fdbus_init_bus): Also register xd_toggle_watch.
747         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
748         (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
749         to dbus_connection_flush.
750         (xd_read_message): Move most of the code to xd_read_message_1.
751         Call xd_read_message_1 until status is COMPLETE.
753 2010-09-26  Dan Nicolaescu  <dann@ics.uci.edu>
755         * term.c: Do not include sys/ioctl.h, not needed.
756         (init_tty): Reorder code to reduce the number of #ifdefs.
757         No code changes.
759 2010-09-26  Teodor Zlatanov  <tzz@lifelogs.com>
761         * process.h: Set up GnuTLS support.
763         * process.c (make_process, Fstart_process)
764         (read_process_output, send_process): Set up GnuTLS support for
765         process input/output file descriptors.
767         * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
769         * gnutls.c: The source code for GnuTLS support in Emacs.
771         * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
773         * config.in: Set up GnuTLS support.
775         * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
776         (obj, LIBES): Set up GnuTLS support.
778 2010-09-26  Juanma Barranquero  <lekktu@gmail.com>
780         * w32.c (get_emacs_configuration_options): Fix previous change.
782 2010-09-25  Chong Yidong  <cyd@stupidchicken.com>
784         * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
785         alive before using it (Bug#6977).
787 2010-09-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
789         * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
791         * dispextern.h: EMACS_INT/int fixup.
793         * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
794         fixup.
796         * xrdb.c (magic_file_p): EMACS_INT/int fixup.
798 2010-09-25  Eli Zaretskii  <eliz@gnu.org>
800         * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
801         (Fselect_window, window_scroll_pixel_based)
802         (window_scroll_line_based, Frecenter, Fset_window_configuration):
803         Use EMACS_INT for buffer positions.
805         * textprop.c (validate_interval_range, interval_of)
806         (property_change_between_p, Fadd_text_properties)
807         (set_text_properties_1, Fremove_text_properties)
808         (Fremove_list_of_text_properties, Ftext_property_any)
809         (Ftext_property_not_all, copy_text_properties)
810         (text_property_list, extend_property_ranges)
811         (verify_interval_modification): Use EMACS_INT for buffer
812         positions.
814         * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
815         for buffer positions.
817         * process.c (read_process_output, send_process)
818         (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
819         and string positions and size.
821         * print.c (print_object, print_string, strout): Use EMACS_INT for
822         string indices.
824         * minibuf.c (string_to_object): Use EMACS_INT for string position
825         and size.
827         * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
829         * lread.c <read_from_string_index, read_from_string_index_byte>
830         <read_from_string_limit, readchar_count>: Define EMACS_INT.
831         (readchar, unreadchar, read_internal_start): Use EMACS_INT for
832         buffer positions and string length.
834         * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
835         EMACS_INT.
836         (echo_truncate, adjust_point_for_property, read_char)
837         (gen_help_event, make_lispy_event, modify_event_symbol)
838         (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
839         for buffer positions and string length.
841         * keyboard.h (gen_help_event): Adjust prototype.
843         * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
845         * commands.h <last_point_position>: Declare EMACS_INT.
847         * xdisp.c <help_echo_pos>: Define as EMACS_INT.
848         (truncate_echo_area): Accept EMACS_INT argument.
850         * dispextern.h <help_echo_pos>: Declare EMACS_INT.
852         * lisp.h (truncate_echo_area): Adjust prototype.
854         * composite.c (composition_adjust_point): Return EMACS_INT.
856         * composite.h (composition_adjust_point): Adjust prototype.
858 2010-09-25  Juanma Barranquero  <lekktu@gmail.com>
860         * process.c (Fmake_network_process): When arg :host is 'local,
861         use address 127.0.0.1, not name "localhost".  (Bug#6781)
863 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
865         * indent.c (Fcurrent_indentation, indented_beyond_p)
866         (compute_motion): Use EMACS_INT for buffer position variables.
868         * lisp.h (indented_beyond_p): Adjust prototype.
870         * buffer.c (overlay_strings): Return EMACS_INT.
872         * buffer.h (overlay_strings): Adjust prototype.
874         * region-cache.c (pp_cache): Adjust format to arguments.
876         * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
877         (call_debugger): Use EMACS_INT for specpdl_size related variables.
878         (verror): Use EMACS_INT for size of allocated buffer.
880         * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
881         positions.
883         * xdisp.c (redisplay_internal, try_window_id)
884         (set_cursor_from_row, find_first_unchanged_at_end_row): Use
885         EMACS_INT for buffer positions.
887         * dispextern.h (set_cursor_from_row): Adjust prototype.
889         * dispnew.c (increment_matrix_positions)
890         (increment_row_positions, copy_glyph_row_contents)
891         (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
892         positions.
894         * dispextern.h (mode_line_string, marginal_area_string)
895         (increment_matrix_positions, increment_row_positions): Adjust
896         prototypes.
898         * data.c (Faref, Faset): Use EMACS_INT for string length and
899         positions.
901         * cmds.c (internal_self_insert): Use EMACS_INT for the count of
902         characters to insert.
904         * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
905         position and size.
907         * syntax.c (scan_words, update_syntax_table)
908         (prev_char_comend_first, back_comment, skip_chars)
909         (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
910         EMACS_INT for buffer and string positions.
912         * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
914         * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
915         positions.
917 2010-09-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
919         * scroll.c (calculate_scrolling, line_ins_del)
920         (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
921         conversion.
923         * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
924         (region_cache_backward, region_cache_forward)
925         (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
926         conversion.
928         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
930         * eval.c (verror): Fix EMACS_INT/int conversion.
932         * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
933         (print_preprocess, print_check_string_charset_prop)
934         (print_object): Fix EMACS_INT/int conversion.
936         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
938 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
940         * callproc.c (Fcall_process): Use EMACS_INT for count of
941         characters read from the subprocess.
943         * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
944         positions.
945         (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
946         positions.
948         * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
949         (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
950         length.
951         (advance_to_char_boundary, Fset_buffer_multibyte)
952         (overlays_at, overlays_in, mouse_face_overlay_overlaps)
953         (overlay_touches_p, record_overlay_string, overlay_strings)
954         (recenter_overlay_lists, fix_start_end_in_overlays)
955         (modify_overlay, Fmove_overlay, report_overlay_modification)
956         (evaporate_overlays): Use EMACS_INT for buffer positions.
958         * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
959         prototypes.
961         * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
962         positions.
964         * fns.c (Fcompare_strings, Fstring_lessp, concat)
965         (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
966         (Fsubstring_no_properties, substring_both, Ffillarray)
967         (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
968         (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
969         (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
970         (Fmd5): Use EMACS_INT for buffer and string positions and length
971         variables and arguments.
973         * lisp.h (substring_both): Adjust prototype.
975 2010-09-24  Juanma Barranquero  <lekktu@gmail.com>
977         Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
978         * w32fns.c (clipboard_sequence_fn): Don't declare.
979         (globals_of_w32fns): Don't initialize it.
981 2010-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>
983         * syntax.c (back_comment): Detect the case where a 1-char comment
984         starter is also the 2nd char of a 2-char comment ender.
986 2010-09-23  Jan Djärv  <jan.h.d@swipnet.se>
988         * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
990 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
992         * eval.c (verror): EMACS_INT/int cleanup.
994         * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
995         unwind_protect more than 2GB worth of functions.
997         * editfns.c (Finsert_char): EMACS_INT/int cleanup.
999         * lisp.h: Have oblookup take EMACS_INT to allow interning big
1000         string and avoid compiler warnings.
1001         (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1002         all users.
1004         * lread.c (oblookup): EMACS_INT/int cleanup.
1006         * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1008 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
1010         * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1012         * lisp.h (clip_to_bounds): Adjust prototype.
1014         * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1016 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1018         * lisp.h: doprnt.c EMACS_INT/int cleanup.
1020         * doprnt.c (doprnt): EMACS_INT/int cleanup.
1022         * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1023         cleanup.
1025         * lisp.h: Change the definition of all marker.c functions that
1026         take and return buffer stuff to be EMACS_INT instead of int.
1028         * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1029         (buf_charpos_to_bytepos, bytepos_to_charpos)
1030         (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1031         (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1032         for all buffer positions.
1034 2010-09-23  Chong Yidong  <cyd@stupidchicken.com>
1036         * intervals.c (traverse_intervals, rotate_right, rotate_left)
1037         (split_interval_right, find_interval, next_interval)
1038         (delete_node, delete_interval, interval_deletion_adjustment)
1039         (adjust_intervals_for_deletion, merge_interval_right)
1040         (merge_interval_left, graft_intervals_into_buffer)
1041         (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1043         * intervals.h (traverse_intervals): Update prototype.
1045 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
1047         * indent.c (compute_motion): Use EMACS_INT for arguments to
1048         region_cache_forward.
1050         * region-cache.c (struct boundary, struct region_cache): Use
1051         EMACS_INT for positions.
1052         (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1053         (delete_cache_boundaries, set_cache_region)
1054         (invalidate_region_cache, know_region_cache)
1055         (region_cache_forward, region_cache_backward, pp_cache): Use
1056         EMACS_INT for buffer positions.
1058         * region-cache.h (know_region_cache, invalidate_region_cache)
1059         (region_cache_forward, region_cache_backward): Adjust prototypes.
1061         * search.c (string_match_1, fast_c_string_match_ignore_case)
1062         (looking_at_1, scan_buffer, scan_newline)
1063         (find_next_newline_no_quit, find_before_next_newline)
1064         (search_command, trivial_regexp_p, search_buffer, simple_search)
1065         (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1066         and string positions and length.
1068         * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1069         (find_before_next_newline): Adjust prototypes.
1071         * editfns.c (transpose_markers, update_buffer_properties)
1072         (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1073         (get_pos_property, Fconstrain_to_field)
1074         (Fline_beginning_position, Fline_end_position, Fprevious_char)
1075         (Fchar_after, Fchar_before, Finsert_char)
1076         (Finsert_buffer_substring, Fcompare_buffer_substrings)
1077         (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1078         EMACS_INT for buffer and string position variables.
1079         (Finsert_char): Protect against too large insertions.
1081         * lisp.h (clip_to_bounds): Adjust prototype.
1083         * intervals.c (traverse_intervals, rotate_right, rotate_left)
1084         (balance_an_interval, split_interval_right, split_interval_left)
1085         (find_interval, next_interval, update_interval)
1086         (adjust_intervals_for_insertion, delete_node, delete_interval)
1087         (interval_deletion_adjustment, adjust_intervals_for_deletion)
1088         (offset_intervals, merge_interval_right, merge_interval_left)
1089         (graft_intervals_into_buffer, adjust_for_invis_intang)
1090         (move_if_not_intangible, get_local_map, copy_intervals)
1091         (copy_intervals_to_string, compare_string_intervals)
1092         (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
1093         and for interval tree size.
1095         * intervals.h (traverse_intervals, split_interval_right)
1096         (split_interval_left, find_interval, offset_intervals)
1097         (graft_intervals_into_buffer, copy_intervals)
1098         (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1099         (update_interval): Adjust prototypes.
1101         * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1102         Use EMACS_INT for buffer position variables and arguments.
1104         * composite.c (get_composition_id, find_composition)
1105         (run_composition_function, compose_text)
1106         (composition_gstring_width, autocmp_chars)
1107         (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1108         for buffer positions and string length variables and arguments.
1110         * composite.h (get_composition_id, find_composition, compose_text)
1111         (composition_gstring_width): Adjust prototypes.
1113         * editfns.c (Fformat): Use EMACS_INT for string size variables.
1115         * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1116         EMACS_INT for string positions.
1118         * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1119         position arguments.
1121         * intervals.h (get_property_and_range): Adjust prototype.
1123         * character.c (parse_str_as_multibyte, str_as_multibyte)
1124         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1125         (string_count_byte8, string_escape_byte8, c_string_width)
1126         (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1127         EMACS_INT for string length variables and arguments.
1129         * character.h (parse_str_as_multibyte, str_as_multibyte)
1130         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1131         (c_string_width, strwidth, lisp_string_width): Adjust
1132         prototypes.
1134         * font.c (font_intern_prop): Use EMACS_INT for string length
1135         variables.
1137         * font.c (font_intern_prop): Use EMACS_INT for string length
1138         variables.
1140         * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1141         variables.
1143         * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1144         (Fmake_string): Protect against too large strings.
1145         (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1146         (live_misc_p): Use ptrdiff_t instead of int for pointer
1147         differences.
1148         (string_bytes, check_sblock, check_string_free_list)
1149         (allocate_string_data, compact_small_strings, Fmake_string)
1150         (Fmake_bool_vector, make_string, make_unibyte_string)
1151         (make_multibyte_string, make_string_from_bytes)
1152         (make_specified_string_string, Fmake_list, Fmake_vector): Use
1153         EMACS_INT for string length variables and arguments.
1154         (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1155         (Fpurecopy): Use EMACS_INT for string size.
1156         (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1157         for vector size.
1159         * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1160         (make_string_from_bytes, make_specified_string_string)
1161         (make_pure_string, string_bytes, check_point_in_composition):
1162         Adjust prototypes.
1164 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
1166         * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1167         (check_translation): Use EMACS_INT for buffer positions and
1168         length.
1170         * undo.c (record_marker_adjustment, record_delete)
1171         (record_change, record_point, record_insert)
1172         (record_property_change, Fprimitive_undo): Use EMACS_INT for
1173         buffer positions.
1175         * lisp.h (record_marker_adjustment, record_delete)
1176         (record_change, record_point, record_insert)
1177         (record_property_change, Fprimitive_undo): Adjust prototypes.
1179 2010-09-22  Juanma Barranquero  <lekktu@gmail.com>
1180             Eli Zaretskii  <eliz@gnu.org>
1182         * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1184 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
1186         * minibuf.c (Fminibuffer_contents)
1187         (Fminibuffer_contents_no_properties)
1188         (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1189         positions.
1191         * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1192         mark.
1194         * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1195         (allocate_string_data): Accept EMACS_INT for string length.
1197         * editfns.c (Ffield_string, Ffield_string_no_properties)
1198         (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1199         (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1200         (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1201         (Ffield_end): Use EMACS_INT for buffer positions.
1203         * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1204         point with mark.
1206         * lisp.h (allocate_string_data, make_uninit_string)
1207         (make_uninit_multibyte_string, make_buffer_string)
1208         (make_buffer_string_both): Adjust prototypes.
1210 2010-09-22  Chong Yidong  <cyd@stupidchicken.com>
1212         * xml.c: Switch to GNU indentation.
1213         (make_dom): Change parse tree format to match xml.el.
1214         (Fxml_parse_html_string_internal): Rename from html-parse-string.
1215         (Fxml_parse_string_internal): Rename from xml-parse-string.
1217 2010-09-22  Kenichi Handa  <handa@m17n.org>
1219         * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1220         only if we are not at a composition.
1221         (set_iterator_to_next): Give it->end_charpos to
1222         composition_compute_stop_pos.
1223         (set_iterator_to_next, next_element_from_buffer): Likewise.
1225         * dispnew.c (buffer_posn_from_coords): Fix position when the
1226         current display element is a grapheme cluster in bidi-reordered
1227         region.
1229 2010-09-21  Ari Roponen  <ari.roponen@gmail.com>  (tiny change)
1231         * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1232         the regions may overlap.
1234 2010-09-21  Juanma Barranquero  <lekktu@gmail.com>
1236         * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1238 2010-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
1240         * emacs.c: Do not include sys/ioctl.h, not needed.
1242         * doprnt.c: Do not include stdlib.h, config.h does it.
1243         Move #include before macro definition.
1245 2010-09-20  Dan Nicolaescu  <dann@ics.uci.edu>
1247         * Makefile.in (temacs): Link using $(CC) not $(LD).
1248         (LD_FIRSTFLAG): Define using autoconf.
1249         (LD): Remove.
1251         Remove HAVE_TERMIOS definitions.
1252         * s/usg5-4-common.h (HAVE_TERMIOS):
1253         * s/template.h (HAVE_TERMIOS):
1254         * s/gnu-linux.h (HAVE_TERMIOS):
1255         * s/darwin.h (HAVE_TERMIOS):
1256         * s/cygwin.h (HAVE_TERMIOS):
1257         * s/bsd-common.h (HAVE_TERMIOS):
1258         * s/aix4-2.h (HAVE_TERMIOS):
1259         * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1260         defined on all non-MS platforms.
1261         (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1263         * xterm.c (xt_action_hook): Use const.
1265 2010-09-20  Juanma Barranquero  <lekktu@gmail.com>
1267         Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1268         * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1269         (gethostname) [!HAVE_SOCKETS]: Remove.
1270         (SOCK_REPLACE_HANDLE): Remove macro.
1271         (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1272         (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1273         * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1274         (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1276 2010-09-18  Eli Zaretskii  <eliz@gnu.org>
1278         * deps.mk (xml.o): Add dependencies.
1280         * xdisp.c (Fcurrent_bidi_paragraph_direction):
1281         Call bidi_paragraph_init with NO_DEFAULT_P non-zero.  (Bug#7038)
1283         * bidi.c (bidi_paragraph_init): Accept an additional argument
1284         NO_DEFAULT_P; all callers changed.  If NO_DEFAULT_P is non-zero,
1285         search back until a paragraph with a strong directional character
1286         is found, and use that to determine paragraph's base direction.
1288         * dispextern.h (bidi_paragraph_init): Update prototype.
1290 2010-09-17  Eli Zaretskii  <eliz@gnu.org>
1292         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1293         of w32api >= 3.15.  (Bug#6989)
1295 2010-09-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1297         * process.c (wait_reading_process_output): Don't message about
1298         accept-process-output unless the time limit really is zero.
1300 2010-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1302         * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1303         int/Lisp_Object mixup).
1305 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
1307         * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1308         not HELP.
1310 2010-09-17  Stephen Berman  <stephen.berman@gmx.net>
1312         * frame.c (Ftool_bar_pixel_width): New function to expose tool
1313         bar's pixel width to Lisp (Bug#7048).
1315 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
1317         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1319 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
1321         * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1322         with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1324 2010-09-17  Kenichi Handa  <handa@m17n.org>
1326         * ftfont.c (ftfont_check_otf): Fix previous change.
1328 2010-09-14  Kenichi Handa  <handa@m17n.org>
1330         * ftfont.c (ftfont_check_otf): Fix the case of checking just
1331         existence of GSUB or GPOS.
1333 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
1335         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1337 2010-09-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1339         * xml.c (parse_buffer): Renamed to parse_string(), since that's
1340         what it does.
1341         (parse_string): Return nil when the document can't be parsed.
1343 2010-09-14  Jan Djärv  <jan.h.d@swipnet.se>
1345         * xterm.c (get_current_vm_state): New function.
1346         (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1347         want_fullscreen so set_wm_state calls are few (Bug#7013).
1348         (x_handle_net_wm_state): Move code to get_current_vm_state and
1349         call that function.
1351 2010-09-14  Courtney Bane  <emacs-bugs-7626@cbane.org>  (tiny change)
1353         * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1355 2010-09-14  Kenichi Handa  <handa@m17n.org>
1357         * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1358         we may use designation or locking-shift.
1360 2010-09-14  Kenichi Handa  <handa@m17n.org>
1362         * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1363         sequence when the source is multibyte.
1365 2010-09-14  Andreas Schwab  <schwab@linux-m68k.org>
1367         * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1368         Don't make first argument optional.  Doc fix.
1370 2010-09-14  Leo  <sdl.web@gmail.com>  (tiny change)
1372         * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1373         parameters for the doc string.
1375 2010-09-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1377         * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1379 2010-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1381         * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1382         (syms_of_fns): Don't defsubr Sy_or_n_p.
1383         * lisp.h: Don't declare Fy_or_n_p.
1384         * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1386 2010-09-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1388         * xml.c (Fxml_parse_buffer): New function to parse XML files.
1390 2010-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1392         * xml.c: New file.
1393         (Fhtml_parse_buffer): New function to interface to the libxml2
1394         html parsing function.
1396 2010-09-05  Juanma Barranquero  <lekktu@gmail.com>
1398         * biditype.h: Regenerate.
1400 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
1402         * nsimage.m (ns_load_image): Check argument types.
1404         * image.c: Remove all uses of gcpro.
1405         (xpm_load): Check all lisp types.
1406         (pbm_load): Likewise.
1407         (png_load): Likewise.
1408         (jpeg_load): Likewise.
1409         (tiff_load): Likewise.
1410         (gif_load): Likewise.
1411         (imagemagick_load_image): Likewise.
1412         (imagemagick_load): Likewise.
1413         (svg_load): Likewise.
1414         (gs_load): Likewise.
1416 2010-09-04  Eli Zaretskii  <eliz@gnu.org>
1418         * w32uniscribe.c (uniscribe_shape): Update commentary.  Don't
1419         try to reorder grapheme clusters, since LGSTRING should always
1420         hold them in the logical order.
1421         (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1422         return glyph codes in the logical order.
1424 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
1426         * image.c (imagemagick_image_p): Replace bcopy by memcpy.
1427         (imagemagick_load_image): Fix type mismatch.
1428         (Fimagemagick_types): Likewise.  Doc fix.
1430 2010-09-02  Jan Djärv  <jan.h.d@swipnet.se>
1432         * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1434         * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1436         * xselect.c: Remove declaration of cut-buffer objects and functions.
1437         (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1438         (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1439         (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1440         (Fx_rotate_cut_buffers_internal): Remove.
1441         (syms_of_xselect): Remove defsubr of above.
1442         Remove intern of QCUT_BUFFERn.
1444 2010-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1446         * cmds.c (Vblink_paren_function): Remove.
1447         (internal_self_insert): Make it insert N chars at a time.
1448         Don't call blink-paren-function.
1449         (Fself_insert_command): Adjust accordingly.
1450         (syms_of_cmds): Don't declare blink-paren-function.
1452 2010-08-31  Kenichi Handa  <handa@m17n.org>
1454         * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1455         characters.
1457         * term.c (encode_terminal_code): Fix the previous change.
1458         (produce_glyphs): Don't set it->char_to_display here.
1459         Don't handle unibyte-display-via-language-environment here.
1460         (produce_special_glyphs): Set temp_it.char_to_display before
1461         calling produce_glyphs.
1463         * xdisp.c (get_next_display_element): Set it->char_to_display
1464         here.  Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1465         characters.
1466         (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1467         calling PRODUCE_GLYPHS.
1468         (append_space_for_newline): Save and store it->char_to_display.
1469         Set it->char_to_display before calling PRODUCE_GLYPHS.
1470         (extend_face_to_end_of_line): Set it->char_to_display before
1471         calling PRODUCE_GLYPHS.
1472         (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1473         character to its byte value.
1474         (get_char_glyph_code): New function.
1475         (produce_stretch_glyph): Set it2.char_to_display too before
1476         calling x_produce_glyphs.
1477         (x_produce_glyphs): Simplify by using the same code for ASCII and
1478         non-ASCII characters.  Don't set it->char_to_display here.
1479         Don't handle unibyte-display-via-language-environment here.  For a
1480         character of no glyph, use font->space_width instead of FONT_WIDTH.
1482 2010-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
1484         * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1486 2010-08-31  Chong Yidong  <cyd@stupidchicken.com>
1488         * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1490 2010-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
1492         * marker.c (Fcopy_marker): Make the first arg optional.
1494 2010-08-30  Kenichi Handa  <handa@m17n.org>
1496         * composite.c (composition_update_it): Fix computing of
1497         cmp_it->width.
1499 2010-08-29  Kenichi Handa  <handa@m17n.org>
1501         * term.c (encode_terminal_code): Encode byte chars to the
1502         corresponding bytes.
1504 2010-08-29  Jan Djärv  <jan.h.d@swipnet.se>
1506         * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1508 2010-08-26  Kenichi Handa  <handa@m17n.org>
1510         * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1511         on calling composition_compute_stop_pos.
1513 2010-08-25  Kenichi Handa  <handa@m17n.org>
1515         * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1516         :otf.
1518         * composite.c (composition_compute_stop_pos): Don't break
1519         composition at PT.
1520         (composition_reseat_it): Likewise.  Fix calculation of character
1521         position starting a composition.
1522         (Fcomposition_get_gstring): Don't limit the number of components
1523         for automatic composition.
1525 2010-08-25  Kenichi Handa  <handa@m17n.org>
1527         * composite.c (composition_compute_stop_pos): In forward search,
1528         pay attention to the possibility that some character after ENDPOS
1529         will be composed with charactrs before ENDPOS.
1531 2010-08-24  Chong Yidong  <cyd@stupidchicken.com>
1533         * keyboard.c (command_loop_1): Don't clobber primary selection
1534         during handle-switch-frame (Bug#6872).
1536 2010-08-23  Michael Albinus  <michael.albinus@gmx.de>
1538         * dbusbind.c: Accept UNIX domain sockets as bus address.
1539         (Fdbus_close_bus): New function.
1540         (Vdbus_registered_buses): New variable.
1541         (xd_initialize): Implement string as bus address.
1542         (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1543         (Fdbus_get_unique_name, Fdbus_call_method)
1544         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1545         (Fdbus_method_error_internal, Fdbus_send_signal)
1546         (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1547         check.  This is done in xd_initialize_bus.  Adapt doc string, if
1548         necessary.
1549         (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1550         Vdbus_registered_buses.
1551         (Vdbus_registered_objects_table): Create hash.
1553 2010-08-22  Juri Linkov  <juri@jurta.org>
1555         * keyboard.c (Fexecute_extended_command): Move reading a command name
1556         with `completing-read' to a new Elisp function `read-extended-command'.
1557         Call it to read a command to `function'  (bug#5364, bug#5214).
1559 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
1561         * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1563 2010-08-22  Andreas Schwab  <schwab@linux-m68k.org>
1565         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1566         instead of SAFE_ALLOCA.
1568 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
1570         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1571         (Bug#6214).
1573 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
1575         * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1577 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
1579         * doc.c (Fsnarf_documentation): Initialize skip_file before
1580         build-files test.
1582 2010-08-22  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1584         * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1585         New definitions.
1586         (HAVE_TERMIO): Remove.
1588 2010-08-22  Eli Zaretskii  <eliz@gnu.org>
1590         * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1592         * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1593         for w32.
1595         * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1596         it's done in nt/config.nt.
1598         * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1600         * unexcoff.c (report_error, make_hdr, write_segment)
1601         (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1602         Convert argument lists and prototypes to ANSI C.
1603         (make_hdr, write_segment): Remove unused variables.
1604         (unexec): Remove commented-out line.  Initialize `new' to shut up
1605         compiler warnings.
1607 2010-08-22  Dan Nicolaescu  <dann@ics.uci.edu>
1609         Simplify termio code.
1610         All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1611         HAVE_TERMIO code is obsolete.
1612         Replace HAVE_TERMIOS conditionals with !DOS_NT.
1613         * systty.h: Do not define HAVE_TCATTR.
1614         Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1615         Do not define EMACS_HAVE_TTY_PGRP.  Only define
1616         EMACS_GET_TTY_PGRP for !DOS_NT.
1617         * sysdep.c: Include sysselect.h unconditionally.  Do not include
1618         sys/ioctl.h and termios.h, systty.h does it.  Use
1619         HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1620         (init_baud_rate): Remove HAVE_TERMIO code.
1621         (child_setup_tty): Remove HAVE_TERMIO code.
1622         (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1623         and HAVE_LTCHARS code.  Use !DOS_NT instead of HAVE_TCATTR.
1624         (new_ltchars, new_tchars): Remove, unused.
1625         (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1626         code.  Remove special casing for __mips__, it was a no-op.  Remove
1627         HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1628         (init_sys_modes): Remove HPUX special case.
1629         * process.c: Include stdlib.h unconditionally.  Do not include
1630         fcntl.h, systty.h does it.  Remove conditional code for
1631         HAVE_SERIAL, it is always true.
1632         (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1633         always true when SIGNALS_VIA_CHARACTERS is true.
1634         (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1635         !WINDOWSNT means HAVE_TERMIOS.
1636         (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1637         conditional, which is true for all HAVE_TERMIOS systems.
1638         * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1639         instead of HAVE_TERMIOS.
1640         * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1641         EMACS_HAVE_TTY_PGRP.
1642         * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1643         non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1644         anyway.
1646 2010-08-21  Eli Zaretskii  <eliz@gnu.org>
1648         * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1649         mirroring pixel positions.
1651 2010-08-20  Dan Nicolaescu  <dann@ics.uci.edu>
1653         * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1654         write only.
1655         (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1656         malloc_sbrk_used, nothing uses them.
1658         * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1659         defined, unconditionally defined in lisp.h.
1661         * term.c: Do not include <termios.h>, systty.h does it.
1663         * s/unixware.h (HAVE_TCATTR):
1664         * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1665         systty.h defines it when HAVE_TERMIOS is defined.
1667 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
1669         * dispnew.c (buffer_posn_from_coords): Fix last change for text
1670         terminals: add one-character offset for R2L lines.
1672         * emacs.c <emacs_version>: Add a comment regarding
1673         msdos/mainmake.v2's dependency on the syntax of this declaration.
1675 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
1677         * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1678         position for R2L lines by mirroring the pixel position wrt the
1679         text are box.  Improve commentary.
1681 2010-08-20  Andreas Schwab  <schwab@linux-m68k.org>
1683         * image.c (imagemagick_clear_image): Remove debugging output.
1685 2010-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1687         * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1688         (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1689         (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1690         self-insert-face.
1691         (syms_of_cmds): Initialize the new vars.
1693 2010-08-19  Jason Rumney  <jasonr@gnu.org>
1695         * w32menu.c (set_frame_menubar): Remove call to undefined function.
1697         * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1699 2010-08-19  Jan Djärv  <jan.h.d@swipnet.se>
1701         * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1703 2010-08-18  Eli Zaretskii  <eliz@gnu.org>
1705         * xterm.c (x_draw_bar_cursor):
1706         * w32term.c (x_draw_bar_cursor): If the character under cursor is
1707         R2L, draw the bar cursor on its right rather than on its left.
1709 2010-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1711         * eval.c (Fdefmacro): Only obey one declaration.
1713         * casefiddle.c (casify_region): Setup gl_state.
1715 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
1717         * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1719 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
1721         * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1723 2010-08-18  David De La Harpe Golden  <david@harpegolden.net>
1725         * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1726         (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1727         QPRIMARY => NXPrimaryPboard.
1728         (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1729         NXPrimaryPboard => QPRIMARY.
1730         (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1731         NXSecondaryPboard = SecondarySelection.
1732         (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1734 2010-08-18  Joakim Verona  <joakim@verona.se>
1736         * image.c: Add support for ImageMagick.  When HAVE_IMAGEMAGICK is
1737         defined:
1738         (imagemagick_image_p): New function to test for ImageMagic image.
1739         (imagemagick_load): New function to load ImageMagick image.
1740         (imagemagick_load_image): New function, helper for imagemagick_load.
1741         (imagemagick-types): New function.
1742         (Qimagemagick): New Lisp_object.
1743         (imagemagick-render-type): New variable, decides which renderer to use.
1745 2010-08-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1747         * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1748         is a string.
1750 2010-08-17  Jan Djärv  <jan.h.d@swipnet.se>
1752         * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1753         x_set_tool_bar_position handler.
1755 2010-08-17  Eli Zaretskii  <eliz@gnu.org>
1757         * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1758         x_set_tool_bar_position handler, needed to support changes from
1759         2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar.  (Bug#6796)
1761 2010-08-16  Jan Djärv  <jan.h.d@swipnet.se>
1763         * nsselect.m: include keyboard.h for QPRIMARY, remove its
1764         declaration (Bug#6863).
1765         (syms_of_nsselect): Don't intern QPRIMARY.
1767         * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1769         * keyboard.h (QPRIMARY): Declare (Bug#6864).
1771 2010-08-16  Chong Yidong  <cyd@stupidchicken.com>
1773         * keyboard.c (command_loop_1): Avoid setting selection twice,
1774         since it's done in deactivate-mark as well.
1775         (Vselect_active_regions): Change default to t.  Replace `lazy'
1776         with non-default value `only', meaning only set PRIMARY for
1777         temporarily active regions.
1779         * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1780         select-active-regions.
1782 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
1784         * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1785         isn't a string.
1787 2010-08-15  Andreas Schwab  <schwab@linux-m68k.org>
1789         * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1791 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
1793         * keyboard.c (parse_tool_bar_item): malloc buf.
1794         Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1795         new_lbl (Bug#6855).
1797 2010-08-14  Eli Zaretskii  <eliz@gnu.org>
1799         * xterm.c (x_draw_stretch_glyph_string):
1800         * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1801         the cursor on the right edge of the stretch glyph.
1803         * xdisp.c (window_box_right_offset, window_box_right):
1804         Fix commentary.
1806         * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1807         direction when point is inside a run of whitespace characters.
1809         * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1811 2010-08-14  Jason Rumney  <jasonr@gnu.org>
1813         * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1815 2010-08-14  Chong Yidong  <cyd@stupidchicken.com>
1817         * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1819 2010-08-13  Jason Rumney  <jasonr@gnu.org>
1821         * w32menu.c (simple_dialog_show): Use unicode message box if available.
1822         (MessageBoxW_Proc): New function typedef.
1823         (unicode-message-box): New function pointer.
1824         (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1826 2010-08-13  Jan Djärv  <jan.h.d@swipnet.se>
1828         * frame.h (Qtool_bar_position): Declare.
1830         * xfns.c (Fx_create_frame): Call x_default_parameter for
1831         Qtool_bar_position.
1833 2010-08-13  Eli Zaretskii  <eliz@gnu.org>
1835         * unexcoff.c: Remove the parts used when "emacs" is not defined.
1836         (report_error, report_error_1): Ditto.
1837         (write_segment): Remove "#if 0" unused code.
1838         (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1839         NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1840         (start_of_text): Remove unused function (was used only if NO_REMAP
1841         was NOT defined).
1843         * msdos.c (IT_set_face): Fix format string to match argument
1844         types.
1845         (IT_write_glyphs, IT_note_mode_line_highlight)
1846         (IT_set_frame_parameters): Remove unused variables.
1847         (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1848         (IT_set_terminal_modes): Disambiguate expression in if clause.
1849         (Fmsdos_remember_default_colors): Return Qnil.
1850         (IT_set_frame_parameters): Add parens to disambiguate boolean
1851         expression for logging the cursor type to termscript.
1852         (keyboard_layout_list, keypad_translate_map)
1853         (grey_key_translate_map): Add braces in inner initializers.
1854         (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1855         (dos_rawgetc): Remove unused label.
1856         (XMenuActivate): Add braces to remove ambiguous `else'.
1857         (dos_ttraw): Always return a value.
1858         (spawnve): Declare.
1859         (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1861         * dosfns.h (x_set_title): Declare.
1863         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1864         Remove unused variables.
1866         * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1867         variables.
1868         (init_dosfns): Declare get_lim_data.
1869         (system_process_attributes): Declare Fget_internal_run_time.
1871         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1872         list to be consistent with menu.h.
1874         * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1875         warnings due to mixing of "char *" and "const char *".
1877 2010-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1879         Introduce a new comment style "c" flag.
1880         * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1881         (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1882         (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1883         (syntax_prefix_flag_p): New function.
1884         (Fstring_to_syntax): Understand new "c" flag.
1885         (Finternal_describe_syntax_value): Recognize new flag; use the
1886         SYNTAX_FLAGS_* macros.
1887         (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1888         comment style to accomodate the new styles.
1889         (back_comment, forw_comment, Fforward_comment, scan_lists)
1890         (scan_sexps_forward): Update code to obey the new comment style flag.
1892         * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1894         * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1896 2010-08-11  Jan Djärv  <jan.h.d@swipnet.se>
1898         * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1899         first.
1900         (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
1902         * gtkutil.h (xg_check_special_colors): Declare.
1904         * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1905         (xg_create_frame_widgets): Connect theme name changes to
1906         style_changed_cb.
1908         * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1909         (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1910         (x_term_init): Use char[] display_opt and name_opt instead of
1911         string literal.  file is const char*.
1913         * xsmfns.c (NOSPLASH_OPT): Change to char[].
1914         (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1915         props.  Free them at the end.
1917         * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1919         * xrdb.c (get_system_app): Make path const and use char *p for
1920         non-const char.
1922         * xmenu.c (Fx_popup_dialog): error_name is const char*.
1923         (xmenu_show): error parameter is const char **.  pane_string is const
1924         char *.
1925         (button_names): Is const char *.
1926         (xdialog_show): error_name and pane_string is const.
1928         * process.h (synch_process_death): Is const char*.
1930         * w32menu.c (w32_menu_show):
1931         * nsmenu.m (ns_menu_show): error parameter is const char **.
1933         * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1934         is const char **.
1936         * menu.c (Fx_popup_menu): error_name is const.
1938         * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
1939         with unsigned char and XtPointer with void *.
1941         * gtkutil.h: Replace widget_value with struct _widget_value.
1942         (enum button_type, struct _widget_value): Remove and use the one from
1943         keyboard.h.
1945         * gtkutil.c (get_utf8_string): Always return an allocated string.
1946         Parameter is const.
1947         (create_dialog, xg_create_one_menuitem, create_menus)
1948         (xg_item_label_same_p, xg_update_menu_item): Free result from
1949         get_utf8_string.
1950         (xg_separator_p, xg_item_label_same_p): label is const.
1952         * font.h (font_open_by_name): Make name const.
1954         * font.c (font_open_by_name): Make name const.
1956         * floatfns.c (matherr): Use a const char* variable for x->name.
1958         * emacs.c (main): Pass char[] to putenv instead of literal.
1960         * callproc.c (synch_process_death): Make const.
1961         (Fcall_process): Make signame const.
1963         * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1964         (addDisplayItemWithImage): Use const char*.
1966         * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1967         (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1969         * nsfont.m (ns_descriptor_to_entity): Use const char*.
1971         * keyboard.h (_widget_value): name, value and key are const char*.
1973         * unexmacosx.c (unexec_error): Use const char *.
1975 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
1977         * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1978         (font_parse_name, font_open_by_name):
1979         * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1980         (font_parse_name, font_open_by_name): Remove const.
1982 2010-08-09  Andreas Schwab  <schwab@linux-m68k.org>
1984         Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1985         definition.
1987         * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1988         * m/amdx86-64.h: Likewise.
1989         * m/arm.h: Likewise.
1990         * m/hp800.h: Likewise.
1991         * m/ia64.h: Likewise.
1992         * m/ibmrs6000.h: Likewise.
1993         * m/ibms390.h: Likewise.
1994         * m/intel386.h: Likewise.
1995         * m/iris4d.h: Likewise.
1996         * m/m68k.h: Likewise.
1997         * m/macppc.h: Likewise.
1998         * m/mips.h: Likewise.
1999         * m/sh3.h: Likewise.
2000         * m/sparc.h: Likewise.
2001         * m/template.h: Likewise.
2002         * m/vax.h: Likewise.
2003         * m/xtensa.h: Likewise.
2004         * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2005         WORDS_BIG_ENDIAN.
2006         * lisp.h: Likewise.
2007         * md5.c: Likewise.
2008         * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2010 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
2012         Use const char* instead of char*.
2013         Reduce the number of warnings with -Wwrite-strings.
2014         * xrdb.c (get_environ_db, get_system_name):
2015         * unexelf.c (find_section):
2016         * term.c (string_cost, string_cost_one_line, per_line_cost)
2017         (get_named_tty, init_tty):
2018         * sysdep.c (sys_subshell):
2019         * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2020         (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2021         * search.c (Freplace_match):
2022         * process.c (Fmake_network_process, send_process, init_process):
2023         * lread.c (Fload, init_lread):
2024         * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2025         * keyboard.c (parse_tool_bar_item, struct event_head):
2026         * gtkutil.h (xg_get_font_name):
2027         * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2028         (make_widget_for_menu_item, make_menu_item, create_menus)
2029         (xg_make_tool_item):
2030         * font.c (parse_matrix, font_parse_name):
2031         * floatfns.c (rounding_driver, float_error_fn_name):
2032         * filelock.c (get_boot_time_1, lock_file_1):
2033         * fileio.c (barf_or_query_if_file_exists, check_writable):
2034         * editfns.c (get_system_name, get_operating_system_release)
2035         (Fencode_time, Fset_time_zone_rule):
2036         * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2037         * buffer.c (defvar_per_buffer): Use const.
2039 2010-08-08  Kenichi Handa  <handa@m17n.org>
2041         * charset.c: Include <stdlib.h>.
2042         (struct charset_sort_data): New struct.
2043         (charset_compare): New function.
2044         (Fsort_charsets): New function.
2045         (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2047         * coding.c (decode_coding_iso_2022): Fix checking of dimension
2048         number in CTEXT extended segment.
2050 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
2052         * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2053         * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2055 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
2057         * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2058         (Fhash_table_size): Fix typos in docstrings.
2059         (Fmake_hash_table): Doc fix.
2061 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
2063         * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2064         Doc fix (bug#5625).
2066 2010-08-08  Ken Brown  <kbrown@cornell.edu>
2068         * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2069         the MSDOS definition.
2071 2010-08-08  Dan Nicolaescu  <dann@ics.uci.edu>
2073         Use const char* instead of char*.
2074         * xterm.c (x_create_toolkit_scroll_bar):
2075         * xfont.c (xfont_list_pattern):
2076         * xfns.c (x_default_scroll_bar_color_parameter)
2077         (xic_create_fontsetname, x_default_font_parameter)
2078         (x_screen_planes):
2079         * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2080         (store_mode_line_string, decode_mode_spec, display_string):
2081         * menu.c (digest_single_submenu):
2082         * keymap.h (initial_define_key, initial_define_lispy_key):
2083         * keymap.c (initial_define_key, initial_define_lispy_key):
2084         * image.c (image_error, image_keyword):
2085         * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2086         * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2087         * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2088         (ftfont_list, ftfont_match):
2089         * frame.c (frame_parm_table):
2090         * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2091         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2092         (font_add_log, font_deferred_log):
2093         * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2094         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2095         (font_add_log, font_deferred_log):
2096         * emacs.c (argmatch):
2097         * dispextern.h (struct it):
2098         * coding.c (ENCODE_DESIGNATION):
2099         * charset.c (define_charset_internal): Use const.
2101         * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2103         * xrdb.c: Remove include guard.
2104         Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
2105         Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
2106         realloc->xrealloc instead of using #defines.
2108 2010-08-08  Eli Zaretskii  <eliz@gnu.org>
2110         * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
2111         * editfns.c (Fline_beginning_position, Fline_end_position):
2112         State in the doc strings that start and end of line are in the
2113         logical order.
2115         * xdisp.c (display_line): Move the handling of overlay arrow after
2116         the call to find_row_edges.  (Bug#6699)
2118 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
2120         * keyboard.c (command_loop_1):
2121         * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2123 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
2125         * insdel.c (prepare_to_modify_buffer): Save active region text to
2126         Vsaved_region_selection.
2128         * xselect.c (QPRIMARY): Move to keyboard.c.
2130         * keyboard.c (Vselect_active_regions): Move from simple.el.
2131         (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2132         (command_loop_1): Set window selection prior to deactivating the mark.
2134 2010-08-07  Juanma Barranquero  <lekktu@gmail.com>
2136         * alloc.c (lisp_malloc):
2137         * buffer.c (set_buffer_internal, set_buffer_internal_1):
2138         * charset.h (emacs_mule_charset):
2139         * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2140         (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2141         (bitch_at_user):
2142         * lisp.h (Fcheck_coding_system, Fget_text_property)
2143         (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2144         Remove duplicate declarations.
2146 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
2148         * process.c: Simplify include logic.
2150         * keyboard.h (quit_char): Add declaration.
2151         * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
2152         (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2153         Add declarations.
2154         * sysdep.c:
2155         * w32.c: Remove the above declarations.
2157         Remove extern declarations in .c files, .h files have them.
2158         * xterm.c:
2159         * xdisp.c:
2160         * msdos.c:
2161         * image.c:
2162         * gtkutil.c:
2163         * fileio.c:
2164         * eval.c: Remove declarations.
2166         * frame.c (frame_params): Make const.
2168         * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2170         * emacs.c (emacs_copyright, emacs_version): Make static.
2171         (Vinitial_window_system, Vauto_save_list_file_name)
2172         (Vinhibit_redisplay): Remove declarations.
2173         (main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
2174         for AIX.
2176         Use const for some arrays and functions.
2177         * xterm.h (xg_set_icon_from_xpm_data):
2178         * xfns.c (xg_set_icon_from_xpm_data):
2179         * term.c (fkeys):
2180         * keyboard.c (lispy_accent_keys, lispy_function_keys)
2181         (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2182         (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2183         (frame.c frame_parms):
2184         * emacs-icon.h (gnu_xpm_bits):
2185         * callint.c (callint_argfuns): Use const.
2187 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
2189         * sysdep.c: Move include term.h last of includes (Bug#6812).
2191 2010-08-06  Eli Zaretskii  <eliz@gnu.org>
2193         * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2195         * msdos.c (IT_display_cursor): Log cursor position on termscript.
2197         * .gdbinit (pgx): Display the avoid_cursor_p flag.
2199 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
2201         * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2203 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
2205         * xterm.h (x_get_focus_frame): Declare.
2207         * keyboard.h (poll_for_input_1): Unconditionally declare.
2209         * nsterm.h (x_set_menu_bar_lines): Declare.
2211         * window.c: Don't include menu.h, it depends on lots of other .h-files.
2213         * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2215         * window.c: Include menu.h.
2217         * unexmacosx.c (print_region_list, print_regions)
2218         (build_region_list, find_emacs_zone_regions)
2219         (unexec_regions_merge, read_load_commands, dump_it)
2220         (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2222         * term.c: Check HAVE_SYS_IOCTL_H.
2224         * sysdep.c: Check HAVE_TERM_H.
2226         * process.c: Check HAVE_UTIL_H.  Include nsterm.h if HAVE_NS.
2228         * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2229         (ns_ring_bell, ns_defined_color, hide_hourglass)
2230         (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2231         Convert to ANSI C prototypes.
2232         (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2233         before code.
2235         * nsterm.h : Include sysselect.h.
2236         (x_sync, x_get_focus_frame, x_set_mouse_position)
2237         (x_set_mouse_pixel_position, x_make_frame_visible)
2238         (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2239         (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2240         (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2241         (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
2242         Declare.
2244         * nsmenu.m (popup_activated, name_is_separator)
2245         (syms_of_nsmenu): Convert to ANSI C prototypes.
2246         (runMenuAt): Prototypes and move declarations before code.
2248         * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2250         * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2251         prototypes.
2253         * nsfns.m (have_menus_p, ns_display_info_for_name)
2254         (x_set_cursor_type, ns_appkit_version_str)
2255         (ns_appkit_version_int, ns_do_applescript)
2256         (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2257         (syms_of_nsfns): Convert to ANSI C prototypes.
2259         * menu.h (x_set_menu_bar_line): Declare.
2260         (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2262         * lisp.h (fmod_float): Declare.
2264         * image.c (xpm_scan, xpm_make_color_table_v)
2265         (xpm_put_color_table_v, xpm_get_color_table_v)
2266         (xpm_make_color_table_h, xpm_put_color_table_h)
2267         (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2268         (xpm_load): Convert to ANSI C prototypes.
2270         * emacs.c: Include nsterm.h if HAVE_NS.
2272         * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2274 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
2276         * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2277         subprocesses, only MSDOS does not define HAVE_SOCKETS.
2278         (socket_options): Use const char* for name.
2280 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
2282         Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2284         * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2285         Don't declare xmalloc_widget_value and digest_single_submenu.
2287         * w32font.c (Qlatin): Remove declaration.
2289         * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2291         * dired.c (compile_pattern): Restore declaration.
2293 2010-08-05  Dan Nicolaescu  <dann@ics.uci.edu>
2295         Remove extern declarations in .c files, .h files have them.
2296         * data.c:
2297         * dired.c:
2298         * editfns.c:
2299         * filelock.c:
2300         * fns.c:
2301         * font.c:
2302         * fontset.c:
2303         * frame.c:
2304         * fringe.c:
2305         * ftfont.c:
2306         * gtkutil.c:
2307         * indent.c:
2308         * keyboard.c:
2309         * keymap.c:
2310         * lread.c:
2311         * menu.c:
2312         * print.c:
2313         * search.c:
2314         * sound.c:
2315         * window.c:
2316         * xdisp.c:
2317         * xfaces.c:
2318         * xfns.c:
2319         * xfont.c:
2320         * xftfont.c:
2321         * xmenu.c:
2322         * xterm.c: Remove declarations.
2324         Cleanup syssignal.h.
2325         * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2326         (main_thread): Move down to remove #ifdef.
2327         (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2328         Remove conditional definition following unconditional ones.
2330         * lisp.h: Remove HAVE_SHM code, unused.
2331         (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2332         (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2333         (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2334         (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2335         (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2336         (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2337         (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2338         (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2339         (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2340         (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2341         (Qwindow_scroll_functions, Vafter_load_alist)
2342         (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2343         (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2344         (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2345         (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2346         (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2347         (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2348         (initial_argv, last_nonmenu_event, load_in_progress)
2349         (noninteractive_need_newline, scroll_margin): Add declarations.
2351         * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2352         declarations, menu.h has them.
2353         (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2354         (Vinput_method_function, Qinput_method_function)
2355         (Qevent_symbol_element_mask, last_event_timestamp):
2356         * dispextern.h (Voverflow_newline_into_fringe):
2357         * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2358         (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2359         (syms_of_w32font, syms_of_nsfont):
2360         * fontset.h (find_font_encoding, Qlatin):
2361         * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2362         (Vtool_bar_mode, set_frame_menubar):
2363         * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2364         * xterm.h (Qx_gtk_map_stock):
2365         * keymap.h (meta_prefix_char): Add declarations.
2367         * term.c: Remove dead code.
2369         Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2370         * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2371         USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2372         which is what was there before BSD_PGRPS was removed.
2374 2010-08-05  Eli Zaretskii  <eliz@gnu.org>
2376         * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2378         * unexcoff.c: Renamed from unexec.c.
2380 2010-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
2382         * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2384 2010-08-03  Johan Bockgård  <bojohan@gnu.org>
2386         * data.c (Flocal_variable_p): Handle variable aliases correctly.
2387         (Bug#6744)
2389 2010-08-02  Jan Djärv  <jan.h.d@swipnet.se>
2391         * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2392         to TRUE if depth of screen is < 16.
2394         * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2395         USE_GTK_TOOLTIP.
2396         (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2397         (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
2398         (xg_create_frame_widgets): Surround tooltip-related code with ifdef
2399         USE_GTK_TOOLTIP.
2400         (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2402         * xterm.h (USE_GTK_TOOLTIP): New define.
2403         (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2405         * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2406         to Control-D (Bug#6771).
2408 2010-08-02  Juanma Barranquero  <lekktu@gmail.com>
2410         * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2411         Wording by Drew Adams <drew.adams@oracle.com>.
2413 2010-08-01  Jan Djärv  <jan.h.d@swipnet.se>
2415         * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2416         ttip_lbl.
2418         * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2419         calling gtk_widget_queue_draw.
2420         (x_free_frame_resources): Call xg_free_frame_widgets.
2422         * xfns.c (x_gtk_use_system_tooltips): New variable.
2423         (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2424         new gtkutil tooltip functions to show the tooltip.
2425         (Fx_hide_tip): Call xg_hide_tooltip.
2426         (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2428         * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2429         (xg_show_tooltip, xg_hide_tooltip): Declare.
2431         * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
2432         (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2433         New functions.
2434         (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
2435         text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
2436         Remove code that is commented out.
2438 2010-08-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2440         * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2442 2010-07-31  Chong Yidong  <cyd@stupidchicken.com>
2444         * xselect.c (x_own_selection): Use list4.
2446 2010-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
2448         * buffer.c (Qwindow): Do not define, already defined in data.c.
2449         (syms_of_buffer): Do not intern and staticpro Qwindow.  (Bug#6760)
2451 2010-07-29  Chad Brown  <yandros@mit.edu>
2453         Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2454         * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2455         * config.in: Undef HAVE_DIRENT_H.
2456         * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2457         * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2459 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
2461         Rename s/usg5-4.h -> s/usg5-4-common.h.
2462         * s/usg5-4.h: Rename file to ...
2463         * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2464         * s/unixware.h:
2465         * s/sol2-6.h:
2466         * s/irix6-5.h: Update includes accordingly.
2468 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
2470         * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2472         * xterm.h (struct x_output): Add toolbar_top_height,
2473         toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2474         Remove toolbar_height.
2475         If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2476         (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2477         (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2478         (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2480         * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2482         * xfns.c (x_set_tool_bar_position): New function.
2483         (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2484         (x_frame_parm_handlers): Add x_set_tool_bar_position.
2485         (syms_of_xfns): If USE_GTK, provide move-toolbar.
2487         * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2488         and FRAME_TOOLBAR_LEFT_WIDTH.
2490         * gtkutil.h (xg_change_toolbar_position): Declare.
2492         * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2493         (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2494         (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2495         (xg_create_frame_widgets): Create a hobox for placing widgets
2496         vertically.  Use gtk_box_pack_start.
2497         (xg_height_or_width_changed): Renamed from xg_height_changed.
2498         (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2499         (xg_update_frame_menubar, free_frame_menubar): Change to
2500         xg_height_or_width_changed.
2501         (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2502         size correctly.  Remove hardcoded 4, instead use handlebox size -
2503         toolbar size.
2504         (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2505         size correctly.  Use handlebox size + toolbar size as additional size.
2506         (xg_pack_tool_bar): POS is a new parameter.
2507         Set orientation of tool bar based on pos.
2508         Only make handlebox_widget if NULL.
2509         Check if tool bar goes to vbox or hbox depending on pos.
2510         (xg_update_tool_bar_sizes): New function.
2511         (update_frame_tool_bar): Remove old_req, new_req.  Do not get tool bar
2512         height, call xg_update_tool_bar_sizes instead.
2513         (free_frame_tool_bar): Remove from hbox or vbox depending on
2514         toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2515         (xg_change_toolbar_position): New function.
2517         * frame.h (struct frame): Add tool_bar_position.
2518         (Qbottom): Declare.
2520         * frame.c (Qtool_bar_position): New variable.
2521         (make_frame): Set tool_bar_position to Qtop.
2522         (frame_parms): Add tool-bar-position.
2523         (x_report_frame_params): Store tool_bar_position.
2524         (x_set_fringe_width): Reset wm size hint after fringe changes.
2526 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
2528         Make lisp_time_argument declaration work on all systems.
2529         * lisp.h (lisp_time_argument): Move declaration ...
2530         * systime.h (lisp_time_argument): ... here
2531         * editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)
2533 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
2535         * vm-limit.c (POINTER): Add typedef for it.
2536         (start_of_data): Change return type from POINTER to char *.
2538         * frame.h (Qtty_color_mode): Move declaration out of ifdef
2539         HAVE_WINDOW_SYSTEM.
2541 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
2543         * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2544         Remove reference to __osf__, unused.
2546         * mem-limits.h: Remove duplicated includes.
2547         (NULL): Remove definition, unused.
2548         (POINTER): Remove definition.
2549         (start_of_data): Use char* in prototype, as the function
2550         definition does.
2552         Remove extern declarations from .c files, and them to .h files.
2553         * keyboard.h (Qhelp_echo, waiting_for_input)
2554         (input_available_clear_time, ignore_mouse_drag_p)
2555         (Vdouble_click_time, real_this_command, Vthis_original_command):
2556         * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2557         (Voverriding_local_map_menu_flag):
2558         * lisp.h (Qinteractive_form, use_file_dialog)
2559         (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2560         (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2561         (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2562         (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2563         (Qfunction, debug_on_next_call, Qfield)
2564         (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2565         (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2566         (Qfile_directory_p, Qinsert_file_contents)
2567         (Qcompletion_ignore_case, Qcompletion_ignore_case)
2568         (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2569         (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2570         (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2571         (Qminibuffer_prompt)
2572         (Vtemporary_file_directory,char_ins_del_vector, Qface):
2573         * xterm.h (gray_bitmap_width, gray_bitmap_height)
2574         (gray_bitmap_bits, xic_create_fontsetname):
2575         * coding.h (Vtranslation_table_for_input): Add extern declarations.
2577         * xsmfns.c (Vuser_login_name):
2578         * xrdb.c (Vdouble_click_time):
2579         * xfaces.c (xic_create_fontsetname):
2580         * w32select.c (waiting_for_input):
2581         * print.c (minibuffer_auto_raise):
2582         * msdos.c (Qhelp_echo):
2583         * macros.c (real_this_command):
2584         * keymap.c (Voverriding_local_map):
2585         * xterm.c (poll_for_input_1, gray_bitmap_width)
2586         (gray_bitmap_height, gray_bitmap_bits;
2587         * xmenu.c ( Voverriding_local_map)
2588         (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2589         (use_file_dialog, Xt_app_con):
2590         * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2591         (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2592         (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2593         (Qtool_bar_lines, ignore_mouse_drag_p):
2594         * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2595         (Qrear_nonsticky, nconc2):
2596         * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2597         (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2598         (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2599         * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2600         (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2601         * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2602         (gc_in_progress):
2603         * doc.c (Voverriding_local_map, Qremap):
2604         * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2605         (Vcompletion_regexp_list):
2606         * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2607         (Qcompletion_ignore_case):
2608         * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2609         (Vhistory_length, Vthis_original_command, real_this_command)
2610         (Qface, Qminibuffer_prompt, history_delete_duplicates):
2611         * image.c (Qrisky_local_variable):
2612         * fontset.c (QCname):
2613         * fns.c (minibuffer_auto_raise, QCname):
2614         * dispnew.c (char_ins_del_cost):
2615         * composite.c (font_fill_lglyph_metrics):
2616         * cmds.c (Qface, Vtranslation_table_for_input):
2617         * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2618         * ccl.c (charset_unicode):
2619         * callproc.c (Vtemporary_file_directory):
2620         * buffer.c (emacs_strerror): Remove extern declarations.
2622         * data.c (Qwindow): Make non-static, used from other files too.
2623         * frame.c (validate_x_resource_name): Remove shadow definition for i.
2625         * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2626         SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2627         * s/usg5-4.h (COFF):
2628         * s/template.h:
2629         * s/msdos.h (COFF, NO_REMAP):
2630         * s/ms-w32.h (NO_REMAP):
2631         * s/hpux10-20.h (NO_REMAP):
2632         * m/sparc.h (SEGMENT_MASK):
2633         * m/m68k.h (NO_REMAP):
2634         * m/intel386.h (SEGMENT_MASK):
2635         * m/arm.h (NO_REMAP):
2636         * m/alpha.h (COFF):
2637         * m/template.h: Remove references to unused defines.
2639 2010-07-28  Jan Djärv  <jan.h.d@swipnet.se>
2641         * xsettings.c (Ftool_bar_get_system_style): Also check for
2642         Qtext_image_horiz.
2644         * xdisp.c (Qtext_image_horiz): Define.
2645         (syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
2646         to documentation of tool-bar-style.
2648         * lisp.h (Qtext_image_horiz): Declare.
2650         * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2651         style text_image_horiz.
2653 2010-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
2655         * emacs.c (Fkill_emacs): Remove return statement.
2657         * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2658         (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2659         (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2660         local extern declarations.
2662         * xmenu.c: Do not included lwlib.h, not needed.
2664         * m/iris4d.h (XUINT, XSET): Remove, not needed.
2666         * process.c: Move definitions earlier to minimize #ifdefs.
2668         * xterm.h (x_get_customization_string, x_load_resources)
2669         (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2670         (x_check_errors, x_property_data_to_lisp, defined_color)
2671         (xic_set_xfontset, x_defined_color): Use const.
2673         * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2674         (x_text_icon, x_check_errors, x_connection_closed): Use const.
2676         * xselect.c (selection_data_to_lisp_data)
2677         (x_property_data_to_lisp):
2678         * xrdb.c (x_get_string_resource, file_p)
2679         (x_get_customization_string, magic_file_p, search_magic_path)
2680         (get_system_app, get_user_app, x_load_resources, x_get_resource)
2681         (x_get_string_resource): Use const.
2683         * xfns.c: Include xlwmenu.h when USE_LUCID.
2684         (x_defined_color, xic_set_xfontset): Use const.
2685         (Fx_hide_tip): Remove local extern declaration.
2687         * xfaces.c (Qmouse_face): Remove declaration.
2688         (face_color_gray_p, tty_defined_color, defined_color)
2689         (face_color_gray_p, face_color_supported_p): Add const.
2691         * xdisp.c (do_mouse_tracking): Remove declaration.
2692         (add_to_log): Use const.
2694         * minibuf.c (Qmouse_face): Remove declaration.
2696         * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2698         * keyboard.h (do_mouse_tracking): Add declaration.
2700         * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2701         (QCdata, QCtype, Qcenter): Remove declarations.
2703         * frame.c (x_get_resource_string, x_get_string_resource)
2704         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2705         (x_default_parameter): Use const.
2707         * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2708         (QCheight, QCsize, QCname): Remove declarations.
2710         * emacs.c (main): Remove local extern declaration.
2712         * editfns.c (region_limit, syms_of_editfns): Remove local extern
2713         declarations.
2715         * dispnew.c: Remove duplicate #include <unistd.h>.
2716         (update_window, update_frame_1, init_display): Remove local extern
2717         declarations.
2719         * dispextern.h (add_to_log): Remove declaration.
2720         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2721         (x_frame_get_and_record_arg, x_default_parameter): Add const.
2723         * dired.c (scmp): Add const.
2724         (directory_files_internal): Remove local extern declaration.
2726         * data.c (Finteractive_form): Use const.
2728         * composite.c (syms_of_composite): Remove local extern declarations.
2730         * charset.c (add_to_log): Remove declaration.
2732         * character.c (strwidth, parse_str_to_multibyte): Add const.
2734         * character.h (strwidth, parse_str_to_multibyte): Likewise.
2736         * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2738         * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2739         (Lisp_Subr): Make doc and intspec constant.
2740         (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2741         (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2742         (QCheight, QCsize, QCname, QCwidth, QCforeground)
2743         (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2744         (display_arg): Add declarations.
2746 2010-07-27  Christoph Scholtes  <cschol2112@gmail.com>
2748         * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2750         * window.c (Fwindow_height): Doc fix (bug#6518).
2752 2010-07-27  Juanma Barranquero  <lekktu@gmail.com>
2754         * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2756 2010-07-26  Dan Nicolaescu  <dann@ics.uci.edu>
2758         * keyboard.c (Ftop_level, Fexit_recursive_edit)
2759         (Fabort_recursive_edit): Remove return statements in NO_RETURN
2760         functions.
2762         * frame.h (Qtty_color_mode): Add declaration.
2764         * lisp.h (Ftop_level, Fexit_recursive_edit)
2765         (Fabort_recursive_edit): Mark as NO_RETURN.
2767 2010-07-26  Kenichi Handa  <handa@m17n.org>
2769         * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
2770         number of glyphs gets smaller than the original length.  (Bug#6621)
2772 2010-07-26  Juanma Barranquero  <lekktu@gmail.com>
2774         * lread.c (unreadpure, mapatoms_1): Make static.
2776 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
2778         * terminfo.c (tparam): Fix prototype of tparm.
2780 2010-07-25  Andreas Schwab  <schwab@linux-m68k.org>
2782         * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2783         find start of text segment.
2784         * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2785         is defined.
2787         * callproc.c (set_initial_environment): Avoid unbalanced braces.
2789 2010-07-25  Ken Brown  <kbrown@cornell.edu>
2791         * vm-limit.c (check_memory_limits): Fix previous change;
2792         accidentally reverted an earlier change.
2794 2010-07-25  Ken Brown  <kbrown@cornell.edu>
2796         * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2797         * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2799 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
2801         * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2802         * dired.c (opendir, readdir): Fix prototypes.
2803         * editfns.c (w32_get_internal_run_time): Fix prototypes.
2804         * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2805         * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2806         (telldir): Remove declaration.
2807         * ralloc.c (real_morecore, __morecore): Fix prototypes.
2808         * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2809         * syssignal.h (strsignal): Fix prototype.
2810         * term.c (tparam): Fix prototype.
2811         (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2812         (term_get_fkeys): Set inside "#ifndef DOS_NT".
2813         * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2814         and __morecore.
2815         * w32gui.h (XParseGeometry): Fix prototype.
2816         * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2817         * w32term.c (my_set_focus): Declare inside #if 0.
2818         * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2819         (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2820         (drain_message_queue, get_next_msg, post_msg, parse_button)
2821         (ClipboardSequence_Proc): Fix prototypes.
2822         (wait_for_sync): Remove declaration.
2824 2010-07-24  Juanma Barranquero  <lekktu@gmail.com>
2826         * w32fns.c (w32_to_x_color): Remove, unused.
2828 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2830         * lisp.h: Remove leftover P_.
2832 2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
2834         * ecrt0.c, unexalpha.c: Remove files, unused.
2836 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2838         * cmds.c (internal_self_insert): Make static.
2839         * lisp.h (internal_self_insert): Remove declaration.
2841 2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
2843         * alloc.c (free_float):
2844         * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2845         * frame.c (delete_frame_handler):
2846         * ralloc.c (reorder_bloc):
2847         * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2848         Remove unused static functions.
2850         * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2851         it is called only from NS code.
2853         * w32term.c (my_set_focus): #ifdef away; it is called only from
2854         "#ifdef 0" code.
2856         * w32fns.c (x_edge_detection):
2857         * xfaces.c (may_use_scalable_font_p):
2858         Remove obsolete static declarations.
2860 2010-07-20  Juanma Barranquero  <lekktu@gmail.com>
2862         * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2863         (emacs_blocked_realloc, uninterrupt_malloc):
2864         * fringe.c (w32_reset_fringes):
2865         * image.c (convert_mono_to_color_image, lookup_rgb_color)
2866         (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2867         * sound.c (be2hs, do_play_sound):
2868         * vm-limit.c (get_lim_data, ret_lim_data):
2869         * w32term.c (x_free_frame_resources):
2870         * xfaces.c (x_create_gc, x_free_gc):
2871         Convert definitions to standard C.
2873 2010-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
2875         * eval.c (Feval, Ffuncall): Use the new names.
2877         * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2878         (DEFUN): Add braces around the union initialisation and use ## to
2879         specify the right union alternative and avoid a cast.
2881 2010-07-18  Juanma Barranquero  <lekktu@gmail.com>
2883         * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2885 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
2887         * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2889 2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
2891         * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2892         is related to the menu bar (Bug#6499).
2893         (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
2895 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
2897         * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2899         * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2901         * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2902         i.e. don't put back ButtonRelease (Bug#6608).
2904         * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2905         instead of Window.  Call xg_event_is_for_menubar when
2906         USE_GTK (Bug#6499).
2908         * gtkutil.h (xg_event_is_for_menubar): Declare.
2910         * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2912 2010-07-16  Eli Zaretskii  <eliz@gnu.org>
2914         * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2915         when it's the same as the old foreground.  (Bug#6609)
2917 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
2919         * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2920         widget is non-null (Bug#6645).
2922 2010-07-15  Andreas Schwab  <schwab@linux-m68k.org>
2924         * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2925         Convert old-style definition.
2927         * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2928         timestamp argument.
2930 2010-07-15  Eli Zaretskii  <eliz@gnu.org>
2932         * fringe.c (update_window_fringes): Restore mistakenly reverted
2933         code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2935 2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
2937         * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2938         (SET_SAVED_KEY_EVENT): Remove (not used).
2939         (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2940         remove size parameter.
2941         (handle_one_xevent): Check popup_activated () for menu for Xt also.
2942         Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2943         Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2944         ButtonRelease.
2945         (x_set_window_size_1): scroll_bar_actual_width is always
2946         SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
2948         * xdisp.c (pending_menu_activation): Remove extern declaration.
2949         (prepare_menu_bars): Remove setting of pending_menu_activation.
2951         * xmenu.c (pending_menu_activation): Remove.
2952         (x_activate_menubar): Set popup_activated_flag for Xt also.
2953         Remove setting of pending_menu_activation.
2954         (set_frame_menubar): Remove check of pending_menu_activation.
2955         Declare menubar_size before code.  Correct spelling in comment.
2957 2010-07-14  Kenichi Handa  <handa@m17n.org>
2959         * font.c (font_open_entity): Cancel previous change.
2960         (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2962 2010-07-13  Eli Zaretskii  <eliz@gnu.org>
2964         Remove subprocesses #ifdefs.
2965         * process.c <inhibit_sentinels>: Move to the common part.
2966         (Fwaiting_for_user_input_p): Move to the common part; return nil
2967         if async subprocesses aren't supported.
2968         * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2969         MS-DOS.  Remove "#ifdef subprocesses".
2970         (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2971         (gettimeofday): Remove "#ifdef subprocesses".
2972         (wait_without_blocking): Remove function.
2973         (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2974         Remove "#ifdef subprocesses".
2975         (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2976         compiled on MS-DOS.
2977         * callproc.c (Fcall_process) [!MSDOS]: Don't call
2978         wait_for_termination on MS-DOS.
2979         * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2980         initialization of inhibit_sentinels.
2981         * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2982         subprocesses" conditional.
2983         * callproc.c (Fcall_process) [!subprocesses]: Don't call
2984         wait_for_termination, since `buffer' cannot be an integer when
2985         async subprocesses are not supported
2986         * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2987         for ifdefing away the call to Fprocess_status.
2989         * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2990         away the entire body of the function.
2992 2010-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
2994         Remove subprocesses #ifdefs from term.c.
2995         * process.c (add_keyboard_wait_descriptor)
2996         (delete_keyboard_wait_descriptor): Move to common section, do
2997         nothing when subprocesses is not defined.
2998         * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2999         Remove subprocesses #ifdefs.
3001         Convert maybe_fatal to standard C.
3002         * lisp.h (verror): Declare.
3003         * eval.c (verror): New function containing the code from ...
3004         (error): ... this.  Call verror.
3005         * term.c (vfatal): New function containing the code from ...
3006         (fatal): ... this.  Call vfatal.
3007         (maybe_fatal): Convert to standard C, use variable number of
3008         arguments.  Declare as non-return.
3009         (init_tty): Fix maybe_fatal call.
3011 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
3013         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3014         (_scroll_bar_note_movement): Convert definitions to standard C.
3015         * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3016         * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3018 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
3020         * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3021         (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3022         (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3023         (xaw_jump_callback, xaw_scroll_callback)
3024         (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3025         (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3026         definitions to standard C.
3027         * xmenu.c (menubar_id_to_frame, popup_get_selection)
3028         (popup_activate_callback, popup_deactivate_callback)
3029         (menu_highlight_callback, menubar_selection_callback)
3030         (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3031         (free_frame_menubar, popup_selection_callback, as)
3032         (create_and_show_popup_menu, dialog_selection_callback)
3033         (create_and_show_dialog):
3034         * xfns.c (hack_wm_protocols, x_window):
3035         * xfaces.c (x_update_menu_appearance):
3036         * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3037         (char_to_pixel_size, round_size_to_char, get_wm_shell)
3038         (set_frame_size, update_wm_hints, setup_frame_gcs)
3039         (update_various_frame_slots, update_from_various_frame_slots)
3040         (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3041         (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3042         (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3044 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
3046         * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
3048 2010-07-12  Eli Zaretskii  <eliz@gnu.org>
3050         * process.c (setup_process_coding_systems): Move to the part
3051         shared by non-subprocesses systems, and make its body empty when
3052         subprocesses is not defined.
3053         (close_process_descs): Move to the part shared by non-subprocesses
3054         systems.
3055         (wait_reading_process_output) [!subprocesses]: Convert arg list to
3056         ANSI C.
3058 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
3060         * editfns.c (transpose_markers): Convert old-style definition.
3061         * emacs.c (abort, shut_down_emacs, fixup_locale)
3062         (synchronize_system_time_locale)
3063         (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3064         * floatfns.c (extract_float, matherr, init_floatfns)
3065         (syms_of_floatfns): Likewise.
3066         * fns.c (make_hash_table): Likewise.
3067         * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3068         (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3069         (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3070         (ftfont_variation_glyphs): Likewise.
3071         * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3072         * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3073         * lread.c (read_filtered_event): Likewise.
3074         * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3075         * process.c (wait_reading_process_output): Likewise.
3076         * scroll.c (do_line_insertion_deletion_costs): Likewise.
3077         * search.c (search_buffer, boyer_moore): Likewise.
3078         * syntax.c (scan_sexps_forward): Likewise.
3079         * xdisp.c (try_scrolling): Likewise.
3080         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3081         (face_at_string_position): Likewise.
3082         * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3083         * xselect.c (x_get_window_property, receive_incremental_selection)
3084         (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3085         Likewise.
3086         * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3088 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
3090         * callproc.c (child_setup): Remove subprocesses conditional.
3091         Remove code dealing with SET_EMACS_PRIORITY, unused.
3093         * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
3094         * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3096         * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3097         (__do_global_dtors, __main): Use void in definition.
3098         (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3099         Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
3100         the only users from ...
3101         * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3102         * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
3103         (HAVE_VOLATILE): Remove, unused.
3105         Convert more function definitions to standard C.
3106         * xdisp.c (window_box_edges, handle_single_display_spec)
3107         (display_string): Convert definition to standard C.
3108         * scroll.c (do_direct_scrolling, scrolling_1):
3109         * dispnew.c (allocate_matrices_for_frame_redisplay)
3110         (mirrored_line_dance):
3111         * coding.c (code_convert_string):
3112         * charset.c (map_charset_chars):
3113         * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3114         (Fregister_ccl_program, Fregister_code_conversion_map):
3115         * keyboard.c (kbd_buffer_nr_stored): Likewise.
3116         (head_table): Make static and const.
3118 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
3120         * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3121         (PROFILING_LDFLAGS): Set from substitution.
3122         (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3123         CFLAGS last.
3125 2010-07-12  Kenichi Handa  <handa@m17n.org>
3127         * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3128         (shortlisp): Likewise.
3130         * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3132         * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3133         of FONT_ENTITY_INDEX.
3134         (Ffont_get): If KEY is :otf and the font-object doesn't have the
3135         property, get the property value dynamically.
3136         (Ffont_put): Accept font-entity and font-object too.
3137         (Ffont_get_glyhphs): Renamed from Fget_font_glyphs.  Arguments and
3138         return value changed.
3139         (syms_of_font): Adjusted for the above change.
3141 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
3143         * blockinput.h: Remove obsolete comment.
3145         * lisp.h: Include <stddef.h>.
3146         (OFFSETOF): Don't define.
3147         (VECSIZE): Use offsetof instead of OFFSETOF.
3148         (PSEUDOVECSIZE): Likewise.
3149         * process.c (conv_sockaddr_to_lisp): Likewise.
3150         * alloc.c: Don't include <stddef.h>.
3151         * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3153         * process.c: Remove obsolete comment.
3155 2010-07-11  Chong Yidong  <cyd@stupidchicken.com>
3157         * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3159 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
3161         * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3162         index, rindex.
3163         * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3164         * editfns.c (Fuser_full_name, Fformat): Likewise.
3165         * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3166         * fileio.c (Ffile_symlink_p): Likewise.
3167         * filelock.c (current_lock_owner): Likewise.
3168         * font.c (font_parse_name, font_parse_family_registry): Likewise.
3169         * fontset.c (fontset_pattern_regexp): Likewise.
3170         * lread.c (read1): Likewise.
3171         * sysdep.c (init_system_name): Likewise.
3172         * xfns.c (select_visual): Likewise.
3173         * s/hpux10-20.h (index, rindex): Don't define.
3174         * s/ms-w32.h (index): Likewise.
3175         * s/usg5-4.h: Likewise.
3177         * callproc.c (relocate_fd): Use F_DUPFD if defined.
3179         * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3180         * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3181         (egetenv): Likewise.
3182         * doprnt.c (doprnt): Likewise.
3183         * editfns.c (set_time_zone_rule, format2): Likewise.
3184         * emacs.c (decode_env_path): Likewise.
3185         * eval.c (signal_error, error): Likewise.
3186         * insdel.c (replace_range_2): Likewise.
3187         * keyboard.c (cmd_error_internal): Likewise.
3188         * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3189         * print.c (write_string, write_string_1, print_error_message):
3190         Likewise.
3191         * vm-limit.c (warn_function, memory_warnings): Likewise.
3192         * xdisp.c (message1, message1_nolog, message_with_string)
3193         (vmessage, message, message_nolog): Likewise.
3194         * emacs.c: Remove duplicate declaration.
3195         * keyboard.h: Likewise.
3196         * lisp.h: Update prototypes.
3198         * eval.c: Fix indentation problem.
3200         * keyboard.c: Include "process.h"
3202         * eval.c: Remove obsolete noinline declaration.
3203         * fns.c: Likewise.
3205 2010-07-11  Ken Raeburn  <raeburn@raeburn.org>
3207         * doprnt.c (doprnt): Take a va_list argument instead of count and
3208         pointer.
3209         * eval.c (error): Change to a standard-C variadic function.
3210         * xdisp.c (vmessage): Renamed from message, made static, and
3211         changed to take a va_list argument.
3212         (message): New variadic wrapper.
3213         (message_nolog): Now a variadic function, calling vmessage.
3214         * lisp.h: Include stdarg.h for va_list.
3215         (doprnt, error, message, message_nolog): Decls updated.
3217 2010-07-11  Eli Zaretskii  <eliz@gnu.org>
3219         * process.c (syms_of_process) <delete-exited-processes>: Define
3220         even if !subprocesses.
3221         (delete_exited_processes): Ditto.
3223         * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3224         (delete_exited_processes): Don't define.
3226 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
3228         * frame.c (make_frame): Initialize menu_bar_lines and
3229         tool_bar_lines members.
3230         (make_initial_frame, make_terminal_frame): Initialize
3231         menu_bar_lines using value of menu-bar-mode.
3233         * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3235 2010-07-10  Eli Zaretskii  <eliz@gnu.org>
3237         * process.c: Reshuffle #include's.  Condition some of the global
3238         and static variables on `subprocesses'.
3239         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3240         Leave only one implementation.
3241         (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3242         (kill_buffer_processes, Flist_system_processes)
3243         (Fprocess_attributes, init_process, syms_of_process): Unify the
3244         implementations for with subprocesses and without them.
3246 2010-07-09  Jan Djärv  <jan.h.d@swipnet.se>
3248         * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3249         correct size for Motif.
3250         (free_frame_menubar): Call x_set_window_size to update frame size.
3252         * xfns.c (x_window): Set borderWidth to 0 for pane and
3253         EmacsFrame.  Frame size calculation is wrong otherwise.
3255 2010-07-09  Michael Albinus  <michael.albinus@gmx.de>
3257         * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3258         allows to suppress errors when polling in Emacs' main loop.
3259         (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3260         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3261         (Fdbus_method_error_internal, Fdbus_send_signal)
3262         (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3263         (Fdbus_register_method): Use it.  (Bug#6579)
3265 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
3267         * alloc.c: Convert DEFUNs to standard C.
3268         * buffer.c:
3269         * bytecode.c:
3270         * callint.c:
3271         * callproc.c:
3272         * casefiddle.c:
3273         * casetab.c:
3274         * category.c:
3275         * character.c:
3276         * charset.c:
3277         * chartab.c:
3278         * cmds.c:
3279         * coding.c:
3280         * composite.c:
3281         * data.c:
3282         * dbusbind.c:
3283         * dired.c:
3284         * dispnew.c:
3285         * doc.c:
3286         * dosfns.c:
3287         * editfns.c:
3288         * emacs.c:
3289         * eval.c:
3290         * fileio.c:
3291         * filelock.c:
3292         * floatfns.c:
3293         * fns.c:
3294         * font.c:
3295         * fontset.c:
3296         * frame.c:
3297         * fringe.c:
3298         * image.c:
3299         * indent.c:
3300         * insdel.c:
3301         * keyboard.c:
3302         * keymap.c:
3303         * lread.c:
3304         * macros.c:
3305         * marker.c:
3306         * menu.c:
3307         * minibuf.c:
3308         * msdos.c:
3309         * nsfns.m:
3310         * nsmenu.m:
3311         * nsselect.m:
3312         * print.c:
3313         * process.c:
3314         * search.c:
3315         * sound.c:
3316         * syntax.c:
3317         * term.c:
3318         * terminal.c:
3319         * textprop.c:
3320         * undo.c:
3321         * w16select.c:
3322         * w32console.c:
3323         * w32fns.c:
3324         * w32font.c:
3325         * w32menu.c:
3326         * w32proc.c:
3327         * w32select.c:
3328         * window.c:
3329         * xdisp.c:
3330         * xfaces.c:
3331         * xfns.c:
3332         * xmenu.c:
3333         * xselect.c:
3334         * xsettings.c:
3335         * xsmfns.c: Likewise.
3337 2010-07-08  Eli Zaretskii  <eliz@gnu.org>
3339         * process.c (kbd_is_on_hold, hold_keyboard_input)
3340         (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3342 2010-07-08  Jan Djärv  <jan.h.d@swipnet.se>
3344         * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3345         (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3346         unless USE_LUCID.
3348 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
3350         * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3351         declaration.
3353         Clean up include guards.
3354         * tparam.c: Remove include guards for config.h, string.h and code
3355         that assumes #ifndef emacs.
3356         * termcap.c:
3357         * unexalpha.c:
3358         * sysdep.c:
3359         * filemode.c:
3360         * filelock.c:
3361         * bidi.c: Likewise.
3363         Remove prefix-args.c
3364         * prefix-args.c: Remove file.
3365         * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3366         * Makefile.in (temacs${EXEEXT}): Remove references to
3367         PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3368         (mostlyclean): Remove reference to prefix-args.
3369         (prefix-args): Remove.
3371         Simplify cstart_of_data, start_of_code and related code.
3372         * mem-limits.h: Remove !emacs and _LIBC conditional code.
3373         (start_of_data): Merge into start_of_data function.
3374         * sysdep.c (start_of_text): Remove.  Move simplified versions of
3375         it in the only users: unexaix.c and unexec.c.
3376         (read_input_waiting): Remove local declaration of quit_char.
3377         (start, etext): Remove declarations.
3378         (start_of_data): Merge with the version in mem-limits.h and move
3379         to vm-limits.c.
3380         * vm-limit.c (start_of_data): Merged and simplified version of the
3381         code formerly in mem-limits.h and sysdep.c.
3382         * unexec.c (start): New declaration, moved from sysdep.c.
3383         (start_of_text): Simplified version of the code formerly in sysdep.c.
3384         * unexaix.c (start_of_text): Simplified version of the code
3385         formerly in sysdep.c.
3386         * m/alpha.h (HAVE_TEXT_START): Remove.
3387         (TEXT_START): Move ...
3388         * unexalpha.c (TEXT_START): ... here.
3389         * s/hpux10-20.h (TEXT_START): Remove.
3390         * s/darwin.h (TEXT_START):
3391         * m/mips.h (TEXT_START):
3392         * m/macppc.h (HAVE_TEXT_START):
3393         * m/m68k.h (TEXT_START):
3394         * m/iris4d.h (TEXT_START):
3395         * m/intel386.h (TEXT_START):
3396         * m/ibmrs6000.h (TEXT_START):
3397         * m/ia64.h (HAVE_TEXT_START):
3398         * s/msdos.h (TEXT_START): Likewise.
3400 2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>
3402         * alloc.c (overrun_check_malloc, overrun_check_realloc)
3403         (overrun_check_free, xstrdup, allocate_string)
3404         (allocate_string_data, compact_small_strings, Fmake_string)
3405         (make_unibyte_string, make_multibyte_string)
3406         (make_string_from_bytes, make_specified_string, make_float)
3407         (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3408         (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3409         memcpy, memmove, memset, memcmp.
3410         * atimer.c (start_atimer, set_alarm): Likewise.
3411         * buffer.c (clone_per_buffer_values, report_overlay_modification)
3412         (mmap_realloc, init_buffer_once): Likewise.
3413         * callint.c (Fcall_interactively): Likewise.
3414         * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3415         (getenv_internal_1): Likewise.
3416         * casefiddle.c (casify_object): Likewise.
3417         * ccl.c (ccl_driver): Likewise.
3418         * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3419         * charset.c (load_charset_map_from_file)
3420         (load_charset_map_from_file, load_charset_map_from_vector)
3421         (Fdefine_charset_internal): Likewise.
3422         * cm.c (Wcm_clear): Likewise.
3423         * coding.c (decode_eol, decode_coding_object)
3424         (Fset_coding_system_priority, make_subsidiaries): Likewise.
3425         * data.c (Faset): Likewise.
3426         * dired.c (directory_files_internal, file_name_completion_stat):
3427         Likewise.
3428         * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3429         (clear_glyph_row, copy_row_except_pointers)
3430         (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3431         (save_current_matrix, restore_current_matrix)
3432         (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3433         (mirror_line_dance, scrolling_window): Likewise.
3434         * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3435         Likewise.
3436         * doprnt.c (doprnt): Likewise.
3437         * editfns.c (Fuser_full_name, make_buffer_string_both)
3438         (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3439         * emacs.c (sort_args): Likewise.
3440         * eval.c (Fapply, Ffuncall): Likewise.
3441         * fileio.c (Ffile_name_directory, make_temp_name)
3442         (Fexpand_file_name, search_embedded_absfilename)
3443         (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3444         (auto_save_error): Likewise.
3445         * fns.c (Fstring_equal, Fcopy_sequence, concat)
3446         (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3447         (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3448         (Fmake_hash_table): Likewise.
3449         * fringe.c (Fdefine_fringe_bitmap): Likewise.
3450         * ftfont.c (ftfont_text_extents): Likewise.
3451         * getloadavg.c (getloadavg): Likewise.
3452         * image.c (define_image_type, make_image, make_image_cache)
3453         (x_create_x_image_and_pixmap, xbm_image_p)
3454         (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3455         (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3456         (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3457         (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3458         (tiff_image_p, tiff_read_from_memory, gif_image_p)
3459         (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3460         Likewise.
3461         * indent.c (scan_for_column, compute_motion): Likewise.
3462         * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3463         (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3464         * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3465         * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3466         (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3467         (store_user_signal_events, menu_bar_items, tool_bar_items)
3468         (process_tool_bar_item, append_tool_bar_item)
3469         (read_char_minibuf_menu_prompt, read_key_sequence)
3470         (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3471         Likewise.
3472         * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3473         Likewise.
3474         * lisp.h (STRING_COPYIN): Likewise.
3475         * lread.c (Fload, read1, oblookup): Likewise.
3476         * msdos.c (Frecent_doskeys): Likewise.
3477         * nsfns.m (Fx_create_frame): Likewise.
3478         * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3479         Likewise.
3480         * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3481         (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3482         Likewise.
3483         * nsmenu.m (ns_update_menubar): Likewise.
3484         * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3485         * print.c (print_unwind, printchar, strout, print_string)
3486         (print_error_message): Likewise.
3487         * process.c (conv_lisp_to_sockaddr, set_socket_option)
3488         (Fmake_network_process, Fnetwork_interface_list)
3489         (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3490         (init_process): Likewise.
3491         * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3492         * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3493         Likewise.
3494         * scroll.c (do_scrolling, do_direct_scrolling)
3495         (scrolling_max_lines_saved): Likewise.
3496         * search.c (search_buffer, wordify, Freplace_match): Likewise.
3497         * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3498         * syntax.c (skip_chars, skip_syntaxes): Likewise.
3499         * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3500         (emacs_set_tty): Likewise.
3501         * term.c (encode_terminal_code, calculate_costs)
3502         (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3503         Likewise.
3504         * termcap.c (tgetst1, gobble_line): Likewise.
3505         * termhooks.h (EVENT_INIT): Likewise.
3506         * tparam.c (tparam1): Likewise.
3507         * unexalpha.c (unexec): Likewise.
3508         * unexec.c (write_segment): Likewise.
3509         * unexmacosx.c (unexec_write_zero): Likewise.
3510         * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3511         (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3512         * w32font.c (w32font_list_family, w32font_text_extents)
3513         (w32font_list_internal, w32font_match_internal)
3514         (w32font_open_internal, compute_metrics, Fx_select_font):
3515         Likewise.
3516         * w32menu.c (set_frame_menubar, add_menu_item)
3517         (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3518         * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3519         * w32uniscribe.c (uniscribe_list_family): Likewise.
3520         * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3521         * window.c (make_window, replace_window, set_window_buffer)
3522         (Fsplit_window): Likewise.
3523         * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3524         (add_to_log, message3, x_consider_frame_title)
3525         (append_space_for_newline, extend_face_to_end_of_line)
3526         (decode_mode_spec_coding, init_glyph_string): Likewise.
3527         * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3528         (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3529         (face_attr_equal_p, make_realized_face, make_face_cache)
3530         (free_realized_faces, lookup_named_face, smaller_face)
3531         (face_with_height, lookup_derived_face)
3532         (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3533         (Finternal_set_font_selection_order, realize_default_face)
3534         (compute_char_face, face_at_buffer_position)
3535         (face_for_overlay_string, face_at_string_position, merge_faces):
3536         Likewise.
3537         * xfns.c (xic_create_fontsetname, Fx_create_frame)
3538         (Fx_window_property, x_create_tip_frame)
3539         (Fx_backspace_delete_keys_p): Likewise.
3540         * xfont.c (xfont_list, xfont_match, xfont_list_family)
3541         (xfont_text_extents): Likewise.
3542         * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3543         * xrdb.c (magic_file_p, x_get_resource): Likewise.
3544         * xselect.c (x_queue_event, x_get_window_property)
3545         (receive_incremental_selection): Likewise.
3546         * xsmfns.c (x_session_check_input): Likewise.
3547         * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3548         (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3549         Likewise.
3550         * character.h (BCOPY_SHORT): Removed.
3551         * config.in: Regenerate.
3552         * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3553         * emacs.c (main) [PROFILING]: Don't declare
3554         dump_opcode_frequencies.
3555         * lisp.h (safe_bcopy): Remove declaration.
3556         (memset) [!HAVE_MEMSET]: Declare.
3557         (memcpy) [!HAVE_MEMCPY]: Likewise.
3558         (memmove) [!HAVE_MEMMOVE]: Likewise.
3559         (memcmp) [!HAVE_MEMCMP]: Likewise.
3560         * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3561         (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3562         Don't define.
3563         (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3564         * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3565         (BCOPY_DOWNWARD_SAFE): Don't define.
3566         * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3567         (memcpy) [!HAVE_MEMCPY]: Define.
3568         (memmove) [!HAVE_MEMMOVE]: Define.
3569         (memcmp) [!HAVE_MEMCMP]: Define.
3571 2010-07-07  Jan Djärv  <jan.h.d@swipnet.se>
3573         * process.c (kbd_is_on_hold): New variable.
3574         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3575         New functions.
3576         (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3577         select on empty input mask.
3578         (init_process): Initialize kbd_is_on_hold to 0.
3580         * process.h (hold_keyboard_input, unhold_keyboard_input)
3581         (kbd_on_hold_p): Declare.
3583         * keyboard.c (input_available_signal): Declare.
3584         (kbd_buffer_nr_stored): New function.
3585         (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3586         more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3587         (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3588         returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3589         (tty_read_avail_input): If input is on hold, return.
3590         Don't read more that free slots in kbd_buffer (Bug#6571).
3592 2010-07-07  Eli Zaretskii  <eliz@gnu.org>
3594         * msdos.h:
3595         * msdos.c:
3596         * dosfns.c:
3597         * w16select.c: Convert function definitions to ANSI C.
3599         * msdos.h (ctrl_break_func, install_ctrl_break_check):
3600         Remove unused prototypes.
3602 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
3604         * coding.c, sysdep.c: Convert some more functions to standard C.
3606 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
3608         * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3609         (encode_coding_object): Use SPECPDL_INDEX.
3610         (syms_of_coding): Use DOS_NT.
3612 2010-07-07  Dan Nicolaescu  <dann@ics.uci.edu>
3614         * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3616         Make the function member of Lisp_Subr use standard C prototypes.
3617         * lisp.h (struct Lisp_Subr): Use a union for the function member.
3618         (DECL_ALIGN): Add a cast for the function.
3619         * eval.c (Feval, Ffuncall): Use the proper type for each type
3620         function call.
3622 2010-07-06  Chong Yidong  <cyd@stupidchicken.com>
3624         * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3625         fringe face id, so face-remapping-alist works (Bug#6091).
3627 2010-07-06  Juanma Barranquero  <lekktu@gmail.com>
3629         * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3630         * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3631         * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3633 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3635         * xterm.c (x_get_keysym_name): Change type of parameter to int.
3636         * lisp.h: Declare x_get_keysym_name.
3637         * keyboard.c (modify_event_symbol): Don't declare
3638         x_get_keysym_name here.
3640 2010-07-06  Dan Nicolaescu  <dann@ics.uci.edu>
3642         * ecrt0.c: Revert conversion to standard C.
3644 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
3646         * vm-limit.c (memory_warnings):
3647         * keyboard.c (modify_event_symbol):
3648         * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3649         (round2, emacs_rint):
3650         * process.c (send_process, old_sigpipe): Convert function
3651         definitions and declarations to standard C.
3653 2010-07-05  Juanma Barranquero  <lekktu@gmail.com>
3655         * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3656         * xdisp.c: Convert function definitions to standard C.
3658         * cm.c (cmputc): Arg C is now int, not char.
3659         * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3661 2010-07-05  James Cloos  <cloos@jhcloos.com>
3663         * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3665         * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3666         _NET_WM_ICON_NAME atoms.
3668         * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3669         and _NET_WM_ICON_NAME properties, too, matching what is
3670         done in the Gtk+ case.
3672 2010-07-05  Jan Djärv  <jan.h.d@swipnet.se>
3674         * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3676         * xsmfns.c (SSDATA): New macro.
3677         (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3678         passed to strlen/strcpy/strcat.
3679         (create_client_leader_window): Surround with #ifndef USE_GTK.  Cast
3680         7:th arg to XChangeProperty to (unsigned char *).
3682         * xsettings.c (something_changedCB, parse_settings)
3683         (apply_xft_settings): Reformat prototype.
3684         (something_changedCB, init_gconf): Remove unused variable i.
3685         (read_settings): Remove unused variable long_len.
3687         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3688         (xg_get_image_for_pixmap, create_dialog)
3689         (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3690         (menuitem_highlight_callback, make_menu_item)
3691         (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3692         (xg_create_scroll_bar, xg_update_scrollbar_pos)
3693         (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3694         (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3695         (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3696         (xg_tool_bar_item_expose_callback): Reformat prototype.
3697         (xg_update_menubar): GList *group => GSList *group.
3698         (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3699         before use.
3700         (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3701         to GTK_IMAGE (wimage).
3703 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
3705         * atimer.c: Use "" instead of <> for local includes for
3706         consistency with the rest of the code.
3708         * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3709         * xrdb.c (get_system_name):
3710         * window.c (shrink_windows):
3711         * syntax.c (forw_comment):
3712         * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3713         (ins_del_costs):
3714         * mem-limits.h (start_of_data):
3715         * lread.c (readevalloop):
3716         * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3717         (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3718         * frame.c (x_get_focus_frame):
3719         * floatfns.c (fmod_float):
3720         * fileio.c (choose_write_coding_system):
3721         * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3722         (malloc_initialize_hook, sort_args, synchronize_locale):
3723         * doprnt.c (doprnt):
3724         * dired.c (compile_pattern):
3725         * data.c (fmod_float):
3726         * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3727         (map_char_table_for_charset):
3728         * charset.c (define_charset_internal):
3729         * alloc.c (Fgarbage_collect): Convert declarations or definitions
3730         to standard C.
3732 2010-07-04  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
3733             Stefan Monnier  <monnier@iro.umontreal.ca>
3735         * lread.c (read1): Fix up last change to not mess up `c'.
3737 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
3739         * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3741 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
3743         Fix prototypes.
3745         * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3746         * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3747         * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3748         arg, as required by internal_condition_case_1.
3749         * print.c (strout): Use const char* for arg PTR.
3750         * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3751         (analyse_first): Fix "const const".
3752         * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3753         * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3754         * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3756 2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>
3758         * alloc.c: Convert function definitions to standard C.
3759         * atimer.c:
3760         * bidi.c:
3761         * bytecode.c:
3762         * callint.c:
3763         * callproc.c:
3764         * casefiddle.c:
3765         * casetab.c:
3766         * category.c:
3767         * ccl.c:
3768         * character.c:
3769         * charset.c:
3770         * chartab.c:
3771         * cmds.c:
3772         * coding.c:
3773         * composite.c:
3774         * data.c:
3775         * dbusbind.c:
3776         * dired.c:
3777         * dispnew.c:
3778         * doc.c:
3779         * doprnt.c:
3780         * ecrt0.c:
3781         * editfns.c:
3782         * fileio.c:
3783         * filelock.c:
3784         * filemode.c:
3785         * fns.c:
3786         * font.c:
3787         * fontset.c:
3788         * frame.c:
3789         * fringe.c:
3790         * ftfont.c:
3791         * ftxfont.c:
3792         * gtkutil.c:
3793         * indent.c:
3794         * insdel.c:
3795         * intervals.c:
3796         * keymap.c:
3797         * lread.c:
3798         * macros.c:
3799         * marker.c:
3800         * md5.c:
3801         * menu.c:
3802         * minibuf.c:
3803         * prefix-args.c:
3804         * print.c:
3805         * ralloc.c:
3806         * regex.c:
3807         * region-cache.c:
3808         * scroll.c:
3809         * search.c:
3810         * sound.c:
3811         * strftime.c:
3812         * syntax.c:
3813         * sysdep.c:
3814         * termcap.c:
3815         * terminal.c:
3816         * terminfo.c:
3817         * textprop.c:
3818         * tparam.c:
3819         * undo.c:
3820         * unexelf.c:
3821         * window.c:
3822         * xfaces.c:
3823         * xfns.c:
3824         * xfont.c:
3825         * xftfont.c:
3826         * xgselect.c:
3827         * xmenu.c:
3828         * xrdb.c:
3829         * xselect.c:
3830         * xsettings.c:
3831         * xsmfns.c:
3832         * xterm.c: Likewise.
3834 2010-07-03  Eli Zaretskii  <eliz@gnu.org>
3836         * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3837         frames other than the initial one.  Fix reversal of colors when
3838         `reverse' is specified in the frame parameters.  Call
3839         update_face_from_frame_parameter instead of
3840         internal-set-lisp-face-attribute.  Initialize screen colors from
3841         initial_screen_colors[] when f->default_face_done_p is zero,
3842         instead of depending on being called with default-frame-alist as
3843         the alist argument.
3845         * xfaces.c (update_face_from_frame_parameter): Move out of
3846         HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
3847         with HAVE_WINDOW_SYSTEM.
3849         * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3850         to menu-bar-mode, if not set in the frame parameters or in
3851         default-frame-alist.
3853         * w32console.c (sys_tputs): Adjust argument list to prototype in
3854         term.c.
3856 2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
3858         * lisp.h (memory_warnings): Fix prototype.
3860         * cm.h (evalcost): Fix prototype.
3862         * cm.c (evalcost): Fix arg type.
3864 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
3866         * term.c (term_clear_mouse_face, Fidentity):
3867         * syssignal.h (signal_handler_t):
3868         * lisp.h (memory_warnings):
3869         * coding.h (preferred_coding_system):
3870         * cm.h (evalcost):
3871         * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3873 2010-07-02  Eli Zaretskii  <eliz@gnu.org>
3875         * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3876         from prototypes.
3878         * msdos.h (load_pixmap): Don't define away.
3880 2010-07-02  Jan Djärv  <jan.h.d@swipnet.se>
3882         * lisp.h:
3883         * atimer.h: Remove define for P_.
3885         * alloc.c: Remove __P and P_ from .c and .m files.
3886         * atimer.c:
3887         * buffer.c:
3888         * callint.c:
3889         * category.c:
3890         * charset.c:
3891         * chartab.c:
3892         * cm.c:
3893         * coding.c:
3894         * composite.c:
3895         * data.c:
3896         * dired.c:
3897         * dispnew.c:
3898         * doc.c:
3899         * editfns.c:
3900         * emacs.c:
3901         * eval.c:
3902         * fileio.c:
3903         * filelock.c:
3904         * fns.c:
3905         * font.c:
3906         * fontset.c:
3907         * frame.c:
3908         * ftfont.c:
3909         * ftxfont.c:
3910         * gmalloc.c:
3911         * gtkutil.c:
3912         * image.c:
3913         * indent.c:
3914         * intervals.c:
3915         * keyboard.c:
3916         * keymap.c:
3917         * lread.c:
3918         * marker.c:
3919         * menu.c:
3920         * minibuf.c:
3921         * print.c:
3922         * process.c:
3923         * scroll.c:
3924         * search.c:
3925         * sound.c:
3926         * strftime.c:
3927         * syntax.c:
3928         * sysdep.c:
3929         * term.c:
3930         * terminal.c:
3931         * textprop.c:
3932         * unexalpha.c:
3933         * w32console.c:
3934         * w32fns.c:
3935         * w32font.c:
3936         * w32menu.c:
3937         * w32term.c:
3938         * w32uniscribe.c:
3939         * window.c:
3940         * xdisp.c:
3941         * xfaces.c:
3942         * xfns.c:
3943         * xfont.c:
3944         * xftfont.c:
3945         * xmenu.c:
3946         * xselect.c:
3947         * xterm.c: Likewise.
3949         Remove P_ and __P macros.
3950         * atimer.h: Remove P_ and __P macros.
3951         * buffer.h:
3952         * category.h:
3953         * ccl.h:
3954         * character.h:
3955         * charset.h:
3956         * cm.h:
3957         * coding.h:
3958         * composite.h:
3959         * dispextern.h:
3960         * disptab.h:
3961         * dosfns.h:
3962         * font.h:
3963         * fontset.h:
3964         * frame.h:
3965         * gtkutil.h:
3966         * indent.h:
3967         * intervals.h:
3968         * keyboard.h:
3969         * keymap.h:
3970         * lisp.h:
3971         * macros.h:
3972         * md5.h:
3973         * menu.h:
3974         * msdos.h:
3975         * nsterm.h:
3976         * puresize.h:
3977         * region-cache.h:
3978         * syntax.h:
3979         * syssignal.h:
3980         * systime.h:
3981         * termhooks.h:
3982         * w32font.h:
3983         * w32term.h:
3984         * widget.h:
3985         * window.h:
3986         * xgselect.h:
3987         * xsettings.h:
3988         * xterm.h: Likewise.
3990 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
3992         * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3994         Cleanup old code.
3995         * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3996         * syssignal.h: Remove code for Lynx, not supported anymore.
3997         * vm-limit.c: Remove unused code the depends on emacs not being
3998         defined and NO_LIM_DATA being defined.
3999         * mem-limits.h: Remove dead code.
4001 2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
4003         * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4005         * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4006         (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4008         * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4009         parameters, they are already absolute.
4011         * nsterm.m (x_set_window_size, initFrameFromEmacs):
4012         Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
4014         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
4016         * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4017         Update FRAME_TOOLBAR_HEIGHT.
4019         * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4020         Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
4022 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
4024         * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4025         check default-frame-alist.
4027 2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
4029         * process.c (create_process): Avoid using invalid file descriptors.
4031         * callproc.c (child_setup): Avoid closing a file descriptor twice.
4033 2010-06-30  Jan Djärv  <jan.h.d@swipnet.se>
4035         * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4036         Improve documentation.  Return font regardless of use_system_font.
4037         (syms_of_xsettings): Improve documentation for font-use-system-font.
4039 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
4041         * xfaces.c (realize_face): Garbage the frame if a face is removed
4042         (Bug#6593).
4044 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
4046         * keyboard.c: Remove duplicate <setjmp.h>.
4047         (read_key_sequence): Remove volatile qualifiers.
4049 2010-07-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4051         * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4052         (struct glyph_row): New members left_fringe_offset and
4053         right_fringe_offset.
4055         * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4056         specially.
4057         * w32term.c (w32_draw_fringe_bitmap): Likewise.
4058         * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4060         * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
4061         Take account of bitmap offset.
4062         (draw_window_fringes): Take account of window vscroll.
4063         (update_window_fringes): Likewise.  Extend top-aligned top indicator
4064         or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4065         in one row.  Don't set redraw_fringe_bitmaps_p outside row comparison.
4066         Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4068 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
4070         * w32fns.c (Qtooltip): Declare.
4071         Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4073 2010-07-03  Jan Djärv  <jan.h.d@swipnet.se>
4075         * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4076         grab on just Press (Bug#6499).
4078 2010-07-02  Chong Yidong  <cyd@stupidchicken.com>
4080         * frame.c (Qtooltip): New var.
4081         (delete_frame): Use it.  Fix faulty if statement.  Don't update
4082         mode line for tooltip frames.  Suggested by Martin Rudalics.
4084         * xfns.c (x_create_tip_frame):
4085         * w32fns.c (x_create_tip_frame): Use it.
4087 2010-06-17  Naohiro Aota  <naota@elisp.net>  (tiny change)
4089         * xftfont.c (xftfont_open): Check font width one by one also when
4090         spacing is dual.
4092         * ftfont.c (ftfont_open): Ditto.
4094 2010-06-30  Glenn Morris  <rgm@gnu.org>
4096         * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4098         * Makefile.in (CANNOT_DUMP): Update for configure name change.
4100         * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4101         * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4102         * s/darwin.h (SYSTEM_MALLOC):
4103         * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4105 2010-06-29  Jan Djärv  <jan.h.d@swipnet.se>
4107         * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4108         (ns_get_screen): Don't assign integer to f.
4109         (Fx_display_color_cells): Declarations before statements.
4111 2010-06-28  Jan Djärv  <jan.h.d@swipnet.se>
4113         * xfns.c (x_default_font_parameter): Remove got_from_system
4114         (Bug#6526).
4116         * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4117         (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4118         defines based on what configure finds.
4120         * xterm.c (XTflash): Use gtk_widget_get_window.
4121         (xg_scroll_callback): Use gtk_adjustment_get_upper and
4122         gtk_adjustment_get_page_size.
4123         (handle_one_xevent): Use gtk_widget_get_mapped.
4124         (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4125         messages.
4127         * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4129         * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4130         HAVE_GTK_FILE_SELECTION_NEW.
4132         * gtkutil.c (xg_display_open, xg_display_close): Remove
4133         HAVE_GTK_MULTIDISPLAY, it is always defined.
4134         (xg_display_open): Return type is void.
4135         (gtk_widget_set_has_window)
4136         (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4137         (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4138         (gtk_adjustment_set_page_increment)
4139         (gtk_adjustment_get_step_increment): #define these if not found
4140         by configure.
4141         (remove_submenu): New define based on Gtk+ version.
4142         (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4143         gtk_widget_get_window.
4144         (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4145         (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4146         (create_dialog): Use gtk_dialog_get_action_area and
4147         gtk_dialog_get_content_area.
4148         (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4149         and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
4150         available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4151         (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4152         g_object_ref and g_object_unref.
4153         (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4154         gtk_widget_get_sensitive.
4155         (xg_update_submenu): Use remove_submenu.
4156         (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4157         properties instead to get old x and y position.
4158         (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4159         gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
4160         gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
4161         (xg_get_tool_bar_widgets): New function.
4162         (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4163         (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4164         (toolbar_set_orientation): New #define based on if configure
4165         finds gtk_orientable_set_orientation.
4166         (xg_create_tool_bar): Call toolbar_set_orientation.
4167         (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4168         instead of gtk_box_pack_start_defaults.
4170 2010-06-28  Chong Yidong  <cyd@stupidchicken.com>
4172         * cmds.c (Fdelete_backward_char): Move into Lisp.
4174 2010-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
4176         * s/freebsd.h (BSD4_2): Remove redundant definition.
4177         bsd-common.h defines it already.
4179 2010-06-27  Chong Yidong  <cyd@stupidchicken.com>
4181         * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4182         menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
4183         tool-bar-mode, which are now set using these X resources at
4184         startup, to determine the defaults (Bug#2249).
4186         * w32fns.c (Fx_create_frame):
4187         * nsfns.m (Fx_create_frame): Likewise.
4189         * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4191 2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
4193         * gtkutil.c (xg_update_scrollbar_pos):
4194         Avoid C99 mid-block variable declaration.
4196 2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
4198         * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4200         * gtkutil.h (xg_show_scroll_bar): Remove.
4202         * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4203         if height is less than scroll bar min size.
4204         (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4206         * xfns.c (x_default_font_parameter): Try to open font from system
4207         before using it (bug#6478).  Rename got_from_gconf to got_from_system.
4209 2010-06-22  Keith Packard  <keithp@keithp.com>  (tiny change)
4211         * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4213 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
4215         * xdisp.c (try_scrolling): When scroll-conservatively is set to
4216         most-positive-fixnum, be extra accurate when scrolling window
4217         start, to avoid missing the cursor line.
4219 2010-06-19  Eli Zaretskii  <eliz@gnu.org>
4221         * xdisp.c (try_scrolling): Compute the limit for searching point
4222         in forward scroll from scroll_max, instead of an arbitrary limit
4223         of 10 screen lines.  See
4224         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4225         and
4226         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4227         for details.
4229 2010-06-16  Glenn Morris  <rgm@gnu.org>
4231         * editfns.c (Fbyte_to_string): Pacify compiler.
4233 2010-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
4235         * lread.c (read1): Phase out old-style backquotes a bit more.
4237 2010-06-12  Eli Zaretskii  <eliz@gnu.org>
4239         * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4240         bidimirror.h.
4242         * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4244         * bidi.c (bidi_initialize): Remove explicit initialization of
4245         bidi_type_table; include biditype.h instead.  Don't support
4246         entries whose second codepoint is zero.  Initialize bidi_mirror_table.
4247         (bidi_mirror_char): Use bidi_mirror_table.
4249         * biditype.h: New file.
4251         * bidimirror.h: New file.
4253         * window.c (syms_of_window): Doc fix (bug#6409).
4255 2010-06-12  Romain Francoise  <romain@orebokech.com>
4257         * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4258         ediff-hook.
4260 2010-06-10  Glenn Morris  <rgm@gnu.org>
4262         * editfns.c (Fbyte_to_string): Pacify compiler.
4264         * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4266 2010-06-26  Andreas Schwab  <schwab@linux-m68k.org>
4268         * alloc.c (Fmake_byte_code): Don't access undefined argument
4269         (Bug#6517).
4271 2010-06-25  Chong Yidong  <cyd@stupidchicken.com>
4273         * xdisp.c (next_element_from_image): Ensure that after-strings are
4274         read the next time we hit handle_stop (Bug#1336).
4276 2010-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4278         * lread.c (read1): Signal error if #s is not followed by paren.
4280 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
4282         * image.c (free_image): Mark frame as garbaged (Bug#6426).
4284         * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4286 2010-06-15  Glenn Morris  <rgm@gnu.org>
4288         * editfns.c (Fbyte_to_string): Pacify compiler.
4290 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
4292         * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4293         Check `object's type before accessing its guts.
4295 2010-06-09  Dan Nicolaescu  <dann@ics.uci.edu>
4297         * s/usg5-4.h: Fix previous change.
4298         Suggested by Lawrence Mitchell <wence@gmx.li>
4300 2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
4302         * minibuf.c (Fall_completions): Add more checks.
4304 2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
4306         * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4308 2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
4310         * lread.c (X_OK): Remove, unused.
4312         * dispnew.c: Remove obsolete comment.
4314         Remove INCLUDED_FCNTL.
4315         * xterm.c (INCLUDED_FCNTL):
4316         * callproc.c (INCLUDED_FCNTL):
4317         * alloc.c (INCLUDED_FCNTL):
4318         * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4319         (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4321 2010-06-07  Martin Rudalics  <rudalics@gmx.at>
4323         * window.c (Fselect_window): Move `record_buffer' up to the
4324         beginning of this function, so the buffer gets recorded
4325         even if the selected window does not change.
4326         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4328 2010-06-07  Juanma Barranquero  <lekktu@gmail.com>
4330         * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4331         (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4333 2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>
4335         Remove BSTRING related code, all platforms define it.
4336         * s/usg5-4.h (BSTRING): Remove definition.
4337         * s/template.h (BSTRING):
4338         * s/msdos.h (BSTRING):
4339         * s/ms-w32.h (BSTRING):
4340         * s/hpux10-20.h (BSTRING):
4341         * s/gnu-linux.h (BSTRING):
4342         * s/darwin.h (BSTRING):
4343         * s/cygwin.h (BSTRING):
4344         * s/bsd-common.h (BSTRING):
4345         * s/aix4-2.h (BSTRING): Likewise.
4346         * sysdep.c: Remove code depending on BSTRING not being defined.
4348 2010-06-05  Juanma Barranquero  <lekktu@gmail.com>
4350         Remove obsolete macro BASE_LEADING_CODE_P.
4351         * character.h (BASE_LEADING_CODE_P): Remove.
4352         * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4353         * buffer.c (Fset_buffer_multibyte):
4354         * indent.c (scan_for_column, compute_motion):
4355         * insdel.c (count_combining_before, count_combining_after):
4356         Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4358 2010-06-04  Juanma Barranquero  <lekktu@gmail.com>
4360         Turn `directory-sep-char' into a noop.
4362         * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4363         (DIRECTORY_SEP): Define unconditionally.
4365         * s/ms-w32.h (DIRECTORY_SEP): Remove.
4367         * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4368         call dostounix_filename directly.
4370         * fileio.c (CORRECT_DIR_SEPS): Remove.
4371         (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4372         (Fsubstitute_in_file_name): Use dostounix_filename instead.
4373         (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4374         (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4376         * w32proc.c (CORRECT_DIR_SEPS): Remove.
4377         (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4379 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
4381         * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4382         (Bug#6346)
4384 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
4386         * ccl.c (Fccl_program_p): Fix typo in docstring.
4388 2010-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
4390         Move UNEXEC definition to autoconf.
4391         * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4392         * s/sol2-10.h (UNEXEC):
4393         * s/irix6-5.h (UNEXEC):
4394         * s/hpux10-20.h (UNEXEC):
4395         * s/gnu-linux.h (UNEXEC):
4396         * s/darwin.h (UNEXEC):
4397         * s/cygwin.h (UNEXEC):
4398         * s/bsd-common.h (UNEXEC):
4399         * s/aix4-2.h (UNEXEC):
4400         * m/alpha.h (UNEXEC): Likewise.
4401         * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4403 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
4405         Remove obsolete pre-unicode2 macros.
4406         * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4407         * composite.c (composition_reseat_it):
4408         * data.c (Faset):
4409         * fns.c (Ffillarray):
4410         * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4411         [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4413 2010-06-03  Juri Linkov  <juri@jurta.org>
4415         * buffer.c (Fother_buffer): Add CHECK_FRAME.
4416         (Fswitch_to_buffer): Remove unused variable `err'.
4418 2010-06-03  Glenn Morris  <rgm@gnu.org>
4420         * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4422         * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4423         now that AH_BOTTOM does it.
4425         * m/hp800.h (HAVE_ALLOCA):
4426         * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4428         * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4429         Remove NOT_C_CODE tests, it is always true now.
4431 2010-06-02  Dan Nicolaescu  <dann@ics.uci.edu>
4433         Fix config.h includes.
4434         * xsettings.c:
4435         * xgselect.c:
4436         * nsterm.m:
4437         * nsselect.m:
4438         * nsimage.m:
4439         * nsfont.m:
4440         * nsfns.m:
4441         * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4442         other files do.
4444         * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4446         * s/sol2-6.h: Remove obsolete comments.
4448         Remove unnecessary alloca.h includes.
4449         * keymap.c: Do not include alloca.h, config.h does that.
4450         * sysdep.c: Likewise.  Do not define fwrite, not used.
4452 2010-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
4454         * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4455         the HAVE_TERMIO where it belongs (bug#6149).
4457 2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
4459         * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4460         of bug#6305).
4462 2010-05-30  Eli Zaretskii  <eliz@gnu.org>
4464         * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4465         state is always cached (bug#6306).
4467 2010-05-29  Eli Zaretskii  <eliz@gnu.org>
4469         Fix cursor motion in bidi-reordered continued lines.
4470         * xdisp.c (try_cursor_movement): Backup to non-continuation line
4471         only after finding point's row.  Fix the logic.  Rewrite the loop
4472         over continuation lines in bidi-reordered buffers.  Return
4473         CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4474         rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4476 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
4478         * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4480 2010-05-28  Kenichi Handa  <handa@m17n.org>
4482         * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4483         Don't sheck SPEC if it is nil.
4484         (font_list_entities): Call font_delete_unmatched if
4485         Vface_ignored_fonts is non-nil.  (Bug#6287)
4487 2010-05-28  Glenn Morris  <rgm@gnu.org>
4489         * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4491 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
4493         * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4494         whether to trash.
4495         (internal_delete_file, Frename_file): Callers changed.
4496         (delete_by_moving_to_trash): Doc fix.
4497         (Fdelete_directory_internal): Don't move to trash.
4499         * callproc.c (delete_temp_file):
4500         * buffer.c (Fkill_buffer): Callers changed.
4502         * lisp.h: Update prototype.
4504 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
4506         * xdisp.c (redisplay_window): After redisplay, check if point is
4507         still valid before setting it (Bug#6177).
4509 2010-05-27  Glenn Morris  <rgm@gnu.org>
4511         * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4512         Convert comments to Makefile format.
4514         * Makefile.in (bootstrap-clean): No more Makefile.c.
4516 2010-05-26  Glenn Morris  <rgm@gnu.org>
4518         * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4519         (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4521         * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4522         Remove.
4523         (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4525 2010-05-26  Kenichi Handa  <handa@m17n.org>
4527         * composite.c (composition_compute_stop_pos): Fix condition for
4528         backward scanning.
4530 2010-05-25  Glenn Morris  <rgm@gnu.org>
4532         * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4533         Move before TEMACS_LDFLAGS.
4534         (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4535         (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4537         * Makefile.in (NOT_C_CODE): No longer define.
4538         (config.h): No longer include.
4540         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4541         variables it may reference.
4543         * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4544         (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4546 2010-05-25  Kenichi Handa  <handa@m17n.org>
4548         * dispextern.h (struct composition_it): New members rule_idx and
4549         charpos.
4551         * xdisp.c (set_iterator_to_next): While scanning backward, assume
4552         that the character positions of IT point the last character of the
4553         current grapheme cluster.
4554         (next_element_from_composition): Don't change character positions
4555         of IT.
4556         (append_composite_glyph): Set glyph->charpos to
4557         it->cmp_it.charpos.
4559         * composite.c (autocmp_chars): Change the first argument to RULE,
4560         and try composition with RULE only.
4561         (composition_compute_stop_pos): Record the index number of the
4562         composition rule in CMP_IT->rule_idx.
4563         (composition_reseat_it): Call autocmp_chars repeatedly until the
4564         correct rule of the composition is found.
4565         (composition_update_it): Set CMP_IT->charpos.  Assume the CHARPOS
4566         is at the last character of the current grapheme cluster when
4567         CMP_IT->reversed_p is nonzero.
4569 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4571         * editfns.c (Fbyte_to_string): New function.
4573 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4575         * process.c (Fmake_network_process): Set :host to nil if it's not used.
4576         Suggested by Masatake YAMATO <yamato@redhat.com>.
4578 2010-05-23  Eli Zaretskii  <eliz@gnu.org>
4580         * dispextern.h (init_iterator): Sync prototype with changed definition.
4582 2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
4584         * s/netbsd.h: If terminfo is found, use it in preference to
4585         termcap.  (Bug#6190)  [Backport from trunk]
4587 2010-05-19  Eli Zaretskii  <eliz@gnu.org>
4589         Redesign and reimplement bidi-aware edge positions of glyph rows.
4591         * dispextern.h (struct glyph_row): New members minpos and maxpos.
4592         (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4593         (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4594         and maxpos members instead of start.pos and end.pos, respectively.
4596         * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4597         row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4598         (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4599         (try_window_reusing_current_matrix, try_window_id):
4600         Use ROW->minpos rather than ROW->start.pos.
4601         (init_from_display_pos, init_iterator): Use EMACS_INT for
4602         character and byte positions.
4603         (find_row_edges): Rename from find_row_end.  Accept additional
4604         arguments for minimum and maximum buffer positions seen by
4605         display_line for this row.  Don't use iterator to find the
4606         position following the maximum one; instead, increment the
4607         position found by display_line directly.  Fix logic; eol_pos
4608         should be tested before the rest.  Handle the case of characters
4609         delivered from display vector (bug#6036).  Fix tests related to
4610         it->method.  Handle the truncated_on_right_p rows.
4611         (RECORD_MAX_MIN_POS): New macro.
4612         (display_line): Use it to record the minimum and maximum buffer
4613         positions for glyphs in the row being assembled.  Record the
4614         position of the newline that terminates the line.  If word wrap is
4615         in effect, restore minimum and maximum positions seen up to the
4616         wrap point, when iterator returns to it.
4617         (try_window_reusing_current_matrix): Give up if in bidi-reordered
4618         row and cursor not already at point.  Restore original pre-bidi
4619         code for unidirectional buffers.
4621         * dispnew.c (increment_row_positions, check_matrix_invariants):
4622         Increment and check row->start.pos and row->end.pos, in addition
4623         to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4625         * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4626         Display truncated_on_left_p and truncated_on_right_p flags.
4627         Formatting fixes.
4628         (pmtxrows): Display the ordinal number of each row.  Don't display
4629         rows beyond the last one.
4631         * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4632         it is not copied by bidi_copy_it.
4634 2010-05-22  Eli Zaretskii  <eliz@gnu.org>
4636         * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4637         (Bug#6237)
4639 2010-05-22  Chong Yidong  <cyd@stupidchicken.com>
4641         * image.c (Fimage_flush): Rename from image-refresh.
4643 2010-05-21  Chong Yidong  <cyd@stupidchicken.com>
4645         * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4646         just one window.
4648         * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4649         (clear_image_cache): If the number of cached images is unusually
4650         large, decrease the cache eviction delay (Bug#6230).
4652 2010-05-21  Glenn Morris  <rgm@gnu.org>
4654         * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4655         Move these rules to ns.mk.
4656         * ns.mk: New file.
4658         * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4660         * Makefile.in (CANNOT_DUMP): New, set by configure.
4661         (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4663 2010-05-20  Juri Linkov  <juri@jurta.org>
4665         * fileio.c (Fdelete_file): Change interative spec to use
4666         `read-file-name' like in `find-file-read-args' where the default
4667         value is `default-directory' instead of `buffer-file-name'.
4668         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4670 2010-05-20  Kevin Ryde  <user42@zip.com.au>
4672         * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4673         (Voverriding_terminal_local_map, Vsystem_key_alist)
4674         (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4676 2010-05-20  Glenn Morris  <rgm@gnu.org>
4678         * Makefile.in (DEPDIR): New constant.
4679         (DEPFLAGS): Set with configure, not cpp.
4680         (MKDEPDIR): New, set by configure.
4681         (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4682         (clean): Use $DEPDIR.
4683         (deps_frag): Include from configure.
4684         Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4685         * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4687         * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4688         reallocation of the cache.  (Bug#6210)
4690 2010-05-19  Glenn Morris  <rgm@gnu.org>
4692         * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4694         * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4695         (GNULIB_VAR): Remove.
4696         (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4698         * m/ibms390x.h (LINKER):
4699         * m/macppc.h (LINKER) [GNU_LINUX]:
4700         * s/aix4-2.h (ORDINARY_LINK):
4701         * s/cygwin.h (LINKER):
4702         * s/darwin.h (ORDINARY_LINK):
4703         * s/gnu.h (ORDINARY_LINK):
4704         * s/netbsd.h (LINKER):
4705         * s/usg5-4.h (ORDINARY_LINK):
4706         Move to configure.
4708         * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4710 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
4712         * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4713         prevent stack overflow if number of arguments is too large
4714         (Bug#6214).
4716 2010-05-18  Juanma Barranquero  <lekktu@gmail.com>
4718         * charset.c (load_charset_map_from_file): Don't call close after fclose.
4720 2010-05-18  Glenn Morris  <rgm@gnu.org>
4722         * s/gnu-linux.h: Combine two conditionals.
4724         * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4725         $(POST_ALLOC_OBJ).
4727         * Makefile.in (RALLOC_OBJ): New, set by configure.
4728         (rallocobj): Replace with the previous variable.
4729         (otherobj): Use $RALLOC_OBJ.
4731         * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4732         * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4734         * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4735         (gmallocobj, vmlimitobj): Replace with previous two variables.
4736         (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4738 2010-05-17  Glenn Morris  <rgm@gnu.org>
4740         * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4741         (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4743 2010-05-16  Glenn Morris  <rgm@gnu.org>
4745         * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4747         * Makefile.in (clean): Get rid of HAVE_NS conditional.
4749         * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4750         trailing "/".
4752         * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4753         (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4755         * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4756         (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4757         (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4758         (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4759         Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4761         * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4762         Remove ${STARTFLAGS}, nothing ever sets it.
4764 2010-05-16  Dan Nicolaescu  <dann@ics.uci.edu>
4766         * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4768 2010-05-16  Glenn Morris  <rgm@gnu.org>
4770         * Makefile.in (LIBX_BASE): Always define.
4772         * Makefile.in (LIBX_OTHER): Move out of cpp section.
4774         * Makefile.in (LIBXT): Always define.
4776 2010-05-15  Glenn Morris  <rgm@gnu.org>
4778         * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
4780         * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4781         (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4783 2010-05-15  Ken Raeburn  <raeburn@raeburn.org>
4785         * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue.  (Bug#5916)
4786         (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4788         * emacs.c (main): Initialize initial-environment and
4789         process-environment before generating from env, not after.
4791         Handle --version reasonably in CANNOT_DUMP configuration.
4792         * emacs.c (emacs_version, emacs_copyright): New string variables.
4793         (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4794         (syms_of_emacs): Defvar them, and initialize them from the C
4795         string variables.
4796         (main): If initialization hasn't been done, print initial version
4797         info from the C strings, instead of starting an interactive session.
4799 2010-05-15  Eli Zaretskii  <eliz@gnu.org>
4801         * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4802         of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
4803         (bidi_paragraph_init): Remove redundant assertion that we are at
4804         the beginning of a line after call to bidi_find_paragraph_start.
4806         * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4807         (syms_of_xdisp): Defsubr it.
4809         * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4811         * Makefile.in: Fix MSDOS-related comments.
4813 2010-05-15  Glenn Morris  <rgm@gnu.org>
4815         * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4816         (really-lwlib, really-oldXMenu): Always define.
4817         ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4819         * Makefile.in: Simplify cpp conditional.
4821         * Makefile.in (${ns_appdir}): Simplify using umask.
4823         * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4825 2010-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
4827         * eval.c (specbind): Remove left-over duplicate test.
4828         Disallow let-binding frame-local vars.  Add comment.
4830 2010-05-14  Eli Zaretskii  <eliz@gnu.org>
4832         Make the cache of bidi iterator states dynamically allocated.
4833         * bidi.c (bidi_cache_shrink): New function.
4834         (bidi_init_it): Call it.
4835         (bidi_cache_iterator_state): Enlarge the cache if needed.
4837         * bidi.c (bidi_move_to_visually_next): Rename from
4838         bidi_get_next_char_visually.  All callers changed.
4840 2010-05-14  Kenichi Handa  <handa@m17n.org>
4842         * dispextern.h (struct composition_it): New member reversed_p.
4844         * composite.c (composition_compute_stop_pos): Search backward if
4845         ENDPOS < CHARPOS.
4846         (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4847         Set CMP_IT->reversed_p.
4848         (composition_update_it): Pay attention to CMP_IT->reversed_p.
4850         * xdisp.c (set_iterator_to_next):
4851         Call composition_compute_stop_pos with negative ENDPOS if we are
4852         scanning backward.  Call composition_compute_stop_pos if scan
4853         direction is changed.
4854         (next_element_from_buffer): Call composition_compute_stop_pos with
4855         negative ENDPOS if we are scanning backward.
4856         (next_element_from_composition): Pay attention to
4857         IT->cmp_it.reversed_p.
4859 2010-05-14  Kenichi Handa  <handa@m17n.org>
4861         * font.c (font_range): Return the range for the font found at first.
4863 2010-05-14  Glenn Morris  <rgm@gnu.org>
4865         * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4867         * Makefile.in (mktime, X11, register): Move undefs to configure.
4869         * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4870         (MSDOS_X_OBJ): New variable.
4871         (MSDOS_SUPPORT_REAL): New constant.
4872         (MSDOS_SUPPORT): Set as a variable, not with cpp.
4873         (obj): Use MSDOS_X_OBJ.
4874         (lisp): Use MSDOS_SUPPORT as a variable.
4876         * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4877         (GPM_MOUSE_SUPPORT): Now it's a constant.
4878         (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4879         not cpp.
4881         * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
4882         (ns_appresdir): Remove, unused.
4884         * Makefile.in (SHELL): Move outside cpp section.
4886         * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4888 2010-05-13  Glenn Morris  <rgm@gnu.org>
4890         * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4891         (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4893         * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4894         HAVE_WINDOW_SYSTEM must be too.
4896         * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4897         (lisp): Remove WINNT_SUPPORT.
4899         * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4900         Let configure set these variables (to empty) in this case as well.
4902         * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4903         (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4905         * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4906         (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4907         (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4908         (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4909         (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
4910         the values output by configure.
4911         (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4913 2010-05-12  Glenn Morris  <rgm@gnu.org>
4915         * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4916         (LINKER_WAS_SPECIFIED): Remove.
4918         * Makefile.in (LIB_GCC): Set using configure, not cpp.
4919         (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4920         * m/arm.h (LIB_GCC) [GNU_LINUX]:
4921         * s/cygwin.h (LIB_GCC):
4922         * s/freebsd.h (LIB_GCC):
4923         * s/gnu-linux.h (LIB_GCC):
4924         * s/msdos.h (LIB_GCC):
4925         * s/netbsd.h (LIB_GCC):
4926         Move to configure.
4928 2010-05-11  Karel Klic  <kklic@redhat.com>
4930         * ftfont.c: Fix incorrect parentheses of #if condition for
4931         definining M17N_FLT_USE_NEW_FEATURE.
4933 2010-05-11  Glenn Morris  <rgm@gnu.org>
4935         * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4936         * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4938 2010-05-10  Eli Zaretskii  <eliz@gnu.org>
4940         * xdisp.c (init_iterator): Don't turn on bidi reordering in
4941         unibyte buffers.  See
4942         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4944 2010-05-10  Glenn Morris  <rgm@gnu.org>
4946         * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4947         (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4948         (LIBES): Use LIBS_SYSTEM as a variable.
4949         * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
4950         * s/aix4-2.h (LIBS_SYSTEM):
4951         * s/freebsd.h (LIBS_SYSTEM):
4952         * s/hpux10-20.h (LIBS_SYSTEM):
4953         * s/sol2-6.h (LIBS_SYSTEM):
4954         * s/unixware.h (LIBS_SYSTEM):
4955         Move to configure.
4957         * s/aix4-2.h (MAIL_USE_LOCKF):
4958         * s/bsd-common.h (MAIL_USE_FLOCK):
4959         * s/darwin.h (MAIL_USE_FLOCK):
4960         * s/gnu-linux.h (MAIL_USE_FLOCK):
4961         * s/irix6-5.h (MAIL_USE_FLOCK):
4962         * s/template.h (MAIL_USE_FLOCK):
4963         Move to configure.
4965 2010-05-08  Chong Yidong  <cyd@stupidchicken.com>
4967         * Version 23.2 released.
4969 2010-05-08  Andreas Schwab  <schwab@linux-m68k.org>
4971         * composite.c (autocmp_chars): Save point as marker before calling
4972         auto-composition-function (Bug#5984).
4974         * lisp.h (restore_point_unwind): Add prototype.
4976         * fileio.c (restore_point_unwind): Remove static attribute.
4978 2010-05-08  Kenichi Handa  <handa@m17n.org>
4980         * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4981         new feature of libotf and m17n-flt.
4982         (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4983         Call OTF_check_features even if no specific feature is given.
4984         (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4985         (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4986         that OUT is NULL.  Use OTF_drive_gsub_with_log and
4987         OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4988         OTF_drive_gpos.
4989         (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
4990         (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4991         Setup mflt_enable_new_feature and mflt_try_otf.
4993 2010-05-08  Jan Djärv  <jan.h.d@swipnet.se>
4995         * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4997         * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4998         box and toolbar (Bug #6139).
4999         (xg_create_tool_bar): Remove comment (Bug #6139).
5000         (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5001         (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5003 2010-05-08  Juanma Barranquero  <lekktu@gmail.com>
5005         * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5006         Update dependencies.
5008 2010-05-08  Eli Zaretskii  <eliz@gnu.org>
5010         * fringe.c (update_window_fringes): Set up truncation bitmaps for
5011         R2L lines.
5013 2010-05-08  Glenn Morris  <rgm@gnu.org>
5015         * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5017         * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5018         (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5019         (termcapobj): Replace with TERMCAP_OBJ.
5020         (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5021         (LIBES): Use LIBS_TERMCAP as a variable.
5023         * s/freebsd.h (osreldate.h): No longer include, since this file
5024         does not use __FreeBSD_version any more.
5026         * s/aix4-2.h (TERMINFO):
5027         * s/cygwin.h (TERMINFO):
5028         * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5029         * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5030         * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5031         * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5032         * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5033         * s/irix6-5.h (TERMINFO):
5034         * s/netbsd.h (LIBS_TERMCAP):
5035         * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5036         * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5037         * s/usg5-4.h (TERMINFO):
5038         Move to configure.
5040 2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
5042         * eval.c (unbind_to): Don't unbind a local binding into the global
5043         binding when the local binding disappeared.  Inversely, don't unbind
5044         a global binding into a newly created local binding.
5045         * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5046         can specify the frame to use, when applicable.  Adjust callers.
5048 2010-05-07  Vincent Belaïche  <vincent.belaiche@gmail.com>
5049             Stefan Monnier  <monnier@iro.umontreal.ca>
5051         * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5053 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
5055         * w32fns.c: Include w32.h.
5056         (Fw32_shell_execute): Decode the error message before passing it
5057         to `error'.  (Bug#6126)
5059         * msdos.c (dos_set_window_size):
5060         * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5061         instead of `XSYMBOL (foo)->value'.
5063 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
5065         Fix the MS-DOS build, broken by autoconfiscation.
5067         * Makefile.in: Don't use Make-style comments past the "start of
5068         cpp stuff" line.
5069         (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5071         * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5072         edited directly by msdos/sed1v2.inp).
5074 2010-05-07  Glenn Morris  <rgm@gnu.org>
5076         * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5077         (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5078         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5079         move out of cpp section.
5080         * s/freebsd.h (LD_SWITCH_SYSTEM):
5081         * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5082         * s/netbsd.h (LD_SWITCH_SYSTEM):
5083         * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5085 2010-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
5087         Define LIB_STANDARD and START_FILES using autoconf.
5088         * s/usg5-4.h (LIB_STANDARD):
5089         * s/netbsd.h (START_FILES):
5090         * s/irix6-5.h (LIB_STANDARD):
5091         * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5092         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5093         * s/freebsd.h (START_FILES):
5094         * s/darwin.h (START_FILES):
5095         * s/cygwin.h (START_FILES):
5096         * s/aix4-2.h (LIB_STANDARD):
5097         * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5098         * Makefile.in (STARTFILES): Rename to START_FILES, define using
5099         autoconf, not cpp.
5101 2010-05-06  Dan Nicolaescu  <dann@ics.uci.edu>
5103         Remove NEED_BSDTTY and NEED_UNISTD_H.
5104         * s/hpux10-20.h (NEED_BSDTTY): Remove.
5105         * s/aix4-2.h (NEED_UNISTD_H): Remove.
5106         * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5107         <sys/ptyio.h> and <unistd.h>.
5109         * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5111         * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5112         * s/gnu.h (START_FILES): Remove empty definition.
5114 2010-05-06  Jan Djärv  <jan.h.d@swipnet.se>
5116         * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5118 2010-05-06  Glenn Morris  <rgm@gnu.org>
5120         * Makefile.in (CPP, LN_S): Remove unused variables.
5122 2010-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
5124         * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5126 2010-05-05  Lawrence Mitchell  <wence@gmx.li>
5128         * m/sparc.h: Fix typo in earlier change.
5130 2010-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
5132         Misc tweaks.
5133         * eval.c (Fdefvaralias): Remove unintended nested if.
5134         (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5136 2010-05-04  Bernhard Herzog  <bh@intevation.de>  (tiny change)
5138         * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5140 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
5142         Remove BSD_PGRPS.
5143         * s/bsd-common.h (BSD_PGRPS): Remove undef.
5144         * s/gnu-linux.h (BSD_PGRPS): Remove.
5145         * term.c (dissociate_if_controlling_tty):
5146         * sysdep.c (narrow_foreground_group, widen_foreground_group)
5147         (init_sys_modes, reset_sys_modes):
5148         * emacs.c (main):
5149         * callproc.c (Fcall_process, child_setup): Remove code depending
5150         on BSD_PGRPS.
5152         Remove POSIX_SIGNALS.
5153         * s/usg5-4.h (POSIX_SIGNALS):
5154         * s/netbsd.h (POSIX_SIGNALS):
5155         * s/msdos.h (POSIX_SIGNALS):
5156         * s/ms-w32.h (POSIX_SIGNALS):
5157         * s/hpux11.h (POSIX_SIGNALS):
5158         * s/gnu.h (POSIX_SIGNALS):
5159         * s/gnu-linux.h (POSIX_SIGNALS):
5160         * s/freebsd.h (POSIX_SIGNALS):
5161         * s/darwin.h (POSIX_SIGNALS):
5162         * s/cygwin.h (POSIX_SIGNALS):
5163         * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5164         * s/unixware.h:
5165         * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5166         * process.c (create_process):
5167         * syssignal.h:
5168         * sysdep.c (wait_for_termination, init_signals):
5169         * process.c (create_process):
5170         * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5171         remove all code that assumes the contrary.
5173 2010-05-04  Glenn Morris  <rgm@gnu.org>
5175         * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5176         variable.
5177         * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5178         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5179         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5180         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5181         LD_SWITCH_SYSTEM_tmp.
5182         * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5183         New variables, set by configure.
5185         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5186         * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5187         (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5188         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5189         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5191         * s/aix4-2.h (C_SWITCH_SYSTEM):
5192         * m/alpha.h (C_SWITCH_MACHINE):
5193         Move to configure.in.
5194         * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5195         New variables, set by configure.
5196         (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5197         $c_switch_machine and $c_switch_system.
5199 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
5201         * s/hpux10-20.h (LIB_STANDARD): New definition.
5202         * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5203         on it, not used anymore.
5205 2010-05-03  Chong Yidong  <cyd@stupidchicken.com>
5207         * eval.c (internal_condition_case_n): Rename from
5208         internal_condition_case_2.
5209         (internal_condition_case_2): New function.
5211         * xdisp.c (safe_call): Use internal_condition_case_n.
5213         * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5214         (internal_delete_file, Frename_file): Callers changed.
5216         * buffer.c (Fkill_buffer):
5217         * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5219         * lisp.h: Update prototypes.
5221 2010-05-03  Glenn Morris  <rgm@gnu.org>
5223         * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5224         (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5225         (LIBXT): Set with configure, not cpp.
5226         (LIBX): Remove.
5227         (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5229 2010-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
5231         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5232         The FreeBSD is not needed, the default works, Solaris version is
5233         not needed, and the remaining case is not supported by configure.
5235 2010-05-02  Jan Djärv  <jan.h.d@swipnet.se>
5237         * xsmfns.c (CHDIR_OPT): New define.
5238         (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5239         restarting emacs.
5241         * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5242         shut_down_emacs.
5244         * emacs.c (USAGE1): Mention --chdir.
5245         (main): Handle --chdir.
5246         (standard_args): Add --chdir.
5247         (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5248         #5552).
5250 2010-05-01  Dan Nicolaescu  <dann@ics.uci.edu>
5252         Remove LD_SWITCH_MACHINE.
5253         * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5254         (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5256         Clean up IRIX code.
5257         * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5258         * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5260         Clean up AIX code.
5261         * m/ibmrs6000.inp: Remove file, unused.
5262         * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5263         (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5264         definition ...
5265         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5267         * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5268         unused.
5270 2010-05-01  Eli Zaretskii  <eliz@gnu.org>
5272         Emulate POSIX_SIGNALS on MS-Windows.
5274         * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5275         (SIG_SETMASK, SIG_UNBLOCK): Define.
5277         * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5278         (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5279         from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5281         * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5282         New stubs.
5284         Miscellaneous fixes of bidi display.
5286         * xdisp.c (find_row_end): New function, refactored from display_line.
5287         (display_line): Use it.
5288         (extend_face_to_end_of_line): In almost-filled rows, extend only
5289         if the row is R2L and not continued.
5290         (display_line): Fix prepending of truncation glyphs to R2L rows.
5291         Preserve overlay and string info in row->end.
5292         (insert_left_trunc_glyphs): Support addition of left truncation
5293         glyphs to R2L rows.
5294         (set_cursor_from_row): Don't place cursor on the vertical border
5295         glyph between adjacent windows.  Fix a crash when a display string
5296         is continued to the next line.  Don't return zero if cursor was
5297         found by `cursor' property of a display string.
5298         (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5299         test for that explicitly.
5301 2010-05-01  Glenn Morris  <rgm@gnu.org>
5303         * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5304         for clarity.
5305         (OTHER_OBJ): Remove.
5306         (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5307         (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5309 2010-05-01  Karel Klíč  <kklic@redhat.com>
5311         * fileio.c (Ffile_selinux_context): Context functions may return null.
5313 2010-04-30  Dan Nicolaescu  <dann@ics.uci.edu>
5315         * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
5317 2010-04-30  Glenn Morris  <rgm@gnu.org>
5319         * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.  (Bug#6065)
5320         (OTHER_OBJ): Define as a separate variable, for clarity.
5322 2010-04-30  Jan Djärv  <jan.h.d@swipnet.se>
5324         * xsettings.c: include limits.h and update file comment.
5326 2010-04-30  Glenn Morris  <rgm@gnu.org>
5328         * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5329         Set with configure, not cpp.
5330         (LIBW): Remove, replace with $TOOLKIT_LIBW.
5332         * Makefile.in (mallocobj): Remove.
5333         (otherobj): Simplify using @OTHER_OBJ@.
5335         * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5336         (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5337         Don't bother making nsgui.h dependency platform-specific.
5339         * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5341 2010-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
5343         * process.c (read_process_output, exec_sentinel): Don't burp if the
5344         sentinel/filter kills the current buffer (bug#6060).
5346         Fix wrong-docstring problem introduced with hash-consing.  (Bug#6008)
5347         * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5348         Remove unused var `args'.
5349         * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5350         (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5351         * doc.c (store_function_docstring): Use XSETCAR.
5353 2010-04-28  Glenn Morris  <rgm@gnu.org>
5355         * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5356         (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5358         * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5360         * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5361         (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5363         * Makefile.in (FONT_OBJ): New, set by configure.
5364         (FONT_DRIVERS): Use $FONT_OBJ.
5366         * Makefile.in (LIBXMU): Set with configure, not cpp.
5367         * s/aix4-2.h (LIBXMU):
5368         * s/hpux10-20.h (LIBXMU):
5369         Remove definition, now set in configure.
5371         * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5373         * m/amdx86-64.h [i386]: Move this test to configure.in.
5375 2010-04-27  Glenn Morris  <rgm@gnu.org>
5377         * Makefile.in (LIBXTR6): Set with configure, not cpp.
5378         * s/unixware.h (NEED_LIBW): Remove definition.
5380         * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5381         (TOOLKIT_LIBW): New, set by configure.
5382         (@X_TOOLKIT_TYPE@): No longer define it.
5384         * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5385         (MOTIF_LIBW): Set with configure, not cpp.
5386         * s/aix4-2.h (LIB_MOTIF):
5387         * s/gnu-linux.h (LIB_MOTIF):
5388         * s/unixware.h (LIB_MOTIF): Move to configure.in.
5390 2010-04-27  Dan Nicolaescu  <dann@ics.uci.edu>
5392         Reduce CPP usage.
5393         * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5394         (obj): Use autoconf for unexec instead of cpp.
5395         (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5396         definitions and undefs.  Inline definitions in the only user.
5397         (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5399 2010-04-27  Glenn Morris  <rgm@gnu.org>
5401         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5402         since the defaults (set by the system file) are fine in most cases.
5403         [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5404         * m/ibms390x.h (START_FILES, LIB_STANDARD):
5405         * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5406         * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5407         Remove definitions, since they are set correctly in s/gnu-linux.h.
5408         * s/freebsd.h (START_FILES, LIB_STANDARD):
5409         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5410         * s/hpux10-20.h (START_FILES):
5411         * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5412         Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5414         * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5415         (MOTIF_LIBW): Use $LIBXP.
5416         (otherobj): Use $WIDGET_OBJ.
5418 2010-04-26  Dan Nicolaescu  <dann@ics.uci.edu>
5420         * Makefile.in (LIBS_MACHINE): Remove, unused.
5422         Use autoconf instead of cpp for LIB_MATH.
5423         * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5424         * s/cygwin.h (LIB_MATH): Likewise.
5425         * Makefile.in (LIB_MATH): Do not define with cpp.
5426         (LIBES): Use autoconf for LIB_MATH.
5428 2010-04-26  Kenichi Handa  <handa@m17n.org>
5430         * composite.c (Ffind_composition_internal): Fix the return value
5431         for an automatic composition.
5433 2010-04-25  Dan Nicolaescu  <dann@ics.uci.edu>
5435         Remove all NO_ARG_ARRAY uses.
5436         * fns.c (concat2, concat3, nconc2):
5437         * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5438         (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5439         * m/xtensa.h (NO_ARG_ARRAY):
5440         * m/template.h (NO_ARG_ARRAY):
5441         * m/sparc.h (NO_ARG_ARRAY):
5442         * m/sh3.h (NO_ARG_ARRAY):
5443         * m/mips.h (NO_ARG_ARRAY):
5444         * m/macppc.h (NO_ARG_ARRAY):
5445         * m/iris4d.h (NO_ARG_ARRAY):
5446         * m/intel386.h (NO_ARG_ARRAY):
5447         * m/ibms390x.h (NO_ARG_ARRAY):
5448         * m/ibms390.h (NO_ARG_ARRAY):
5449         * m/ibmrs6000.h (NO_ARG_ARRAY):
5450         * m/ia64.h (NO_ARG_ARRAY):
5451         * m/hp800.h (NO_ARG_ARRAY):
5452         * m/arm.h (NO_ARG_ARRAY):
5453         * m/amdx86-64.h (NO_ARG_ARRAY):
5454         * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5456 2010-04-25  Eli Zaretskii  <eliz@gnu.org>
5458         * xdisp.c (display_line): Don't assume 2nd call to
5459         get_next_display_element cannot return zero.  (Bug#6030)
5460         (iterate_out_of_display_property): New function, body from pop_it.
5461         (pop_it): Use it.
5463 2010-04-24  Glenn Morris  <rgm@gnu.org>
5465         * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5466         For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5467         (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5468         since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.
5470 2010-04-24  Eli Zaretskii  <eliz@gnu.org>
5472         * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5473         use `get_next_display_element' and `set_iterator_to_next' to
5474         advance to the next character, when looking for the character that
5475         begins the next row.
5477         * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5478         definition of "struct Lisp_Symbol".
5480 2010-04-24  Glenn Morris  <rgm@gnu.org>
5482         * Makefile.in (CRT_DIR): New variable, set by configure.
5483         * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5484         Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
5486 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
5488         * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5490         * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5492         Remove redundant flags.
5493         * s/freebsd.h (C_SWITCH_SYSTEM):
5494         * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5495         * s/netbsd.h (C_SWITCH_SYSTEM):
5496         * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5497         of these.
5499         Simplify m/intel386.h.
5500         * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5501         user: ecrt0.c.
5502         (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5503         (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5504         the only user: s/unixware.h.
5505         * ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
5506         from m/intel386.h.
5507         * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5508         moved here from m/intel386.h.
5510         * m/mips.h: Remove #if 0 code.
5512 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
5514         Fix display of composed characters from L2R scripts in bidi buffers.
5515         * xdisp.c (set_iterator_to_next, next_element_from_composition):
5516         After advancing IT past the composition, resync the bidi iterator
5517         with IT's position.  (Bug#5977)
5519 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
5521         * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5522         (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5524 2010-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
5526         * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5528 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
5530         Support `display' text properties and overlay strings in bidi buffers.
5531         * xdisp.c (pop_it): When the stack is popped after displaying
5532         from a string, bidi-iterate to exit from the text portion covered
5533         by the `display' property or overlay.  (Bug#5988, bug#5920)
5535 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
5537         * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5538         (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5540         * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5541         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5543         Simplify STARTFILES definition.
5544         * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5545         relying on Makefile.in to define it.
5546         * s/cygwin.h (START_FILES): Likewise.
5547         * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5549         Clean up Solaris code.
5550         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5551         (LIB_MOTIF): Remove, configure takes care of this.
5552         (NOT_USING_MOTIF): Remove, unused.
5553         * xrdb.c: Remove #if 0-ed #include.
5554         (SYSV): Remove conditional for old SysV.
5555         * sysdep.c (closedir): Remove conditional code for Solaris,
5556         Solaris has closedir.
5558 2010-04-22  Jan Djärv  <jan.h.d@swipnet.se>
5560         * xsettings.c (read_and_apply_settings): Check if current_font is
5561         NULL before strcmp (Bug#6001).
5563 2010-04-21  Dan Nicolaescu  <dann@ics.uci.edu>
5565         Clean up HP-UX files.
5566         * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5567         (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5568         (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5569         * s/hpux10-20.h: ... to the only user, here.
5571 2010-04-21  Eli Zaretskii  <eliz@gnu.org>
5573         * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5574         use buffer-local values of paragraph-start and paragraph-separate.
5575         <paragraph_start_re, paragraph_separate_re>: Rename from
5576         fallback_paragraph_start_re and fallback_paragraph_separate_re.
5577         (Bug#5992)
5579 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
5581         * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5582         current_tool_bar_style are new.
5583         (store_config_changed_event): Rename from store_font_changed_event.
5584         (XSETTINGS_TOOL_BAR_STYLE): New define.
5585         (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5586         (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5587         HAVE_XFT.
5588         (something_changedCB): store_font_changed_event is now
5589         store_config_changed_event.
5590         (parse_settings): Rename from parse_xft_settings.  Read
5591         non-xft xsettings outside #ifdef HAVE_XFT.
5592         (read_settings): Renamed from read_xft_settings.
5593         (apply_xft_settings): Take current settings as parameter.  Do not
5594         call read_(xft)_settings.
5595         (read_and_apply_settings): New function.
5596         (xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
5597         read_and_apply_settings if there are settings to be read.
5598         (init_xsettings): Renamed from init_xfd_settings.
5599         Call read_and_apply_settings unconditionally.
5600         (xsettings_initialize): Call init_xsettings.
5601         (Ftool_bar_get_system_style): New function.
5602         (syms_of_xsettings): Define Qmonospace_font_name and
5603         Qtool_bar_style.  Initialize current_tool_bar_style to nil.
5604         defsubr Stool_bar_get_system_style.  Fprovide on
5605         dynamic-setting.
5606         Move misplaced HAVE_GCONF
5608         * xsettings.h (Ftool_bar_get_system_style): Declare.
5610         * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5611         Qtext, Qboth, Qboth_horiz are new.
5612         (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5613         Vtool_bar_style, tool_bar_max_label_size.
5615         * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5617         * keyboard.c: QClabel is new.
5618         (parse_tool_bar_item): Take out QClabel from tool bar items.
5619         Try to construct a label if ther is no QClabel.
5620         (syms_of_keyboard): Intern :label as QClabel.
5622         * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5623         (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5624         New.
5626         * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5627         dynamic-setting.el.
5629         * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5630         (xg_make_tool_item, xg_show_toolbar_item): New function.
5631         (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5632         Call xg_make_tool_item to make a tool bar item.
5633         Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
5635         * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5636         into account for toolbars.
5638 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
5640         * data.c (make_blv): Declarations before code (Bug#5993).
5642 2010-04-21  Glenn Morris  <rgm@gnu.org>
5644         * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5645         Define using autoconf, not cpp.
5646         (LIBXSM): New variable, set by autoconf.
5647         (LIBXT): Use $LIBXSM.
5649 2010-04-21  Dan Nicolaescu  <local_user@dannlt>
5651         Remove NOMULTIPLEJOBS, unused.
5652         * s/template.h (NOMULTIPLEJOBS):
5653         * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5655         Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5656         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5657         * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5658         detects -znocombreloc and passes it to the linker
5659         * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5661 2010-04-21  Glenn Morris  <rgm@gnu.org>
5663         * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5665 2010-04-21  Karel Klíč  <kklic@redhat.com>
5667         * Makefile.in (LIBSELINUX_LIBS): New.
5668         (LIBES): Add $LIBSELINUX_LIBS.
5669         * eval.c, lisp.h (call7): New function.
5670         * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5671         (Ffile_selinux_context, Fset_file_selinux_context):
5672         New functions.
5673         (Fcopy_file): New parameter preserve-selinux-context.
5674         (Frename_file): Preserve selinux context when renaming by copy-file.
5676 2010-04-21  Juanma Barranquero  <lekktu@gmail.com>
5677             Eli Zaretskii  <eliz@gnu.org>
5679         Don't depend on cm.c or termcap.c on Windows, use stubs.
5680         * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5681         ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5682         * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5683         (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5684         (sys_tputs, sys_tgetstr): New stubs.
5685         * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5686         (tputs, tgetstr): New; define to sys_*.
5688 2010-04-20  Juanma Barranquero  <lekktu@gmail.com>
5690         * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5692 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5694         * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5695         Just signal a warning rather than an error when inside a let.
5696         (Fmake_variable_frame_local): Add the same test.
5698         * font.c (syms_of_font): Make the style table vars read-only.
5700         * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5701         * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5703         * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5705 2010-04-20  Eli Zaretskii  <eliz@gnu.org>
5707         Fix R2L paragraph display on TTY.
5709         * xdisp.c (unproduce_glyphs): New function.
5710         (display_line): Use it when produced glyphs are discarded from R2L
5711         glyph rows.
5712         (append_composite_glyph): In R2L rows, prepend the glyph rather
5713         than appending it.
5715         * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5716         rather than append it.  Set up the resolved_level and bidi_type
5717         attributes of the appended glyph.
5718         (produce_special_glyphs): Mirror the backslash continuation
5719         character in R2L lines.
5721         Implement display of R2L paragraphs in GUI sessions.
5723         * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5724         append_stretch_glyph.
5725         (set_cursor_from_row) <cursor_x>: Remove unused variable.  Fix
5726         off-by-one error in computing x at end of text in the row.
5727         (append_stretch_glyph): In reversed row, prepend the glyph rather
5728         than append it.  Set resolved_level and bidi_type of the glyph.
5729         (extend_face_to_end_of_line): If the row is reversed, prepend a
5730         stretch glyph whose width is such that the rightmost glyph will be
5731         drawn at the right margin of the window.  Fix off-by-one error on
5732         TTY frames in testing whether a line needs face extension.  Fix
5733         face extension at ZV.  If this is the last glyph row, use
5734         DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5735         region face.
5736         (set_cursor_from_row, display_line): Use
5737         MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5738         row->continuation_lines_width.
5739         (next_element_from_buffer): Don't call bidi_paragraph_init if we
5740         are at ZV.  Fixes a crash when reseated to ZV by
5741         try_window_reusing_current_matrix.
5742         (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5743         which happens with R2L glyph rows.  Fixes a crash when inserting a
5744         character at end of an R2L line.
5745         (set_cursor_from_row): Don't be fooled by truncated rows: don't
5746         treat them as having zero-width characters.  Improve comments.
5747         Don't reverse pos_before and pos_after for reversed glyph rows.
5748         Set cursor.x to negative value when the cursor might be on the
5749         left fringe.
5750         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5751         left fringe, not the right one.
5752         (notice_overwritten_cursor, draw_phys_cursor_glyph)
5753         (erase_phys_cursor): For reversed cursor_row, support cursor on
5754         the left fringe.
5756         * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5757         of continuation indicators on the fringes.
5758         (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5759         left fringe.
5761         * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5762         draw cursor on the left fringe.
5764         * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5765         cursor on the left fringe.
5767         * dispnew.c (update_text_area): Handle reversed desired rows when
5768         the cursor is on the left fringe.
5769         (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5770         below, not by 0, for when the cursor is on the left fringe.
5772 2010-04-20  Jan Djärv  <jan.h.d@swipnet.se>
5774         * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5775         widget is a scrollbar.
5777 2010-04-20  Kenichi Handa  <handa@m17n.org>
5779         * charset.c (char_charset): Consider Vcharset_non_preferred_head
5780         only when the arg CHARSET_LIST is nil.
5782 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5784         Make variable forwarding explicit rather the using special values.
5785         Basically, this makes the structure of buffer-local values and object
5786         forwarding explicit in the type of Lisp_Symbols rather than use
5787         special Lisp_Objects for that.  This tends to lead to slightly more
5788         verbose code, but is more C-like, simpler, and makes it easier to make
5789         sure we handled all cases, among other things by letting the compiler
5790         help us check it.
5791         * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5792         Removing forwarding objects.
5793         (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5794         (struct Lisp_Symbol): Make the various forms of variable-forwarding
5795         explicit rather than hiding them inside Lisp_Object "values".
5796         (XFWDTYPE): New macro.
5797         (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5798         (XBUFFER_LOCAL_VALUE): Remove.
5799         (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5800         (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5801         (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5802         (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5803         (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5804         Remove the Lisp_Misc_* header.
5805         (struct Lisp_Buffer_Local_Value): Redefine.
5806         (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5807         (struct Lisp_Misc_Any): Add filler to get the right size.
5808         (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5809         Lisp_Intfwd.
5810         (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5811         (DEFVAR_KBOARD): Allocate a forwarding object.
5812         * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5813         (let_shadows_global_binding_p): New function.
5814         (union Lisp_Val_Fwd): New type.
5815         (make_blv): New function.
5816         (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5817         (store_symval_forwarding, swap_in_global_binding, Fboundp)
5818         (swap_in_symval_forwarding, find_symbol_value, Fset)
5819         (let_shadows_buffer_binding_p, set_internal, default_value)
5820         (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5821         (Fkill_local_variable, Fmake_variable_frame_local)
5822         (Flocal_variable_p, Flocal_variable_if_set_p)
5823         (Fvariable_binding_locus):
5824         * xdisp.c (select_frame_for_redisplay):
5825         * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5826         (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5827         * frame.c (store_frame_param):
5828         * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5829         * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5830         value structure.
5831         * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5832         (clone_per_buffer_values): Only adjust markers into the current buffer.
5833         (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5834         (Fbuffer_local_value, set_buffer_internal_1)
5835         (swap_out_buffer_local_variables):
5836         Adapt to the new symbol value structure.
5837         (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5838         (defvar_per_buffer): Take a new arg for the fwd object.
5839         (buffer_lisp_local_variables): Return a proper alist (different fix
5840         for bug#4138).
5841         * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5842         (Fgarbage_collect): Don't handle buffer_defaults specially.
5843         (mark_object): Handle new symbol value structure rather than the old
5844         special Lisp_Misc_* objects.
5845         (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5846         * term.c (set_tty_color_mode):
5847         * bidi.c (bidi_initialize): Don't access the ->value field directly.
5848         * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5849         a buffer_local_flags.
5850         * print.c (print_object): Get rid of impossible forwarding objects.
5852 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
5854         * bidi.c (bidi_get_type, bidi_get_category)
5855         (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
5856         (bidi_type_of_next_char, bidi_level_of_next_char):
5857         Declare static.  Use `INLINE' rather than `inline'.
5859 2010-04-19  Juanma Barranquero  <lekktu@gmail.com>
5861         * dired.c (Ffile_attributes): Fix typo in docstring.
5863 2010-04-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
5865         * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5866         NSInteger (Bug#5811).
5868 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5870         * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5871         (PTY_OPEN): New defines.  Use openpty (Bug#726, Bug#5819).
5873 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5875         * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5877 2010-04-19  Chong Yidong  <cyd@stupidchicken.com>
5879         * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5880         terminal frames (Bug#5837).
5882 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
5884         * .gdbinit (xsubchartable): New command.
5886 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
5888         * xdisp.c (display_line): Don't write beyond the last glyph row in
5889         the desired matrix.  Fixes a crash in "emacs -nw" (bug#5972), see
5890         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5891         and
5892         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5894 2010-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
5896         * alloc.c (Fpurecopy): Hash-cons if requested.
5897         (syms_of_alloc): Update purify-flag docstring.
5899 2010-04-18  Jan Djärv  <jan.h.d@swipnet.se>
5901         * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5902         (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5904 2010-04-17  Eli Zaretskii  <eliz@gnu.org>
5906         Fix a crash when an NSM character is inserted at BEGV.
5908         * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5909         (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5910         NEUTRAL_B or UNKNOWN_BT.
5912 2010-04-16  Eli Zaretskii  <eliz@gnu.org>
5914         * xdisp.c (set_cursor_from_row): Don't consider possibility of
5915         other rows with cursor unless they are different from this row and
5916         this row is part of a continued line.  (Bug#5943)
5918 2010-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
5920         * s/freebsd.h: Restore osreldate.h include.
5921         Suggested by Naohiro Aota.
5923 2010-04-16  Jan Djärv  <jan.h.d@swipnet.se>
5925         * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5927 2010-04-16  Ken Brown  <kbrown@cornell.edu>  (tiny change)
5929         * s/cygwin.h: Avoid linking against static libgcc.
5931 2010-04-15  Juri Linkov  <juri@jurta.org>
5933         * window.c: Add Qscroll_command.
5934         Remove Vscroll_preserve_screen_position_commands.
5935         (window_scroll_pixel_based, window_scroll_line_based): Check the
5936         `scroll-command' property on the last command instead of searching
5937         the last command in Vscroll_preserve_screen_position_commands.
5938         (syms_of_window): Initialize and staticpro `Qscroll_command'.
5939         Put Qscroll_command property on Qscroll_up and Qscroll_down.
5940         (scroll-preserve-screen-position): Doc fix.
5941         (Vscroll_preserve_screen_position_commands): Remove variable.
5943 2010-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
5945         * xdisp.c (message): Do not use NO_ARG_ARRAY.
5947 2010-04-14  Dan Nicolaescu  <dann@ics.uci.edu>
5949         Reduce cpp use in Makefile.in.
5950         * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5951         (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5952         (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5953         (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5954         (CRT0_COMPILE): Remove, inline it in the only user.
5956 2010-04-14  Juri Linkov  <juri@jurta.org>
5958         * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5959         `scroll-up-command' and `M-v' from `scroll-down' to
5960         `scroll-down-command'.
5962 2010-04-14  Juri Linkov  <juri@jurta.org>
5964         * window.c (Vscroll_preserve_screen_position_commands): New variable
5965         with the default value as the list of Qscroll_down and Qscroll_up.
5966         (window_scroll_pixel_based, window_scroll_line_based): Search the
5967         last command in the list Vscroll_preserve_screen_position_commands
5968         instead of comparing with Qscroll_up and Qscroll_down.
5970 2010-04-13  Jan Djärv  <jan.h.d@swipnet.se>
5972         * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5973         (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5974         does that.
5976         * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5977         to zero.
5979 2010-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
5981         * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5983         Try to solve the problem of spurious EOF chars in long lines of text
5984         sent to interactive subprocesses.
5985         * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5986         (system_process_attributes): Remove unused var `ttotal'.
5987         * process.c (send_process): Don't bother breaking long line with EOF
5988         chars when talking to ttys any more.
5989         (wait_reading_process_output): Output a warning when called in such
5990         a way that it could block without being interruptible.
5992         Try to detect file modification within the same second.
5993         * buffer.h (struct buffer): New field modtime_size.
5994         * buffer.c (reset_buffer): Initialize it.
5995         * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5996         (Fverify_visited_file_modtime): Check it.
5997         (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5998         (Fset_visited_file_modtime): Set (or clear) it.
6000 2010-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
6002         * process.c (status_notify): Remove unused var `ro'.
6004 2010-04-12  Jan Djärv  <jan.h.d@swipnet.se>
6006         * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6007         more than one visual (Bug#5938).
6009 2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
6011         * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6012         Undefine.
6014 2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
6016         Remove C_SWITCH_SYSTEM_TEMACS.
6017         * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6018         (malloc, realloc, free): Use emacs, not temacs for conditional
6019         definition.
6021         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6022         (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6024         Use autoconf, not cpp for some variables.
6025         * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6026         (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6027         (ALL_CFLAGS): Use them as make variables.
6028         (really-lwlib, really-oldXMenu): Do not pass them.
6030 2010-04-11  Jan Djärv  <jan.h.d@swipnet.se>
6032         * xmenu.c (apply_systemfont_to_dialog): New.
6033         (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6035 2010-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
6037         * process.c (exec_sentinel): Preserve current-buffer.
6039         * process.c (read_process_output): Move the save-current-buffer to
6040         apply to both the filter and the non-filter branches.
6042 2010-04-10  Dan Nicolaescu  <dann@ics.uci.edu>
6044         * s/msdos.h (UNEXEC): New definition.
6046 2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6048         * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6049         (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6051         * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6052         Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6053         set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
6054         TRY_WINDOW_CHECK_MARGINS.
6056         * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
6057         TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).  Subtract last glyph's
6058         width only when it is for padding.
6060 2010-04-09  Jan Djärv  <jan.h.d@swipnet.se>
6062         * xfns.c (Fx_show_tip): Call try_window in a loop until
6063         fonts_changed_p is zero (Bug#2423).
6065 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
6067         * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6068         the end of TEXT_AREA.  (Bug#5856)
6070 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
6072         * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6073         HAVE_GCONF.
6075 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
6077         * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6078         prev.orig_type, for resolving type of NSM.  (Bug#5858)
6080 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
6082         * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6083         (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6084         in current_font.
6085         (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
6086         (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6087         New functions.
6088         (syms_of_xsettings): Initialize current_font.
6089         defsubr Sfont_get_system_normal_font.
6091         * xsettings.h (Ffont_get_system_normal_font)
6092         (xsettings_get_system_normal_font): Declare.
6094         * xfns.c (extern xlwmenu_default_font): Remove.
6095         (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6096         to xlwmenu.c.
6098         * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6099         menu items in UTF-8.
6101         * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6102         (apply_systemfont_to_menu): New function.
6103         (set_frame_menubar, create_and_show_popup_menu): Call
6104         apply_systemfont_to_menu.
6106 2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
6108         * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6109         FRAME_LINE_TO_PIXEL_Y.
6111         * xterm.c (x_set_window_size_1): Don't add border_width/height to
6112         pixelwidth/height.
6114 2010-04-07  Dan Nicolaescu  <dann@ics.uci.edu>
6116         Simplify code for HP machines.
6117         * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6118         for GNU_LINUX, not needed.
6119         (UNEXEC, NEED_BSDTTY): Move definitions...
6120         * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6122         * m/iris4d.h (UNEXEC): Move definition ...
6123         * s/irix6-5.h (UNEXEC): ... here.
6125 2010-04-04  Jan Djärv  <jan.h.d@swipnet.se>
6127         * xfns.c (set_machine_and_pid_properties): New function.
6128         (Fx_create_frame): Call set_machine_and_pid_properties.
6130 2010-04-03  Eli Zaretskii  <eliz@gnu.org>
6132         * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6133         bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6134         BIDI_EOB.  Fixes infloop with vertical cursor motion at ZV.
6136         * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6137         in this function.  (Bug#5703)
6139 2010-04-03  Chong Yidong  <cyd@stupidchicken.com>
6141         * nsterm.h: Fix last change.
6143 2010-04-03  Dan Nicolaescu  <dann@ics.uci.edu>
6145         * m/intel386.h (NO_REMAP): Move definition ...
6146         * s/msdos.h (NO_REMAP): ... here.
6148         * m/vax.h (CRT0_DUMMIES): Remove, unused.
6150         * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6151         used on those platforms.
6153 2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>
6155         Remove extern errno declarations.
6156         * xterm.c:
6157         * xrdb.c:
6158         * w32term.c:
6159         * unexec.c:
6160         * unexaix.c:
6161         * sysdep.c:
6162         * process.c:
6163         * lread.c:
6164         * keyboard.c:
6165         * floatfns.c:
6166         * filelock.c:
6167         * fileio.c:
6168         * emacs.c (main):
6169         * ecrt0.c:
6170         * dispnew.c:
6171         * callproc.c:
6172         * buffer.c: Remove errno extern declarations.
6173         * s/netbsd.h (NEED_ERRNO): Remove.
6175 2010-04-01  Dan Nicolaescu  <dann@ics.uci.edu>
6177         Remove all uses of LIBX11_SYSTEM.
6178         * Makefile.in (LIBX11_SYSTEM): Remove.
6179         * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6180         instead.
6182 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
6184         Remove support for DJGPP v1.x (bug#5813).
6186         * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
6187         * s/msdos.h:
6188         * unexec.c (make_hdr, copy_text_and_data):
6189         * sysdep.c (wait_for_termination, sys_subshell):
6190         * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
6191         (IT_set_terminal_modes, __write, _rename, gethostname)
6192         (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6193         (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6194         the value of __DJGPP__.
6195         (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6196         compatibility code.
6197         * lread.c:
6198         * gmalloc.c (memalign):
6199         * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6200         * emacs.c (main):
6201         * dosfns.c (init_dosfns):
6202         * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6204 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
6206         * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6207         string with `cursor' property comes from an `after-string'
6208         overlay.  (Bug#5816)
6210 2010-04-01  Glenn Morris  <rgm@gnu.org>
6212         * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6213         Define as Makefile variables.
6214         (LIBX): Use above variables rather than directly using autoconf.
6216 2010-03-31  Dan Nicolaescu  <dann@ics.uci.edu>
6218         Clean up BSD_SYSTEM use.
6219         * xterm.c:
6220         * process.c:
6221         * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6222         for including <sys/ioctl.h>.
6223         * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6224         code is only used for MSDOS.
6226 2010-03-31  Juri Linkov  <juri@jurta.org>
6228         * image.c: Add `Qextension_data'.
6229         (syms_of_image): Initialize and staticpro `Qextension_data'.
6230         (Fimage_metadata): Rename from `Fimage_extension_data'.
6231         (gif_load): Put GIF extension data to the property
6232         `Qextension_data'.
6234 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
6236         * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6237         * nsterm.h: Fix prototype.
6239 2010-03-31  Eli Zaretskii  <eliz@gnu.org>
6241         * xdisp.c (highlight_trailing_whitespace): Support highlight of
6242         trailing whitespace in right-to-left rows.
6244 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
6246         Get rid of the direct_output optimizations.
6247         * keyboard.c (nonundocount): Remove extern declaration.
6248         (command_loop_1): Remove brittle optimisation for cheap and
6249         common operations.
6250         * xdisp.c (redisplay_internal): Don't bother checking
6251         redisplay_performed_directly_p any more.
6252         * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6253         any more.
6254         * dispnew.c (redisplay_performed_directly_p)
6255         (direct_output_for_insert, direct_output_forward_char):
6256         * dispextern.h (redisplay_performed_directly_p)
6257         (direct_output_for_insert, direct_output_forward_char): Remove.
6258         * cmds.c (nonundocount): Make it static.
6260 2010-03-31  Bernhard Herzog  <bh@intevation.de>  (tiny change)
6262         * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6264 2010-03-31  Jan Djärv  <jan.h.d@swipnet.se>
6266         * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6267         invisible (Bug#5766).
6269 2010-03-31  Adrian Robert  <adrian.b.robert@gmail.com>
6271         * xdisp.c (x_consider_frame_title, update_window_cursor):
6272         Remove HAVE_NS conditionals.
6273         (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
6275         * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6276         filename for the title.
6277         (ns_set_doc_edited): Do nothing if the selected window is a
6278         minibuffer window.
6280         * nsterm.h: Add prototypes for ns_set_name_as_filename and
6281         ns_set_doc_edited.
6283         * nsterm.m: Remove unneeded prototype.
6285 2010-03-31  Glenn Morris  <rgm@gnu.org>
6287         * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6288         in the DOC file.  (Bug#5336)
6290 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
6292         * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6294 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
6296         * window.c (keys_of_window): Remove redundant/overridden bindings.
6298 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
6300         * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6301         Restore original behavior when the iterator is not bidi_p.
6303 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
6305         * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6307 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
6309         * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6310         are outside the range of cached character positions.
6312 2010-03-30  Juanma Barranquero  <lekktu@gmail.com>
6314         * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6316 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
6318         Initial support for bidirectional editing.
6320         * Makefile.in (obj): Include bidi.o.
6321         (bidi.o): New target.
6323         * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6324         ($(BLD)/bidi.$(O)): New target.
6326         * bidi.c: New file.
6328         * buffer.h (struct buffer): New members bidi_display_reordering
6329         and bidi_paragraph_direction.
6331         * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6332         and bidi_paragraph_direction.
6333         (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6334         and bidi-paragraph-direction.
6335         (Fbuffer_swap_text): Swap the values of
6336         bidi_display_reordering and bidi_paragraph_direction.
6338         * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6339         (bidi_type_t, bidi_dir_t): New types.
6340         (bidi_saved_info, bidi_stack, bidi_it): New structures.
6341         (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6342         prev_stop, base_level_stop, and eol_pos.
6343         (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6344         (IT_STACK_SIZE): Enlarge to 5.
6345         (struct glyph_row): New member reversed_p.
6346         <string_buffer_position>: Update prototype.
6347         (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6348         glyph_row if bidi_it.paragraph_dir == R2L.
6349         (struct glyph): New members resolved_level and bidi_type.
6351         * dispnew.c (direct_output_forward_char): Give up if we need bidi
6352         processing or buffer's direction is right-to-left.
6353         (prepare_desired_row): Preserve the reversed_p flag.
6354         (row_equal_p): Compare the reversed_p attributes as well.
6356         * xdisp.c (init_iterator): Initialize it->bidi_p.  Call
6357         bidi_init_it and set it->paragraph_embedding from the current
6358         buffer's value of bidi_paragraph_direction.
6359         (reseat_1): Initialize bidi_it.first_elt.
6360         (set_iterator_to_next, next_element_from_buffer): Use the value of
6361         paragraph_embedding to determine the paragraph direction.
6362         (set_iterator_to_next): Under bidi reordering, call
6363         bidi_get_next_char_visually.  Call bidi_paragraph_init if the
6364         new_paragraph flag is set in the bidi iterator.
6365         (next_element_from_buffer): If bidi_it.first_elt is set,
6366         initialize paragraph direction and find the first character to
6367         display in the visual order.  If reseated to a middle of a line,
6368         prime the bidi iterator starting at the line's beginning.  Handle
6369         the situation where we overstepped stop_charpos due to
6370         non-linearity of the bidi iteration.  Likewise for when we back up
6371         beyond the previous stop_charpos.  When moving across stop_charpos,
6372         record it in prev_stop.
6373         (display_line): Set row->end and it->start for the next row to the
6374         next character in logical order.  Always extend reversed_p rows to
6375         the end of line, even if they end at ZV.  Copy the reversed_p flag
6376         to the next glyph row.  Keep calling set_cursor_from_row for
6377         bidi-reordered rows even if we already have a possible candidate
6378         for cursor position.  Set row_end after all the row's glyphs have
6379         been produced, by looping over the glyphs.  Record the position
6380         after EOL in it->eol_pos, and use it to set end_pos of the last
6381         row produced for a continued line.
6382         <Qright_to_left, Qleft_to_right>: New variables.
6383         (syms_of_xdisp): Initialize and staticpro them.
6384         (string_buffer_position_lim): New function.
6385         (string_buffer_position): Most of code moved to
6386         string_buffer_position_lim.  Last argument and return value are
6387         now EMACS_INT; all callers changed.
6388         (set_cursor_from_row): Rewritten to support bidirectional text and
6389         reversed glyph rows.
6390         (text_outside_line_unchanged_p, try_window_id): Disable
6391         optimizations if we are reordering bidirectional text and the
6392         paragraph direction can be affected by the change.
6393         (append_glyph, append_composite_glyph)
6394         (produce_image_glyph, append_stretch_glyph): Set the
6395         resolved_level and bidi_type members of each glyph.
6396         (append_glyph): If the glyph row is reversed, prepend the glyph
6397         rather than appending it.
6398         (handle_stop_backwards): New function.
6399         (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6400         (reseat): call handle_stop_backwards to recompute prev_stop and
6401         base_level_stop for the new position.
6402         (handle_invisible_prop): Under bidi iteration, skip invisible text
6403         using bidi_get_next_char_visually.  If we are `reseat'ed, init the
6404         paragraph direction.  Update IT->prev_stop after skipping
6405         invisible text.
6406         (move_it_in_display_line_to): New variables prev_method
6407         and prev_pos.  Compare for strict equality in
6408         BUFFER_POS_REACHED_P.
6409         (try_cursor_movement): Examine all the candidate rows that occlude
6410         point, to return the best match.  If rows are bidi-reordered
6411         and point moved backwards, back up to the row that is not a
6412         continuation line, and start looking for a suitable row from
6413         there.
6415         * term.c (append_glyph): Reverse glyphs by pre-pending them,
6416         rather than appending, if the glyph_row's reversed_p flag is set.
6417         Set the resolved_level and bidi_type members of each glyph.
6419         * .gdbinit (pbiditype): New command.
6420         (pgx): Use it to display bidi level and type of the glyph.
6421         (pitx): Display some bidi information about the iterator.
6422         (prowlims, pmtxrows): New commands.
6424 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
6426         Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6427         * s/usg5-4.h (LIBS_DEBUG):
6428         * s/irix6-5.h (C_DEBUG_SWITCH):
6429         * s/gnu-linux.h (LIBS_DEBUG):
6430         * s/darwin.h (LIBS_DEBUG):
6431         * s/bsd-common.h (LIBS_DEBUG):
6432         * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6433         * m/iris4d.h (LIBS_DEBUG):
6434         * m/hp800.h (LIBS_DEBUG): Remove definitions.
6436         * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6437         (LIBS_DEBUG): Remove definition.
6439 2010-03-27  Chong Yidong  <cyd@stupidchicken.com>
6441         * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6442         Windows.
6444 2010-03-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6446         * process.c (Fmake_network_process): Don't call turn_on_atimers around
6447         `connect' (Bug#5723).
6449 2010-03-25  Helmut Eller  <eller.helmut@gmail.com>
6451         * process.c (Fmake_network_process): Call `select' for interrupted
6452         `connect' rather than creating new socket (Bug#5173).
6454 2010-03-24  Jan Djärv  <jan.h.d@swipnet.se>
6456         * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6458         * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6460         * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6462 2010-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6464         * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6465         XLoadQueryFont.
6467 2010-03-24  Kenichi Handa  <handa@m17n.org>
6469         * coding.c (decode_coding_ccl): Fix previous change for the
6470         multibyte case.
6471         (encode_coding_ccl): Don't setup ccl program here.  Fix for the
6472         case that the output buffer is fullfilled.
6473         (encode_coding): Setup ccl program here.
6475 2010-03-23  Dan Nicolaescu  <dann@ics.uci.edu>
6477         * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6479         Simplify LIBS_MACHINE definitions.
6480         * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6481         * m/iris4d.h (LIBS_MACHINE): Likewise.
6482         * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6483         * s/aix4-2.h (LIBS_SYSTEM): ... here.
6484         * s/netbsd.h: Remove commented out code.
6486 2010-03-22  Dan Nicolaescu  <dann@ics.uci.edu>
6488         Remove dead code dealing with POSIX_SIGNALS.
6489         * atimer.c (set_alarm): Remove dead code, all USG systems define
6490         POSIX_SIGNALS.
6491         * data.c (arith_error): Likewise.
6492         * keyboard.c (input_available_signal, handle_user_signal)
6493         (interrupt_signal): Likewise.
6494         * process.c (sigchld_handler): Likewise.
6495         (create_process): Remove if 0 code.  Remove HPUX conditional when
6496         !defined (POSIX_SIGNALS), it cannot be true.
6497         * syssignal.h: Remove USG5_4 and USG conditionals when
6498         !POSIX_SIGNALS, they cannot be true.
6500         * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6501         NO_SOCK_SIGIO, not used anymore.
6503 2010-03-21  Dan Nicolaescu  <dann@ics.uci.edu>
6505         * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6506         support vax on BSDs.
6508         * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6509         * s/aix4-2.h (ORDINARY_LINK): ... here.
6511 2010-03-21  Andreas Schwab  <schwab@linux-m68k.org>
6513         * Makefile.in (abs_builddir): Define.
6514         (bootstrap_exe): Use it.
6515         (VPATH): Use $(srcdir) instead of @srcdir@.
6517 2010-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6519         * Makefile.in (bootstrap_exe): Use an absolute name.
6521 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
6523         Remove support for old GNU/Linux using libc version 5.
6524         * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6525         * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6527         Consolidate redundant definitions in s/bsd-common.h.
6528         * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6529         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6530         (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6531         doing it in all files that include this one.
6532         * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6533         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6534         (LDAV_SYMBOL, KERNEL_FILE): Remove.
6535         * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6536         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6537         (LDAV_SYMBOL, KERNEL_FILE): Remove.
6538         * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6539         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6540         (LDAV_SYMBOL, KERNEL_FILE): Remove.
6542         Consolidate redundant definitions.
6543         * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6544         it's undefined in all files that include this one.
6545         (POSIX_SIGNALS): Define here instead of doing it in all files that
6546         include this one.
6547         * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6548         (POSIX_SIGNALS): Do not define.
6549         * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6550         (POSIX_SIGNALS): Do not define.
6551         * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6552         (POSIX_SIGNALS): Do not define.
6554         Remove support for old UNIX System V systems.
6555         * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6556         * s/usg-5-4-2.h: Remove.
6558         Remove support for Solaris on PPC and for old versions.
6559         * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6560         (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6561         that cancel each other.
6562         * s/sol2-3.h:
6563         * s/sol2-4.h:
6564         * s/sol2-5.h: Remove.
6565         * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6566         (NO_REMAP): Remove, unused.
6567         (UNEXEC): Move definition ...
6568         * s/aix4-2.h (UNEXEC): ... here.
6570         * s/openbsd.h: Remove support for non-ELF and for systems that do
6571         not support shared libraries.
6572         * s/netbsd.h:
6573         * s/freebsd.h: Likewise.
6575 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
6577         Remove non-working support for lynxos 3.0.
6578         * s/lynxos.h: Remove file.
6580         * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6581         COFF_BSD_SYMBOLS, nothing defines it anymore.
6583 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
6585         Remove obsolete uses of HAVE_SHM.
6586         * emacs.c (standard_args):
6587         (Fdump_emacs):
6588         (syms_of_emacs): Remove code depending on HAVE_SHM.
6590         * alloc.c: Remove HAVE_SHM dependent definition.
6592         * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6594 2010-03-18  Glenn Morris  <rgm@gnu.org>
6596         * emacs.c (USAGE4): Hard-code bug address.
6597         (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6598         (bug_reporting_address): Remove.
6599         (main): Don't call bug_reporting_address.
6601         * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6602         (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6604 2010-03-15  Chong Yidong  <cyd@stupidchicken.com>
6606         * xfns.c (Fx_create_frame):
6607         * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6608         on left.
6610 2010-03-13  Andreas Politz  <politza@fh-trier.de>  (tiny change)
6612         * editfns.c (Fformat): Account for string precision when computing
6613         field width (Bug#5710).
6615 2010-03-12  Chong Yidong  <cyd@stupidchicken.com>
6617         * xfns.c (Fx_create_frame): Set default to Qright.
6619         * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6620         all window systems.
6622 2010-03-12  Eli Zaretskii  <eliz@gnu.org>
6624         These changes remove termcap.c from the build on Posix platforms.
6625         * Makefile.in (termcapobj): Move termcap.o from here...
6626         (MSDOS_OBJ): ...to here.
6627         (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6628         now identical to when LIBS_TERMCAP is defined.
6630         * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6632         * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6634         * config.in: Regenerated.  (See top-level ChangeLog.)
6636 2010-03-10  Chong Yidong  <cyd@stupidchicken.com>
6638         * Branch for 23.2.
6640 2010-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
6642         Cleanup setup of gl_state in various parts of the code.
6643         * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6644         (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6645         * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6646         (skip_chars):
6647         * regex.c (regex_compile): Use it.
6648         (re_compile_pattern): Don't set gl_state.current_syntax_table since
6649         it's now set in regex_compile when/if we need it.
6651 2010-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
6653         Make it possible to C-g in a tight bytecode loop again (bug#5680).
6654         * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6655         (QUIT): Use it to consolidate code and remove redundancy.
6656         * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6658         * regex.c (regex_compile): Setup gl_state as well.
6660         * syntax.c (skip_chars): Setup gl_state (bug#3823).
6661         (in_classes): Use CONSP before XCAR/XCDR.
6663 2010-03-03  Chong Yidong  <cyd@stupidchicken.com>
6665         * keymap.c (Fwhere_is_internal): Use Fequal to compare
6666         definitions, so that keyboard macros are correctly handled
6667         (Bug#5481).
6669 2010-03-02  Eli Zaretskii  <eliz@gnu.org>
6671         * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6672         text that could be relocated inside the call to emacs_mule_char.
6673         (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6674         (CODING_DECODE_CHAR): Add a comment describing its purpose.
6676 2010-03-02  Kenichi Handa  <handa@m17n.org>
6678         * character.c (parse_str_as_multibyte): Fix handling of the
6679         multibyte form of raw-bytes.
6680         (str_as_multibyte): Likewise.
6682         * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6683         form of raw-bytes.
6685 2010-02-28  Chong Yidong  <cyd@stupidchicken.com>
6687         * charset.c (load_charset_map_from_file)
6688         (load_charset_map_from_vector): Zero out allocated
6689         charset_map_entries before using them.
6691 2010-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6693         * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6695 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
6697         * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6698         "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6700 2010-02-26  Kenichi Handa  <handa@m17n.org>
6702         * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6704         * xdisp.c (reseat_to_string): Fix previous change.
6706 2010-02-26  David Reitter  <david.reitter@gmail.com>
6708         * nsfont.m (nsfont_draw): ns_antialias_text should be a
6709         Lisp_Object (Bug#4736).
6711 2010-02-25  Kenichi Handa  <handa@m17n.org>
6713         * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6715 2010-02-24  Jan Djärv  <jan.h.d@swipnet.se>
6717         * xterm.c (XTflash): Move declarations before statements.
6719         * gtkutil.c (xg_get_gdk_display): Remove (unused).
6720         (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6721         (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6722         (xg_create_tool_bar): Remove unused variables.
6723         (x_wm_set_size_hint): Move declarations before statements.
6724         (xg_create_frame_widgets): Remove variable grav.
6726 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
6728         * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6730 2010-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
6732         * term.c (fatal): Add a final \n if needed (bug#5596).
6734 2010-02-18  Chong Yidong  <cyd@stupidchicken.com>
6736         * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6738 2010-02-18  Glenn Morris  <rgm@gnu.org>
6740         * callint.c (Finteractive): Doc fix.
6742 2010-02-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
6744         * coding.c (record_conversion_result):
6745         Handle CODING_RESULT_INSUFFICIENT_DST.
6746         (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6747         memory allocation error.
6749 2010-02-17  Kenichi Handa  <handa@m17n.org>
6751         * coding.c (decode_coding_ccl): Don't setup ccl program here.
6752         Fix for the case that the output buffer is fullfilled.
6753         (decode_coding): Setup ccl program here.  Keep looping when the
6754         decoder stopped because the output buffer is
6755         fullfilled (bug#5534).
6757         * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6759 2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
6761         * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6762         bug #5571.
6763         (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
6764         overdrawn.
6766 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
6768         * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6769         doing_interact here.
6770         (ice_connection_closed): New function.
6771         (x_session_check_input, smc_die_CB, ice_io_error_handler)
6772         (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6773         (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6774         returns I/O error.
6775         (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6776         bug #5512.
6778 2010-02-08  Francis Devereux  <francis@devrx.org>  (tiny change)
6780         * nsfont.m (nsfont_open): The system's value for the font descent
6781         is negative, so round it down to avoid clipping.
6783 2010-02-06  Chong Yidong  <cyd@stupidchicken.com>
6785         * charset.c (load_charset_map_from_file)
6786         (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
6787         instead of xmalloc (Bug#5526).  Suggested by Vivek Dasmohapatra.
6789 2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
6791         * charset.c (load_charset_map_from_file): Allocate large
6792         charset_map_entries structure on the heap rather than the stack.
6793         (Bug#5526).
6795 2010-01-31  Kenichi Handa  <handa@m17n.org>
6797         * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
6798         size in NAME is invalid, return -1 (Bug#5396).
6800 2010-01-31  Chong Yidong  <cyd@stupidchicken.com>
6802         * nsterm.m (ns_defined_color): Block input.  Suggested by Mike
6803         <deactivated@gmail.com> (Bug#3605).
6805 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
6807         * fileio.c (Frename_file): Correctly rename symlinks to
6808         directories (Bug#5496).
6810 2010-01-31  Filipe Cabecinhas  <filcab@gmail.com>  (tiny change)
6812         * nsterm.m (ns_ring_bell): Handle visible bell like X.
6814 2010-01-30  Andreas Schwab  <schwab@linux-m68k.org>
6816         * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6818 2010-01-29  Chong Yidong  <cyd@stupidchicken.com>
6820         * frame.c (DEFAULT_ROWS): Change default to 35.
6822         * xfns.c (x_default_font_parameter): Change default XFT font to
6823         monospace-10 (Bug#3643).
6825 2010-01-29  Eli Zaretskii  <eliz@gnu.org>
6827         * w32inevt.c (key_event): Remove unnecessary comparison of
6828         event->uChar.AsciiChar with 128.
6830 2010-01-28  Chong Yidong  <cyd@stupidchicken.com>
6832         * fileio.c (Frename_file): Fix last change (Bug#5487).
6834         * m/mips.h: Remove DATA_START.  Suggested by Dan Nicolaescu.
6836         * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6838 2010-01-28  Jan Djärv  <jan.h.d@swipnet.se>
6840         * xfns.c (Fx_create_frame): Remove window size matching code from
6841         2010-01-15.
6842         (x_get_current_desktop, x_get_desktop_workarea): Remove.
6844 2010-01-27  Jason Rumney  <jasonr@gnu.org>
6846         * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
6847         (key_event): Use unicode for characters 128 and higher (Bug#4567).
6849 2010-01-27  Kenichi Handa  <handa@m17n.org>
6851         * regex.c (analyse_first): Fix setting of fastmap for unibyte
6852         pattern string (Bug#4209).
6854 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
6856         * fileio.c (Frename_file): Call copy-directory and
6857         delete-directory for directories, in order to handle cross-device
6858         renaming (Bug#3353).
6860 2010-01-25  Jan Djärv  <jan.h.d@swipnet.se>
6862         * xfns.c (Fx_create_frame): If frame height is too big, try
6863         sizes 24 and 10.  Bug #3643.
6865 2010-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
6867         Try and fix bug#788, hopefully for real this time.
6868         * keymap.c (shadow_lookup): Add `remap' arg.
6869         (describe_map, describe_vector): Update calls to shadow_lookup.
6870         (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6871         `remapped' so this flag is applicable to `sequence'.  Be careful to
6872         perform remapping during shadow_lookup check of remapped_sequences.
6874 2010-01-24  Eric Bélanger  <snowmaniscool@gmail.com>  (tiny change)
6876         * image.c (png_load): Use png_sig_cmp instead of the obsolete
6877         png_check_sig, which has been removed in libpng 1.4.
6879 2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
6881         * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6882         lacks this header file).
6884 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6886         * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6887         as in Emacs 22.
6889 2010-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6891         * lisp.h (make_pure_string): String pointer arg now points to const.
6893         * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6894         args now point to const.
6896 2010-01-22  Eli Zaretskii  <eliz@gnu.org>
6898         * lread.c (Fload): Don't treat files without .elc extension as
6899         byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6900         them.  (bug#5303)
6902 2010-01-20  Kenichi Handa  <handa@m17n.org>
6904         * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6905         treat the source as actual byte sequence.
6907 2010-01-19  Alan Mackenzie  <acm@muc.de>
6909         Fix spurious before-change-functions invocation from (insert ?\n).
6910         * textprop.c (set_text_properties): Rename parameter
6911         `signal_after_change_p' to `coherent_change_p', and make the
6912         invocation of `modify_region' conditional on it.
6914 2010-01-19  Jan Djärv  <jan.h.d@swipnet.se>
6916         * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6917         for debug purpose.
6918         (syms_of_xsettings): Declare xft-settings.
6920 2010-01-18  Chong Yidong  <cyd@stupidchicken.com>
6922         * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6924 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6926         * xterm.c (event_handler_gdk): Block input (Bug#5037).
6928 2010-01-16  Chong Yidong  <cyd@stupidchicken.com>
6930         * emacs.c (standard_args): Adjust arg priorities to reflect how
6931         they are processed in startup.el.
6933 2010-01-16  Andreas Schwab  <schwab@linux-m68k.org>
6935         * Makefile.in (lisp, shortlisp): Update.
6937 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6939         * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6940         code, link the new kboard into all_kboard before running Lisp code,
6941         and protect the new terminal with GCPRO (Bug#5365).
6942         (x_term_init): Remove unused var `atom'.
6943         (x_delete_display, x_delete_terminal): Remove unused var `i'.
6945 2010-01-15  Jan Djärv  <jan.h.d@swipnet.se>
6947         * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6948         (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6949         to find out usable size of the desktop.  Don't make frames larger than
6950         this.  Bug #3643.
6952 2010-01-15  Kenichi Handa  <handa@m17n.org>
6954         * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS.  Callers changed.
6956 2010-01-15  Chong Yidong  <cyd@stupidchicken.com>
6958         * nsterm.m (Qnone): Define.
6960         * nsfns.m (Qnone): Move definition to nsterm.m.
6962 2010-01-14  Kenichi Handa  <handa@m17n.org>
6964         * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6965         systems.
6967 2010-01-14  Kenichi Handa  <handa@m17n.org>
6969         Make auto-composition work on all buffers even if they are
6970         fundamental mode.
6972         * composite.c (Vauto_composition_mode): New variable.
6973         (composition_compute_stop_pos): Check Vauto_composition_mode
6974         instead of Vauto_composition_function.
6975         (composition_adjust_point, Ffind_composition_internal): Likewise.
6976         (syms_of_composite): Declare Lisp variable
6977         "auto-composition-mode" here.
6979 2010-01-13  Chong Yidong  <cyd@stupidchicken.com>
6981         * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6982         during call to vendor-specific-keysyms (Bug#5365).
6984 2010-01-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6986         * keyboard.c (input_available_signal) [SYNC_INPUT]:
6987         Call SIGNAL_THREAD_CHECK (Bug#5333).
6989         * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6990         Call SIGNAL_THREAD_CHECK.
6992 2010-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6994         Try to fix bug#5314.  This is probably not the final word, tho.
6995         * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6996         recent-auto-save-p as a side-effect.
6997         * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6998         * buffer.c (Fkill_buffer, reset_buffer):
6999         * editfns.c (Fsubst_char_in_region):
7000         * fileio.c (Finsert_file_contents, Fdo_auto_save)
7001         (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7003 2010-01-13  Kenichi Handa  <handa@m17n.org>
7005         Display buffer name, etc. in mode line by composing correctly.
7007         * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7008         STRING is not nil.
7009         (display_mode_element): Adjust for the change of
7010         decode_mode_spec and display_line.
7011         (decode_mode_spec): Change arg MULTIBYTE to STRING.
7012         (display_string): Handle the case that STRING is non-null and
7013         LISP_STRING is not nil.
7015         * xterm.c (x_draw_composite_glyph_string_foreground):
7016         Pay attention to s->face->overstrike.
7018         * composite.c (composition_reseat_it): Don't check PT if STRING is
7019         non nil.
7021 2010-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7023         * keyboard.c (read_char): Don't apply previous change when current
7024         buffer is unchanged by command execution.
7026 2010-01-12  Jan Djärv  <jan.h.d@swipnet.se>
7028         * keyboard.c (read_char): Return after executing from special map.
7030 2010-01-12  Glenn Morris  <rgm@gnu.org>
7032         * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7033         bug-gnu-emacs rather than emacs-pretest-bug.
7035 2010-01-11  Chong Yidong  <cyd@stupidchicken.com>
7037         * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7038         initializing the Lisp variables that depend on them.
7040 2010-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7042         * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7043         Clear areas that will not be updated after change of menu bar lines.
7044         Clear the menu bar window's current matrix when the window gets empty.
7046 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
7048         * intervals.h, textprop.c (extend_property_ranges): Return value
7049         and args changed.  Discard properties that begin at or after the
7050         new end (Bug#5306).
7052         * editfns.c (Fformat): Caller changed.
7054         * nsterm.m (ns_set_default_prefs): Delete function.
7055         (syms_of_nsterm): Initialize ns_command_modifier,
7056         ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7057         ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7059         * xdisp.c (pos_visible_p): Check for invisible text at the correct
7060         position (Bug#4040).
7062 2010-01-09  Eli Zaretskii  <eliz@gnu.org>
7064         * editfns.c (Ffloat_time): Doc fix.
7066 2010-01-09  Jan Djärv  <jan.h.d@swipnet.se>
7068         * xfns.c (Fx_create_frame): Don't create frame larger than display
7069         by default bug#3643.
7071 2010-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7073         * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7074         (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7075         windows above internal border.
7077         * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7078         (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7079         windows above internal border.
7081         * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7082         tool bar windows specially.
7084         * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7086         * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7087         specially.
7088         (XTflash): Take account of menu bar height.
7090         * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7091         specially.
7093 2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
7095         * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
7096         also be true before we can return early (bug #5339).
7098 2010-01-06  David Reitter  <david.reitter@gmail.com>
7100         * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7101         (Fns_display_usable_bounds): Rewrite, computing bounds properly
7102         (Bug#3233).
7104 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
7106         * font.c (font_open_entity): Enable chache and call cached_font_ok
7107         for the driver if defined.
7108         (QCuser_spec): New symbol.
7109         (font_spec_from_name): Save name as user-spec.
7110         (font_load_for_lface): Keep user-spec instead of name.
7111         (font_open_by_name): Save name as user-spec.
7112         (syms_of_font): Initialize QCuser_spec.
7113         (font_clear_prop): Clear name if it exists in font (bug#5157).
7115         * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7116         (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7117         (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7119         * font.h (struct font_driver): Add cached_font_ok.
7121         * xterm.c (x_clear_frame): Queue draw for scroll bars.
7123 2010-01-05  Jan Djärv  <jan.h.d@swipnet.se>
7125         * xterm.c (x_new_font): Move code for setting rows/cols before
7126         resizing ...
7127         (x_set_window_size): ... to here.  Bug #2568.
7129         * gtkutil.c (xg_clear_under_internal_border): New function.
7130         (xg_frame_resized, xg_frame_set_char_size):
7131         Call xg_clear_under_internal_border.
7132         (xg_update_scrollbar_pos): Clear under old scroll bar position.
7134 2010-01-05  Chong Yidong  <cyd@stupidchicken.com>
7136         * keyboard.c (read_key_sequence): Catch keyboard switch after
7137         making a new tty frame (Bug#5095).
7139 2010-01-05  Kenichi Handa  <handa@m17n.org>
7141         * fontset.c (fontset_find_font): Fix getting the frame pointer.
7143 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
7145         * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7146         Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7147         (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7149 2010-01-03  Michael Albinus  <michael.albinus@gmx.de>
7151         * dbusbind.c (xd_add_watch): Improve debug message.
7152         (xd_remove_watch): Improve debug message.  If DATA is the session
7153         bus, unset D-Bus session environment.
7154         (Fdbus_init_bus): Pass the bus as argument to
7155         dbus_connection_set_watch_functions.  (Bug#5283)
7157 2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
7159         * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7161         * lread.c (syms_of_lread): Make it clearer that these are the
7162         names of loaded files (Bug#5068).
7164         * eval.c (run_hook_with_args): Handle the case where the global
7165         value has the obsolete single-function form (Bug#5026).
7167 2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
7169         * minibuf.c (Fall_completions): Minor optimization.
7171 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
7173         * .gdbinit (pgx): Fix display of composite glyphs.
7174         Display cmp.from and cmp.to as well.
7175         (pitx): Fix last change.
7177 2009-12-25  Kenichi Handa  <handa@m17n.org>
7179         * composite.h (composition_adjust_point): Update prototype.
7181         * composite.c (composition_reseat_it): Don't make a composition
7182         spanning over point.
7183         (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7184         composable characters.
7185         (composition_adjust_point): New arg NEW_PT.  Callers changed.
7187         * keyboard.c (command_loop_1): Force redisplay if the last point
7188         was within a composition.
7189         (adjust_point_for_property): Don't adjust point for automatic
7190         composition when called after buffer modification.
7192 2009-12-19  Eli Zaretskii  <eliz@gnu.org>
7194         * .gdbinit (pitx): Don't use enum names, use their values.
7195         Remove reference to non-existing value GET_FROM_COMPOSITION.
7196         (pgx): Don't use enum names, use their values.
7197         (pitmethod): New helper command.
7198         (pitx): Use it to display iteration method.
7199         (pgrowit): New command.
7201         * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7203         Update dependencies in Makefile.in.
7205         * Makefile.in (alloc.o): Depend on termhooks.h.
7206         (atimer.o): Depend on blockinput.h.
7207         (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7208         and frame.h.
7209         (callint.o): Depend on systime.h, coding.h, and composite.h.
7210         (callproc.o): Depend on buffer.h.
7211         (casefiddle.o): Don't depend on charset.h.
7212         (casetab.o): Depend on character.h.
7213         (ccl.o): Depend on composite.h.
7214         (chartab.o): Depend on ccl.h.
7215         (cm.o): Depend on dispextern.h.
7216         (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7217         (coding.o): Don't depend on $(INTERVALS_H).
7218         (composite.o): Don't depend on dispextern.h explicitly (it's in
7219         $(INTERVALS_H)).  Depend on ccl.h.
7220         (data.o): Depend on systime.h, coding.h, composite.h,
7221         dispextern.h, font.h, and ccl.h.
7222         (dired.o): Depend on composite.h.
7223         (dispnew.o): Depend on coding.h.  Don't depend explicitly on
7224         composite.h (it's in $(INTERVALS_H)).
7225         (doc.o): Depend on systime.h, coding.h, and composite.h.
7226         (editfns.o): Don't depend explicitly on dispextern.h.
7227         (emacs.o): Depend on frame.h and coding.h.
7228         (eval.o): Depend on coding.h, composite.h, and xterm.h.
7229         (fileio.o): Depend on frame.h and commands.h.  Don't depend
7230         explicitly on dispextern.h.
7231         (filelock.o): Don't depend on epaths.h and charset.h.  Depend on
7232         composite.h.
7233         (fns.o): Don't depend on termhooks.h.
7234         (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7235         (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7236         coding.h, $(INTERVALS_H), window.h, xterm.h.
7237         (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7238         (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7239         (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7240         fontset.h, ccl.h, and ftfont.h.
7241         (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7242         (gtkutil.o): Depend on dispextern.h and composite.h.
7243         (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7244         termhooks.h, and ccl.h.
7245         (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7246         (intervals.o): Depend on systime.h and coding.h.
7247         (keyboard.o): Depend on composite.h and coding.h.
7248         (keymap.o): Depend on coding.h and frame.h.
7249         (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7250         (macros.o): Depend on systime.h, coding.h, and composite.h.
7251         (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7252         and atimer.h.
7253         (minibuf.o): Depend on systime.h and coding.h.  Don't depend on
7254         dispextern.h explicitly.
7255         (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7256         Don't depend explicitly on dispextern.h and composite.h.
7257         (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7258         (regex.o): Don't depend on charset.h.
7259         (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7260         (search.o): Don't depend explicitly on composite.h.
7261         (sound.o): Depend on atimer.h and systime.h.
7262         (syntax.o): Don't depend explicitly on composite.h.
7263         (sysdep.o): Depend on coding.h and composite.h.
7264         (term.o): Depend on xterm.h and buffer.h.
7265         (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7266         (textprop.o): Don't depend on dispextern.h explicitly.
7267         (undo.o): Depend on dispextern.h.
7268         (window.o): Depend on coding.h and termhooks.h.  Don't depend on
7269         dispextern.h and composite.h explicitly.
7270         (xdisp.o): Depend on ccl.h.
7271         (xfaces.o): Depend on coding.h and ccl.h.
7272         (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7273         (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7274         (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7275         ftfont.h.
7276         (xgselect.o): New dependency.
7277         (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7278         (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7279         (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7280         coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7281         (xsmfns.o): Depend on frame.h and dispextern.h.
7282         (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7283         sysselect.h.
7285 2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
7287         * font.c (Fclear_font_cache): Pass correct cache argument to
7288         font_clear_cache.
7290 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
7292         * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7293         twice.
7295 2009-12-15  Chong Yidong  <cyd@stupidchicken.com>
7297         * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7298         calling file-remote-p.  Reported by Jim Meyering.
7300 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
7302         * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
7303         avoid compiler warnings.  (Bug #5217)
7305 2009-12-14  Kenichi Handa  <handa@m17n.org>
7307         * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7308         in 8-bit encoding.
7310 2009-12-13  Pat Thoyts  <patthoyts@users.sourceforge.net>  (tiny change)
7312         * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7313         tooltip windows.
7315 2009-12-13  Jan Djärv  <jan.h.d@swipnet.se>
7317         * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7318         Xatom_net_window_type.
7320         * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7321         Xatom_net_window_type.
7323         * xterm.c (my_log_handler): New function.
7324         (x_term_init): Set my_log_handler as log handler during gtk_init
7325         so we can filter out buggy messages.  (Bug #5120).
7327         * xterm.c (xg_scroll_callback): Parameter list changed,
7328         use parameter GtkScrollType to determine scroll/line/page.
7329         Only allow dragging if a button < 4 is grabbed (bug #5177).
7330         (xg_end_scroll_callback): New function.
7331         (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7332         xg_create_scroll_bar.
7334         * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7335         (scroll_end_callback): Remove.
7336         (xg_create_scroll_bar): Add parameter end_callback, bind it to
7337         button-release-event.  Replace value-changed event with change-value,
7338         bug #5177.
7339         (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7340         bug #5177.
7342         * gtkutil.h (XG_LAST_SB_DATA): Remove.
7343         (xg_create_scroll_bar): Add GCallback end_callback.
7345         * xftfont.c (QClcdfilter): New variable.
7346         (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7347         (syms_of_xftfont): Initialize QClcdfilter.
7349 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
7351         * xsettings.c (struct xsettings): Add member seen.
7352         (parse_xft_settings): Update member seen with what we have read.
7353         Return non-zero if Xft-settings have been parsed, 0 otherwise.
7354         (apply_xft_settings): Only update Xft settings with what member seen
7355         indicates as new.
7357 2009-12-12  Eli Zaretskii  <eliz@gnu.org>
7359         * dispextern.h (struct text_pos): Use EMACS_INT.
7360         (struct glyph): Use EMACS_INT for charpos.
7361         (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7362         region_beg_charpos, region_end_charpos,
7363         redisplay_end_trigger_charpos, and also for
7364         iterator_stack_entry.end_charpos and
7365         iterator_stack_entry.stop_charpos.
7367 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
7369         * gtkutil.c (scroll_end_callback): New function (bug #5177).
7370         (xg_create_scroll_bar): Call scroll_end_callback on button release
7371         event (bug #5177).
7372         (xg_event_is_for_scrollbar): != replaced with ==.
7374 2009-12-12  Kenichi Handa  <handa@m17n.org>
7376         * ftfont.c (struct ftfont_info): New member matrix.
7377         (ftfont_open): Setup xftfont_info->matrix.
7378         (MFLTFontFT): New member matrix.
7379         (FLOOR, CEIL, ROUND): New macros.
7380         (ftfont_get_metrics): Handle matrix transformation.
7381         (ftfont_shape_by_flt): New arg matrix.  Callers changed.
7383         * xftfont.c (struct xftfont_info): New member matrix.
7384         (xftfont_open): Setup xftfont_info->matrix.
7386 2009-12-10  Kenichi Handa  <handa@m17n.org>
7388         * xdisp.c (append_space_for_newline): Consider face-remapping.
7390 2009-12-09  Andreas Schwab  <schwab@linux-m68k.org>
7392         * xsettings.c: Include "keyboard.h".
7394         * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7396         Fix implicit function declarations.
7397         * cmds.c: Include "frame.h".
7398         * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7399         * frame.h: Move declaration of delete_frame outside of
7400         HAVE_WINDOW_SYSTEM.
7402 2009-12-09  Ken Brown  <kbrown@cornell.edu>  (tiny change)
7404         * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7406         * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7407         GTK builds.
7409 2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
7411         * unexelf.c (unexec): Don't search for .data twice.
7413 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
7415         * xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
7416         if push failed.
7417         (handle_line_prefix): Set avoid_cursor_p here.  Check return value
7418         of push_display_prop (Bug#5000).
7420         * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7421         value of font_list_entities (Bug#5085).
7423 2009-12-04  Juanma Barranquero  <lekktu@gmail.com>
7425         Fix `string-to-number' to deal consistently with integers and floats.
7426         * lread.c (isfloat_string): New argument ignore_trailing to accept all
7427         trailing characters, not just whitespace.
7428         (read1): Pass new arg 0 to keep old behavior.
7429         * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7430         trailing chars, as it is already done for integers.  Doc fixes.
7431         * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7433 2009-12-04  Eli Zaretskii  <eliz@gnu.org>
7435         * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7436         Delete unused enumeration value.
7438 2009-12-03  Eli Zaretskii  <eliz@gnu.org>
7440         * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7442 2009-12-03  Daniel Hackney  <dan@haxney.org>  (tiny change)
7444         * process.c (Fmake_network_process): Fix up the tests for
7445         "connectionless socket", so they DTRT for seqpacket sockets as well.
7447 2009-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
7449         * process.c (Qseqpacket): New symbol.
7450         (HAVE_SEQPACKET): New macro.
7451         (Fmake_network_process): Accept new :type `seqpacket'.
7452         (init_process): Add `seqpacket' feature when applicable.
7453         (syms_of_process): Initialize Qseqpacket.
7455 2009-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7457         * font.c (font_load_for_lface, font_open_by_name): Don't store name
7458         if entity is Qnil.
7460 2009-11-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7462         * print.c (print_preprocess): Preprocess the key_and_value table of
7463         hashtables, even tho they're "hidden" (bug#5082).
7465 2009-11-29  Jan Djärv  <jan.h.d@swipnet.se>
7467         * frame.c (frame_make_pointer_invisible)
7468         (frame_make_pointer_visible): Declare f before statements.
7470 2009-11-28  Eli Zaretskii  <eliz@gnu.org>
7472         * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7473         omitted dependencies on lisp.h.
7475 2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
7477         * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7478         is NULL.
7480         * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7482         * frame.c (frame_make_pointer_invisible)
7483         (frame_make_pointer_visible): Just return if there isn't any selected
7484         frame.
7486         * search.c (simple_search): Remove warning by making *p const.
7488 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
7490         * xdisp.c (power_letter): Remove duplicate const.
7492 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
7494         * term.c (delete_tty): Remove check for last terminal (bug#4970).
7496         * xsettings.c: Revert changes from 2009-11-23.  Just use Xft
7497         defaults (bug #5025).
7499 2009-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
7501         * insdel.c (adjust_markers_for_delete): Move it in the
7502         right direction!  (bug#4803)
7504 2009-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7506         * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7508         * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7510 2009-11-24  Glenn Morris  <rgm@gnu.org>
7512         * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7514 2009-11-23  Jan Djärv  <jan.h.d@swipnet.se>
7516         * Makefile.in: Must create deps for ecrt0.o in its rule.
7518         * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7519         because that is what Gtk+ font dialog understands.
7521         * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7522         of Fcopy_sequence.
7523         (font_open_by_name): Put name given into QCname for font-object returned.
7525         * frame.c (x_set_font): Save original font name as frame parameter
7526         font-parameter.
7528         * xsettings.c (set_default_xft_settings): New function.
7529         (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7530         is found.
7532 2009-11-22  Andreas Schwab  <schwab@linux-m68k.org>
7534         * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7535         searching backwards through multibyte buffer.
7537 2009-11-21  Jan Djärv  <jan.h.d@swipnet.se>
7539         * xterm.c: #include xgselect.h.
7540         (x_initialize): Call xgselect_initialize.
7542         * xsettings.c (something_changedCB): C++ comments => C comments.
7543         (init_gconf): Do not deal with any GLib file descriptors, xg_select
7544         does that now.
7546         * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7547         (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7548         (scroll_bar_button_cb): Remove.
7549         (create_menus): C++ comments => C comments.  Don't bind grab-notify
7550         event.
7551         (xg_create_scroll_bar): Don't bind button-press-event and
7552         button-release-event.
7554         * process.c: Include xgselect.h if defined (USE_GTK) ||
7555         defined (HAVE_GCONF).
7556         (wait_reading_process_output): Call xg_select for the same condition.
7558         * xgselect.c (xg_select): New function to better integrate with
7559         GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
7561         * xgselect.h: New file, declare xg_select, xgselect_initialize.
7563         * Makefile.in (XOBJ): Add xgselect.o.
7565 2009-11-21  Andreas Schwab  <schwab@linux-m68k.org>
7567         * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7568         Remove ignored second argument.  All callers changed.
7569         * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7570         (RE_STRING_CHAR_AND_LENGTH): Likewise.
7571         * xdisp.c (string_char_and_length): Likewise.
7573 2009-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
7575         * xterm.c (x_new_font):
7576         * print.c (print_object):
7577         * cmds.c (Fself_insert_command): Move declarations before statements.
7579 2009-11-20  Ken Brown  <kbrown@cornell.edu>  (tiny change)
7581         * s/cygwin.h: Remove unneeded linker flags.
7583 2009-11-20  Jan Djärv  <jan.h.d@swipnet.se>
7585         * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7587         * xsettings.h: Declare xsettings_get_system_font.
7589         * xsettings.c (xsettings_get_system_font): New function.
7590         (init_gconf): No use initiating gconf unless we have Xft also.
7591         (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7592         HAVE_GCONF.
7594         * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7595         add a blank entry so it doesn't collapse into nothing.
7597 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7599         * lread.c (Funintern): Comment out last change.
7601 2009-11-19  Richard Stallman  <rms@gnu.org>
7603         * lread.c (Funintern): Error if symbol is t or nil.
7605 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7607         * insdel.c (make_gap_larger): Don't make as many assumptions about the
7608         representation of Lisp integers.
7609         Reported by MJ Chan <mjchan.inbox@gmail.com>.
7611 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
7613         * lisp.h: Remove declaration of Ffont_get_system_font.
7614         * xfns.c: Move include of "xsettings.h".
7615         * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7617 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
7619         * xsettings.c (something_changedCB, Ffont_get_system_font):
7620         Check use_system_font.
7621         (syms_of_xsettings): DEFVAR font-use-system-font.
7623 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
7625         * xfns.c (x_default_font_parameter): Remove dead assignment.
7627         * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7629 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
7631         * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7632         not have FC_LCD_*.  #define them if not there.
7634         * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7636         * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7638         * xterm.c (handle_one_xevent): Call xft_settings_event for
7639         ClientMessage, PropertyNotify and DestroyNotify.
7640         (x_term_init): If we have XFT, get DPI from Xft.dpi.
7641         Call xsettings_initialize.
7643         * xftfont.c (xftfont_fix_match): New function.
7644         (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7645         Call xftfont_fix_match after XftFontMatch.
7647         * xfont.c (xfont_driver): Initialize all members.
7649         * xfns.c (x_default_font_parameter):
7650         Try font from Ffont_get_system_font.
7651         Do not get font from x_default_parameter if we got one from
7652         Ffont_get_system_font.
7653         (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7655         * w32font.c (w32font_driver): Initialize all members.
7657         * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7659         * lisp.h: Declare syms_of_xsettings.
7661         * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7662         Handle CONFIG_CHANGED_EVENT.
7664         * ftfont.c (ftfont_filter_properties): New function.
7666         * frame.c (x_set_font): Remove unused variable lval.
7668         * font.h (struct font_driver): Add filter_properties.
7670         * font.c (font_put_extra): Don't return if val is nil, it means
7671         boolean option is off.
7672         (font_parse_fcname): Collect all extra properties in extra_props
7673         and call filter_properties for all drivers with extra_props and
7674         font as parameter.
7675         (font_open_entity): Do not use cache, it does not pick up new
7676         fontconfig settings like hinting.
7677         (font_load_for_lface): If spec had a name in it, store it in entity.
7679         * emacs.c (main): Call syms_of_xsettings.
7681         * config.in: HAVE_GCONF is new.
7683         * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7684         xsettings.o is new.
7686 2009-11-17  Kenichi Handa  <handa@m17n.org>
7688         * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7689         back to the default font in case that no suitable font is found.
7691 2009-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
7693         * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7694         Suggested by Chad Brown <yandros@mit.edu>.
7695         (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7697 2009-11-16  Jan Djärv  <jan.h.d@swipnet.se>
7699         * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7701 2009-11-14  Andreas Schwab  <schwab@linux-m68k.org>
7703         * Makefile.in: Ignore errors from mkdir when creating deps directory.
7705 2009-11-14  Jan Djärv  <jan.h.d@swipnet.se>
7707         * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7708         has a parent.
7710         * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7711         dependency files in deps/.  Include those files into Makefile.
7713         * config.in: Generated (AUTO_DEPEND).
7715 2009-11-13  Michael Albinus  <michael.albinus@gmx.de>
7717         * dbusbind.c (Vdbus_registered_objects_table): Rename from
7718         Vdbus_registered_functions_table, because it contains also
7719         properties.  Fix docstring.
7720         (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7722 2009-11-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7724         * alloc.c (mark_object): Don't reprocess marked strings.
7725         Check vector's markbit earlier.  Adjust calls to mark_vectorlike.
7726         (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7728 2009-11-13  Kenichi Handa  <handa@m17n.org>
7730         * category.c (word_boundary_p): Adjust for the change of the
7731         semantics of Vword_combining_categories.
7732         (Vword_combining_categories): Describe the slight change of the
7733         semantics.
7735 2009-11-13  Eli Zaretskii  <eliz@gnu.org>
7737         * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7739         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7741 2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
7743         * xdisp.c (syms_of_xdisp): Fix typo in last change.
7745 2009-11-12  Juanma Barranquero  <lekktu@gmail.com>
7747         * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7749 2009-11-11  David Reitter  <david.reitter@gmail.com>
7751         * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7752         variables to fix 2009-11-09 change.
7754 2009-11-11  Dan Nicolaescu  <dann@ics.uci.edu>
7756         * process.c (ifflag_def): Make flag_sym constant.
7757         (Fnetwork_interface_info): Use a constant pointer.
7758         (ifflag_table):
7759         * xfns.c (cursor_bits):
7760         * xdisp.c (power_letter):
7761         * termcap.c (speeds, esctab):
7762         * sysdep.c (baud_convert):
7763         * keyboard.c (lispy_accent_codes, modifier_names):
7764         * image.c (xbm_format, xpm_format, pbm_format, png_format)
7765         (jpeg_format, tiff_format, gif_format, svg_format)
7766         (interlace_start, interlace_increment, gs_format):
7767         * gtkutil.c (separator_names):
7768         * fringe.c (swap_nibble):
7769         * fns.c (base64_value_to_char, base64_char_to_value):
7770         * fileio.c (make_temp_name_tbl):
7771         * coding.c (suffixes): Make constant.
7773         * frame.c (make_initial_frame):
7774         * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7775         build_string.
7776         * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7778         * s/freebsd.h:
7779         * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7781         * Makefile.in: Add dependencies to lisp.h.  Remove dependencies
7782         for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7784         * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7785         * xterm.c (syms_of_xterm):
7786         * xfaces.c (syms_of_xfaces):
7787         * xdisp.c (syms_of_xdisp):
7788         * lread.c (syms_of_lread):
7789         * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7790         build_string.
7792         * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7794 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
7796         * fns.c (Fplist_get): Merge the active and the commented out code.
7798 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
7800         * keyboard.h: Declare timer_check.
7802         * keyboard.c (timer_check_2): New function that does what the old
7803         timer_check did.
7804         (timer_check): Call timer_check_2 until -1 or a non-zero time is
7805         returned, i.e. don't return -1 with timers pending.
7807         * process.c: Remove extern declaration of timer_check.
7809         * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7810         even if timer_check returned -1.
7812         * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7813         xg_dialog_data.
7814         (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7815         the event loop.
7816         (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7817         (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7818         Destroy the dialog after xg_dialog_run.
7820 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
7822         * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7824 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
7826         * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7828 2009-11-09  Juanma Barranquero  <lekktu@gmail.com>
7830         * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7832 2009-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
7834         * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7835         w32menu.c, and nsmenu.m.
7836         Simplify the obsolete case where position is nil.
7837         (cleanup_popup_menu): New function, moved from nsmenu.m.
7838         (struct skp): Remove slot `notreal'.
7839         (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7840         adjust callers.
7841         (single_menu_item): Adjust call to parse_menu_item.
7842         (syms_of_menu): Defsubr x-popup-menu.
7843         * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7844         (keymap_panes): Don't export any more.
7845         (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7846         (xmenu_show): Declare.
7847         * keyboard.c (parse_menu_item): Remove arg `notreal'.
7848         (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7849         * keyboard.h (parse_menu_item): Update declaration.
7850         * xmenu.c (Fx_popup_menu): Remove.
7851         (syms_of_xmenu): Don't defsubr x-popup-menu.
7852         * w32menu.c (Fx_popup_menu): Remove.
7853         (syms_of_w32menu): Don't defsubr x-popup-menu.
7854         * nsmenu.m (cleanup_popup_menu): Remove.
7855         (ns_menu_show): Rename from ns_popup_menu and remove all the code
7856         moved to menu.c's Fx_popup_menu.
7857         (Fx_popup_menu): Remove.
7858         (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7859         menu_items (it's done in menu.c already).
7861 2009-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
7863         * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7864         Use `tem' less.  Make sure KEYEQ holds a string or nil (bug#4879).
7866 2009-11-08  Chong Yidong  <cyd@stupidchicken.com>
7868         * xmenu.c (Fx_popup_menu): Extract event timestamp.  Pass it to
7869         xmenu_show.  Hide any tooltip before opening a menu.
7870         (xmenu_show): New arg.  Pass it to create_and_show_popup_menu.
7871         (create_and_show_popup_menu): New arg.  Pass it to gtk_menu_popup.
7873 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
7875         Let integers use up 2 tags to give them one extra bit and thus double
7876         their range.
7877         * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7878         (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7879         New macros.
7880         (enum Lisp_Type): Use them.  Give explicit values.
7881         (Lisp_Type_Limit): Remove.
7882         (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7883         (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7884         Pay attention to USE_2_TAGS_FOR_INTS.
7885         (INTEGERP): Use LISP_INT_TAG_P.
7886         * fns.c (internal_equal): Simplify the default case.
7887         (sxhash): Use case_Lisp_Int.
7888         * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7889         any more.
7890         (Ftype_of): Use case_Lisp_Int.
7891         (store_symval_forwarding): Take into account the fact that Ints can
7892         now have more than one tag.
7893         * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
7894         (buffer_slot_type_mismatch):
7895         * xfaces.c (face_attr_equal_p):
7896         * print.c (print_object):
7897         * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7898         Use case_Lisp_Int.
7900 2009-11-06  Eli Zaretskii  <eliz@gnu.org>
7902         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7904         * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7905         warning.
7907 2009-11-06  Jan Djärv  <jan.h.d@swipnet.se>
7909         * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7911         * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7913         * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7914         ButtonPressRelease and MotionNotify (bug#4870).
7916 2009-11-06  Dan Nicolaescu  <dann@ics.uci.edu>
7918         * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7920         * xterm.c (syms_of_xterm):
7921         * xselect.c (syms_of_xselect):
7922         * xmenu.c (syms_of_xmenu):
7923         * xfns.c (syms_of_xfns):
7924         * xfaces.c (syms_of_xfaces):
7925         * xdisp.c (syms_of_xdisp):
7926         * window.c (syms_of_window):
7927         * w32fns.c (syms_of_w32fns):
7928         * undo.c (syms_of_undo):
7929         * textprop.c (syms_of_textprop):
7930         * terminal.c (syms_of_terminal):
7931         * syntax.c (syms_of_syntax):
7932         * sound.c (syms_of_sound):
7933         * search.c (syms_of_search):
7934         * print.c (syms_of_print):
7935         * minibuf.c (syms_of_minibuf):
7936         * macros.c (syms_of_macros):
7937         * keymap.c (syms_of_keymap, initial_define_key)
7938         (initial_define_lispy_key):
7939         * keyboard.c (syms_of_keyboard):
7940         * insdel.c (syms_of_insdel):
7941         * image.c (syms_of_image):
7942         * fringe.c (syms_of_fringe):
7943         * frame.c (syms_of_frame):
7944         * fontset.c (syms_of_fontset):
7945         * fns.c (syms_of_fns):
7946         * fns.c (syms_of_fns):
7947         * fileio.c (syms_of_fileio):
7948         * fileio.c (syms_of_fileio):
7949         * eval.c (syms_of_eval):
7950         * doc.c (syms_of_doc):
7951         * dispnew.c (syms_of_display):
7952         * dired.c (syms_of_dired):
7953         * dbusbind.c (syms_of_dbusbind):
7954         * data.c (syms_of_data):
7955         * composite.c (syms_of_composite):
7956         * coding.c (syms_of_coding):
7957         * cmds.c (syms_of_cmds):
7958         * charset.c (define_charset_internal, syms_of_character):
7959         * ccl.c (syms_of_ccl):
7960         * category.c (syms_of_category, init_category_once):
7961         * casetab.c (syms_of_casetab):
7962         * casefiddle.c (syms_of_casefiddle):
7963         * callint.c (syms_of_callint):
7964         * bytecode.c (syms_of_bytecode):
7965         * buffer.c (keys_of_buffer, syms_of_buffer):
7966         * alloc.c (syms_of_alloc):
7967         * process.c (syms_of_process, init_process):
7968         * lread.c (syms_of_lread, init_obarray):
7969         * font.c (build_style_table):
7970         * emacs.c (syms_of_emacs, main): Replace calls to intern with
7971         intern_c_string, calls to make_pure_string with
7972         make_pure_c_string.  Use pure_cons instead of Fcons.
7974         * process.c (socket_options): Make it const.
7975         (set_socket_option, init_process): Use a const pointer.
7977         * lread.c (intern_c_string): New function.
7978         (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7979         (defvar_int): Uset it.  Make the name const char*.
7981         * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7982         (defvar_int): Update prototypes.
7983         (DEFUN, EXFUN): Support for prototypes is now required.
7984         (intern_c_string): New prototype.
7985         (struct Lisp_Subr): Make symbol_name constant.
7987         * font.c (struct table_entry): Remove unused member.  Make NAMES
7988         constant.
7989         (weight_table, slant_table, width_table): Make constant.
7991         * emacs.c (struct standard_args): Make name and longname constant.
7993         * character.h (DEFSYM): Use intern_c_string.
7995 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
7997         * alloc.c (make_pure_c_string): New function.
7999         * eval.c (Fautoload): Purecopy all arguments.
8001 2009-11-05  Kenichi Handa  <handa@m17n.org>
8003         * fileio.c (Finsert_file_contents): Be sure set coding-system of
8004         the buffer in case of replace.
8006 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
8008         * puresize.h (BASE_PURESIZE): Increase to 1620000.
8010 2009-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8012         * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8013         when applicable (bug#4851).
8015         * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8016         (P_): Support for prototypes is now required.
8018 2009-10-31  Chong Yidong  <cyd@stupidchicken.com>
8020         * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8021         (Bug#4827).
8023 2009-10-30  Eli Zaretskii  <eliz@gnu.org>
8025         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
8027 2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
8029         * puresize.h (BASE_PURESIZE): Increase to 1470000.
8031         * lread.c (Fload): Purecopy the file name when building
8032         Vpreloaded_file_list.
8034 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
8036         * w32fns.c (syms_of_w32fns): Change default value of
8037         w32-scroll-lock-modifier to nil.  (Bug#2827)
8039 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
8041         * minibuf.c (Fall_completions): Fix typos in docstring.
8043 2009-10-26  Andreas Schwab  <schwab@redhat.com>
8045         * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8047 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
8049         * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8050         For delta < 0, skip check that only makes sense when the mini-window
8051         is going to be enlarged.  (Bug#4534)
8053 2009-10-25  Chong Yidong  <cyd@stupidchicken.com>
8055         * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8056         string in menu maps (Bug#4471).
8058 2009-10-24  Chong Yidong  <cyd@stupidchicken.com>
8060         * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8061         FRAME_NS_VIEW on terminal frames (Bug#4765).
8063 2009-10-24  Andreas Schwab  <schwab@linux-m68k.org>
8065         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8066         DBUS_TYPE_UINTnn separately to get proper sign extension.
8068         * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8069         can properly handle unsigned types.
8070         (make_uid, make_gid): Remove.
8072         * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8073         types again.
8075         * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
8076         (system_process_attributes): Likewise.
8078 2009-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
8080         * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8082         * eval.c (Fautoload): Purecopy the filename.  Simplify.
8084         * category.c (Fdefine_category): Purecopy docstring.
8086 2009-10-23  Andreas Schwab  <schwab@linux-m68k.org>
8088         * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8090         * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8092 2009-10-23  Chong Yidong  <cyd@stupidchicken.com>
8094         * window.c (Fwindow_edges, Fwindow_pixel_edges)
8095         (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8096         (Bug#4775).
8098 2009-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
8100         * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8101         (init_fileio_once):
8102         * lisp.h (init_fileio_once): Remove.
8103         * emacs.c (main): Don't call init_fileio_once.
8105 2009-10-23  Dan Nicolaescu  <dann@ics.uci.edu>
8107         * puresize.h (BASE_PURESIZE): Increase to 1430000.
8109 2009-10-21  Andreas Schwab  <schwab@linux-m68k.org>
8111         * doprnt.c (doprnt): Fix overflow check.
8113 2009-10-21  Jan Djärv  <jan.h.d@swipnet.se>
8115         * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8117         * xterm.h (x_wait_for_event): Declare it.
8119         * xterm.c (pending_event_wait): New variable.
8120         (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8121         see pending_event_wait.eventtype.
8122         (handle_one_xevent): Don't change gravity when parent changes.
8123         (x_new_font): Call change_frame_size with new rows/columns before we
8124         try to resize the frame.
8125         (x_wait_for_event): New function.
8126         (x_set_window_size_1): Don't change gravity unless change_gravity
8127         is set.
8128         Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
8129         don't change frame size, instead wait for the ConfigureNotify.
8130         (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8131         (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8132         (x_initialize): Initialize pending_event_wait.
8134         * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8135         size.
8137         * widget.c (EmacsFrameSetValues): Add comment.
8138         (EmacsFrameSetCharSize): Just call x_set_window_size.
8140         * gtkutil.c (xg_frame_set_char_size): Flush events and call
8141         x_wait_for_event.
8142         (flush_and_sync): Remove again.
8143         (xg_get_font_name): Suggest monospace if no previous font is known.
8145 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
8147         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
8148         8th bit, since that only made sense in the ASCII world (bug#4751).
8150 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8152         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8153         processing pending events when event is filtered for input method.
8154         (Bug#3681)
8156 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
8158         * fns.c: Add #endif accidentally removed in previous change.
8160 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
8162         * fns.c: Remove code for unsupported system: MAC_OS.
8163         * image.c: Likewise.  Include setjmp.h.
8165 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
8167         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8168         pixel -1 (bug #4742).
8170 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
8172         * process.c (create_pty): Remove conditionals for no longer
8173         supported systems: UNIPLUS and RTU.
8175         * xterm.c:
8176         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8178         * alloc.c: Do not define struct catchtag.
8179         * eval.c: Move struct catchtag definition ...
8180         * lisp.h: ... here.
8182         * image.c: Move png.h #include earlier to avoid warnings.
8184         * xterm.c:
8185         * xsmfns.c:
8186         * xselect.c:
8187         * xrdb.c:
8188         * xmenu.c:
8189         * xftfont.c:
8190         * xfont.c:
8191         * xfns.c:
8192         * xfaces.c:
8193         * xdisp.c:
8194         * window.c:
8195         * widget.c:
8196         * w32xfns.c:
8197         * w32uniscribe.c:
8198         * w32term.c:
8199         * w32select.c:
8200         * w32reg.c:
8201         * w32proc.c:
8202         * w32menu.c:
8203         * w32inevt.c:
8204         * w32heap.c:
8205         * w32font.c:
8206         * w32fns.c:
8207         * w32console.c:
8208         * w32.c:
8209         * w16select.c:
8210         * vm-limit.c:
8211         * unexsol.c:
8212         * unexec.c:
8213         * unexcw.c:
8214         * unexaix.c:
8215         * undo.c:
8216         * tparam.c:
8217         * textprop.c:
8218         * terminfo.c:
8219         * terminal.c:
8220         * termcap.c:
8221         * term.c:
8222         * syntax.c:
8223         * sound.c:
8224         * sheap.c:
8225         * search.c:
8226         * scroll.c:
8227         * region-cache.c:
8228         * regex.c:
8229         * ralloc.c:
8230         * process.c:
8231         * print.c:
8232         * nsterm.m:
8233         * nsselect.m:
8234         * nsmenu.m:
8235         * nsimage.m:
8236         * nsfont.m:
8237         * nsfns.m:
8238         * msdos.c:
8239         * minibuf.c:
8240         * menu.c:
8241         * marker.c:
8242         * macros.c:
8243         * keymap.c:
8244         * keyboard.c:
8245         * intervals.c:
8246         * insdel.c:
8247         * indent.c:
8248         * gtkutil.c:
8249         * ftxfont.c:
8250         * ftfont.c:
8251         * fringe.c:
8252         * frame.c:
8253         * fontset.c:
8254         * font.c:
8255         * fns.c:
8256         * floatfns.c:
8257         * filelock.c:
8258         * fileio.c:
8259         * emacs.c:
8260         * editfns.c:
8261         * dosfns.c:
8262         * doprnt.c:
8263         * doc.c:
8264         * dispnew.c:
8265         * dired.c:
8266         * dbusbind.c:
8267         * data.c:
8268         * composite.c:
8269         * coding.c:
8270         * cmds.c:
8271         * cm.c:
8272         * chartab.c:
8273         * charset.c:
8274         * character.c:
8275         * ccl.c:
8276         * category.c:
8277         * casetab.c:
8278         * casefiddle.c:
8279         * callproc.c:
8280         * callint.c:
8281         * bytecode.c:
8282         * buffer.c:
8283         * atimer.c: Include setjmp.h.  (Bug#4643)
8285 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8287         Remove leftover table unibyte_to_multibyte_table.
8288         * character.c (unibyte_to_multibyte_table): Remove.
8289         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8290         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8291         * character.h (UNIBYTE_TO_CHAR): New macro.
8292         (MAKE_CHAR_MULTIBYTE): Use it.
8293         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8294         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8295         (message_dolog, set_message_1):
8296         * search.c (Freplace_match):
8297         * editfns.c (Fcompare_buffer_substrings):
8298         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8299         (concat):
8300         * insdel.c (copy_text, count_size_as_multibyte):
8301         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8302         * term.c (produce_glyphs):
8303         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8304         * regex.c (RE_CHAR_TO_MULTIBYTE):
8305         * cmds.c (internal_self_insert):
8306         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8308         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8310 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
8312         * puresize.h (BASE_PURESIZE): Increase to 1310000.
8314 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
8316         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
8318 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
8320         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8321         still needed under Tiger.
8323         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8325         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8326         __Apple__.
8328         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8330 2009-10-15  Kenichi Handa  <handa@m17n.org>
8332         * print.c (print_object): Escape a symbol like "2E10" too.
8334 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
8336         Cleanups and changes for 64-bit compile under Snow Leopard.
8337         Based on suggestions by Erik Charlebois.
8339         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8341         * nsfont.m (ns_char_width): Replace deprecated call.
8342         (ns_findfonts, nsfont_list_family): Use long format in printf, and
8343         cast argument.
8344         (nsfont_open): Use ns_char_width() everywhere.
8345         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
8347         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8349         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8350         where appropriate.
8352         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8353         where appropriate.
8354         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8355         Use stringWithUTF8String.
8356         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8358         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8359         Add formal protocol mention to inheritance.
8360         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8362         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8363         Fix printf format.
8364         (ns_query_color): Use CGFloat where appropriate.
8365         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
8366         (EmacsScroller-mouseDown:): Use long format in printf, and cast
8367         argument.
8369         * config.in (NS_HAVE_NSINTEGER): Drop.
8371         * dbusbind.c (dbus-method-return-internal)
8372         (dbus-method-error-internal): Use long format in printf, and cast
8373         argument.
8375         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8376         in printf, and cast argument.
8378         * process.c (list_processes_1): Use long format in printf, and
8379         cast argument.
8381 2009-10-11  Glenn Morris  <rgm@gnu.org>
8383         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
8385 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
8387         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8388         menu bar with a small width so it doesn't enlarge the frame.
8390 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
8392         * fontset.c (Fset_fontset_font): Fix typos in error messages.
8394 2009-10-06  Glenn Morris  <rgm@gnu.org>
8396         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8397         SOME_MACHINE_LISP (this enters indirectly via DOC).
8399 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
8401         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
8403 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
8405         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8406         Doc fix.
8408 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
8410         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
8412 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
8414         * lisp.h (Qdelete_directory_internal): Remove, because it is not
8415         used anymore outside fileio.c.
8417         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8419 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
8421         * lisp.h (Qdelete_directory_internal):
8422         Declare, instead of Qdelete_directory.
8424         * w32fns.c (Fsystem_move_file_to_trash): Use it.
8426 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8428         * eval.c (Fcalled_interactively_p): Add `kind' argument.
8430 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
8432         * fileio.c (Fdelete_directory_internal): Rename from
8433         Fdelete_directory.  It is not a command anymore.  It has no file
8434         name handler.
8436 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8438         * xdisp.c (get_next_display_element): Use an enum in last change.
8440 2009-09-28  Kenichi Handa  <handa@m17n.org>
8442         * xdisp.c (get_next_display_element): Pay attention to
8443         unibyte_display_via_language_environment in handling
8444         Vnobreak_char_display.
8446 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
8448         * nsterm.h (ns_app_name): New extern variable.
8450         * nsterm.m (ns_app_name): New variable.
8451         (ns_term_init): Set and use it.
8452         (ns_term_shutdown): Use it.
8454         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
8455         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8457         * nsfns.m (ns_set_name_iconic, ns_set_name)
8458         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8459         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8461         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8462         Remove double-casting in client_data comparison.
8464 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8466         * keyboard.c (make_lispy_event): Remember last wheel direction.
8467         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8469 2009-09-26  Glenn Morris  <rgm@gnu.org>
8471         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8472         internal.elc.  Add term/pc-win.elc.
8473         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8474         term/x-win.elc.
8475         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8476         term/w32-win.elc.
8477         (NS_SUPPORT): New.
8478         (lisp): Add NS_SUPPORT.
8479         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8481 2009-09-25  David Reitter  <david.reitter@gmail.com>
8483         * nsmenu.m (EmacsMenu-clear): Recognize application menu
8484         on Mac OS X 10.6+ (bug#4513).
8486 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
8488         * frame.c (xrdb_get_resource): Return nil for empty string resources;
8489         some parts of Emacs code (like font selection) don't grok them.
8490         See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8492 2009-09-24  Andreas Schwab  <schwab@redhat.com>
8494         * coding.c (decode_coding_iso_2022): Fix operator precedence.
8496 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
8498         * dired.c (Fdirectory_files): Fix typo in docstring.
8500 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
8502         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8503         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8504         (EmacsScroller-setPosition:portion:whole:): Remove -display call
8505         under GNUstep.
8506         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8508         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8509         glyph advancement.
8511 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
8513         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8514         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8516         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8517         deleted (bug #4492).
8519         * nsfont.m (Vns_reg_to_script): New lisp variable.
8520         (syms_of_nsfont): Declare it.
8521         (ns_registry_to_script): New function.
8522         (ns_get_req_script): Call it.
8523         (ns_findfonts): Don't give up on non-unicode registry.
8525         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8527 2009-09-20  Tom Tromey  <tromey@redhat.com>
8529         * eval.c (find_handler_clause): Make stack-trace-on-error work in
8530         batch mode (bug#4228).
8532 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
8534         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8535         carefully.  (Bug #4339)
8537 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
8539         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8541 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
8543         * emacs.c (inhibit_x_resources): Update doc string for NS.
8544         (main) [HAVE_NS]: Don't process --no-init-file option.  Remove
8545         legacy code for -NXHost.  Fix error printf in daemon case.
8547         * nsterm.h (ns_no_defaults): Remove.
8549         * nsterm.m (ns_no_defaults): Remove.
8550         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8551         (ns_use_qd_smoothing): Remove legacy variable.
8552         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8553         don't update the NSWindow itself.
8554         (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8555         state detection and store user rect ourselves.  (Bug #3581)
8557         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8558         ns_use_qd_smoothing.
8560         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8561         platform versions.  Drop support for emacs-20-style face specs.
8562         (x-close-connection): Drop PSFlush() under OS X.
8563         (x-focus-frame): Activate the app first.  (Bug #4180)
8565 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
8567         * emacs.c (inhibit_x_resources): New variable.
8568         (main) [HAVE_NS]: Don't process --quick command line option.
8569         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8571         * lisp.h (inhibit_x_resources): Declare it extern.
8573         * w32reg.c (x_get_string_resource):
8574         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8576 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
8578         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8579         Add lisp/term/internal.elc.
8581 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8583         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8584         (bug#4461).
8586 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
8588         * puresize.h (BASE_PURESIZE): Increase to 1290000.
8590         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8591         (OBJECTS_MACHINE): Remove, unused.
8593 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8595         * frame.c (x_get_resource_string): Remove unused.
8597 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
8599         * xterm.c (x_new_font): Call change_frame_size before calling
8600         x_set_window_size, in case frame size won't change.
8602         * frame.c (x_set_font): Remove dead code.
8604 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
8606         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8608 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8610         * lread.c (Fload): Don't output a message after loading an obsolete
8611         package any more (done in Lisp now).
8613 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
8615         * fns.c (syms_of_fns): Doc fix (Bug#4227).
8617 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8619         * keymap.c (Fwhere_is_internal): Use nconc2.
8621 2009-09-11  Alan Mackenzie  <acm@muc.de>
8623         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8624         batch mode.
8626 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
8628         * xdisp.c (display_mode_element): Detect cycles.
8630 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8632         * keymap.c (where_is_internal): Don't erroneously return nil right after
8633         filling the cache.
8634         (where_is_internal_1): Fix up typo.
8636 2009-09-11  Glenn Morris  <rgm@gnu.org>
8638         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8639         share a common doc-string.
8641 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8643         * keymap.c (get_keymap): Return the actual keymap symbol rather than
8644         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8646         * keymap.c (QCadvertised_binding): New constant.
8647         (syms_of_keymap): Initialize it.
8648         (Fwhere_is_internal): Try and use bindings from :advertised-binding
8649         if applicable.
8651 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
8653         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8654         (parse_menu_item): Streamline since bindings are recomputed all the
8655         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
8656         more and don't support lmenu's menu-alias any more either.
8658         * keymap.c (where_is_internal_data): Make noindirect a boolean.
8659         (where_is_internal): Strip it down to only traverse the keymaps.
8660         Move the cache handling from Fwhere_is_internal to here.
8661         (Fwhere_is_internal): Move the handling of remapping and the choice of
8662         the best binding from where_is_internal to here.
8663         Unify the cached/noncached paths, so remapping is also handled
8664         correctly when the cache is used, and so the cache can be used to
8665         speed up remap-handling when applicable.
8666         Give preference to non-remapped bindings.
8667         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8668         non-remapped bindings.
8669         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8670         command remapping.
8672         * xdisp.c (display_mode_element): Move list length limit from 50 to
8673         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8675 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
8677         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8679 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8681         * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8682         (Bug#4334)
8684         * keymap.c (where_is_internal): Filter out shadowed remappings.
8685         Assume that where_is_internal returns unshadowed bindings to simplify
8686         the code and get rid of the gotos.  Use ASIZE.
8688 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
8690         * xterm.c (x_focus_changed): If we get a focusout and pointer
8691         is invisible, make it visible.
8693         * xterm.h: Remove condition for declaration of
8694         x_*_window_to_frame.
8696 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8698         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8699         initial terminal as well.
8701 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
8703         * xterm.h: Rename x_non_menubar_window_to_frame to
8704         x_menubar_window_to_frame.
8706         * xterm.c: Remove declarations also in xterm.h.
8707         (XTmouse_position): Do not return valid positions
8708         for clicks in the menubar and the toolbar for Gtk+.
8710         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8711         if the widget for the event has the same top level as a frame,
8712         return the frame.
8713         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8714         internal windows, bug #4122.
8715         (x_non_menubar_window_to_frame): Remove.
8717 2009-09-02  Glenn Morris  <rgm@gnu.org>
8719         * buffer.c (default-major-mode): Move most of the doc from here...
8720         (major-mode): ... to here.
8722 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
8724         * process.c (wait_reading_process_output): Keep the descriptor
8725         when pty is used by a non-child process, e.g., in I/O buffer of
8726         GDB this allows inferior to be restarted.
8728 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
8730         * xdisp.c (redisplay_internal): Remove redundant test and collapse
8731         both branches into one.
8733 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
8735         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8736         (main): Use enable-multibyte-characters rather than
8737         default-enable-multibyte-characters.  Output a warning message when
8738         running a unibyte session.
8740 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8742         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8743         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8744         (copy_data_segment): Also copy __program_vars section.
8745         (copy_dyld_info) [LC_DYLD_INFO]: New function.
8746         (dump_it) [LC_DYLD_INFO]: Use it.
8748         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8750 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
8752         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8753         $(SRC)/buildobj.h.
8754         (buildobj.h): Renamed from $(SRC)/buildobj.h.
8755         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8756         $(SRC)/buildobj.h.
8757         (clean): Add buildobj.h.
8759 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
8761         * print.c (print_object): Set escapeflag to 1 when printing
8762         hashtable keys and values.
8764 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
8766         * lread.c (read_integer): Use doubles (and potentially return a float
8767         number) as we do in string-to-number.
8768         (read1): Use strtol to read integers, signal errors on strtol's
8769         overflow and use floats if strtol's output is too large for
8770         Elisp integers.
8772 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
8774         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8775         (make-buildobj-SH): Fix last change.
8776         (SRC): Move to before where it's first used.
8778 2009-08-27  Kenichi Handa  <handa@m17n.org>
8780         * process.c (send_process): Use encode_coding_object instead of
8781         encode_coding_string to perform eol-conversion even if the string
8782         is unibyte.
8784         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8785         character.
8787         * cmds.c (Fself_insert_command): Avoid unnecessay
8788         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
8790 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
8792         * callproc.c (Fcall_process): Remove always true #if.
8794         * lisp.h: Replace #if 0 code for checking with text pointing to
8795         the --enable-checking configure flag.
8797         * emacs.c (main): Mention the --enable-profiling configure flag
8798         instead of using CFLAGS.
8800 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
8802         * Makefile.in (buildobj.h): New target.
8803         (doc.o): Depend on it.
8804         (temacs${EXEEXT}): Don't generate buildobj.lst.
8805         (mostlyclean): Delete buildobj.h, not buildobj.lst.
8806         * makefile.w32-in ($(SRC)/buildobj.h): New target.
8807         ($(BLD)/doc.$(O)): Depend on it.
8808         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
8809         provided by Eli Zaretskii.)
8810         ($(TEMACS)): Don't generate buildobj.lst.
8811         * doc.c: Include buildobj.h.
8812         (buildobj): New static variable.
8813         (Fsnarf_documentation): Use it, instead of opening and reading
8814         buildobj.lst.
8816 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
8818         * dbusbind.c (Fdbus_call_method)
8819         (Fdbus_call_method_asynchronously): Use English numeric format for
8820         timeout values in doc string.
8822 2009-08-25  Kenichi Handa  <handa@m17n.org>
8824         * alloc.c (mark_char_table): New function.
8825         (mark_object): Use mark_char_table for a char-table.
8827         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8828         (CHAR_TABLE_REF): Use it.
8830 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
8832         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8833         before invoking the newly build emacs to check for load-path
8834         shadowing.
8836 2009-08-22  Glenn Morris  <rgm@gnu.org>
8838         * Makefile.in (bootstrap_exe): New variable.
8839         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8840         Use ${bootstrap_exe}.
8842 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
8844         * coding.h (encode_coding_string): Don't encode unibyte strings.
8845         (Bug#4047)
8847 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
8849         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8851         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
8852         intended as hotfix only.
8853         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8855 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
8857         * nsterm.m (ns_get_color): Update documentation properly for last
8858         change, and clean up loose ends in the code left by it.  Fix
8859         longstanding bug with 16-bit hex parsing, and add support for
8860         yet another X11 format (rgb:r/g/b) for compatibility.
8861         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8862         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
8864 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
8866         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8868 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
8870         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8871         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
8872         (xd_initialize, xd_pending_messages): Check, whether
8873         $DBUS_SESSION_BUS_ADDRESS is set.
8875 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8877         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
8879         * nsterm.m (ns_get_color): Remove incompatible color formats again.
8881 2009-08-20  Glenn Morris  <rgm@gnu.org>
8883         * emacs.c (system-type): Doc fix.
8885 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8887         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8888         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
8890 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
8892         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8893         New functions.
8894         (xd_initialize): Revert change from 2009-08-16.
8896 2009-08-18  Kenichi Handa  <handa@m17n.org>
8898         * fontset.c (Ffontset_font): If a nil element is found in a
8899         font-group vector, return nil.
8901 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
8903         * process.c (status_notify): Don't perform redisplay.
8904         (Fdelete_process, list_processes_1, process_send_signal):
8905         Expliticly perform redisplay.
8906         (wait_reading_process_output): Always check process status, but
8907         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8909 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
8911         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
8912         (XFLOAT_INIT): New macro for storing a float value.
8913         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8914         * fns.c (sxhash): Copy out the value of a float in order to
8915         examine its bytes.
8916         * dbusbind.c (xd_append_arg): Likewise.
8918         * emacs.c (main): Don't call syms_of_data twice.
8920 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
8922         * dbusbind.c (xd_initialize): Add connection file descriptor to
8923         input_wait_mask, in order to let select() detect, whether a new
8924         message has been arrived.
8925         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
8927 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
8929         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8930         New functions.
8932         * lisp.h (xd_pending_messages): Declare.
8934         * keyboard.c (readable_events): Call xd_pending_messages.
8936 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
8938         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
8940         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8942         * buffer.c (set_buffer_internal_1)
8943         (swap_out_buffer_local_variables): Check for unbound local
8944         variables (Bug#4138).
8946 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
8948         * process.c (create_pty): Fix last change.
8950 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
8952         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8953         (xbm_load_image): Caller changed.
8954         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
8956 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
8958         * process.c (create_pty): New function.
8959         (Fstart_process): Use it to allow Emacs to just associate a pty
8960         with the buffer.  See associated change in gdb-mi.el.
8961         (list_processes_1): Deal with no program name.
8962         (start_process_unwind): Use pid == -2 to mean no process.
8964 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8966         * cmds.c (nonundocount): New global variable.
8967         (keys_of_cmds): Initialize it.
8968         (Fself_insert_command): Use it to combine upto 20 sequential chars
8969         into a single undo entry, just like the Qself_insert_command code in
8970         keyboard.c does.
8971         Call frame_make_pointer_invisible, also like the Qself_insert_command
8972         code in keyboard.c does.
8973         * keyboard.c (command_loop_1): Use the new global nonundocount rather
8974         than its own local replacement for it.
8976 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
8978         * fns.c (concat): Don't re-set string length to its current value.
8980         * coding.h (decode_coding_string, encode_coding_string):
8981         Use SBYTES macro.
8983         * doprnt.c (doprnt_lisp): Delete unused function.
8984         (doprnt): Merge with doprnt1, discarding lispstrings code.
8985         * lisp.h (doprnt_lisp): Don't declare.
8987 2009-08-07  Juri Linkov  <juri@jurta.org>
8989         * puresize.h (BASE_PURESIZE): Increase to 1270000.
8991 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
8993         * print.c (syms_of_print): Undo previous change.
8995 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
8997         * lread.c (read1, syms_of_lread): Read hashtables back from the
8998         readable format.
9000         * print.c (print_preprocess, print_object): Print hashtables fully
9001         and readably.
9002         (syms_of_print): Provide 'hashtable-print-readable.
9004 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
9006         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9007         no family set.
9008         (nsfont_open): Handle case when entity has no family.
9010 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
9012         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9013         element, not a list, for match case.
9015 2009-07-28  Kenichi Handa  <handa@m17n.org>
9017         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9018         rigidly.
9020         * xfont.c (xfont_list_pattern): Don't ignore the return value of
9021         font_parse_xlfd.  Check font properties more rigidly.
9023 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
9025         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9026         bsd-common.h.
9028 2009-07-27  Kenichi Handa  <handa@m17n.org>
9030         * xfaces.c (face_with_height): Call font_clear_prop.
9032 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
9034         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9036         * xterm.c (x_term_init): Use Qx.
9038         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9040         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
9041         (ns_get_color): Revert 2009-07-16 change.
9043 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
9045         * lread.c (syms_of_lread) <force_load_messages>: New variable.
9046         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
9048 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
9050         * coding.h (decode_coding_string, encode_coding_string):
9051         Use SCHARS macro.
9053         * lread.c: Rewrite 2009-07-21 changes.
9054         (load_depth): Delete.
9055         (Qload_in_progress): New variable.
9056         (load_unwind): Don't reference load_depth or load_in_progress.
9057         (Fload): Likewise; specbind Qload_in_progress instead.
9058         (init_lread): Don't initialize load_depth.
9059         (syms_of_lread): Initialize and protect Qload_in_progress.
9061 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
9063         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9065 2009-07-23  Yavor Doganov  <yavor@gnu.org>
9067         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9069 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
9071         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
9072         Bugs 3792, 3720, 2402.
9073         (ns_lookup_indexed_color): Check for bad index.
9074         (ns_index_color): Init unused slot to 0.
9075         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9076         Bug 3714, possibly 3082.
9078 2009-07-22  Jason Rumney  <jasonr@gnu.org>
9080         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9081         Position IME window at cursor (Bug#2570).
9082         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9083         (globals_of_w32fns): Dynamically load functions required above.
9085         * w32term.c (w32_draw_window_cursor): Send message to reposition
9086         any IME window.
9088 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
9090         * fileio.c: Revert 2009-07-16 changes.
9091         (Vauto_save_include_big_deletions): New variable.
9092         (Fdo_auto_save): Disable auto-save only if
9093         auto-save-include-big-deletions is nil.
9095 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
9097         * xdisp.c (move_it_to): For continued lines ending in a tab, take
9098         the overflowed pixels into account (Bug#3879).
9100 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
9102         * lread.c (load_depth): New variable.
9103         (Fload, load_unwind, init_lread): Set it to the load recursion
9104         depth; set load_in_progress as a simple boolean based on the
9105         current load_depth.  (Bug#3892)
9107 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
9109         * nsfont.m (ns_has_attribute): Remove.
9110         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9112 2009-07-18  Juri Linkov  <juri@jurta.org>
9114         * process.c (Fset_process_query_on_exit_flag): Mention killing
9115         a buffer in docstring.
9117 2009-07-17  Kenichi Handa  <handa@m17n.org>
9119         * casetab.c (shuffle): Fix the logic of setting up the cycle.
9121 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9123         * nsfns.m (Fns_set_alpha): Remove function.
9124         (syms_of_nsfns): Don't defsubr it.
9126         * nsterm.m (ns_get_color): Remove incompatible color formats.
9127         (ns_color_to_lisp): Generate #rrggbb color format string.
9129 2009-07-16  Richard Stallman  <rms@gnu.org>
9131         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9132         (Fset_buffer_auto_saved): Handle save_length = -2.
9134 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
9136         * xterm.c (Qx_gtk_map_stock): New var.
9138         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9139         of calling intern each time.
9141 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9143         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9144         does tiling.
9146         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9148 2009-07-14  Kenichi Handa  <handa@m17n.org>
9150         * font.c (font_vconcat_entity_vectors): New function.
9151         (struct font_sort_data): New member font_driver_preference.
9152         (font_compare): Check font_driver_preference.
9153         (font_sort_entities): The format of the first argument changed.
9154         (font_delete_unmatched): Likewise.
9155         (font_list_entities): The return type changed.
9156         (font_select_entity): The format of the second argument changed.
9157         (font_find_for_lface): Adjuste for the above changes.
9158         Don't suppress the checking of C even if the repertory supports it.
9159         (Flist_fonts): Adjust for the above changes.
9161         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
9162         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
9163         Reject a font who has adstyle property that is different from a
9164         langname derived from registry property.
9165         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
9167 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
9169         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9170         local copy of dirfilename.
9172 2009-07-13  Kenichi Handa  <handa@m17n.org>
9174         * chartab.c (sub_char_table_ref_and_range): Fix the range check
9175         against max_char.
9177         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9178         calling XSYMBOL (sym).
9180 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
9182         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9183         New function.
9184         (directory_files_internal) [WINDOWSNT]:
9185         Bind w32-get-true-file-attributes to either t or nil, depending whether
9186         the filesystem of the directory is fast or slow.
9188         * w32.c (logon_network_drive): Don't assume PATH is an absolute
9189         file name.
9190         (is_slow_fs): New function.
9191         (stat): Use it to determine whether to issue more system calls to
9192         get accurate file attributes, when w32-get-true-file-attributes is
9193         `local'.
9195 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
9197         * xfns.c (Fx_select_font): Remember last font selected in
9198         x_last_font_name and use that the next time.  Also try the frame
9199         parameter font-parameter as default to the font dialog.
9201 2009-07-10  Kenichi Handa  <handa@m17n.org>
9203         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9205 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
9207         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9209         * w32.c (stat): Treat UNC file names as residing on remote
9210         drives.  (Bug#3542)
9212 2009-07-09  Kenichi Handa  <handa@m17n.org>
9214         * fontset.c (fontset_find_font): Fix previous change.
9216 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
9218         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9219         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9220         error flag.
9222 2009-07-08  Kenichi Handa  <handa@m17n.org>
9224         * fontset.c (fontset_find_font): Fix the logic of handling
9225         charset_matched.
9226         (font_for_char): Delete unused var.
9227         (generate_ascii_font_name): Delete it.
9229         * coding.h (JIS_TO_SJIS2): Fix the code range check.
9231         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9232         (encode_coding_sjis): Fix the code range check.
9234 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
9236         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9237         (Fexpand_file_name): Copy string data properly (Bug#3772).
9239 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
9241         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9242         first MapNotify.
9244 2009-07-07  Kenichi Handa  <handa@m17n.org>
9246         * character.h (unibyte_has_multibyte_table): Delete extern.
9247         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9249         * charset.c (Fset_charset_priority): Update charset_unibyte.
9250         (syms_of_charset): Initialize charset_unibyte.
9252         * character.c (unibyte_has_multibyte_table): Delete it.
9253         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9254         charset_unibyte.
9255         (multibyte_char_to_unibyte_safe): Likewise.
9256         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9258         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
9259         (x_produce_glyphs): Likewise.
9261         * .gdbinit (xcharset): Fix the treating $arg0.
9263 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
9265         Emulation of `getloadavg' on MS-Windows.
9266         * w32.c: Include float.h.
9267         (g_b_init_get_native_system_info, g_b_init_get_system_times)
9268         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9269         (get_native_system_info, get_system_times): New functions.
9270         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9271         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9272         (globals_of_w32): Initialize g_b_init_get_native_system_info,
9273         g_b_init_get_system_times, and num_of_processors.
9275 2009-07-03  Jason Rumney  <jasonr@gnu.org>
9277         * w32term.c (w32_initialize): Use standard types.
9279 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
9281         * dired.c (Ffile_attributes): Decode user and group names by the
9282         locale's encoding.  (Bug#3443)
9284 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
9286         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9287         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9289         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9291         * term.c (init_tty): Remove spurious #ifdef.
9293         * m/mips.h: Mention this file is also used for netbsd.
9294         * m/pmax.h: Remove file.
9296 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
9298         * xterm.h (struct x_display_info): Add invisible_cursor.
9299         (struct x_output): Add current_cursor.
9301         * xterm.c (XTtoggle_invisible_pointer): New function.
9302         (x_define_frame_cursor): Don't define cursor if invisible or the
9303         same as before.  Set current_cursor.
9304         (x_create_terminal): Set toggle_invisible_pointer_hook.
9306         * xfns.c (make_invisible_cursor): New function.
9307         (x_set_mouse_color): Call make_invisible_cursor.
9308         Set current_cursor.
9309         (x_window): Set current_cursor.
9311         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9313         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9314         inserting a character.
9315         (read_avail_input): Call frame_make_pointer_visible.
9317         * frame.c (Vmake_pointer_invisible): New variable.
9318         (frame_make_pointer_invisible, frame_make_pointer_visible):
9319         New functions.
9320         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9322         * frame.h: Declare frame_make_pointer_invisible and
9323         frame_make_pointer_visible.
9324         (struct frame): Add pointer_invisible.
9326 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
9328         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9329         frame isn't visible.
9330         (xg_frame_resized): If width/height is -1, get size of window
9331         from X server.
9333         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9334         for MapNotify.
9336         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
9337         here or call change_frame_size.  Just call flush_and_sync.
9338         (flush_and_sync): Reintroduce.
9340 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
9342         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
9344         * xterm.c (x_handle_net_wm_state): Also look for sticky.
9345         (x_term_init): Initialize Xatom_net_wm_state_sticky.
9347         * frame.h: Declare Qsticky.
9349         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9351         * nsfns.m (ns_frame_parm_handlers): Ditto.
9353         * frame.c: Declare Qsticky.
9354         (frame_parms): Add sticky.
9356         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9358         * xterm.h: Declare x_set_sticky.
9360         * xterm.c (x_set_sticky): New function.
9362         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9363         (xg_tool_bar_menu_proxy): Attach enter/leave events to
9364         xg_tool_bar_proxy_help_callback.
9366         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9368         * frame.c: Qmaximized is new.
9369         (x_set_frame_parameters): Do not handle fullscreen specially.
9370         Only set width and height if explicitly set.
9371         (x_set_fullscreen): Handle Qmaximized.
9372         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9373         (syms_of_frame): Initialize Qmaximized.
9375         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9376         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
9378         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
9379         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
9380         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
9381         set gravity to NorthWestGravity when USE_GTK.
9382         (set_wm_state): New function.
9383         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
9384         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9385         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
9386         or the case when no window manager is running.  That means remove calls
9387         to x_real_positions and x_fullscreen_adjust.
9389         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9390         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9391         flush_and_sync.
9392         (xg_height_changed): New function.
9393         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
9394         and gtk_window_set_policy.  Set frame gravity after parsing the
9395         geometry string.
9396         (xg_update_frame_menubar, free_frame_menubar)
9397         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9398         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9399         Remove calls to xg_frame_set_char_size.
9401 2009-07-01  Kenichi Handa  <handa@m17n.org>
9403         * keyboard.c (decode_keyboard_code): New function.
9404         (tty_read_avail_input): Decode the input bytes if necessary.
9406         * coding.c (setup_coding_system):
9407         Initialize coding->carryover_bytes to 0.
9408         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9409         use Qno_conversion.
9411 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9413         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9415 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
9417         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
9419 2009-06-30  Jason Rumney  <jasonr@gnu.org>
9421         * w32term.c (w32_initialize): Use GetModuleHandle for library that
9422         is already loaded.
9423         Set user model ID if supported (bug#1849).
9425 2009-06-29  Jim Meyering  <meyering@redhat.com>
9427         Remove useless if-before-xfree test.
9428         * nsfont.m (nsfont_close): Remove useless test.
9429         * term.c (delete_tty): Likewise.
9430         * w32.c (system_process_attributes): Likewise.
9431         * w32font.c (w32font_close): Likewise.
9432         * xfaces.c (x_free_gc): Likewise.
9433         * xselect.c (buffer): Likewise.
9435 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
9437         * process.c (send_process): Keep decoded string in a local
9438         variable and protect it from GC.  (Bug#3521)
9440 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
9442         * term.c (create_tty_output) [MSDOS]: #ifdef away.
9443         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9445 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
9447         * xdisp.c (start_display, handle_face_prop)
9448         (move_it_vertically_backward, cursor_row_fully_visible_p)
9449         (redisplay_window, try_window_id, produce_image_glyph):
9450         Delete some #ifdef-ed out code chunks that are now obsolete.
9452         * xterm.c (x_update_window_begin, x_new_focus_frame)
9453         (x_scroll_bar_handle_click, handle_one_xevent)
9454         (handle_one_xevent, XTread_socket, x_focus_on_frame)
9455         (x_make_frame_visible, x_make_frame_invisible)
9456         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9457         code chunks that are now obsolete.
9459 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
9461         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9462         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
9463         for hours, when optimzation is enabled.
9464         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9465         (xd_read_message): Make them static.
9467 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
9469         * term.c (turn_on_face): Allow simultaneously bold and dim
9470         terminal faces (Bug#3530).
9472 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
9474         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9476         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9477         truncation glyphs (Bug#3686).
9479 2009-06-27  Glenn Morris  <rgm@gnu.org>
9481         * m/pmax.h: Restore file, with only netbsd portions.
9483 2009-06-26  David Reitter  <david.reitter@gmail.com>
9485         * nsterm.m (keydown): Avoid infinite loop.
9487 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
9489         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9490         the arg FORCE_SYMBOL.
9492 2009-06-25  Kenichi Handa  <handa@m17n.org>
9494         * fontset.c (fontset_find_font): When a usable rfont_def is found
9495         in a fallback font-group, make it the first element of the group.
9497 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
9499         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9501 2009-06-24  Kenichi Handa  <handa@m17n.org>
9503         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9504         set for C.
9505         (fontset_font): Record the availability of a font for C both in
9506         the realized fontsets of the current one and the default one.
9508 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
9510         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9511         conditional, it is always defined on AIX.
9513 2009-06-23  Miles Bader  <miles@gnu.org>
9515         * window.c (Vrecenter_redisplay): New variable.
9516         (syms_of_window): Initialize it.
9517         (Qtty): New extern declaration.
9518         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9520 2009-06-23  Jim Meyering  <meyering@redhat.com>
9522         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9523         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9524         pointer dereferences are guaranteed to be valid.
9526 2009-06-23  Kenichi Handa  <handa@m17n.org>
9528         * emacs.c (main): Call init_font ().
9530         * font.h (Vfont_log): Extern it.
9531         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9533         * font.c (font_sort_entities, font_list_entities)
9534         (font_matching_entity, font_open_entity)
9535         (font_close_object): Change font_add_log to FONT_ADD_LOG.
9536         (Vfont_log): Delete static.
9537         (font_log_env_checked): Delete this variable.
9538         (font_add_log): Don't check font_log_env_checked.
9539         (font_deferred_log): Check Vfont_log.
9540         (init_font): New function.
9542         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9544         * w32font.c: Change font_add_log to FONT_ADD_LOG.
9546         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9548         * xfont.c: Change font_add_log to FONT_ADD_LOG.
9550         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9551         (face_for_char): Don't call font_deferred_log here.
9552         (font_for_char): Likewise.
9554 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
9556         * w32term.c (x_draw_glyph_string): Use the glyph string's width
9557         rather than its background_width for drawing the overline and
9558         underline (Bug#489).
9560         * xterm.c (x_draw_glyph_string): Use the glyph string's width
9561         rather than its background_width for drawing the overline and
9562         underline (Bug#489).
9563         (xg_default_icon_file): New variable.
9564         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9565         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9567         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9568         (load_overlay_strings): Remove externs.
9569         (fast_find_position): Function deleted.
9570         (mouse_face_from_buffer_pos): New function, based on
9571         fast_find_position.  Correctly handle before-strings,
9572         display-strings, and after-strings (Bug#1220).
9573         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9575 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
9577         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9578         (move_it_in_display_line_to, move_it_in_display_line_to)
9579         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9581 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
9583         * Branch for 23.1.
9585 2009-06-21  Jason Rumney  <jasonr@gnu.org>
9587         * w32term.c (keyboard_codepage): New static variable.
9588         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9589         (w32_read_socket) [WM_CHAR]: Use it to decode character
9590         input (bug#3237).
9591         (w32_initialize): Initialize it.
9592         (codepage_for_locale): New function.
9594 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
9596         * process.c (status_message): Pass Faset index argument as a lisp
9597         object, so as to work with USE_LISP_UNION_TYPE.
9599 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9601         * coding.c (Ffind_coding_systems_region_internal):
9602         Cache checked characters.
9604 2009-06-18  Kenichi Handa  <handa@m17n.org>
9606         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9608 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
9610         * xdisp.c (redisplay_internal): Check that the frame is still
9611         live after redisplay of its windows.
9612         (redisplay_windows): Check that the window is still live.
9614 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
9616         * coding.c (detect_coding_utf_16): Fix previous change.
9618 2009-06-16  Kenichi Handa  <handa@m17n.org>
9620         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9621         UTF-16 by checking the dispersion of Eth and Oth bytes.
9623 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
9625         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9627 2009-06-15  Kenichi Handa  <handa@m17n.org>
9629         * process.c (status_message): Fix previous change.  Be sure to
9630         decode a localized string.
9632 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9634         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9635         add comment explaining why.
9637 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
9639         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9641 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
9643         * nsfont.m (ns_attribute_value): Remove.
9644         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9645         (ns_has_attribute): Shrink the normal range.
9646         (ns_findfonts): Don't worry about requested spec in determining
9647         need for synthItal.
9648         (ns_get_covering_families): Retain scriptToFamilies.
9650 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
9652         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9654 2009-06-11  Kenichi Handa  <handa@m17n.org>
9656         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9657         overhang for the static composition case.
9659 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9661         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9662         overhang for the automatic composition case.
9664         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9665         composition case.
9667 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
9669         * xdisp.c (get_next_display_element): When handling wrap-prefix
9670         and line-prefix, treat \n as a control character (bug#3502).
9672 2009-06-10  Kenichi Handa  <handa@m17n.org>
9674         * font.c (font_parse_family_registry): Fix for one-char foundry.
9675         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9677 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
9679         * process.c (status_message): Fix handling of multibyte signal
9680         string (Bug#3499).
9682 2009-06-09  Jim Meyering  <meyering@redhat.com>
9684         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9685         color name is missing.
9687 2009-06-09  Kenichi Handa  <handa@m17n.org>
9689         * charset.c (Fmap_charset_chars): In docstring, state clearly that
9690         FROM-CODE and TO-CODE are codepoints of CHARSET.
9692 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
9694         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9696 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
9698         Changes to support :script/:lang/:otf in NS font driver.
9699         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9700         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9701         indicate not part of font driver interface, and change callers.
9702         (ns_get_family): Remove pointless null check.
9703         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9704         ns_spec_to_descriptor, ns_descriptor_to_entity.
9705         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9706         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9707         (ns_spec_to_descriptor, ns_descriptor_to_entity)
9708         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9709         (ns_get_req_script, ns_accumulate_script_ranges)
9710         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9711         New functions.
9712         (nsfont_list, nsfont_match): Use ns_findfonts.
9713         (nsfont_open): Use font descriptor instead of traits.
9714         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9715         (dump_glyphstring): Rename to ns_dump_glyphstring.
9717         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9719         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9721         * fontset.c (fontset_from_font): Remove NS-specific code.
9723 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
9725         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9726         nonactive windows.
9728 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
9730         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9732 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
9734         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9736 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
9738         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9739         account for the overflowing of newlines into the last glyph on the
9740         display line (Bug#3482).
9742 2009-06-05  David Reitter  <david.reitter@gmail.com>
9744         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9745         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9746         Fns_selection_exists_p, Fns_selection_owner_p.
9748 2009-06-03  Jason Rumney  <jasonr@gnu.org>
9750         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9751         available.  (Bug#3379)
9753 2009-05-29  Kenichi Handa  <handa@m17n.org>
9755         * coding.c (get_translation_table):
9756         Check Venable_character_translation.
9758 2009-05-26  David Reitter  <david.reitter@gmail.com>
9760         * nsterm.m (ns_raise_frame): Only raise frame if visible.
9761         (x_make_frame_visible): Move frame to front rather than calling
9762         ns_raise_frame().
9763         (keyDown:): Do not swallow events that aren't re-sent if frame
9764         isn't key window.
9765         (drawRect:): Do not set visibility/iconified flags because
9766         drawRect may be called by NSView even if the frame is hidden.
9768         * nsfns.m (Fx_create_frame): Follow other ports in
9769         determining visibility; default to t.  Ensure async_visible is set.
9771 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
9773         * dired.c (Ffile_attributes): Doc fix.
9775 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
9777         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9779 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9781         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9782         and xfont_scratch_props.
9783         (syms_of_xfont): Do it here instead.
9784         (xfont_find_ccl_program): Delete, unused.
9785         (xfont_open): Delete unused var `i'.
9787 2009-05-21  Kenichi Handa  <handa@m17n.org>
9789         * fontset.c (Qlatin): Don't make it static.
9791         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9792         New functions.
9793         (xfont_scripts_cache, xfont_scratch_props): New variables.
9794         (Qlatin, Vscalable_fonts_allowed): Extern it.
9795         (xfont_list_pattern): Argument changed.  Callers changed.
9796         Check Vscalable_fonts_allowed.  Check the support of a script.
9797         (xfont_list): Don't reject a font spec with :script property.
9798         (xfont_has_char): Fix setting of encoding.
9799         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9800         xfont_scratch_props.
9802 2009-05-19  Kenichi Handa  <handa@m17n.org>
9804         * font.c (font_sort_entities): Rename from font_sort_entites.
9805         Callers changed.
9807 2009-05-18  Kenichi Handa  <handa@m17n.org>
9809         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9811 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9813         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9814         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9816 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9818         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9819         (x_delete_terminal): Dissociate resource database from display and
9820         then call XrmDestroyDatabase before closing display.
9822 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
9824         * nsterm.m (ns_read_socket): Remove unused variable.
9825         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9826         whether selected frame is viable before raising it (based on patch
9827         by David Reitter), and improve commentary.
9828         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9830 2009-05-15  Kenichi Handa  <handa@m17n.org>
9832         * font.c (Ffont_spec): Check arguments.
9834 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
9836         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9837         weight when testing attributes (Bug#3282).
9839 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9841         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9842         what we expect to get in the next ConfigureNotify event.
9844         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9845         before Xft one (Bug#1696).
9847 2009-05-07  David Reitter  <david.reitter@gmail.com>
9849         * nsfns.m (Fx_display_planes): Compute bitplanes using
9850         NSBitsPerPixelFromDepth (Bug#3207).
9852 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
9854         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9856 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
9858         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9860 2009-05-07  David Reitter  <david.reitter@gmail.com>
9862         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9863         Respect mouse face background.
9865 2009-05-07  David Reitter  <david.reitter@gmail.com>
9867         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9868         Mouse movement/highlight: bracket drawing operations
9869         in ns_update_begin and ns_update_end.
9871 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
9873         * nsfns.m (ns_get_screen): Rewrite.
9874         Don't presume selected-frame is of type `ns'.
9876         * font.c (font_update_drivers): Sanity fallback to avoid disabling
9877         all drivers.
9879         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9881 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9883         * keyboard.h (add_user_signal): Fix typo in extern.
9885         * lisp.h (add_user_signal): Remove extern.
9887         * unexelf.c (unexec): Consider a section to precede the .bss section
9888         if its addresses overlap that of .bss.
9889         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9890         instead of dumping process.
9892 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
9894         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9896 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
9898         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9900 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
9902         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9903         any statements.
9905 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
9907         * process.c (read_process_output): Make sure the current buffer is
9908         always restored.
9910         * coding.c (record_conversion_result): Don't modify
9911         Vlast_code_conversion_error for successful result.
9912         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
9914 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
9916         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
9917         (load_charset_map): Remove unnecessary code.
9919 2009-04-30  David Reitter  <david.reitter@gmail.com>
9921         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
9922         through f24.
9924 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
9926         * xfaces.c (face_at_buffer_position): New arg base_face_id.
9928         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9929         face_at_buffer_position.
9930         (face_before_or_after_it_pos, get_next_display_element)
9931         (note_mouse_highlight): Update face_at_buffer_position call.
9933         * term.c (term_mouse_highlight):
9934         * msdos.c (IT_note_mouse_highlight):
9935         * fontset.c (Finternal_char_font):
9936         * font.c (font_at, font_range): Update face_at_buffer_position call.
9938         * dispextern.h (face_at_buffer_position): Update prototype.
9940 2009-04-30  Kenichi Handa  <handa@m17n.org>
9942         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
9944 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
9946         * callproc.c (Fcall_process): Fix GC protection.  Make sure
9947         current buffer is always restored.
9949 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9951         * atimer.c (init_atimer): Also clear stopped_atimers.
9953         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9955         * process.c (create_process): Clean up merger residues of
9956         2008-07-17 change.
9958 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
9960         * lread.c (Vread_circle): New variable.
9961         (read1): Disable recursive read if Vread_circle is nil.
9963 2009-04-29  Kenichi Handa  <handa@m17n.org>
9965         * fontset.h (set_default_ascii_font): Delete extern.
9967         * fontset.c (set_default_ascii_font): Delete this unused function.
9969         * frame.c (x_set_font): When ARG is a font-object, check if the
9970         font-object matches with the ASCII font-spec of the frame's
9971         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
9973 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9975         * fns.c (Flocale_info): Protect vector from GC during decoding.
9977         * process.c (Fstart_process): Protect argv strings from GC during
9978         encoding.
9980 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
9982         * sysdep.c: Include <ctype.h>.
9984 2009-04-27  David Reitter  <david.reitter@gmail.com>
9986         * nsfont.m (nsfont_open): Remove unused variable shrink.
9987         Remove commented-out code.
9989 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
9991         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9993 2009-04-25  Jason Rumney  <jasonr@gnu.org>
9995         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9997 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9999         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10000         Swap bytes in short integer if fringe bitmap width > 8.
10002 2009-04-23  Kenichi Handa  <handa@m17n.org>
10004         * xfaces.c (Fx_list_fonts): If a font size is specified in
10005         PATTERN, set it in returned scalable fonts.
10007 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
10009         * keyboard.c (Fset_input_meta_mode): Doc fix.
10011         * dispnew.c (Fsend_string_to_terminal): Doc fix.
10013         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
10015         * coding.c (Fterminal_coding_system): Doc fix.
10017         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10018         (Fx_display_pixel_height, Fx_display_planes)
10019         (Fx_display_color_cells, Fx_server_max_request_size)
10020         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10021         (Fx_display_mm_height, Fx_display_mm_width)
10022         (Fx_display_backing_store, Fx_display_visual_class)
10023         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10024         Doc fixes, replacing "terminal id" with "terminal object".
10025         (check_x_display_info): Handle terminal objects instead of
10026         terminal ids.
10028         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10029         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
10030         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10031         Doc fixes, replacing "terminal id" with "terminal object".
10033 2009-04-21  Kenichi Handa  <handa@m17n.org>
10035         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
10036         (font_score): Check AVGWIDTH too.
10038         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10039         worst case.
10040         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10041         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
10043 2009-04-19  Jason Rumney  <jasonr@gnu.org>
10045         The following changes fix Bug#3005 for wide glyphs on each platform,
10046         without reintroducing Bug#1258 for stretch glyphs.
10048         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10049         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
10050         get_phys_cursor_geometry.
10052         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
10053         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
10054         using get_phys_cursor_geometry.
10056         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10057         correctly calculated.
10059 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
10061         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10062         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
10063         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10064         is deprecated.
10066 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
10068         * font.c (font_put_frame_data): Use xfree instead of free.
10070 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
10072         * w32font.c (Qja, Qko): Remove declarations.
10073         (syms_of_w32font): Don't DEFSYM them.
10075 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
10077         * font.c (Qja, Qko): Move definitions here from ftfont.c.
10079         * font.h (Qja, Qko): Extern them.
10081         * ftfont.c (Qja, Qko): Remove declarations.
10083         * xfont.c (Qja, Qko): Remove declarations.
10085 2009-04-17  Kenichi Handa  <handa@m17n.org>
10087         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10088         string from a vector to handle Latin-1 characters correctly.
10090         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10091         entity even if the cache hits.
10093 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
10095         * search.c (boyer_moore): Use zero as marker value for a possible
10096         match instead of depending on overflow behavior.  (Bug#2844)
10098         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
10099         * lisp.h: Adjust prototypes.
10101 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
10103         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10104         change (Bug#3003).
10106 2009-04-16  Kenichi Handa  <handa@m17n.org>
10108         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
10110         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10111         adstyle.
10113         * ftfont.c (Qja, Qko): Don't make them static.
10114         (enum ftfont_cache_for): New enum.
10115         (fc_charset_table): Undo the previous change.
10116         (ftfont_get_latin1_charset): Delete it.
10117         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10118         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
10119         non-scarable font, try to get AVERAGE_WIDTH.
10120         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10121         Change ft_face_cache from a list of a hash-table.  Don't check
10122         `ja' and `ko' adstyle here.
10123         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10124         FTFONT_CACHE_FOR_CHARET.
10125         (ftfont_get_charset): Undo the previous change.
10126         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
10127         (ftfont_close): Likewise.
10128         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10130         * font.c (font_sort_entites): Change the meaning of the arg
10131         BEST-ONLY.  Don't optimize for VEC of lenght 1.
10132         (font_select_entity): Just return the value of font_sort_entites.
10134         * xfaces.c (merge_face_vectors): Reflect font properties in
10135         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
10136         font_clear_prop if a face attribute doesn't change.
10138         * charset.h (charset_ksc5601): Extern it.
10140         * charset.c (charset_ksc5601): New variable.
10141         (Fdefine_charset_internal): Set charset_ksc5601.
10142         (init_charset_once): Initialize charset_ksc5601 to -1.
10144 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
10146         * fileio.c (history_delete_duplicates): Remove unused declaration.
10148         * callint.c (history_delete_duplicates): New declaration.
10149         (Fcall_interactively): Remove command history duplicates when
10150         history_delete_duplicates is true.
10152 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
10154         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10156 2009-04-14  Kenichi Handa  <handa@m17n.org>
10158         * font.c (Ffont_info): Fix docstring.  Fix the second element of
10159         the returned value (bug#2949).
10161 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
10163         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10165 2009-04-14  Kenichi Handa  <handa@m17n.org>
10167         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10168         encoding charset is ascii_compatible.
10170         * charset.c (Fdefine_charset_internal): Make charset
10171         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10172         code_offset is 0, and covers all ASCII characters.
10174 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10176         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10177         (ns_string_to_pasteboard_internal):
10178         * nsmenu.m (process_dialog):
10179         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10180         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10181         * lisp.h (Fx_load_color_file): Declare.
10183 2009-04-13  Kenichi Handa  <handa@m17n.org>
10185         * font.c (font_delete_unmatched): Preserve the order of list elements.
10186         (font_select_entity): Suppress the code to optimize for the same
10187         kind of fonts.
10188         (font_load_for_lface): Get a font that supports at least ASCII
10189         characters.
10191         * ftfont.c (Qja, Qko): New variables.
10192         (fc_charset_table): Delete uniquifier data for iso8859-1.
10193         (ftfont_get_latin1_charset): New function.
10194         (get_adstyle_property): New function.
10195         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10196         bitmap fonts.
10197         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10198         Delete iso-8859-1 range from the charset of fonts whose adstyle is
10199         `ko' or `ja'.
10200         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
10201         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
10202         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10203         property.
10204         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10205         (syms_of_ftfont): DEFSYM Qja and Qko.
10207 2009-04-09  Kenichi Handa  <handa@m17n.org>
10209         * charset.c (map_charset_chars): For a charset of `superset'
10210         method, fix calculation of code range.
10212         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10213         from the list of extra properties.
10214         (font_clear_prop): Be sure to delete `:name' font property.
10216 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10218         * dispnew.c (redraw_overlapping_rows): Fix detection of
10219         overlapping for topmost and bottommost rows.
10221         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
10223 2009-04-06  Jason Rumney  <jasonr@gnu.org>
10225         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10227 2009-04-06  Kenichi Handa  <handa@m17n.org>
10229         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10231         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10233 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10235         * ftfont.c (ftfont_open): Fix checking of the return value of
10236         FT_Load_Char.  Fix setting font->underline_thickness.
10238 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
10240         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10241         (Fterminal_parameters, Fterminal_parameter)
10242         (Fset_terminal_parameter): In doc string, refer to terminal
10243         objects rather than terminal ids.
10245 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
10247         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10248         ret_lim_data.  (Bug#2867)
10250 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
10252         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10253         so they don't get wider than the window, matching 2006-01-23
10254         change to the partner function in xdisp.c (Bug#2800).
10256 2009-04-03  Kenichi Handa  <handa@m17n.org>
10258         * print.c (print_object): Make each lowest sub_char_table start a
10259         new line (Bug#2866).
10261 2009-04-02  Kenichi Handa  <handa@m17n.org>
10263         * fontset.c (fontset_font): Record no-font when a fontset
10264         explicitly tells not to try another font-specs.
10266 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
10268         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10270 2009-03-30  Kenichi Handa  <handa@m17n.org>
10272         * fontset.c (fontset_from_font): Specify only registry in a
10273         font-spec for all characters supported by that registry.
10275         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
10276         even if HAVE_M17N_FLT is not defined.
10278 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
10280         * ftfont.c: Conditionalize prototyping and use of
10281         ftfont_variation_glyphs.
10283 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
10285         * frame.c (delete_frame): Work around compiler bug.
10287         * editfns.c (general_insert_function): Adjust to insdel.c changes.
10288         * insdel.c (prepare_to_modify_buffer, signal_before_change):
10289         Some more EMACS_INT.
10290         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10292         * xdisp.c (dump_glyph): Fix typo.
10294         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10295         (adjust_markers_gap_motion, adjust_markers_for_delete)
10296         (adjust_markers_for_insert, adjust_point)
10297         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10298         (make_gap, copy_text, count_size_as_multibyte, insert)
10299         (insert_and_inherit, insert_before_markers)
10300         (insert_before_markers_and_inherit, insert_1)
10301         (count_combining_before, count_combining_after, insert_1_both)
10302         (insert_from_string, insert_from_string_before_markers)
10303         (insert_from_string_1, insert_from_gap, insert_from_buffer)
10304         (insert_from_buffer_1, adjust_after_replace)
10305         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10306         (replace_range_2, del_range, del_range_1, del_range_byte)
10307         (del_range_both, del_range_2, modify_region)
10308         (prepare_to_modify_buffer, signal_before_change)
10309         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10310         for buffer positions and sizes.
10311         * lisp.h: Adjust prototypes accordingly.
10313         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10314         (non_regular_inserted, non_regular_nbytes, read_non_regular)
10315         (Finsert_file_contents): Use EMACS_INT for buffer positions.
10317         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10319 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
10321         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10322         lines and columns so we keep the same pixel height and width.
10324         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10325         the property _NET_WM_STATE has changed.
10326         (x_handle_net_wm_state): New function to update frame parameter
10327         fullscreen.
10328         (x_term_init): Initialize atoms for _NET_WM_STATE.
10330         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10332 2009-03-27  Kevin Ryde  <user42@zip.com.au>
10334         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10335         Gpm_GetEvent as an error that justifies closing the filedescriptor.
10336         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10337         (Fgpm_mouse_stop): Pass that new parameter.
10338         * termhooks.h (close_gpm): Adjust prototype.
10340 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
10342         * lisp.h (Fx_focus_frame): Declare.
10344         * callint.c (Fcall_interactively): For '^' just delegate the work to
10345         handle-shift-selection.
10346         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10348 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
10350         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10352         * data.c (Qinteractive_form): New variable.
10353         (Finteractive_form): Use it.
10355         * eval.c (Fcommandp): Use Qinteractive_form.
10357 2009-03-24  Jason Rumney  <jasonr@gnu.org>
10359         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10360         Calculate total size precisely.  Decode environment variables
10361         before substituting.  (Bug#38)
10363 2009-03-24  Kenichi Handa  <handa@m17n.org>
10365         * font.c (find_font_encoding): Return Qnil for unsupported
10366         encoding (Bug#2722).
10368 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
10370         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10371         that gdpy is set.
10373 2009-03-22  Alan Mackenzie  <acm@muc.de>
10375         * callint.c (Finteractive): Clarify the doc string - even
10376         promptless elements need \n separators.
10378 2009-03-22  Jason Rumney  <jasonr@gnu.org>
10380         * w32term.c (syms_of_w32term): Doc fix for
10381         x-use-underline-position-properties.
10383 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
10385         * w32.c (getpwuid): Change argument type to unsigned.
10386         (struct w32_id): Change type of `rid' member to unsigned.
10387         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10388         argument ID to unsigned.  All callers changed.
10389         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10391 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
10393         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10394         negative, produce a float value.
10396         * dired.c (make_uid, make_gid): New functions.
10397         (Ffile_attributes): Use them to avoid negative UID and GID.
10399 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
10401         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10402         (syms_of_keyboard) <command-hook-internal, input-method-function>:
10403         Fix typos in docstrings.
10405 2009-03-19  Kenichi Handa  <handa@m17n.org>
10407         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
10408         changed, use font_load_for_lface to get a new font object.
10409         Call free_realized_fontset after handling ASCII font change.
10411         * frame.c (x_set_font): Handle the case that ARG is a cons.
10413 2009-03-19  Glenn Morris  <rgm@gnu.org>
10415         * fileio.c (Fsubstitute_in_file_name): Doc fix.
10417 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
10419         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10421 2009-03-19  Kenichi Handa  <handa@m17n.org>
10423         * charset.c (load_charset_map_from_file): When a mapfile can't be
10424         loaded, signal an error.
10426 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
10428         * dired.c (Ffile_attributes): Make sure UID and GID are always
10429         positive, even if the value is too large for a positive EMACS_INT.
10430         Doc fix.
10432         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
10434 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10436         * xmenu.c (xdialog_show): Move Fredisplay call ...
10437         (Fx_popup_dialog): ... here.
10439 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
10441         * dired.c (file_name_completion): Disable the first optimization just
10442         installed, since it is not implemented correctly.
10444 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
10446         * dired.c (file_name_completion): Check completion-ignored-extensions
10447         only if the entry can affect bestmatch.
10448         Stop the search early, as Ftry_completion already does.
10450 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
10452         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10454 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
10456         * keyboard.c (parse_menu_item): Don't display remappings as menu
10457         equivalent bindings (Bug#788).
10459 2009-03-15  Jason Rumney  <jasonr@gnu.org>
10461         * w32term.h (WM_EMACS_PAINT): New message.
10462         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10463         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10464         before passing to lisp thread.  (Bug#950)
10466 2009-03-14  David Reitter  <david.reitter@gmail.com>
10468         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10469         variable as it was never reset.
10470         (ns_term_init): Remove initialization of Lisp-settable defaults
10471         and ns_expand_space.
10472         (-setPanelFromDefaultValues): Remove ns_expand_space.
10473         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10474         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10475         i.e. no additional spacing, similar to Carbon port.
10477         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10478         * nsfns.m (ns-popup-prefs-panel): Remove.
10480 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
10482         * sound.c (alsa_configure): Remove call to deprecated
10483         snd_pcm_sw_params_set_xfer_align.
10485 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
10487         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10488         after clicking in a detached tool bar.
10489         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10491 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10493         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10494         int/Lisp_Object mixup).
10496 2009-03-13  Kenichi Handa  <handa@m17n.org>
10498         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10499         Handle NAME nil and t correctly.  Callers changed.
10500         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10501         (set_fontset_font): Change ARG to a vector.  Handle range_list in
10502         ARG correctly.
10503         (Fset_fontset_font): Fix the case that TARGET is both a script
10504         name and charset name.  Adjust the arg to set_fontset_font for
10505         the above change.
10506         (fontset_from_font): Fix previous change.
10507         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10508         entry.  If FONTSET is the default fontset, don't set the extra
10509         slot of the returning char-table.
10511 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
10513         * nsfns.m (Fx_close_connection): Doc fix.
10514         (Fns_do_applescript): Reflow docstring.
10515         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10516         (Fx_display_pixel_width, Fx_display_pixel_height)
10517         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10518         Fix typos in docstrings.
10519         (Fns_set_alpha): Fix typos in error messages.
10521 2009-03-12  David Reitter  <david.reitter@gmail.com>
10523         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10524         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
10525         were used for such events.
10527         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10528         (toggleToolbar, performDragOperation, runHelp): Use it.
10530         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10531         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10533 2009-03-11  Kenichi Handa  <handa@m17n.org>
10535         * font.h (font_open_by_spec): Extern it.
10537         * font.c (font_open_by_spec): New function.
10538         (font_open_by_name): Use font_open_by_spec.
10540         * frame.c (x_set_font): When ARG is a font-object, don't alter the
10541         fontset of the frame.
10543         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10544         modify the default font of frames that use this fontset.
10545         (num_auto_fontsets): New variable.
10546         (fontset_from_font): Use num_auto_fontsets to decide a fontset
10547         name.  Be sure to set FONTSET_ASCII to the correct font name.
10548         (update_auto_fontset_alist): New function.
10550 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
10552         * makefile.w32-in: Update dependencies.
10554 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
10556         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10558 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10560         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10562 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
10564         * lread.c (Feval_buffer): Doc fix.
10566 2009-03-09  Kenichi Handa  <handa@m17n.org>
10568         * charset.c (Qfile_name_handler_alist): Extern it.
10569         (load_charset_map_from_file): Temporarily bind
10570         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
10572 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
10574         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10575         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
10577 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
10579         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10580         (x_set_window_size): Change back to calculated method of setting
10581         toolbar height under Cocoa.  (Bug#2546)
10582         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10583         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10585         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10587         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10588         accelerator in parens under GNUstep.
10590 2009-03-06  Kenichi Handa  <handa@m17n.org>
10592         These changes are to detect incorrect composition sequence without
10593         looking ahead the source.  (Bug#2370)
10595         * coding.h: Include "composite.h".
10596         (enum compisition_state): New enum.
10597         (struct compisition_status): New struct.
10598         (struct iso_2022_spec): New member cmp_status.
10599         (struct emacs_mule_spec): New struct.
10600         (struct coding_system): New members ctext_extended_segment_len and
10601         embedded_utf_8.  Change the union member
10602         spec.emacs_mule_full_support to spec.emacs_mule.
10604         * coding.c (CODING_ISO_CMP_STATUS): New macro.
10605         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10606         (MAX_ANNOTATION_LENGTH): Define to 5.
10607         (ADD_COMPOSITION_DATA): New arg nbytes.
10608         (emacs_mule_char): New arg cmp_status.
10609         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10610         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10611         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10612         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10613         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10614         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10615         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10616         (EMACS_MULE_COMPOSITION_END): New macro.
10617         (emacs_mule_finish_composition): New function.
10618         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10619         (decode_coding_emacs_mule): Avoid long looking ahead while
10620         handling composition.
10621         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10622         (ENCODE_COMPOSITION_RULE): New macro.
10623         (finish_composition): New function.
10624         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10625         (DECODE_COMPOSITION_START): New implementation.
10626         (DECODE_COMPOSITION_END): Likewise.
10627         (STORE_COMPOSITION_RULE): New macro.
10628         (decode_coding_iso_2022): Avoid long looking ahead while handling
10629         composition, CTEXT extended segment, and embedded UTF-8.
10630         (setup_coding_system): For a coding of type iso-2022, reset
10631         CODING_ISO_EXTSEGMENT_LEN (coding) and
10632         CODING_ISO_EMBEDDED_UTF_8 (coding).
10633         (get_translation): Delete arguments last_block, from_nchars,
10634         to_nchars.  Callers changed.
10635         (produce_chars): Don't modify charbuf.  Adjusted for the change of
10636         get_translation.
10637         (produce_composition): Adjust for the new annotation sequence.
10638         (handle_composition_annotation): Likewise.
10639         (consume_chars): Adjust for the change of get_translation.
10641 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
10643         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
10645 2009-03-05  Kenichi Handa  <handa@m17n.org>
10647         * font.c (font_select_entity): New function.
10648         (font_find_for_lface): Use font_select_entity to select a font.
10650         * fontset.c (fontset_find_font): If a font found without
10651         restricting to the characters C doesn't support C, try to find a
10652         font with C restriction.
10654 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
10656         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10658 2009-03-04  Jason Rumney  <jasonr@gnu.org>
10660         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10661         characters that have already been read.  (Bug#2569)
10663         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10664         Log an error message if check_image_size failed.
10665         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10666         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
10668 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
10670         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10671         when decoding process output.
10673 2009-03-01  Richard M Stallman  <rms@gnu.org>
10675         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10677         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10679 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
10681         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10682         (decode_coding_emacs_mule, decode_coding_iso_2022)
10683         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10684         (decode_coding_raw_text, decode_coding_charset)
10685         (setup_coding_system, decode_eol, decode_coding, consume_chars):
10686         Honor inhibit-eol-conversion.  (Bug #2186)
10688 2009-02-28  Jason Rumney  <jasonr@gnu.org>
10690         * coding.c (detect_coding_charset): If not checking latin extra,
10691         fail on characters between 0x80 and 0xA0.  (Bug#2354)
10693 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
10695         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10696         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
10698 2009-02-27  Glenn Morris  <rgm@gnu.org>
10700         * callint.c (Finteractive): Doc fix.
10702 2009-02-27  Kenichi Handa  <handa@m17n.org>
10704         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10706 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
10708         * font.c (font_style_to_value): Set value for unknown symbols to
10709         100 instead of 255.
10710         (weight_table, slant_table, width_table): Treat "unspecified" as
10711         the default value.
10713 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
10715         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10717 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
10719         * lread.c (Fload): Stop checking Vloads_in_progress and signal
10720         error as soon as a recursive load is detected.
10722 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
10724         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10725         before caching.
10727 2009-02-24  Kenichi Handa  <handa@m17n.org>
10729         * fontset.c (fontset_find_font): Fix the condition for checking
10730         unavailable font.
10732 2009-02-24  Glenn Morris  <rgm@gnu.org>
10734         * xfaces.c (Finternal_set_font_selection_order): Remove leading
10735         whitespace that confuses documentation.
10737 2009-02-23  Miles Bader  <miles@gnu.org>
10739         * process.c (Flist_system_processes, Fprocess_attributes)
10740         (syms_of_process): Rename `system-process-attributes' to
10741         `process-attributes'.
10743 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
10745         * coding.h (struct coding_system): Make safe_charsets a pointer to
10746         unsigned char.
10747         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10748         being 255.
10749         (SAFE_CHARSET_P): Likewise.
10750         (setup_iso_safe_charsets): Properly setup safe_charsets.
10751         (Fdefine_coding_system_internal): Likewise.
10752         (setup_coding_system): Likewise.  Remove unneeded casts.
10753         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10754         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.  Remove
10755         unneeded casts.
10757         * insdel.c (del_range_2): Don't modify gap contents when called
10758         from decode_coding_object.  (Bug#1809)
10760 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
10762         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10763         Qfont_object.
10764         (Ftype_of): Recognize font objects.
10766         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10768         * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10769         moved to data.c.
10771 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
10773         * nsterm.m (x_make_frame_invisible): Unset async_visible,
10774         async_iconified.  Based on a patch by Christian Lynbech
10775         <christian.lynbech@tieto.com>.
10776         (EmacsView-windowDidMiniaturize:): Unset async_visible.
10778 2009-02-20  Glenn Morris  <rgm@gnu.org>
10780         * syntax.c (Fskip_chars_forward): Fix doc typo.
10782 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
10784         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10786 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
10788         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10790 2009-02-19  Kenichi Handa  <handa@m17n.org>
10792         * coding.c (detect_coding): Preserve coding->mode.
10793         Don't overflow coding->carryover.  (Bug#2370)
10795 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
10797         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10799 2009-02-18  Kenichi Handa  <handa@m17n.org>
10801         * font.c (font_check_otf_features): Fix handling of `nil' element.
10802         (Ffont_spec): Describe :lang and :otf in the docstring.
10804 2009-02-16  Andreas Schwab  <schwab@suse.de>
10806         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10807         string.
10809 2009-02-16  Kenichi Handa  <handa@m17n.org>
10811         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
10812         (Bug#1723)
10814 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
10816         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
10818         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10819         (handle_line_prefix): Suppress wrapping of wrap prefixes.
10821 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
10823         * msdos.c (MAX_SCREEN_BUF): New macro.
10824         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10825         Encode the entire run of glyphs sharing the same face, instead of
10826         doing that one glyph at a time (fixes a bug with displaying
10827         double-size characters).
10829 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
10831         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10833         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10834         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
10835         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
10837         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
10838         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
10840 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10842         * keyboard.c (adjust_point_for_property): Allow stopping between two
10843         invisible areas.
10845 2009-02-12  Jason Rumney  <jasonr@gnu.org>
10847         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
10848         (add_font_entity_to_list): Call check_face_name even when family
10849         is unspecified.
10851         * w32term.c (x_display_pixel_height, x_display_pixel_width):
10852         Release DC when finished.  Use NULL window to refer to desktop.
10853         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
10855         * w32font.c (add_font_entity_to_list): Fix check for substituted
10856         raster fonts.  (Bug#2219)
10858 2009-02-12  Kenichi Handa  <handa@m17n.org>
10860         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10861         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10862         (autocmp_chars): Use fast_looking_at.  Don't compose more
10863         characters than MAX_COMPOSITION_COMPONENTS.
10864         (find_automatic_composition): While looking forward and backward,
10865         check static composition.  Fix where to stop looking forward.
10866         (composition_adjust_point): Fix checking of static composition.
10867         (Fcomposition_get_gstring): Pay attention to
10868         MAX_COMPOSITION_COMPONENTS.
10870         * lisp.h (fast_looking_at): Extern it.
10872         * search.c (fast_looking_at): New function.
10874         * term.c (encode_terminal_code): Adjust for the change of
10875         <struct glyph>.u.cmp.to.
10876         (append_composite_glyph): Likewise.
10878         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
10879         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
10880         composition.
10881         (append_composite_glyph): Adjust for the change of
10882         <strcut glyph>.u.cmp.to.
10884 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
10886         * casetab.c (init_casetab_once):
10887         * coding.c (ALLOC_CONVERSION_WORK_AREA):
10888         * font.c (font_update_lface):
10889         * fontset.c (Fnew_fontset):
10890         * ftfont.c (ftfont_drive_otf):
10891         * xfont.c (xfont_open):
10892         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10894 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10896         * fileio.c (Fwrite_region): !NILP -> CONSP.
10898 2009-02-10  Andreas Schwab  <schwab@suse.de>
10900         * process.c (send_process): Properly relocate pointer into data
10901         when using encoded data.  (Bug#2272)
10903 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
10905         * coding.c (detect_coding_charset): Fix previous change.
10907 2009-02-08  Jason Rumney  <jasonr@gnu.org>
10909         * w32fns.c (w32_hide_hourglass): Handle case where frame
10910         disappeared while hourglass was displayed.  (Bug #2193)
10912 2009-02-07  Andreas Schwab  <schwab@suse.de>
10914         * unexelf.c (unexec): Fix error message.
10916 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
10918         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
10919         when modal window is active.  (Bug #2152)
10920         (applicationShouldTerminate:): Remove now-unneeded while loop
10921         around NSRunAlertPanel.
10923         * nsmenu.m (popupSession): New file-global variable.
10924         (pop_down_menu): End the popupSession before closing dialog.
10925         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10926         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10927         don't query NSApp for events (just sleep instead).
10929 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
10931         * coding.c (syms_of_coding) <translation-table-for-input>:
10932         Modify doc string to discourage use for character code unification.
10934 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10936         * atimer.c (run_timers): Update pending_atimers.
10938 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
10940         * image.c (svg_load_image): Fix last change.
10942         * xfns.c (Fx_create_frame): Signal an error if no font is
10943         found (Bug#2147).
10945 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
10947         * character.c (syms_of_character) <script-representative-chars>:
10948         Fix typo in docstring.
10950 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
10952         * nsmenu.m (pop_down_menu): New function.
10953         (ns_popup_dialog): Call it on unwind.
10954         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10955         call timer_check() (Bug#2154).
10956         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10957         handling_signal is set.
10958         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10960         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
10962         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10964         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10966         * keyboard.c (poll_for_input_1, handle_async_input):
10967         Set handling_signal under HAVE_NS.
10969 2009-02-04  Glenn Morris  <rgm@gnu.org>
10971         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10973 2009-02-04  Kenichi Handa  <handa@m17n.org>
10975         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10977         * charset.c (Fchar_charset): New optional arg restriction.
10979         * coding.h (coding_system_charset_list): Extern it.
10981         * coding.c (coding_system_charset_list): New function.
10983         * composite.c: Include coding.h and termhooks.h.
10984         (composition_gstring_p): Fix for the terminal case.
10985         (composition_gstring_width): Likewise.
10986         (fill_gstring_body): Likewise.
10987         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10988         the frame.
10989         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10990         is within a composition.
10991         (Fcomposition_get_gstring): Fix the terminal case.
10993         * term.c (encode_terminal_code): Fix handling of composition.
10994         (produce_composite_glyph): For static composition, get pixel_width
10995         from struct composition.
10997 2009-02-02  Andreas Schwab  <schwab@suse.de>
10999         * unexelf.c (unexec): Handle unaligned bss offset.
11001 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
11003         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11004         XT,w32read_socket changes to ns_read_socket.
11006         * keyboard.c (handle_interrupt): Don't call
11007         quit_throw_to_read_char() under NS.
11009         * blockinput.h: Remove NS-specific code.
11011 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
11013         * dispnew.c (window_change_signal): Don't try to get the size of a
11014         suspended tty frame.
11015         * term.c (Fresume_tty): Resize if the size has changed while the
11016         tty was suspended.
11018         * alloc.c (mark_stack): Properly conditionalize previous change.
11020 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
11022         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11023         * w32term.c (w32_read_socket) [SYNC_INPUT]:
11024         Remove; this code is not used on Windows.
11026 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
11028         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11029         EOLs that also has stray ^M characters.
11031 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
11033         * atimer.c (run_timers, alarm_signal_handler):
11034         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11035         * w32inevt.c (w32_console_read_socket):
11036         * w32term.c (w32_read_socket):
11037         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11039 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
11041         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11042         Initialize it as a relative filename pattern.
11043         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11044         (Fcall_process_region): Simplify temp file creation using
11045         temporary-file-directory.
11047 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
11049         * msdos.c: Rename pending_signals to msdos_pending_signals.
11050         (sig_suspender, sigprocmask): Adjust.
11052 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
11054         * keyboard.c (pending_signals): New var.
11055         (poll_for_input, input_available_signal, init_keyboard): Set it.
11056         (process_pending_signals): New function.
11058         * lisp.h (QUIT): Check pending_signals instead of
11059         interrupt_input_pending.  Use process_pending_signals.
11061         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
11063         * process.c (wait_reading_process_output): Use process_pending_signals.
11065         * sysdep.c (emacs_write): Use process_pending_signals.
11067         * xterm.c (XTread_socket): Update pending_signals.
11069         * w32term.c (w32_read_socket): Update pending_signals.
11071         * w32inevt.c (w32_console_read_socket): Update pending_signals.
11073 2009-01-29  Kenichi Handa  <handa@m17n.org>
11075         * xftfont.c (xftfont_has_char): New function.
11076         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11078 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
11080         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11081         under GNUstep.
11082         (ns_query_color): New declaration.
11084         * nsterm.m (ns_confirm_quit): New variable.
11085         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11086         (EmacsApp-applicationShouldTerminate:): Use it.
11087         (EmacsPrefsController): Let user set it.
11088         (ns_query_color): New function.
11089         (ns_defined_color): Use it.
11090         (ns_initialize): Drop.
11091         (ns_term_init): Add two lines from ns_initialize(), and set
11092         input_interrupt_mode to nil.
11094         * image.c (svg_load_image): Don't right-shift background RGB when
11095         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
11097 2009-01-28  Kenichi Handa  <handa@m17n.org>
11099         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11100         (fontset_get_font_group): Remember that no font-group is specified
11101         for C.
11103 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
11105         * fns.c (concat): Check for string overflow (bug#1787).
11107         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11108         Quadruple undo limits (bug#1501).
11110 2009-01-27  Kenichi Handa  <handa@m17n.org>
11112         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11113         directly use GT_Get_Char_index.
11115         * xftfont.c (struct xftfont_info): New member `index'.
11117         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11118         (Ffontset_font): Adjust for the change of fontset entry.
11120 2009-01-26  Kenichi Handa  <handa@m17n.org>
11122         * fontset.c (fontset_find_font): Fix handling of non-cons return
11123         value of fontset_get_font_group.
11124         (fontset_font): Revert last change.
11126 2009-01-26  Jason Rumney  <jasonr@gnu.org>
11128         * w32font.c (w32font_list_internal): Return quickly if registry is
11129         unknown.  Simplify final return.
11130         (add_font_entity_to_list): Break complex logic down into more
11131         manageable chunks.  Move unknown registry check to
11132         w32font_list_internal.
11134 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
11136         Changes to remove Feval calls from GUI under NS.
11138         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11139         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
11140         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11142         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11143         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11144         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11145         instead of NON_ASCII_KEYSTROKE_EVENT.
11146         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11147         (EmacsApp-applicationShouldTerminate:): Query user.
11148         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11149         instead of Feval.
11151         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11153         * keyboard.c (kbd_buffer_get_event): Check for it.
11154         (keys_of_keyboard): Define lispy keys for
11155         ns-put/unput-working-text.
11157         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11158         versions.
11159         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11161 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
11163         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
11164         setting current_buffer directly.  (Bug#2044)
11166 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
11168         * fontset.c (fontset_font): If we know there is no font, don't do
11169         any work.  (Bug#1952, bug#1990).
11171         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
11173 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
11175         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
11176         (ns_no_defaults): New declaration.
11177         (main): Use it.
11179         * nsterm.h (ns_no_defaults): New declaration.
11181         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
11183         * nsterm.m (ns_no_defaults): New variable.
11184         (ns_initialize): Don't read defaults when ns_no_defaults.
11185         (EmacsView-readSelectionFromPasteboard:)
11186         (writeSelectionToPasteboard:types:): New stubbed-out methods for
11187         NSServicesRequests protocol.  (Bug#1435)
11188         (ns_dumpglyphs_stretch): New function.
11189         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
11190         of 2008-11-15 to other terms.  (Bug#615)
11192         * nsimage.m (setPixmapData:): Set to ignore image DPI.
11194 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
11196         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11197         call for Sparc64.
11199 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
11201         * nsfns.m:
11202         * nsgui.h:
11203         * nsmenu.m:
11204         * nsselect.m:
11205         * nsterm.h:
11206         * nsterm.m: Remove '23' comments that indicated code added during
11207         update from emacs-20 -> emacs-23.
11209 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
11211         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
11212         ns_alternate_modifier.  (Bug#1217)
11214         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11215         Display all shortcuts, including those w/o super modifier.
11217         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11219 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
11221         * fileio.c (Vwrite_region_post_annotation_function)
11222         (Vwrite_region_annotation_buffers): New vars.
11223         (build_annotations_unwind): Just reset
11224         Vwrite_region_annotation_buffers.
11225         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11226         Call write-region-post-annotation-function.
11227         (build_annotations): Add to Vwrite_region_annotation_buffers if
11228         buffer changes.
11230 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
11232         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11233         Tiger.
11234         * nsfns.m (ns_do_applescript):
11235         Conditionalize typeUTF16ExternalRepresentation on Tiger.
11237 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
11239         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11241 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
11243         * nsmenu.m (NSMENUPROFILE): Change #if style.
11245         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11247         * nsterm.m (x_set_frame_alpha): Add prototype.
11248         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11249         handle Ctrl-tab.  (Bug#1841)
11250         (ns_get_color): Use unsigned long long for scanned hex string value.
11251         (ns_term_shutdown): Abort on non SIGTERM signals.
11252         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
11253         (EmacsPrefsController-setPanelFromDefaultValues): New function.
11254         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
11255         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
11256         (ns_defined_color): Fix settings of the XColor variable fields:
11257         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
11259         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
11260         DPI.  (Bug#1316)
11261         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11262         values in onTiger section.
11264 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
11266         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11267         Check return value of font_spec_from_name.
11268         (Fx_list_fonts): Doc fix.  (Bug#1951)
11270         * font.c (font_spec_from_name): Return Qnil if font name could not
11271         be parsed.
11272         (font_parse_name): Treat a `?' character as part of an XLFD.
11274         * fns.c (Fsubstring): Doc fix.
11276 2009-01-19  Kenichi Handa  <handa@m17n.org>
11278         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
11279         (ftfont_list): Likewise.
11281 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
11283         * dbusbind.c (Fdbus_register_signal):
11284         * process.c (conv_sockaddr_to_lisp):
11285         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11287         * callproc.c (Fgetenv_internal): Doc fix.
11289 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
11291         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11292         it is not even used.
11294 2009-01-16  Glenn Morris  <rgm@gnu.org>
11296         * font.c (Ffont_variation_glyphs): Silence compiler.
11298 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
11300         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11301         Reported by David Robinow <drobinow@gmail.com>.
11303 2009-01-15  Kenichi Handa  <handa@m17n.org>
11305         * coding.c (detect_coding_system): Fix handling of null_byte_found.
11307 2009-01-14  Jason Rumney  <jasonr@gnu.org>
11309         * frame.c (x_set_font): Always store a font to the font parameter,
11310         never a fontset.  (Bug#1562)
11312 2009-01-14  Kenichi Handa  <handa@m17n.org>
11314         * coding.c (TWO_MORE_BYTES): New macro.
11315         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
11317 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
11319         * font.c (font_clear_prop): If clearing the family, clear the font
11320         width index too.
11322         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
11324 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
11326         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11327         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
11328         functions, use sizeof.
11330 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
11332         * keyboard.c (read_char): Fix case where last_nonmenu_event
11333         returned a bad value with submenus.  (Bug#447)
11335 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
11337         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11338         family, clear the font width index too.
11340 2009-01-11  Jason Rumney  <jasonr@gnu.org>
11342         * keyboard.c (cmd_error_internal): Exit when errors occur before
11343         frame creation and not in daemon mode.  (Bug#1836)
11345 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
11347         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11348         of a display vector, backtrack.
11349         (try_window_reusing_current_matrix): Check glyph type before
11350         referencing charpos member.
11352 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
11354         Fix Bug #876:
11356         * coding.c (inhibit_null_byte_detection): New variable.
11357         (detect_coding, detect_coding_system): Don't pay attention to null
11358         bytes if inhibit_null_byte_detection is non-zero.
11359         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
11360         <inhibit-iso-escape-detection>: Doc fix.
11362 2009-01-09  Jason Rumney  <jasonr@gnu.org>
11364         * w32font.c (add_font_entity_to_list): Don't report unknown
11365         Windows charset as any unrecognized registry.  (Bug#1548)
11366         Only report Unicode Plane 2 fonts as unicode-sip.
11368 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
11370         * xfaces.c (Fx_font_family_list): Delete function.
11371         Move compatibility version to faces.el.
11373         * font.c (Ffont_family_list): Return a list of strings, not symbols.
11375 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
11377         * frame.c (x_set_frame_parameters): Remember requested value for
11378         fullscreen before it's reset by the parameter handler.
11380 2009-01-09  Glenn Morris  <rgm@gnu.org>
11382         * keyboard.c (last_command_char): For clarity, rename to...
11383         (last_command_event): ... and update all users.
11384         (last_input_char): For clarity, rename to...
11385         (last_input_event): ... and update all users.
11386         (last-command-char, last-input-char): Move to subr.el as aliases.
11387         * cmds.c, commands.h: Update for last_command_char rename.
11389 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
11391         * font.c (font_open_for_lface): Handle unspecified height attribute.
11393 2009-01-08  Jason Rumney  <jasonr@gnu.org>
11395         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11396         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11397         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11398         Don't declare.
11399         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
11400         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11402 2009-01-07  Kenichi Handa  <handa@m17n.org>
11404         * fileio.c (Finsert_file_contents): In the case of replace,
11405         remember the coding system used for decoding in
11406         coding_system (Bug#1039).
11408         * coding.c (decode_coding_utf_8): Check byte_after_cr before
11409         breaking the loop.  (Bug#870)
11410         (decode_coding_utf_16, decode_coding_emacs_mule)
11411         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11412         (decode_coding_charset): Likewise.
11414 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
11416         * frame.c (x_set_frame_parameters): Make sure height (width) get
11417         applied when fullwidth (fullheight) is set.  (Bug#1522)
11419 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
11421         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
11422         (utc_base): Declare as ULONGLONG, not long double.
11423         (convert_time_raw): Delete.
11424         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11425         (initialize_utc_base): New function.
11426         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11427         (convert_from_time_t): Use initialize_utc_base; compute result with
11428         64-bit arithmetic.
11429         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11431 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
11433         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
11434         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11435         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11436         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11437         [!subprocesses]: Define.
11438         (syms_of_process) [!subprocesses]: Intern and staticpro them.
11439         (Flist_system_processes, Fsystem_process_attributes)
11440         [!subprocesses]: Call list_system_processes and
11441         system_process_attributes instead of returning Qnil.
11443         * dosfns.c (system_process_attributes, list_system_processes):
11444         New functions.
11446         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11448         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11449         Don't use the default (no-op) implementation.
11451 2009-01-03  Jason Rumney  <jasonr@gnu.org>
11453         * keyboard.c (parse_modifiers_uncached): Wheel events are
11454         clicks (bug#687).
11456         * w32term.c (x_query_colors, x_query_color): New functions.
11458         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11459         (svg_load_image): Cast returned pointers from dynamically loaded
11460         functions.  Eliminate W32 specific code.
11462 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
11464         * nsfns.m (x_set_foreground_color, x_set_background_color)
11465         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11466         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11467         x_ prefix instead of ns_.  Update references.
11468         (syms_of_nsfns): Add a FIXME comment.
11470         * nsterm.m (x_set_cursor_type): New prototype.
11471         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11473         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11474         for Solaris instead of incorrectly providing Qutime and Qcutime.
11476 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
11478         * w32.c (process_times): Compute sum of utime and stime.
11479         (system_process_attributes): Add Qtime to the alist.
11481         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11482         and add them to the alist.
11484         * process.c (top level) <Qtime, Qctime>: New variables.
11485         (syms_of_process): staticpro them.
11486         (Fsystem_process_attributes): Add their documentation to the doc
11487         string.
11489         * process.h: Declare Qtime and Qctime.
11491 2009-01-02  Jason Rumney  <jasonr@gnu.org>
11493         * image.c (Qgobject): New symbol.
11494         (syms_of_image): Initialize it.
11495         (init_svg_functions): Load some functions from gobject library.
11497 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
11499         * frame.c (make_terminal_frame): Remove redundant code and useless
11500         block.
11502 2009-01-01  Andreas Schwab  <schwab@suse.de>
11504         * process.c (conv_sockaddr_to_lisp): Add workaround for
11505         getsockname bug on BSD.
11507 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
11509         * xfns.c (x_create_tip_frame): Set border width of the X window.
11511         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11513 2009-01-01  Jason Rumney  <jasonr@gnu.org>
11515         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
11516         Don't block input, as per earlier xterm.c changes.
11518 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
11520         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11521         (ns_appkit_version_int): New function.
11522         (x-server-version): Use ns_appkit_version_int and follow 21+
11523         convention of returning 3 integers.
11525 2008-12-30  Kenichi Handa  <handa@m17n.org>
11527         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11528         (CHAR_SURROGATE_PAIR_P): New macro.
11530         * font.h (struct font_driver): New member get_variation_glyphs.
11532         * font.c (font_range): Don't require a font for a variation selector.
11533         (Ffont_variation_glyphs): New function.
11534         (syms_of_font): Defsubr it.
11536         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11537         ftfont_variation_glyphs.
11538         (setup_otf_gstring): New function.
11539         (ftfont_drive_otf): Use it.
11540         (ftfont_shape_by_flt): Handle variation selector.
11541         (ftfont_variation_glyphs): New function.
11543 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
11545         * frame.c (Vemacs_iconified): Remove.
11547 2008-12-30  Jason Rumney  <jasonr@gnu.org>
11549         * frame.c (store_frame_param, x_get_arg): Enable newer code on
11550         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
11552 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
11554         * indent.c (Fvertical_motion): Don't advance iterator if we have
11555         reseated to the desired position.
11557         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11558         checking for pos match.
11560 2008-12-30  Kenichi Handa  <handa@m17n.org>
11562         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11563         just get the low 8-bit of the code.
11565         * font.c (font_intern_prop): Validate str as multibyte.
11567 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
11569         * dispextern.h (struct face): Move lface and hash from the middle
11570         of bitfields.
11572         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11574 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
11576         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11577         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11578         instead of intervals.h.
11580 2008-12-26  Andreas Schwab  <schwab@suse.de>
11582         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11583         cons.
11585 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
11587         * textprop.c (Qminibuffer_prompt): New variable.
11588         (syms_of_textprop): Initialize it.
11589         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11590         in minibuffer-prompt face.  (Bug#1662)
11592 2008-12-25  Jason Rumney  <jasonr@gnu.org>
11594         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11596 2008-12-24  Jason Rumney  <jasonr@gnu.org>
11598         * ralloc.c (r_alloc_reset_variable): New function.
11600         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11601         record of what points where.  (Bug#716)
11603 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
11605         * minibuf.c (read_minibuf): Follow the non-interactive case when
11606         running as a daemon, before detaching.
11608 2008-12-22  Andreas Schwab  <schwab@suse.de>
11610         * buffer.c (init_buffer): Use realloc instead of xrealloc.
11611         * gtkutil.c (free_widget_value): Use xfree instead of free.
11613 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
11615         * frame.c (delete_frame): New function derived from
11616         Fdelete_frame to handle Qnoelisp value for FORCE argument.
11617         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
11618         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
11619         saying that FORCE non-nil doesn't run `delete-frame-functions'.
11620         * frame.h: Extern delete_frame.
11621         * window.c (window_loop):
11622         * terminal.c (delete_terminal):
11623         * xterm.c (x_connection_closed):
11624         * xfns.c (Fx_hide_tip):
11625         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11627 2008-12-21  Jason Rumney  <jasonr@gnu.org>
11629         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11630         when character maps to .notdef character.
11632 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
11634         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11636 2008-12-20  Jason Rumney  <jasonr@gnu.org>
11638         * frame.c (Fmake_terminal_frame): Raise an error when called from
11639         a graphical frame on Windows.  (Bug#1325)
11641 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
11643         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11645 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
11647         * minibuf.c (Fread_buffer): Doc fix.
11649 2008-12-20  Jason Rumney  <jasonr@gnu.org>
11651         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11652         server name in UNC paths.  (Bug#719)
11654         * coding.c (decode_coding): Clear chars_at_source flag when using
11655         charbuf.  (Bug#1035)
11657 2008-12-19  Daniel Engeler  <engeler@gmail.com>
11659         * sysdep.c (serial_configure): Fix typo.
11661 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
11663         * sysdep.c: Include alloca.h.
11664         (system_process_attributes): Add implementation for Solaris.
11666         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11668 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
11670         Reorganize implementation of Flist_system_processes and
11671         Fsystem_process_attributes.  No functional changes.
11672         * process.c: Don't #include pwd.h, grp.h and limits.h.
11673         (Flist_system_processes): Just call list_system_processes.
11674         (Fsystem_process_attributes): Just call system_process_attributes.
11675         (procfs_list_system_processes, time_from_jiffies)
11676         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11677         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11679         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
11680         (list_system_processes): Rename from
11681         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
11682         Provide a do nothing implementation.
11683         (system_process_attributes): Rename from
11684         procfs_list_system_processes.
11685         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11686         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11688         * w32.c (list_system_processes): Rename from
11689         w32_list_system_processes.
11690         (system_process_attributes): Rename from
11691         w32_system_process_attributes.
11693         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11695         * process.h (w32_list_system_processes)
11696         (w32_system_process_attributes): Remove.
11697         (list_system_processes, system_process_attributes):
11698         New prototypes.
11700 2008-12-19  Kenichi Handa  <handa@m17n.org>
11702         * xfont.c (xfont_decode_coding_xlfd): New function.
11703         (xfont_encode_coding_xlfd): New function.
11704         (xfont_list_pattern): Decode XLFD by iso-8859-1.
11705         (xfont_list): Decode and encode XLFD by iso-8859-1.
11706         (xfont_match): Likewise.
11707         (xfont_list_family): Likewise.
11708         (xfont_open): Likewise.
11710         * ftfont.c (ftfont_open): Generate a multibyte string if given
11711         names are utf-8.
11713         * xftfont.c (xftfont_open): Generate a multibyte string if given
11714         names are utf-8.
11716 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
11718         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11719         changed.
11720         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11721         clicked on a detached tool bar button.
11723 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
11725         * emacs.c (main): Print and error and exit when no data is read
11726         from the pipe.
11728 2008-12-17  Jason Rumney  <jasonr@gnu.org>
11730         * w32font.c (w32font_has_char): Always return -1.
11732 2008-12-16  Kenichi Handa  <handa@m17n.org>
11734         * font.c (font_open_entity): Fix previous change.
11736 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
11738         * process.c: Include <limits.h>.
11740 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
11742         * font.c (font_update_drivers): Fix mistake in reconstructing the
11743         driver list.
11745 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
11747         * font.c (font_clear_cache): Fix format of font cache data.
11749 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
11751         * xftfont.c (xftfont_open): Free Xft font pattern if
11752         XftFontOpenPattern fails.
11754         * xterm.c (x_free_frame_resources): Remove extraneous call to
11755         free_frame_faces.
11757 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
11759         * xterm.c (x_delete_display): Move xim_close_dpy call to
11760         x_delete_terminal.
11761         (x_delete_terminal): Call xim_close_dpy.
11763 2008-12-13  Jason Rumney  <jasonr@gnu.org>
11765         * w32font.c (intern_font_name): New function.
11766         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11767         (w32font_open_internal, Fx_select_font): Decode font name.
11768         (fill_in_logfont, list_all_matching_fonts): Encode font name.
11770         * w32font.h (intern_font_name): Declare new function.
11772         * w32uniscribe.c (add_opentype_font_name_to_list):
11773         Use intern_font_name.
11775 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
11777         * frame.c (Fdelete_frame): Call free_font_driver_list.
11779         * font.c (free_font_driver_list): Implement missing function.
11781         * w32term.c (w32_term_init): Don't initialize the image cache
11782         here; it will be done in init_frame_faces.
11784         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11785         (struct x_display_info): Remove unused member null_pixel.  New
11786         member xim_callback_data.
11788         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11789         (xim_initialize): Save pointer to callback function data.
11790         (xim_close_dpy): Free callback function data.  Call XCloseIM,
11791         reverting 2008-11-04 change by David Smith.
11792         (x_term_init): Don't initialize the image cache here; it will be
11793         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
11794         (x_delete_display): Free x_dnd_atoms member.
11796 2008-12-13  Kenichi Handa  <handa@m17n.org>
11798         * font.c (font_rescale_ratio): Moved from xfaces.c.
11799         Argument type changed.  Handle a font-spec too.
11800         (font_score): Check Vface_font_rescale_alist.
11801         (font_open_entity): Likewise.  (Bug#1547)
11803         * xfaces.c (font_rescale_ratio): Moved to font.c.
11805 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
11807         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11809 2008-12-12  Jason Rumney  <jasonr@gnu.org>
11811         * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11812         Vwindow_system_version to the real w32 major version.
11814 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
11816         * term.c (init_tty): Move setting the terminal name before the
11817         potential user: maybe_fatal.
11819 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
11821         * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11822         all callers changed.  Call free_frame_faces to free the face cache.
11824 2008-12-11  Jason Rumney  <jasonr@gnu.org>
11826         * w32font.c (fill_in_logfont): Don't assume symbol script means
11827         SYMBOL_CHARSET.  (Bug#547)
11829         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
11830         size for surrogates.  (Bug#1096, bug#872)
11832 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
11834         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11836 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
11838         * process.c (Fsystem_process_attributes, syms_of_process):
11839         Fix typo in name of Ssystem_process_attributes.
11840         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11842 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
11844         * syntax.c (Fmodify_syntax_entry): Doc fix.
11846 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
11848         * font.c (Ffont_spec): Move usage to end of docstring.
11850 2008-12-10  Jason Rumney  <jasonr@gnu.org>
11852         * w32font.c (Qcham): New symbol.
11853         (font_supported_scripts): Add cham, and comments for other new
11854         scripts in bitfield from OpenType spec.
11855         (add_font_entity_to_list): Limit unicode-sip fonts to those that
11856         contain characters beyond the bmp.
11858 2008-12-10  Kenichi Handa  <handa@m17n.org>
11860         * ftfont.c (fc_charset_table): Add "unicode-sip".
11861         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
11862         Qunicode_sip.
11864 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
11866         * coding.c (QCdefault_char): Rename from QCdefalut_char.
11867         (Fcoding_system_put): Use QCdefault_char.
11868         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11870 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
11872         * xftfont.c (syms_of_xftfont): Fix typo.
11874         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
11876 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
11878         * emacs.c (main): Close daemon_pipe on exec.
11880 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
11882         * termchar.h (struct tty): New members termcap_term_buffer and
11883         termcap_strings_buffer.
11885         * term.c (encode_terminal_code): Free any previous memory blocks
11886         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
11887         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
11888         All callers changed.
11889         (init_tty): Store termcap data and string buffers in new struct
11890         tty members termcap_term_buffer and termcap_strings_buffer.
11891         (delete_tty): Free them.
11892         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
11894 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
11896         * nsfns.m (ns_set_background_color): Remove code duplication.
11897         It was a substitute for face-transparency on OS X 10.3.
11899 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
11901         * coding.c (make_conversion_work_buffer): Disable buffer
11902         modification hooks in the work buffer.
11904 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
11906         * process.c (procfs_system_process_attributes): If `nread' has a
11907         negative value, assign zero to it.
11909 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
11911         * eval.c (Vdebug_on_error): Doc fix.
11913 2008-12-05  Kenichi Handa  <handa@m17n.org>
11915         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11916         second character is a combining character.
11918 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
11920         * process.c (procfs_system_process_attributes): Don't use cmd,
11921         cmdsize, and q without initializing them first.
11923 2008-12-04  Jason Rumney  <jasonr@gnu.org>
11925         * w32font.c (w32font_draw): Initialize orig_clip before getting
11926         it, and delete it when finished.
11928 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
11930         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11931         case when running as a daemon before detaching.
11933 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
11935         * w32.c (init_environment): Don't unload library shell32.dll.
11937 2008-12-03  Kenichi Handa  <handa@m17n.org>
11939         * font.c (font_at): Set `multibyte' at first.
11941         * coding.c (decode_coding_charset): Check type of an element of
11942         vector VALIDS.
11943         (encode_coding_emacs_mule): Be sure to set `code'.
11945         * fontset.c (face_for_char): Handle invalid charset property correctly.
11946         (font_for_char): Likewise.
11948 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
11950         * font.c (Fopen_font): Compute pixel size correctly.
11951         (font_update_lface): Handle fonts with corrupted size specs,
11952         i.e. non-int and non-float.
11954         * ftfont.c (ftfont_match): Initialize entity variable.
11955         (ftfont_resolve_generic_family): Avoid using uninitialized var.
11956         (ftfont_list_family): Initialize list var earlier.
11958         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11960         * xterm.c (x_draw_glyph_string): Fall back on
11961         underline_minimum_offset for underline position.
11963 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
11965         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11967         * character.c (c_string_width): Specify the type for LEN.
11969 2008-12-03  Kenichi Handa  <handa@m17n.org>
11971         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
11972         (decode_coding_utf_8): Likewise.
11973         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
11974         (produce_chars): Initialize consumed_chars to 0.
11976 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
11978         * keyboard.c (make_lispy_position): Only use PT if the selected
11979         window is current.
11981 2008-12-02  Andreas Schwab  <schwab@suse.de>
11983         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11985         * doprnt.c (doprnt1): Fix size of charbuf.
11987 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
11989         * keyboard.c (timer_check): Revert last change.
11991 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
11993         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11995 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
11997         * makefile.w32-in: Update dependencies.
11998         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12000 2008-12-01  Andreas Schwab  <schwab@suse.de>
12002         * font.c (register_font_driver): Use xmalloc.
12003         (font_put_frame_data): Likewise.
12005 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
12007         * xfaces.c (realize_x_face): Make abort condition clearer.
12009         * gtkutil.c (update_frame_tool_bar): Initialize variable.
12011 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
12013         * keyboard.c (timer_check): After a timer runs, ensure that the
12014         selected window's buffer is current.
12016 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
12018         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12019         It was accidentally restored by the Unicode merge.
12021         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12023 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
12025         * w32proc.c: Include "coding.h".
12026         (Fw32_short_file_name): Encode filename passed to Windows API.
12027         (Fw32_long_file_name): Encode filename passed to Windows API and
12028         decode back the result.  (Bug#1433)
12030 2008-11-29  Kenichi Handa  <handa@m17n.org>
12032         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12033         not before accessing it.
12035         * charset.c (Fdefine_charset_internal): After calculating
12036         min_char, max_char, and fastmap, copy the charset structure again.
12037         (encode_char): Fix the previous change.
12039 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
12041         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12043         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12045         * nsterm.m (x_set_frame_alpha): New function.
12047 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
12049         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12051 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
12053         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12054         pointer to check_face_name.
12056 2008-11-27  Kenichi Handa  <handa@m17n.org>
12058         * category.h (SET_CATEGORY_SET): Call set_category_set.
12059         (set_category_set): Extern it.
12061         * category.c (hash_get_category_set): New function.
12062         (Fmodify_category_entry): Adjusted for the change of
12063         char_table_ref_and_range.  Call hash_get_category_set to get a
12064         category set to store in the table.
12066         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12067         Funify_charset.
12069         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
12070         (DECODE_CHAR): Check if the decoder vector is ready.
12071         (ENCODE_CHAR): Check if the encoder char-table is ready.
12072         (maybe_unify_char): Extern it.
12074         * charset.c (Vchar_unified_charset_table): Delete it.
12075         (inhibit_load_charset_map): New variable.
12076         (temp_charset_work): New variable.
12077         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12078         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12079         New macros.
12080         (load_charset_map): Meaning of control_flag changed.  If
12081         inhibit_load_charset_map is nonzero, setup a table in
12082         temp_charset_work.
12083         (load_charset): New argument control_flag.
12084         (map_charset_for_dump): New function.
12085         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12086         map_charset_for_dump.
12087         (Fdefine_charset_internal): If the charset method is MAP, load
12088         mapping tables by calling load_charset.
12089         (Funify_charset): Don't load a mapping table but directly set
12090         Vchar_unify_table.
12091         (maybe_unify_char): New function.
12092         (decode_char): Don't handle the deleted method MAP_DEFERRED.
12093         Handle the case of inhibit_load_charset_map being nonzero.
12094         (encode_char): Don't handle the deleted method MAP_DEFERRED.
12095         Handle the case of inhibit_load_charset_map being nonzero.
12096         (Fclear_charset_maps): Just free temp_charset_work.
12097         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12098         variable.
12100         * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12101         change of char_table_ref_and_range.
12102         (char_table_ref_and_range): Change the meaning of argument FROM
12103         and TO.  Now the caller must provide initial values for *FROM
12104         and *TO.
12106         * fontset.c (fontset_add): Adjusted for the change of
12107         char_table_ref_and_range.
12108         (fontset_get_font_group): Likewise.
12109         (Ffontset_info): Likewise.
12111         * keymap.c (describe_vector): Adjusted for the change of
12112         char_table_ref_and_range.  For char-table, put boundary between
12113         non-ASCII and 8-bit characters.
12115         * print.c (print_object): For bool-vector, delete unnecessary
12116         check of ASCII_BYTE_P.
12118 2008-11-26  Jason Rumney  <jasonr@gnu.org>
12120         * w32font.c (w32font_open_internal): Don't include external
12121         leading in font height.  (Bug#879)
12123 2008-11-26  Glenn Morris  <rgm@gnu.org>
12125         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12126         redefinition with ifdef.  (Bug#1383)
12128 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
12130         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12132 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
12134         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12135         New EmacsView methods.
12136         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12137         Fixes bug #1048,1357,1414.
12139 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
12141         Fix bug #1362.
12142         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12143         is not an indexed color.
12144         * nsterm.m (free_indexed_color): Add argument checking.
12145         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12147 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
12149         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12150         Document confirm-after-completion value for
12151         minibuffer-completion-confirm.
12153 2008-11-24  Jason Rumney  <jasonr@gnu.org>
12155         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
12156         warning.
12158 2008-11-23  Jason Rumney  <jasonr@gnu.org>
12160         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12161         restored before returning.
12163         * w32font.c (check_face_name): New function.
12164         (add_font_entity_to_list): Use it to filter out common substituted
12165         fonts.  (Bug#642)
12167 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
12169         * buffer.c (Fswitch_to_buffer): Reword and mention new option
12170         confirm-nonexistent-file-or-buffer in doc-string.
12172 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12174         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12175         Fix copy/paste typo.  Add checks.
12177 2008-11-21  Kenichi Handa  <handa@m17n.org>
12179         * coding.c (detect_coding_iso_2022): Reject invalid composition
12180         sequence.
12181         (DECODE_COMPOSITION_START): If the current source is the last
12182         block, and the current composition doesn't end, regard this
12183         sequence as invalid.
12184         (decode_coding_iso_2022): Handle invalid composition sequence.
12186 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
12188         * window.c (coordinates_in_window): Don't return
12189         ON_VERTICAL_BORDER for the rightmost position of a mode/header
12190         line when the window is not the rightmost one.  (Bug#1372)
12192 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
12194         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12196 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
12198         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12199         and bright_bg if noninteractive is non-zero.
12201 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12203         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12204         x_draw_glyph_string_background.
12206         * w32term.c (x_draw_glyph_string): Likewise.
12208 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
12210         * xterm.c (x_draw_glyph_string): Stop drawing the background of
12211         the next glyph string once past the overhang width.
12213         * nsterm.m (ns_draw_glyph_string): Likewise.
12215         * w32term.c (x_draw_glyph_string): Likewise.
12217 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
12219         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12220         double file close.
12222 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
12224         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12225         dedicated status of window before attempting to display another
12226         buffer in it.
12228 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
12230         * msdos.c (Fmsdos_long_file_names):
12231         (syms_of_msdos) <dos-unsupported-char-glyph>:
12232         * dosfns.c (Fint86): Fix typos in docstrings.
12234 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
12236         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12238 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
12240         * puresize.h (BASE_PURESIZE): Increase to 1260000.
12242 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
12244         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12246         * frame.h: Negative alpha means "don't touch".
12248         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12250         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12252 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
12254         * hftctl.c:
12255         * chpdef.h:
12256         * acldef.h: Remove files used only for systems no longer supported.
12258         * Makefile.in: Fix .o alphabetical ordering.
12259         (hftctl.o): Remove dependency, file removed.
12260         (keymap.o, print.o): Depend on charset.h.
12262 2008-11-10  Kenichi Handa  <handa@m17n.org>
12264         * character.c (Fget_byte): Fix and make it faster for unibyte target.
12266 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
12268         * dired.c (file_name_completion): If completion_ignore_case is
12269         enabled, ignore case when checking completion-regexp-list.
12271 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
12273         * vm-limit.c (get_lim_data): Fix last change.
12275 2008-11-08  Kenichi Handa  <handa@m17n.org>
12277         * character.c (Fget_byte): New function.
12278         (syms_of_character): Defsubr Fget_byte.
12280 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
12282         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12283         cursor position is valid after scrolling.
12285 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
12287         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12289 2008-11-06  Glenn Morris  <rgm@gnu.org>
12291         * xterm.c (handle_one_xevent): Don't let popup menus cause
12292         mouse-autoselect-window related window switching.  (Bug#1261)
12294 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
12296         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12298 2008-11-04  Andreas Schwab  <schwab@suse.de>
12300         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12302 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
12304         * xfns.c (Fx_wm_set_size_hint): New function.
12306 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
12308         * textprop.c (Fprevious_single_char_property_change): Return 0
12309         when there's no change in a string.  (Bug#1301)
12311 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
12313         * frame.c (do_switch_frame): New argument NORECORD passed to
12314         Fselect_window.
12315         (Fselect_frame): New argument NORECORD passed to
12316         do_switch_frame.
12317         (Fset_frame_selected_window): New argument NORECORD passed to
12318         Fselect_frame.
12319         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12320         in call of do_switch_frame.
12321         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12322         Handle NORECORD argument in call of Fselect_frame.
12323         * lisp.h (do_switch_frame, Fselect_frame)
12324         (Fset_frame_selected_window): Adjust declarations.
12325         * window.c (select_frame_norecord): New function.
12326         (run_window_configuration_change_hook): Use it and call
12327         Fselect_frame with NORECORD set.
12328         (Fselect_window): Pass NORECORD to Fselect_frame.
12329         (Fset_window_configuration): Handle NORECORD argument in call of
12330         do_switch_frame.
12331         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12332         Fset_frame_selected_window.
12333         * keyboard.c (command_loop_1): Handle NORECORD in call of
12334         Fselect_frame (currently ifdefd).
12336 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
12338         * emacs.c (USAGE2): Untabify.
12340 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12342         * composite.c (fill_gstring_header): Fix copy/paste typo.
12344 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
12346         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12347         (Fother_window): Rename argument and rewrite doc-string.
12348         (select_window_norecord): Fix return value.  (Bug#1276)
12350 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
12352         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12353         new frames overriding foreground for tooltips.  Based on similar patch
12354         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
12356 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
12358         * emacs.c (Fdaemon_initialized): Initialize nfd.
12360 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
12362         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12363         (Fwindow_text_height): Clarify doc-strings.
12364         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12365         doc-string of window-scroll-functions.
12367 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
12369         * category.c (syms_of_category): Fix typo in docstring.
12371 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
12373         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12374         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12375         Fix typos in docstrings.
12377 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
12379         * emacs.c (daemon_pipe): Make non-static.
12380         (IS_DAEMON): Move definition ...
12381         * lisp.h (IS_DAEMON): ... here.
12382         (daemon_pipe): Declare.
12383         (is_daemon): Remove.
12384         * dispnew.c (init_display): Use IS_DAEMON.
12386 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
12388         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12389         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12391         * emacs.c (is_daemon): Remove.
12392         (main): Don't set is_daemon.
12393         (IS_DAEMON): New macro.
12394         (Fdaemonp, Fdaemon_initialized): Use it.
12395         (Fdaemon_initialized): Write a char into the pipe to make sure the
12396         parent exits.
12397         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12399 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
12401         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12402         over-sized glyph, draw it with the default glyph width.
12404         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12405         glyph, draw it with the default glyph width.
12407         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12408         glyph, draw it with the default glyph width.
12410         * xdisp.c (try_scrolling): When computing the distance from the
12411         scroll margin to PT, try moving some distance past the window
12412         bottom before giving up.
12414 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
12416         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12417         (Fset_window_buffer): Explain in doc-string that a window can be
12418         "strongly" dedicated to its buffer.
12420 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
12422         * emacs.c (daemon_name): New variable.
12423         (main): Deal with --daemon=SERVER_NAME.
12424         (Fdaemonp): Return a name if one was passed to --daemon.
12426 2008-10-26  Romain Francoise  <romain@orebokech.com>
12428         * emacs.c (daemon_pipe): New variable.
12429         (main): Create a pipe before forking, make the parent exit only after
12430         the child has closed its end of the pipe.  Move closing the
12431         descriptors ...
12432         (Fdaemon_initialized): ... here.  New function.
12434 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
12436         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12437         the previous unoptimized table.
12439         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12440         the distinction between non-nil and non-t value of `dedicated'.
12442 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
12444         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
12445         read_char_minibuf_menu_text is large enough to hold the menu string.
12447 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
12449         * window.c (Fget_buffer_window, Fdelete_windows_on)
12450         (Freplace_buffer_in_windows): Make buffer argument optional and
12451         rename to buffer_or_name.
12453 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
12455         * xdisp.c (handle_single_display_spec, handle_display_prop):
12456         Undo 2005-05-16 change.
12457         (handle_stop): Pop iterator if it's loaded with an empty string.
12458         (get_overlay_strings_1): Don't save iterator if it's loaded with
12459         an empty string (bug#1201).
12461 2008-10-24  Kenichi Handa  <handa@m17n.org>
12463         * ftfont.c (ftfont_otf_features): Fix previous change.
12464         (ftfont_otf_capability): Check FeatureList.FeatureCount before
12465         calling ftfont_otf_features.
12467 2008-10-24  Kenichi Handa  <handa@m17n.org>
12469         * font.c (font_match_p): Fix for the case that a vector of
12470         characters is in script-representative-chars.
12472 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
12474         * dbusbind.c (xd_in_read_queued_messages): New variable.
12475         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
12476         (xd_read_queued_messages): Catch Qdbus_error from the macros.
12477         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12478         macro.  (Bug#1186)
12480 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
12482         * s/sol2-10.h: New file.
12484 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
12486         * xdisp.c (fill_glyph_string): Fix typo in source (though the
12487         poor beast has survived 9+ years and the jump from xterm.c!).
12489 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
12491         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12492         Reword doc-string.
12493         (Fbury_buffer): In doc-string say what happens to the buffer's window.
12495 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
12497         * character.c (syms_of_character) <script-representative-chars>:
12498         <unicode-category-table>: Doc fixes.
12500 2008-10-23  Noah Friedman  <friedman@splode.com>
12502         * coding.c (make_conversion_work_buffer): Check that
12503         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12504         Fget_buffer_create.
12506 2008-10-23  Kenichi Handa  <handa@m17n.org>
12508         * font.c (font_add_log): Check the values of extra properties.
12510 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
12512         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12513         Reword doc-string.
12514         (Fset_window_parameter): Use NILP.
12515         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12516         (Frecenter): Use "selected" instead of "current" window in doc-strings.
12518 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
12520         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12522 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12524         * nsfns.m (ns_appkit_version): New function.
12525         (x-server-version): Use it.
12526         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12527         (x-server-vendor): Don't check_ns().
12529         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12531 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
12533         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12534         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12536 2008-10-22  Kenichi Handa  <handa@m17n.org>
12538         * syntax.c (scan_words): Call word_boundary_p instead of comparing
12539         scripts.
12541         * category.c (word_boundary_p): Check scripts instead of charset.
12542         Handle nil value in word-separating-categories and
12543         word-combining-categories.
12544         (syms_of_category): Fix docstrings of word-separating-categories
12545         and word-combining-categories.
12547 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
12549         * coding.c (Fencode_coding_region, Fdecode_coding_region)
12550         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12552 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
12554         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12555         Rename arg "buffer" to "buffer_or_name".
12556         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12557         it optional.
12558         (no_switch_window): Remove since the return value is not used.
12559         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12560         Consider window as dedicated when Fwindow_dedicated_p returns a
12561         non-nil value.
12562         * lisp.h: Remove prototype for no_switch_window.
12564 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
12566         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12567         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12569 2008-10-21  Kenichi Handa  <handa@m17n.org>
12571         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12572         check Vlatin_extra_code_table.
12574 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
12576         * fileio.c (Fset_file_modes): Doc fix.
12578 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
12580         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12581         in arrays.
12583 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
12585         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12586         Mention kill-buffer in doc-string.
12587         (Fset_window_buffer): Reinsert tem check removed in last commit.
12588         (Fenlarge_window, Fshrink_window): Have argument names and
12589         doc-string follow Elisp manual more closely.
12591 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
12593         * fileio.c (Fset_file_modes): Doc fix.
12595 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
12597         * window.c (Fwindow_width, Fset_window_start)
12598         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12599         (Fdelete_windows_on, Freplace_buffer_in_windows):
12600         Make doc-strings follow code and Elisp manual more closely.
12601         (Fwindow_dedicated_p): Make window argument optional.
12602         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12603         (Fset_window_buffer): Respect any non-nil dedicated value for
12604         window.  Rename "buffer" argument to "buffer_or_name".
12606 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
12608         * m/sh3.h: New file, machine description for SuperH.
12610 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
12612         * window.c (Fsplit_window): Rename arg horflag to horizontal.
12614 2008-10-17  Kenichi Handa  <handa@m17n.org>
12616         * ftfont.c (ftfont_otf_features): Fix indexing
12617         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
12619 2008-10-16  Magnus Henoch  <mange@freemail.hu>
12621         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12622         (Fdbus_call_method_asynchronously): Ditto.
12623         This change makes C-h f display the argument list.
12625 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
12627         * fileio.c (Fexpand_file_name): Doc fix.
12629         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12630         of :foreground and :background equivalent to unspecified (20.x
12631         compatibility).
12633 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
12635         * buffer.c (syms_of_buffer): Doc fix.
12637 2008-10-14  Kenichi Handa  <handa@m17n.org>
12639         * font.c (font_clear_prop): When clearing font width, clear the
12640         average width field too.
12642 2008-10-12  Andreas Schwab  <schwab@suse.de>
12644         * ftfont.c (ftfont_shape_by_flt): Make static.
12645         * ftfont.h (ftfont_shape_by_flt): Don't declare.
12647         * font.c: Don't include <m17n-flt.h>.
12649 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
12651         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12653 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
12655         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12656         away code.
12658 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
12660         * dispnew.c (update_text_area): Avoid looping due to large glyph
12661         overhangs (bug#1070).
12663 2008-10-09  Kenichi Handa  <handa@m17n.org>
12665         * fontset.c (face_for_char): If face->fontset is negative, just
12666         return ascii_face.
12668         * font.c (font_delete_unmatched): Fix previous change.
12669         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12671 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
12673         * frame.c (Fraise_frame): On text-only terminals select frame in
12674         order to make it visible.  (Bug#1061)
12676 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
12678         * fontset.c (fontset_find_font): Check frame validity.
12680 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
12682         * gtkutil.c (xg_display_open): Reset default display if none exists.
12683         (xg_display_close): Allow Emacs to close all displays (bug#985).
12685 2008-10-06  Andreas Schwab  <schwab@suse.de>
12687         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12689 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
12691         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12693         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12695         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12696         during initialization.
12698 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
12700         * xdisp.c (redisplay_internal): If frame switched, redisplay the
12701         whole thing on MSDOS frames as well as on a TTY.
12703         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12704         well as for TTY.
12705         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12706         well as on a TTY.
12708         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12709         as well as for TTY.
12711         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12713         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12714         MSDOS frames as well.
12716 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
12718         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12719         correct arguments.
12720         * menu.c (find_and_return_menu_selection): Add cast.
12722 2008-10-03  Glenn Morris  <rgm@gnu.org>
12724         * emacs.c (USAGE1): Add --daemon.
12726 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
12728         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12729         100, so it's in percents as advertised.
12731 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
12733         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12734         (ns_output.current_cursor, ns_output.desired_cursor)
12735         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12736         (FRAME_NEW_CURSOR_COLOR): Remove.
12738         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12739         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12740         enumeration (HOLLOW_BOX_CURSOR, etc.).
12742         * nsterm.m (ns_frame_rehighlight): Remove commented code.
12743         (draw_window_cursor): Simplify code.
12744         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12745         Don't change cursor type.  In latter, call rehighlight instead of doing
12746         updates manually.
12747         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12748         Use core Emacs cursor types.
12750         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12752 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
12754         * process.c (Faccept_process_output): Fix doc-string.
12756 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
12758         * gmalloc.c (__sbrk): Also define for uClibc.
12760         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12761         for uClibc.
12763 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
12765         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12766         styles.
12767         (nsfont_open): Reenable the cache.
12769 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
12771         * font.c (font_matching_entity): Reflect ATTRS in font selection.
12772         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12774 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
12776         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12777         a suspended terminal.
12779 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
12781         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12783 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
12785         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12787 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
12789         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12790         in a continued line coincides with a line beginning.
12792 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
12794         * nsfont.m (nsfont_trait_distance): Fix bug.
12795         (nsfont_list): Return a list rather than a vector (syncs with Handa
12796         changes of 2008-05-14).
12797         (nsfont_open): Improve logging.
12799 2008-09-29  Andreas Schwab  <schwab@suse.de>
12801         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12803 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
12805         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12806         name as char-resolve-modifiers.
12807         Reported by: Markus Triska <markus.triska@gmx.at>
12809 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
12811         * dispnew.c (init_display): Return earlier when running as a daemon.
12813 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
12815         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12817 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
12819         * composite.c (Fcomposition_get_gstring)
12820         (Fcompose_region_internal, Fcompose_string_internal)
12821         (Ffind_composition_internal): Doc fix.
12822         (syms_of_composite) <compose-chars-after-function>: Doc fix.
12823         (syms_of_composite) <auto-composition-function>: Doc fix.
12824         (syms_of_composite) <composition-function-table>: Doc fix.
12826 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
12828         * search.c (wordify): New argument for lax word-ends.
12829         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12831 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
12833         * lisp.h (is_daemon): Declare.
12834         * dispnew.c (init_display): Do not try to initialize the terminal
12835         when running as a daemon.
12837 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
12839         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12840         x_display_pixel_height.
12842 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
12844         * undo.c (record_point): Don't call Fundo_boundary for first
12845         change.  (Bug#731)
12847 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
12849         * emacs.c (Fdaemonp): Doc fix.
12851 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
12853         * emacs.c (main): Place #ifdef in the proper place.
12855 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
12857         * emacs.c (standard_args): Add --daemon.
12858         (main): Disconnect from the terminal when --daemon is passed.
12859         (is_daemon): New variable.
12860         (Fdaemonp): New function.
12861         (syms_of_emacs): Defsubr it.
12863 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
12865         * xdisp.c (get_next_display_element): Handle string display
12866         correctly when checking for the end of a box run.
12868 2008-09-20  Glenn Morris  <rgm@gnu.org>
12870         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12871         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12872         (Frename_file): Avoid copying to trash if a rename involves
12873         a delete.  (Bug#964).
12875 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
12877         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12878         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12879         frames as well as termcap frames.
12880         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12881         get_named_tty.
12883 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
12885         * process.c (procfs_system_process_attributes): Fix cmdline in
12886         case /proc/PID/cmdline is empty.
12888         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12889         x_display_pixel_height.
12891 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
12893         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12895         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12896         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12898 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
12900         * dispextern.h (struct it): Move line_wrap away from the middle of
12901         bitfields.  Move voffset in struct iterator_stack_entry after the
12902         bitfields.  Move tab_width near after another short.
12904 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
12906         * frame.h (struct frame): Move alpha from the middle of bitfields.
12908         * window.h (struct window): Move frozen_window_start_p after the
12909         rest of the bitfields to reduce padding.
12911 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
12913         * xterm.h (x_display_info): Remove `height' and `width' members.
12915         * nsterm.h (ns_display_info): Remove `height' and `width' members.
12917         * w32term.h (w32_display_info): Remove `height', `width',
12918         `height_in', and `width_in' members.
12920         * xterm.c (x_display_pixel_height, x_display_pixel_width):
12921         New functions.
12922         (x_calc_absolute_position): Use them.
12923         (x_term_init): Omit removed `height' and `width' members.
12925         * w32term.c (x_display_pixel_height, x_display_pixel_width):
12926         New functions.
12927         (w32_read_socket, x_calc_absolute_position): Use them.
12928         (w32_initialize_display_info, w32_term_init): Omit removed members
12929         of w32_display_info.
12931         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12932         New functions.
12933         (ns_initialize_display_info): Omit removed members of ns_display_info.
12935         * xterm.c (x_display_pixel_height, x_display_pixel_width):
12936         New functions.
12937         (x_calc_absolute_position): Use them.
12938         (x_term_init): Omit removed `height' and `width' members.
12940         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12941         (compute_tip_xy):
12942         * frame.c (x_fullscreen_adjust):
12943         * xmenu.c (menu_position_func): Use x_display_pixel_height and
12944         x_display_pixel_width.
12946 2008-09-18  Kenichi Handa  <handa@m17n.org>
12948         * composite.c (fill_gstring_header): Don't check FROM and TO here.
12949         (composition_compute_stop_pos): Fix handling of static composition.
12950         (Fcomposition_get_gstring): Check FROM and TO at first.
12952 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
12954         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
12955         mixup (YAILOM).
12957 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
12959         * indent.c (Fvertical_motion): Use position reported by iterator
12960         instead of PT for determining screen motion (bug#943).
12962 2008-09-17  Romain Francoise  <romain@orebokech.com>
12964         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12966 2008-09-17  Kenichi Handa  <handa@m17n.org>
12968         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12970         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12971         if necessary.
12973 2008-09-16  Kenichi Handa  <handa@m17n.org>
12975         * coding.c (make_conversion_work_buffer): Avoid calling
12976         Fget_buffer_create if it is not necessary.
12978 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
12980         * window.c (Fselect_window): Don't update window_select_count and
12981         use_time when norecord is not nil.
12983 2008-09-14  Kenichi Handa  <handa@m17n.org>
12985         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12986         specpdl_ptr.
12988 2008-09-12  Kenichi Handa  <handa@m17n.org>
12990         * indent.c (scan_for_column): Don't handle automatic composition
12991         if the current buffer is not associated with a window.
12993         * composite.c (composition_reseat_it): If the current buffer is
12994         not associated with a window, ignore the automatic composition.
12995         (find_automatic_composition): Likewise.
12997 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
12999         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13000         (Fgpm_mouse_stop): Use it.
13001         * termhooks.h (close_gpm): Declare.
13002         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13003         connection if Gpm_GetEvent fails.
13005         * window.c (set_window_buffer): Always preserve current-buffer.
13007 2008-09-12  Glenn Morris  <rgm@gnu.org>
13009         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
13011 2008-09-11  Glenn Morris  <rgm@gnu.org>
13013         * charset.c (charset-map-path): Doc fix.
13015 2008-09-10  Kenichi Handa  <handa@m17n.org>
13017         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13019         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13020         compose a grapheme cluster with the preceding base glyph.
13022         * composite.c (composition_compute_stop_pos): Fix previous change.
13023         Reset cmp_it->id to -1 at first.
13025 2008-09-10  Glenn Morris  <rgm@gnu.org>
13027         * Makefile.in (character.o, chartab.o): Fix config.h typo.
13029 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
13031         * keyboard.c (read_key_sequence): Reapply translation maps when
13032         switching keyboards.
13034 2008-09-09  Kenichi Handa  <handa@m17n.org>
13036         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13037         characters.
13039         * composite.c (FORWARD_CHAR): Fix calculation
13040         of (POSITION).pos_byte.
13041         (composition_compute_stop_pos): Limit the search of composition to
13042         at most 500 characters ahead.  If we reach the limit or find a
13043         newline, set cmp_it->ch to -2 and return 0.
13044         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13046 2008-09-08  Kenichi Handa  <handa@m17n.org>
13048         * indent.c (Fvertical_motion): Be sure to set
13049         it_overshoot_expected if it.cmp_it.id is non-negative.
13051 2008-09-07  Andreas Schwab  <schwab@suse.de>
13053         * callproc.c (Fcall_process): Don't hold references to string data
13054         across garbage collection.  Move initialisation of new_argv down
13055         to avoid compiler bug.
13057 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
13059         * process.c (Fsystem_process_attributes): Doc fix.
13061 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
13063         * callproc.c (Fcall_process): Canonicalize current directory name.
13065         * xdisp.c (move_it_to): When moving by vpos, ensure that the
13066         iterator advances to the next line if the current line ends in a
13067         continued tab.
13069 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
13071         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13072         member to point to cmp_from.
13074         * xdisp.c: Doc fix for references to gidx data member.
13076 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
13078         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13080 2008-09-07  Kenichi Handa  <handa@m17n.org>
13082         * composite.c (FORWARD_CHAR): Check STOP after
13083         incrementing (POSITION).pos.
13085 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
13087         * process.c (Fsystem_process_attributes): Doc fix.
13089 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
13091         * keyboard.c (Ftop_level): Doc fix.
13093 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
13095         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13096         minibuffer, don't let lower part of menu invade the echo area.
13098         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13099         "char *q" to access menu text and advance through it.  Revert the
13100         change that displayed ">" instead of ASCII character 0x10.
13102 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
13104         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13105         toggle boxes and radio buttons on MS-DOS as well.
13107 2008-09-05  Kenichi Handa  <handa@m17n.org>
13109         * composite.c (autocmp_chars): Check lookback count.
13110         (composition_compute_stop_pos): Set cmp_it->lookback.
13111         (composition_reseat_it): Check lookback count.
13112         (struct position_record): New struct.
13113         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13114         (find_automatic_composition): New function.
13115         (composition_adjust_point): Use find_automatic_composition.
13117         * dispextern.h (struct composition_it): New member lookback.
13119 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
13121         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13122         if moving by a single line.
13124 2008-09-02  Andreas Schwab  <schwab@suse.de>
13126         * xterm.c (x_delete_display): Fix merge error.
13128         * fileio.c (Fexpand_file_name): Remove unused variables.
13130 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
13132         * fileio.c (Fexpand_file_name): Copy argument `name' into local
13133         storage on all platforms, not just on DOS_NT.
13135 2008-09-02  Jason Rumney  <jasonr@gnu.org>
13137         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13138         Ensure mouse is not grabbed after menu is finished.
13140 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
13142         * xfaces.c (Finternal_set_alternative_font_family_alist)
13143         (Finternal_set_alternative_font_registry_alist): Properly copy
13144         entire alist structure.
13146 2008-09-01  Kenichi Handa  <handa@m17n.org>
13148         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
13149         representative chars of the script is a vector.
13150         (ftfont_list): Handle the case where the representative chars of
13151         the script is a vector.
13153         * character.c (syms_of_character): Docstring of
13154         script-representative-chars fixed.
13156 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
13158         * msdos.c (BUILD_CHAR_GLYPH): New macro.
13159         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13160         the menu.  Allocate larger buffer for `text', to account for
13161         possible ^C characters.
13163 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
13165         * xdisp.c (prepare_menu_bars): Don't call
13166         Vwindow_size_change_functions with arg Qt.
13168 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
13170         * font.h (font_range):
13171         * fileio.c (report_file_error):
13172         * composite.c (composition_update_it): Yet another int/Lisp_Object
13173         mixup (YAILOM).
13175 2008-08-30  Glenn Morris  <rgm@gnu.org>
13177         * data.c (Fmake_variable_frame_local): Doc fix.
13179         * frame.c (Fmodify_frame_parameters): Doc fix.
13181 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
13183         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13184         needed by GetTokenInformation.
13185         (w32_system_process_attributes): Check return values of all system
13186         APIs.
13188         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13189         only when the state changes.
13190         (IT_update_begin, IT_update_end): Add termscript trace.
13192         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13193         clipboard is unavailable.  Set dst to NULL if it doesn't point to
13194         malloc'ed data.
13195         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13196         passing random values to xfree.
13198         * dispnew.c (init_display): Set `tty's association in frame's
13199         parameters alist to the name of the terminal device, if that is known.
13201 2008-08-29  Jason Rumney  <jasonr@gnu.org>
13203         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13205 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
13207         * composite.c (fill_gstring_body): Avoid compiler warnings.
13209         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13210         LGLYPH_SET_CODE to avoid compiler warnings.
13212         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
13214         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13216         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13217         LGLYPH_SET_CODE.
13219 2008-08-29  Kenichi Handa  <handa@m17n.org>
13221         * fileio.c (report_file_error): Don't downcase the first character
13222         of errstring if it is still unibyte.
13224 2008-08-29  Kenichi Handa  <handa@m17n.org>
13226         These changes are to re-implement the automatic composition so
13227         that it doesn't use text properties.
13229         * Makefile.in (ftfont.o): Depend on composite.h.
13230         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13232         * character.h (Vunicode_category_table): Extern it.
13234         * character.c (Vunicode_category_table): New variable.
13235         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13237         * chartab.c (optimize_sub_char_table): Perform more greedy
13238         optimization.
13240         * composite.h (enum composition_method):
13241         Delete COMPOSITION_WITH_GLYPH_STRING.
13242         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13243         (Vcomposition_function_table): Extern it.
13244         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13245         (composition_gstring_put_cache, composition_gstring_from_id)
13246         (composition_gstring_p, composition_gstring_width)
13247         (composition_compute_stop_pos, composition_reseat_it)
13248         (composition_update_it, composition_adjust_point): Extern them.
13249         (Fcomposition_get_gstring): EXFUN it.
13251         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
13252         (Vcomposition_function_table)
13253         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
13254         (gstring_hash_table, gstring_work, gstring_work_headers):
13255         New variables.
13256         (gstring_lookup_cache, composition_gstring_put_cache)
13257         (composition_gstring_from_id, composition_gstring_p)
13258         (composition_gstring_width, fill_gstring_header)
13259         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13260         (composition_reseat_it, composition_update_it)
13261         (composition_adjust_point, Fcomposition_get_gstring): New functions.
13262         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13263         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
13264         Defsubr composition_get_gstring.
13266         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
13267         cmp_id.
13268         (struct glyph_string): Delete the member gidx.  New members
13269         cmp_id, cmp_from, and cmp_to.
13270         (enum it_method): Delete GET_FROM_COMPOSITION.
13271         (struct composition_it): New struct.
13272         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13273         Delete c, len, cmp_id, cmp_len in u.comp.
13275         * font.h (enum lgstring_indices): Delete it.
13276         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
13277         (enum lglyph_indices): Likewise.
13278         (font_range): Adjust extern.
13279         (font_fill_lglyph_metrics): Extern it.
13281         * font.c (QCf): New variable.
13282         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13283         (font_prepare_composition): Delete this function.
13284         (font_range): Type and arguments changed.
13285         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13286         (font_fill_lglyph_metrics): New function.
13287         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
13288         (syms_of_font): DEFSYM QCf.  Delete defsubr for
13289         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13290         Defsubr Sfont_shape_gstring.
13292         * fontset.h (font_for_char): Extern it.
13294         * fontset.c (font_for_char): New function.
13296         * ftfont.c: Include composite.h.
13297         (ftfont_resolve_generic_family): Add langset "en" to pattern.
13298         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13300         * indent.c: Include composite.h and dispextern.h.
13301         (check_composition): Delete this function.
13302         (scan_for_column): Handle composition by
13303         composition_compute_stop_pos, composition_reseat_it, and
13304         composition_update_it.
13305         (compute_motion): Likewise.
13306         (Fvertical_motion): Fix checking of composition.
13308         * keyboard.c (adjust_point_for_property): Check composition by
13309         composition_adjust_point.
13311         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
13312         struct glyph_string.
13314         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13315         (append_composite_glyph): Adjust for the change of struct it and
13316         struct glyph.
13317         (produce_composite_glyph): Likewise.
13319         * w32term.c (x_draw_composite_glyph_string_foreground):
13320         Adjust for the change of struct glyph_string.
13321         (x_draw_glyph_string): Likewise.
13323         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13324         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13326         * xdisp.c: Include font.h.
13327         (it_props): Delete the entry for Qauto_composed.
13328         (init_iterator): Initialize it->cmp_it.id to -1.
13329         (compute_stop_pos): Call composition_compute_stop_pos.
13330         (face_before_or_after_it_pos): Adjust for the change of struct it.
13331         (handle_auto_composed_prop): Delete it.
13332         (handle_composition_prop): Handle only static composition.
13333         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13334         from xassert.  Initialize it->cmp_it.stop_pos.
13335         (push_it): Adjust for the change of struct it.
13336         (pop_it): Likewise.
13337         (get_next_element): Delete next_element_from_composition.
13338         (CHAR_COMPOSED_P): New macro.
13339         (get_next_display_element): For automatic composition, get a face
13340         from the font in the glyph-string.
13341         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
13342         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
13343         (next_element_from_string): Check if the character at the current
13344         position is composed by CHAR_COMPOSED_P.
13345         (next_element_from_buffer): Likewise.
13346         (next_element_from_composition): Adjust for the change of struct it.
13347         Update it->cmp_it.
13348         (dump_glyph): Adjust for the change of struct glyph.
13349         (fill_composite_glyph_string): Adjust for the change of struct
13350         it and struct glyph.  Don't handle automatic composition here.
13351         (fill_gstring_glyph_string): New function.
13352         (x_get_glyph_overhangs): Handle automatic composition.
13353         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
13354         (BUILD_GSTRING_GLYPH_STRING): New macro.
13355         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13356         automatic composition.
13357         (append_composite_glyph): Adjust for the change of struct it and
13358         struct glyph.
13359         (x_produce_glyphs): Adjust for the change of struct it.
13361         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13362         the change of struct glyph_string.
13363         (x_draw_glyph_string): Likewise.
13365 2008-08-29  Glenn Morris  <rgm@gnu.org>
13367         * buffer.c (word-wrap): Doc fix.
13368         * xdisp.c (truncate-partial-width-windows): Doc fix.
13369         Increase default to 50.
13371 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
13373         * xdisp.c (update_tool_bar_unwind): New function.
13374         (update_tool_bar): Temporarily set selected frame before building
13375         tool-bar items.
13377 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
13379         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13380         snprintf, respectively.
13381         (xd_append_arg): Convert strings with Fstring_make_unibyte.
13383 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
13385         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13386         LDFLAGS to GNUstep CC invocation.
13388 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
13390         * indent.c (Fvertical_motion): Revert last change.  Handle the
13391         general case where we are moving forward, and PT spans multiple
13392         screen lines.
13394         * eval.c (find_handler_clause): Temporarily increase
13395         max-lisp-eval-depth while printing the backtrace buffer, to
13396         guarantee that help-mode code can run.
13398 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
13400         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13401         colors under -rv.
13402         (IT_set_frame_parameters): Don't swap foreground and background
13403         colors if `(reverse . t)' is present in the frame properties.
13404         (internal_terminal_init): Call init_frame_faces only for the
13405         initial frame.
13407 2008-08-27  Andreas Schwab  <schwab@suse.de>
13409         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13411 2008-08-27  Andreas Schwab  <schwab@suse.de>
13413         * search.c (search_buffer): Set char_base to zero only at the end.
13415 2008-08-27  Kenichi Handa  <handa@m17n.org>
13417         * fileio.c (report_file_error): Fix handling of multibyte error string.
13419 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
13421         * xterm.c (x_term_init): Temporarily hide the partially
13422         initialized terminal while calling vendor-specific-keysyms.
13424 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
13426         * msdos.c (internal_terminal_init): Most initializations done only
13427         once, especially initial_screen_colors[] and termscript open.
13429 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
13431         * eval.c (Fcondition_case): Doc fix.
13433         * widgetprv.h (EmacsFramePart): Change font member to the new font
13434         struct.
13436         * widget.c: Include character.h and font.h for XSETFONT.
13437         (setup_frame_gcs): Compute X font id from font struct, just once.
13439 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
13441         * term.c (get_named_tty): Fix last change.
13443 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
13445         * indent.c (Fvertical_motion): If moving forward starting from a
13446         multi-line string, move the iterator to the last line of that string.
13448 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
13450         * frame.c (do_switch_frame): Mark previously displayed frame as
13451         obscured for FRAME_MSDOS_P frames as well.
13453 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
13455         * frame.c (make_terminal_frame): Initialize f->terminal,
13456         f->terminal->reference_count, and scroll bars on MS-DOS as well.
13457         Set the top frame to newly created frame.
13458         (Fmake_terminal_frame): Reuse the_only_display_info.
13460         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13461         estimating available memory.
13463 2008-08-23  David Reitter  <david.reitter@gmail.com>
13465         * nsterm.m (ns_draw_window_cursor): Don't call
13466         NSDisableScreenUpdates and NSEnableScreenUpdates on
13467         non-NS_IMPL_COCOA systems.
13469 2008-08-23  Andreas Schwab  <schwab@suse.de>
13471         * process.c (procfs_system_process_attributes): Fix use of
13472         uninitialized variables.
13474 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
13476         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13478         * dispnew.c (init_display): Remove MS-DOS specific conditions for
13479         calling tty-set-up-initial-frame-faces.
13481         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13482         Allow MSDOS frames along with X frames.
13484         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13485         addition to output_termcap.
13487         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13489         * termchar.h (FRAME_TTY): Support output_msdos_raw.
13490         (struct tty_display_info) [MSDOS]: Add fields related to mouse
13491         highlight.
13493         * process.c [!subprocesses]: Define QCname.
13494         (syms_of_process): Intern and staticpro it.
13496         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13497         Adjust for changes in encoding/decoding routines.
13498         Use encode_coding_object and decode_coding_object instead of
13499         encode_coding and decode_coding.
13501         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13503         * dosfns.c: Include frame.h before termhooks.h.
13504         (dos_cleanup): Use CURTTY ()->termscript instead of a global
13505         variable termscript.
13507         * s/msdos.h (USER_FULL_NAME): Define.
13508         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13510         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13511         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13512         pw->pw_gecos.
13514         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13515         SELECTED_FRAME as additional (1st) argument.
13516         (tty_read_avail_input): Handle output_msdos_raw in
13517         addition to output_termcap.
13519         * msdos.c: Include frame.h before termhooks.h.
13520         (mouse_on, mouse_off, mouse_moveto, mouse_init)
13521         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13522         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13523         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13524         (IT_set_terminal_modes, IT_reset_terminal_modes)
13525         (IT_set_frame_parameters): Use tty->termscript instead of a global
13526         variable termscript.
13527         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13528         global variable terminal_coding.  Don't refer to
13529         Vnonascii_translation_table.
13530         (internal_terminal_init): Set Vwindow_system in current_kboard.
13531         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
13532         Announce date and time of session start, if termscript is open.
13533         Don't zero out the_only_display_info (it is done in
13534         term.c:init_tty).  Open termscript only of not already open.
13535         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
13536         here instead of dos_ttraw.  Don't initialize display if this is an
13537         initial tty.  Don't set FRAME_FONT.
13538         (Vwindow_system_version): Bump to 23.
13539         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
13540         is available, set up mouse_position_hook.
13541         (dos_ttraw, IT_set_terminal_modes): If called with initial
13542         terminal, do nothing.
13543         (IT_set_frame_parameters): Handle the Qtty_type frame
13544         parameter by calling internal_terminal_init.
13545         (dos_set_window_size, show_mouse_face)
13546         (clear_mouse_face, IT_note_mode_line_highlight)
13547         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13548         (dos_rawgetc): Use tty_display_info instead of x_display_info.
13549         (initialize_msdos_display): New function.
13550         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13551         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13552         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13553         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13554         Accept additional argument: a pointer to a frame.  Update all callers.
13555         (request_sigio, unrequest_sigio): Don't define, now defined on
13556         sysdep.c.
13557         (IT_write_glyphs): Rewrite to use encode_terminal_code.
13559         * term.c [MSDOS]: Include msdos.h.
13560         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
13561         conditional to DOS_NT.  Allow only one call to this function in a
13562         session.  Don't allocate a new struct tty_display_info; instead,
13563         reuse the_only_display_info.  Call get_tty_size to get screen
13564         dimensions.  Call init_baud_rate to set bad_rate.
13565         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13566         (Fsuspend_tty) [MSDOS]: Don't close input and output.
13567         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13568         (get_tty_terminal, get_named_tty, Ftty_type)
13569         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13570         output_termcap.
13571         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13572         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13573         only when subprocesses are supported.
13575         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13576         f->output_data.x.
13577         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13578         terminal devices.
13580         * msdos.h: Remove definition of struct x_display_info and struct
13581         x_output.
13582         (FRAME_FONT): Use output_data.tty.
13583         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13584         (struct x_display_info): Rename from display_info.  Update all users in
13585         msdos.c.
13586         (struct x_output): Remove background_pixel and foreground_pixel.
13587         (the_only_display_info): Rename from the_only_x_display.
13588         (dos_ttraw): Update prototype.
13590         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13591         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13593 2008-08-23  Jason Rumney  <jasonr@gnu.org>
13595         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13596         (fn_TIFFSetDirectory): New library function used.
13597         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13598         (tiff_load): Use :index to select among multiple images.  Set count
13599         property when multiple images exist.
13600         (gif_format): Use :index, not :image.
13602 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
13604         * xdisp.c (try_scrolling): Check INT_MAX instead of
13605         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
13606         to obtain INT_MAX.
13608 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
13610         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13612 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
13614         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13615         GNUstep library location.
13617 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
13619         * xfaces.c (x_update_menu_appearance): Check validity of menu font
13620         before using it.
13622         * puresize.h (BASE_PURESIZE): Increase to 1250000.
13624 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
13626         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13627         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13628         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13629         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13630         (EmacsApp-cursor_blink_handler): Remove declaration.
13631         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13632         match 01 Feb 2008 changes in xterm.c.
13633         (ns_read_socket): Add cast to avoid warning.
13634         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13635         GNUstep.
13637 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
13639         * xselect.c (x_get_foreign_selection): Return nil if desired
13640         selection could not be obtained, instead of signalling an error.
13642 2008-08-20  David Reitter  <david.reitter@gmail.com>
13644         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13645         * nsterm.m: Remove ns-specific code for cursor blinking.
13646         (ns_draw_window_cursor): Clear cursor properly rather than
13647         redrawing the area.  Respect width of bar cursors.
13648         These changes enable the use of generic blink-cursor-mode and
13649         generic cursor types in NS and support smooth cursor movements (do
13650         not blink off after command).
13651         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13652         Nextstep, too.
13654 2008-08-19  Kenichi Handa  <handa@m17n.org>
13656         * font.c (Vfont_log_deferred): New variable.
13657         (font_add_log): Check Vfont_log_deferred.
13658         (font_deferred_log): New function.
13660         * font.h (font_deferred_log): Extern it.
13662         * fontset.c (reorder_font_vector): Use encoding charset of fonts
13663         for sorting.
13664         (face_for_char): Use deferred log.
13666 2008-08-18  Kenichi Handa  <handa@m17n.org>
13668         * fontset.c (face_for_char): Add font log.
13670         * font.c (font_add_log): Add the font properties :script, :lang,
13671         and :otf in the log.
13673 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
13675         * xdisp.c: Remove dead code.
13676         (handle_invisible_prop, next_overlay_string): Defer call to
13677         setup_for_ellipsis.
13678         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13680 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
13682         * xfaces.c (lookup_derived_face): Properly handle possible zero
13683         return value of get_lface_attributes.
13684         (merge_faces): Don't tell lookup_derived_face to signal an error
13685         if face is not found.
13687         * dired.c (Fdirectory_files): Doc fix.
13689         * process.c (make_process): Initialize kill_without_query struct
13690         member.
13692 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
13694         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13695         Alternative calculation of totphys for Visual Studio 6.
13697         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13699         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13700         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13701         All users changed.
13702         (stat): Only root directory passed to GetDriveType.  Allow RAM
13703         disk as well as local fixed disk when w32-get-true-file-attributes
13704         is set to `local'.
13705         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13706         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13707         (w32_cached_id, w32_add_to_cache): New functions.
13708         (get_name_and_id): Look account names in the cache before calling
13709         lookup_account_sid.
13710         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13711         New initialization flags.
13712         (globals_of_w32): Initialize them to zero.
13713         (w32_system_process_attributes): Use w32_cached_id and
13714         w32_add_to_cache.
13716 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
13718         * lread.c (Fread_char, Fread_char_exclusive): If no character
13719         event is read before timeout is reached, return nil, rather than
13720         converting to a number.
13722 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
13724         * fns.c (use_dialog_box): Doc fix.
13726         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13727         on OS X.
13729 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
13731         * frame.c (Qns_parse_geometry): New var.
13732         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13734 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
13736         * xdisp.c (x_produce_glyphs): Handle the case when font has no
13737         space character in calculating tabs.
13739 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
13741         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13743 2008-08-10  Glenn Morris  <rgm@gnu.org>
13745         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13746         silence gcc "limited range of data type" warnings in some
13747         make_fixnum_or_float calls.
13749 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
13751         * w32.c (w32_system_process_attributes): If the process does not
13752         exist, return nil.
13754         * w32.c: Include thelp32.h, psapi.h and coding.h.
13755         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13756         declarations.
13757         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13758         (Process32Next_Proc): New typedefs.
13759         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13760         (g_b_init_process32_next, g_b_init_open_thread_token)
13761         (g_b_init_impersonate_self, g_b_init_revert_to_self)
13762         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13763         (g_b_init_get_process_working_set_size)
13764         (g_b_init_global_memory_status_ex): New static variables.
13765         (globals_of_w32): Initialize them.
13766         (create_toolhelp32_snapshot, process32_first, process32_next)
13767         (open_thread_token, impersonate_self, revert_to_self)
13768         (get_process_memory_info, get_process_working_set_size)
13769         (global_memory_status, global_memory_status_ex): New wrapper
13770         functions.
13771         (w32_list_system_processes, w32_system_process_attributes)
13772         (enable_privilege, restore_privilege, ltime, process_times):
13773         New functions.
13774         (convert_time_raw): New function.
13775         (convert_time): Remove conversion of FILETIME into time in 100
13776         nsec units, call convert_time_raw instead.
13778         * process.h (w32_list_system_processes, w32_system_process_attributes):
13779         Add prototypes.
13780         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13781         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13782         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13783         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13785         * process.c (Fsystem_process_attributes): Doc fix.
13787 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
13789         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13790         a continued multi-char glyph; if so, advance to the actual glyph.
13792 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
13794         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13796         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13797         (.m.o): Use it.
13798         * config.in: Regenerate.
13800 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
13802         * xdisp.c (redisplay_window): Revert last change.
13803         (try_window): Check bottom scroll margin too.
13805 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
13807         * config.in: Regenerate.
13809         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13810         -list-load-path-shadows'.
13811         (nsgui.h): Reduce number of things depending on it.
13813 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
13815         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13816         instead of window-end which does the wrong thing at eob.
13817         (try_cursor_movement): Minor optimization.
13818         (redisplay_window): If scroll margin is defined, don't assume
13819         window doesn't need scrolling.
13821 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
13823         * config.in: Regenerate.
13825         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13826         (mostlyclean): Don't delete *.d under NS.
13828         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13830 2008-08-06  Kenichi Handa  <handa@m17n.org>
13832         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13834 2008-08-06  Andreas Schwab  <schwab@suse.de>
13836         * config.in: Regenerate.
13838 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
13840         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13841         forcing a window start.
13843         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13844         (auto_save_1): Update modtime when auto-save-list-file-name is on.
13846 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
13848         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13849         argument.
13851 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
13853         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13854         <scroll-down-aggressively, before-change-functions>:
13855         <after-change-functions>: Reflow docstrings.
13857 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
13858             Ken Raeburn  <raeburn@gnu.org>
13860         Dock menu customization, based on a patch by Ken Raeburn, plus some
13861         other fixes.
13862         * nsmenu.m (dockMenu): New variable.
13863         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13865         * nsterm.h (dockMenu): Declare.
13867         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13868         (ns_term_init): Initialize dockMenu.
13869         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13870         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13871         left.
13873         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13875 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
13877         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13879         * config.in: Regenerate.
13881 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
13883         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13885 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
13887         * nsterm.h (find_and_call_menu_selection): Fix prototype.
13889 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
13891         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13893         * keyboard.h: Comment an #endif.
13895         * lisp.h (have_menus_p): Adjust comment.
13897         * menu.c (find_and_return_menu_selection): Fix comparison with
13898         client_data.
13900         * nsmenu.m (popup_activated_flag): New variable.
13901         (popup_activated): New function.
13902         (menu-or-popup-active-p): New exported lisp definition.
13903         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
13904         when popup done.
13905         (ns_popup_dialog): Set popup_activated_flag.
13907         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13908         version for GNUstep (handled by conditional typedef in nsterm.m).
13909         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13910         in rgb.txt).
13912         * process.c (init_process): Use DARWIN_OS, not DARWIN.
13914         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13916         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13918         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13919         shortcircuit if popup_activated like GTK and X toolkit.
13921         * m/inter386.h: Change DARWIN to DARWIN_OS.
13923         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
13924         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
13925         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.  Expand
13926         comment on NO_SOCK_SIGIO.
13928 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
13930         * nsterm.m (windowDidResize): Remove stopModal call.
13932 2008-08-03  Andreas Schwab  <schwab@suse.de>
13934         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13935         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13937 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
13939         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13940         Don't use uninitialized pointer variable when using getrlimit.
13942 2008-08-02  Jason Rumney  <jasonr@gnu.org>
13944         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13946 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
13948         * alloc.c (NSTATICS): Bump to 0x640.
13950         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13952         * lisp.h: Add prototype for directory_files_internal.
13954         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13955         New functions.
13956         (syms_of_process): Defsubr them.  Add initializations for various
13957         Q* symbols used in procfs_system_process_attributes.
13958         (procfs_list_system_processes, procfs_system_process_attributes)
13959         [HAVE_PROCFS]: New functions.
13960         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13961         (procfs_get_total_memory): New functions.
13963 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
13965         * xfaces.c (Fx_load_color_file): Fix previous change;
13966         it is #ifdef WINDOWSNT, not WINDOWS_NT.
13968 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
13970         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13972 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
13974         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13976 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
13978         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13980         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13981         define NSApplicationDelegateReplySuccess.
13982         (EmacsView -converstationIdentifier): Use long instead of
13983         NSInteger for GNUstep, since it doesn't have NSInteger.
13985         * xmenu.c: Revert last change.
13987         * keyboard.h: Fix last change.
13989 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
13991         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13992         on Windows.
13994 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
13996         Warning clearing and clean-up in NS port.
13997         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13998         Add prototypes.
13999         * nsgui.h (FACE_DEFAULT): Remove, unused.
14000         (XGCValues): Change colors to unsigned long.
14001         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14002         nsterm.m.
14003         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14004         (ns_list_fonts): Remove, unused.
14005         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14006         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14007         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14008         (nsfont_draw): Compare face colors to 0, not nil.
14009         * nsmenu.m (struct widget_value): Drop unneeded declaration.
14010         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14011         (-addSubmenuWithTitle:): Use NSMenuItem class.
14012         (ns_popup_menu): Use NO, not NULL, for enabled setting.
14013         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14014         (ns_clip_to_row): Make gc arg a BOOL.
14015         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14016         ns_clip_to_row() call.
14017         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14018         used).  Cast FRAME_FONT assignments.
14019         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14020         (ns_string_to_lispmod): Change arg to const char.
14021         (ns_term_init): Use NSMenuItem class.
14022         (EmacsApp -openFile:): Move to different section of file.
14023         (EmacsApp -application:openFiles:): Don't return a value, call
14024         -replyToOpenOrPrint:.
14025         (EmacsView -keyDown:): Fix up cast.
14026         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14027         (EmacsView -menuDown:): Cast tag in call to
14028         find_and_call_menu_selection().
14029         (ns_list_fonts): Remove, unused.
14030         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
14031         (ns_fontname_to_xlfd): Make static.
14032         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14033         Remove prototypes (now in keyboard.h).
14034         (next_menubar_widget_id): Remove, unused.
14035         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14036         Remove prototypes (now in keyboard.h).
14037         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14039 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
14041         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14042         (floatfns.o): Depend on syssignal.h.
14043         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14045         * systty.h: Fix previous change that removed BSD_TERMIOS.
14046         Add comments to #ifdefs.
14048 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
14050         * w32fns.c (w32-load-color-file): Remove.
14051         (x-open-connection): Use renamed Fx_load_color_file.
14052         * xfaces.c (x-load-color-file): Add.
14053         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14054         Emacs.clr.
14055         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14057 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
14059         * dbusbind.c (Fdbus_call_method_asynchronously)
14060         (Fdbus_method_error_internal): New defuns.
14061         (xd_read_message): Handle also reply messages.
14062         (Vdbus_registered_functions_table): Extend docstring.
14064 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
14066         * keyboard.c (gobble_input): Fix previous change.
14068 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
14070         * bitmaps/README:
14071         * xfns.c:
14072         * termcap.c:
14073         * term.c:
14074         * syswait.h:
14075         * systty.h:
14076         * systime.h:
14077         * syssignal.h:
14078         * sysdep.c:
14079         * process.h:
14080         * process.c:
14081         * print.c:
14082         * ndir.h:
14083         * lread.c:
14084         * keyboard.c:
14085         * getpagesize.h:
14086         * floatfns.c:
14087         * fileio.c:
14088         * emacs.c:
14089         * doc.c:
14090         * dispnew.c:
14091         * dired.c:
14092         * data.c:
14093         * callproc.c:
14094         * buffer.c:
14095         * README:
14096         * Makefile.in:
14097         * s/template.h:
14098         * s/msdos.h:
14099         * m/vax.h: Remove VMS support.
14100         * s/vms.h:
14101         * vlimit.h:
14102         * uaf.h:
14103         * temacs.opt:
14104         * param.h:
14105         * ioctl.h: Remove file.
14107 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
14109         * s/ms-w32.h (MULTI_KBOARD): Remove.
14110         * xterm.c:
14111         * xselect.c:
14112         * xfns.c:
14113         * window.c:
14114         * w32term.c:
14115         * w32fns.c:
14116         * terminal.c:
14117         * termhooks.h:
14118         * term.c:
14119         * sysdep.c:
14120         * keyboard.h:
14121         * keyboard.c:
14122         * frame.h:
14123         * frame.c:
14124         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14125         * config.in: Regenerate.
14127 2008-07-30  Jason Rumney  <jasonr@gnu.org>
14129         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14131         * w32font.c (w32font_encode_char): Leave as unicode if in range.
14132         (w32font_open_internal): Get unicode version of textmetrics.
14133         Don't enable or disable glyph indices here.
14134         (w32font_open): Disable use of glyph indices.
14136         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14138 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
14140         * minibuf.c (Vread_buffer_function): Doc fix.
14142 2008-07-30  John Paul Wallington  <jpw@pobox.com>
14144         * minibuf.c (read_buffer_completion_ignore_case): New var.
14145         (Fread_buffer): Use it.
14147 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
14149         * systty.h (sensemode): Remove empty #if.  Remove reference to
14150         BSD_TERMIOS, unused.
14152         * sysdep.c: Remove reference to DGUX.
14153         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14155         * config.in: Regenerate.
14157 2008-07-30  Jason Rumney  <jasonr@gnu.org>
14159         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14161 2008-07-29  Jason Rumney  <jasonr@gnu.org>
14163         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14164         is populated.
14165         (uniscribe_encode_char): Always use uniscribe.
14166         Avoid using context if cache is populated.
14168 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
14170         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14171         open menu.
14173         * gtkutil.c (menu_nav_ended): Remove.
14174         (create_menus): Remove signal connect for menu_nav_ended.
14176 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
14178         * xdisp.c (redisplay_window): Check return value of
14179         compute_window_start_on_continuation_line before forcing a window
14180         start.
14182 2008-07-28  Jason Rumney  <jasonr@gnu.org>
14184         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14186         * w32term.c (w32_enable_unicode_output, cleartype_active):
14187         Remove obsolete display options.
14188         (x_draw_glyph_string_background): Don't use old cleartype_active
14189         workaround.
14190         (w32_initialize): Remove cleartype_active initialization.
14191         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14193 2008-07-28  Andreas Schwab  <schwab@suse.de>
14195         * lisp.h (init_weak_hash_tables, syms_of_font)
14196         (xd_read_queued_messages, syms_of_dbusbind): Declare.
14197         (remove_hash_entry): Don't declare.
14198         * eval.c (maybe_call_debugger): Make static and move before use.
14199         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14200         * xdisp.c: Include "gtkutil.h" if USE_GTK.
14201         * xterm.h (x_set_frame_alpha): Declare.
14203 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
14205         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14206         (create_menus): Connect selection-done to menu_nav_ended.
14208 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
14210         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14211         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
14212         parameter with read of 'alpha' one.
14213         (Qns_frame_parameter): Remove.
14214         * nsselect.m (selection-coding-system)
14215         (next-selection-coding-system, Vselection_coding_system)
14216         (Vnext_selection_coding_system): Drop.
14218 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
14220         * nsfns.m (do-applescript, do_applescript): Rename to
14221         ns-do-applescript, ns_do_applescript, and move within file.
14223 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
14225         Remove support for Mac Carbon.
14226         * mactoolbox.c:
14227         * macterm.h:
14228         * macterm.c:
14229         * macselect.c:
14230         * macmenu.c:
14231         * macgui.h:
14232         * macfns.c:
14233         * mac.c: Remove file.
14234         * s/darwin.h:
14235         * m/intel386.h:
14236         * xfaces.c:
14237         * xdisp.c:
14238         * window.c:
14239         * tparam.c:
14240         * termhooks.h:
14241         * termcap.c:
14242         * term.c:
14243         * syssignal.h:
14244         * sysselect.h:
14245         * sysdep.c:
14246         * process.c:
14247         * lread.c:
14248         * lisp.h:
14249         * keyboard.c:
14250         * image.c:
14251         * fringe.c:
14252         * frame.h:
14253         * frame.c:
14254         * fontset.c:
14255         * font.h:
14256         * font.c:
14257         * fns.c:
14258         * fileio.c:
14259         * emacs.c:
14260         * dispnew.c:
14261         * dispextern.h:
14262         * config.in:
14263         * atimer.c:
14264         * Makefile.in: Remove code for Carbon.
14266 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14268         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14270 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14272         * macterm.h (kCGBitmapByteOrder32Host): New define for
14273         non-universal SDKs.
14275         * image.c (mac_create_cg_image_from_image, image_load_image_io)
14276         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14278         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14279         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14281 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
14283         * w32inevt.c: Include dispextern.h.
14285 2008-07-26  Andreas Schwab  <schwab@suse.de>
14287         * print.c (print_object): Fix off-by-one in last change.
14289 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
14291         * term.c (syms_of_term): Don't initialize default_orig_pair,
14292         default_set_foreground and default_set_background on Windows.
14294 2008-07-25  Jason Rumney  <jasonr@gnu.org>
14296         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14297         ScriptItemize.  Clean up return value checking.  Remove unused
14298         variables.
14299         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14300         shaping engine.
14302         * w32font.c (w32font_has_char): Handle the case where we can't
14303         determine the script for a character.
14305 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14307         * term.c (syms_of_term): Initialize default_orig_pair,
14308         default_set_foreground, and default_set_background.
14310         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14311         clash (bug#86).
14312         (getloadavg): Callers changed.
14314         * image.c (svg_load_image): Fix last change.
14315         (svg_load_image): Use rsvg_handle_get_dimensions to check that
14316         image size is valid.  Use g_object_unref instead of deprecated
14317         rsvg_handle_free to free rsvg handle.
14318         (x_from_xcolors): Don't initialize pixmap (silence compiler).
14320 2008-07-25  Jason Rumney  <jasonr@gnu.org>
14322         * w32font.c (w32font_encode_char): Encode characters outside BMP as
14323         surrogates before looking up glyph index.
14324         (w32font_text_extents): Encode as surrogates if falling back to
14325         functions that need UTF-16 wide chars.
14327         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14328         BMP as surrogates before looking up glyph index.
14330 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14332         * image.c (svg_load_image): Check for failure in return value of
14333         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
14335 2008-07-25  Jason Rumney  <jasonr@gnu.org>
14337         * w32font.c (Fx_select_font): Reverse sense of second arg.
14339 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
14341         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14342         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14344         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14345         (PURESIZE): Use it.
14347 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
14349         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14350         * m/alpha.h (TEXT_END):
14351         * m/ibmrs6000.h (TEXT_END):
14352         * m/macppc.h (TEXT_END):
14353         * s/darwin.h (TEXT_END):
14354         * s/msdos.h (TEXT_END): Remove, unused.
14355         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14356         * s/cygwin.h: Remove comment.
14358         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14359         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14360         * m/intel386.h (DOT_GLOBAL_START):
14361         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14362         (USG): Remove, file not used on USG platforms.
14364         * Makefile.in (HAVE_X11): Remove empty #else.
14366 2008-07-24  Andreas Schwab  <schwab@suse.de>
14368         * fileio.c (Finsert_file_contents): Properly adjust undo list
14369         after format conversion.
14371 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
14373         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14374         (menu_nav_ended): Remove.
14375         (create_menus): Remove signal connect for menu_nav_ended.
14376         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14377         create_menus.
14378         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14380 2008-07-23  Jason Rumney  <jasonr@gnu.org>
14382         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14383         with opened font.
14384         (w32font_open): Set font type to gdi.
14386         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14388 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
14390         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14391         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14392         defines it.
14393         * unexec.c (ADDR_CORRECT): Define unconditionally.
14395         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14397         * unexec.c: Remove code depending on !COFF and USG, the file is
14398         not used for such systems.
14400         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14401         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14402         (LD_SWITCH_SYSTEM_1): Remove, update users.
14404         * s/darwin.h (DATA_END):
14405         * m/intel386.h (DATA_END):
14406         * m/ibmrs6000.h (DATA_END):
14407         * m/alpha.h (DATA_END): Remove, unused.
14409         * config.in: Regenerate.
14410         * s/ms-w32.h (subprocesses): Define unconditionally.
14411         * s/template.h (subprocesses): Update comment.
14412         * s/vms.h (subprocesses):
14413         * s/usg5-4.h (subprocesses):
14414         * s/hpux10-20.h (subprocesses):
14415         * s/gnu-linux.h (subprocesses):
14416         * s/cygwin.h (subprocesses):
14417         * s/bsd-common.h (subprocesses):
14418         * s/aix4-2.h (subprocesses):
14419         * s/darwin.h (subprocesses): Do not define, defined by default now.
14421         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14422         Remove all references.
14423         (temacs): Add GNUstep specific ld flags.
14425         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14426         similarly to what X does.
14428 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
14430         * nsfns.m (x-list-fonts): Remove.
14431         (syms_of_nsfns): Drop the x-list-fonts declaration.
14432         * nsterm.m: Get rid of remaining "//" comments.
14434 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
14436         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14438         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14439         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14440         (Fns_own_selection_internal, Fx_disown_selection_internal)
14441         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14443         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14444         ... */' style of docstrings.  Doc fixes.
14446 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
14448         * terminfo.c (UP, BC, PC): Undo previous change.
14450         * nsfns.m: Rename ns prefixed functions/variables to the
14451         corresponding x versions.  Update references.
14453 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
14455         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14457 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
14459         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14460         Remove forwarding functions.
14461         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14462         non-static.
14463         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14464         non-static.
14465         (ns_frame_parm_handlers): Use the new names.
14466         (syms_of_nsfns): Move to the end of file.
14468         * nsterm.m (syms_of_nsterm): Move to the end of file.
14470         * dispnew.c (init_display): Remove code for X10.
14472 2008-07-22  Jason Rumney  <jasonr@gnu.org>
14474         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14475         bare drive.
14477 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
14479         * nsterm.m (syms_of_nsterm): Remove debugging println.
14481 2008-07-22  David Reitter  <david.reitter@gmail.com>
14483         * nsfns.m (do_applescript, F_do_applescript): NS version of the
14484         Carbon implementation of the same functionality: execute arbitrary
14485         AppleScript code.
14487 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
14489         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14490         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14491         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14492         (Fx_display_mm_height, Fx_display_mm_width)
14493         (Fx_display_backing_store, Fx_display_visual_class)
14494         (Fx_display_save_under, Fx_open_connection)
14495         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14496         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14497         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14498         (Fx_display_pixel_width, Fx_display_pixel_height)
14499         (Fx_display_usable_bounds, Fx_display_planes)
14500         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14501         ... */' style of docstrings.
14503 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
14505         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14506         on this platform.
14507         (mips):
14508         * m/iris4d.h (mips): Do not define.
14509         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14511         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14513         * image.c:
14514         * nsfns.m:
14515         * nsselect.m:
14516         * nsterm.h:
14517         * nsterm.m: Rename ns prefixed functions/variables to the
14518         corresponding x versions.  Update references.
14520         * m/ibms390x.h (NO_REMAP): Do not undefine.
14522         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14524 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
14526         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14527         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14528         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14529         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14530         (Fns_display_mm_height, Fns_display_mm_width)
14531         (Fns_display_backing_store, Fns_display_visual_class)
14532         (Fns_display_save_under, Fns_open_connection)
14533         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14534         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14535         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14536         (Fns_display_pixel_width, Fns_display_pixel_height)
14537         (Fns_display_usable_bounds, Fx_display_planes)
14538         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14540 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
14542         * print.c (print_object): Check print_depth before searching for
14543         circularities.
14545 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
14547         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14548         only sprintf.
14550 2008-07-21  Kenichi Handa  <handa@m17n.org>
14552         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14554 2008-07-20  Andreas Schwab  <schwab@suse.de>
14556         * syntax.c (find_start_pos, find_start_value)
14557         (find_start_value_byte, find_start_begv, find_defun_start)
14558         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14560 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
14562         * s/sol2-3.h: Insert contents of s/sol2.h.
14563         (LD_SWITCH_SYSTEM): Remove redundant definition.
14564         * s/sol2.h: Remove, unused.
14566 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
14568         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14570 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
14572         * Makefile.in (ns_appdir): Fix typo in find command.
14574 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
14576         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14578         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14579         added not supported anymore.
14581         * s/usg5-4-2.h (LIBS_SYSTEM):
14582         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14584         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14585         * s/lynxos.h (GETPGRP_NO_ARG):
14586         * s/hpux10-20.h (NO_SIOCTL_H):
14587         * s/gnu.h (GETPGRP_NO_ARG):
14588         * s/gnu-linux.h (NO_SIOCTL_H):
14589         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14590         * s/cygwin.h (GETPGRP_NO_ARG):
14591         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14592         (C_DEBUG_SWITCH): Remove duplicate definition.
14594         * m/ibms390.h: Remove boilerplate comments.
14596         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14598         * process.c (HAVE_SERIAL): Consolidate ifdefs.
14599         (wait_reading_process_output): Remove code for SunOS, platform not
14600         supported anymore.  Use SOLARIS2 instead of sun.
14602 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
14604         * font.c (font_open_by_name): Under NS, default lface height to zero.
14605         (font_open_for_lface): Under NS, set size based on frame fontsize.
14606         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14607         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14609 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
14611         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14612         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14613         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14614         YES/NO.
14615         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14616         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14617         * Makefile.in (clean): Clear out build destination dir.
14619 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
14621         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14622         xterm, xselect.
14623         * lisp.h: Remove declaration of hash_remove.
14624         * nsgui.h: Remove redefinitions of hash_remove.
14625         * fns.c (hash_remove): Rename to hash_remove_from_table.
14627 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
14629         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14630         strdup() the family UTF8String before modifying it.
14632 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
14634         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14635         NS_FACE_BACKGROUND with 0 instead of nil.
14636         * nsfont.m (nsfont_draw): Same.
14638 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
14640         * nsfns.m (ns_set_background_color): Fix crash.
14642 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
14644         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14646 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
14648         * puresize.h (BASE_PURESIZE): Increase to 1240000.
14650 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14652         * gtkutil.c: Include <config.h> instead of "config.h".
14654         * lisp.h (Foverlay_buffer): Add EXFUN.
14656         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14657         child process to complete child_setup.  Undo 2005-09-21 change.
14659         * s/darwin.h: Mention setsid after vfork.
14661 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14663         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14664         Depend on macgui.h.
14666         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14667         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14669         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14670         and f19.
14671         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14673         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14674         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14675         Remove enumerators.
14677         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14678         Check if FACE_FROM_ID returns NULL.
14680 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
14682         * w32inevt.c (change_frame_size): Remove extern declaration.
14683         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14684         change_frame_size.
14686 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
14688         * getloadavg.c: Revert last change (2008-07-15).
14690 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
14692         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14693         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14694         from configure.
14696 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
14698         * s/sol2.h:
14699         * s/sol2-4.h: Reorganize conditionals.
14701         * ecrt0.c: Remove code depending on m68000, not used anymore.
14703         * fns.c (hash_remove): Make static.
14704         * lisp.h (hash_remove): Don't prototype.
14706         * m/ibmrs6000.h:
14707         * m/ibms390x.h:
14708         * m/macppc.h: Remove boilerplate comments.
14710         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14711         Solaris, which does not need them.
14713         * m/vax.h: Remove comments about unsupported systems.
14715         * s/darwin.h: Reorganize ifdefs.
14717 2008-07-17  Andreas Schwab  <schwab@suse.de>
14719         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14721 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
14723         Use SDATA.  Follow coding convention of placing operators at
14724         beginning of next line rather than end of previous line, and placing
14725         spaces around infix operators.
14727         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14728         in case it was defined already.
14729         USE @GNUSTEP_MAKEFILES@ rather than envvars.
14730         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14731         ns_default.
14732         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14733         Lisp_Objects.
14734         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14735         (ns_defined_color, ns_color_to_lisp): Declare.
14736         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14737         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14738         it's accepted even with USE_LISP_UNION_TYPE.
14739         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14740         (update_frame_tool_bar): Remove apparently obsolete tests for
14741         non-integerness of f->tool_bar_lines.
14742         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14743         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14744         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14745         (nsfont_open): Don't confuse NULL for Qnil.
14746         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14747         * menu.h (find_and_call_menu_selection):
14748         * menu.c (find_and_call_menu_selection): Use just int for vector size.
14749         (find_and_return_menu_selection): Always return something.
14750         * frame.h: Include dispextern.h for Display_Info.
14751         (display_x_get_resource): Declare.
14753 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
14755         * syntax.c: Remove stdio.h include accidentally introduced in
14756         Emacs.app commit.
14757         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14758         NS_IMPL_COCOA.
14759         * keyboard.c (handle_async_input, input_available_signal): Remove
14760         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14762 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
14764         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14765         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14766         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14767         Use SDATA.
14769         * keymap.c: Remove all NS-specific code.
14770         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14771         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14772         where_is_preferred_modifier, return a different value depending on how
14773         preferred is the binding.
14774         (where_is_internal): Adjust accordingly.
14775         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14776         Adjust to new preferred_sequence_p.
14777         (syms_of_keymap): Declare `where-is-preferred-modifier'.
14778         * keyboard.c (parse_solitary_modifier): Not static any more.
14779         * keyboard.h (parse_solitary_modifier): Declare.
14781 2008-07-16  Andreas Schwab  <schwab@suse.de>
14783         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14784         of easymenu.
14786 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
14788         * xdisp.c (move_it_in_display_line): Account for word wrap, so
14789         that we don't move off the line.
14791 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
14793         * keyboard.c (Qsuper): Remove.
14794         (parse_menu_item): Don't call where_is_internal specially for NS.
14796 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
14798         * s/gnu-linux.h: Remove boilerplate comments.
14800         * m/alpha.h (__ELF__): Consolidate conditions.
14802         * m/m68k.h (linux): Use GNU_LINUX instead.
14803         Remove boilerplate comments.
14805         * m/intel386.h: Undo refactoring from previous change.
14806         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14807         too, remove dead code.
14808         (linux): Use GNU_LINUX instead.
14810 2008-07-16  Jason Rumney  <jasonr@gnu.org>
14812         * w32gui.h: Repeat 26 June changes lost by last change.
14814 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
14816         * systty.h: Remove code for Aix on 386, unsupported platform.
14818         * s/ms-w32.h: Remove boilerplate comments.
14819         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14821         * s/gnu-linux.h (TERM): Remove support.
14822         (HAVE_SYSVIPC): Remove, unused.
14823         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14824         for this system.
14826         * process.c: Remove support for IRIS, unused.
14827         Remove support for TERM, not relevant anymore.
14829         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14830         used with the definition.
14832         * s/aix4-2.h (static): Do not undef.
14834         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14835         only used on Aix.
14836         (HAVE_SYSVIPC): Remove, unused.
14838         * m/hp800.h (CANNOT_DUMP): Do not undef.
14840         * m/alpha.h: Fix comment.
14842         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14843         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14844         used by this configuration.
14845         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14846         * unexec.c: Remove code depending on HPUX and
14847         USG_SHARED_LIBRARIES, not used with this file.  Remove code
14848         depending on IRIS, unused.  Remove if 0-ed code.
14850         * s/template.h: Remove comments about static.
14852         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14853         Remove if 0-ed code.
14854         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14855         were the same as the default.
14856         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14857         Remove boilerplate comments.
14858         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14859         (HAVE_SYSVIPC): Remove, unused.
14860         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14862         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14863         Remove boilerplate comments.
14864         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14865         Remove boilerplate comments.
14866         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14867         Remove boilerplate comments.
14868         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14870         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14871         USG systems which do not use DATA_SEG_BITS.
14872         Refactor code.  Remove boilerplate comments.
14874         * m/ibms390.h:
14875         * m/m68k.h:
14876         * s/bsd-common.h:
14877         * s/cygwin.h:
14878         * s/darwin.h:
14879         * s/freebsd.h:
14880         * s/gnu.h:
14881         * s/msdos.h: Remove boilerplate comments.
14883         * m/iris4d.h: Remove boilerplate comments and code for systems that
14884         do not use this file.
14885         (IRIS_4D): Remove, unused.
14887         * m/mips.h: Remove boilerplate comments and code for systems that
14888         do not use this file.
14889         (SIGN_EXTEND_CHAR):
14890         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14891         * unexmips.c: Remove file, unused.
14893         * editfns.c (Fuser_full_name): Replace the only use of
14894         USER_FULL_NAME with its value.
14895         * config.in: Regenerate.
14897 2008-07-16  David Reitter  <david.reitter@gmail.com>
14899         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14900         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14902 2008-07-16  Glenn Morris  <rgm@gnu.org>
14904         * emacs.c (system-type): Doc fix.
14906 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
14908         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14909         If the cache doesn't work, let's fix it, rather than work around it.
14911 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
14913         * Makefile.in: Correct additions for nsfont.o in last commit.
14914         * nsfont.m: New file (forgot last commit).
14916 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
14918         * callproc.c (set_initial_environment): Initialize
14919         Vprocess_environment under CANNOT_DUMP (fixes crash when
14920         batch-compiling for bootstrap).
14922 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
14923             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14925         * frame.c (make_initial_frame): Call init_frame_faces(f) in
14926         CANNOT_DUMP case -- fix crash due to different init order.
14928 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
14930         Changes and additions for NeXTstep windowing system (Cocoa and
14931         GNUstep) support.
14933         * Makefile.in:
14934         * config.in: Support defines and build commands for NS port.
14935         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14936         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14937         * dispextern.h: Include nsgui.h and add needed typedefs under NS
14938         windowing.
14939         (struct face): Add synth_ital field.
14940         * dispnew.c: Include nsterm.h when compiling under NS windowing.
14941         (init_display): Initialize Vinitial_window_system to "ns" when so
14942         compiled.
14943         * emacs.c: Include GSConfig.h when compiling under GNUstep.
14944         (display_arg): Use under NS.
14945         (main): Under NS, allocate autorelease pool and handle command line
14946         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14947         (standard_args): Add NS-specific args.
14948         (shut_down_emacs): Shut down NS terminal if compiled under NS.
14949         * font.c (DEFAULT_ENCODING): New variable.
14950         (font_find_for_lface): Use it.
14951         (syms_of_font): Load syms_of_nsfont under NS.
14952         * font.h: Declare nsfont_driver when compiled under NS.
14953         * fontset.c: When compiling under NS, include nsterm.h.
14954         (fontset_from_font): Autoconstruct fontset under NS.
14955         * frame.c (various): Under NS, include nsterm.h, add Qns window system
14956         symbol, document and use it.
14957         (do_switch_frame): When for_deletion under Cocoa, add
14958         Fraise_frame(Qnil).
14959         (x_set_frame_parameters): Ensure font attribute changes are picked up.
14960         (x_get_arg): Allow "yes" and "no" as boolean values.
14961         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
14962         Qright under Cocoa.
14963         (focus-follows-mouse): Default to 0 under NS.
14964         * frame.h (enum output_method): Add output_ns.
14965         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14966         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14967         (FRAME_WINDOW_P): NS-specific definition.
14968         * fringe.c (max_used_fringe_bitmap): Make public.
14969         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14970         (getloadavg): Use NeXT code under descendant OS's.
14971         * image.c (includes and header section, x_create_bitmap_from_data)
14972         (x_create_bitmap_from_file, free_bitmap_record, image_background)
14973         (image_background_transparent, x_clear_image_1)
14974         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14975         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14976         (x_to_xcolors, x_from_xcolors, x_disable_image)
14977         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14978         other GUIs, including XPM support using code originally written for
14979         Carbon GUI.
14980         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14981         using NS API.
14982         (image_ascent): Use font metrics macros instead of direct struct field
14983         access.
14984         * keyboard.c (includes): Add nsterm.h when compiling under NS.
14985         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14986         Also, handle NS as GTK for menu bar purposes.
14987         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14988         toolkit where they differ.
14989         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
14990         use cachelist, still needed under NS.
14991         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14992         (struct widget_value): Define it here for menu.c.
14993         * keymap.c (includes): Include modifier internals.
14994         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14995         NS.
14996         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14997         support for preferring sequences using certain modifiers, specified by
14998         the FIRSTONLY argument.
14999         * lisp.h (hash_remove): Rename to avoid name clash when compiling
15000         under NS GNUstep implementation.
15001         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15002         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15003         * menu.c: Include nsterm.h under NS.
15004         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15005         (free_menubar_widget_tree_value, update_submenu_strings)
15006         (find_and_call_menu_selection): Treat NS as X and NT.
15007         (find_and_return_menu_selection): New function, used for popup menus.
15008         * nsgui.h:
15009         * nsterm.h:
15010         * nsfns.m:
15011         * nsimage.m:
15012         * nsmenu.m:
15013         * nsselect.m:
15014         * nsterm.m: New files.
15015         * process.c (wait_reading_process_output): Under NS, call ns_select()
15016         instead of plain select().
15017         * syntax.c (char_quoted): Under NS, avoid a crash when called near
15018         beginning of buffer.
15019         * sysselect.h (init_process): Rename when compiling under Cocoa to
15020         avoid name conflict.
15021         * termhooks.h (display_info): Add ns_display_info to union.
15022         * terminal.c (Fterminal_live_p): Add ns to terminal types.
15023         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15024         COCOA environment.
15025         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15026         unexec() signature.  (Note, this will dump, but the resulting file
15027         crashes; unexosx is used instead; keeping around for reference and
15028         possible aid in getting dump working under GNUstep.)
15029         * w32gui.h (button_type, widget_value): Remove definitions (now in
15030         keyboard.h).
15031         * window.c: Include nsterm.h when compiling under NS.
15032         * xdisp.c (includes): Include nsterm.h when compiling under NS.
15033         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15034         other GUI windowing systems.
15035         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15036         GTK.
15037         (x_consider_frame_title): Under NS, set icon type and frame
15038         modified-state indicator; use ns_set_name_as_filename() when using
15039         formatted title.
15040         (update_window_cursor): Make public when compiling under NS.
15041         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15042         (hourglass_atimer, Vhourglass_delay
15043         * xfaces.c (header section, init_frame_faces, clear_font_table)
15044         (defined_color, unload_color, x_face_list_fonts)
15045         (prepare_face_for_display): Add NS support parallel to other GUIs.
15046         Emulate GCs like other non-X GUIs.
15047         (split_font_name): Don't lowercase font name under NS.
15048         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15049         under NS.
15050         * s/darwin.h: Add support for compilation under NS.
15052 2008-07-15  Jason Rumney  <jasonr@gnu.org>
15054         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15055         (w32_show_hourglass): Rename from show_hourglass.
15056         (w32_hide_hourglass): Rename from hide_hourglass.
15057         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15058         (Vhourglass_delay): Declare extern.
15059         (hourglass_started): Remove.
15061         * xdisp.c (Vhourglass_delay): Remove static.
15062         (hourglass_started, start_hourglass, cancel_hourglass):
15063         Don't include these versions on WINDOWSNT.
15065 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
15067         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15068         variables (formerly in xfns.c).
15069         (show_hourglass, hide_hourglass): New prototypes (same).
15070         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15071         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15072         in xfns.c).
15073         (syms_of_xdisp): Declare/initialize display-hourglass,
15074         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
15075         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15076         formerly in xfns.c.
15077         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15078         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15079         (start_hourglass, cancel_hourglass): Remove.
15080         (show_hourglass, hide_hourglass): Remove prototypes and static
15081         modifiers.
15082         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15083         hourglass_atimer, hourglass_shown_p declaration/initialization.
15084         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15085         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15086         (start_hourglass, cancel_hourglass): Remove.
15087         (show_hourglass, hide_hourglass): Remove prototypes and static
15088         modifiers.
15089         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15090         hourglass_atimer, hourglass_shown_p declaration/initialization.
15091         * w32fns.c (display_hourglass_p, Vhourglass_delay)
15092         (DEFAULT_HOURGLASS_DELAY): Remove.
15093         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15094         hourglass_shown_p declaration/initialization.
15096 2008-07-14  Jason Rumney  <jasonr@gnu.org>
15098         * w32fns.c (w32_get_arg): Remove wrapper function.
15099         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15100         directly.
15101         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
15103 2008-07-14  Kenichi Handa  <handa@m17n.org>
15105         * xfont.c (xfont_open): Add workaround for X's bug.
15107 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
15109         * fontset.c: Include <stdio.h> unconditionally.
15111 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
15113         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15114         for filtering.
15116 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
15118         * s/vms.h: Use __GNUC__ instead of _GNUC_.
15120         * m/macppc.h:
15121         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
15123         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
15124         (SPECIAL_EMACS_INT):
15125         * m/ia64.h (SPECIAL_EMACS_INT):
15126         * m/amdx86-64.h (SPECIAL_EMACS_INT):
15127         * s/gnu.h (NLIST_STRUCT):
15128         * s/aix4-2.h (X11R5_INHIBIT_I18N):
15129         * s/gnu-linux.h (LINUX):
15130         * s/msdos.h (HAVE_FACES):
15131         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15133         * systty.h:
15134         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15135         anymore.
15137 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
15139         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
15140         always defined as int.
15142         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15143         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15144         * s/gnu-linux.h (HAVE_WAIT_HEADER):
15145         * s/freebsd.h (HAVE_WAIT_HEADER):
15146         * s/bsd-common.h (HAVE_UNION_WAIT):
15147         * s/aix4-2.h (HAVE_WAIT_HEADER):
15148         * m/mips.h (HAVE_UNION_WAIT):
15149         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15150         (COFF, static): Do not define, they are undefined later in the file.
15152         * process.c (update_status): Don't use a union.
15153         (status_convert):
15154         (sigchld_handler): Use int instead of WAITTYPE.
15156 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
15158         * indent.c (Fvertical_motion): Restore hscroll before moving to
15159         goal column.
15161 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
15163         * lisp.h: Remove left over code.
15165 2008-07-11  Andreas Schwab  <schwab@suse.de>
15167         * lisp.h: Fix logic in last change.
15169         * menu.h: New file.
15170         * menu.c: Include it.
15171         * xmenu.c: Likewise.
15172         * Makefile.in: Update dependencies.
15174 2008-07-11  Kenichi Handa  <handa@m17n.org>
15176         * fontset.c (fontset_from_font): Cancel the previous change.
15178 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
15180         * lisp.h:
15181         * w32heap.c:
15182         * emacs.c:
15183         * alloc.c: Replace all references of NO_UNION_TYPE with
15184         USE_LISP_UNION_TYPE.
15186         * m/xtensa.h (NO_UNION_TYPE):
15187         * m/vax.h (NO_UNION_TYPE):
15188         * m/template.h (NO_UNION_TYPE):
15189         * m/sparc.h (NO_UNION_TYPE):
15190         * m/mips.h (NO_UNION_TYPE):
15191         * m/macppc.h (NO_UNION_TYPE):
15192         * m/m68k.h (NO_UNION_TYPE):
15193         * m/iris4d.h (NO_UNION_TYPE):
15194         * m/intel386.h (NO_UNION_TYPE):
15195         * m/ibms390x.h (NO_UNION_TYPE):
15196         * m/ibms390.h (NO_UNION_TYPE):
15197         * m/ibmrs6000.h (NO_UNION_TYPE):
15198         * m/ia64.h (NO_UNION_TYPE):
15199         * m/hp800.h (NO_UNION_TYPE):
15200         * m/arm.h (NO_UNION_TYPE):
15201         * m/amdx86-64.h (NO_UNION_TYPE):
15202         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15203         defining it the same.
15205 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
15207         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15209 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
15211         * fileio.c:
15212         * sysdep.c:
15213         * systty.h:
15214         * m/ibmrs6000.h:
15215         * m/iris4d.h:
15216         * s/aix4-2.h:
15217         * s/freebsd.h:
15218         * s/gnu-linux.h:
15219         * s/hpux10-20.h:
15220         * s/hpux11.h:
15221         * s/netbsd.h:
15222         * s/sol2-3.h:
15223         * s/sol2-4.h:
15224         * s/sol2.h:
15225         * s/usg5-4.h:
15226         * s/vms.h: Remove references to unused variables.
15228 2008-07-10  Andreas Schwab  <schwab@suse.de>
15230         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15231         pattern before matching the generic family.
15233 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
15235         * unexec.c:
15236         * s/vms.h:
15237         * s/usg5-4-2.h:
15238         * s/sol2-5.h:
15239         * s/freebsd.h:
15240         * s/darwin.h: Remove dead code.
15242         * m/template.h:
15243         * m/sparc.h:
15244         * m/mips.h:
15245         * m/m68k.h:
15246         * m/iris4d.h:
15247         * m/intel386.h:
15248         * m/ibms390x.h:
15249         * m/ibms390.h:
15250         * m/ia64.h:
15251         * m/hp800.h:
15252         * m/arm.h:
15253         * m/amdx86-64.h: Remove dead code and references to unused
15254         and compiler defined symbols.
15256         * unexmips.c:
15257         * unexelf.c: Remove references to desupported systems.
15259         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15261         * m/powermac.h: Remove boilerplate comments.
15262         (NO_REMAP): Remove unused definition.
15264         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15265         define them.
15267 2008-07-10  Kenichi Handa  <handa@m17n.org>
15269         * xfont.c (xfont_open): Log the reason of failure.
15271 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
15273         * fontset.c (fontset_get_font_group):
15274         * font.c (font_check_otf): Specify argument types.
15276 2008-07-09  Kenichi Handa  <handa@m17n.org>
15278         * coding.c (detect_coding_utf_8): Set detect_info->found only when
15279         non-ASCII char is found.
15281         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15282         (reorder_font_vector): Change the arg preferred_family to font.
15283         Prefer the spec matching with font.
15284         (fontset_get_font_group): New function.
15285         (fontset_find_font): Change the format of an element of a realized
15286         fontset.  Use fontset_get_font_group.
15287         (fontset_font): Try the current fontset, the default fontset, the
15288         fallbacks of the current fontset, and the fallbacks of the default
15289         fontset in this order.
15290         (face_for_char): Delete the shortcut to use the current font.
15291         (fontset_from_font): Don't set fonts for Latin in the fontset.
15293         * font.h (font_make_object, font_match_p): Adjust prototypes.
15295         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15297         * font.c (font_make_object): New arg entity and pixelsize.
15298         (font_check_otf_features, font_check_otf): New functions.
15299         (font_match_p): Check :lang, :script, and :otf properties.
15301         * xfont.c (xfont_open): Adjust it for the change of
15302         font_make_object.
15303         (xfont_text_extents): Fix initial setting of metrics.
15305         * ftfont.c (struct ftfont_info): New member index, delete member
15306         fc_charset_idx.  Make the member order compatible with struct
15307         xftfont_info.
15308         (fc_charset_table): Change charset names to registry names.
15309         (ftfont_pattern_entity): Delete the args registry and
15310         fc_charset_idx.  Change the value of :font-entity property
15311         to (FONTNAME . INDEX).  Always set :registry property to
15312         `iso10646-1'.
15313         (struct ftfont_cache_data): New struct.
15314         (ftfont_lookup_cache): New arg for_face.
15315         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15316         (ftfont_driver): Set the member otf_capability.
15317         (ftfont_get_charset): Adjust it for the change of
15318         fc_charset_table.
15319         (OTF_TAG_SYM): New macro.
15320         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
15321         for the change of fc_charset_table.
15322         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15323         ftfont_pattern_entity.  Add FC_INDEX to objset.
15324         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15325         and ftfont_pattern_entity.
15326         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15327         font_make_object, struct ftfont_info.
15328         (ftfont_has_char): Use ftfont_get_fc_charset.
15329         (ftfont_otf_features, ftfont_otf_capability): New functions.
15330         (ftfont_shape): Use ftfont_get_otf.
15331         (ftfont_text_extents): Fix initial setting of metrics.
15333         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
15334         member order compatible with struct ftfont_info.
15335         (xftfont_open): Add FC_CHARSET to the pattern.  Set
15336         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
15337         properties if appropriate.
15338         (xftfont_close): Unlock the face.
15339         (xftfont_anchor_point, xftfont_shape): Deleted.
15340         (syms_of_xftfont): Don't set members anchor_point and shape of
15341         xftfont_driver.
15343         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15344         font_make_object.
15346         * w32font.c (w32font_open): Adjust it for the change of
15347         font_make_object.
15348         (w32font_open_internal): Don't set properties of font_object here.
15350 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
15352         * macfns.c (x_create_tip_frame):
15353         * w32fns.c (x_create_tip_frame):
15354         * xfns.c (x_create_tip_frame): Pass parameter argument to
15355         face-set-after-frame-default.
15357         * xfaces.c (Finternal_merge_in_global_face): Save merged
15358         attributes for the default face back into the face vector.
15360 2008-07-08  Andreas Schwab  <schwab@suse.de>
15362         * fontset.h: Declare fontset_from_font.  Don't declare
15363         new_fontset_from_font and fontset_from_font_name.
15364         * xterm.c: Include "fontset.h".
15365         * Makefile.in (xterm.o): Update dependencies.
15367 2008-07-08  Glenn Morris  <rgm@gnu.org>
15369         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
15370         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15372 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
15374         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15375         (x_set_frame_parameters): Don't bind it.
15377 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
15379         * w32fns.c (map_w32_filename): Declare extern.
15381 2008-07-07  Jason Rumney  <jasonr@gnu.org>
15383         * w32term.c (WS_EX_LAYERED): Define if not already.
15385 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
15387         * xfaces.c (set_font_frame_param): Don't try to set the font
15388         parameter if it is still unspecified in the lface.
15390 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
15392         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15393         face if it didn't already exist.
15395         * xdisp.c (try_window_id): Give up if word-wrapping is on.
15397 2008-07-05  Andreas Schwab  <schwab@suse.de>
15399         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15401 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
15403         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15404         word-wrapping.
15405         (IT_DISPLAYING_WHITESPACE): New macro.
15406         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15407         when word-wrapping.  Simplify word-wrapping logic.  Use correct
15408         pixel positions when saving copies of the iterator.
15409         (display_line): Use proper wrap point if the last character on a
15410         line was preceded by whitespace.
15412 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
15414         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15416 2008-07-04  Kenichi Handa  <handa@m17n.org>
15418         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15420         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15422 2008-07-02  Jason Rumney  <jasonr@gnu.org>
15424         * xfns.c (syms_of_xfns): Only define x-select-font when both
15425         HAVE_FREETYPE and USE_GTK.
15427         * xdisp.c (next_element_from_display_vector): Move assignment out
15428         of if statement.
15430 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
15432         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15434         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15435         (syms_of_fileio): Initialize and export them.
15436         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15438         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15439         (Fsystem_move_file_to_trash): New function.
15440         (syms_of_w32fns): Export it to lisp.
15442 2008-07-01  Jason Rumney  <jasonr@gnu.org>
15444         * w32font.c (w32font_text_extents): Don't count overhang as part
15445         of width.
15447 2008-06-30  Miles Bader  <miles@gnu.org>
15449         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15450         Add `avoid_cursor_p' field.
15452         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15453         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15454         (append_glyph, append_composite_glyph, produce_image_glyph)
15455         (append_stretch_glyph): Initialize avoid_cursor_p.
15456         (get_it_property): Rename from `get_line_height_property'.
15457         (x_produce_glyphs): Use get_it_property.
15458         (handle_line_prefix, push_display_prop): New functions.
15459         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15460         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15461         New variables.
15462         (syms_of_xdisp): Initialize them.
15464 2008-06-30  Kenichi Handa  <handa@m17n.org>
15466         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15467         XftDefaultSubstitute (they are called in XftFontMatch).
15468         (xftfont_open): Fix args to ftfont_font_format.
15470         * ftfont.c (fc_charset_table): New member lang.
15471         (ftfont_resolve_generic_family): New arg pattern.
15472         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15473         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15474         (ftfont_open): Fix args to ftfont_font_format.
15475         (ftfont_font_format): New arg filename.
15477 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
15479         * xfaces.c (Finternal_merge_in_global_face): If default face was
15480         modified, realize it again.  Update the font face attribute.
15482 2008-06-29  Jason Rumney  <jasonr@gnu.org>
15484         * w32term.c (x_set_frame_alpha): Fix logic.
15486 2008-06-29  Kenichi Handa  <handa@m17n.org>
15488         * fontset.c (Finternal_char_font): Return font-object instead of
15489         font-name.
15491         * composite.c (get_composition_id): Fix the width calculation for TAB.
15493 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
15495         * indent.c (Fvertical_motion): Properly handle float column arg.
15497 2008-06-28  Jason Rumney  <jasonr@gnu.org>
15499         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15500         (pfnSetLayeredWindowAttributes): New function pointer.
15501         (w32_initialize): Initialize it when supported.
15502         (x_set_frame_alpha): New function.
15504         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15505         (w32_frame_parm_handlers): Set alpha handler.
15507         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15509 2008-06-27  Jason Rumney  <jasonr@gnu.org>
15511         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15512         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15513         (w32_to_x_charset, x_to_w32_charset)
15514         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15515         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15516         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15517         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15518         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15519         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15520         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15521         (Qw32_charset_unicode): Remove.
15522         (syms_of_w32fns): Update for above changes.
15524         * w32font.c (w32_to_x_charset, x_to_w32_charset)
15525         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15526         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15527         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15528         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15529         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15530         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15531         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15532         (syms_of_w32font): Update for above changes.
15534 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
15536         * s/usg5-4.h: Fix previous change: keep the correct branch of a
15537         removed #if.
15538         (USG_SHARED_LIBRARIES): Remove duplicate definition.
15540 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
15541             Eli Zaretskii  <eliz@gnu.org>
15543         * makefile.w32-in (LOCAL_FLAGS):
15544         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15546         * sysdep.c (_spawnlp, _getpid):
15547         Declare with explicit _cdecl instead of _CRTAPI1.
15549         * editfns.c (Fget_internal_run_time):
15550         Check for WINDOWSNT with #ifdef, not #if.
15552 2008-06-26  Jason Rumney  <jasonr@gnu.org>
15554         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15556         * w32term.c (x_draw_glyph_string_foreground)
15557         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15558         Use FONT_HANDLE macro.
15559         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15561         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15562         (uniscribe_encode_char): Use FONT_HANDLE macro.
15564         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15565         (w32font_text_extents): Use precast w32_font.
15566         (w32font_close): Free cached metrics.
15567         (w32font_open_internal): Allocate space for name on stack.
15569 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
15571         * xdisp.c (extend_face_to_end_of_line): Fix last change.
15573 2008-06-26  Jason Rumney  <jasonr@gnu.org>
15575         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15576         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15578 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
15580         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15582 2008-06-26  Jason Rumney  <jasonr@gnu.org>
15584         * w32bdf.c, w32bdf.h: Remove obsolete files.
15586         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15588         * w32gui.h: Don't include w32bdf.h.
15589         (XCharStruct, enum w32_char_font_type, W32FontStruct):
15590         Remove obsolete font support.
15592         * w32font.h (struct w32font_info): Remove compat_w32_font.
15593         Add hfont member.
15594         (FONT_COMPAT): Remove obsolete macro.
15596         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
15597         (w32font_encode_char, w32font_text_extents): Use new hfont member.
15598         (w32font_open_internal): Remove compat code.  Set new hfont member.
15599         (Fx_select_font): Use new hfont member.
15601         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15602         (uniscribe_encode_char): Use new hfont member.
15604         * w32term.c (x_draw_glyph_string_foreground)
15605         (x_draw_composite_glyph_string_foreground): Use new hfont member.
15606         (x_draw_glyph_string): Use metrics in w32font_info.
15608 2008-06-26  Kenichi Handa  <handa@m17n.org>
15610         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15612 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
15614         * unexnext.c:
15615         * m/ews4800.h:
15616         * m/hp9000s300.h:
15617         * m/ibm370aix.h:
15618         * m/mips-siemens.h:
15619         * m/ncr386.h:
15620         * m/next.h:
15621         * m/pmax.h:
15622         * m/powerpcle.h:
15623         * m/tandem-s2.h:
15624         * s/386bsd.h:
15625         * s/bsd386.h:
15626         * s/bsd4-1.h:
15627         * s/bsd4-2.h:
15628         * s/bsdos2-1.h:
15629         * s/bsdos2.h:
15630         * s/bsdos3.h:
15631         * s/bsdos4.h:
15632         * s/nextstep.h:
15633         * s/ultrix4-3.h:
15634         * s/usg5-0.h:
15635         * s/usg5-2-2.h:
15636         * s/usg5-2.h:
15637         * s/usg5-4-3.h:
15638         * s/ux4800.h:
15639         * s/uxpds.h:
15640         * s/uxpv.h: Remove support for obsolete systems.
15641         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15642         Remove, insert contents in s/hpux10-20.h.
15643         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15644         Remove, insert contents in s/aix4-2.h.
15645         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15646         * s/bsd4-3.h: Rename to ...
15647         * s/bsd-common.h: ... this.
15648         * data.c:
15649         * doc.c:
15650         * ecrt0.c:
15651         * emacs.c:
15652         * fileio.c:
15653         * floatfns.c:
15654         * keyboard.c:
15655         * mem-limits.h:
15656         * print.c:
15657         * process.c:
15658         * sysdep.c:
15659         * syssignal.h:
15660         * systty.h:
15661         * syswait.h:
15662         * term.c:
15663         * unexec.c:
15664         * unexelf.c:
15665         * unexhp9k800.c:
15666         * m/hp800.h:
15667         * m/ibmrs6000.h:
15668         * m/mips.h:
15669         * m/vax.h:
15670         * s/darwin.h:
15671         * s/freebsd.h:
15672         * s/gnu.h:
15673         * s/ms-w32.h:
15674         * s/msdos.h:
15675         * s/netbsd.h:
15676         * s/template.h: Remove references to obsolete variables.
15678         * Makefile.in: Add dependencies for all unexec files.
15679         (admindir): Remove unused variable.
15680         (UNEXEC_SRC): Remove references.
15682 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
15684         * xfns.c (x_default_font_parameter): If Xft is available, first
15685         try Monospace-12 for the default font.
15687 2008-06-25  Jason Rumney  <jasonr@gnu.org>
15689         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15691 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
15693         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15695         * buffer.c (syms_of_buffer): Remove default-word-wrap.
15697 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
15699         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15700         <scroll-conservatively>: Fix typo in docstring.
15702         * xselect.c (Fx_send_client_event): Doc fix.
15704 2008-06-25  Kenichi Handa  <handa@m17n.org>
15706         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15708         * font.c (font_parse_fcname): Remove unused variables.
15709         (font_sort_entites): Delete the arg SPEC.  Caller changed.
15710         Fix for the case of ! best_only.
15711         (font_delete_unmatched): Check DPI and AVGWIDTH too.
15713         * lisp.h (Fstring_to_unibyte): EXFUN it.
15715         * character.h (str_to_unibyte): Extern it.
15717         * character.c (str_to_unibyte): New function.
15719         * fns.c (Fstring_to_unibyte): New function.
15720         (syms_of_fns): Defsubr it.
15722 2008-06-24  Kenichi Handa  <handa@m17n.org>
15724         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15725         DPI too.
15726         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15728 2008-06-24  Andreas Schwab  <schwab@suse.de>
15730         * Makefile.in (${lispsource}loaddefs.el): Rename from
15731         ../lisp/loaddefs.el.
15732         (bootstrap-clean): Do what distclean does but don't remove
15733         Makefile.
15734         (distclean): Depend on bootstrap-clean and remove Makefile.
15736 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
15738         * buffer.h (struct buffer): New member word_wrap.
15740         * buffer.c (syms_of_buffer): New variables default-word-wrap and
15741         word-wrap.
15742         (init_buffer_once): Initialize them.
15744         * dispextern.h (struct it): Replace bool truncate_lines_p with a
15745         line_wrap enum possessing three possible values.
15747         * termopts.h: Replace truncate_partial_width_windows with
15748         Vtruncate_partial_width_windows.
15750         * dispnew.c (direct_output_for_insert): Avoid direct output when
15751         inserting a space with word wrap on.
15753         * indent.c (compute_motion): Obey integer values of
15754         truncate-partial-width-windows.
15756         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15757         replacing truncate_partial_width_windows.
15758         (init_iterator): If Vtruncate_partial_width_windows is an integer,
15759         truncate only if the window width is below that integer.
15760         (start_display, resize_mini_window, produce_stretch_glyph)
15761         (display_string, move_it_in_display_line_to): Use line_wrap.
15762         (back_to_previous_visible_line_start, reseat_1): Reset
15763         string_from_display_prop_p.
15764         (display_line): Extend default face to end of line when wrapping.
15766 2008-06-24  Kim F. Storm  <storm@cua.dk>
15768         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15769         to wrap continued lines at word boundaries.
15771 2008-06-24  Jason Rumney  <jasonr@gnu.org>
15773         * font.c (Ffont_face_attributes): Multiply pixel size before point
15774         conversion to avoid multiplying rounding error.
15776 2008-06-23  Jason Rumney  <jasonr@gnu.org>
15778         * w32term.c (x_draw_glyph_string_background)
15779         (x_draw_glyph_string): Remove old bdf font code.
15781         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15783 2008-06-22  Kenichi Handa  <handa@m17n.org>
15785         * font.c (font_find_for_lface): Try the adstyle specified in
15786         the property of LFACE_FONT of LFACE (if any).
15788 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
15789             Ryo Yoshitake  <ryo@shiftmode.net>
15791         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15793 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
15795         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15796         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15797         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15798         (witness-emacs): Remove.
15799         (lisp, shortlisp): Move loaddefs.el earlier.
15800         (mostlyclean): Forget about witness-emacs.
15802 2008-06-22  Glenn Morris  <rgm@gnu.org>
15804         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15805         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15807 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15809         * Makefile.in (PRECOMP): Remove.
15810         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15811         (witness-emacs): Run `compile-first'.
15812         (.el.elc): Use the new compile-onefile target.
15814 2008-06-21  Kenichi Handa  <handa@m17n.org>
15816         * xftfont.c (xftfont_open): Handle QCembolden only when
15817         FC_EMBOLDEN is defined.
15819 2008-06-21  Andreas Schwab  <schwab@suse.de>
15821         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15822         (.el.elc): Likewise.
15824 2008-06-21  Miles Bader  <miles@gnu.org>
15826         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15827         build dir, not the lisp source dir.
15829 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15831         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15832         (bootstrapclean): Remove.
15833         (.el.elc): New rule.
15834         (PRECOMP): New var.
15835         (../lisp/subdirs.el): Remove.
15836         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15837         (witness-emacs): New target.
15838         (mostlyclean): Remove witness-emacs as well.
15839         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15840         Add witness-emacs dependency.
15842 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
15844         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15845         defined by the font.
15847 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
15849         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15850         (bootstrap-clean): New target that keeps TAGS around.
15851         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15852         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15854 2008-06-20  Jason Rumney  <jasonr@gnu.org>
15856         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15857         Remove obsolete font code.
15859         * w32font.c (font_matches_spec): Use csb bitfield from font signature
15860         to determine language support.
15862 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
15864         * sysdep.c (cfsetspeed): New fun extracted from the code.
15865         (cfmakeraw): Move before first use.
15867 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
15869         * sysdep.c (cfmakeraw): Provide fallback implementation.
15870         (serial_configure): Provide fallback implementation of cfsetspeed.
15872 2008-06-20  Kenichi Handa  <handa@m17n.org>
15874         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15875         the pattern.
15877         * fontset.c (fontset_from_font): Copy font_spec before changing
15878         the elements.
15880         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15882 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
15884         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15885         for explicit `font' parameters.
15887         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15889 2008-06-19  Kenichi Handa  <handa@m17n.org>
15891         * frame.c: Include <ctype.h>.
15892         (x_set_font_backend): Allow spacing characters in the X resource
15893         for FontBackend.
15895 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
15897         * w32fns.c, xfns.c (Qfont_param): New var.
15898         (syms_of_w32fns): Initialize it.
15899         (x_default_font_parameter): Record explicit `font' into
15900         `font-parameter'.
15902 2008-06-18  Kenichi Handa  <handa@m17n.org>
15904         * font.c (font_parse_xlfd): Fix previous change.
15905         (font_parse_fcname): Don't use :fc-unknown-spec.
15906         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15907         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15908         (font_add_log): Prepend the driver name to the resulting fonts.
15910         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
15911         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15912         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15914         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15915         (QCembolden): New variables.
15916         (syms_of_xftfont): DEFSYM them.
15917         (xftfont_open): Call XftFontMatch.  Don't trust the result of
15918         XftTextExtents8 if the pixel_size is less than 5.
15920 2008-06-18  Andreas Schwab  <schwab@suse.de>
15922         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15923         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15925 2008-06-18  Jason Rumney  <jasonr@gnu.org>
15927         * w32font.c (w32font_list, w32font_match): Add logging.
15929         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15931 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
15933         * font.c (font_parse_fcname): Store divider characters for
15934         unknown-spec list.  For known key symbols, intern using correct
15935         symbol name.
15937 2008-06-17  Kenichi Handa  <handa@m17n.org>
15939         * xfaces.c (realize_default_face): If the frame is not on window
15940         system, set the fontset of face to nil.
15942 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
15944         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15946 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
15948         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15949         (build_font_name_from_vector): Delete externs.
15951         * xfaces.c (struct font_name): Don't declare.
15953 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
15955         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15957 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
15959         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15961 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
15963         * font.c (Ffont_spec): Fix usage in docstring.
15964         (Ffont_face_attributes): Doc fix.
15966 2008-06-16  Andreas Schwab  <schwab@suse.de>
15968         * font.c (Ffont_face_attributes): Fix definition.
15970 2008-06-16  Jason Rumney  <jasonr@gnu.org>
15972         * font.h (font_style_symbolic_from_value): Remove.
15974         * font.c (font_style_symbolic_from_value): Remove.
15975         (font_style_symbolic): Revert to pre 2008-06-13 version.
15977         * w32font.c (w32_to_fc_weight): New function.
15978         (w32font_full_name, logfont_to_fcname): Use it.
15980 2008-06-16  Kenichi Handa  <handa@m17n.org>
15982         * font.c (font_check_object): Delete it.
15983         (font_clear_cache): Check if a font-object is alive.
15984         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
15985         font-object to nil.
15986         (font_close_object): Don't check FONT_CLOSE_OBJECT.
15987         (font_at): Don't call font_check_object.
15988         (Ffont_get): Return a symbol for :weight, :slant, and :width.
15990 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
15992         * puresize.h (BASE_PURESIZE): Increase to 1230000.
15994 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
15996         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15998 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
16000         * font.c (font_parse_fcname): Only one decimal point.
16001         (font_unparse_fcname): Handle data in family and foundry indices
16002         as symbols, not strings.
16003         (font_unparse_gtkname, Ffont_face_attributes): New functions.
16005         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16007         * font.h (font_unparse_gtkname): Add prototype.
16009 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
16011         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16013 2008-06-15  Andreas Schwab  <schwab@suse.de>
16015         * font.c (font_update_drivers): Fix crash when no drivers match.
16017 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
16019         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16020         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16022 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
16024         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16026 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
16028         * process.c (Fserial_process_configure, Fprocess_send_eof):
16029         Use EQ to compare Lisp_Objects.
16031 2008-06-13  Jason Rumney  <jasonr@gnu.org>
16033         * w32fns.c (Fw32_select_font): Remove old font API function.
16035         * w32font.c (logfont_to_fcname): New function.
16036         (Fx_select_font): New font dialog function compatible with
16037         GTK/fontconfig version.
16039         * font.c (font_style_symbolic_from_value): New function.
16040         (font_style_symbolic): Use it.
16042         * font.h (font_style_symbolic_from_value): Declare new function.
16044 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
16046         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16047         <font-width-table>: Fix typos in docstrings.
16049 2008-06-13  Daniel Engeler  <engeler@gmail.com>
16051         These changes add serial port access.
16052         * process.c: Add HAVE_SERIAL.
16053         (Fdelete_process, Fprocess_status, Fset_process_buffer)
16054         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16055         (list_processes_1, select_wrapper, Fstop_process)
16056         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16057         (status_notify): Modify to handle serial processes.
16058         [HAVE_SERIAL] (Fserial_process_configure)
16059         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16060         New functions.
16061         * process.h (struct Lisp_Process): Add `type'.
16062         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16063         New functions.
16064         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16065         serial ports.
16066         (serial_open, serial_configure): New functions.
16067         * w32.h: Add FILE_SERIAL.
16068         (struct _child_process): Add ovl_read, ovl_write.
16070 2008-06-13  Kenichi Handa  <handa@m17n.org>
16072         * dispextern.h (enum lface_attribute_index): New member
16073         LFACE_FOUNDRY_INDEX.
16075         * font.c (font_score): Delete arg alternate_families.  Check only
16076         weight, slant, width, and size.  Ignore the difference of alias
16077         style symbols.
16078         (font_sort_entites): Adjust for the above change.  Reflect the
16079         order of font-driver to scores.
16080         (font_list_entities): Don't check alternate_familes here.
16081         (font_clear_prop): Handle foundry.
16082         (font_update_lface): Don't parse "foundry-family" form here.
16083         Handle FONT_FOUNDRY_INDEX.
16084         (font_find_for_lface): Likewise.  Handle alternate families here.
16085         If registry is nil, try iso8859-1 and ascii-0.
16086         (font_open_for_lface): Pay attention to size in ENTITY.
16087         (font_open_by_name): Simplify by calling font_load_for_lface.
16088         (free_font_driver_list): Delete it.
16089         (font_update_drivers): Preserve the order of backends.
16090         (syms_of_font): Setting of sort_shift_bits adjusted for the change
16091         of font_score and font_sort_entites.
16092         (font_update_sort_order): Likewise.
16094         * xfaces.c (LFACE_FOUNDRY): New macro.
16095         (check_lface_attrs): Check foundry.
16096         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16097         (merge_face_vectors): Check foundry.
16098         (merge_face_ref): Likewise.
16099         (Finternal_set_lisp_face_attribute): Likewise.
16100         (x_update_menu_appearance): Likewise.
16101         (Finternal_get_lisp_face_attribute): Likewise.
16102         (lface_hash): Likewise.
16103         (lface_same_font_attributes_p): Likewise.
16104         (x_supports_face_attributes_p): Likewise.
16105         (tty_supports_face_attributes_p): Likewise.
16106         (Finternal_set_alternative_font_family_alist): Intern strings.
16107         (Finternal_set_alternative_font_registry_alist): Downcase strings.
16108         (realize_default_face): Set LFACE_FOUNDRY (lface).
16110         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16111         font-driver at first.
16113         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16115 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
16117         * lread.c (Fload): Use xfree, not free on saved_doc_string.
16119 2008-06-12  Jim Meyering  <meyering@redhat.com>
16121         Make unexec_free handle NULL the same way free does.
16122         * unexmacosx.c (unexec_free): Ignore a NULL argument.
16124 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
16126         * character.h (CHAR_TO_BYTE_SAFE): New macro.
16127         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16128         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16129         (WEAK_ALIAS): Simplify.
16130         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16131         when searching a unibyte buffer.
16133 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
16135         * xfns.c (Fx_select_font): Rename from x-font-dialog.
16137 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
16139         * w32font.c: Include ctype.h.
16141 2008-06-11  Jason Rumney  <jasonr@gnu.org>
16143         * w32font.c (w32font_encode_char): Detect missing glyphs that are
16144         misreported as space.
16145         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16146         as aliases for registry iso10646-1.
16148 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
16150         * buffer.c (clone_per_buffer_values): Skip `name'.
16152 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
16154         * font.c (font_parse_fcname): Fix last change; accept decimal
16155         points in font size.
16157 2008-06-10  Jason Rumney  <jasonr@gnu.org>
16159         * w32uniscribe.c (add_opentype_font_name_to_list):
16160         Skip non unicode fonts.
16162 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
16164         * xfns.c (Fx_font_dialog): New function.
16166         * gtkutil.c (xg_dialog_response_cb): Rename from
16167         xg_file_response_callback.
16168         (pop_down_dialog): Rename from pop_down_file_dialog.
16169         (xg_get_file_name): Callers changed.
16170         (xg_get_font_name): New function.
16172         * gtkutil.h (xg_get_font_name): Insert prototype.
16174 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16176         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16177         x_underline_minimum_display_offset.
16178         (syms_of_xdisp): Declare it here rather than in xterm.c.
16179         * dispextern.h (underline_minimum_offset): Declare it.
16180         * w32term.c (x_draw_glyph_string): Use it.
16181         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16182         (syms_of_xterm): Don't declare it any more.
16183         (x_draw_glyph_string): Adjust to the new name.
16185 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>
16187         * xterm.c (x_underline_minimum_display_offset): New var.
16188         (x_draw_glyph_string): Use it.
16189         (syms_of_xterm): Declare it.
16191 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
16193         * font.c (font_parse_fcname): Accept GTK-style font names too.
16195 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16197         * dired.c (file_name_completion): Don't return t if the match is exact
16198         but with different capitalization.
16199         * minibuf.c (Ftry_completion): Simplify.
16201         * window.c (Vwindow_point_insertion_type): New var.
16202         (set_window_buffer): Use it.
16203         (syms_of_window): Init and export it to Lisp.
16205 2008-06-10  Kenichi Handa  <handa@m17n.org>
16207         * font.h (font_intern_prop): Prototype adjusted.
16209         * font.c (font_intern_prop): New arg force_symbol.
16210         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16211         Adjust for the change of font_intern_prop.
16213         * ftfont.c (ftfont_pattern_entity):
16214         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16215         (w32_registry):
16216         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16217         the change of font_intern_prop.
16219 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
16221         * w32menu.c (digest_single_submenu): Declare extern.
16223 2008-06-09  Jason Rumney  <jasonr@gnu.org>
16225         * w32term.c (x_make_frame_visible): Use alternate restore flags.
16227         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16228         (parse_single_submenu): Remove.
16229         (digest_single_submenu): Remove.
16230         (syms_of_w32menu): Don't initialise variables that have moved
16231         to menu.c.
16232         (set_frame_menubar): Sync with version in xmenu.c.
16233         (w32_menu_show): Sync with xmenu_show in xmenu.c.
16235         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16236         Make static again.
16238 2008-06-09  Jason Rumney  <jasonr@gnu.org>
16240         Changes to w32 files related to the move of common menu code
16241         to menu.c on 2008-06-08 by Chong Yidong.
16243         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16244         defs to w32gui.h.
16245         (single_keymap_panes, push_menu_item, push_menu_pane):
16246         Make globally visible.
16248         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16249         (local_free, malloc_widget_value, free_widget_value)
16250         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16251         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16252         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16253         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16254         (menu_items, menu_items_allocated, menu_items_used)
16255         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16256         (init_menu_items, finish_menu_items, discard_menu_items)
16257         (grow_menu_items, push_submenu_start, push_submenu_end)
16258         (push_left_right_boundary, push_menu_pane, push_menu_item)
16259         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16260         (free_menubar_widget_tree_value, parse_single_submenu)
16261         (update_submenu_strings): Remove functions.
16262         (xmalloc_widget_value): Remove and declare extern.
16264         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16265         (OBJ1): Build it.
16267         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16268         (local_heap, local_alloc, local_free, malloc_widget_value)
16269         (free_widget_value): Define here.
16271 2008-06-09  Kenichi Handa  <handa@m17n.org>
16273         * font.h (Qascii_0): Extern it.
16275         * font.c (Qascii_0): New variable.
16276         (syms_of_font): DEFSYM it.
16277         (font_open_by_name): If the registry "iso8859-1" fails, try also
16278         "ascii-0".
16280         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16282 2008-06-08  Kenichi Handa  <handa@m17n.org>
16284         * .gdbinit (xfont): New command.
16286 2008-06-08  Andreas Schwab  <schwab@suse.de>
16288         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16289         * Makefile.in (menu.o): Update dependencies.
16291         * Makefile.in (obj): Always add menu.o.
16292         * emacs.c (main): Always call syms_of_menu.
16293         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16295 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
16297         * Makefile.in: Compile menu.c.
16299         * lisp.h: Declare syms_of_menu.
16301         * emacs.c (main): Call syms_of_menu.
16303         * keyboard.h: Relocate platform-independent menu definitions from
16304         xmenu.c.
16306         * menu.c: New file.  Relocate platform-independent menu
16307         definitions from xmenu.c.  Suggested by Adrian Robert.
16309         * xmenu.c: Remove platform-independent menu definitions.
16310         (menu_items, menu_items_inuse, menu_items_allocated)
16311         (menu_items_used, menu_items_n_panes)
16312         (menu_items_submenu_depth): Move to keyboard.h.
16313         (init_menu_items, finish_menu_items, unuse_menu_items)
16314         (discard_menu_items, restore_menu_items, save_menu_items)
16315         (grow_menu_items, push_submenu_start, push_submenu_end)
16316         (push_left_right_boundary, push_menu_pane, push_menu_item)
16317         (keymap_panes, single_keymap_panes, single_menu_item)
16318         (list_of_panes, list_of_items, find_and_call_menu_selection)
16319         (xmalloc_widget_value, free_menubar_widget_value_tree)
16320         (parse_single_submenu, digest_single_submenu)
16321         (update_submenu_strings): Move to menu.c.
16323 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
16325         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16327 2008-06-06  Miles Bader  <miles@gnu.org>
16329         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16330         face, not frame default.
16332 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
16334         * window.c (pop_up_windows, pop_up_frames)
16335         (display_buffer_reuse_frames, Vpop_up_frame_function)
16336         (Vdisplay_buffer_function, Veven_window_heights)
16337         (Vspecial_display_buffer_names, Vspecial_display_regexps)
16338         (Vspecial_display_function, Vsame_window_buffer_names)
16339         (Vsame_window_regexps, split_height_threshold)
16340         (Vsplit_window_preferred_function): Move those vars to window.el.
16341         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16342         (Fdisplay_buffer): Move those functions to window.el.
16343         (syms_of_window): Remove corresponding declarations.
16344         (display_buffer): New function.
16345         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16346         * dispnew.c (Flast_nonminibuf_frame): New function.
16347         * buffer.c (Fpop_to_buffer): Move to window.el.
16349 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
16351         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16353 2008-06-05  Kenichi Handa  <handa@m17n.org>
16355         * coding.c (detect_coding): Fix previous change.
16356         (detect_coding_system): Likewise.
16358 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
16360         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16362         * keymap.c (Vminibuffer_local_filename_must_match_map):
16363         Rename from Vminibuffer_local_must_match_filename_map.
16364         (syms_of_keymap):
16365         * minibuf.c (Fcompleting_read): Adjust accordingly.
16366         * commands.h: Rename declaration as well.
16368 2008-06-05  Kenichi Handa  <handa@m17n.org>
16370         * font.c (Ffont_spec): Don't use font_parse_family_registry for
16371         family name.
16372         (Ffont_put): Likewise.
16374         * fontset.c (fontset_find_font): Call font_open_for_lface with the
16375         current font-spec.
16377         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16378         is unspecified.
16380         * xfaces.c (realize_x_face): If the font-related face attributes
16381         are the same as those of default face, realize a new fontset from
16382         default->fontset.
16383         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16385 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
16387         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16388         (move_it_in_display_line): New wrapper.
16390         * window.c (window_scroll_pixel_based_preserve_x)
16391         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16392         (window_scroll_pixel_based, window_scroll_line_based):
16393         Use them to preserve column positions.
16394         (syms_of_window): Initialize them.
16396         * indent.c (Fvertical_motion): Extend first arg to allow passing an
16397         (HPOS . VPOS) pair.
16399         * dispextern.h (move_it_in_display_line): Declare.
16401 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
16403         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16404         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
16405         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
16407 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
16409         * window.c (Fset_window_parameter): Doc fix.
16410         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16412 2008-06-04  Joakim Verona  <joakim@verona.se>
16414         * window.h (struct window): Add new member window_parameters.
16416         * window.c (Fwindow_parameters, Fwindow_parameter)
16417         (Fset_window_parameter): New defuns.
16418         (syms_of_window): Defsubr the new defuns.
16419         (make_window): Initialize window_parameters to nil.
16421 2008-06-04  John Paul Wallington  <jpw@pobox.com>
16423         * eval.c (Fdefmacro): Doc fix.
16425 2008-06-04  Kenichi Handa  <handa@m17n.org>
16427         * coding.c (detect_coding): Fix handling of coding->head_ascii.
16428         Be sure to call setup_coding_system when we find a proper coding system.
16429         (detect_coding_system): Fix handling of coding->head_ascii.
16431 2008-06-03  Andreas Schwab  <schwab@suse.de>
16433         * font.c (font_prop_validate_spacing): Fix last change.
16435 2008-06-03  Kenichi Handa  <handa@m17n.org>
16437         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16438         (font_parse_fcname): Fix handling of unknown key.
16440         * xfont.c (xfont_list): Try an alias.
16442         * charset.c (char_charset): Return NULL if the arg charset_list is
16443         specified and C doesn't belong to any of them.
16445 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
16447         * font.c (font_pixel_size): Don't take cdr of an integer.
16449 2008-06-02  Jim Meyering  <meyering@redhat.com>
16451         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16452         * alloc.c (xfree): Return right away for a NULL arg.
16453         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16454         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16455         * mac.c (create_apple_event_from_event_ref): Likewise.
16456         (create_apple_event_from_drag_ref, cfstring_create_normalized):
16457         Likewise.
16458         * doprnt.c (doprnt1): Likewise.
16459         * frame.c (frame): Likewise.
16460         * keyboard.c (wipe_kboard): Likewise.
16461         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16462         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16463         * term.c (tty_default_color_capabilities, maybe_fatal)
16464         (delete_tty): Likewise.
16465         * w16select.c (string): Likewise.
16466         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16467         * w32bdf.c (w32_free_bdf_font): Likewise.
16468         * w32fns.c (w32_unload_font): Likewise.
16469         * w32font.c (w32font_close): Likewise.
16470         * window.c (size_window): Likewise.
16471         * xselect.c (receive_incremental_selection): Likewise.
16472         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16473         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16474         * w32.c (stat): Likewise.
16476         Remove useless if-before-free tests.
16477         * editfns.c (Fset_time_zone_rule): Likewise.
16478         * lread.c (nosuffix): Likewise.
16479         * ralloc.c (get_bloc): Likewise.
16480         * regex.c (reg_free): Likewise.
16481         * xftfont.c (xftfont_open, xftfont_close): Likewise.
16482         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16483         * xsmfns.c (smc_save_yourself_CB): Likewise.
16485 2008-06-02  Kenichi Handa  <handa@m17n.org>
16487         * font.c (font_find_for_lface): Handle float font size.
16488         (font_open_for_lface): Likewise.
16490         * xfaces.c (x_supports_face_attributes_p): Check face->font before
16491         comparing the properties.
16493 2008-06-01  Jason Rumney  <jasonr@gnu.org>
16495         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16496         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16497         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16498         Don't add empty script list.
16499         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16501 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
16503         * Makefile.in (dot, dotdot): Remove, update users.
16504         ".." has been used elsewhere in the file for a long time.
16505         (LIBXT_STATIC): Remove conditional based on unused variable.
16507 2008-06-01  Miles Bader  <miles@gnu.org>
16509         * xfaces.c (Vface_remapping_alist): New variable.
16510         (syms_of_xfaces): Initialize it.
16511         (enum named_merge_point_kind): New type.
16512         (struct named_merge_point): Add `named_merge_point_kind' field.
16513         (push_named_merge_point): Make cycle detection respect different
16514         named-merge-point kinds.
16515         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16516         Remove face-name alias resolution.
16517         (lface_from_face_name): New definition using
16518         `lface_from_face_name_no_resolve'.
16519         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16520         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16521         (get_lface_attributes): New definition that layers face-remapping on
16522         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
16523         (lookup_basic_face): New function.
16524         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16525         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16526         `get_lface_attributes'.
16527         (face_at_buffer_position): Use `lookup_basic_face' to lookup
16528         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
16529         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16531         * xdisp.c (init_iterator): Pass base_face_id through
16532         `lookup_basic_face' when we actually use it as a face-id.
16533         (handle_single_display_prop): Use `lookup_basic_face' to lookup
16534         DEFAULT_FACE_ID.
16536         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16537         lookup the initial face-id.
16539         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16541 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
16543         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16544         (Fremove_text_properties): Fix typos in docstrings.
16546 2008-05-31  Kenichi Handa  <handa@m17n.org>
16548         * font.c (font_list_entities): Fix the car part of data to be
16549         stored in the cache.
16551         * ftfont.c (ftfont_font_format): Don't use strcasestr.
16553 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
16555         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16556         Add a `test' argument so another predicate than `equal' can be used.
16557         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16558         (map_char_table): Remove unused vars `c' and `i'.
16559         * lisp.h (Foptimize_char_table): Adjust declaration.
16560         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16562 2008-05-30  Kenichi Handa  <handa@m17n.org>
16564         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16565         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16566         defined.
16568 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
16570         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16571         (Fmake_variable_frame_local): Disallow mixing buffer-local and
16572         frame-local settings for the same variable.
16574 2008-05-30  Kenichi Handa  <handa@m17n.org>
16576         * fontset.c (Ffont_info): Move to font.c.
16577         (syms_of_fontset): Delete defsubr of Sfont_info.
16579         * font.c (font_style_to_value, font_score): Delete casting of the
16580         args to xstcasecmp.
16581         (register_font_driver): Increment num_font_drivers only when
16582         registering the driver globally.
16583         (Ffont_info): Move from fontset.c.  Handle a font object too.
16584         (syms_of_font): Defsubr Sfont_info.
16586 2008-05-29  Kenichi Handa  <handa@m17n.org>
16588         * coding.h (enum define_coding_utf8_arg_index): New enum.
16589         (enum coding_attr_index): Change coding_attr_utf_16_bom to
16590         coding_attr_utf_bom.
16591         (enum utf_bom_type): Rename from utf_16_bom_type.
16592         (struct utf_16_spec): Adjust for the above change.
16593         (struct coding_system): Add utf_8_bom in `spec' union.
16595         * coding.c (CODING_UTF_8_BOM): New macro.
16596         (enum coding_category): Delete coding_category_utf_8, add
16597         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16598         coding_category_utf_8_sig.
16599         (CATEGORY_MASK_UTF_8): Delete it.
16600         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16601         (CATEGORY_MASK_UTF_8_SIG): New macros.
16602         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16603         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16604         CATEGORY_MASK_UTF_8_SIG.
16605         (CATEGORY_MASK_UTF_8): New macro.
16606         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16607         (detect_coding_utf_8): Check BOM.
16608         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16609         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16610         (encode_coding_utf_16): Likewise.
16611         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
16612         (detect_coding, detect_coding_system): Handle utf-8-auto.
16613         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16614         (syms_of_coding): Fix setting up of Vcoding_category_table.
16616 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16618         * process.c (Faccept_process_output): If `millisec' is non-nil,
16619         `seconds' default to 0.
16620         (wait_reading_process_output): Also return non-nil if we read output
16621         from a non-running process.
16623 2008-05-29  Jason Rumney  <jasonr@gnu.org>
16625         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16626         `raster' specified.
16627         (add_font_entity_to_list): Allow non-opentype truetype fonts back
16628         in the uniscribe backend, but disallow any font that has no
16629         unicode subrange support.
16631 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
16633         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16634         Fix typos in docstrings.
16636 2008-05-29  Kenichi Handa  <handa@m17n.org>
16638         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16639         (Fx_family_fonts): Set frame correctly.
16641 2008-05-28  Jason Rumney  <jasonr@gnu.org>
16643         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16645 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16647         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16648         calling build_annotations.
16650 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
16652         * coding.c (Fdecode_coding_region, Fencode_coding_region)
16653         (Fencode_coding_string):
16654         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16655         <latin-extra-code-table>: Fix typos in docstrings.
16656         (syms_of_coding) <coding-system-alist>: Doc fix.
16657         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16659 2008-05-28  Kenichi Handa  <handa@m17n.org>
16661         * fontset.c (Ffont_info): Don't call font_close_object.
16663         * font.c (font_parse_family_registry): Use Ffont_put to validate
16664         foundry and family.
16665         (font_delete_unmatched): Don't check spacing.
16666         (font_list_entities): Add spacing to the spec to list fonts.
16668         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16669         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
16671         * coding.c (encode_coding_raw_text): Fix previous change.
16672         (encode_coding_object): When the dst_object is a buffer and is
16673         different from src_object, move gap to PT.
16675 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
16677         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16679 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16681         * coding.c (encode_coding_raw_text): Set coding->produced_char for
16682         all branches.  Compute it differently.
16684         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16686 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
16688         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16689         into "else if () ... else ...".
16691 2008-05-27  Jason Rumney  <jasonr@gnu.org>
16693         * w32font.c (w32font_open_internal): Determine if glyph indices
16694         are likely to work here.
16696 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
16698         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16699         draw overlap glyphs with appropriate highlighting.
16701 2008-05-27  Kenichi Handa  <handa@m17n.org>
16703         * xfont.c (xfont_open): Fix calculation of font->average_width.
16705 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16707         * casefiddle.c (casify_object): Try to guess better whether the
16708         argument is a byte or a char.
16710 2008-05-26  Andreas Schwab  <schwab@suse.de>
16712         * xselect.c (x_reply_selection_request): Properly handle format == 32.
16713         Always send multiples of format size.
16715         * xterm.c (x_set_frame_alpha): Fix type mismatch.
16717 2008-05-26  Jason Rumney  <jasonr@gnu.org>
16719         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16720         (compute_metrics): Don't set failure if we just cleared the cache.
16721         (w32_weight_table): Remove unused variable.
16722         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16723         backwards compatibility.
16725 2008-05-25  Kenichi Handa  <handa@m17n.org>
16727         * w32term.c (x_draw_glyph_string):
16728         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16730         * xfaces.c: Delete unused function prototypes.
16731         (xstrlwr, font_frame): Delete them.
16732         (clear_face_cache): Delete unused variable.
16734         * xftfont.c (xftfont_open): Delete unused variable.
16735         If underline_thickness is not 1, adjust underline_position.
16737         * ftxfont.c (ftxfont_open): Delete unused variable.
16739         * fontset.c (face_for_char): Optimize for the case of no charset
16740         property.
16742         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16743         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16744         (otf_open, font_otf_capability, generate_otf_features)
16745         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16746         Comment out by surrounding "#if 0" and "#endif" for the moment.
16747         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16748         (syms_of_font): Codes for accessing above commented out.
16750 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
16752         * w32proc.c: Include dispextern.h.
16754         * w32.c: Include dispextern.h.
16756 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
16758         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16759         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16760         Fix typos in docstrings.
16762 2008-05-23  Jason Rumney  <jasonr@gnu.org>
16764         * xsmfns.c: Remove includes that are already included by config.h.
16766 2008-05-23  Kenichi Handa  <handa@m17n.org>
16768         * charset.c (Qemacs, charset_emacs): New variables.
16769         (char_charset): Fix for non-Unicode characters.
16770         (syms_of_charset): Define charset_emacs.
16772         * w32term.c (x_draw_glyph_string): Be sure to update
16773         s->underline_thickness and s->underline_position.  Be sure to draw
16774         underline within the current line area.
16776         * xterm.c (x_draw_glyph_string): Be sure to update
16777         s->underline_thickness and s->underline_position.  Be sure to draw
16778         underline within the current line area.
16780         * fontset.c: Delete unused variables and add casting for char *
16781         throughout the file.
16782         (fontset_font): Try the fallback fonts of the current fontset
16783         before consulting the default fontset.
16785         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16787         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16789 2008-05-22  Jason Rumney  <jasonr@gnu.org>
16791         * font.c: Don't include strings.h.
16793         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16795         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16796         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16797         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16798         to call xstrcasecmp.
16800         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16802         * fontset.c (fs_query_fontset): Use xstrcasecmp.
16804         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16806         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16808 2008-05-22  Kenichi Handa  <handa@m17n.org>
16810         * puresize.h (BASE_PURESIZE): Increase to 1220000.
16812         * font.c (font_prop_validate_style): Adjust for the format
16813         change of font_style_table.
16815         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16816         two args.
16818         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16819         two args.
16821 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
16823         * minibuf.c (keys_of_minibuf): Delete.
16824         * lisp.h (keys_of_minibuf): Delete.
16825         * emacs.c (main): Don't call keys_of_minibuf.
16827 2008-05-22  Kenichi Handa  <handa@m17n.org>
16829         * ftfont.c (ftfont_resolve_generic_family): Rename from
16830         ftfont_list_generic_family.  Return a single family for each
16831         generic family.
16832         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16833         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16834         Call font_add_log.
16835         (ftfont_match): Call font_add_log.
16837         * font.h (Ffont_xlfd_name): EXFUN adjusted.
16838         (FONT_DEBUG): Define it.
16839         (font_add_log): Extern it.
16840         (font_assert): Rename from xassert.
16842         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16843         (xfont_list_family): Call font_add_log.
16844         (xfont_match): Likewise.
16845         (memq_no_quit): Delete.
16847         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16848         call of Ffont_xlfd_name.
16850         * xfaces.c (struct table_entry, slant_table, weight_table)
16851         (swidth_table): Move to font.c.
16853         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
16854         xassert are changed to font_assert.  Delete many unused variables.
16855         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16856         New variables.
16857         (struct table_entry): Move from xfaces.c and modified.
16858         (weight_table, slant_table, width_table): Move from xfaces.c and
16859         contents adjusted for the change of struct table_entry.
16860         (font_style_to_value, font_style_symbolic): Adjust for the
16861         format change of font_style_table.
16862         (font_parse_family_registry): Don't overwrite existing foundry and
16863         family of font_spec.
16864         (font_score): Fix calculation of diff for sizes.
16865         (font_sort_entites): Call font_add_log.
16866         (font_delete_unmatched): Return a newly created list.
16867         (font_list_entities): Fix previous change.  Call font_add_log.
16868         (font_matching_entity, font_open_entity, font_close_entity):
16869         Call font_add_log.
16870         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16871         (Finternal_set_font_style_table): Delete.
16872         (BUILD_STYLE_TABLE): New macro.
16873         (build_style_table): New function.
16874         (Vfont_log, font_log_env_checked): New variables.
16875         (font_add_log): New function.
16876         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16877         Declare Lisp variables "font-weight-table", "font-slant-table",
16878         "font-width-table", and "font-log".  Initialize font_style_table.
16880 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
16882         * xterm.c (x_set_frame_alpha): Move declarations before statements.
16884 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
16885             Ryo Yoshitake  <ryo@shiftmode.net>
16887         * frame.c (Qalpha): Add a new frame parameter `alpha'.
16888         (Vframe_alpha_lower_limit): New variable.
16889         (x_set_alpha): New function.
16891         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16893         * xfns.c (x-create-frame, Qalpha):
16894         Initialize the frame parameter `alpha'.
16895         * xterm.c (OPAQUE, OPACITY): New.
16896         (x_set_frame_alpha): New function.
16897         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16899         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16900         * w32fns.c (w32_frame_parm_handlers): Likewise.
16902 2008-05-20  Jason Rumney  <jasonr@gnu.org>
16904         * w32font.c (add_font_entity_to_list): Don't add non-opentype
16905         truetype fonts to opentype list.
16907 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
16909         * fontset.c (Ffontset_info): Doc fix.
16910         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16911         <ignore-relative-composition>: Fix typos in docstrings.
16913         * font.c (syms-of-font) <font-encoding-alist>:
16914         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16915         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16916         (Ffont_otf_alternates): Doc fixes.
16918 2008-05-20  Kenichi Handa  <handa@m17n.org>
16920         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
16921         font.h through out the file.
16922         (FONT_DRIVERS): Rename from FONTOBJ.
16923         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
16924         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16926         * emacs.c (main): Call syms_of_font unconditionally.
16928         * font.h (find_font_encoding): Extern it.
16930         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16931         fontset.c.
16932         (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
16933         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16934         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16935         only when HAVE_WINDOW_SYSTEM is defined.
16936         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16937         when HAVE_WINDOW_SYSTEM is defined.
16939         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16940         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16942         * xfaces.c: Include font.h unconditionally.
16943         (merge_face_ref, merge_face_vectors)
16944         (Finternal_set_lisp_face_attribute): Cancel the previous change.
16946 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
16948         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16949         indirect_variable.
16950         * eval.c (lisp_indirect_variable): New fun.
16951         (Fuser_variable_p): Use it.
16953 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16955         * lisp.h (indirect_variable):
16956         * data.c (indirect_variable, let_shadows_buffer_binding_p):
16957         Use Lisp_Symbol pointers rather than Lisp_Object.
16958         Adjust callers.
16959         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16960         To this end, change calling-convention.
16962         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16963         if some non-hidden buffers are selected by string&pred.
16965 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
16967         * process.c (wait_reading_process_output): Always check status
16968         when in batch mode.
16970 2008-05-19  Kenichi Handa  <handa@m17n.org>
16972         * font.c (font_list_entities): Fix handling of cache.
16973         (font_matching_entity): Likewise.
16975         * ftfont.c (cs_iso8859_1): Delete.
16976         (ft_face_cache): New variable.
16977         (struct ftfont_info): New member fc_charset_idx.
16978         (ftfont_build_basic_charsets): Delete.
16979         (fc_charset_table): New variable.
16980         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
16981         . FC_CHARSET_IDX) as :font-entity property in the font entity.
16982         Callers changed.
16983         (ftfont_lookup_cache, ftfont_get_charset): New functions.
16984         (ftfont_spec_pattern): New argument fc_charset_idx.
16985         Check registry more rigidly.  Change callers.
16986         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16987         change of :font-entity property of the font.
16989         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16990         property of the font.
16992 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
16994         * coding.c (Fcoding_system_p): Rename argument to match docstring.
16995         (Funencodable_char_position, Fcheck_coding_systems_region)
16996         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16997         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16998         (Ffind_operation_coding_system, Fset_coding_system_priority)
16999         (Fcoding_system_eol_type): Doc fixes.
17001 2008-05-17  Glenn Morris  <rgm@gnu.org>
17003         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17005 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
17007         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17008         and st_gid.
17010         * frame.c (Fdelete_frame): Don't call font_update_drivers if
17011         HAVE_WINDOW_SYSTEM is not defined.
17013         * xfaces.c (merge_face_ref, merge_face_vectors)
17014         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17015         HAVE_WINDOW_SYSTEM is defined.
17016         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17018 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
17020         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17022 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17024         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17026 2008-05-15  Kenichi Handa  <handa@m17n.org>
17028         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17029         preference.
17031 2008-05-15  Glenn Morris  <rgm@gnu.org>
17033         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17035 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
17037         * fns.c (init_fns): Don't initialize weak_hash_tables here.
17038         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
17040         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17042 2008-05-15  Kenichi Handa  <handa@m17n.org>
17044         * ftfont.c (ftfont_list): Downcase family name to check generic
17045         families.
17047         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17048         font-spec for QCfont value.
17050         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17051         buffer.  Check the return value of it.
17053 2008-05-14  Jason Rumney  <jasonr@gnu.org>
17055         * w32term.c (w32_get_glyph_overhangs): Remove.
17056         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17058 2008-05-14  Kenichi Handa  <handa@m17n.org>
17060         * font.c (font_prop_validate): Make nil a valid value.
17061         (font_clear_cache): Check if the cached vector of entities is nil
17062         or not.
17064 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17066         * emacs.c (main_thread): Conditionalize on
17067         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17068         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17070         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17071         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17072         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17074 2008-05-14  Kenichi Handa  <handa@m17n.org>
17076         * coding.c (detect_coding_iso_2022): Ignore a coding category that
17077         has no corresponding coding system.
17079 2008-05-14  Jason Rumney  <jasonr@gnu.org>
17081         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17083         * w32font.h (w32font_open_internal): Update declaration.
17085         * w32font.c (w32font_open_internal): Change last argument from
17086         w32font_info struct to font object.  Fill in font object from
17087         font_entity.  Get Outline metrics if possible.  Use them to
17088         calculate underline position and thickness.  Use xlfd name as name
17089         property.  Don't set codepage.
17090         (w32font_open): Pass font_object to w32font_open_internal.  Don't
17091         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17092         (w32font_draw): Use s->font.
17093         (clear_cached_metrics): Don't clear non-existent blocks.
17095         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17096         font was not found.
17097         (x_draw_glyph_string): Use underline position and thickness from font.
17099         * w32uniscribe.c (uniscribe_open): Pass font_object to
17100         w32font_open_internal.
17102 2008-05-14  Kenichi Handa  <handa@m17n.org>
17104         These changes are to delete all legacy font-handling codes, and
17105         make Emacs use only font-backends.
17107         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17108         (frame.o, image.o, print.o): Depend on $(FONTSRC).
17110         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17112         * charset.h (Vcharset_non_preferred_head)
17113         (Vcurrent_iso639_language): Extern them.
17115         * charset.c (Vcharset_non_preferred_head): New variable.
17116         (Vcurrent_iso639_language): New variable.
17117         (syms_of_charset): Declare it as a Lisp variable.
17118         (char_charset): Don't check non preferred charsets.  As a last
17119         resort, return charset_unicode.
17120         (Fset_charset_priority): Update Vcharset_non_preferred_head.
17122         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17123         conditionals.  Don't check enable_font_backend.  Delete all codes
17124         used only when USE_FONT_BACKEND is not defined.
17126         * dispextern.h (struct glyph_string): Change type of `font' to
17127         `struct font *'.
17128         (struct glyph_string): New member underline_position and
17129         underline_thickness.
17130         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17131         (struct face): Change type of `font' to `struct font *'.  Remove
17132         members `font_name', `font_info_id'.
17133         (per_char_metric, encode_char): Delete externs.
17134         (calc_pixel_width_or_height): Adjust the prototype.
17136         * emacs.c (enable_font_backend): Delete extern.
17137         (main): Don't set enable_font_backend.  Don't check the command
17138         line argument "-disable-font-backend".
17140         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17141         (enum font_property_index): New members FONT_DPI_INDEX,
17142         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17143         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17144         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
17145         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17146         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17147         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17148         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17149         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17150         (struct font_spec, struct font_entity): New structs.
17151         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17152         (struct font): Many members from old "struct font_info" moved to
17153         here.  Members font and entity deleted.
17154         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17155         the new font-related objects.
17156         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17157         (CHECK_FONT_GET_OBJECT): Likewise.
17158         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17159         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17160         (struct font_driver): New members case_sensitive anc check.  Type
17161         of the member list and open changed.
17162         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17163         (font_symbolic_width, font_find_object, font_get_spec)
17164         (font_set_lface_from_name): Delete extern.
17165         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17167         * font.c: Include <strings.h>.
17168         (enable_font_backend): Delete it.
17169         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17170         (CHECK_VALIDATE_FONT_SPEC): Delete it.
17171         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17172         (null_string): Delete it.
17173         (null_vector): Make it static.
17174         (font_family_alist): Delete it.
17175         (Qnormal): Extern it.
17176         (QCextra, QClanguage): Delete it.
17177         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17178         (font_make_spec, font_make_entity, font_make_object)
17179         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
17180         the string.  Callers changed.
17181         (font_pixel_size): Adjusted for the format change of font-related
17182         objects.
17183         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17184         (font_style_to_value, font_style_symbolic): New function.
17185         (build_font_family_alist): Delete it.
17186         (font_registry_charsets): Use Fassoc_string instead of
17187         assq_no_quit.
17188         (font_prop_validate_symbol): Don't return null_string.
17189         (font_prop_validate_style): Adjusted for the change of
17190         style-related values in a font vector.
17191         (font_property_table): Delete entries for QClanguage and
17192         QCantialias, add entries for QCavgwidth.
17193         (get_font_prop_index): Delete the 2nd argument FROM.
17194         (font_prop_validate): Arguments changed.
17195         (font_put_extra): Adjusted for the change of font-related objects.
17196         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17197         (font_parse_fcname, font_unparse_fcname)
17198         (font_prepare_composition): Likewise.
17199         (font_parse_family_registry): Renamed from font_merge_old_spec.
17200         (otf_open): Delete the 1st arg entity.
17201         (font_otf_capability): Adjusted for the above change.
17202         (font_score): New arg alternate_families.  Adjusted for the change
17203         of font-related objects.
17204         (font_sort_entites): New arg best_only.
17205         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17206         Delete them.
17207         (font_match_p): Check alternate families.
17208         (font_find_object): Delete it.
17209         (font_check_object): New function.
17210         (font_clear_cache): Adjusted for the change of font-related objects.
17211         (font_delete_unmatched): New arg.
17212         (font_list_entities): Call font_driver->list with a spec that
17213         doesn't specify style-related properties.
17214         (font_matching_entity): Arguments changed.  Caller changed.
17215         (font_open_entity): Adjusted for the change of font-related objects.
17216         (font_close_object, font_has_char, font_encode_char)
17217         (font_get_name, font_get_spec): Likewise.
17218         (font_spec_from_name, font_clear_prop, font_update_lface):
17219         New functions.
17220         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17221         (font_prepare_for_face, font_done_for_face, font_open_by_name)
17222         (font_at): Adjusted for the change of font-related objects.
17223         (font_range): New function.
17224         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17225         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17226         (Fcopy_font_spec, Fmerge_font_spec): New function.
17227         (Ffont_family_list): Renamed from list-families.
17228         (Finternal_set_font_style_table): Arguments changed.
17229         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17230         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17231         change of font-related objects.
17232         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
17234         * fontset.h (struct font_info): Delete it.  Most members go to
17235         struct font.
17236         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17237         (enum FONT_SPEC_INDEX): Delete it.
17238         (font_info, list_fonts_func, load_font_func, query_font_func)
17239         (set_frame_fontset_func, find_ccl_program_func)
17240         (get_font_repertory_func, new_fontset_from_font_name): Delete
17241         externs.
17242         (fontset_from_font_name): Extern it.
17243         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17244         (FONT_INFO_FROM_FACE): Deleted.
17245         (face_for_font): Adjust prototype.
17247         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17248         conditionals.  Don't check enable_font_backend.  Delete all codes
17249         used only when USE_FONT_BACKEND is not defined.
17250         (get_font_info_func, list_font_func, load_font_func)
17251         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17252         (get_font_repertory_func): Delete them.
17253         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17254         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17255         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17256         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17257         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17258         (fontset_compare_rfontdef): New function.
17259         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
17260         rfont-defs by qsort.  Adjusted for the change of font-group vector.
17261         (load_font_get_repertory): Deleted.
17262         (fontset_find_font): Use new macros to ref/set elements of
17263         font-def and rfont-def.
17264         (fontset_font): Fix the timing of remembering that no font for C.
17265         (free_face_fontset): Do nothing if the face has no fontset.
17266         (face_suitable_for_char_p): Use new macros to ref/set elements of
17267         rfont-def.
17268         (face_for_char): Likewise.  Call face_for_char with font_object.
17269         (fs_load_font): Delete.  Delete #pragma surrounding it.
17270         (fs_query_fontset): Use strcasecmp instead of strcmp.
17271         (generate_ascii_font_name): Adjusted for the format change of
17272         font-spec.
17273         (Fset_fontset_font): Likewise.  Use new macros to set elements of
17274         font-def.
17275         (Fnew_fontset): Use font_unparse_xlfd to generate
17276         FONTSET_ASCII (fontset).
17277         (new_fontset_from_font_name): Deleted.
17278         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
17279         a fontset is already created for the font.  FIx updating of
17280         Vfontset_alias_alist.
17281         (fontset_ascii_font): Deleted.
17282         (Ffont_info): Adjusted for the format change of font-spec.
17283         (Finternal_char_font): Likewise.
17284         (Ffontset_info): Likewise.
17285         (syms_of_fontset): Don't check load_font_func.
17287         * fns.c (internal_equal): Handle PREV_FONT.
17289         * frame.h: Delete USE_FONT_BACKEND conditional.
17291         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17292         conditionals.  Don't check enable_font_backend.  Delete all codes
17293         used only when USE_FONT_BACKEND is not defined.
17294         (x_set_font): Call x_new_font, not x_new_fontset2.
17295         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17296         already set for the frame.
17298         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
17299         a font-entity by font_make_entity.  Use font_intern_prop instead
17300         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
17301         font property.  If a font is scalable, set avgwidth property to 0.
17302         Set font-entity property by font_put_extra.
17303         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17304         (ffont_driver): Adjusted for the change of struct font_driver.
17305         (ftfont_spec_pattern): New function.
17306         (ftfont_list): Return a list, not vector.
17307         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17308         (ftfont_list_family): Don't downcase names.
17309         (ftfont_free_entity): Deleted.
17310         (ftfont_open): Return a font-object.  Adjusted for the change of
17311         struct font.  Get underline_thickness and underline_position from
17312         font property.  Don't update dpyinfo->smallest_font_height and
17313         dpyinfo->smallest_char_width.
17314         (ftfont_close): Don't free `struct font'.
17315         (ftfont_has_char): Adjusted for the format change of font-entity.
17316         (ftfont_encode_char, ftfont_text_extents): Likewise.
17318         * ftxfont.c (ftxfont_list): Return a list, not vector.
17319         (ftxfont_open): Return a font-object.  Adjusted for the change of
17320         struct font.  Get underline_thickness and underline_position from
17321         font property.  Don't update dpyinfo->smallest_font_height and
17322         dpyinfo->smallest_char_width.
17323         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17324         (ftxfont_draw): Adjusted for the change of struct font.
17326         * image.c (image_ascent): Don't include "charset.h".  Include
17327         "character.h" and "font.h".
17329         * lisp.h (enum pvec_type): New member PREV_FONT.
17330         (Fassoc_string): EXFUN it.
17332         * print.c: Include font.h.
17333         (print_object): Handle font-related objects.
17335         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17336         conditionals.  Don't check enable_font_backend.  Delete all codes
17337         used only when USE_FONT_BACKEND is not defined.
17338         (handle_auto_composed_prop): Do nothing if it->f is not on a
17339         window system.  Check how many following characters can be
17340         displayed by the same font.
17341         (calc_pixel_width_or_height): Type of the 4th arg is changed to
17342         'struct font *'.
17343         (get_char_face_and_encoding): Assign the whole encoding task to
17344         the `encode-char' method of a font driver.
17345         (fill_composite_glyph_string): Adjusted for the change of `struct
17346         face' and `struct glyph_string'.
17347         (fill_glyph_string): Likewise.
17348         (get_per_char_metric): Arguments changed.
17349         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17350         and `struct glyph_string'.
17351         (produce_stretch_glyph, calc_line_height_property)
17352         (x_produce_glyphs): Likewise.
17354         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17355         conditionals.  Don't check enable_font_backend.  Delete all codes
17356         used only when USE_FONT_BACKEND is not defined.  Use
17357         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17358         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17359         (Qp): Extern them.
17360         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17361         Deleted.
17362         (struct font_name): Deleted.
17363         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17364         (compare_fonts_by_sort_order): New function.
17365         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17366         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17367         Deleted.
17368         (Fx_family_fonts): Use font_list_entities, and sort fonts by
17369         compare_fonts_by_sort_order.
17370         (Fx_font_family_list): Call Ffont_family_list.
17371         (face_numeric_value, face_numeric_weight, face_numeric_slant)
17372         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17373         (face_symbolic_slant, face_symbolic_swidth)
17374         (split_font_name_into_vector, build_font_name_from_vector)
17375         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17376         (font_rescale_ratio, split_font_name, build_font_name)
17377         (free_font_names, sort_fonts, x_face_list_fonts)
17378         (face_font_available_p, sorted_font_list, cmp_font_names)
17379         (font_list_1, concat_font_list, font_list, remove_duplicates):
17380         Deleted.
17381         (Fx_list_fonts): Use Ffont_list.
17382         (LFACE_AVGWIDTH): Deleted.
17383         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
17384         by FONTP.
17385         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17386         (set_lface_from_font_name): Delete it.
17387         (set_lface_from_font): Renamed from
17388         set_lface_from_font_and_fontset.  Caller changed.  Don't set
17389         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
17390         for face.
17391         (merge_face_vectors): Copy font-spec if necessary.
17392         Clear properties of the font-spec if necessary.
17393         (merge_face_ref): Clear properties of the font-spec if necessary.
17394         (Finternal_set_lisp_face_attribute): Likewise.
17395         (set_font_frame_param): Use font_load_for_lface to load a
17396         font-object, and call Fmodify_frame_parameters with it.
17397         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
17398         font name by Ffont_xlfd_name.
17399         (Finternal_lisp_face_attribute_values): Don't check QCweight,
17400         QCslant, and QCwidth.
17401         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17402         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17403         Compare fonts by EQ.
17404         (lookup_non_ascii_face): Deleted.
17405         (face_for_font): The 2nd argument changed.
17406         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17407         Check atomic font properties by case insensitive.
17408         (realize_non_ascii_face): Set face->overstrike correctly.
17409         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
17410         (dump_realized_face): Get font name from
17411         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
17413         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17414         conditionals.  Don't check enable_font_backend.  Delete all codes
17415         used only when USE_FONT_BACKEND is not defined.
17416         (xic_create_xfontset): Original code deleted and renamed from
17417         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
17418         (x_make_gc): Don't set GCFont in GCs.
17419         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17420         opened by "fixed".
17421         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17422         find_ccl_program_func, query_font_func, set_frame_fontset_func,
17423         get_font_repertory_func.
17425         * xfont.c: Include <stdlib.h> and "ccl.h".
17426         (struct xfont_info): New structure.
17427         (xfont_query_font): Deleted.
17428         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17429         moved from xterm.c.
17430         (xfont_driver): Adjusted for the change of struct font_driver.
17431         (compare_font_names): New function.
17432         (xfont_list_pattern): Sort font names case insensitively.  Make
17433         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
17434         (xfont_list): Return a list, not vector.
17435         (xfont_match): If the font doesn't have QCname property, generate
17436         a name from the other font properties.
17437         (xfont_open): Return a font-object.  Adjusted for the change of
17438         struct font.  Get underline_thickness and underline_position from
17439         font property.  Don't update dpyinfo->smallest_font_height and
17440         dpyinfo->smallest_char_width.
17441         (xfont_close): Don't free struct font.
17442         (xfont_prepare_face): Adjusted for the change of struct font.
17443         (xfont_done_face): Deleted.
17444         (xfont_has_char): Adjusted for the change of struct font.
17445         (xfont_encode_char, xfont_draw): Likewise.
17446         (xfont_check): New function.
17448         * xftfont.c (xftfont_list): Adjusted for the change of `list'
17449         callback function.
17450         (xftfont_match): Adjusted for the format change of font-entity.
17451         (xftfont_open): Adjusted for the format change of font-entity and
17452         font-object.  Adjusted for the change of struct font.  Return a
17453         font-object.  Don't update dpyinfo->smallest_font_height and
17454         dpyinfo->smallest_char_width.
17455         (xftfont_close): Block input while calling XftFontClose.
17456         (xftfont_prepare_face): Don't block input while calling
17457         xftfont_get_colors.  Adjusted for the change of struct font.
17458         (xftfont_shape): Return value of error case fixed.
17460         * xrdb.c (x_load_resources): Don't setup a fontset resource.
17462         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17463         conditionals.
17464         (FONT_WIDTH): Return (f)->max_width.
17465         (struct x_display_info): Delete member `font'.
17466         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17467         (x_find_ccl_program, x_get_font_repertory): Delete externs.
17468         (struct x_output): Change type of `font' to `struct font *'.
17470         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17471         conditionals.  Don't check enable_font_backend.  Delete all codes
17472         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
17473         (x_per_char_metric, x_encode_char): Deleted.
17474         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17475         (x_compute_glyph_string_overhangs): Adjusted for the change of
17476         `struct face'.
17477         (x_draw_glyph_string_foreground)
17478         (x_draw_composite_glyph_string_foreground): Likewise.
17479         (x_draw_glyph_string): Likewise.  Use font->underline_position and
17480         font->underline_thickness.
17481         (x_new_font): Renamed from x_new_fontset2.
17482         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17483         (x_check_font): Call `check' method of a font driver.
17484         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17485         (x_query_font, x_get_font_repertory): Deleted.
17486         (x_find_ccl_program): Renamed and moved to xfont.c.
17487         (x_redisplay_interface): Adjusted for the change of `struct
17488         redisplay_interface'.
17490         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17491         conditionals.  Don't check enable_font_backend.  Delete all codes
17492         used only when USE_FONT_BACKEND is not defined.  Surround non-used
17493         code by "#ifdef OLD_FONT" and "endif".
17494         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17496         * w32font.h (struct w32font_info): New member.
17497         (FONT_COMPAT): New macro.
17498         (w32font_open_internal): Prototype adjusted.
17500         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17501         OLD_FONT" and "endif".
17503         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17504         conditionals.  Don't check enable_font_backend.  Delete all codes
17505         used only when USE_FONT_BACKEND is not defined.
17506         (w32font_open): Return a font-object.  Make a font-object by
17507         font_make_object.  Adjusted for the change of struct w32font_info.
17508         (w32font_close): Don't free struct font.  Adjusted for the change
17509         of struct w32font_info.
17510         (w32font_encode_char, w32font_text_extents, w32font_draw):
17511         Adjusted for the change of struct w32font_info.
17512         (w32font_draw): Likewise.
17513         (w32font_list_internal): Return a list, not vector.
17514         (w32font_open_internal): Change the 4th arg to font-object.
17515         Adjusted for the change of struct w32font_info and font-object format.
17516         (add_font_name_to_list): Don't downcase names.
17517         (w32_enumfont_pattern_entity): Make a font-entity by
17518         font_make_entity.  Adjusted for the format change of font-entity.
17519         Use FONT_SET_STYLE to set a style-related font property.  If a
17520         font is scalable, set avgwidth property to 0.  Set font-entity
17521         property by font_put_extra.
17522         (font_matches_spec): Adjusted for the format change of font-entity.
17523         (w32_weight_table, w32_decode_weight): New variables.
17524         (w32_encode_weight): New function.
17525         (fill_in_logfont): Adjusted for the format change of font-spec.
17526         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17527         weight value.
17528         (w32font_driver): Adjusted for the change of struct font_driver.
17530         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17531         conditionals.  Don't check enable_font_backend.  Surround non-used
17532         code by "#ifdef OLD_FONT" and "endif".
17533         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17534         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17536         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17537         conditionals.  Don't check enable_font_backend.  Delete all codes
17538         used only when USE_FONT_BACKEND is not defined.  Surround non-used
17539         code by "#ifdef OLD_FONT" and "endif".
17541         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17542         (uniscribe_open): Return value changed to font-object.
17543         Adjusted for the format change of font-object.
17544         (uniscribe_otf_capability): Adjusted for the change of struct font.
17545         (add_opentype_font_name_to_list): Don't downcase names.
17546         (uniscribe_font_driver): Adjusted for the change of struct
17547         font_driver.
17549 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
17551         * dispnew.c (update_frame_1): Check if tty output is still valid
17552         before flushing it.
17554 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
17556         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17557         to Gtk+ menus.
17559 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
17561         * dired.c (file_name_completion): Tweak the code so as to always do it
17562         in a single pass.  Tighten the scope of some variables.
17564         * dired.c (Qdefault_directory): New var.
17565         (file_name_completion): Use it instead of Fexpand_file_name.
17566         (syms_of_dired): Initialize it.
17568 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
17570         * fileio.c (double_dollars): Remove dead code.
17572 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
17574         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17575         Mention w32-get-true-file-attributes in doc string.
17577         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17579 2008-05-09  Glenn Morris  <rgm@gnu.org>
17581         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17582         2008-04-23.
17584 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
17586         Support for reporting owner and group of each file on MS-Windows:
17587         * dired.c (stat_uname, stat_gname): New functions, with special
17588         implementation for w32.
17589         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17591         * w32.c: Rename the_passwd_* to dflt_passwd_*.
17592         (dflt_group_name): New static variable.
17593         (dflt_group): Rename from the_group.
17594         (init_user_info): Init dflt_group fields.  Get user's group name
17595         from LookupAccountSid.
17596         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17597         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17598         New initialization states.
17599         (globals_of_w32): Initialize them to zero.  Initialize the default
17600         group name to "None".
17601         (GetFileSecurity_Name): New global var, the name of the function
17602         to call for GetFileSecurity.
17603         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17604         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17605         (get_file_security, get_security_descriptor_owner)
17606         (get_security_descriptor_group, is_valid_sid)
17607         (get_file_security_desc, get_rid, get_name_and_id)
17608         (get_file_owner_and_group): New functions.
17609         (stat): Use get_file_security_desc and get_file_owner_and_group to
17610         report the owner and primary group of each file.  Don't ignore the
17611         high 32 bits of file's size, now that st_size is 64-bit wide.
17612         Fix test when to get true file attributes.
17613         (init_user_info): Use get_rid instead of equivalent inline code.
17614         (fstat): Don't ignore the high 32 bits of file's size.
17616 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
17618         * image.c (png_load): Use correct bit-depth for setting background
17619         color.
17621 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
17623         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17624         epa-hook.elc.
17626 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
17628         * font.c (Ffont_match_p): Don't use `iff' in docstring.
17630 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
17632         * macfns.c (Fx_create_frame): Make a copy of frame parameters
17633         because the original parameters are in pure storage now.
17634         (mac_window): Remove unused params.  Update callers.
17636 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
17638         * lread.c (substitute_object_recurse): Use lower-level primitives.
17639         Don't signal errors when traversing sub-char-tables.
17640         Don't loop over all the possible characters when traversing char-tables.
17642         * print.c (print_preprocess): Add sub-char-tables to the print-table,
17643         just like we do in print.c.
17645 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
17647         * minibuf.c (Ftry_completion): Remove code left over from when we used
17648         scmp instead of Fcompare_strings.
17650 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
17652         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17654 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17656         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17657         Create bitmap context in native byte order.
17659         * macterm.c (XDrawLine)
17660         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17661         context in native byte order.
17663 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17665         * config.in: Regenerate.
17667         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17668         New definitions for Image I/O support.
17669         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17670         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17671         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17672         (mac_data_provider_release_data, image_load_image_io)
17673         [USE_MAC_IMAGE_IO]: New functions.
17674         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17675         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17676         (init_image_func_pointer) [MAC_OSX]: Remove function.
17677         (image_load_quartz2d) [MAC_OSX]: Check availability of
17678         CGImageCreateWithPNGDataProvider at compile time.
17679         Use lowercase `false' for boolean constant.
17680         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17681         Use image_load_image_io.
17682         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17683         Don't check MyCGImageCreateWithPNGDataProvider.
17684         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17685         Don't call init_image_func_pointer.
17687         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17689         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17690         Make variable non-static.
17691         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17692         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17694         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17695         (RED_FROM_ULONG): Mask off higher bits.
17696         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17698         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17699         Include AvailabilityMacros.h.
17700         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17701         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17703 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
17705         * chartab.c (Fset_char_table_range): If range is t, really set all
17706         chars to that value.
17708 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
17710         * dired.c (Ffile_attributes): Don't allow the device number become
17711         negative.
17713 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
17715         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17717 2008-05-02  Juri Linkov  <juri@jurta.org>
17719         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17720         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17721         DEFAULT argument as a list of default values in docstrings.
17723 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
17725         * puresize.h (BASE_PURESIZE): Increase to 1210000.
17727 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
17729         * dispnew.c (change_frame_size_1): Preserve small windows when
17730         shrinking frames by calling set_window_height|width with third
17731         arg 2.
17733         * window.h (struct window): Replace field too_small_ok by field
17734         resize_proportionally.
17736         * window.c (make_window): Initialize resize_proportionally.
17737         (enlarge_window): Temporarily set resize_proportionally to make
17738         sure that shrink_windows does scale the window proportionally.
17739         (shrink_windows): When window has resize_proportionally set try
17740         to shrink it proportionally by stealing from other windows.
17741         (struct saved_window, Fset_window_configuration)
17742         (compare_window_configurations): Handle resize_proportionally.
17743         (WINDOW_TOTAL_SIZE): New macro.
17744         (window_min_size, shrink_windows, size_window): Use it.
17745         (check_min_window_sizes): Remove.  Invalid values of
17746         window-min-height|width are handled by window_min_size_2 now.
17747         (size_window, Fsplit_window, enlarge_window)
17748         (adjust_window_trailing_edge, grow_mini_window): Don't call
17749         check_min_window_sizes.
17750         (window_min_size_2, window_min_size_1, window_min_size):
17751         New argument safe_p for retrieving "safe" minimum sizes.
17752         (Fdisplay_buffer, Fsplit_window, enlarge_window)
17753         (adjust_window_trailing_edge, grow_mini_window):
17754         Adjust arguments of window_min_size... functions.
17755         (shrink_windows): Argument min_size removed.  New argument
17756         safe_p allows shrinking windows to their safe minimum sizes.
17757         Calculate minimum size and decide whether a window shall be
17758         deleted for each window individually.
17759         (size_window): When nodelete_p equals 2, tell shrink_windows to
17760         delete windows only if their new minimum size is no more safe.
17761         (shrink_window_lowest_first): Call window_min_size_1 to make
17762         sure to preserve modeline of bottom-most window when resizing
17763         the minibuffer.
17764         (Fset_window_configuration, Fcurrent_window_configuration)
17765         (compare_window_configurations): Do not handle
17766         window-min-height|width any more.
17767         (syms_of_window): Clarify window-min-height|width doc-strings.
17769 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
17771         * dired.c (file_name_completion): Fix up the encoding/decoding issue
17772         some more.  Copy some of the code from Ftry_completions.
17773         Remove special case code that dates back to initial revision when the
17774         slash was only added when necessary and that can't trigger nowadays.
17776 2008-04-27  Kenichi Handa  <handa@m17n.org>
17778         * font.c (font_prop_validate): Signal `error' instead of `font'.
17780 2008-04-29  Jason Rumney  <jasonr@gnu.org>
17782         * w32fns.c (Fw32_battery_status): New defun.
17783         (syms_of_w32fns): Defsubr it.
17785 2008-04-28  Andreas Schwab  <schwab@suse.de>
17787         * dired.c (file_name_completion): Fix another mixing of encoded
17788         and decoded names.
17790 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
17792         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17794 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
17796         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17798 2008-04-27  Andreas Schwab  <schwab@suse.de>
17800         * dired.c (file_name_completion): Fix inappropriate mixing of
17801         encoded and decoded names.
17803         * xterm.c (XTread_socket): Fix use of uninitialized variable.
17805         * puresize.h (BASE_PURESIZE): Increase to 1200000.
17807 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
17809         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17810         2008-03-31, it's not needed anymore with `struct stat' definition
17811         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
17812         for the same reasons.
17814 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
17816         * m/sparc.h: Additional redefinitions for GNU/Linux.
17818 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17820         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17821         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17822         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17823         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17824         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17825         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17826         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17827         Likewise.
17829         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17830         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17831         (mac_ax_number_of_characters): Add externs.
17832         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17833         [USE_MAC_TSM]: Likewise.
17834         (mac_handle_text_input_event) [MAC_OSX]:
17835         Handle kEventTextInputOffsetToPos for no active input area case.
17836         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17837         (mac_handle_document_access_event)
17838         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17839         (install_application_handler) [MAC_OSX]: Register handlers for
17840         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17841         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17842         Register mac_handle_document_access_event.
17844         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17845         Make functions non-static.
17847 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
17849         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17850         (read_file_name_completion_ignore_case, insert_default_directory)
17851         (Qdefault_directory): Move to minibuffer.el.
17852         (Fread_file_name): Call the new `read-file-name' instead.
17854 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17856         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17857         Make function non-static.
17858         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17859         Remove function.
17860         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17861         Move to mactoolbox.c.
17862         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17864         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17865         (mac_rect_make): New macro.
17867         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17868         instead of float.
17869         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17870         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17871         (XSetBackground) [USE_CG_DRAWING]: Likewise.
17872         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17873         CGRectMake.
17874         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17875         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17876         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17877         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17878         instead of WindowRef in argument type.
17879         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17880         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17881         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17882         instead of DISPLAY.  All uses changed.
17883         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17884         (x_calc_absolute_position): Simplify so as not to use
17885         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17887         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17888         instead of WindowRef in argument type.
17889         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17890         [TARGET_API_MAC_CARBON]: Remove externs.
17891         (create_apple_event, mac_event_parameters_to_lisp)
17892         [TARGET_API_MAC_CARBON]: Add externs.
17894         * mactoolbox.c (Vmac_ts_script_language_on_focus)
17895         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17896         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17897         is clicked.
17898         (x_activate_menubar): Remove extern for saved_menu_event_location.
17899         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17900         Move from mac.c.
17902 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17904         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17905         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17907 2008-04-23  Jason Rumney  <jasonr@gnu.org>
17909         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17910         attributes only for local files.
17912         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17913         default to Qlocal.
17915 2008-04-22  Juri Linkov  <juri@jurta.org>
17917         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17918         read-buffer-to-switch instead of using the letter "B".
17920 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
17922         * fileio.c (Qdefault_directory): New variable.
17923         (Fread_file_name): Use it to pass `dir' to the completion functions.
17925 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
17927         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17929 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
17931         * keyboard.c (Vpre_help_message): Remove.
17932         (show_help_echo): Remove default C code.
17934         * dired.c (directory_files_internal, file_name_completion):
17935         Only call ENCODE_FILE if the string is indeed decoded.
17937 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
17939         * Makefile.in (TOOLKIT_DEFINES): Remove.
17940         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17942 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17944         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17945         (mactoolbox.o): New target.
17947         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17948         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17950         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17951         Use mac_set_frame_window_background instead of XSetWindowBackground.
17952         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17953         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17954         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17955         instead of SetWindowTitleWithCFString.
17956         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17957         Move function to mactoolbox.c.
17958         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17959         Use mac_set_window_modified instead of SetWindowModified.
17960         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17961         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17962         (Fx_focus_frame): Use mac_front_non_floating_window instead of
17963         FrontNonFloatingWindow.  Use mac_activate_window instead of
17964         ActivateWindow.  Use mac_active_non_floating_window instead of
17965         ActiveNonFloatingWindow.
17966         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17967         Use mac_show_hourglass and mac_hide_hourglass.
17968         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17969         instead of GetGlobalMouse.
17970         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17971         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17972         Use mac_bring_window_to_front instead of BringToFront.
17973         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17974         mactoolbox.c.
17975         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17976         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
17977         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17978         mactoolbox.c.
17980         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17981         (XtPointer): Move typedef from macmenu.c.
17982         (enum button_type): Move enum from macmenu.c.
17983         (widget_value): Move typedef from macmenu.c.
17984         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17985         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17986         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17987         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17988         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17989         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17990         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17991         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17992         (Selection): Move typedef from macselect.c.
17993         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17994         macterm.c.
17995         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17996         (mac_is_window_collapsed, mac_bring_window_to_front)
17997         (mac_send_window_behind, mac_hide_window, mac_show_window)
17998         (mac_collapse_window, mac_front_non_floating_window)
17999         (mac_active_non_floating_window, mac_activate_window)
18000         (mac_move_window_structure, mac_move_window, mac_size_window)
18001         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18003         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18004         (enum mac_menu_kind): Move enum to mactoolbox.c.
18005         (min_menu_id): Move variable to mactoolbox.c.
18006         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18007         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18008         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18009         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18010         [TARGET_API_MAC_CARBON]: Likewise.
18011         (XtPointer): Move typedef to macgui.h.
18012         (enum button_type): Move enum to macgui.h.
18013         (widget_value): Move typedef to macgui.h.
18014         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18015         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18016         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18017         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18018         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18019         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18020         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18021         (popup_activated_flag): Make variable non-static.
18022         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18023         (add_menu_item, fill_menu, dispose_menus):
18024         Move functions to mactoolbox.c.
18025         (restore_show_help_function, menu_target_item_handler)
18026         (install_menu_target_item_handler, mac_handle_dialog_event)
18027         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18028         [TARGET_API_MAC_CARBON]: Likewise.
18029         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18030         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18031         (find_and_call_menu_selection, name_is_separator): Make function
18032         non-static.
18033         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18034         to mactoolbox.c.
18035         (set_frame_menubar): Don't call install_menu_quit_handler.
18036         (menu_item_selection): New variable.
18037         (mac_menu_show): Use create_and_show_popup_menu.
18038         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18039         selection but set variable menu_item_selection.  All uses changed.
18040         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
18041         Call install_menu_quit_handler.  Move to mactoolbox.c.
18043         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18044         (Selection): Move typedef to macgui.h.
18045         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18046         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18047         Make variables non-static.
18048         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18049         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18050         Make functions non-static.
18051         (Vmac_service_selection) [MAC_OSX]: Likewise.
18052         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18053         (mac_valid_selection_target_p, mac_clear_selection)
18054         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18055         (mac_put_selection_value, mac_selection_has_target_p)
18056         (mac_get_selection_value, mac_get_selection_target_list)
18057         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18058         Move functions to mactoolbox.c.
18059         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18060         Likewise.
18061         (copy_scrap_flavor_data, mac_handle_service_event)
18062         (install_service_handler) [MAC_OSX]: Likewise.
18063         (syms_of_macselect) <Vmac_dnd_known_types>:
18064         Use mac_dnd_default_known_types.
18066         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18067         Move to mactoolbox.c.
18068         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18069         (Fx_selection_owner_p): Add EXFUN.
18070         (install_window_handler, remove_window_handler, XSetWindowBackground):
18071         Remove externs.
18072         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18073         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18074         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18075         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18076         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18077         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18078         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18079         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18080         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18081         (create_and_show_popup_menu, mac_get_selection_from_symbol)
18082         (mac_valid_selection_target_p, mac_clear_selection)
18083         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18084         (mac_put_selection_value, mac_selection_has_target_p)
18085         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18086         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18087         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18088         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18089         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18090         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18091         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18092         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18093         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18095         * mactoolbox.c: New file.
18097 2008-04-18  Jason Rumney  <jasonr@gnu.org>
18099         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18101 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
18103         * character.c (Fmultibyte_char_to_unibyte):
18104         Return latin1 chars unchanged.
18106         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18107         relocated if it points to `name'.
18109 2008-04-17  Kenichi Handa  <handa@m17n.org>
18111         * data.c (Faset): Allow setting a multibyte character in an
18112         ASCII-only unibyte string.
18114         * lisp.h (STRING_SET_MULTIBYTE): New macro.
18116 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
18118         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18119         done in config.h.
18121 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
18123         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18124         (Fchar_direction): Add usage in the docstring.
18126 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
18128         * keyboard.c (read_key_sequence): Remove always-true checks.
18130 2008-04-14  Jason Rumney  <jasonr@gnu.org>
18132         * w32font.c (w32font_open_internal): Set max_bounds.descent in
18133         compatibility struct, for better underline positioning.
18135 2008-04-13  David Hansen  <david.hansen@gmx.net>
18137         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18138         string.
18140 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
18142         * m/hp800.h (XUINT, XSET): Remove.
18144 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
18146         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18147         previous change.
18149 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
18151         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18152         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18154 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
18156         * keymap.h (map_keymap_canonical): Declare.
18157         * xmenu.c (single_keymap_panes): Use it.
18159 2008-04-11  Glenn Morris  <rgm@gnu.org>
18161         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18162         set the target's value to that of the alias.
18164 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
18166         * term.c (set_tty_color_mode): Left over typo.
18168 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
18170         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18171         only after check for file name handler functions.  Signal, when
18172         native functionality is not supported.
18173         (syms_of_fileio): Declare it unconditionally.
18175 2008-04-10  Jason Rumney  <jasonr@gnu.org>
18177         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18178         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18180         * w32.c (logon_network_drive): Also logon to remote drives that
18181         are mapped to drive letters.
18183 2008-04-10  Glenn Morris  <rgm@gnu.org>
18185         * xdisp.c (truncate-partial-width-windows): Doc fix.
18187 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
18189         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18190         Move functions to minibuffer.el.
18191         (syms_of_fileio): Don't declare them.
18193 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
18195         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18196         (syms_of_minibuf): Remove its initialization.
18198         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18200 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
18202         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18204 2008-04-09  Jason Rumney  <jasonr@gnu.org>
18206         * makefile.w32-in (distclean): Delete makefile too.
18207         (maintainer-clean): New target.
18209         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18211         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18212         for new font backend and composite cases.
18214 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
18216         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18217         Most of the code moved to run_timers.
18218         (do_pending_atimers): Call run_timers.
18219         (run_timers): New function.
18221         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18222         run atimers.
18224         * process.c (wait_reading_process_output): The same as above.
18226 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
18228         * minibuf.c (last_exact_completion): Remove variable.
18229         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18230         (complete_and_exit_1, complete_and_exit_2)
18231         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18232         (Fdisplay_completion_list, display_completion_list_1)
18233         (Fminibuffer_completion_help, Fself_insert_and_exit)
18234         (Fexit_minibuffer, Fminibuffer_message): Move functions to
18235         minibuffer.el.
18236         (syms_of_minibuf): Remove corresponding initializations.
18238         * keyboard.c (Qdeactivate_mark): New var.
18239         (command_loop_1): Use it to call `deactivate-mark'.
18240         (syms_of_keyboard): Initialize it.
18242         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18243         to another frame.
18244         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18245         Don't call set_tty_color_mode.
18246         (store_frame_param): Reset previous_frame rather than call
18247         set_tty_color_mode.
18248         * term.c (set_tty_color_mode): Rewrite.
18249         * dispextern.h (set_tty_color_mode): New type.
18250         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18252 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
18254         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18255         for generic chars, which do not exist any more in emacs-unicode.
18257 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
18259         * coding.c (detect_coding_emacs_mule)
18260         (Ffind_operation_coding_system): Fix typo.
18262 2008-04-08  Jason Rumney  <jasonr@gnu.org>
18264         * w32uniscribe.c (SNAME): Extract only symbol name.
18266         * w32font.h (struct w32_metric_cache): New struct.
18267         (w32font_info): Use it.
18268         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18269         (CACHE_BLOCKSIZE): New constants.
18271         * w32font.c (Qja, Qko, Qzh): New symbols.
18272         (syms_of_w32font): Initialise them.
18273         (font_matches_spec): Use them to filter by language.
18274         (recompute_cached_metrics): Remove function.
18275         (compute_metrics, clear_cached_metrics): New functions.
18276         (w32font_encode_char): Use them to manage metric cache.
18277         (w32font_text_extents): Cache metrics for all glyphs on demand.
18278         Delay converting glyph indices to WORD until needed.
18279         (w32font_open_internal): Initialize metric cache to empty.
18280         (registry_to_w32_charset): Charset should always be a symbol.
18281         (fill_in_logfont, list_all_matching_fonts): Family should
18282         always be a symbol.
18284 2008-04-06  Jason Rumney  <jasonr@gnu.org>
18286         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18287         Give up if glyph indices not supported.  Use uniscribe obtained
18288         ABC widths for individual metrics.  Map glyph clusters back to
18289         characters using fClusterStart flag.  Return number of glyphs
18290         produced, not chars processed.
18291         (uniscribe_shape): Map char at FROM to current glyph.
18293 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18295         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18296         Use SetMenuItemHierarchicalMenu.
18298 2008-04-05  Jason Rumney  <jasonr@gnu.org>
18300         * image.c (pbm_load): Allow color values up to 65535.
18301         Throw an error if max_color_idx is outside the supported range.
18302         Report an error when image size is invalid.
18303         Read two bytes at a time when raw images have max_color_idx above 255.
18305 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
18307         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18308         append "CCL: Quitted" when the CCL program is quitted.
18309         (setup_ccl_program): Initialize ccl->quit_silently to zero.
18311         * ccl.h (struct ccl_program): New member quit_silently.
18313 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
18315         * search.c (compile_pattern_1): Treat non-nil and non-string of
18316         search-spaces-regexp as nil.
18318         * minibuf.c (Fassoc_string): Tweak docstring.
18320 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
18322         * dired.c (Ffile_attributes): Support inode numbers wider than 32
18323         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
18324         2008-03-14 to force inode be positive.
18326         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18327         _S_* ones, since we now use our own sys/stat.h.
18328         (stat, fstat): Don't mangle the inode number.
18329         (init_user_info): Don't restrict UID and GID to 0-60000 range.
18331 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
18333         * frame.h (struct frame): Give one more bit to `visible' since we use
18334         values larger than 1 to indicate obscured frames on ttys.
18336         * keymap.c (Qkeymap_canonicalize): New var.
18337         (Fmap_keymap_internal): New fun.
18338         (describe_map): Use keymap-canonicalize.
18340         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18341         (Fundo_boundary): Set them.
18342         (syms_of_undo): Initialize them.
18343         (record_point): Use them instead of last_point_position*.
18344         (last_undo_buffer): Change type.
18346 2008-04-04  Jason Rumney  <jasonr@gnu.org>
18348         * w32font.c (w32font_text_extents): Use font's ascent and descent.
18349         (recompute_cached_metrics): Don't set ascent and descent per char.
18351         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18352         (uniscribe_check_otf): Add GC protection before consing.
18353         Rearrange loop for counting features.
18355 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
18357         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18358         buffer with byte-size of source buffer.
18360 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
18362         * callint.c (Fcall_interactively): Handle temporary region even
18363         when shift-select-mode is off.
18365 2008-04-03  Jason Rumney  <jasonr@gnu.org>
18367         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18369 2008-04-03  Kenichi Handa  <handa@m17n.org>
18371         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18372         (CATEGORY_MASK_UTF_16): Likewise.
18373         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18374         binary file.
18375         (detect_coding): Add null-byte detection for a binary file.
18376         (detect_coding_system): Likewise.
18378 2008-04-03  Jason Rumney  <jasonr@gnu.org>
18380         * w32uniscribe.c: New file.
18382         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18384         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18386         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18387         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18388         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18389         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18390         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18391         (Qphonetic): New symbols.
18392         (syms_of_w32font): Initialize them.
18393         (font_supported_scripts): Use them.
18394         (w32font_list_family): List all charsets.
18395         (w32font_text_extents, recompute_cached_metrics): Fix metric
18396         calculations.
18397         (w32_enumfont_pattern_entity): Make full_type a DWORD.
18398         Give opentype fonts their own format.
18399         (font_matches_spec): New arguments backend and logfont.
18400         Handle :otf spec for uniscribe backend.
18401         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18402         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18404         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18405         font backend.
18406         (globals_of_w32fns): Initialize uniscribe font backend.
18408         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
18409         dependencies.
18410         (w32uniscribe.$(O)): New file to build.
18411         (FONT_OBJ): Include w32uniscribe.$(O).
18412         (LIBS): Add uniscribe libraries.
18414         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18416 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
18418         * callint.c (Vshift_select_mode): New var.
18419         (Finteractive): Document new ^ spec.
18420         (Fcall_interactively): Call handle-shift-selection if the ^ spec
18421         is present.
18423         * keyboard.c (Vthis_command_keys_shift_translated): New var.
18424         (command_loop_1): Avoid running the direct display versions of
18425         forward-char and backward-char if shift-selection may occur.
18426         (read_key_sequence): Set Vthis_command_keys_shift_translated if
18427         shift-translation takes place.
18429         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18430         avoid clobbering by define-minor-mode.
18432         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18433         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18435         * syntax.c (Fforward_word): Add ^ interactive spec.
18437         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18438         (Fscroll_right): Add ^ interactive spec.
18440 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
18442         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18444         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18446         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18448 2008-03-31  Juri Linkov  <juri@jurta.org>
18450         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18452 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
18454         * gtkutil.c (xg_set_geometry): Fix indentation.
18455         (xg_resize_outer_widget): Remove.
18456         (x_wm_size_hint_off): Fix indentation.
18457         (xg_frame_set_char_size): Call flush_and_sync after
18458         gtk_window_resize.
18459         (x_wm_set_size_hint): Pass NULL as geometry window to
18460         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18461         Add menu bar and tool bar height to base height.
18462         (xg_update_frame_menubar, free_frame_menubar)
18463         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18464         (update_frame_tool_bar, free_frame_tool_bar):
18465         Change xg_resize_outer_widget to xg_frame_set_char_size.
18467 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
18469         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18470         (Fdbus_call_method): New parameter TIMEOUT.
18471         (dbus-send-signal): Optimize UNGCPRO call.
18473 2008-03-29  Juri Linkov  <juri@jurta.org>
18475         * window.c (Fdisplay_buffer): Move call to
18476         Vsplit_window_preferred_function out of conditions that check
18477         if window is eligible for vertical splitting.
18478         When Vsplit_window_preferred_function is non-nil, call it and use
18479         its non-nil return value as window.  Otherwise, continue doing
18480         vertical splitting using Fsplit_window with arg horflag=nil.
18481         (syms_of_window) <Vsplit_window_preferred_function>: Change the
18482         default value from `split-window' to nil.
18484 2008-03-29  Juri Linkov  <juri@jurta.org>
18486         * callint.c (Fcall_interactively): Revert 2008-03-16 change
18487         for interactive code letters 'b' and 'B'.
18489 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
18491         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18492         multibyte string.
18494 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
18496         * keyboard.c (pending_funcalls): New var.
18497         (timer_check): Run it.
18498         (syms_of_keyboard): Initialize it.
18499         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18500         (Vdelete_terminal_functions): New vars.
18501         (syms_of_terminal): Initialize them.
18502         (Fdelete_terminal): Run delete-terminal-functions.
18503         * xdisp.c (safe_eval): Rewrite.
18504         (safe_call2): New fun.
18505         * frame.c (Qdelete_frame_functions): New var.
18506         (syms_of_frame): Initialize it.
18507         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18508         * lisp.h (safe_call2, pending_funcalls): Declare.
18510 2008-03-28  Andreas Schwab  <schwab@suse.de>
18512         * indent.c (Fmove_to_column): Move declaration before statements.
18514 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
18516         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
18517         (struct frame): Use bit fields for boolean vars.
18519         * process.c (server_accept_connection): Simplify naming.
18520         (emacs_get_tty_pgrp): Use SDATA.
18522         * coding.c (decode_coding_object): Fix last change.
18524 2008-03-27  Jason Rumney  <jasonr@gnu.org>
18526         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18528 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
18530         * charset.c (Fdefine_charset_internal): Change the way of
18531         registering charsets in Vcharset_order_list.
18532         (syms_of_charset): Make the charset `eight-bit' supplementary.
18534 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
18536         * regex.c (EXTEND_BUFFER): Change order of pointer addition
18537         operations, to avoid having the difference between pointers
18538         overflow.
18540 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
18542         * indent.c (check_display_width): New fun.
18543         (scan_for_column): Use it.
18545         * data.c (syms_of_data): Mark most-positive-fixnum and
18546         most-negative-fixnum as constants.
18548         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18550         * indent.c (scan_for_column): Extract from current_column_1.
18551         Merge with the same code from Fmove_to_column.
18552         (current_column_1, Fmove_to_column): Use it.
18554 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
18556         * keymap.c (map_keymap_internal): New fun.
18557         (map_keymap): Use it.
18558         (Fmap_keymap_internal): New fun.
18559         (Fmap_keymap): Remove left-out test from before make_save_value.
18561         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18563         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18564         Use XCAR/XCDR.
18566         * process.h (struct Lisp_Process): Remove filter_multibyte.
18567         * process.c (QCfilter_multibyte): Remove.
18568         (setup_process_coding_systems): Don't use filter_multibyte.
18569         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18570         (read_process_output): Don't adjust multibyteness to filter_multibyte.
18571         (Fset_process_filter_multibyte): Change the coding-system to
18572         approximate the previous behavior.
18573         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18574         coding-system.
18576         * coding.c (decode_coding_object): When not decoding into a buffer,
18577         obey the coding system's preference of (uni|multi)byte.
18579 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
18581         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18582         every char is changed and has a different byte-length.
18583         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18584         Fix int -> EMACS_INT.
18586 2008-03-23  David Hansen  <david.hansen@gmx.net>
18588         * dbusbind.c (xd_read_message): Remove extra copying of message
18589         strings.  Check for NULL `interface' or `member'.
18591 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
18593         * w32.c (readdir): If FindFirstFile/FindNextFile return in
18594         cFileName a file name that includes `?' characters, use the 8+3
18595         alias in cAlternateFileName instead.
18597 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
18599         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18601 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
18603         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18604         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
18605         work on current_buffer only instead (that was already the case
18606         for some of the code anyway).
18607         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18608         (temp_set_point, temp_set_point_both): Use EMACS_INT.
18609         (SET_PT, SET_PT_BOTH): Adjust.
18610         * intervals.h (set_point, temp_set_point, set_point_both)
18611         (temp_set_point_both): Remove redundant declarations.
18613 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
18615         * fileio.c (Finsert_file_contents):
18616         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18617         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
18618         when buffer != current_buffer anyway.
18620 2008-03-20  Andreas Schwab  <schwab@suse.de>
18622         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18623         as default.
18625 2008-03-19  Jason Rumney  <jasonr@gnu.org>
18627         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18628         (syms_of_w32fns): Initialize them.
18629         (HOURGLASS_ID): New constant.
18630         (x_window_to_frame): Don't check hourglass_window.
18631         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18632         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18633         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18634         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18635         Only change the cursor if hourglass is not active.
18636         (Fx_create_frame): Initialize frame's current_cursor.
18637         (hourglass_atimer): Remove.
18638         (hourglass_started): New function.
18639         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18640         (show_hourglass): Adapt to w32, changing argument to frame.
18642         * w32term.h (struct w32_output): Remove hourglass_window.
18643         Add current_cursor.
18645         * eval.c (call_debugger, Fsignal):
18646         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18647         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18648         (Fexecute_extended_command, cancel_hourglass_unwind):
18649         * minibuf.c (read_minibuf):
18650         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18652 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
18654         * window.c (run_funs): New fun.
18655         (run_window_configuration_change_hook): Use it to run the buffer-local
18656         and the global part of the hook.
18658         * xdisp.c (format_mode_line_unwind_data): Add window argument.
18659         (unwind_format_mode_line): Restore selected window.
18660         (x_consider_frame_title, Fformat_mode_line): Set selected window.
18662 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
18664         * editfns.c (Fchar_equal): Check they are valid characters.
18666         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18668 2008-03-17  Andreas Schwab  <schwab@suse.de>
18670         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18671         against a charset.
18673         * lisp.h (Fbuffer_list): Declare.
18675 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
18677         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18678         handlebox_widget is != 0.
18680 2008-03-16  Juri Linkov  <juri@jurta.org>
18682         * callint.c (Fcall_interactively): For interactive code letters
18683         'b' and 'B' put the buffer list into the list of default "future"
18684         values of the minibuffer.
18686 2008-03-16  Andreas Schwab  <schwab@suse.de>
18688         * keyboard.c (read_key_sequence): Fix downcasing of letters with
18689         modifiers.
18691         * regex.c (re_match_2_internal): Correct matching of a charset
18692         against latin-1 characters.
18694 2008-03-16  Kenichi Handa  <handa@m17n.org>
18696         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18697         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18698         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18699         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18700         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18701         CHAR_STRING_ADVANCE.
18702         (produce_chars): Fix for the case that the source and the
18703         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
18704         instead of CHAR_STRING_ADVANCE.
18705         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18706         STRING_CHAR_ADVANCE.
18708 2008-03-15  Andreas Schwab  <schwab@suse.de>
18710         * regex.c (re_match_2_internal): Correct matching of eight bit
18711         characters in unibyte strings.
18713 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
18715         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18716         at end of range when it coincides with the end of the buffer.
18718 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
18720         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18722         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18724 2008-03-14  Jason Rumney  <jasonr@gnu.org>
18726         * editfns.c (initial_tz): New variable.
18727         (syms_of_editfns): Initialize it.
18728         (Fset_time_zone_rule): Set it when first called.
18729         Use it when TZSTRING is nil.
18731         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18732         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18733         (monitor_from_point_fn, get_monitor_info_fn): New globals.
18734         (globals_of_w32fns): Initialize them.
18735         (compute_tip_xy): Use them to position tooltips.
18737 2008-03-14  Glenn Morris  <rgm@gnu.org>
18739         * emacs.c (main): Revert previous change.
18740         (standard_args): Revert -internal-script back to -scriptload,
18741         and remove the long-option form.
18743 2008-03-13  Glenn Morris  <rgm@gnu.org>
18745         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18746         Remove option -enable-font-backend.
18748 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
18750         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18752 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
18754         * xterm.c (x_connection_closed): For GTK: If this is the last
18755         terminal just exit without closing the display.
18757 2008-03-11  Jason Rumney  <jasonr@gnu.org>
18759         * w32font.c (w32font_full_name): Use floor to round.
18761 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
18763         * sound.c (alsa_configure): Declare vol at beginning of block.
18765         * fontset.c (Ffontset_info): Remove extra semicolon.
18767 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
18769         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18770         size of resulting string.
18772 2008-03-10  Jason Rumney  <jasonr@gnu.org>
18774         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18776 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18778         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18779         Don't pretend as if characters with display property haven't been
18780         consumed for string-replacing-string case.
18782 2008-03-08  Kim F. Storm  <storm@cua.dk>
18784         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18785         (get_next_display_element, next_element_from_string)
18786         (next_element_from_ellipsis, next_element_from_buffer): Use it.
18788 2008-03-08  Andreas Schwab  <schwab@suse.de>
18790         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18792 2008-03-06  Jason Rumney  <jasonr@gnu.org>
18794         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
18795         when charset not specified.  Only translate ANSI to unicode when
18796         font_type is truetype.
18797         (w32font_coverage_ok): New function.
18798         (add_font_entity_to_list): Use it to filter unsuitable fonts.
18800 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
18802         * lread.c (Fread_char): Resolve modifiers.
18803         (Fread_char_exclusive): Likewise.
18805         * character.c (char_resolve_modifier_mask): New function.
18806         (char_string): Use char_resolve_modifier_mask.
18807         (Fchar_resolve_modifiers): New function.
18808         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18809         function.
18811 2008-03-04  Jason Rumney  <jasonr@gnu.org>
18813         * makefile.w32-in: Always include w32font.c in the build.
18814         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18816 2008-03-04  Andreas Schwab  <schwab@suse.de>
18818         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18819         (versionclean): Likewise.
18821 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
18823         * .cvsignore: Add oo.
18825 2008-03-03  Andreas Schwab  <schwab@suse.de>
18827         * coding.c (decode_coding_object): Inhibit gap shrinking while
18828         decoding in place.
18830 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
18832         * w32term.c: Remove unused include "gnu.h".
18833         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18835         * gnu.h: Rename to ...
18836         * emacs-icon.h: ... this.
18837         * xterm.c: Use emacs-icon.h instead of gnu.h.
18838         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18840 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
18842         * w32font.c: Include math.h.
18844 2008-03-03  Jason Rumney  <jasonr@gnu.org>
18846         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18847         Compute options separately.
18848         (w32font_open_internal): Set glyph_idx before caching metrics.
18850         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18851         Define if system headers don't.
18852         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
18853         (w32font_encode_char): Don't declare here.
18855         * w32font.c (Quniscribe, QCformat): New symbols.
18856         (syms_of_w32font): Define them.
18857         (w32font_has_char): Indicate uncertainty.
18858         (w32font_encode_char): Encode as glyph point.  Make static.
18859         (recompute_cached_metrics): New function.
18860         (w32font_open_internal): Use it.  Set font to use glyph points
18861         initially.  Set format based on type of font.
18862         (w32font_text_extents, w32font_draw): Optionally use glyph points.
18863         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
18864         on it.  Set format based on information available here.
18865         (add_font_entity_to_list): Identify backend based on opentype_only.
18867 2008-03-02  Andreas Schwab  <schwab@suse.de>
18869         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18871         * coding.c (decode_coding_big5, produce_chars):
18872         Fix typos in last change.
18874 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
18876         * gnu.h: New icon.
18878 2008-03-02  Kenichi Handa  <handa@m17n.org>
18880         * coding.c (decode_coding_utf_8): When eol-type of CODING is
18881         `dos', don't decode '\r' if that is the last in the source.
18882         (decode_coding_utf_16, decode_coding_emacs_mule)
18883         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18884         (decode_coding_raw_text, decode_coding_charset): Likewise.
18885         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
18887 2008-03-01  Jason Rumney  <jasonr@gnu.org>
18889         * w32font.c (w32font_full_name): Report point size for scalable fonts.
18891 2008-03-01  Kim F. Storm  <storm@cua.dk>
18893         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18895 2008-03-01  Jason Rumney  <jasonr@gnu.org>
18897         * w32font.c (w32font_full_name): New function.
18898         (w32font_open_internal): Use it.
18900 2008-03-01  Kim F. Storm  <storm@cua.dk>
18902         * dispnew.c (line_draw_cost): Fix invalid glyph check.
18904 2008-03-01  Jason Rumney  <jasonr@gnu.org>
18906         * font.c (font_unparse_fcname): Increase len when style is a symbol.
18908 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
18910         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18911         xg_frame_resized when the event is for the edit widget.
18913         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18915         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18916         set_char_size.
18917         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
18918         operations on widgets here.  Just set frame size if needed.
18919         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18920         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18921         (x_wm_set_size_hint): Set size hints on the edit widget only, not
18922         the whole frame.
18923         (xg_create_tool_bar): Move attachment of the tool bar to
18924         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
18925         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18927 2008-03-01  Jason Rumney  <jasonr@gnu.org>
18929         * w32fns.c (w32_msg_pump): Disable debug code.
18931 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18933         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18935 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
18937         * xdisp.c (next_overlay_string): Don't set
18938         overlay_strings_at_end_processed_p if we're currently reading from
18939         a display string.
18941 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
18943         * xdisp.c (get_overlay_strings_1): Fix typo.
18945 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
18947         * xdisp.c (get_overlay_strings_1): Add missing argument type.
18949 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
18951         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18953         * xdisp.c (display_mode_element): Cancel the previous change.
18954         (decode_mode_spec): Likewise.
18955         (handle_auto_composed_prop): Don't make composition if it->string
18956         is a string.
18958 2008-02-27  Kim F. Storm  <storm@cua.dk>
18960         * lisp.h (GLYPH): Change type from int to struct with separate char
18961         and face_id members.
18962         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18963         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18964         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18965         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
18966         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
18967         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18968         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18969         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18970         handle new Lisp glyph code encoding, either an integer or a cons.
18972         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18973         (GLYPH_ALIAS): Delete.
18974         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18975         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18976         (GLYPH_FROM_CHAR): Replace macro by ...
18977         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
18979         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18980         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18981         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
18982         (GLYPH_INVALID_P): New macro.
18983         (spec_glyph_lookup_face): Update prototype.
18985         * dispnew.c (line_draw_cost): Adapt to new glyph type.
18986         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18987         new glyph code encoding.
18988         (spec_glyph_lookup_face): No return value; update passed glyph instead.
18989         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18991         * xdisp.c (get_next_display_element, next_element_from_display_vector):
18992         Adapt to new glyph type and new glyph code encoding.
18994         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18996         * indent.c (current_column, current_column_1, Fmove_to_column)
18997         (compute_motion): Adapt to new glyph code encoding.
18999         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19001 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
19003         * process.c (wait_reading_process_output): Check for window
19004         changes caused by timers.
19005         Suggested by Johan Bockgård.
19007 2008-02-27  Glenn Morris  <rgm@gnu.org>
19009         * emacs.c (USAGE1): Add `--disable-font-backend'.
19011 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
19013         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19014         is made to the buffer.
19016 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
19018         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19019         (face_at_string_position):
19020         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19021         (face_at_string_position):
19022         * xdisp.c (display_string, next_overlay_change):
19023         * buffer.h (overlays_at):
19024         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19025         Update callers.
19027 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
19029         * editfns.c (Fformat): Doc fix.
19031 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
19033         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19034         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19035         (Ffont_otf_alternates, Fquery_font): Doc fixes.
19037 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19039         * buffer.c (Fbuffer_swap_text): New function.
19040         (syms_of_buffer): Defsubr it.
19042 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
19044         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19046 2008-02-25  Jason Rumney  <jasonr@gnu.org>
19048         * w32font.c (w32font_draw): Draw one character at a time when padding.
19050 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19052         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19053         Handle a nil arg.  Use run_window_configuration_change_hook.
19054         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19055         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19056         Use run_window_configuration_change_hook.
19058 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
19060         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19061         1-pixel width.
19063 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
19065         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19066         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19067         if the glyph in the font is zero pixel with.
19069         * dispextern.h (struct glyph_string): New member padding_p.
19071         * w32font.c (w32font_draw): Pay attention to s->padding_p.
19073         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19075         * xfont.c (xfont_draw): Pay attention to s->padding_p.
19077         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19079         * font.c: If the font driver doesn't have `shape' function, return Qnil.
19081 2008-02-25  Jason Rumney  <jasonr@gnu.org>
19083         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19085 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
19087         Allow fine-grained image-cache flushing.
19088         * dispextern.h (struct image): Add `dependencies' field.
19089         (clear_image_caches): Change arg to Lisp_Object.
19090         * image.c (make_image): Initialize `dependencies' field.
19091         (clear_image_cache): Change arg to allow fine-grained flushing.
19092         Perform the flush even if image-cache-eviction-delay is nil.
19093         (clear_image_caches): Change arg to Lisp_Object.
19094         (Fclear_image_cache): Expand meaning of the argument.
19095         (mark_image): Mark `dependencies' field.
19096         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19097         (lface_hash): Use XHASH rather than XFASTINT.
19098         (face_at_buffer_position): Fix int -> EMACS_INT position.
19099         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19100         (select_frame_for_redisplay): Remove code duplication.
19101         (redisplay_internal): Adapt arg to call to clear_image_caches.
19103 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
19105         * s/vms4-0.h:
19106         * s/vms4-2.h:
19107         * s/vms4-4.h:
19108         * s/vms5-5.h: Remove, unused.
19110         * s/irix5-2.h:
19111         * s/irix6-0.h:
19112         * s/riscos5.h:
19113         * s/mach-bsd4-3.h:
19114         * m/mips4.h: Remove files for obsolete systems.
19116         * Makefile.in:
19117         * filelock.c:
19118         * unexmips.c:
19119         * m/hp9000s300.h:
19120         * m/iris4d.h:
19121         * s/aix3-1.h:
19122         * s/hpux.h:
19123         * s/msdos.h:
19124         * s/usg5-0.h:
19125         * s/usg5-2-2.h:
19126         * s/usg5-2.h:
19127         * s/usg5-3.h: Remove references to obsolete variables.
19129         * s/irix5-0.h: Remove, move all the contents ...
19130         * s/irix6-5.h: ... here.  Simplify.
19131         * config.in: Regenerate.
19133 2008-02-24  Jason Rumney  <jasonr@gnu.org>
19135         * w32term.c (x_draw_glyph_string_background): Clear the background
19136         manually when cleartype is in use.
19137         (x_draw_glyph_string_foreground): Draw text transparently when
19138         cleartype is in use.
19140         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19141         a font into it unless we have to.
19143 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19145         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
19146         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
19148 2008-02-18  Jason Rumney  <jasonr@gnu.org>
19150         * w32fns.c (Fw32_shell_execute): Encode parameters.
19152 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
19154         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19156 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
19158         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19160 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
19162         * xterm.c (x_set_offset): Don't change the gravity if
19163         CHANGE_GRAVITY is -1.
19165 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
19167         * fileio.c (auto_save_error_occurred): New var.
19168         (auto_save_error): Set it.
19169         (Fdo_auto_save): Don't overwrite the error message if an auto-save
19170         error occurred.
19172 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
19174         * w32.c (globals_of_w32): Add initializations for
19175         g_b_init_get_sid_sub_authority and
19176         g_b_init_get_sid_sub_authority_count.
19178 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
19180         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19181         (font_parse_xlfd): Use them for sanity check.
19182         (Finternal_set_font_style_table): Make sure the table is bijective.
19184         Consolidate the image_cache to the terminal struct.
19185         * termhooks.h (P_): Remove redundant def.
19186         (struct terminal): New field `image_cache'.
19187         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
19188         of FRAME_X_IMAGE_CACHE.
19189         * xterm.h (struct x_display_info): Remove image_cache field.
19190         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
19191         * w32term.h (struct w32_display_info): Remove image_cache field.
19192         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
19193         * macterm.h (struct mac_display_info): Remove image_cache field.
19194         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
19195         * xterm.c (x_term_init):
19196         * w32term.c (w32_term_init):
19197         * macterm.c (mac_term_init): Set the image_cache in the terminal.
19198         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19199         Remove declarations.
19200         (clear_image_caches, mark_image_cache): New declarations.
19201         * xfaces.c (clear_face_cache):
19202         * xdisp.c (redisplay_internal): Use clear_image_caches.
19203         * image.c (clear_image_cache): Don't check that a frame is on
19204         a window-system before checking if it shares the same cache.
19205         (clear_image_caches): New function.
19206         (Fclear_image_cache): Use it.
19207         (mark_image): Move from allo.c.
19208         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19209         * alloc.c (mark_image, mark_image_cache): Move to image.c.
19210         (mark_object): Don't call mark_image_cache for frames.
19211         (mark_terminals): Call mark_image_cache.
19213         * lisp.h (Fdelete_terminal): Declare.
19215         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19216         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19217         wrong_type_argument.
19219 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
19221         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19222         malayalam.el, and tamil.el.  Add sinhala.el.
19224 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19226         * xterm.c (x_connection_closed): Consolidate identical tests.
19227         (x_delete_terminal): Don't crash if called via x_connection_closed.
19229 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
19231         * xdisp.c (decode_mode_spec): New arg string.
19232         (display_mode_element): Adjust for the above change.
19234 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19236         * callint.c (Fcall_interactively): Use AREF.
19238 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
19240         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19242 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
19244         * xfns.c (Fx_show_tip): Set string to " " if empty.
19246 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
19248         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19249         with Qt.
19251 2008-02-17  Kenichi Handa  <handa@m17n.org>
19253         * ftfont.c (ftfont_shape): Return Lispy number.
19255         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19256         for GCs.
19257         (Finternal_set_font_selection_order): Call font_update_sort_order
19258         only when enable_font_backend is set.
19259         (realize_x_face): Set face->font_info to that of default face only
19260         when enable_font_backend is set.
19262         * xdisp.c (handle_composition_prop): Set it->c to the fist
19263         character of the composed region.
19264         (fill_composite_glyph_string): Set base_face->font_info to
19265         s->font_info.  Get a face for ascii from base_face->ascii_face.
19266         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19267         with a face already decided.
19268         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19269         non-negative.
19270         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19271         call font_prepare_composition unconditionally.
19273         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19275         * xterm.h (struct x_display_info): New member font.
19277         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19278         (x_set_mouse_face_gc, x_new_font): Likewise.
19279         (x_term_init): Setup display_info->font.
19280         (x_delete_terminal): Free display_info->font.
19282         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19284         * ftxfont.c (ftxfont_default_fid): Delete it.
19285         (ftxfont_open): Set xfont->fid to 0.
19286         (ftxfont_end_for_frame): Clear data specific to the frame and the
19287         font-driver.
19289         * xftfont.c (xftfont_default_fid): Delete it.
19290         (xftfont_open): Set xfont->fid to 0.
19292         * fontset.c (FONTSET_OBJLIST): New macro.
19293         (fontset_find_font): Update font-object list of the fontset.
19294         (free_realized_fontset): New function.
19295         (free_face_fontset): Call free_realized_fontset.
19296         (Ffont_info): Call font_close_object only when enable_font_backend
19297         is set.
19299         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19300         [HAVE_NTGUI]: Include w32term.h.
19301         [MAC_OS]: Include macterm.ch.
19302         (font_otf_ValueRecord): Use make_number.
19303         (font_finish_cache): Fix handling of reference count.
19304         (font_clear_cache): Update num_fonts.
19305         (font_open_entity): Update smallest_char_width and
19306         smallest_font_height of the frame.
19307         (font_close_object): Update num_fonts.
19308         (Fclear_font_cache): Fix finding the target cache data.
19310 2008-02-16  Glenn Morris  <rgm@gnu.org>
19312         * fontset.c (Finternal_char_font): Fix compilation warning.
19314 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
19316         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19317         instead of char arrays.  Enlarge the size of array passed to
19318         get_token_information.
19320         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19321         warnings.
19323 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
19325         * .gdbinit: Don't set `args', it breaks gdb --args.
19327 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
19329         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19330         within a narrowed buffer.
19332 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
19334         * coding.c (decode_coding_object, encode_coding_object):
19335         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
19337 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
19339         * coding.c (coding_set_destination): Use BEG_BYTE rather than
19340         hardcoding 1.
19341         (detect_coding_system):
19342         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19343         (string_char_to_byte, string_byte_to_char, insert_from_gap):
19344         * insdel.c (insert_from_gap):
19345         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19346         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19347         (string_to_multibyte):
19348         * character.c (chars_in_text, multibyte_chars_in_text):
19349         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19351         * character.h (FETCH_STRING_CHAR_ADVANCE)
19352         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19353         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19354         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19356         * casefiddle.c (casify_region): Only call after-change and composition
19357         functions on the part of the region that was changed.
19359         * keyboard.c (read_avail_input):
19360         * frame.c (Fdelete_frame): Call Fdelete_terminal.
19362 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19364         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19365         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19367 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
19369         * w32menu.c (push_submenu_start, push_submenu_end)
19370         (push_left_right_boundary, push_menu_pane, push_menu_item):
19371         * keyboard.c (read_key_sequence): Don't pass args with side effects
19372         to AREF, it fails when compiling with -DENABLE_CHECKING.
19374 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
19376         * Makefile.in (${lispsource}international/charprop.el):
19377         Delete this target.
19379         * search.c (boyer_moore): Fix incorrect synching of the trunk and
19380         emacs-unicode-2.
19382 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19384         * terminal.c (Fdelete_terminal): Clean up the `force' path.
19386 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19388         * frame.c (Qnoelisp): New symbol.
19389         (syms_of_frame): Initialize it.
19390         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19391         harmless Elisp code, from a strong `force' from x_connection_closed.
19392         * frame.h (Qnoelisp): Declare.
19393         * xterm.c (x_connection_closed): Pass `noelisp'.
19395         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19396         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19397         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19398         rather than `int' for the type of `type'.
19400 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
19402         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19404         * Makefile.in (GNUC): Remove support for gcc-1.x.
19406 2008-02-10  Richard Stallman  <rms@gnu.org>
19408         * lisp.h (ASET): Use AREF, not ASLOT.
19410 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19412         * lisp.h (ASET): Check bounds.
19414 2008-02-10  Glenn Morris  <rgm@gnu.org>
19416         * buffer.c (mode-name): Doc fix.
19418 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
19420         * Makefile.in:
19421         * emacs.c:
19422         * gmalloc.c:
19423         * keyboard.c:
19424         * lisp.h:
19425         * m/ibm370aix.h:
19426         * process.c:
19427         * regex.c:
19428         * s/hpux.h:
19429         * sysdep.c:
19430         * sysselect.h:
19431         * systty.h:
19432         * unexec.c:
19433         * w32term.c:
19434         * xsmfns.c:
19435         * xterm.c: Remove code that deals with obsolete variables.
19437         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19439         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19440         nothing else needs it anymore.
19442 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
19444         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19445         instead of unibyte_char_to_multibyte.
19447 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
19449         * s/gnu-linux.h: Remove commented out code.
19451         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19453         * Makefile.in: Update what RMS says about using autoconf.
19454         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19455         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19456         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19457         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19459 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
19461         * keymap.c (Fkey_description): Move side effect outside of macro call.
19463         * xfaces.c (Finternal_make_lisp_face):
19464         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19466         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19467         (syms_of_fontset): Use ASET.
19469         * fns.c (concat): Move side effect outside of macro call.
19470         (hash_clear): Use ASET.
19472 2008-02-08  Richard Stallman  <rms@gnu.org>
19474         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19475         If FORCE, and frame has a surrogate minibuffer for another frame,
19476         delete the other frame first.
19478 2008-02-07  Timo Savola  <timo.savola@iki.fi>
19480         * xterm.c (x_detect_focus_change): Handle embed client message.
19481         (handle_one_xevent): Ditto.
19482         (handle_one_xevent): If embedded and we get a button press/release,
19483         request focus.
19484         (xembed_set_info, xembed_send_message): New functions.
19485         (x_make_frame_visible): Call xembed_set_info if embedded.
19486         (x_make_frame_invisible): Call xembed_set_info if embedded.
19487         (x_term_init): Initialize Xatom_XEMBED.
19488         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19489         (x_iconify_frame): Ditto.
19491         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19492         (enum xembed_info, enum xembed_message, enum xembed_focus)
19493         (enum xembed_modifier, enum xembed_accelerator): New.
19494         (xembed_set_info, xembed_send_message): Declare.
19495         (FRAME_X_EMBEDDED_P): New.
19497         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19498         gtk_plug_new.
19500         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19501         window ID of a frame.
19502         (x_window): Reparent frame if embedded.
19503         (Fx_create_frame): Don't set border width if embedded.
19505         * emacs.c (USAGE3): Add --parent-id.
19506         (standard_args): Ditto.
19508 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
19510         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19512 2008-02-07  Jim Meyering  <meyering@redhat.com>
19514         Use "do...while (0)", not "if (1)...else" in macro definitions.
19515         The latter provokes a warning from gcc about the empty else, when
19516         followed by ";".  Also, without that trailing semicolon, it would
19517         silently swallow up any following statement.
19518         * syntax.h (SETUP_SYNTAX_TABLE)
19519         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19520         * buffer.h (DECODE_POSITION): Likewise.
19521         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19522         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19523         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19524         (FETCH_CHAR_ADVANCE): Likewise.
19525         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19527 2008-02-07  Jim Meyering  <meyering@redhat.com>
19529         * lread.c [lint]: Don't include <sys/inode.h>.
19531 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
19533         * xselect.c (x_handle_dnd_message):
19534         * xmenu.c (digest_single_submenu, xmenu_show):
19535         * xdisp.c (with_echo_area_buffer_unwind_data)
19536         (format_mode_line_unwind_data, unwind_format_mode_line)
19537         (display_menu_bar):
19538         * eval.c (Ffetch_bytecode):
19539         * doc.c (store_function_docstring):
19540         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19541         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19542         * buffer.c (add_overlay_mod_hooklist): Use ASET.
19544 2008-02-07  Kenichi Handa  <handa@m17n.org>
19546         * ftxfont.c (ftxfont_open): Don't set
19547         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19549         * ftfont.c (ftfont_open): Fix previous change.
19551 2008-02-06  Jason Rumney  <jasonr@gnu.org>
19553         * w32font.c (w32font_text_extents): Fill in lbearing metric.
19554         Use cached metrics for ASCII characters.
19555         (w32font_open_internal): Don't set font's owning_frame.
19556         Cache metrics for ASCII characters.
19558         * w32font.h (struct w32font_info): Add ascii_metrics.
19559         Remove owning_frame.
19561 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
19563         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19564         to negative value.
19566         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19568         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19570         * charset.c (syms_of_charset): Set QCtest and Qeq.
19572 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
19574         * process.c (Fstart_process):
19575         * callproc.c (Fcall_process): Handle the case where
19576         Funhandled_file_name_directory returns nil.
19578         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19579         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19580         * font.c (check_gstring): Use them and AREF to access the vector before
19581         we know it's really a gstring.
19582         (Ffont_shape_text): Fix typo.
19583         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19585         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19586         Declare.
19588         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19590 2008-02-05  Jason Rumney  <jasonr@gnu.org>
19592         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19593         Set smallest_font_height and smallest_char_width in display info.
19595 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
19597         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19599 2008-02-05  Miles Bader  <miles@gnu.org>
19601         * xfaces.c (get_lface_attributes, merge_named_face)
19602         (lookup_named_face, lookup_derived_face, realize_named_face):
19603         Revert 2008-02-01 change by cyd@stupidchicken.com.
19605 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
19607         * fontset.c (Ffontset_info): Handle the case of inhibitting the
19608         fallback fonts.
19609         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19611 2008-02-04  Jason Rumney  <jasonr@gnu.org>
19613         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19614         set full_name.
19615         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19617 2008-02-03  Jason Rumney  <jasonr@gnu.org>
19619         * makefile.w32-in (OBJ1): Include font.o here.
19620         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19622 2008-02-02  Jason Rumney  <jasonr@gnu.org>
19624         * makefile.w32-in (temacs): Bump EMHEAP to 21.
19626 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19628         * s/cygwin.h: Define VIRT_ADDR_VARIES.
19630         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19632 2008-02-01  Andreas Schwab  <schwab@suse.de>
19634         * Makefile.in (shortlisp, lisp): Update for rename of
19635         ../lisp/language/myanmar.el.
19637 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
19639         * xfaces.c (get_lface_attributes): Delete function.
19640         (merge_named_face, lookup_named_face, lookup_derived_face)
19641         (realize_named_face): Call lface_from_face_name directly, and use
19642         the fact that merge_face_vectors does not alter its FROM argument.
19644 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19646         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19647         input in the default locale.  Handle non-Unicode multibyte input.
19649 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19651         * fontset.c (reorder_font_vector): Exclude nil elements from the
19652         font group.  Don't try multiple fonts.
19653         (fontset_font): Adjust for the above change.
19654         (Finternal_char_font): Return nil if the found font doesn't
19655         contain the character ch.
19657         * Makefile.in (lisp, shortlisp): Add cham.el.
19659 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19661         * font.h (FONTP): Make it return 1 also for a font-object.
19663         * .gdbinit (xfontset): New function.
19665         * font.c (font_find_for_lface): Check if the character C is
19666         supported or not only for the first font.
19668         * fontset.c (reorder_font_vector): Fix typo.
19669         (fontset_find_font): Don't add a font-spec specifying a script.
19670         Use 0 (not Qt) for the indication of empty font-group.  Change the
19671         format of RFONT-DEF.  Return Qt if no font in the font-group
19672         support the character.
19673         (fontset_font): Adjust for the above change.  If no font was
19674         found the character, remember that.
19675         (face_for_char): Adjust for the change of RFONT-DEF.
19676         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19677         no font for the target.
19678         (Finternal_char_font): Adjust for the change of RFONT-DEF.
19680 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19682         * font.c (font_load_for_face): Handle the case that the font in
19683         face->lface is a string.
19685 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19687         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19689 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19691         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19692         Fix previous change.  If the frame is not on a window system,
19693         signal an error.
19695 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19697         * coding.c (decode_coding_object, encode_coding_object): Adjust
19698         marker positions after conversion.
19700         * lisp.h (struct Lisp_Marker): New member need_adjustment.
19702 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19704         * font.c (font_find_for_lface): Fix the handling of the return
19705         value of font_has_char.
19706         (Ffont_shape_text): Fix previous change.
19708         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19709         (fontset_ref_and_range): Delete it.
19710         (fontset_find_font): Call char_table_ref_and_range instead of
19711         FONTSET_REF_AND_RANGE.
19712         (make_fontset): Don't setup font groups of Latin here.
19713         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19714         (new_fontset_from_font): Make the specified font the default for
19715         all Latin characters.
19717 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19719         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19720         is on a window system before accessing the fontset of the frame.
19722 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19724         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19726         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19727         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19729         * font.c (Ffont_shape_text): If the font driver doesn't have a
19730         shaper function, make zero-width glyphs to have at least one-pixel
19731         width.  Fix setting of `to' field of glyphs.
19733 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19735         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19736         glyphs.
19738         * font.h (struct font_driver): Improve docstring of member `shape'.
19740 2008-02-01  Kenichi Handa  <handa@m17n.org>
19742         * composite.c (syms_of_composite): Fix docstring of
19743         auto-composition-function.
19745         * font.h (LGLYPH_SIZE): New macro.
19747         * font.c (Ffont_fill_gstring): Stop filling when a character not
19748         supported by the font is found.
19749         (Ffont_shape_text): When a shape callback function returns nil,
19750         try at most two more times with larger gstring.
19751         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
19753         * xdisp.c (handle_auto_composed_prop): Change the argument to
19754         auto-composition-function.
19756         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19757         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19758         Lispy glyph and store it in the lgstring.
19760         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19762         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19764 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19766         * font.c (Ffont_shape_text): Avoid unnecessary composition.
19768         * fontset.c (Vfont_encoding_charset_alist): New variable.
19769         (syms_of_fontset): DEFVAR it.
19770         (reorder_font_vector, fontset_find_font): Optimize for the case of
19771         no need of reordering.
19772         (face_for_char): Map the charset property by
19773         Vfont_encoding_charset_alist.
19775 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19777         * w32font.c (logfonts_match): Don't check adstyle here.
19778         (font_matches_spec): Check here against physical font instead.
19779         (add_font_entity_to_list): Avoid some substitutions.
19781         * font.c (font_parse_fcname): Default weight and slant to normal.
19782         (font_score): Prefer normal fonts if weight or slant unspecified.
19783         (font_score) [WINDOWSNT]: Scale weight difference down to closer
19784         match freetype scores.
19786 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19788         * w32font.c (w32font_text_extents): Don't use the frame stored in the
19789         font, as it may have been deleted.
19790         (w32_enumfont_pattern_entity): Map generic family to adstyle using
19791         most common hyphenless variation.
19792         (logfonts_match): Check generic family.
19793         (font_matches_spec): Don't check generic family here.
19794         (fill_in_logfont): Set generic family based on adstyle.
19796         * w32font.h (w32font_get_cache): Update declaration.
19798 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19800         * ftfont.c (ftfont_get_cache): Adjust the argument type.
19802         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19803         If none of the new drivers are available, call font_update_drivers
19804         with the old drivers.
19806         * w32font.c (w32font_get_cache): Adjust the argument type.
19808         * xfont.c (xfont_get_cache): Adjust the argument type.
19810         * font.h (struct font_driver): Change argument type of get_cache.
19812         * xftfont.c (xftfont_start_for_frame): Delete prototype.
19814         * font.c (Ffont_get): Fix arguments to Fassoc.
19815         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19816         (font_clear_cache): New function.
19817         (font_list_entities, font_matching_entity): Use font_get_cache.
19818         (font_update_drivers): Call font_clear_cache when finishing a driver.
19820         * fontset.c (fontset_find_font): Fix previous change.
19822 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19824         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19825         dpyinfo->font_table.
19826         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19827         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19829         * font.c (font_at): Handle the case that the arg C is negative.
19830         Handle the unibyte case.
19831         (Ffont_at): Call font_at with the arg C -1.
19833         * xdisp.c (handle_auto_composed_prop): Don't get a character at
19834         the position here, and call font_at with the arg C -1.
19835         Don't check the range of the existing composition at the point.
19837 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19839         * fontset.c (fontset_add): New args charset_id and family.
19840         Change caller.
19841         (load_font_get_repertory, fontset_find_font): Assume that
19842         font_spec is always a font-spec object.
19843         (Fset_fontset_font): Always store a font-spec object in a fontset.
19845         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19846         instead of get_property_and_range.
19848 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19850         * xftfont.c (struct xftfont_info): Delete the member ft_face.
19851         (xftfont_open): Don't keep locking face.
19852         (xftfont_close): Don't unlock face.
19853         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19855         * fontset.c (fontset_find_font): Don't prefer a font of
19856         supplementary charset.
19858 2008-02-01  Kenichi Handa  <handa@m17n.org>
19860         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19861         script, langsys_tag to langsys, new member script.
19862         (OTF_TAG_STR): Terminate by '\0'.
19863         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
19864         listing to the script specified in that property.  Fix arg to
19865         OTF_check_features.
19867 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19869         * w32font.h: New file.
19871         * w32font.c: Include it.
19872         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
19873         (w32font_open): Set owning_frame.
19874         (w32font_text_extents): Use owning_frame.
19875         (struct font_callback_data): Add opentype_only field.
19876         (add_font_entity_to_list): Use it to filter fonts.
19877         Don't check against full name.
19878         (w32font_list_internal): New function.
19879         (w32font_list): Use it.
19880         (w32font_match_internal): New function.
19881         (w32font_match): Use it.
19882         (w32font_open_internal): New function.
19883         (w32font_open): Use it.
19884         (w32font_get_cache, w32font_close, w32font_has_char)
19885         (w32font_encode_char, w32font_text_extents, w32font_draw):
19886         Make non-static.
19888         * makefile.w32-in (w32font.o): Depend on w32font.h.
19890 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19892         * charset.c (Fdefine_charset_internal): Record a supplementary
19893         charset at the tail of Vcharset_order_list.
19895         * font.c (Ffont_shape_text): Fix the return value.
19897         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19899         * xdisp.c (handle_auto_composed_prop): Fix previous change.
19901 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19903         * ftfont.c (struct OpenTypeSpec): New struct.
19904         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19905         (ftfont_get_open_type_spec): New function.
19906         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19908         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19910 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19912         * w32font.c (add_font_entity_to_list): Compare only the beginning
19913         of full name.
19915 2008-02-01  Kenichi Handa  <handa@m17n.org>
19917         * xdisp.c (handle_auto_composed_prop): Simplify the code.
19918         Never return HANDLED_RECOMPUTE_PROPS.
19920 2008-02-01  Kenichi Handa  <handa@m17n.org>
19922         * font.c (font_gstring_produce): Delete it.
19924         * composite.h (COMPOSITION_METHOD):
19925         Handle COMPOSITION_WITH_GLYPH_STRING.
19927 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19929         * xfont.c (Qx): Delete.
19930         (syms_of_xfont): Don't initialize Qx.
19932         * composite.h (enum composition_method):
19933         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19935 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19937         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19938         (choose_face_font): Accept new form of font-spec.
19940         * frame.h (font_driver_list): Declare it unconditionally.
19941         (struct frame): Define members font_driver_list and font_data_list
19942         unconditionally.
19944         * fontset.c: Include "font.h" unconditionally.
19945         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19946         (Fset_fontset_font): Accept a font-spec object.
19948         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19949         PIXEL_SIZE part a wild card.
19951         * dispextern.h (struct glyph_string): Define members clip and
19952         num_clips unconditionally.
19953         (struct face): Define members font_info and extra unconditionally.
19955         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19956         ftfont_info only when HAVE_LIBOTF is defined.
19958 2008-02-01  Andreas Schwab  <schwab@suse.de>
19960         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19961         and end.
19963 2008-02-01  Jason Rumney  <jasonr@gnu.org>
19965         * w32font.c (w32font_driver): Add new fields.
19967 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
19969         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19970         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19971         (LIBES): Add @M17N_FLT_CFLAGS@.
19973         * composite.c (compose_text): Don't treat the new style
19974         composition specially.
19976         * emacs.c (main): Call syms_of_font unconditionally.
19978         * font.h (FONT_ENTITY_NOT_LOADABLE)
19979         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19980         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19981         (struct font_driver): New member shape.
19982         (font_registry_charsets): Extern it.
19983         (font_find_for_lface, font_prepare_composition): Adjust prototype.
19984         (font_otf_capability, font_drive_otf): Delete their externs.
19986         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19987         (font_charset_alist, font_registry_charsets): Move from xfont.c
19988         and rename.
19989         (font_prop_validate_otf): New function.
19990         (font_property_table): Register it for QCotf.
19991         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19992         (font_drive_otf): Delete.
19993         (font_prepare_composition): New arg F.  Adjust for the change of
19994         lispy gstring.
19995         (font_find_for_lface): New arg C.
19996         (font_load_for_face): Adjust for the change of font_find_for_lface.
19997         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19998         lispy gstring.
19999         (Ffont_shape_text): New function.
20000         (Fopen_font): If the font size is not given, use 12-pixel.
20001         (Ffont_at): New arg STRING.
20002         (syms_of_font): Initialize font_charset_alist.
20003         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
20004         conditionally.
20006         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20007         fonts of the same font-spec.  Change the format of RFONT-DEF.
20008         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20009         Adjust for the change of RFONT-DEF.
20010         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20012         * ftfont.h: New file.
20014         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
20015         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20016         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20017         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20018         font_otf_capability and font_drive_otf, set ftfont_shape.
20019         (ftfont_list): Adjust for the change of :otf property value.
20020         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20021         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20022         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20023         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20024         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20025         (otf_gstring, gstring, m17n_flt_initialized): New variables.
20027         * w32term.c (x_draw_composite_glyph_string_foreground):
20028         Adjust for the change of lispy gstring.
20030         * xdisp.c (handle_composition_prop): Adjust for the change of
20031         lispy gstring.  Call a function for auto-composition with the
20032         third arg it->window.
20033         (fill_composite_glyph_string): Adjust for the change of lispy string.
20034         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20036         * xfaces.c (set_font_frame_param): Adjust for the change of
20037         font_find_for_lface.
20039         * xfont.c (x_font_charset_alist): Move to font.c and rename.
20040         (xfont_registry_charsets): Likewise.  Change caller.
20041         (syms_of_xfont): Don't handle x_font_charset_alist.
20043         * xftfont.c: Include "ftfont.h".
20044         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20045         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20046         (xftfont_close) [HAVE_LIBOTF]: Close otf.
20047         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20048         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20049         Set xftfont_driver.shape to xftfont_shape.
20051         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20052         the change of lispy gstring.
20054 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20056         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20058 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20060         * w32font.c (w32font_draw): Fill background manually.
20062 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20064         * font.c (Qfontp): Remove unused symbol.
20065         (QCantialias): New symbol.
20066         (syms_of_font): Define it.
20067         (font_property_table): Set a validator for QCantialias.
20069         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20070         Define if not already.
20071         (QCfamily): Share with xfaces.c.
20072         (Qstandard, Qsubpixel, Qnatural): New symbols.
20073         (syms_of_w32font): Define them.  Don't define QCfamily here.
20074         (w32_antialias_type, lispy_antialias_type): New functions.
20075         (w32_enumfont_pattern_entity): New arg requested_font.
20076         Set antialias parameter if non-default was requested.
20077         (fill_in_logfont): Fill in lfQuality if :antialias specified.
20079 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20081         * lread.c (read1): Undo the previous change.
20083 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
20085         * frame.c (Fdelete_frame): Call font_update_drivers only when
20086         USE_FONT_BACKEND is defined.
20088 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20090         * font.h (struct font_bitmap): New member bits_per_pixel.
20091         (struct font_driver): New members start_for_frame and end_for_frame.
20092         (struct font_data_list): New struct.
20093         (font_put_frame_data, font_get_frame_data): Extern them.
20095         * frame.h (struct frame): New member font_data_list.
20097         * font.c (font_update_drivers): Call driver->start_for_frame and
20098         driver->end_for_frame at proper timings.
20099         (font_put_frame_data, font_get_frame_data): New functions.
20100         (Ffont_spec): Add usage in the docstring.
20102         * frame.c (make_frame): Initialize f->font_data_list to NULL.
20103         (Fdelete_frame): Call font_update_drivers.
20105         * xftfont.c (struct xftface_info): Delete the member xft_draw.
20106         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20107         (xftfont_get_xft_draw): New function.
20108         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20109         (xftfont_end_for_frame): New function.
20110         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20112         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20113         Change argument.  Cache GCs in the per-frame data.
20114         (struct ftxfont_frame_data): New struct.
20115         (ftxfont_draw_bitmap): New arg gc_fore and flush.
20116         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20117         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
20118         (ftxfont_end_for_frame): New function.
20119         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20121         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20123 2008-02-01  Kenichi Handa  <handa@m17n.org>
20125         * xselect.c (Vselection_coding_system)
20126         (Vnext_selection_coding_system): Delete them.
20127         (syms_of_xselect): Don't declare selection-coding-system and
20128         next-selection-coding-system.  They are declared in select.el.
20130 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20132         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20134         * w32fns.c: Include imm.h.
20135         (get_composition_string_fn, get_ime_context_fn): New optional
20136         system functions.
20137         (globals_of_w32fns): Load them from imm32.dll.
20138         (ignore_ime_char): New flag.
20139         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20140         WM_IME_ENDCOMPOSITION messages.
20142         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20143         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20145 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20147         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20148         (READCHAR_REPORT_MULTIBYTE): New macro.
20149         (readchar): New 2nd arg MULTIBYTE.
20150         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20151         Make symbol's name multibyte according to the multibyteness of the
20152         source.
20154 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20156         * xfaces.c (face_for_overlay_string): Call lookup_face with
20157         correct arguments (fix of synching with the trunk).
20159 2008-02-01  Kenichi Handa  <handa@m17n.org>
20161         * font.c (font_prop_validate_symbol, font_prop_validate_style)
20162         (font_prop_validate_non_neg, font_prop_validate_spacing):
20163         Delete argument prop_index.
20164         (font_property_table): Change arguments to validater.  Change Callers.
20165         (font_lispy_object): Delete.
20166         (font_at): Use font_find_object instead fo font_lispy_object.
20168 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20170         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20171         and file names.
20173 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20175         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20176         (font_matches_spec): Remove debug output.
20177         (add_font_entity_to_list): Avoid using substituted fonts.
20179 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20181         * doc.c (Fsnarf_documentation):
20182         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20184 2008-02-01  Miles Bader  <miles@gnu.org>
20186         * dispextern.h (struct glyph_row): Only define "clip" field if
20187         HAVE_WINDOW_SYSTEM is defined.
20189 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
20191         Fix up multi-tty merge.
20193         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20194         and indentation.
20196         * xfaces.c (free_realized_face, clear_face_gcs):
20197         Include font_done_for_face in the input_blocked section, just in case.
20199         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20200         (get_char_face_and_encoding): Undo last change and remove the *other*
20201         duplicate definition (i.e. keep the one that's better scoped and that
20202         includes code for the font-backend).
20204         * terminal.c (create_terminal): Default keyboard_coding to
20205         `no-conversion' and terminal_coding to `undecided'.
20207         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20209         * fontset.c (free_realized_fontsets): Check that the table entry does
20210         contain a fontset before trying to compare it to `base'.
20212         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20213         syms_of_charset, and syms_of_coding earlier because init_window_once
20214         now needs Vcoding_system_hash_table to be setup.
20216         * coding.h (default_buffer_file_coding): Remove.
20218         * coding.c (default_buffer_file_coding): Remove.
20219         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20220         than ->symbol, and use the terminal-local coding system.
20221         (syms_of_coding): Don't setup the coding-systems that are not
20222         terminal-local.
20223         (Fdefine_coding_system_internal): Use XCAR/XCDR.
20225         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20226         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20228         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
20229         in chartab.c and were re-added here by mistake.
20230         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20232         * doc.c (Fsnarf_documentation):
20233         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20234         src to etc.
20236         * ChangeLog.10: Add mistakenly removed entry.
20238 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
20240         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20242 2008-02-01  Miles Bader  <miles@gnu.org>
20244         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20245         Add extra args to FACE_FOR_CHAR.
20247 2008-02-01  Kenichi Handa  <handa@m17n.org>
20249         * keymap.c (where_is_internal_1): If key is a cons, store the copy
20250         in sequence.
20252         * chartab.c (map_sub_char_table, map_char_table): If the range
20253         contains just one character, call the function with that character
20254         even if the depth is not 3.
20256 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20258         * w32font.c (w32font_text_extents): Calculate metrics for the
20259         whole string.
20261 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20263         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20265 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20267         * w32term.c (x_set_glyph_string_clipping): Use
20268         get_glyph_string_clip_rects.
20269         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20270         Adjust for the change of struct glyph_string.
20272         * w32font.c (w32font_draw): Do clipping here.
20274 2008-02-01  Kenichi Handa  <handa@m17n.org>
20276         * xftfont.c (xftfont_draw): Adjust for the change of struct
20277         glyph_string.
20279         * xterm.c (x_set_glyph_string_clipping): Use
20280         get_glyph_string_clip_rects.
20281         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20282         Adjust for the change of struct glyph_string.
20284         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20285         the resulting clip(s}.
20286         (expose_overlaps): Add arg r.  Change callers.  Set it to
20287         row->clip temporarily.
20288         (expose_window): Redraw rows overlapping the exposed area.
20290         * dispextern.h (struct glyph_row): New member clip.
20291         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20292         clip_height, new member clip, and num_clips.
20294 2008-02-01  Kenichi Handa  <handa@m17n.org>
20296         * data.c (Fchar_or_string_p): Fix docstring.
20298 2008-02-01  Kenichi Handa  <handa@m17n.org>
20300         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20301         create a temporary XftDraw object.
20303 2008-02-01  Kenichi Handa  <handa@m17n.org>
20305         * font.c (Ffontp): Fix docstring.
20307         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20308         strong evidence of ISO-2022.
20310 2008-02-01  Kenichi Handa  <handa@m17n.org>
20312         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20313         SYNTAX_ENTRY_FOLLOW_PARENT.
20315 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
20317         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20318         its type.
20319         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20320         Update to the new type of weak_hash_tables and next_weak.
20322         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20323         a plain C pointer to Lisp_Hash_Table.
20325         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20326         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20327         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20328         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20329         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20330         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20331         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20332         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20333         (GC_EQ): Remove since they've been identical to their non-GC_
20334         alter-egos ever since the markbit was eradicated.
20336         * alloc.c:
20337         * buffer.c:
20338         * buffer.h:
20339         * data.c:
20340         * fileio.c:
20341         * filelock.c:
20342         * fns.c:
20343         * frame.h:
20344         * lisp.h:
20345         * macterm.c:
20346         * print.c:
20347         * process.c:
20348         * w32fns.c:
20349         * w32menu.c:
20350         * w32term.c:
20351         * xfns.c:
20352         * xmenu.c:
20353         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20355 2008-02-01  Kenichi Handa  <handa@m17n.org>
20357         * chartab.c (map_sub_char_table): Make it work for the top-level
20358         char-table.  Fix handling of parent char-table.
20359         (map_char_table): Adjust for the above change.
20361 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20363         * w32font.c (Qgdi): Rename from Qw32.
20365 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20367         * w32bdf.c (get_quoted_string): Make function static.
20369 2008-02-01  Kenichi Handa  <handa@m17n.org>
20371         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20372         bigger ascent and descent than those of the font, use them as
20373         font's ascent and descent.
20375 2008-02-01  Kenichi Handa  <handa@m17n.org>
20377         * Makefile.in (${lispsource}international/charprop.el): Move this
20378         target within "#ifdef HAVE_UNIDATA" and "#endif".
20380 2008-02-01  Kenichi Handa  <handa@m17n.org>
20382         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20383         (shortlisp): Add ../lisp/language/tai-viet.el.
20385 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
20387         * Makefile.in (${lispsource}international/charprop.el): Depend on
20388         temacs${EXEEXT}.
20390 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20392         * w32font.c (w32font_close): Delete the GDI font object.
20394         * w32menu.c: Include character.h.
20396         * w32proc.c: Likewise.
20398         * w32select.c: Likewise.
20400         * makefile.w32-in (w32proc.o): Depend on character.h.
20402 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20404         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20406         * w32menu.c (syms_of_w32menu): Likewise.
20408         * w32proc.c (syms_of_ntproc): Likewise.
20410         * w32select.c (syms_of_w32select): Likewise.
20412         * w32term.c (syms_of_w32term): Likewise.
20414 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20416         * w32font.c (w32font_draw): Delete brush after using it.
20418 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20420         * w32font.c (w32font_open): Don't set font_idx.
20421         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20422         to font settings.
20423         (w32font_draw): Fill background explicitly.
20425 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20427         * w32term.c (w32_initialize): Don't call w32font_initialize.
20429         * w32font.c (w32font_info): Remove subranges.
20430         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20431         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20432         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20433         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20434         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20435         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20436         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20437         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20438         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20439         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20440         New symbols.
20441         (font_callback_data): New struct.
20442         (w32font_list, w32font_match): Use it.
20443         (w32font_open): Don't populate subranges.
20444         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20445         (w32font_encode_char): Always return unicode code-point as-is.
20446         (w32font_text_extents): Supply a transformation matrix to
20447         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
20448         twice.  Use unicode version of GetTexExtentPoint32 instead of
20449         glyph index version.
20450         (set_fonts_frame): Remove.
20451         (w32_enumfont_pattern_entity): Add frame parameter, use it to
20452         set frame parameter.  Use backward compatible fake foundries.
20453         Save generic family in extra slot under QCfamily.  Make width slot
20454         constant.  Save QCspacing value.  Save list of scripts instead of
20455         binary subranges.
20456         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20457         (add_font_entity_to_list): Use font_callback_data struct.  Filter
20458         unwanted fonts.
20459         (add_one_font_entity_to_list): Use font_callback_data struct.
20460         (w32_registry): Default to iso10646_1.
20461         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
20462         string font registries.  Don't fill in font name if it is a generic
20463         family name, fill family instead.  Use spacing, family and script
20464         extra info to fill pitch, family and charset fields.
20465         (list_all_matching_fonts): Use font_callback_data struct.
20466         (unicode_range_for_char): Remove.
20467         (font_supported_scripts): New function.
20468         (w32font_initialize): Remove.
20469         (syms_of_w32font): Update which symbols are defined.
20471 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20473         * font.c (font_pixel_size): Reverse assq_no_quit args.
20475         * w32term.h (FONT_WIDTH): Report max width, not average.
20476         (FONT_MAX_WIDTH): Remove.
20477         (FONT_AVG_WIDTH): New macro.
20479         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20480         redefinition of FONT_WIDTH.
20482         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20483         (w32_cache_char_metrics): Use FONT_WIDTH.
20485         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20487 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20489         * w32font.c (w32font_open): Make lfHeight negative.
20491         * w32fns.c (x_default_font_parameter): Use new style font name.
20492         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20494 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20496         * w32font.c (QCsubranges): New symbol.
20497         (w32font_open, w32font_has_char): Get subranges from subproperty
20498         of extra.
20499         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20500         (syms_of_w32font): Define :subranges symbol.
20502         * font.c (font_put_extra): Expose externally.
20504         * font.h (font_put_extra): Move declaration from font.c.
20506         * font.c (Ffont_get): Use font driver to determine otf capability.
20507         (adjust_anchor): Check if driver defines anchor_point before using.
20509         * w32font.c (w32font_open): Handle size, height and pixel_size better.
20510         (w32font_draw): Use options.
20511         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20512         Fix detection of truetype fonts.
20513         (registry_to_w32_charset): Handle charsets other than iso8859-1
20514         expressed as lisp symbols.
20515         (w32_registry): Express charset as lisp symbol.
20516         (fill_in_logfont): Reverse pixel and point height logic.
20517         Don't set width here.  Set quality to default.
20519         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20520         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20522         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20523         Remove redundant loop and allocation.
20525         * makefile.w32-in (font.o, w32font.o): New objects.
20526         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20527         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20529         * xdisp.c (fill_composite_glyph_string): Make the first arg to
20530         STORE_XCHARB a valid l-value.
20532         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20533         calculations for non-Truetype fonts.
20534         (x_draw_glyph_string): Sync with xterm.c.
20535         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20536         Remove redundant code.
20537         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20539         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20540         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20542         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20543         (x_to_w32_charset, w32_to_x_charset): Expose externally.
20545         * w32font.c: New file for w32 font backend.
20547 2008-02-01  Kenichi Handa  <handa@m17n.org>
20549         * term.c: Don't include "buffer.h" twice.
20551 2008-02-01  Kenichi Handa  <handa@m17n.org>
20553         * character.c (Funibyte_string): New function.
20554         (syms_of_character): Defsubr it.
20556 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20558         * w32term.c [USE_FONT_BACKEND]:
20559         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20560         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20561         (x_draw_glyph_string, x_draw_glyph_string_foreground)
20562         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20563         (x_free_frame_resources): Sync with xterm.c.
20565 2008-02-01  Andreas Schwab  <schwab@suse.de>
20567         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20568         char-table size.
20570 2008-02-01  Kenichi Handa  <handa@m17n.org>
20572         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20574 2008-02-01  Kenichi Handa  <handa@m17n.org>
20576         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20577         font_otf_gpos, add font_drive_otf.
20579         * fontset.c (fontset_find_font): Pay attention to font size
20580         specified for a font.
20581         (reorder_font_vector): Check contents of font_def.
20583         * font.c (struct otf_list): Delete it.
20584         (otf_list): Make it a lisp variable.
20585         (otf_open): Use lispy otf_list.
20586         (generate_otf_features): Rename from parse_gsub_gpos_spec.
20587         (check_otf_features): New function.
20588         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20589         New functions.
20590         (font_drive_otf): New function merging font_otf_gsub and
20591         font_otf_gpos.
20592         (font_open_for_lface): New arg spec.  Change argument order.
20593         (font_load_for_face): Adjust for the change of font_open_for_lface.
20594         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20595         Ffont_otf_gpos.
20596         (syms_of_font): Staticpro otf_list.  Delete defsubr of
20597         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
20599         * xfaces.c (set_font_frame_param): Adjust for the change of
20600         font_open_for_lface.
20602         * font.h (font_open_for_lface): Adjust prototype.
20603         (struct font_driver): Delete members otf_gsub and otf_gpos, add
20604         member otf_drive.
20605         (font_otf_gsub, font_otf_gpos): Delete externs.
20606         (font_drive_otf): Extern it.
20608 2008-02-01  Kenichi Handa  <handa@m17n.org>
20610         * font.c (font_at): If the window W is not on a window system,
20611         return Qnil.
20613         * coding.c (produce_chars, encode_coding): Don't call
20614         insert_from_gap if no characters to produce.
20616 2008-02-01  Kenichi Handa  <handa@m17n.org>
20618         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20619         Fclear_face_cache.
20621         * xfaces.c (face_for_font): Check also face->font==font->font.font.
20623 2008-02-01  Miles Bader  <miles@gnu.org>
20625         * emacs.c (main): Change default value of `enable_font_backend' to 1.
20626         Parse "--disable-font-backend" option.
20627         (standard_args): Add "--disable-font-backend" option.
20629 2008-02-01  Kenichi Handa  <handa@m17n.org>
20631         * fontset.c (fontset_find_font): New function.
20632         (fontset_font): Use fontset_find_font.
20633         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20634         Register the specified font for all Latin characters.
20635         (new_fontset_from_font): Register the specified font for all Latin
20636         characters.
20637         (dump_fontset): For a realized fontset, include the base fontset
20638         name in the returned vector.
20640 2008-02-01  Kenichi Handa  <handa@m17n.org>
20642         * character.h (CHAR_STRING): Cast C to unsigned on calling
20643         char_string.
20645         * character.c (char_string): Type of arg C changed to unsigned.
20646         Signal an error if C is an invalid character code.
20648         * editfns.c (general_insert_function, Fchar_to_string):
20649         Use CHARACTERP, not INTEGERP.
20651 2008-02-01  Kenichi Handa  <handa@m17n.org>
20653         * character.h (MIN_MULTIBYTE_LEADING_CODE)
20654         (MAX_MULTIBYTE_LEADING_CODE): New macros.
20656         * regex.c (analyse_first): Fix for multibyte characters in "case
20657         charset:" and "case categoryspec:".
20659 2008-02-01  Andreas Schwab  <schwab@suse.de>
20661         * Makefile.in (LIBES): Move standard libraries to the end.
20663 2008-02-01  Kenichi Handa  <handa@m17n.org>
20665         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20666         nonzero, don't shrink the buffer nextb.
20668         * buffer.h (struct buffer_text): New member inhibit_shrinking.
20670         * coding.c (coding_alloc_by_making_gap): New arg offset.
20671         (alloc_destination): Call coding_alloc_by_making_gap with the arg
20672         offset.
20673         (decode_coding_iso_2022): Update coding->safe_charsets.
20674         (decode_coding_gap): Temporarily set
20675         current_buffer->text->inhibit_shrinking to 1.
20677 2008-02-01  Kenichi Handa  <handa@m17n.org>
20679         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20680         indexing into elements of s->cmp and s->char2b.
20682 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
20684         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20686 2008-02-01  Kenichi Handa  <handa@m17n.org>
20688         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20689         target_multibyte instead of multibyte.
20690         (re_match_2_internal): Call bcmp_translate with target_multibyte.
20691         (bcmp_translate): Change the argument name from multibyte to
20692         target_multibyte.
20694 2008-02-01  Kenichi Handa  <handa@m17n.org>
20696         These changes are to compile a regexp into a pattern that can be
20697         used both for multibyte and unibyte targets.
20699         * Makefile.in (search.o): Depend on charset.h.
20701         * character.c (multibyte_char_to_unibyte_safe): New function.
20703         * search.c: Include "charset.h".
20704         (compile_pattern_1): Delete argument multibyte.  Don't set
20705         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
20706         (compile_pattern): Don't compare cp->buf.target_multibyte.
20707         Compare cp->buf.charset_unibyte.
20708         (compile_pattern): Set cp->buf.target_multibyte.
20710         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20712         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20714         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20715         multibyte.  Change callers.
20716         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20717         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
20718         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20719         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20720         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20721         (regex_compile): Make the compiled pattern usable both for
20722         multibyte and unibyte targets.
20723         (analyse_first): Make the fastmap usable both for multibyte and
20724         unibyte targets.
20725         (TRANSLATE_VIA_MULTIBYTE): Delete.
20726         (re_match_2_internal): Pay attention to the case that the
20727         multibyteness of bufp and target may be different.
20729 2008-02-01  Kenichi Handa  <handa@m17n.org>
20731         * xdisp.c (x_produce_glyphs): When a font is not found, make the
20732         empty box occupy at least one column width.
20734 2008-02-01  Miles Bader  <miles@gnu.org>
20736         * Makefile.in: Remove redundant HAVE_XFT clause.
20738 2008-02-01  Kenichi Handa  <handa@m17n.org>
20740         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20742 2008-02-01  Kenichi Handa  <handa@m17n.org>
20744         * fontset.c (Finternal_char_font): Fix for the case of POSITION
20745         being nil.
20747 2008-02-01  Kenichi Handa  <handa@m17n.org>
20749         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20751 2008-02-01  Kenichi Handa  <handa@m17n.org>
20753         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20755 2008-02-01  Kenichi Handa  <handa@m17n.org>
20757         * search.c (simple_search): Fix previous change.
20759 2008-02-01  Kenichi Handa  <handa@m17n.org>
20761         * xftfont.c (ftfont_font_format): Extern declaration.
20763         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20765         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20766         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20768         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20769         (ftfont_font_format): Fix previous change.
20771         * font.h (Ffont_xlfd_name): EXFUN it.
20773         * font.c (font_parse_xlfd): Fix the array size of `f'.
20774         (register_font_driver): Use EQ to compare driver->type.
20776         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20777         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20778         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20780 2008-02-01  Kenichi Handa  <handa@m17n.org>
20782         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20783         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20785 2008-02-01  Kenichi Handa  <handa@m17n.org>
20787         * xfont.c (xfont_open): Set font->format.
20789         * xftfont.c (xftfont_open): Set font->format.
20791         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20792         (ftfont_list): Include FC_FONTFORMAT in FcObject.
20793         (ftfont_open): Set font->format.
20794         (ftfont_font_format): New function.
20796         * font.h (struct font): New member format.
20798         * font.c (Qopentype): New variable.
20799         (syms_of_font): Defsym it.
20800         (Fquery_font): Change the format of the last element of the return
20801         value.
20803 2008-02-01  Kenichi Handa  <handa@m17n.org>
20805         * xfns.c (xic_create_xfontset): Try the default fontset name as a
20806         last resort.
20808 2008-02-01  Kenichi Handa  <handa@m17n.org>
20810         * coding.c (detect_coding_charset): Fix detection of multi-byte
20811         charset.
20813 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
20815         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20817 2008-02-01  Kenichi Handa  <handa@m17n.org>
20819         * xdisp.c (get_next_display_element): Set it->face_id for the
20820         first component of a composition.
20821         (x_produce_glyphs): Check if the font is changed or not for composition.
20823 2008-02-01  Kenichi Handa  <handa@m17n.org>
20825         * fontset.c (Qlatin): New variable.
20826         (syms_of_fontset): Define it as a lisp symbol.
20827         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20829 2008-02-01  Kenichi Handa  <handa@m17n.org>
20831         * font.c (font_unparse_fcname): Pay attention to the case that
20832         some of font property is a null string.
20834 2008-02-01  Kenichi Handa  <handa@m17n.org>
20836         * term.c: Include "composite.h".
20837         (encode_terminal_code): Output all components of composition.
20838         Check the size of encode_terminal_src.
20839         (produce_glyphs): For composition, call produce_composite_glyph.
20840         (append_composite_glyph, produce_composite_glyph): New functions.
20842         * xdisp.c (x_produce_glyphs): In handling composition, if a font
20843         is not found, get font_info from the current ascii face.
20845 2008-02-01  Kenichi Handa  <handa@m17n.org>
20847         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20848         buffer-file-name to Qnil before calling insert_from_buffer.
20850         * font.c (font_unparse_fcname): Pay attention to the case that
20851         foundry is a null string.
20853 2008-02-01  Kenichi Handa  <handa@m17n.org>
20855         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20857         * font.c (Qunicode_sip): New variable.
20858         (syms_of_font): Declare it as a Lisp symbol.
20860         * font.h (Qunicode_sip): Extern it.
20862 2008-02-01  Kenichi Handa  <handa@m17n.org>
20864         * composite.c (get_composition_id): Pay attention to TAB component.
20866         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20867         TAB.  Adjust for the change of s->char2b which always points to
20868         the first element of allocated memory.
20870         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20872         * xdisp.c (handle_composition_prop): Set it->c to the first
20873         non-TAB component.
20874         (fill_composite_glyph_string): Change argument.
20875         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20876         (x_produce_glyphs): Fix handling of left/right padding.
20878 2008-02-01  Kenichi Handa  <handa@m17n.org>
20880         * coding.c (detect_coding_system): Fix for handling off
20881         inhibit_iso_escape_detection.  Fix for the case that no coding
20882         system is defined for a specific coding category.
20884 2008-02-01  Kenichi Handa  <handa@m17n.org>
20886         * font.c (font_matching_entity): Delete unused local var.
20888         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20889         opening a font.
20891         * fileio.c (Finsert_file_contents): On recovering a file, assume
20892         Unix-like eol.
20893         (choose_write_coding_system): On auto-saving a file, force
20894         Unix-like eol.
20896         * coding.c (setup_coding_system): Fix setting of
20897         coding->common_flags based on eol_type.
20898         (coding_inherit_eol_type): If PARENT is not nil, be sure to
20899         inherit from it.
20901 2008-02-01  Kenichi Handa  <handa@m17n.org>
20903         * alloc.c (NSTATICS): Increas to 0x600.
20905 2008-02-01  Kenichi Handa  <handa@m17n.org>
20907         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20908         (ftfont_list): Don't check :name property.
20909         (ftfont_match): New function.
20910         (ftfont_pattern_entity): If the pattern doesn't contain
20911         FC_SPACING, don't assume FC_MONO.
20913         * font.h (struct font_driver): New member `match'.
20914         (font_update_drivers): Adjust prototype.
20916         * font.c (font_parse_fcname, font_parse_name): Don't change :name
20917         property of FONT.
20918         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20919         them unconditionally.
20920         (font_matching_entity): New function.
20921         (font_open_by_name): Try font_matching_entity if exact match is
20922         not found.
20923         (font_update_drivers): Delete the arg FONT.  Return a list of
20924         actually used backends.  Don't free faces, font caches here.
20925         Don't store data in frame parameters.  Don't call x_set_font.
20926         (Ffont_spec): Store :name property as is.
20927         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20928         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20929         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20930         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20931         Call font->driver->otf_gsub instead of font_otf_gsub.
20933         * frame.c (x_set_font_backend): Do more works that were done in
20934         font_update_drivers before.
20936         * xfont.c (xfont_match): New function.
20937         (xfont_driver): Set xfont_driver.match to xfont_match.
20938         (xfont_draw): Set font in GC if necessary.
20940         * ftxfont.c (ftxfont_match): New function.
20941         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20943         * xftfont.c (xftfont_match): New function.
20944         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20946 2008-02-01  Kenichi Handa  <handa@m17n.org>
20948         * font.h (struct font): New member scalable.
20949         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20950         (font_otf_gsub): Adjust prototype.
20952         * font.c (font_otf_capability): Fix handling of the default langsys.
20953         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
20954         Check the contents of SPEC.
20955         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20956         (check_gstring): New function.
20957         (REPLACEMENT_CHARACTER): New macro.
20958         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
20959         glyph codes of GSTRING.
20960         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20961         (font_prepare_composition): Set cmp->glyph_len.
20962         (font_open_entity): Set font->scalable.
20963         (Ffont_get): Handle :otf property.
20964         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20965         functions.
20966         (Fquery_font): Use font->font.full_name.
20967         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20968         Sfont_otf_alternates.
20970         * ftfont.c (ftfont_open): Set font->font.full_name and
20971         font->font.name properly.  Fix calculation of font->font.height
20972         and font->min_width.
20974         * ftxfont.c (ftxfont_create_gcs): New function.
20975         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20976         (ftxfont_draw_backgrond): Fix filling region.
20977         (ftxfont_default_fid): New function.
20978         (ftxfont_open): Set xfont->fid to the return value of
20979         ftxfont_default_fid.
20980         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20981         (ftxfont_done_face): Free only GCs that are created by
20982         ftxfont_create_gcs.
20983         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20985         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20986         Clip to src->width, etc (not src->clip_XXX).
20988         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20989         FontBackend frame parameter.
20991 2008-02-01  Kenichi Handa  <handa@m17n.org>
20993         * font.h (struct font_driver_list): New member `on'.
20994         (Fclear_font_cache): EXFUN it.
20995         (font_update_drivers): Extern it.
20997         * font.c (font_unparse_fcname): Fix typo (swidth->width).
20998         (font_list_entities): Check driver_list->on.
20999         (register_font_driver): Initialize `on' member to 0.
21000         (font_update_drivers): New function.
21001         (Fclear_font_cache): Check driver_list->on.
21003         * frame.h (Qfont_backend): Extern it.
21004         (x_set_font_backend): Extern it.
21006         * frame.c (Qfont_backend): New variable.
21007         (frame_parms): New element for font-backend.
21008         (x_set_font_backend): New function.
21010         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21011         FontBackend frame parameter.
21012         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21013         x_set_font_backend.
21015         * xfont.c (xfont_list): Don't try listing by :name property if the
21016         name is not for XLFD.
21018 2008-02-01  Kenichi Handa  <handa@m17n.org>
21020         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21021         (LGLYPH_SET_TO): New macros.
21022         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21023         element of G is vector or not.
21024         (font_at): Extern it.
21026         * font.c: Include window.h.
21027         (font_lispy_object): New function.
21028         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21029         end of valid glyph.
21030         (font_close_object): Fix getting (struct font *).
21031         (font_at): New function.
21032         (Ffont_get): If FONT is a font-object, get entity from it.
21033         (Ffont_make_gstring): Initialize elements of glyphs with nil.
21034         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
21035         range check.
21036         (Ffont_at): New function.
21037         (syms_of_font): Defsubr Sfont_at.
21039         * xdisp.c (it_props): Move the entry for Qauto_composed to just
21040         before the entry for Qcomposition.
21041         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21042         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21043         the font in gstring.
21044         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21045         LGLYPH_FORM (g) to detect the end of valid glyph.
21046         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21047         we are composing with gstring.
21049         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21050         Check if adjustment is vector or not.
21052         * Makefile.in (font.o): Make it depends on window.h.
21054 2008-02-01  Kenichi Handa  <handa@m17n.org>
21056         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21057         adjustment is vector or not.
21059 2008-02-01  Miles Bader  <miles@gnu.org>
21061         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21063 2008-02-01  Kenichi Handa  <handa@m17n.org>
21065         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21066         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21067         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21069         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21070         (DEVICE_DELTA): Fix typo.
21071         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21072         LGLYPH format.
21074         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21075         the change of LGLYPH format.
21077 2008-02-01  Kenichi Handa  <handa@m17n.org>
21079         * ftfont.c (ftfont_list): Fix typo.
21080         (ftfont_build_basic_charsets): Don't include letters with diacritics.
21082 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
21084         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21086         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21087         xftface_info is non-NULL.
21089 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
21091         * ftfont.c (ftfont_list): Move misplaced #endif.
21093 2008-02-01  Kenichi Handa  <handa@m17n.org>
21095         * ftfont.c (ftfont_list): Pay attention to the case that
21096         FC_CAPABILITY is not defined.
21098 2008-02-01  Kenichi Handa  <handa@m17n.org>
21100         * xftfont.c (xftfont_open): Set charset related members to -1.
21102         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
21103         QCname.
21104         (ftfont_open): Set charset related members to -1.
21106         * fontset.c (Votf_script_alist): New variable.
21107         (syms_of_fontset): Initialize it.
21108         (fontset_font): Delete unused variable.
21110         * fontset.h (Votf_script_alist): Extern it.
21112         * font.c (font_find_for_lface): Optimize code.
21114         * font.h (font_close_object, font_merge_old_spec): Extern them.
21116 2008-02-01  Kenichi Handa  <handa@m17n.org>
21118         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21119         (syms_of_font): Initialize them.
21120         (font_pixel_size): Allow float value in dpi.
21121         (font_prop_validate_type): Delete.
21122         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21123         Change caller.
21124         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21125         (font_prop_validate_extra): Delete.
21126         (font_prop_validate_spacing): New function.
21127         (font_property_table): Add elements for all known properties.
21128         (get_font_prop_index): Rename from check_font_prop_name.  New
21129         argument FROM.  Change caller.
21130         (font_prop_validate): Validate all known properties.
21131         (font_put_extra): Delete argument force.  Change caller.
21132         (font_expand_wildcards): Make it static.  Fix the way of shrinking
21133         the possible range.
21134         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
21135         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
21136         Change caller.
21137         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21138         (font_parse_fcname): Delete argument merge.  Fix parsing of point
21139         size.  Don't validate properties values here.  Change caller.
21140         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21141         (font_open_by_name): Delete unused variable.
21142         (Ffont_spec): Likewise.  Validate property values.
21143         (Ffont_match_p): New function.
21145         * font.h (QCscalable): Extern it.
21146         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21148         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21150         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21151         (xfont_list_pattern): New function.
21152         (xfont_list): Use xfont_list_pattern.
21154 2008-02-01  Kenichi Handa  <handa@m17n.org>
21156         * font.h (Flist_fonts): EXFUN it.
21158 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21160         * w32term.c (w32_initialize): Add back smoothing_type and
21161         smoothing_enabled definitions.
21163 2008-02-01  Kenichi Handa  <handa@m17n.org>
21165         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21166         s->face->font on determining underline position.
21168 2008-02-01  Kenichi Handa  <handa@m17n.org>
21170         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21171         (font_has_char): Accept font-object too.
21172         (font_find_for_lface): Try at first with a size specified in face.
21174 2008-02-01  Kenichi Handa  <handa@m17n.org>
21176         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21177         font_open_by_name.
21179 2008-02-01  Kenichi Handa  <handa@m17n.org>
21181         * font.h (QCspacing, QCdpi): Extern them.
21182         (enum font_spacing): New enum.
21183         (FONT_PIXEL_SIZE_QUANTUM): New macro.
21185         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21186         (QCspacing, QCdpi): New variables.
21187         (syms_of_font): Initialize them.
21188         (font_pixel_size): New function.
21189         (font_put_extra): New function.
21190         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
21191         in FONT_EXTRA.
21192         (font_parse_fcname): Handle enumerated values (e.g. bold).
21193         Fix handling font size.  Add QCname property that contains only
21194         unknown properties.
21195         (font_score): Change argument.  Change caller.  Pay attention to
21196         FONT_PIXEL_SIZE_QUANTUM.
21197         (font_sort_entites, font_list_entities, font_find_for_lface)
21198         (font_open_for_lface, font_open_by_name): Fix handling of font size.
21199         (Ffont_spec): Add QCname property that contains only unknown properties.
21201         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
21202         include weight in listing pattern, instead check weight of each
21203         listed font.  Don't include scalable in pattern.  Pay attention to
21204         FONT_PIXEL_SIZE_QUANTUM.
21206 2008-02-01  Kenichi Handa  <handa@m17n.org>
21208         * font.c (font_parse_fcname): Fix parsing of point-size.
21209         (font_unparse_fcname): Produce symbolic names for style properties.
21210         (font_list_entities): Handle float size correctly.
21211         (font_open_by_name): Prefer `normal' property values if the name
21212         doesn't specify them.
21214         * fontset.c (Finternal_char_font): Use font_get_name, not
21215         Ffont_xlfd_name.
21217         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21218         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21219         pattern.  Don't force scalable.
21221         * xftfont.c (xftfont_open): For generating a name, start from
21222         96-byte buffer.
21224 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
21226         * frame.h (x_new_fontset2): Fix prototype.
21228 2008-02-01  Kenichi Handa  <handa@m17n.org>
21230         * font.h (struct font_driver): Delete member parse_name.
21231         (font_match_p, font_get_spec, font_parse_fcname)
21232         (font_unparse_fcname): Extern them.
21233         (font_get_name): Adjust prototype.
21235         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21236         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21237         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
21238         unnecessary checks for weight, slant, and swidth.
21239         (font_parse_fcname): New function.
21240         (font_unparse_fcname): New function.
21241         (font_parse_name): New function.
21242         (font_match_p): New function.
21243         (font_get_name): Change return value to Lisp string.
21244         (font_get_spec): New function.
21245         (Qunspecified, Qignore_defface): Don't extern them.
21246         (font_find_for_lface): Assume that LFACE is fully specified.
21247         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21248         object, use it for FACE.
21249         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
21250         driver->parse_name.
21251         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21253         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21254         prototype.
21256         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21257         argument F.  Don't call Fnew_fontset.  Instead, directly call
21258         make_fontset.
21260         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21262         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21263         of x_new_fontset2.
21265         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21266         (Qsans__serif): New variables.
21267         (ftfont_generic_family_list): New variable.
21268         (syms_of_ftfont): Initialize the above variables.
21269         (ftfont_pattern_entity): Delete argument NAME.
21270         (ftfont_list_generic_family): New function.
21271         (ftfont_parse_name): Delete this function.
21272         (ftfont_list): Try generic family only when FcFontList found no font.
21273         (ftfont_list_family): Fix args to FcObjectSetBuild.
21275         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21276         object in attrs[LFACE_FONT_INDEX].
21277         (set_lface_from_font_name): Cancel all changes for font-backend.
21278         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21279         function.
21280         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21281         font object in QCfont attribute.
21282         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21283         (realize_default_face) [USE_FONT_BACKEND]: Call
21284         set_lface_from_font_and_fontset.
21286         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21287         "fixed", and signal error here if no suitable font was found.
21289         * xfont.c (xfont_parse_name): Delete this function.
21291         * xftfont.c (xftfont_open): Change coding style of error
21292         handling.  Generate fontconfig's fontname pattern.
21294         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21295         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21297         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21298         Both args FONTSET and FONT_OBJECT must be existing ones.
21300 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21302         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21304 2008-02-01  Kenichi Handa  <handa@m17n.org>
21306         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21308         * font.h (struct font): Fix typo.
21310         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21311         XLFD_XXX_INDEX.
21312         (enum xlfd_field_mask): New enum.
21313         (intern_font_field): Changed argument.  Change caller.  If digits
21314         are followed by non-digits, return a symbol.
21315         (font_expand_wildcards): New function.
21316         (font_parse_xlfd): Fix wildcard handling.
21317         (Ffont_spec): If :name is specified, reflect the info in the other
21318         properties.
21320         * ftfont.c (ftfont_pattern_entity): Fix typo.
21321         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21322         locale.
21324 2008-02-01  Kenichi Handa  <handa@m17n.org>
21326         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21328         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21329         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
21330         registry doesn't specify encoding part.
21331         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21332         (font_open_by_name): At first try parsing the name.
21333         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21334         as Lisp symbols.
21336         * fontset.c (reorder_font_vector): Pay attention to the case that
21337         the 3rd element of font_def is nil.
21338         (fontset_font): For the default fontset, append one more fontset
21339         elements for a script-based font specification.  Don't add script
21340         attribute on finding a font.
21341         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21342         font name.
21343         (fontset_ascii_font): If a font can't be opened, return nil.
21345         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21346         (ftfont_pattern_entity): New function.
21347         (ftfont_get_cache): Assume that freetype_font_cache is already
21348         initialized.
21349         (ftfont_list): Handle the case that a file is specified in font
21350         name.  Use ftfont_pattern_entity to generate entities.
21351         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21352         (syms_of_ftfont): Initialize freetype_font_cache.
21354         * xftfont.c (xftfont_open): Make the font name fontconfig's
21355         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
21356         (xftfont_close): Free font->font.name if not NULL.
21358         * xfont.c (xfont_list): If script is specified for a font, return
21359         null_vector.
21360         (xfont_list_family): Declare argument type.
21362         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21363         name, set LFACE_FONT (lface) to nil.
21365         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21366         return Qnil.
21368 2008-02-01  Kenichi Handa  <handa@m17n.org>
21370         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21371         (standard_args): Add "-enable-font-backend".
21373 2008-02-01  Kenichi Handa  <handa@m17n.org>
21375         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21376         (struct xftdraw_list, xftdraw_list): Delete them.
21377         (register_xftdraw, check_xftdraw): Delete them.
21378         (xftfont_prepare_face): Don't call register_xftdraw.
21379         (xftfont_done_face): Don't call check_xftdraw.
21380         (xftfont_draw): Get background color only when with_background is
21381         nonzero.
21383         * xfont.c (xfont_encode_char): Fix calculation of char2b.
21385 2008-02-01  Kenichi Handa  <handa@m17n.org>
21387         These changes are for the new font handling codes.
21389         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21390         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21391         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21392         (FONTSRC, FONTOBJ): New variables.
21393         (obj): Add $(FONTOBJ).
21394         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21395         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21396         @LIBOTF_LIBS@.
21397         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21398         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21400         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21402         * character.h (Vscript_representative_chars): Extern it.
21404         * character.c (Vscript_representative_chars): New variable.
21405         (syms_of_character): Declare it as a Lisp variable.
21407         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21408         enable_font_backend is nonzero, accept the composition method
21409         COMPOSITION_WITH_GLYPH_STRING.
21411         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21412         enumeration COMPOSITION_WITH_GLYPH_STRING.
21414         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21415         members clip_x, clip_y, clip_width, and clip_height.
21416         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21418         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21419         --enable-font-backend.  Call syms_of_font.
21421         * fns.c (assoc_no_quit): New function.
21423         * fontset.h (FONT_INFO_FROM_FACE): New macro.
21424         (face_for_font, new_fontset_from_font)
21425         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21427         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21428         (fontset_font, fontset_ascii, face_for_char)
21429         (make_fontset_for_ascii_face, Ffont_info)
21430         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21431         is nonzero, use font-backend mechanism.
21432         (find_font_encoding): Make it non-static.
21433         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21434         New functions.
21436         * frame.h (struct frame): New members resx and resy.
21437         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21438         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21440         * frame.c [USE_FONT_BACKEND]: Include "font.h".
21441         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21443         * lisp.h (assoc_no_quit): Extern it.
21445         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21446         Through out the file, use FONT_INFO_FROM_FACE instead of
21447         FONT_INFO_FROM_ID, use get_per_char_metric instead of
21448         rif->per_char_metric.
21449         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21450         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21451         (get_glyph_face_and_encoding, fill_composite_glyph_string)
21452         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21453         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21454         nonzero, use font-backend mechanism.
21455         (get_per_char_metric): New function.
21457         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21458         (set_lface_from_font_name)
21459         (set_font_frame_param, free_realized_face)
21460         (prepare_face_for_display, clear_face_gcs)
21461         (Finternal_set_font_selection_order, realize_x_face)
21462         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21463         font-backend mechanism.
21464         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21465         (load_face_font) [USE_FONT_BACKEND]: Abort.
21466         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21467         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21469         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21470         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21471         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21472         nonzero, register all available font drivers.  Call
21473         x_default_font_parameter for deciding a font.
21474         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21476         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21477         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21478         (x_set_glyph_string_clipping_exactly)
21479         (x_compute_glyph_string_overhangs)
21480         (x_draw_glyph_string_foreground)
21481         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21482         (x_free_frame_resources) [USE_FONT_BACKEND]: If
21483         enable_font_backend is nonzero, use font-backend mechanism.
21484         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21486 2008-02-01  Kenichi Handa  <handa@m17n.org>
21488         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21489         system_eol_type.
21490         (syms_of_coding): Initialize system_eol_type.
21492         * process.c (Fset_process_coding_system): Inherit system's eol
21493         format if necessary.
21495 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21497         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21499 2008-02-01  Kenichi Handa  <handa@m17n.org>
21501         * coding.c (decode_eol): Pay attention to buffer relocation in
21502         del_range_2.
21503         (decode_coding): Call decode_eol before restoring undo_list.
21505 2008-02-01  Kenichi Handa  <handa@m17n.org>
21507         * charset.c (Fdefine_charset_internal): Fix setting of
21508         emacs_mule_bytes.
21510 2008-02-01  Kenichi Handa  <handa@m17n.org>
21512         * keyboard.c (read_char): Check if C is a character or not before
21513         looking up Vkeyboard_translate_table.
21515 2008-02-01  Kenichi Handa  <handa@m17n.org>
21517         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21518         condition to terminate the loop.
21520 2008-02-01  Kenichi Handa  <handa@m17n.org>
21522         * coding.c (produce_composition): Compare charbuf[i] instead of
21523         args[i] against 0.
21524         (Fterminal_coding_system): Use EQ to compare Lisp objects.
21526 2008-02-01  Kenichi Handa  <handa@m17n.org>
21528         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21529         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21530         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21531         detect_coding.
21532         (emacs_mule_char): Handle old style (Emacs 20) component character
21533         of a composition.
21534         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21535         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21536         composition rule.
21537         (decode_coding_emacs_mule): Handle invalid bytes correctly.
21539 2008-02-01  Kenichi Handa  <handa@m17n.org>
21541         * coding.c (encode_coding_ccl): Allocate destination dynamically
21542         when necessary.
21544 2008-02-01  Kenichi Handa  <handa@m17n.org>
21546         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21547         the loop.  When quitted, show a proper error message.
21549 2008-02-01  Kenichi Handa  <handa@m17n.org>
21551         * xterm.c (x_set_glyph_string_clipping_exactly): Set
21552         src->clip_head and src->clip_tail temporarily instead of src->hl.
21554         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21555         character sequence.
21556         (Fccl_execute_on_string): Use ASET, not XSET.
21558 2008-02-01  Kenichi Handa  <handa@m17n.org>
21560         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21562 2008-02-01  Kenichi Handa  <handa@m17n.org>
21564         * coding.c (decode_coding): Fix the condition of terminating the
21565         decoding loop.
21567 2008-02-01  Kenichi Handa  <handa@m17n.org>
21569         * data.c (Faset): On setting a character bigger than 255 in a
21570         unibyte string, signal an error instead of make the string multibyte.
21572 2008-02-01  Kenichi Handa  <handa@m17n.org>
21574         * charset.c (map_charset_chars): Fix for ascii-compatible charset
21575         made by a mapping table.
21577 2008-02-01  Kenichi Handa  <handa@m17n.org>
21579         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21580         not.
21581         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21582         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21584         * xterm.c (x_draw_composite_glyph_string_foreground): Check
21585         s->face is NULL or not.
21587 2008-02-01  Kenichi Handa  <handa@m17n.org>
21589         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21590         (x_draw_glyph_string): Fix drawing of right_overhang and
21591         left_overhang around/on cursor.
21593         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21595 2008-02-01  Kenichi Handa  <handa@m17n.org>
21597         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21599 2008-02-01  Kenichi Handa  <handa@m17n.org>
21601         * coding.c (Fdefine_coding_system_internal)
21602         (Fdefine_coding_system_alias): Avoid a duplicated element in
21603         Vcoding_system_alist.
21605 2008-02-01  Kenichi Handa  <handa@m17n.org>
21607         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21609         * coding.c (Qcoding_system_define_form): New variable.
21610         (syms_of_coding): Intern and staticpro it.
21611         (Fcoding_system_p): Check Qcoding_system_define_form.
21612         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21614         * coding.h (CODING_SYSTEM_P): If ID is not available, call
21615         Fcoding_system_p.
21616         (CHECK_CODING_SYSTEM): If ID is not available, call
21617         Fcheck_coding_system.
21618         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21619         Try also Fcheck_coding_system.
21621 2008-02-01  Kenichi Handa  <handa@m17n.org>
21623         * coding.c (code_conversion_restore): GCPRO arg.
21625 2008-02-01  Kenichi Handa  <handa@m17n.org>
21627         * character.c (lisp_string_width): Check multibyteness of STRING.
21629 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21631         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21632         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
21633         (decode_mac_font_name): Use decode_coding_c_string instead of
21634         decode_coding.
21635         (x_load_font): Initialize fontp->fontset to -1.  Set
21636         fontp->encoding_type.
21638 2008-02-01  Kenichi Handa  <handa@m17n.org>
21640         * search.c (search_buffer): Give up BM search on case-fold-search
21641         if one of a target character has a case-equivalence of different
21642         byte length even if that target character is an ASCII.
21643         (simple_search): Fix calculation of byte length of matched text.
21644         (boyer_moore): Fix handling of case-equivalent multibyte characters.
21646 2008-02-01  Kenichi Handa  <handa@m17n.org>
21648         * coding.c (decode_coding): Fix handling of invalid bytes.
21650 2008-02-01  Kenichi Handa  <handa@m17n.org>
21652         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21653         Unicode characters.
21655 2008-02-01  Kenichi Handa  <handa@m17n.org>
21657         * coding.c (encode_coding_object): If a pre-write-conversion
21658         function makes a new buffer, kill it.
21660 2008-02-01  Kenichi Handa  <handa@m17n.org>
21662         * coding.c (QCascii_compatible_p): New variable.
21663         (syms_of_coding): Initialize it.
21664         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21665         calling string_char.
21666         (record_conversion_result): Add `default:' case.
21667         (coding_charset_list): Delete unused variable `coding_type'.
21668         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21669         property in the plist of the coding system.
21670         (Fcoding_system_put): Check QCascii_compatible_p.
21672 2008-02-01  Miles Bader  <miles@gnu.org>
21674         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21675         removed calculation of frame `f', as it's now used.
21677 2008-02-01  Kenichi Handa  <handa@m17n.org>
21679         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21680         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21681         (UNIDATA): New variable.
21682         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21683         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
21684         $(RUN_TEMACS) unconditionally.
21686 2008-02-01  Kenichi Handa  <handa@m17n.org>
21688         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21689         (admindir): New variable.
21690         ($(lispsource)international/charprop.el): New target.
21692 2008-02-01  Miles Bader  <miles@gnu.org>
21694         * character.c (chars-in-region): Remove obsolete function.
21695         (syms_of_character): Remove its initialization.
21697 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
21699         * w32select.c (validate_coding_system)
21700         (setup_windows_coding_system): New functions.
21701         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21702         setup_windows_coding_system.
21703         (setup_config, Fw32_get_clipboard_data): Use
21704         validate_coding_system.
21705         (Fx_selection_exists): Move call to setup_config to a place
21706         where signals are allowed.
21708         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21709         (Fcheck_coding_system): Add declarations.
21711 2008-02-01  Kenichi Handa  <handa@m17n.org>
21713         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21715 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21717         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21718         string as the second argument for x_new_fontset.
21720 2008-02-01  Kenichi Handa  <handa@m17n.org>
21722         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21723         (encode_coding_object): Use safe_call instead of call2.
21725 2008-02-01  Kenichi Handa  <handa@m17n.org>
21727         * fontset.c (Fset_fontset_font): Check family element of a given vector.
21729         * Makefile.in (lisp): Include charprop.el.
21731 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21733         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21734         Not sure if it's unnecessary.
21736 2008-02-01  Steven Tamm  <steventamm@mac.com>
21738         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21739         some possibly unnecessary fontset checking code that crashed
21740         when creating a new frame.
21742 2008-02-01  Kenichi Handa  <handa@m17n.org>
21744         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21745         lookup_face.
21747         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21749         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21751 2008-02-01  Kenichi Handa  <handa@m17n.org>
21753         * coding.c: Cancel the change done in HEAD on 2008-02-01.
21754         (coding_charset_list): New function.
21756         * coding.h (coding_charset_list): Extern it.
21758 2008-02-01  Kenichi Handa  <handa@m17n.org>
21760         * fontset.c (Fset_fontset_font): Call find_font_encoding with
21761         concatenation of family and registry.
21763 2008-02-01  Kenichi Handa  <handa@m17n.org>
21765         * character.h (BYTE8_STRING): Fix typo.
21767         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21768         string to multibyte (sync to HEAD).
21770         * casefiddle.c (casify_region): Handle changes in byte-length
21771         using replace_range_2 (sync to HEAD).
21773 2008-02-01  Andreas Schwab  <schwab@suse.de>
21775         * chartab.c (map_char_table): GCPRO table and arg.
21777 2008-02-01  Kenichi Handa  <handa@m17n.org>
21779         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21780         already at limit.
21782 2008-02-01  Kenichi Handa  <handa@m17n.org>
21784         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21785         instead of fast_c_string_match_ignore_case.
21786         (find_font_encoding): Change argument to Lisp_Object.  Use
21787         fast_string_match_ignore_case instead of
21788         fast_c_string_match_ignore_case.  Change caller.
21790 2008-02-01  Kenichi Handa  <handa@m17n.org>
21792         * xdisp.c (get_next_display_element): In unibyte case, decide to
21793         display in octal form by checking a character by
21794         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21796         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21798         * character.c (unibyte_has_multibyte_table): New variable.
21800         * character.h (unibyte_has_multibyte_table): Extern it.
21801         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21803 2008-02-01  Kenichi Handa  <handa@m17n.org>
21805         * coding.c (encode_coding_iso_2022): Fix handling of charset
21806         annotation.
21808 2008-02-01  Kenichi Handa  <handa@m17n.org>
21810         * coding.c (setup_coding_system): If coding_system is nil, use
21811         Qundecided.
21812         (Fterminal_coding_system): Return nil if terminal coding system is
21813         `undecided'.
21814         (syms_of_coding): Define coding-system `undecided' here.  Setup
21815         terminal_coding as `undecided'.
21817 2008-02-01  Kenichi Handa  <handa@m17n.org>
21819         * xdisp.c (message_dolog, set_message_1): Call
21820         unibyte_char_to_multibyte with arg type int.
21822         * lread.c (read1): Fix reading of a char-table.
21824         * print.c (print_object): Include sub char-table in circularities
21825         detection.
21827 2008-02-01  Kenichi Handa  <handa@m17n.org>
21829         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21830         Append the found sequences in car of ARGS instead of prepending.
21832 2008-02-01  Kenichi Handa  <handa@m17n.org>
21834         * fileio.c (report_file_error): Make a unibyte string from
21835         strerror (errorno).
21836         (Fsubstitute_in_file_name): Fix the arg to
21837         unibyte_char_to_multibyte.  It is evaluated twice.
21839 2008-02-01  Kenichi Handa  <handa@m17n.org>
21841         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21843 2008-02-01  Kenichi Handa  <handa@m17n.org>
21845         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21846         BOM is not found.
21847         (detect_coding, detect_coding_system): Optimization for ISO-2022
21848         when no 8-bit data is found.
21850 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21852         * w32fns.c (x_to_w32_font): Update to use new coding struct.
21854 2008-02-01  Kenichi Handa  <handa@m17n.org>
21856         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21857         CHARS.
21859 2008-02-01  Steven Tamm  <steventamm@mac.com>
21861         * macterm.c (mac_encode_char): Add charset argument and update
21862         to use encoding_type.
21863         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21864         switch to pure fontset.
21865         (decode_mac_font_name): Temporarily remove decoding.
21866         (x_font_name_to_mac_font_name): Temporarily remove encoding.
21867         (x_load_font): Temporarily remove encoding.
21869 2008-02-01  Kenichi Handa  <handa@m17n.org>
21871         * xfaces.c (Fface_font): If frame is not on a window system,
21872         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
21873         refer to face->font.
21874         (split_font_name_into_vector, build_font_name_from_vector)
21875         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21876         when HAVE_WINDOW_SYSTEM is defined.
21878 2008-02-01  Kenichi Handa  <handa@m17n.org>
21880         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21881         (x_produce_glyphs): Fix setting of members of cmp in case
21882         cmp->glyph_len is zero.
21884         * fontset.c (Fset_fontset_font): Fix docstring.
21885         (Ffontset_info): Make it backward compatible.  New arg ALL.
21887 2008-02-01  Kim F. Storm  <storm@cua.dk>
21889         * process.c (read_process_output): Grow decoding_buf when needed;
21890         this could cause a crash in allocate_string and compact_small_strings.
21892 2008-02-01  Kenichi Handa  <handa@m17n.org>
21894         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21896 2008-02-01  Kenichi Handa  <handa@m17n.org>
21898         * coding.c (setup_coding_system): Set coding->common_flags
21899         correctly for raw-text.
21900         (consume_chars): On encoding unibyte text by raw-text, don't check
21901         multibyte form.
21902         (encode_coding): On encoding by raw-text, never use translation tables.
21904         * fileio.c (e_write): Short cut for the case of no encoding.
21906 2008-02-01  Kenichi Handa  <handa@m17n.org>
21908         * coding.c (detect_coding, detect_coding_system): Delete unused
21909         variables.
21911 2008-02-01  Kenichi Handa  <handa@m17n.org>
21913         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21914         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21916 2008-02-01  Kenichi Handa  <handa@m17n.org>
21918         * coding.c (Ffind_coding_systems_region_internal): Include
21919         raw-text and no-conversion in the result.
21921 2008-02-01  Kenichi Handa  <handa@m17n.org>
21923         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21924         (load_font_get_repertory): Delete unnecessary check of ENCODING of
21925         FONT_DEF.
21926         (font_def_arg, add_arg, from_arg, to_arg): New args.
21927         (set_fontset_font): Change argument.
21928         (Fset_fontset_font): Fix for the case that TARGET is a script
21929         name and charset name.
21930         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21932 2008-02-01  Kenichi Handa  <handa@m17n.org>
21934         * fontset.c (fontset_font): Rename from fontset_face.  Change return
21935         value.
21936         (face_suitable_for_char_p, face_for_char): Adjust for the change
21937         of fontset_font.
21938         (make_fontset_for_ascii_face): Fix setting of the fontset element
21939         for ASCII.
21940         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21941         to get a font name.
21942         (Ffontset_info): Adjust for the change of fontset_font.
21944         * coding.c (emacs_mule_char): Check invalid code more rigidly.
21946         * character.h (LEADING_CODE_LATIN_1_MIN)
21947         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21949 2008-02-01  Kenichi Handa  <handa@m17n.org>
21951         * editfns.c (check_translation): New function.
21952         (Ftranslate_region_internal): Handle M:N mapping.
21954 2008-02-01  Kenichi Handa  <handa@m17n.org>
21956         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21958 2008-02-01  Kenichi Handa  <handa@m17n.org>
21960         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21961         goto invalid_code.
21962         (decode_coding_iso_2022): Fix handling of invalid designation.
21964         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21965         after calling code_conversion_save.
21967 2008-02-01  Kenichi Handa  <handa@m17n.org>
21969         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21971         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21973         * fontset.c: Include "intervals.h".
21974         (fontset_face): Fix comparing of Lisp_Objects.
21975         (free_face_fontset, new_fontset_from_font_name): Fix
21976         Lisp_Object/int mixup.
21978         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21980         * coding.c: Add many prototypes for static functions.
21981         (get_translation_table): Allow max_lookup to be NULL.
21982         (decode_coding, Ffind_coding_systems_region_internal)
21983         (Funencodable_char_position, Fcheck_coding_systems_region): Call
21984         get_translation_table with max_lookup NULL.
21986 2008-02-01  Kenichi Handa  <handa@m17n.org>
21988         * coding.c (get_translation_table): Declare it as Lisp_Object.
21989         (LOOKUP_TRANSLATION_TABLE): New macro.
21990         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21991         instead of CHAR_TABLE_REF.
21993 2008-02-01  Kenichi Handa  <handa@m17n.org>
21995         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21996         annotation data format.
21997         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21998         Change arguments FROM and TO to single argument NCHARS.  Change caller.
21999         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22000         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22001         (decode_coding_ccl, decode_coding_charset): Pay attention to
22002         coding->charbuf_used.
22003         (get_translation): New function.
22004         (produce_chars): New arguments translation_table and last_block.
22005         Translate characters here.  Return number of carryover chars.
22006         Change caller.
22007         (produce_composition): New argument pos.  Change caller.
22008         Adjust for the change of annotation data format.
22009         (produce_charset, produce_annotation): Likewise.
22010         (decode_coding, encode_coding): Don't call translate_chars.
22011         (consume_chars): New arg translation_table.  Change caller.
22012         (translate_chars): Delete.
22013         (syms_of_coding): Make translation-table's number of extra slots 2.
22015 2008-02-01  Kenichi Handa  <handa@m17n.org>
22017         * search.c (simple_search): Fix setting this_pos_byte in backward
22018         search.
22020         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22021         byte sequence.
22022         (detect_coding_ccl): Fix setting of the variable valids.
22024 2008-02-01  Kenichi Handa  <handa@m17n.org>
22026         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22028         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22030         * editfns.c (Ftranslate_region_internal): Rename from
22031         Ftranslate_region.  Accept a char-table in TABLE.
22032         (syms_of_editfns): Defsubr Stranslate_region_internal.
22034         * xfaces.c (set_lface_from_font_name): If a font is specified for
22035         a frame, generate a fontset from the font.
22036         (build_scalable_font_name): If the scalable font is requested for
22037         a specific size, don't change that size.
22038         (try_font_list): Try a scalable font also in the case that a
22039         pattern string is specified.
22041 2008-02-01  Kenichi Handa  <handa@m17n.org>
22043         * xfaces.c (Fface_font): New optional arg CHARACTER.
22045 2008-02-01  Kenichi Handa  <handa@m17n.org>
22047         * charset.h (CHARSET_OFFSET): New macro.
22049 2008-02-01  Kenichi Handa  <handa@m17n.org>
22051         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22053         * fontset.c (fontset_face): Handle the case that repertory is a
22054         char-table.
22055         (find_font_encoding): Return nil for unknown encoding.
22056         (Fset_fontset_font): Ignore a font of unknown encoding.
22058 2008-02-01  Kenichi Handa  <handa@m17n.org>
22060         * keymap.c (describe_vector): Handle default value of a char table.
22062         * fontset.c (fontset_face): Handle fallback fonts correctly.
22063         (Ffontset_info): Return infomation about fallback fonts.
22065 2008-02-01  Kenichi Handa  <handa@m17n.org>
22067         * fontset.c (FONTSET_DEFAULT): New macro.
22068         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22069         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22070         the case that it is nil.
22071         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22072         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22074         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22075         subset or superset.
22077 2008-02-01  Kenichi Handa  <handa@m17n.org>
22079         * emacs.c (main): Call init_charset after syms_of_XXX.
22081         * charset.c (Vcharset_map_directory): Delete.
22082         (Vcharset_map_path): New variable.
22083         (load_charset_map_from_file): Use Vcharset_map_path instead.
22084         (init_charset): Initialize Vcharset_map_path.
22085         (syms_of_charset): Delete declaration of "charset-map-directory",
22086         add declaration of "charset-map-path".
22088 2008-02-01  Kenichi Handa  <handa@m17n.org>
22090         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22091         ASCII only string.
22093         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22095         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22096         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22098 2008-02-01  Kenichi Handa  <handa@m17n.org>
22100         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22102         * coding.c (QCmnemonic, QCdefalut_char)
22103         (QCdecode_translation_table, QCencode_translation_table)
22104         (QCpost_read_conversion, QCpre_write_conversion): New variables.
22105         (get_translation_table): Return a list of translation tables if
22106         necessary.
22107         (decode_coding): Call get_translation_table with ENCODEP 0.
22108         (char_encodable_p): If translation_table is non-nil, always call
22109         translate_char.
22110         (Fdefine_coding_system_internal): Accept list of translation
22111         tables as :encode-translation-table and :decode-translation-table.
22112         (Fcoding_system_put): New function.
22113         (syms_of_coding): Declare new symbols.  Defsubr
22114         Scoding_system_put.
22115         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22116         typically JISX0212.
22118         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22119         when the charset is superset type.
22121         * character.c (translate_char): Accept list of translation tables.
22123 2008-02-01  Kenichi Handa  <handa@m17n.org>
22125         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22126         (CODING_ATTR_TRANS_TBL): New macro.
22128         * coding.c (get_translation_table): New function.
22129         (translate_chars): Fix the bug of skipping annotation data.
22130         (decode_coding, encode_coding): Utilize get_translation_table.
22131         (char_encodable_p, Funencodable_char_position): Translate char if
22132         necessary.
22133         (Ffind_coding_systems_region_internal)
22134         (Fcheck_coding_systems_region): Setup translation table for encode
22135         in a coding system attribute vector in advance.
22136         (Fdefine_coding_system_internal): Allow a symbol as translation
22137         table.  For shift-jis type coding system, allow 4th charset.
22139 2008-02-01  Kenichi Handa  <handa@m17n.org>
22141         * coding.c (decode_coding_sjis): Check the first byte rigidly.
22143         * xdisp.c (get_next_display_element): Pass -1 as POS to
22144         FACE_FOR_CHAR if displaying a C-string.
22146 2008-02-01  Kenichi Handa  <handa@m17n.org>
22148         * composite.c (get_composition_id): Handle xoff and yoff in a
22149         composition rule.
22151         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22152         (struct composition): New member lbearing and rbearing.
22154         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22155         (x_get_glyph_overhangs): Handle a composition glyph.
22156         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22158         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22159         composition glyph.
22161 2008-02-01  Kenichi Handa  <handa@m17n.org>
22163         * print.c: Include charset.h.
22164         (Vprint_charset_text_property): New variable.
22165         (Qdefault): Extern it.
22166         (PRINT_STRING_NON_CHARSET_FOUND)
22167         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22168         (print_check_string_result): New variable.
22169         (print_check_string_charset_prop): New function.
22170         (print_prune_charset_plist): New variable.
22171         (print_prune_string_charset): New function.
22172         (print_object): Call print_prune_string_charset if
22173         Vprint_charset_text_property is not t.
22174         (print_interval): Print nothing if interval->plist is nil.
22175         (syms_of_print): Declare Vprint_charset_text_property as a lisp
22176         variable.  Init and staticpro print_prune_charset_plist.
22178 2008-02-01  Kenichi Handa  <handa@m17n.org>
22180         * fontset.c (new_fontset_from_font_name): Use the specified font
22181         for all characters in the new fontset.
22183         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22184         OBJECT args.
22186         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22187         OBJECT args for composition too.
22189         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22190         OBJECT args.
22192 2008-02-01  Kenichi Handa  <handa@m17n.org>
22194         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22196         * fontset.c (reorder_font_vector): Adjust for the change of
22197         FONT_DEF format.
22198         (fontset_face): New arg id.  Change caller.
22199         (face_for_char): New args pos and object.
22200         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22201         (fs_query_fontset): Check NAME by Fassoc too.
22202         (Fset_fontset_font): Allow non-XLFD font name.
22203         (Ffontset_info): Adjust for the change of FONT_DEF format.
22205         * fontset.h (face_for_char): Adjust prototype.
22207         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22208         (append_space, extend_face_to_end_of_line)
22209         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22210         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22212         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22213         POS and OBJECT args.
22215         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22216         POS and OBJECT args.
22218 2008-02-01  Jason Rumney  <jasonr@gnu.org>
22220         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22221         of GlobalAlloc'ed memory.
22223 2008-02-01  Kenichi Handa  <handa@m17n.org>
22225         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22227         * charset.h (charset_table_used): Delete extern.
22229         * charset.c (charset_table_used): Make it static.
22230         (map_charset_chars): Fix args to c_function with.
22232         * chartab.c (map_sub_char_table_for_charset): Fix args to
22233         c_function with.
22235         * coding.h (enum coding_result_code): Delete
22236         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22238         * coding.c (Qinsufficient_source, Qinconsistent_eol)
22239         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22240         (Vlast_code_conversion_error): New variables.
22241         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22242         (ONE_MORE_BYTE): Record error if any instead of signaling an
22243         error.  If non-ASCII multibyte char is found, return the negative
22244         value of the code.  All callers changed to check it.
22245         (ONE_MORE_BYTE_NO_CHECK): Likewise.
22246         (record_conversion_result): New function.  Change all codes setting
22247         coding->result to call this function.
22248         (detect_coding_utf_8, decode_coding_utf_8)
22249         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22250         Don't use the local variable incomplete.
22251         (emacs_mule_char): Change the second arg to `const'.
22252         (decode_coding): Fix of flushing out unprocessed data.
22253         (make_conversion_work_buffer): Fix making of a work buffer.
22254         (decode_coding_object): Return coding->dst_object.
22256         * fontset.c (set_fontset_font): Fix args.
22258         * lisp.h (CHARACTERBITS): Define as 22.
22260         * process.c (send_process): Be sure to set coding->src_multibyte.
22262         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22264 2008-02-01  Kenichi Handa  <handa@m17n.org>
22266         * xdisp.c (handle_auto_composed_prop): Give limit to
22267         Fnext_single_char_property_change.
22269 2008-02-01  Kenichi Handa  <handa@m17n.org>
22271         * composite.c (syms_of_composite): Don't make the composition hash
22272         table weak.
22274         * fontset.c (Fset_fontset_font): Fix docstring.
22276         * lisp.h (detect_coding_system): Adjust prototype.
22278         * fileio.c (kill_workbuf_unwind): Delete this function.
22279         (Finsert_file_contents): Adjust the call of detect_coding_system.
22280         Get conversion_buffer by code_conversion_save.  Use the macro
22281         CODING_MAY_REQUIRE_DECODING.  After decoding, update
22282         coding_system.
22284         * coding.h (make_conversion_work_buffer): Delete extern.
22285         (code_conversion_save): Extern it.
22287         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22288         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
22289         (decode_coding_utf_8): Don't do eol converion.
22290         (detect_coding_utf_16): Check coding->src_chars, not
22291         coding->src_bytes.  Add heuristics for those that have no signature.
22292         (decode_coding_emacs_mule, decode_coding_iso_2022)
22293         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22294         Don't do eol converion.
22295         (adjust_coding_eol_type): Return a new coding system.
22296         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
22297         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22298         each change.
22299         (decode_coding): Pay attention to undo_list.  Do eol conversion for
22300         all types of coding-systems (if necessary).
22301         (Vcode_conversion_work_buf_list): Delete it.
22302         (Vcode_conversion_reused_workbuf): Rename from
22303         Vcode_conversion_reused_work_buf.
22304         (Vcode_conversion_workbuf_name): New variable.
22305         (reused_workbuf_in_use): New variable.
22306         (make_conversion_work_buffer): Delete the arg DEPTH.
22307         (code_conversion_restore): Change argument to cons.
22308         (code_conversion_save): Delete the argument BUFFER.  Change callers.
22309         (detect_coding_system): New argument src_chars.  Change callers.
22310         Fix for utf-16 detection.
22311         (init_coding_once): Don't use ISO_carriage_return.
22312         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22313         reused_workbuf_in_use.
22315 2008-02-01  Kenichi Handa  <handa@m17n.org>
22317         * keymap.c (store_in_keymap): Pay attention to the case that idx
22318         is a cons specifying a character range.
22320 2008-02-01  Kenichi Handa  <handa@m17n.org>
22322         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22323         HANDLED_RECOMPUTE_PROPS.
22325         * coding.c (Fdefine_coding_system_internal): Fix checking of
22326         ascii compatibility.
22328 2008-02-01  Kenichi Handa  <handa@m17n.org>
22330         * charset.c (find_charsets_in_text): Delete unused locale variable.
22331         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22333         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22334         Resync charset_list to Vemacs_mule_charset_list.
22336         * keymap.c (store_in_keymap): Pay attention to the case that idx
22337         is a cons specifying a character range.
22339 2008-02-01  Kenichi Handa  <handa@m17n.org>
22341         * composite.c (update_compositions): Bind inhibit-read-only, etc
22342         to t before calling remove-list-of-text-properties.
22344         * print.c (print_object): Always print ASCII chars as is.
22346 2008-02-01  Kenichi Handa  <handa@m17n.org>
22348         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22350         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22351         is a char table.
22353 2008-02-01  Kenichi Handa  <handa@m17n.org>
22355         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22357 2008-02-01  Kenichi Handa  <handa@m17n.org>
22359         * xfaces.c (set_lface_from_font_name): Fix for the case that
22360         FONTNAME is not fontset name.
22362 2008-02-01  Kenichi Handa  <handa@m17n.org>
22364         * fns.c (base64_encode_1): Fix previous change.
22366 2008-02-01  Kenichi Handa  <handa@m17n.org>
22368         * fontset.c (set_fontset_font): New function.
22369         (Fset_fontset_font): If a font is specified for a charset, use
22370         map_charset_chars to store the font spec in a fontset.
22372 2008-02-01  Kenichi Handa  <handa@m17n.org>
22374         * fontset.c (fontset_face): Create a fallback fontset on demand.
22375         (make_fontset): Don't create a fallback fontset here.
22376         (free_face_fontset): Free a fallback fontset (if any) too.
22377         (n_auto_fontsets): Delete this variable.
22378         (auto_fontset_alist): New variable.
22379         (new_fontset_from_font_name): Check auto_fontset_alist.
22380         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22381         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22382         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22383         Defsubr Sfontset_list_all.
22385 2008-02-01  Kenichi Handa  <handa@m17n.org>
22387         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22389 2008-02-01  Kenichi Handa  <handa@m17n.org>
22391         * fontset.c (Fnew_fontset): Check NAME more rigidly.
22393 2008-02-01  Kenichi Handa  <handa@m17n.org>
22395         * editfns.c (Fgoto_char): Fix docstring.
22397 2008-02-01  Kenichi Handa  <handa@m17n.org>
22399         * insdel.c (insert_from_gap): Adjust intervals correctly.
22401 2008-02-01  Jason Rumney  <jasonr@gnu.org>
22403         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22404         (pfnGetFontUnicodeRanges): New dynamically loaded function.
22405         (w32_initialize): Try to load it.
22406         (x_get_font_repertory): Use it if available.
22407         (w32_encode_char): Add shortcut for unicode output.
22409         * w32fns.c (w32_load_system_font): Default charset to -1.
22410         (x_to_w32_charset): Match all fonts for unicode.
22411         (w32_to_x_charset): New parameter matching.  Don't return partial
22412         or wildcard charsets.
22413         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22414         (w32_codepage_for_font): Return CP_UNICODE for unicode.
22415         (w32_to_x_font): Match charset to real charset.
22416         (enum_font_cb2): Always list unicode versions.
22418         * makefile.w32-in (temacs): Increase EMHEAP.
22420 2008-02-01  Jason Rumney  <jasonr@gnu.org>
22422         * w32term.c (w32_encode_char): New charset parameter.
22423         font_info.encoding becomes encoding_type.
22424         (x_get_font_repertory): New function.  Warning: stub only!
22425         (x_new_font): Return quickly if font already set.
22426         (x_new_fontset): fontsetname parameter is Lisp_Object.
22427         Use new fs_query_fontset.  Try new_fontset_from_font_name.
22428         Use fontset_name for return value.
22430         * w32term.h: Declare x_get_font_repertory.
22432         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22433         place of find_charset_in_text.  Use encode_coding_object in place
22434         of encode_coding.
22435         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22436         decode_coding.
22438         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22439         of x_new_fontset.
22440         (w32_load_system_font): Initialize charset as unicode.
22441         font_info.encoding becomes encoding_type.
22442         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22443         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22444         (syms_of_w32fns): Set get_font_repertory_func.
22446         * w32console.c: Include character.h.  Use terminal_encode_buffer
22447         from term.c.
22448         (write_glyphs): Use new version of encode_terminal_code.  Use
22449         encode_coding_object in place of encode_coding.
22451         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22452         encoding becomes encoding_type.
22454         * term.c (terminal_encode_buffer): Make externally visible.
22456         * makefile.w32-in: Add character.h dependancies.
22457         (character.o, chartab.o): New targets.
22459 2008-02-01  Kenichi Handa  <handa@m17n.org>
22461         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22462         CODING_ID_EOL_TYPE.
22464 2008-02-01  Andreas Schwab  <schwab@suse.de>
22466         * coding.c (produce_chars): Revert last change.
22468 2008-02-01  Kenichi Handa  <handa@m17n.org>
22470         * charset.h (charset_unicode): Extern it.
22472         * charset.c (string_xstring_p): Check by (C >= 0x100).
22473         (find_charsets_in_text): Change format of the arc CHARSETS.  New
22474         arg MULTIBYTE.
22475         (Ffind_charset_region, Ffind_charset_string): Adjust for the
22476         change of find_charsets_in_text.
22477         (Fsplit_char): Fix doc.  Never return unknown.
22479         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22481         * coding.c (Fdefine_coding_system_alias): Update
22482         Vcoding_system_list.
22484         * fontset.c (load_font_get_repertory): Pay attention to the case
22485         that ENCODING of a font is specified by a char-table.
22487         * xterm.c (x_get_font_repertory): Handle the case that the
22488         encoding of font is other than Unicode.
22490 2008-02-01  Kenichi Handa  <handa@m17n.org>
22492         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
22493         if a character is encodable by the terminal coding system.  If
22494         not, produces proper number of `?'s.  Update
22495         terminal_encode_buffer and terminal_encode_buf_size if necessary.
22496         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22498 2008-02-01  Kenichi Handa  <handa@m17n.org>
22500         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22501         variables.
22502         (encode_terminal_code): Change argument.  Encode multiple
22503         characters at once.  Store the result of encoding in
22504         terminal_encode_buffer.
22505         (write_glyphs, insert_glyphs): Adjust for the change of
22506         encode_terminal_code.
22507         (term_init): Initialize terminal_encode_buffer and
22508         terminal_encode_buf_size.
22510         * coding.c (consume_chars): If coding->src_object is nil, don't
22511         check annotation.
22513 2008-02-01  Kenichi Handa  <handa@m17n.org>
22515         * character.c (char_string): Use ASCII_CHAR_P instead of
22516         SINGLE_BYTE_CHAR_P.
22518 2008-02-01  Kenichi Handa  <handa@m17n.org>
22520         * xdisp.c (handle_auto_composed_prop): Check if the last
22521         characters of auto-composed region is newly composed with the
22522         following characters.
22523         (handle_composition_prop): Fix checking of point being inside
22524         composition.
22526 2008-02-01  Kenichi Handa  <handa@m17n.org>
22528         * fns.c (concat): Don't change multibyteness of the result by
22529         concatenating an 8-bit character.
22531         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
22532         multibyteness of the result when newelt is an 8-bit character.
22534 2008-02-01  Dave Love  <fx@gnu.org>
22536         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22537         EMACS_INT.
22539         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22541         * xfaces.c (face_numeric_value): Declare dim size_t.
22542         (Finternal_lisp_face_equal_p): Remove unused f.
22544         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22545         (MATRIX_ROW): Remove unused vars.
22546         (draw_glyphs, x_insert_glyphs, fast_find_position)
22547         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22548         byte/char counts.
22550         * regex.c (regex_compile): Remove unused var.
22552         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22554         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22555         (Faccessible_keymaps, where_is_internal): Remove unused vars.
22557         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22559         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22561         * fileio.c (Fwrite_region): Remove unused var.
22563         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22564         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22566         * composite.c (Fremove_list_of_text_properties): Declare.
22568         * coding.c (inhibit_pre_post_conversion): Remove (unused).
22569         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22570         (coding_inherit_eol_type): Remove unused attrs.
22571         (detect_coding): Cast arg of detect_eol.
22573         * charset.c (syms_of_charset): Remove unused var p.
22574         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22575         byte/char counts.
22577         * casetab.c (set_case_table): Remove unused var.
22579         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22580         unused vars.
22582 2008-02-01  Dave Love  <fx@gnu.org>
22584         * xterm.c (x_bitmap_mask): Declare.
22586 2008-02-01  Dave Love  <fx@gnu.org>
22588         * xterm.c (x_term_init): Fix type error.
22590         * lisp.h: Add Funibyte_char_to_multibyte.
22592         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22593         (Fset_coding_system_priority): Doc fix.
22595         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22597         * indent.c (check_composition): Make start and end EMACS_INT.
22599         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22601         * xdisp.c (handle_composition_prop, check_point_in_composition):
22602         Make buffer positions EMACS_INT.
22604         * composite.c (find_composition, run_composition_function)
22605         (update_compositions, Ffind_composition_internal): Make buffer
22606         positions EMACS_INT.
22608         * composite.h (find_composition, update_compositions): Make
22609         position args EMACS_INT.
22611         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22613         * intervals.c (get_property_and_range):
22614         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22616         * unexalpha.c: Don't include varargs.h.
22618 2008-02-01  Dave Love  <fx@gnu.org>
22620         * coding.h (ENCODE_UTF_8): New.
22622         * Makefile.in (gtkutil.o): Depend on coding.h.
22624         * coding.c (Fset_coding_system_priority): Doc fix.
22626 2008-02-01  Kenichi Handa  <handa@m17n.org>
22628         * fileio.c (Finsert_file_contents): Call setup_coding_system in
22629         the case of auto saving.
22631 2008-02-01  Andreas Schwab  <schwab@suse.de>
22633         * chartab.c (map_char_table, map_char_table_for_charset): Protect
22634         `range' from GC.
22636 2008-02-01  Kenichi Handa  <handa@m17n.org>
22638         * coding.c (decode_coding_sjis): Check bytes more rigidly.
22640 2008-02-01  Kenichi Handa  <handa@m17n.org>
22642         * fileio.c (choose_write_coding_system): Return a decided coding system.
22643         (Fwrite_region): Set Vlast_coding_system_used to the return value
22644         of choose_write_coding_system.
22646 2008-02-01  Kenichi Handa  <handa@m17n.org>
22648         * charset.c (Fset_charset_priority): Pay attention to duplicated
22649         arguments.
22651         * coding.c (QCcategory): New variable.
22652         (syms_of_coding): Defsym it.  Set all elements of
22653         Vcoding_category_table and their symbol values.
22654         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
22655         coding-category-XXX, and coding-category-list.
22656         (Fdefine_coding_system_internal): Add category in the plist.
22658 2008-02-01  Kenichi Handa  <handa@m17n.org>
22660         * callproc.c (Fcall_process): Handle carryover correctly.
22662         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22663         (raw_text_coding_system): Check NILP (coding_system).
22664         (coding_inherit_eol_type): Check NILP (coding_system) and
22665         NILP (parent).
22666         (consume_chars): Fix for the case of raw-text.
22668         * process.c (read_process_output): Handle carryover correctly.
22670 2008-02-01  Dave Love  <fx@gnu.org>
22672         * regex.c (re_search_2): Fix last change.
22674 2008-02-01  Kenichi Handa  <handa@m17n.org>
22676         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22677         target_multibyte.  Even in a unibyte case, return a converted
22678         multibyte char.
22679         (GET_CHAR_AFTER): New macro.
22680         (PATFETCH): Translate via multibyte char.
22681         (HANDLE_UNIBYTE_RANGE): Delete this macro.
22682         (SETUP_MULTIBYTE_RANGE): New macro.
22683         (regex_compile): Setup compiled code so that its multibyteness
22684         matches that of a target.  Fix the handling of "[X-YZ]" using
22685         SETUP_MULTIBYTE_RANGE.
22686         (analyse_first) <charset>: For filling fastmap for all multibyte
22687         characters, don't check by BASE_LEADING_CODE_P.
22688         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
22689         the same as RE_MULTIBYTE_P (bufp) now.
22690         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22691         (TARGET_CHAR_AND_LENGTH): Delete this macro.
22692         (TRANSLATE_VIA_MULTIBYTE): New macro.
22693         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22694         It is the same as RE_MULTIBYTE_P (bufp) now.
22695         <exactn>: Translate via multibyte.
22696         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
22697         translate it.
22698         <charset, charset_not>: Fetch a character by
22699         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
22700         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22701         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22702         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22703         by GET_CHAR_AFTER.
22704         (bcmp_translate): Likewise.
22706         * search.c (compile_pattern): Check the member target_multibyte,
22707         not the member multibyte of buf.
22709         * lread.c (read1): While reading a string, set force_singlebyte
22710         and force_multibyte correctly.
22712         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22713         up of unibyte_to_multibyte_table.
22715 2008-02-01  Kenichi Handa  <handa@m17n.org>
22717         * coding.c (setup_coding_system): If coding has
22718         post-read-conversion or pre-write-conversion, set
22719         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22720         respectively.
22721         (decode_coding_gap): Run post-read-conversion if any.
22723         * fileio.c (Finsert_file_contents): Even if we read into a
22724         unibyte buffer, check if we must decode the result or not.
22726 2008-02-01  Kenichi Handa  <handa@m17n.org>
22728         * coding.c (make_conversion_work_buffer): Change the work buffer
22729         name to the same one as that of Emacs 21.
22731 2008-02-01  Kenichi Handa  <handa@m17n.org>
22733         * coding.h (make_conversion_work_buffer): Adjust prototype.
22734         (code_conversion_restore): Don't extern it.
22736         * coding.c (detected_mask): Delete unused variable.
22737         (decode_coding_iso_2022): Pay attention to the byte sequence of
22738         CTEXT extended segment, and retain those bytes as is.
22739         (decode_coding_ccl): Delete unused variable `valids'.
22740         (setup_coding_system): Delete unused variable `category'.
22741         (consume_chars): Delete unused variable `category'.  Make it work
22742         for non-multibyte case.
22743         (make_conversion_work_buffer): Change argument.
22744         (saved_coding): Delete unused variable.
22745         (code_conversion_restore): Don't check saved_coding->destination.
22746         (code_conversion_save): New function.
22747         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22748         instead of record_unwind_protect.
22749         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
22750         (detect_coding_system): Delete unused variable `mask'.
22751         (Fdefine_coding_system_internal): Delete unused variable id.
22753         * fileio.c (kill_workbuf_unwind): New function.
22754         (Finsert_file_contents): On replacing, call
22755         make_conversion_work_buffer with correct args, and call
22756         record_unwind_protect with the first arg kill_workbuf_unwind.
22758         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22760 2008-02-01  Kenichi Handa  <handa@m17n.org>
22762         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22763         (fontset_add): Fix for the case that TO is less than TO1.
22764         (Ffontset_info): Don't use fallback fontset on checking the
22765         default fontset.
22766         (dump_fontset): New function for debugging.
22768         * coding.c (Fdefine_coding_system_internal): Fix for the case that
22769         coding_type is Qcharset.
22771 2008-02-01  Kenichi Handa  <handa@m17n.org>
22773         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22774         (map_char_table): Don't inherit the value from the parent on
22775         initializing VAL.  Adjust for the above change.
22777 2008-02-01  Kenichi Handa  <handa@m17n.org>
22779         * coding.c (Qsignature, Qendian): Delete these variables.
22780         (syms_of_coding): Don't initialize them.
22781         (CATEGORY_MASK_UTF_16_AUTO): New macro.
22782         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22783         detect_info->found.
22784         (decode_coding_utf_16): Don't detect BOM here.
22785         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22786         is NOT utf_16_without_bom.
22787         (setup_coding_system): For a coding system of type utf-16, check
22788         if the attribute :endian is Qbig or not (not nil or not), and set
22789         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22790         (detect_coding): If coding type is utf-16 and BOM detection is
22791         required, detect it.
22792         (Fdefine_coding_system_internal): For a coding system of type
22793         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22795 2008-02-01  Kenichi Handa  <handa@m17n.org>
22797         * coding.c (coding_set_source): Fix for the case that the current
22798         buffer is different from coding->src_object.
22799         (decode_coding_object): Don't use the conversion work buffer if
22800         DST_OBJECT is a buffer.
22802 2008-02-01  Dave Love  <fx@gnu.org>
22804         * lread.c (read_emacs_mule_char) [len==2]: Index
22805         emacs_mule_charset correctly.
22807 2008-02-01  Dave Love  <fx@gnu.org>
22809         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22810         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22811         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
22812         treated specially.)
22813         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22814         (detected_mask): Remove Big5 bits.
22816 2008-02-01  Kenichi Handa  <handa@m17n.org>
22818         The following changes are to make the font rescaling facility
22819         compatible with Emacs 21.
22821         * xfaces.c (Vface_font_rescale_alist): Rename from
22822         Vface_resizing_fonts.
22823         (struct font_name): Rename member resizing_ratio to rescale_ratio.
22824         (font_rescale_ratio): Rename from font_resizing_ratio.
22825         (split_font_name): Set font->rescale_ratio.
22826         (better_font_p): Pay attention to font->rescale_ratio.
22827         (build_scalable_font_name): Likewise.  Change RESX, and RESY
22828         fields.
22829         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22831 2008-02-01  Kenichi Handa  <handa@m17n.org>
22833         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22834         (Qutf_16_le): Remove these variables.
22835         (syms_of_coding): Don't DEFSYM them.
22836         (decode_coding_utf_16): Fix handling of BOM.
22837         (encode_coding_utf_16): Fix handling of BOM.
22839 2008-02-01  Kenichi Handa  <handa@m17n.org>
22841         * fileio.c (Finsert_file_contents): On replacing, before decoding
22842         the file into the work buffer, set point of the work buffer to the end.
22844 2008-02-01  Dave Love  <fx@gnu.org>
22846         * coding.c (Fcheck_coding_systems_region): Fix type errors.
22848 2008-02-01  Dave Love  <fx@gnu.org>
22850         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22851         and fix C types.
22853 2008-02-01  Kenichi Handa  <handa@m17n.org>
22855         * xdisp.c (SKIP_GLYPHS): New macro.
22856         (set_cursor_from_row): Pay attention to string display properties.
22858         * category.c (copy_category_entry): Fix for the case that RANGE
22859         is an integer.
22861         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22863         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22865 2008-02-01  Kenichi Handa  <handa@m17n.org>
22867         * charset.c (Fcharset_id_internal): New function.
22868         (syms_of_charset): Defsubr it.
22870         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22871         with the last arg charset_list acquired from coding.
22872         (Fdefine_coding_system_internal): For ccl-based coding system, fix
22873         the attribute coding_attr_ccl_valids.
22875         * coding.h (enum define_coding_ccl_arg_index): Set the first
22876         member coding_arg_ccl_decoder to coding_arg_max.
22878         * ccl.h (ccl_driver): Adjust prototype.
22880         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22881         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
22882         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
22883         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22884         last arg Qnil.
22886 2008-02-01  Kenichi Handa  <handa@m17n.org>
22888         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22889         call encode_char.
22891         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22893 2008-02-01  Dave Love  <fx@gnu.org>
22895         * composite.c (syms_of_composite): Make composition_hash_table weak.
22897 2008-02-01  Kenichi Handa  <handa@m17n.org>
22899         * dispextern.h (check_face_attributes, generate_ascii_font_name)
22900         (font_name_registry): Don't extern them.
22901         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22903         * fontset.h (Qfontset): Don't extern it.
22904         (new_fontset_from_font_name): Extern it.
22906         * fontset.c: Give 8 extra slots to fontset objects.
22907         (Qfontset_info): New variable.
22908         (syms_of_fontset): Defsym it.
22909         (FONTSET_FALLBACK): New macro.
22910         (fontset_face): Try also the default fontset.
22911         (make_fontset): Realize a fallback fontset from the default fontset.
22912         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
22913         using split_font_name_into_vector and build_font_name_from_vector.
22914         (Fset_fontset_font): Access the elements of font_spec by enum
22915         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
22916         name by using split_font_name_into_vector.
22917         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22918         generate a proper font name from the fontset name.  Update
22919         Vfontset_alias_alist.
22920         (n_auto_fontsets): New variable.
22921         (new_fontset_from_font_name): New function.
22922         (Ffont_info): Store the information about fonts generated from the
22923         default fontset in the first extra slot of the returned char-table.
22925         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22926         (font_name_registry): Delete function.
22927         (split_font_name_into_vector): New function.
22928         (build_font_name_from_vector): New function.
22929         (font_list): The argument REGISTRY is now a list of registry names.
22930         (choose_face_font): If we are choosing an ASCII font, and ATTRS
22931         specifies an explicit font name, return the name as is.  Make a
22932         list of registy names.
22934         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22935         of x_new_fontset.
22936         (Fx_create_frame): Don't call x_new_fontset here.  Just use
22937         x_list_fonts to check the existence of fonts.
22939         * xterm.h (x_new_fontset): Adjust prototype.
22941         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22942         string.  Use new_fontset_from_font_name to create a fontset from a
22943         font name.
22945 2008-02-01  Kenichi Handa  <handa@m17n.org>
22947         * syntax.c (Vfind_word_boundary_function_table): New name for
22948         Vnext_word_boundary_function_table.
22949         (find-word-boundary-function-table): New name for
22950         next-word-boundary-function-table.
22952 2008-02-01  Dave Love  <fx@gnu.org>
22954         * Makefile.in: Fix some dependencies.
22956         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22957         set it to nil before returning.
22959         * composite.c (update_compositions): Fix type error.
22961         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22963 2008-02-01  Kenichi Handa  <handa@m17n.org>
22965         * xterm.c (x_new_font): Optimize for the case that the font is
22966         already set for the frame.
22968 2008-02-01  Kenichi Handa  <handa@m17n.org>
22970         * chartab.c (char_table_ascii): Check if the char table contents
22971         is sub-char-table or not.
22972         (char_table_set, char_table_set_range): Fix argument to
22973         char_table_ascii.
22975         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22976         (detect_coding_utf_8, detect_coding_utf_16)
22977         (detect_coding_emacs_mule, detect_coding_iso_2022)
22978         (detect_coding_sjis, detect_coding_big5)
22979         (detect_coding_ccl, detect_coding_charset): Change argument MASK
22980         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
22981         sequence is valid in this coding system.  Change callers.
22982         (MAX_ANNOTATION_LENGTH): New macro.
22983         (ADD_ANNOTATION_DATA): New macro.
22984         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
22985         ADD_ANNOTATION_DATA.  Change the format of annotation data.
22986         (ADD_CHARSET_DATA): New macro.
22987         (emacs_mule_char): New argument ID.  Change callers.
22988         (decode_coding_emacs_mule, decode_coding_iso_2022)
22989         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22990         Produce charset annotation data in coding->charbuf.
22991         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22992         to charset annotation data in coding->charbuf.
22993         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22994         coding->common_flags if the coding system is iso-2022 based and
22995         uses designation.
22996         (produce_composition): Adjust for the new annotation data format.
22997         (produce_charset): New function.
22998         (produce_annotation): Handle charset annotation.
22999         (handle_composition_annotation, handle_charset_annotation): New
23000         functions.
23001         (consume_chars): Handle charset annotation.  Utilize the above two
23002         functions.
23003         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23004         buffer, get the deleted text as a string and set
23005         coding->src_object to that string.
23006         (detect_coding, detect_coding_system): Use the new struct
23007         coding_detection_info.
23009         * coding.h (struct coding_detection_info): New structure.
23010         (struct coding_system): Adjust prototype of the member `detector'.
23011         (CODING_ANNOTATE_CHARSET_MASK): New macro.
23013 2008-02-01  Kenichi Handa  <handa@m17n.org>
23015         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23017 2008-02-01  Dave Love  <fx@gnu.org>
23019         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23020         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
23021         to new local and nullify apropos_accumulate before returning.
23022         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23024 2008-02-01  Kenichi Handa  <handa@m17n.org>
23026         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23027         correctly.
23029 2008-02-01  Dave Love  <fx@gnu.org>
23031         * fns.c (Flanginfo): Call synchronize_system_time_locale.
23033 2008-02-01  Kenichi Handa  <handa@m17n.org>
23035         The following changes are to make character composition happen
23036         automatically on displaying.
23038         * Makefile.in (lisp, shortlisp): Add composite.elc.
23040         * composite.h (Qauto_composed, Vauto_composition_function)
23041         (Qauto_composition_function): Extern them.
23043         * composite.c (Vcomposition_function_table)
23044         (Qcomposition_function_table): Delete variables.
23045         (Qauto_composed, Vauto_composition_function)
23046         (Qauto_composition_function): New variables.
23047         (run_composition_function): Don't call
23048         compose-chars-after-function.
23049         (update_compositions): Clear `auto-composed' text property.
23050         (compose_chars_in_text): Delete this function.
23051         (syms_of_composite): Staticpro Qauto_composed and
23052         Qauto_composition_function.  Declare Vauto_composition_function as
23053         a Lisp variable.
23055         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23057         * xdisp.c (it_props): Add an entry for Qauto_composed.
23058         (handle_auto_composed_prop): New function.
23060         * xselect.c (selection_data_to_lisp_data): Don't call
23061         compose_chars_in_text.
23063 2008-02-01  Dave Love  <fx@gnu.org>
23065         * keyboard.c (read_char): Modify checking around use of
23066         Vkeyboard_translate_table.
23068         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23069         and fix C types.
23071 2008-02-01  Kenichi Handa  <handa@m17n.org>
23073         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23074         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23075         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23076         the case that the last byte is '\r' correctly.
23077         (decode_coding): Flush out the unprocessed data correctly.
23078         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23080 2008-02-01  Dave Love  <fx@gnu.org>
23082         * xterm.c (XTread_socket): Fix changes for defined keysyms.
23083         Add XK_ISO... case.
23084         (xaw_scroll_callback): Revert last change.
23086 2008-02-01  Kenichi Handa  <handa@m17n.org>
23088         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23090 2008-02-01  Kenichi Handa  <handa@m17n.org>
23092         * xfaces.c (Vface_resizing_fonts): New variable.
23093         (struct font_name): New member `resizing_ratio'.
23094         (font_resizing_ratio): New function.
23095         (split_font_name): Set font->resizing_ratio.
23096         (better_font_p): Pay attention to font->resizing_ratio.
23097         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
23098         RESX, and RESY fields.
23099         (try_alternative_families): Try scalable fonts if
23100         Vscalable_fonts_allowed is not Qt.
23101         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23103 2008-02-01  Dave Love  <fx@gnu.org>
23105         * xterm.c (xaw_scroll_callback): Cast correctly.
23107 2008-02-01  Dave Love  <fx@gnu.org>
23109         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23110         (lispy_kana_keys): Comment out.
23111         (make_lispy_event) [XK_kana_A]: Comment out.
23113         * xterm.c (xaw_scroll_callback): Cast call_data.
23114         (XTread_socket): Deal with ASCII keysyms.
23115         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23117 2008-02-01  Dave Love  <fx@gnu.org>
23119         * xterm.c (Vx_keysym_table): New.
23120         (syms_of_xterm): Initialize it.
23121         (XTread_socket): Use it.
23122         From head: Eliminate incorrect optimization that tried to avoid
23123         decoding the output of X*LookupString.
23124         (x_get_font_repertory): Delete charset declaration.
23126 2008-02-01  Kenichi Handa  <handa@m17n.org>
23128         * coding.c (detect_coding_charset): If only ASCII bytes are found,
23129         return 0.
23130         (Fdefine_coding_system_internal): Setup
23131         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23133 2008-02-01  Dave Love  <fx@gnu.org>
23135         * coding.c (Fcheck_coding_system): Doc fix.
23137         * editfns.c (Finsert_byte): Return a proper value.
23139 2008-02-01  Kenichi Handa  <handa@m17n.org>
23141         * coding.c (decode_coding): Fix args to translate_chars.  Pay
23142         attention to Vstandard_translation_table_for_decode.
23143         (encode_coding): Fix args to translate_chars.  Pay attention to
23144         Vstandard_translation_table_for_encode.
23146         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23147         SINGLE_BYTE_CHAR_P.
23149         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23150         not by SINGLE_BYTE_CHAR_P.
23152         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23153         SINGLE_BYTE_CHAR_P.
23155         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23156         SINGLE_BYTE_CHAR_P.
23158         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23159         by SINGLE_BYTE_CHAR_P.
23161         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23162         SINGLE_BYTE_CHAR_P.
23164 2008-02-01  Dave Love  <fx@gnu.org>
23166         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23168 2008-02-01  Dave Love  <fx@gnu.org>
23170         * fns.c (Flanginfo): Fix typo.
23172         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23174 2008-02-01  Kenichi Handa  <handa@m17n.org>
23176         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23177         (detect_coding_emacs_mule, detect_coding_iso_2022)
23178         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23179         incomplete byte sequence.  Don't update *mask when correctly detected.
23180         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23181         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23182         (detect_coding, detect_coding_system): Adjust for the changes above.
23184 2008-02-01  Kenichi Handa  <handa@m17n.org>
23186         * character.c (char_string): Rename from
23187         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
23188         (string_char): Rename from string_char.
23190         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23191         if C is greater than MAX_3_BYTE_CHAR.
23192         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23193         string_char instead of string_char_with_unification.
23195 2008-02-01  Dave Love  <fx@gnu.org>
23197         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23199 2008-02-01  Kenichi Handa  <handa@m17n.org>
23201         * keymap.c (push_key_description): Pay attention to force_multibyte.
23203         * regex.c (re_search_2): Fix for the case of unibyte buffer.
23205 2008-02-01  Dave Love  <fx@gnu.org>
23207         * charset.c (define_charset_internal): Rename `supprementary'.
23209         * Makefile.in (lisp, shortlisp): Remove latin-N.
23211 2008-02-01  Dave Love  <fx@gnu.org>
23213         * xfns.c (x_window, x_window): Use use_xim.
23215         * xterm.c (use_xim): Initialize.
23216         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23217         (x_term_init): Maybe set use_xim.
23219         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23221 2008-02-01  Kenichi Handa  <handa@m17n.org>
23223         * search.c (search_buffer): Fix case-fold-search of multibyte
23224         characters.
23225         (boyer_moore): Rename the last argument to char_high_bits.
23227 2008-02-01  Kenichi Handa  <handa@m17n.org>
23229         * xdisp.c (display_string): Fix for the case of zero width glyph.
23231         * xfns.c (x_set_font): Change the error message of the case that
23232         x_new_fontset returns Qt.
23234         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23235         (Finternal_set_lisp_face_attribute): Use signal_error for the
23236         error of invalid fontset.
23238         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23239         fontset, return Qt.
23241 2008-02-01  Dave Love  <fx@gnu.org>
23243         * unexelf.c (unexec): Make .got handling not SGI-specific.
23245         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23247         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23249         * keyboard.c (read_key_sequence): Fix type error.
23251         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23252         type error.
23254         * fontset.c (fontset_add): Return Lisp_Object.
23256 2008-02-01  Dave Love  <fx@gnu.org>
23258         * charset.h (charset_ordered_list_tick): Declare extern.
23260 2008-02-01  Kenichi Handa  <handa@m17n.org>
23262         The following changes (and some of 2008-02-01 changes of mine) are
23263         for handling syntax, category, and case conversion for unibyte
23264         characters by converting them to multibyte on the fly.  With these
23265         changes, we don't have to setup syntax and case tables for unibyte
23266         characters in each language environment.
23268         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23269         multibyte if necessary.
23271         * bytecode.c (Fbyte_code): Likewise.
23273         * character.h (LEADING_CODE_LATIN_1_MIN)
23274         (LEADING_CODE_LATIN_1_MAX): New macros.
23275         (unibyte_to_multibyte_table): Extern it.
23276         (unibyte_char_to_multibyte): New macro.
23277         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23278         (CHAR_LEADING_CODE): New macro.
23279         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23281         * character.c (unibyte_to_multibyte_table): New variable.
23282         (unibyte_char_to_multibyte): Move to character.h and define as macro.
23283         (multibyte_char_to_unibyte): If C is an eight-bit character,
23284         convert it to the corresponding byte value.
23286         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23287         not 1, signals an error.  Update the elements of
23288         unibyte_to_multibyte_table.
23289         (init_charset_once): Initialize unibyte_to_multibyte_table.
23290         (syms_of_charset): Define the charset `iso-8859-1'.
23292         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23293         as is without converting it to unibyte.  In a unibyte buffer,
23294         convert C to multibyte before checking the syntax.
23296         * lisp.h (unibyte_char_to_multibyte): Delete extern.
23298         * minibuf.c (Fminibuffer_complete_word): Use the macro
23299         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23301         * regex.h (struct re_pattern_buffer): New member target_multibyte.
23303         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23304         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
23305         that is zero, convert an eight-bit char to multibyte.
23306         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23307         non-emacs case.
23308         (PATFETCH): Convert an eight-bit char to multibyte.
23309         (HANDLE_UNIBYTE_RANGE): New macro.
23310         (regex_compile): Setup the compiled pattern for multibyte chars
23311         even if the given regex string is unibyte.  Use PATFETCH_RAW
23312         instead of PATFETCH in many places.  To handle `charset'
23313         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
23314         only for ASCII chars.
23315         (analyse_first) <exactn>: Simplify because the compiled pattern
23316         is multibyte.
23317         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23318         <charset>: Use CHAR_LEADING_CODE to get leading codes.
23319         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23320         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23321         multibyte always 1.
23322         (re_search_2): In emacs, set the locale variable multibyte to 1,
23323         otherwise to 0.  New local variable target_multibyte.  Check it
23324         to decide the multibyteness of STR1 and STR2.  If
23325         target_multibyte is zero, convert unibyte chars to multibyte
23326         before translating and checking fastmap.
23327         (TARGET_CHAR_AND_LENGTH): New macro.
23328         (re_match_2_internal): In emacs, set the locale variable multibyte
23329         to 1, otherwise to 0.  New local variable target_multibyte.  Check
23330         it to decide the multibyteness of STR1 and STR2.  Use
23331         TARGET_CHAR_AND_LENGTH to fetch a character from D.
23332         <charset, charset_not>: If multibyte is nonzero, check fastmap
23333         only for ASCII chars.  Call bcmp_translate with
23334         target_multibyte, not with multibyte.
23335         <begline>: Declare the local variable C as `unsigned'.
23336         (bcmp_translate): Change the last arg name to target_multibyte.
23338         * search.c (compile_pattern_1): Don't adjust the multibyteness of
23339         the regexp pattern and the matching target.  Set cp->buf.multibyte
23340         to the multibyteness of the regexp pattern.  Set
23341         cp->but.target_multibyte to the multibyteness of the matching target.
23342         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23343         FETCH_STRING_CHAR_ADVANCE.
23344         (Freplace_match): Convert unibyte chars to multibyte.
23346         * syntax.c (char_quoted, back_comment, scan_words)
23347         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23348         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23349         unibyte chars to multibyte.
23350         (skip_chars): Delete the arg syntaxp, and move the code for
23351         handling syntaxes to skip_syntaxes.  Change callers.
23352         Fix the case that the multibyteness of STRING and the current
23353         buffer doesn't match.
23354         (skip_syntaxes): New function.
23355         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23356         SINGLE_BYTE_CHAR_P.
23358 2008-02-01  Kenichi Handa  <handa@m17n.org>
23360         * xfaces.c (QCfontset): New variable.
23361         (LFACE_FONTSET): New macro.
23362         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23363         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23364         (Finternal_set_lisp_face_attribute)
23365         (Finternal_get_lisp_face_attribute): Handle QCfontset.
23366         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23367         check also LFACE_FONTSET_INDEX.
23368         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23369         attrs[LFACE_FONT_INDEX].
23370         (syms_of_xfaces): Intern and staticpro QCfontset.
23372         * dispextern.h (enum lface_attribute_index): New member
23373         LFACE_FONTSET_INDEX.
23375         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23377 2008-02-01  Kenichi Handa  <handa@m17n.org>
23379         * coding.c (coding_set_destination): Fix coding->destination for
23380         the case converting a region.
23381         (encode_coding_utf_8): Encode eight-bit chars as single byte.
23382         (encode_coding_object): Fix coding->dst_pos and
23383         coding->dst_pos_byte for the case converting a region.
23385         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23387         * character.h (BYTE8_STRING): New macro.
23389         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23391 2008-02-01  Kenichi Handa  <handa@m17n.org>
23393         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23394         characters by octal form.
23396         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23398         * buffer.h (_fetch_multibyte_char_len): Delete extern.
23399         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23400         _fetch_multibyte_char_len.
23401         (FETCH_CHAR_AS_MULTIBYTE): New macro.
23403         * casetab.c (set_canon, set_identity, shuffle): Simplify.
23405         * casefiddle.c (casify_object): Simplify.  Handle the case that
23406         the case conversion change the byte length.
23407         (casify_region): Likewise.
23409         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23411         * character.c (_fetch_multibyte_char_len): Delete this variable.
23412         (syms_of_character): Setup Vprintable_chars.
23414         * editfns.c (Fchar_equal): Fix for the unibyte case.
23415         (Finsert_byte): New function.
23416         (syms_of_editfns): Defsubr it.
23418         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23419         of direct code 0x3ffff.
23421         * search.c (Freplace_match): Fix for the unibyte case.
23423 2008-02-01  Kenichi Handa  <handa@m17n.org>
23425         * lread.c (safe_to_load_p): Fix the logic.
23427         * syntax.c (scan_words): Don't treat characters belonging to
23428         different scripts as constituting a word.
23430         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23432         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23434         * emacs.c (main): In the case of --unibyte, instead of aborting on
23435         finding non-empty buffer, make it unibyte.
23437 2008-02-01  Kenichi Handa  <handa@m17n.org>
23439         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23440         to create a fontset.
23442 2008-02-01  Dave Love  <fx@gnu.org>
23444         * character.c (Funibyte_char_to_multibyte): Doc fix.
23446         * xfns.c [HAVE_STDLIB_H]: Fix last change.
23448 2008-02-01  Kenichi Handa  <handa@m17n.org>
23450         * fontset.c (fontset_add): Make the type `int'.
23451         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23453         * character.c (unibyte_char_to_multibyte)
23454         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23455         charset_unibyte, not charset_primary.
23457         * charset.h (charset_unibyte): Extern it instead of charset_primary.
23459         * charset.c (charset_unibyte): Rename from charset_primary.
23460         (Funibyte_charset): Rename from Fprimary_charset.
23461         (Fset_unibyte_charset): Rename from Fset_primary_charset.
23462         (syms_of_charset): Adjust for the above changes.
23464         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23465         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
23466         it->multibyte_p is zero.
23468         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23469         Delete extern.
23471 2008-02-01  Kenichi Handa  <handa@m17n.org>
23473         * coding.c (Fdefine_coding_system_internal): Fix category setting
23474         for a coding system of type iso-2022.
23476 2008-02-01  Kenichi Handa  <handa@m17n.org>
23478         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23480 2008-02-01  Kenichi Handa  <handa@m17n.org>
23482         * syntax.c (Vnext_word_boundary_function_table): New variable.
23483         (next-word-boundary-function-table): Declare it as a Lisp variable
23484         in syms_of_syntax.
23485         (scan_words): Call functions in Vnext_word_boundary_function_table
23486         if any.
23488         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23490         * fontset.c (fs_load_font): If fontp->charset is not negative,
23491         return fontp without setting its members.
23493 2008-02-01  Dave Love  <fx@gnu.org>
23495         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23497         * m/sparc.h (HAVE_ALLOCA): Delete.
23499         * s/irix6-5.h: Don't include strings.h.
23500         (bcopy, bzero, bcmp): Don't undef.
23502         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23504         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23505         (TIOCSIGSEND): Don't test IRIX6.
23506         (bcopy, bzero, bcmp): Define conditionally.
23508 2008-02-01  Kenichi Handa  <handa@m17n.org>
23510         * buffer.c (Qas, Qmake, Qto): New variables.
23511         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
23512         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23514         * callproc.c (Fcall_process): Don't call insert_1_both directly if
23515         we are inserting a process output into a multibyte buffer.
23517         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23518         multibyte_char_to_unibyte.
23520         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23521         by the primary charset, make it eight-bit char.
23522         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23524         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23525         (charset_8_bit__control, charset_8_bit_graphic)
23526         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23527         (define_charset_internal): New function.
23528         (syms_of_charset): Call define_charset_internal for pre-defined
23529         charsets.
23531         * charset.h (charset_8_bit): Extern it.
23533         * coding.c (make_conversion_work_buffer): Adjust for the change
23534         of Fset_buffer_multibyte.
23535         (encode_coding_raw_text): Increment p0 in the loop.
23537         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23539         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23540         for the change of Fset_buffer_multibyte.
23542         * fns.c (Fstring_to_multibyte): New function.
23543         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23545 2008-02-01  Dave Love  <fx@gnu.org>
23547         * xfns.c (x_put_x_image): Declare args.
23549         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23550         (try_font_list): Declare an arg.
23552         * xdisp.c (message2_nolog, set_message): Declare an arg.
23554         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
23556         * syntax.c (scan_sexps_forward): Declare an arg.
23558         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23559         Declare an arg.
23561         * lisp.h (Fnew_fontset): Declare.
23563         * keymap.c (push_key_description): Call CHARACTERP correctly.
23565         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
23566         (face_for_char): Delete unused vars.
23567         (Fset_fontset_font): Doc fix.  Delete unused vars.
23569         * doc.c (Fsubstitute_command_keys): Delete unused vars.
23571         * composite.c (update_compositions): Declare arg.
23573         * cm.c (calccost, cmgoto): Declare args.
23575         * charset.c: Remove `emacs' conditional.  Doc fixes.
23576         (map_char_table_for_charset): Declare.
23578         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23580         * ccl.c: Remove `emacs' conditional.
23582 2008-02-01  Kenichi Handa  <handa@m17n.org>
23584         The following changes are to allow specifying multiple font
23585         patterns for a character range (specified by script or charset).
23587         * Makefile.in (abbrev.o): Depend on syntax.h.
23588         (xfaces.o): Depend on charset.h.
23590         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23591         SINGLE_BYTE_CHAR_P.
23593         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23595         * character.h (Vchar_script_table): Extern it.
23597         * character.c (Vscript_alist): Delete.
23598         (Vchar_script_table, Qchar_script_table): New variable.
23599         (syms_of_character): Declare Vchar_script_table as a lisp variable
23600         and initialize it.
23602         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
23603         have property char-table-extra-slots, make no extra slot.
23605         * dispextern.h (struct face): Delete member `charset'.
23606         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23607         SINGLE_BYTE_CHAR_P.
23608         (choose_face_font, lookup_non_ascii_face, font_name_registry):
23609         Add prototypes.
23610         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23611         (generate_ascii_font_name): Rename from generate_ascii_font.
23613         * fontset.h (get_font_repertory_func): New prototype.
23614         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23615         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23617         * fontset.c (Qprepend, Qappend): New variables.
23618         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23619         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23620         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23621         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23622         (fontset_ref_and_range, fontset_add, reorder_font_vector)
23623         (load_font_get_repertory): New functions.
23624         (fontset_set): Delete.
23625         (fontset_face): New arg FACE.  Return face ID, not face.
23626         Complete re-write to handle new fontset structure.  Change caller.
23627         (free_face_fontset): Use ASET istead of AREF (X) = Y.
23628         (face_for_char): Don't call lookup_face.
23629         (make_fontset_for_ascii_face): New arg FACE.
23630         (fs_load_font): New arg CHARSET_ID.  Don't check
23631         Vfont_encoding_alist here.
23632         (find_font_encoding): New function.
23633         (list_fontsets): Use STRINGP, not ! NILP.
23634         (accumulate_script_ranges): New function.
23635         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23636         re-written to handle new fontset structure.
23637         (Ffontset_font): Return a copy of element.
23638         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
23639         docstring of font-encoding-alist.
23641         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23642         (Fset_fotset_font): Fix arguments to 5.
23644         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23646         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23647         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23648         (highlight_trailing_whitespace): Adjust for the change of
23649         lookup_named_face.
23651         * xfaces.c: Include charset.h.
23652         (load_face_font): Delete argument C.  Change caller.
23653         (generate_ascii_font_name): Rename from generate_ascii_font.
23654         (font_name_registry): New function.
23655         (cache_face): Store ascii faces before non-ascii faces in buckets.
23656         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
23657         Lookup only ascii faces.
23658         (lookup_non_ascii_face): New function.
23659         (lookup_named_face): Delete argument C.  Change caller.
23660         (lookup_derived_face): Delete argument C.  Change caller.
23661         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
23662         a string, just call font_list with it.
23663         (choose_face_font): Delete arguments FACE and C.  New arg
23664         FONT_SPEC.  Change caller.
23665         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23666         Change caller.
23667         (realize_non_ascii_face): New function.
23668         (realize_x_face): Call load_face_font here.
23669         (realize_tty_face): Delete argument C.  Change caller.
23670         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23671         get a face ID.
23672         (dump_realized_face): Don't print charset of FACE.
23674         * xfns.c (x_set_font): Always call x_new_fontset and
23675         store_frame_parameter.
23676         (Fx_create_frame): Call x_new_fontset, not x_new_font.
23677         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23679         * xterm.h (x_get_font_repertory): Extern it.
23681         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23682         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
23683         it->multibyte_p is zero.
23684         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23685         (x_new_fontset): If FONTSETNAME doesn't match any existing
23686         fontsets, create a new one.
23687         (x_get_font_repertory): New function.
23689 2008-02-01  Kenichi Handa  <handa@m17n.org>
23691         * coding.c (Ffind_coding_systems_region_internal): Detect an
23692         ASCII only string correctly.
23694         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23695         version is 0.
23697 2008-02-01  Kenichi Handa  <handa@m17n.org>
23699         * lread.c: Include "coding.h".
23700         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23701         (load_each_byte, unread_char): New variables.
23702         (readchar_backlog): Delete.
23703         (readchar): Return a character unless load_each_byte is nonzero.
23704         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23705         cons.  If unread_char is not -1, simply return it.
23706         (unreadchar): Handle the case that readcharfun is
23707         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
23708         (read_multibyte): Delete.
23709         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23710         (read_emacs_mule_char): New functions.
23711         (Fload): Even if the file doesn't have the extension ".elc", if
23712         safe_to_load_p returns a positive version number, assume that the
23713         file contains bytecompiled code.  If the version is less than 22,
23714         load the file while decoding multibyte sequences by emacs-mule.
23715         (readevalloop): Don't use readchar_backlog.
23716         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
23717         (Fread_from_string): Pay attention to the case that STREAM is a cons.
23718         (read_escape): Delete the arg BYTEREP.
23719         (read1): Set load_each_byte to 1 temporarily while handling
23720         #@NUMBER.  Don't call read_multibyte.
23721         (read_vector): Call Fread with a cons.  If readcharfun is
23722         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23723         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23724         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23725         and Qload_force_doc_strings.
23727 2008-02-01  Kenichi Handa  <handa@m17n.org>
23729         * xdisp.c (face_before_or_after_it_pos): Call
23730         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23732 2008-02-01  Kenichi Handa  <handa@m17n.org>
23734         * character.h (TRAILING_CODE_P): New macro.
23735         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23736         (string_char_with_unification): Fix prototype.
23737         (Vscript_alist): Extern it.
23739         * character.c (Vscript_alist): New variable.
23740         (string_char_with_unification, str_as_unibyte)
23741         (string_escape_byte8): Add `const' to local variables.
23742         (syms_of_character): Declare script-alist as a Lisp variable.
23744         * charset.h (Vcharset_ordered_list): Extern it.
23745         (charset_ordered_list_tick): Extern it.
23746         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23747         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23748         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23749         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23750         (Funify_charset): Adjust for the change of Funify_charset.
23752         * charset.c (charset_ordered_list_tick): New variable.
23753         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23754         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
23755         deunify instead of unify a charset.
23756         (string_xstring_p): Add `const' to local variables.
23757         (find_charsets_in_text): Add `const' to arguments and local variables.
23758         (encode_char): Adjust for the change of Funify_charset.  Fix
23759         detecting of invalid code.
23760         (Fset_charset_priority): Increment charset_ordered_list_tick.
23761         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23762         and TO_CODE.
23764         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23765         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23766         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23767         (decode_coding_ccl, consume_chars)
23768         (Ffind_coding_systems_region_internal)
23769         (Fcheck_coding_systems_region): Add `const' to local variables.
23771         * print.c (print_object): Use octal form for printing the
23772         contents of a bool vector.
23774 2008-02-01  Dave Love  <fx@gnu.org>
23776         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23777         <version == 20>: Refuse to load.
23779 2008-02-01  Dave Love  <fx@gnu.org>
23781         * fns.c: Move coding.h.
23782         (Qcodeset, Qdays, Qmonths): New.
23783         (concat): Use CHARACTERP instead of INTEGERP.
23784         (Flocale_codeset): Delete.
23785         (Flanginfo): New function.
23786         (syms_of_fns): Change accordingly.
23788         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23790 2008-02-01  Dave Love  <fx@gnu.org>
23792         * casetab.c (init_casetab_once, init_casetab_once): Fix
23793         CHAR_TABLE_SET call.
23795         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23797         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23799         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
23800         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23801         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23803         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23805         * coding.c (ENCODE_DESIGNATION, decode_eol)
23806         (make_conversion_work_buffer, code_conversion_restore)
23807         (Fdefine_coding_system_internal): Convert Lisp types.
23808         (code_conversion_restore): Use EQ, not ==.
23809         (Fencode_coding_string): Fix code_convert_string call.
23811         * coding.h (code_convert_region): Fix prototype.
23813         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23815         * fontset.c (fontset_ref, fontset_set, fs_load_font)
23816         (Ffontset_info): Convert Lisp types.
23818         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23820         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23822         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23824         * chartab.c: Include "...h", not <...h> in some cases.
23826         * callproc.c (Fcall_process): Remove unused variables.
23828 2008-02-01  Dave Love  <fx@gnu.org>
23830         * coding.c (Fset_coding_system_priority): Allow null arg list.
23832 2008-02-01  Dave Love  <fx@gnu.org>
23834         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23835         (Fself_insert_and_exit): Use CHARACTERP.
23837         * callproc.c (Fcall_process): Remove unused vars.
23839         * xterm.c (XTread_socket): Add extra dead keysyms.
23841         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23843         * dispextern.h: Remove prototypes for redraw_frame,
23844         redraw_garbaged_frames.
23846         * cmds.c (Fself_insert_command): Use CHARACTERP.
23848         * chartab.c (make_sub_char_table): Remove unused var.
23849         (Fset_char_table_default, Fmap_char_table): Doc fix.
23851         * keymap.c (access_keymap): Remove generic char code.
23852         (push_key_description): Use CHARACTERP.
23854 2008-02-01  Dave Love  <fx@gnu.org>
23856         * charset.c: Doc fixes.
23857         (Funify_charset): Extra checking.
23859 2008-02-01  Dave Love  <fx@gnu.org>
23861         * lread.c: Remove some unused variables.
23862         (safe_to_load_p): If safe, return the magic number version byte.
23863         (Fload): Maybe use load-with-code-conversion.
23865 2008-02-01  Kenichi Handa  <handa@m17n.org>
23867         * category.c (Fmodify_category_entry): Don't modify the contents
23868         of category_set for characters out of the range.  Avoid
23869         unnecessary modification.
23871         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23872         Vchar_unify_table.  The default value of the table is now nil.
23874         * character.c (syms_of_character): Setup Vchar_width_table for
23875         eight-bit-control and raw-byte chars.
23877         * charset.h (enum define_charset_arg_index): Delete
23878         charset_arg_parents and add charset_arg_subset and
23879         charset_arg_superset.
23880         (enum charset_attr_index): Delete charset_parents and add
23881         charset_subset and charset_superset.
23882         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23883         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23884         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23885         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23886         (CHARSET_SUPERSET): New macros.
23887         (charset_work): Extern it.
23888         (ENCODE_CHAR): Use charset_work.
23889         (CHAR_CHARSET_P): Adjust for the change of encoder format.
23890         (map_charset_chars): Extern it.
23892         * charset.c (load_charset_map): Set the default value of encoder
23893         and deunifier char-tables to nil.
23894         (map_charset_chars): Change argument.  Change callers.  Use
23895         map_char_table_for_charset instead of map_char_table.
23896         (Fmap_charset_chars): New optional args from_code and to_code.
23897         (Fdefine_charset_internal): Adjust for the change of
23898         `define-charset' (:parents -> :subset or :superset).
23899         (charset_work): New variable.
23900         (encode_char, syms_of_charset): Adjust for the change of
23901         Fdefine_charset_internal.
23902         (Ffind_charset_string): Setup the vector `charsets' correctly.
23904         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
23905         the previous change.
23906         (char_table_ref_and_range): Adjust for the above change.
23907         (map_sub_char_table_for_charset): New function.
23908         (map_char_table_for_charset): New function.
23910         * keymap.c (describe_vector): Handle a char-table directly here.
23911         (describe_char_table): Delete.
23913         * lisp.h (map_charset_chars): Delete.
23915 2008-02-01  Dave Love  <fx@gnu.org>
23917         * fns.c (count_combining): Comment out (unused).
23918         (Flocale_codeset): New.
23919         (syms_of_fns): Defsubr it.
23921         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23922         (size_t): Remove.
23924 2008-02-01  Dave Love  <fx@gnu.org>
23926         * Makefile.in (chartab.o): Depend on charset.h.
23928 2008-02-01  Kenichi Handa  <handa@m17n.org>
23930         * character.c (syms_of_character): Set the default value of
23931         Vprintable_chars to Qnil.
23933 2008-02-01  Dave Love  <fx@gnu.org>
23935         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23937 2008-02-01  Kenichi Handa  <handa@m17n.org>
23939         * charset.c (load_charset_map): Handle the case that from < to
23940         correctly.
23942         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23943         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23944         Pay attention to raw-8-bit chars.
23946 2008-02-01  Kenichi Handa  <handa@m17n.org>
23948         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23949         It is not bytecompiled now.
23951         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23952         (charset_jisx0208): New variables.
23953         (Fdefine_charset_internal): Setup them if appropriate.
23954         (init_charset_once): Initialize them to -1.
23956         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23957         (charset_jisx0208): Extern them.
23959         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23960         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23961         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23962         (setup_iso_safe_charsets): Fix arguments to Fassq.
23963         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23964         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23965         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23966         (encode_coding_iso_2022): Change the 1st arg to
23967         ENCODE_ISO_CHARACTER to a variable.
23969 2008-02-01  Kenichi Handa  <handa@m17n.org>
23971         * charset.h (enum define_charset_arg_index): New enums
23972         charset_arg_min_code and charset_arg_max_code.
23973         (struct charset): New member char_index_offset.
23975         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23976         Take charset->char_index_offset into account.
23977         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23978         args[charset_arg_max_code].  Setup charset.char_index_offset.
23979         (syms_of_charset): Fix args to Fdefine_charset_internal.
23981 2008-02-01  Dave Love  <fx@gnu.org>
23983         * coding.c (decode_coding_utf_8): Reject overlong sequences.
23985 2008-02-01  Dave Love  <fx@gnu.org>
23987         * coding.c: Doc fixes.
23988         (Fcoding_system_aliases): Fix return value.
23989         (Qmac): Remove (duplicated) definition.
23991 2008-02-01  Dave Love  <fx@gnu.org>
23993         * charset.c (Fcharset_priority_list, Fset_charset_priority):
23994         New functions.
23996         * character.c (Fstring): Doc fix.
23998         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24000         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not ids.
24001         (font-encoding-alist): Doc fix.
24003 2008-02-01  Dave Love  <fx@gnu.org>
24005         * term.c (costs_set): Declare static, non-initialized for pcc.
24006         (encode_terminal_code): Remove unused var.
24008         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24009         for K&R.
24011         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24013         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24014         (suffixes): Move out of make_subsidiaries for K&R.
24016         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24018         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24020 2008-02-01  Dave Love  <fx@gnu.org>
24022         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
24024         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
24026 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
24028         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24030         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24032 2008-02-01  Kenichi Handa  <handa@m17n.org>
24034         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24035         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
24037 2008-02-01  Kenichi Handa  <handa@m17n.org>
24039         * coding.c (decode_coding_charset): Adjust for the change of
24040         Fdefine_coding_system_internal.
24041         (Fdefine_coding_system_internal): For a coding system of
24042         `charset' type, store a list of charset IDs in
24043         `charset_attr_charset_valids' element of coding attributes.
24045 2008-02-01  Kenichi Handa  <handa@m17n.org>
24047         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24048         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
24049         caller.  Handle 2-byte and 3-byte charsets correctly.
24050         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24051         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
24052         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24053         (DECODE_EMACS_MULE_21_COMPOSITION): Call
24054         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
24055         sequence.
24056         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
24057         `src' and `consumed_chars' correctly before calling emacs_mule_char.
24058         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24059         and alt&rule composition.
24060         (decode_coding_iso_2022): Handle composition correctly.
24061         (init_coding_once): Setup emacs_mule_bytes for private charsets.
24063         * charset.c (Fdefine_charset_internal): Fix bug for the case of
24064         re-defining a charset.  If the charset has :emacs-mule-id, setup
24065         emacs_mule_bytes.
24066         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24068 2008-02-01  Kenichi Handa  <handa@m17n.org>
24070         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24071         (encode_coding_big5, encode_coding_charset): If coding requires safe
24072         encoding, produce a character specified by
24073         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24075 2008-02-01  Dave Love  <fx@gnu.org>
24077         * xterm.c (XSetIMValues): Declare.
24079         * process.c: Conditionally include sys/wait.h, pty.h.
24081         * print.c (print_object): Fix print format for 64-bit systems.
24083         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24085         * buffer.c (emacs_strerror): Declare.
24087         * fontset.c (Fclear_face_cache): Declare.
24088         (accumulate_font_info): Comment-out (unused).
24089         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24090         variables.
24092         * character.h (string_escape_byte8): Declare.
24094         * charset.c (load_charset_map, load_charset_map_from_file): Remove
24095         unused vars.
24096         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24097         (Fmap_charset_chars): Doc fix.
24099         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24100         (Fset_coding_system_priority, Fset_coding_system_priority)
24101         (Fdefine_coding_system_internal): Doc fix.
24103 2008-02-01  Dave Love  <fx@gnu.org>
24105         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24107 2008-02-01  Kenichi Handa  <handa@m17n.org>
24109         * character.c (string_escape_byte8): Make multibyte string with
24110         correct size.
24112         * charset.c (Fmake_char): Delete unnecessary code.
24114 2008-02-01  Kenichi Handa  <handa@m17n.org>
24116         * xfns.c (x_encode_text): Allocate coding.destination here, and
24117         call encode_coding_object with dst_object Qnil.
24119         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24120         multibyte form correctly.
24122         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24123         against Vfont_encoding_alist.
24125         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
24126         handling of charset list.
24127         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24128         (decode_coding_object): Move point to coding->dst_pos before
24129         calling post-read-conversion function.
24130         (encode_coding_object): Give correct arguments to
24131         pre-write-conversion.  Ignore the return value of
24132         pre-write-conversion function.  Pay attention to the case that
24133         pre-write-conversion changes the current buffer.  If dst_object is
24134         Qt, even if coding->src_bytes is zero, allocate at least one byte
24135         to coding->destination.
24137         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24139         * charset.c (Fmake_char): Make it more backward compatible.
24140         (Fmap_charset_chars): Fix docstring.
24142 2008-02-01  Dave Love  <fx@gnu.org>
24144         * coding.c: Doc fixes.
24145         (Fdefine_coding_system_alias): Use names, not symbols, in
24146         coding-system-alist.
24148 2008-02-01  Kenichi Handa  <handa@m17n.org>
24150         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24151         of calling free_realized_face.
24153 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
24155         * charset.c (read_hex): Don't treat SPC as a comment starter.
24156         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24157         (Fdecode_char): Fix typo.
24159 2008-02-01  Kenichi Handa  <handa@m17n.org>
24161         * charset.h (struct charset): New member `code_space_mask'.
24163         * coding.c (coding_set_source): Delete the local variable beg_byte.
24164         (encode_coding_charset, Fdefine_coding_system_internal):
24165         Delete the local variable charset.
24166         (Fdefine_coding_system_internal): Setup
24167         attrs[coding_attr_charset_valids] correctly.
24169         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24170         member to check if CODE is valid or not.
24171         (Fdefine_charset_internal): Initialize `code_space_mask' member.
24172         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24173         is within the range of charset->min_code and carset->max_code.
24175 2008-02-01  Dave Love  <fx@gnu.org>
24177         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24179         * dispextern.h (generate_ascii_font): Fix return type.
24181         * xfaces.c (generate_ascii_font): Fix arg declaration.
24183         * coding.c (coding_inherit_eol_type)
24184         (Fset_terminal_coding_system_internal)
24185         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24187 2008-02-01  Kenichi Handa  <handa@m17n.org>
24189         * coding.c (decode_coding_charset, encode_coding_charset): Handle
24190         multiple charsets correctly.
24192 2008-02-01  Kenichi Handa  <handa@m17n.org>
24194         * search.c (boyer_moore): Fix handling of multibyte character
24195         translation.
24197         * xdisp.c (display_mode_element): When the variable `elt' is
24198         changed, update `this' and `lisp_string'.
24200 2008-02-01  Kenichi Handa  <handa@m17n.org>
24202         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24204         * callproc.c (Fcall_process): Be sure to give the current buffer
24205         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
24207         * charset.c (struct charset_map_entries): New struct.
24208         (load_charset_map): Rename from parse_charset_map.  New args
24209         entries and n_entries.  Change caller.
24210         (load_charset_map_from_file): Rename from load_charset_map.
24211         Change caller.  New arg control_flag.  Call load_charset_map at
24212         the tail.
24213         (load_charset_map_from_vector): New function.
24214         (Fdefine_charset_internal): Setup charset.compact_codes_p.
24215         (encode_char): If the charset is compact, change a character index
24216         to a code point.
24218         * coding.c (coding_alloc_by_making_gap): Check the case that the
24219         source and destination are the same correctly.
24220         (decode_coding_raw_text): Set coding->consumed_char and
24221         coding->consumed to 0.
24222         (produce_chars): If coding->chars_at_source is nonzero, update
24223         coding->consumed_char and coding->consumed before calling
24224         alloc_destination.
24225         (Fdefine_coding_system_alias): Register ALIAS in
24226         Vcoding_system_alist.
24227         (syms_of_coding): Define `no-conversion' coding system at the tail.
24229         * fileio.c (Finsert_file_contents): Set coding_system instead of
24230         val.  If the current buffer is multibyte, always call
24231         decode_coding_gap.
24233         * xfaces.c (try_font_list): Give higher priority to fontset's
24234         family than face's family.
24236 2008-02-01  Kenichi Handa  <handa@m17n.org>
24238         * callproc.c (Fcall_process): Be sure to give the current buffer
24239         to decode_coding_c_string.
24241         * xfaces.c (try_font_list): Give a family specified in a fontset
24242         higher priority than a family specified in a face.
24244 2008-02-01  Kenichi Handa  <handa@m17n.org>
24246         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24247         Fix arguments to insert_from_buffer.
24249         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24251 2008-02-01  Kenichi Handa  <handa@m17n.org>
24253         * coding.c (produce_chars): Set the variable `multibytep' correctly.
24254         (decode_coding_gap): Set coding->dst_multibyte correctly.
24256 2008-02-01  Kenichi Handa  <handa@m17n.org>
24258         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24259         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24260         (encode_coding_utf_16): Substitute coding->default_char for
24261         non-Unicode characters.
24262         (decode_coding): Don't call record_insert here.
24263         (setup_coding_system): Initialize `surrogate' of
24264         coding->spec.utf_16 to 0.
24265         (EMIT_ONE_BYTE): Fix for multibyte case.
24267         * insdel.c (insert_from_gap): Call record_insert.
24269 2008-02-01  Kenichi Handa  <handa@m17n.org>
24271         * casefiddle.c (casify_region): Fix multibyte case.
24273         * character.c (c_string_width): Add return type `int'.
24274         (char_string_with_unification): Delete arg ADVANCED.
24276         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24277         (CHAR_STRING): Adjust for the change of char_string_with_unification.
24278         (CHAR_STRING_ADVANCE): Make it do-while statement.
24280         * chartab.c (sub_char_table_set_range): Optimize for the case
24281         DEPTH == 3.  Add workaround code for a GCC optimization bug.
24283         * charset.c (parse_charset_map): Remove an unused variable.
24285         * coding.c: Delete unused variables.
24287         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24288         earlier.  If inserted is zero and the coding system doesn't
24289         require flushing, don't call decode_coding_gap.
24291         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24293 2008-02-01  Kenichi Handa  <handa@m17n.org>
24295         The following changes are for using Unicode as an internal
24296         character model, and use UTF-8 format for buffer/string
24297         representation.
24299         * .gdbinit (xchartable): Adjust for the change of char table structure.
24300         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24302         * Makefile.in (obj): Add character.o and chartab.o.
24303         (lisp, shortlisp): Remove utf-8.elc.
24304         (*.o): For many files, change dependency on charset.h to
24305         character.h, and add dependency on character.h.
24306         (character.o, chartab.o): New targets.
24308         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24309         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24310         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24311         of "charset.h".
24313         * dired.c, filelock.c: Include "character.h".
24315         * alloc.c: Include "character.h" instead of "charset.h".
24316         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24317         (syms_of_alloc): Remove defsubr for Smake_char_table.
24319         * buffer.c: Include "character.h" instead of "charset.h", don't
24320         include "coding.h".
24321         (Fset_buffer_multibyte): Adjust for UTF-8.
24323         * buffer.h: EXFUN Fbuffer_live_p.
24325         * callproc.c: Include "character.h" instead of "charset.h".
24326         (Fcall_process): Big change for the new code-conversion APIs.
24328         * casetab.c: Include "character.h" instead of "charset.h".
24329         (set_canon, set_identity, shuffle): Adjust for the new
24330         map_char_table spec.
24331         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24332         accessing the char table structure.
24334         * chartab.c: New file that implements char table.
24336         * category.c: Include "character.h".
24337         (copy_category_entry): New function.
24338         (copy_category_table): Call map_char_table and copy_category_entry.
24339         (Fmake_category_table): Initialize all top-level slots.
24340         (char_category_set): New function.
24341         (modify_lower_category_set): Delete.
24342         (Fmodify_category_entry): Call char_table_ref_and_range.
24344         * category.h (CATEGORY_SET): Just call char_category_set.
24346         * ccl.c: Include "character.h".
24347         (Qccl, Qcclp): New variables.
24348         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24349         it's less than 256.
24350         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24351         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24352         and DST type.
24353         (ccl_driver): Change types of argument, adjust code accordingly.
24354         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24355         ccl_driver.
24356         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24358         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24359         New members src_multibyte, dst_multibyte, consumed, and produced.
24360         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
24361         (CODING_SPEC_CCL_PROGRAM): New macro.
24362         (ccl_driver): Update prototype.
24363         (Qccl, Qcclp, Fccl_program_p): Extern them.
24364         (CHECK_CCL_PROGRAM): New macro.
24366         * character.c, character.h, chartab.c: New files.
24368         * charset.c: Mostly re-written.  Move character and multibyte sequence
24369         handling codes to character.c.
24371         * charset.h: Mostly re-written.  Move character and multibyte sequence
24372         handling codes to character.h.
24374         * coding.c, coding.h: Mostly re-written.
24376         * composite.c: Include "character.h" instead of "charset.h".
24377         (CHAR_WIDTH): Move to character.h.
24378         (HASH_KEY, HASH_VALUE): Delete.
24380         * composite.h (enum composition_method): Change order of enumeration
24381         symbols.
24383         * data.c: Include "character.h" instead of "charset.h".
24384         (Faref): Call CHAR_TABLE_REF for a char table.
24385         (Faset): Call CHAR_TABLE_SET for a char table.
24387         * dispextern.h (free_realized_face, check_face_attribytes)
24388         (generate_ascii_font): Extern them.
24389         (free_realized_multibyte_face): Delete extern.
24391         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24392         table structure.
24394         * editfns.c: Include "character.h" instead of "charset.h".
24395         (Fchar_to_string): Always call CHAR_STRING.
24397         * emacs.c (main): Call init_charset_once, init_charset,
24398         syms_of_chartab, and syms_of_character.
24400         * fileio.c: Include "character.h" instead of "charset.h".
24401         (Finsert_file_contents): Big change for the new code-conversion API.
24402         (choose_write_coding_system, Fwrite_region): Likewise.
24403         (build_annotations_2): Delete.
24404         (e_write): Big change for the new code-conversion API.
24406         * fns.c: Include "character.h" instead of "charset.h".
24407         (copy_sub_char_table): Move to chartab.c.
24408         (Fcopy_sequence): Call copy_char_table for a char table.
24409         (concat): Delete codes calling count_multibyte.
24410         (string_char_to_byte, string_byte_to_char): Adjust for the new
24411         multibyte form.
24412         (internal_equal): Adjust for the change of char table structure.
24413         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24414         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24415         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24416         (char_table_translate, optimize_sub_char_table)
24417         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24418         chartab.c.
24419         (char_table_ref_and_index): Delete.
24420         (HASH_KEY, HASH_VALUE): Move to lisp.h.
24421         (Fmd5): Call preferred_coding_system instead of accessing
24422         Vcoding_category_list.  Adjust for the new code-conversion API.
24423         (syms_of_fns): Move defsubr for char table related functions to
24424         chartab.c.
24426         * fontset.c: Mostly re-written.
24428         * fontset.h (struct font_info): Change type of the member encoding_type.
24429         (enum FONT_SPEC_INDEX): New enum.
24430         (fontset_font_pattern, fs_load_font): Update prototype.
24431         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24433         * indent.c: Include "character.h" instead of "charset.h".
24434         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24436         * insdel.c: Include "character.h" instead of "charset.h".
24437         (copy_text): Don't refer to Vnonascii_translation_table.
24438         (insert_from_gap): New function.
24440         * keyboard.c: Include "character.h" instead of "charset.h".
24441         (command_loop_1): Never call direct_output_forward_char before
24442         a non-ASCII character.
24443         (read_char): If Vkeyboard_translate_table is a char table, always
24444         translate a character.
24446         * keymap.c: Include "character.h".
24447         (store_in_keymap): Handle the case that IDX is a cons.
24448         (Fdefine_key): Handle the case that KEY is a cons and the car part
24449         is also a cons (range).
24450         (push_key_description): Adjust for the new character code.
24451         (describe_vector): Call describe_char_table for a char table.
24452         (describe_char_table): New function.
24454         * keymap.h (describe_char_table): Extern it.
24456         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24457         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24458         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24459         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24460         Delete.
24461         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24462         structure.
24463         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24464         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24465         (CHARTAB_SIZE_BITS_3): New macros.
24466         (chartab_size): Extern it.
24467         (struct Lisp_Char_Table): Re-design.
24468         (struct Lisp_Sub_Char_Table): New structure.
24469         (HASH_KEY, HASH_VALUE): Move from fns.c.
24470         (CHARACTERBITS): Define as 22.
24471         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24472         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24473         (GC_SUB_CHAR_TABLE_P): New macro.
24474         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24475         (code_convert_string_norecord): Deleted extern.
24476         (init_character_once, syms_of_character, init_charset)
24477         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24479         * lread.c: Include "character.h".
24480         (read_multibyte): New arg NBYTES.
24481         (read_escape): Change the meaning of returned *BYTEREP.
24482         (to_multibyte): Delete.
24483         (read1): Adjust the handling of char table and string.
24485         * print.c: Include "character.h" instead of "charset.h".
24486         (print_string): Convert 8-bit raw bytes to octal form by
24487         string_escape_byte8.
24488         (print_object): Adjust for the new multibyte form.  Print 8-bit
24489         raw bytes always in octal form.  Handle sub char table correctly.
24491         * process.c: Include "character.h" instead of "charset.h".
24492         (read_process_output, send_process): Adjust for the new
24493         code-conversion API.
24495         * puresize.h (BASE_PURESIZE): Increase.
24497         * regex.c: Include "character.h" instead of "charset.h".
24498         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24499         (regex_compile): Accept a range whose starting and ending
24500         character have different leading bytes.
24501         (analyse_first): Adjust for the above change.
24503         * search.c: Include "character.h" instead of "charset.h".
24504         (search_buffer, boyer_moore): Adjust for the new multibyte form.
24505         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24507         * syntax.c: Include "character.h" instead of "charset.h".
24508         (syntax_parent_lookup): Delete.
24509         (Fmodify_syntax_entry): Accept a cons as CHAR.
24510         (skip_chars): Adjust for the new multibyte form.
24511         (init_syntax_once): Call char_table_set_range instead of directly
24512         accessing the structure of a char table.
24514         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24515         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24516         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24517         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24519         * term.c: Include "buffer.h" and "character.h".
24520         (encode_terminal_code, write_glyphs): Adjust for the new
24521         code-conversion API.
24522         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24524         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24526         * xdisp.c: Include "character.h".
24527         (get_next_display_element): Adjust for the new multibyte form.
24528         (disp_char_vector): Adjust for the new char table structure.
24529         (decode_mode_spec_coding): Adjust for the new structure of
24530         coding system.
24531         (decode_mode_spec): Adjust for the new code-conversion API.
24533         * xfaces.c: Include "character.h" instead of "charset.h".
24534         (load_face_font): Adjust for the change of choose_face_font and
24535         FS_LOAD_FONT.
24536         (generate_ascii_font): New function.
24537         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24538         (set_font_frame_param): Adjust for the change of choose_face_font.
24539         (free_realized_face): Make it public.
24540         (free_realized_faces_for_fontset): Rename from
24541         free_realized_multibyte_face.  Free also faces realized for ASCII.
24542         (choose_face_font): Change arguments.  Adjust for the change of
24543         fontset_font_pattern and FS_LOAD_FONT.
24545         * xfns.c: Include "character.h".
24546         (x_encode_text): Adjust for the new code-conversion API.
24548         * xselect.c: Don't include "charset.h".
24549         (selection_data_to_lisp_data): Adjust for the new code conversion API.
24551         * xterm.c: Include "character.h".
24552         (x_encode_char): New argument CHARSET.  Change caller.
24553         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24554         Call ENCODE_CHAR instead of SPLIT_CHAR.
24555         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24556         CHAR_WIDTH instead of CHARSET_WIDTH.
24557         (XTread_socket): Adjust for the new code-conversion API.
24558         (x_new_font): Adjust for the change of FS_LOAD_FONT.
24559         (x_load_font): Adjust for the change of struct font.
24561 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
24563         * xfaces.c (face_at_buffer_position): Remove unused vars.
24565 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24567         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24568         Fix overflow checking.
24570 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
24572         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24573         Cancel previous change.
24575 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
24577         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24578         ccl->eight_bit_control.  Fix check for buffer overflow.
24579         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24580         (ccl_driver): Initialize extra_bytes to 0.
24582 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
24584         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24585         return it ORed with ctrl_modifier.
24587 2008-01-29  Miles Bader  <miles@gnu.org>
24589         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24591 2008-01-28  Jason Rumney  <jasonr@gnu.org>
24593         * w32.c (stat): Don't double check for networked drive.
24595 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
24597         * window.c (run_window_configuration_change_hook): New function.
24598         Code extracted from set_window_buffer.  Set the selected frame.
24599         (set_window_buffer): Use it.
24600         * window.h (run_window_configuration_change_hook): Declare.
24601         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24603         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24605 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
24607         * Makefile.in: Remove references to unused macros.
24609 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
24611         * w32.c (g_b_init_get_sid_sub_authority)
24612         (g_b_init_get_sid_sub_authority_count): New static variables.
24613         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24614         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24615         (init_user_info): Use them to retrieve uid and gid.
24616         Use 500/513, the Windows defaults, as Administrator's uid/gid.
24617         (fstat): Use pw_uid and pw_gid from the_passwd structure for
24618         st_uid and st_gid of the file.
24620 2008-01-26  Jason Rumney  <jasonr@gnu.org>
24622         * w32.c (logon_network_drive): New function.
24623         (stat): Use it.
24625 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
24627         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24628         invisible text covered with an ellipsis.
24630 2008-01-25  Richard Stallman  <rms@gnu.org>
24632         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24633         jump back to beginning.  Move some other initializations after that.
24634         (Qwindow_text_change_functions, Vwindow_text_change_functions):
24635         New variables.
24636         (syms_of_xdisp): Init them.
24638         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24640         * buffer.c (reset_buffer_local_variables):
24641         Implement `permanent-local-hook'.
24642         (Qpermanent_local_hook): New variable.
24643         (syms_of_buffer): Init and staticpro it.
24645 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
24647         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24649 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
24651         * fns.c (Fclrhash): Return TABLE.
24653 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24655         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24656         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24657         is set even without positional changes.
24658         (x_scroll_bar_clear): Set bar->redraw_needed_p.
24660         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24662 2008-01-23  Jason Rumney  <jasonr@gnu.org>
24664         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24666         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24667         the unicode range available in MULE by locale-coding-system.
24668         Improve dbcs lead byte detection.  Set event timestamp and modifiers
24669         earlier.
24671 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24673         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24674         [MAC_OSX] (init_mac_osx_environment): Initialize it.
24675         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24676         when used on child processes.
24678 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
24680         * dbusbind.c (Fdbus_method_return_internal): Rename from
24681         Fdbus_method_return.
24682         (Fdbus_unregister_object): Move to dbus.el.
24683         (Fdbus_call_method, Fdbus_method_return_internal)
24684         (Fdbus_send_signal): Improve debug messages.
24686 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
24688         * undo.c (undo_inhibit_record_point): New variable.
24689         (syms_of_undo): Initialize it.
24690         (record_point): Don't record point when undo_inhibit_record_point
24691         is set.
24693 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
24695         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24697         * xdisp.c (Qauto_hscroll_mode): New var.
24698         (syms_of_xdisp): Initialize it.
24699         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24700         window's buffer.
24701         (hscroll_windows): Don't check automatic_hscrolling_p here.
24703         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24704         vscroll if we're setting window-buffer to the value it already has.
24706 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
24708         * m/intel386.h: Remove references to XENIX.
24710 2008-01-17  Andreas Schwab  <schwab@suse.de>
24712         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24713         instead of HAVE_X86_64_LIB64_DIR.
24714         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24716 2008-01-17  Glenn Morris  <rgm@gnu.org>
24718         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24719         to HAVE_X86_64_LIB64_DIR.
24721 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
24723         * s/irix3-3.h:
24724         * s/irix4-0.h:
24725         * s/386-ix.h:
24726         * s/domain.h:
24727         * s/hpux9-x11r4.h:
24728         * s/hpux9shxr4.h: Remove files for systems no longer supported.
24730         * sysdep.c: Remove code containing references to symbols defined
24731         by unsupported systems.
24733 2008-01-16  Glenn Morris  <rgm@gnu.org>
24735         * coding.c (select-safe-coding-system-function): Doc fix.
24737 2008-01-15  Glenn Morris  <rgm@gnu.org>
24739         * config.in: Revert 2008-01-13 change: this is a generated file.
24741 2008-01-13  Tom Tromey  <tromey@redhat.com>
24743         * lisp.h: Fix typo.
24745 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
24747         * m/sequent-ptx.h:
24748         * m/sequent.h:
24749         * s/ptx.h:
24750         * s/ptx4-2.h:
24751         * s/ptx4.h: Remove files for systems no longer supported.
24753         * callproc.c (Fcall_process): Fix previous change.
24755 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
24757         * unexsunos4.c: Remove file, system not supported anymore.
24759         * m/mips.h:
24760         * m/intel386.h:
24761         * callproc.c:
24762         * config.in:
24763         * ecrt0.c:
24764         * emacs.c:
24765         * fileio.c:
24766         * frame.c:
24767         * getpagesize.h:
24768         * keyboard.c:
24769         * lread.c:
24770         * process.c:
24771         * puresize.h:
24772         * sysdep.c:
24773         * systty.h:
24774         * syswait.h:
24775         * unexec.c:
24776         * xdisp.c:
24777         * alloc.c: Remove code containing references to symbols defined by
24778         unsupported systems.
24780 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
24782         * coding.c (detect_coding_mask): Fix previous change.
24784 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
24786         * coding.c (detect_coding_iso2022): New arg
24787         latin_extra_code_state.  Allow Latin extra codes only
24788         when *latin_extra_code_state is nonzero.
24789         (detect_coding_mask): If there is a NULL byte, detect the encoding
24790         as UTF-16 or binary.  If Latin extra codes exist, detect the
24791         encoding as ISO-2022 only when there's no other proper encoding is
24792         found.
24794 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24796         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24797         #ifdef MAC_OS.
24799 2008-01-08  Richard Stallman  <rms@gnu.org>
24801         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24803 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
24805         * keyboard.c (parse_menu_item): Don't enclose key bindings on
24806         menu bar in parentheses.
24808 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
24810         * m/7300.h:
24811         * m/acorn.h:
24812         * m/alliant-2800.h:
24813         * m/alliant.h:
24814         * m/alliant1.h:
24815         * m/alliant4.h:
24816         * m/altos.h:
24817         * m/amdahl.h:
24818         * m/apollo.h:
24819         * m/att3b.h:
24820         * m/aviion-intel.h:
24821         * m/aviion.h:
24822         * m/celerity.h:
24823         * m/clipper.h:
24824         * m/cnvrgnt.h:
24825         * m/convex.h:
24826         * m/cydra5.h:
24827         * m/delta88k.h:
24828         * m/dpx2.h:
24829         * m/dual.h:
24830         * m/elxsi.h:
24831         * m/f301.h:
24832         * m/gould-np1.h:
24833         * m/gould.h:
24834         * m/i860.h:
24835         * m/ibmps2-aix.h:
24836         * m/ibmrt-aix.h:
24837         * m/ibmrt.h:
24838         * m/irist.h:
24839         * m/is386.h:
24840         * m/isi-ov.h:
24841         * m/mega68.h:
24842         * m/mg1.h:
24843         * m/news-r6.h:
24844         * m/news-risc.h:
24845         * m/news.h:
24846         * m/nh3000.h:
24847         * m/nh4000.h:
24848         * m/ns16000.h:
24849         * m/ns32000.h:
24850         * m/nu.h:
24851         * m/orion.h:
24852         * m/orion105.h:
24853         * m/paragon.h:
24854         * m/pfa50.h:
24855         * m/plexus.h:
24856         * m/pyramid.h:
24857         * m/pyrmips.h:
24858         * m/sh3el.h:
24859         * m/sps7.h:
24860         * m/sr2k.h:
24861         * m/stride.h:
24862         * m/sun1.h:
24863         * m/sun2.h:
24864         * m/sun3-68881.h:
24865         * m/sun3-fpa.h:
24866         * m/sun3-soft.h:
24867         * m/sun3.h:
24868         * m/sun386.h:
24869         * m/symmetry.h:
24870         * m/tad68k.h:
24871         * m/tahoe.h:
24872         * m/targon31.h:
24873         * m/tek4300.h:
24874         * m/tekxd88.h:
24875         * m/tower32.h:
24876         * m/tower32v3.h:
24877         * m/ustation.h:
24878         * m/wicat.h:
24879         * m/xps100.h:
24880         * s/cxux.h:
24881         * s/cxux7.h:
24882         * s/dgux.h:
24883         * s/dgux4.h:
24884         * s/dgux5-4-3.h:
24885         * s/dgux5-4r2.h:
24886         * s/esix.h:
24887         * s/esix5r4.h:
24888         * s/hiuxmpp.h:
24889         * s/hiuxwe2.h:
24890         * s/iris3-5.h:
24891         * s/iris3-6.h:
24892         * s/isc2-2.h:
24893         * s/isc3-0.h:
24894         * s/isc4-0.h:
24895         * s/isc4-1.h:
24896         * s/newsos5.h:
24897         * s/newsos6.h:
24898         * s/osf1.h:
24899         * s/osf5-0.h:
24900         * s/riscix1-1.h:
24901         * s/riscix12.h:
24902         * s/sco4.h:
24903         * s/sco5.h:
24904         * s/sunos4-0.h:
24905         * s/sunos4-1.h:
24906         * s/sunos413.h:
24907         * s/sunos4shr.h:
24908         * s/umax.h:
24909         * s/unipl5-2.h:
24910         * s/xenix.h:
24911         * cxux-crt0.s:
24912         * unexapollo.c:
24913         * unexconvex.c:
24914         * unexenix.c:
24915         * unexsni.c: Remove files for systems no longer supported.
24917         * m/intel386.h: Remove references to unsupported systems.
24919         * w32.c (get_emacs_configuration): Remove reference to i860.
24921         * sysdep.c: Remove dead code.
24923 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
24925         * s/rtu.h:
24926         * m/masscomp.h: Remove files.  Platform is obsolete.
24928 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
24930         * dbusbind.c (Fdbus_method_return): New function.
24931         (xd_read_message): Add the serial number to the event.
24932         (Fdbus_register_method): Activate the function.
24934 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
24936         * keyboard.c (read_key_sequence): Fix typo.
24938 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
24940         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24941         (xd_signature, xd_append_arg): Handle element type detection for
24942         empty arrays.
24943         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24944         SDATA () calls; this must be solved more general.
24945         (Fdbus_register_signal): Use SBYTES instead of strlen.
24947 2008-01-03  Magnus Henoch  <magnus@zemdatav>
24949         * dbusbind.c (xd_append_arg): Use unsigned char instead of
24950         unsigned int for byte values (necessary for big-endian platform).
24951         (Fdbus_call_method): Handle the case of no returned arguments.
24953 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
24955         * dbusbind.c (xd_read_message): Use non-static input_event struct.
24957 2007-12-31  Magnus Henoch  <mange@freemail.hu>
24959         * dbusbind.c (xd_signature): Signature of variant is just "v".
24961 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
24963         * dbusbind.c: Fix several errors and compiler warnings.
24964         Reported by Tom Tromey <tromey@redhat.com>.
24965         (XD_ERROR, XD_DEBUG_MESSAGE)
24966         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24967         (xd_append_arg): Part for basic D-Bus types rewritten.
24968         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24969         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
24970         appropriate.
24971         (xd_read_message): Return Qnil.  Don't signal an error; it is not
24972         useful during event reading.
24973         (Fdbus_register_signal): Signal an error if the check for
24974         FUNCTIONP fails.
24975         (Fdbus_register_method): New function.  The implementation is not
24976         complete, the call of the function signals an error therefore.
24977         (Fdbus_unregister_object): New function, renamed from
24978         Fdbus_unregister_signal.  The initial check signals an error, if
24979         the object is not well formed.
24981 2007-12-30  Richard Stallman  <rms@gnu.org>
24983         * textprop.c (get_char_property_and_overlay):
24984         Signal error if POSITION is out of range in a buffer.
24986 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
24988         * w32fns.c (Fx_create_frame): Make copy of frame parameters
24989         because the original parameters are in pure storage now.
24991 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
24993         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24995 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
24997         * callint.c (syms_of_callint) <command-history>: Add reference to
24998         history-length in the doc string.
25000 2007-12-17  Jason Rumney  <jasonr@gnu.org>
25002         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25003         before passing as wParam.
25005 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
25007         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25008         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25009         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25010         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25011         as number.
25012         (Fdbus_call_method): Fix docstring.
25014 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
25016         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25017         New macros.
25018         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25019         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25020         Simplify.
25021         (xd_signature): New function.
25022         (xd_append_arg): Compute also signatures.  Major rewrite.
25023         (xd_retrieve_arg): Make debug messages friendly.
25024         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25025         Check for signatures of arguments.
25027 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
25029         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25030         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25031         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25032         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25033         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25034         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25035         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25036         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25037         (xd_retrieve_value): Remove.  Functionality included in ...
25038         (xd_append_arg): New function.
25039         (Fdbus_call_method, Fdbus_send_signal): Apply it.
25041 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
25043         * dbusbind.c (top): Include <stdio.h>.
25044         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25045         dbus_message_new_method_call and dbus_message_new_signal.
25046         (Fdbus_register_signal): Rename unique_name to uname.
25047         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
25048         non-existing unique name.  Fix typos in matching rule.  Return an
25049         object which is useful in Fdbus_unregister_signal.
25050         (Fdbus_unregister_signal): Reimplementation, in order to remove
25051         only the corresponding entry.
25052         (Vdbus_registered_functions_table): Change the order of entries.
25053         Apply these changes in xd_read_message and Fdbus_register_signal.
25055 2007-12-16  Andreas Schwab  <schwab@suse.de>
25057         * fileio.c (Finsert_file_contents): Fix overflow check to not
25058         depend on undefined integer overflow.
25060 2007-12-14  Jason Rumney  <jasonr@gnu.org>
25062         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25063         for characters above 127.
25065 2007-12-13  Jason Rumney  <jasonr@gnu.org>
25067         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25068         before dereferencing array.
25069         (lookup_vk_code): Remove zero comparison.
25071 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
25073         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25074         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25075         Use `unsigned int' instead of `uint'.
25076         (xd_read_message, Fdbus_register_signal): Split expressions into
25077         multiple lines before operators "&&" and "||", according to the
25078         GNU Coding Standards.
25080 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
25082         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25084 2007-12-12  Juri Linkov  <juri@jurta.org>
25086         * buffer.c (Frename_buffer): In interactive spec replace
25087         `read-buffer' with `read-string' that uses `buffer-name-history'
25088         as history, and the current buffer's name as default.
25090 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
25092         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25093         manipulating the backtrace manually.
25094         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25095         (struct backtrace, backtrace_list): Remove.
25096         (command_loop_1): Remove dead var `no_direct'.
25098         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25099         preserve non-built-in buffer-local variables.
25100         (Fkill_all_local_variables): Don't re-create&re-set permanent
25101         buffer-local variables.
25103 2007-12-09  Juri Linkov  <juri@jurta.org>
25105         * buffer.c (Frename_buffer): Change interactive spec from "s" to
25106         Lisp code that uses `read-buffer' with current buffer as default.
25108 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
25110         * dbusbind.c (xd_read_message): Generate an event for every
25111         registered handler.  There might be several handlers registered
25112         for the same signal.
25113         (Fdbus_register_signal): Don't overwrite a registration for the
25114         same signal.  Add a new registration if handlers are different.
25115         (Vdbus_registered_functions_table): Rework doc string.
25117 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
25119         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25120         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25121         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25122         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25123         Unify argument lists.
25124         (xd_read_message, Fdbus_register_signal): Reorder and extend event
25125         arguments and hash table keys.  Use unique name for service.
25126         (Fdbus_unregister_signal): Remove checks.
25127         (Vdbus_registered_functions_table): Fix doc string.
25129 2007-12-05  Magnus Henoch  <mange@freemail.hu>
25131         * process.c (make_process): Initialize pty_flag to 0.
25133 2007-12-05  Jason Rumney  <jasonr@gnu.org>
25135         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25136         specified XBMs.
25138 2007-12-05  Richard Stallman  <rms@gnu.org>
25140         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25142 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25144         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25145         New variable.
25146         (mac_try_close_socket) [MAC_OSX]: New function.
25147         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25148         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
25150         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25151         Use mac_try_close_socket.
25153 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25155         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
25156         reloc_base.
25157         (copy_dysymtab): Compute relocation base here.
25158         (rebase_reloc_address) [__ppc64__]: New function.
25159         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25160         changed.
25162 2007-12-05  Jason Rumney  <jasonr@gnu.org>
25164         * w32proc.c (sys_spawnve): Quote args with wildcards.
25166 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25168         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25169         __objc_* sections.
25170         (unrelocate) [_LP64]: Set relocation base to address of data segment.
25172 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
25174         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25175         Move check for Vdbus_registered_functions_table to
25176         xd_read_queued_messages.
25177         (xd_read_queued_messages): Protect xd_read_message calls by
25178         internal_condition_case_1.
25180 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
25182         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25183         Qdbus_system_bus and Qdbus_session_bus, respectively.
25184         (Vdbus_intern_symbols): Remove.
25185         (Vdbus_registered_functions_table): New hash table.
25186         (XD_SYMBOL_INTERN_SYMBOL): Remove.
25187         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25188         Rewrite in order to manage registered functions by hash table
25189         Vdbus_registered_functions_table.
25191 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
25193         * xterm.c: Update URL to Window Manager Specification in comment.
25195 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
25197         * config.in (HAVE_DBUS): Add.
25199         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25200         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25201         (obj): Add $(DBUS_OBJ).
25202         (LIBES): Add $(DBUS_LIBS).
25203         (dbusbind.o): New target.
25205         * dbusbind.c: New file.
25207         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25209         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25210         (Qdbus_event): New Lisp symbol.
25211         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25212         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
25213         (keys_of_keyboard): Define dbus-event.
25215         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25217 2007-12-01  Richard Stallman  <rms@gnu.org>
25219         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25221 2007-11-30  Jason Rumney  <jasonr@gnu.org>
25223         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25224         (w32con_reset_terminal_modes): Clear screen buffer.
25225         (w32_face_attributes): Don't use color indexes that are out of range.
25226         Only reverse the default colors.
25228         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25229         WINDOWSNT.
25231         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25233 2007-11-29  Jason Rumney  <jasonr@gnu.org>
25235         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25236         (w32_face_attributes): Use Vtty_defined_color_alist to determine
25237         if the terminal colors are initialized.
25238         (unspecified_fg, unspecified_bg): Remove unused declarations.
25240 2007-11-29  Andreas Schwab  <schwab@suse.de>
25242         * keyboard.c (apply_modifiers): Fix typo.
25244 2007-11-29  Richard Stallman  <rms@gnu.org>
25246         * keymap.c (Fcurrent_local_map): Doc fix.
25248 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25250         * s/gnu-kfreebsd.h: New file.
25252 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
25254         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25255         Don't cast redundantly.
25257         * keyboard.c (KEY_TO_CHAR): New macro.
25258         (parse_modifiers, apply_modifiers): Accept integer arguments.
25259         (read_key_sequence): Use them to unify the "shift->unshift" mapping
25260         for chars and symbol keys.
25261         After doing such remapping, apply function-key-map again.
25263 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
25265         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25266         compiled anymore.
25268 2007-11-26  Andreas Schwab  <schwab@suse.de>
25270         * process.c (list_processes_1): Fix indentation level of the
25271         command column.
25273 2007-11-23  Andreas Schwab  <schwab@suse.de>
25275         * editfns.c (Fformat): Handle %c specially since it requires the
25276         argument to be of type int.
25278 2007-11-23  Markus Triska  <markus.triska@gmx.at>
25280         * emacs.c (main): Call init_editfns before init_process, since
25281         init_process sets Vprocess_connection_type depending on OS release.
25283 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
25285         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25286         (find_symbol_value): Use do_symval_forwarding.
25288         * data.c (set_internal): Set the value in the `cons-cell' (for
25289         Buffer_Local_values) not only for frame-local variables.
25291 2007-11-22  Andreas Schwab  <schwab@suse.de>
25293         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25294         values to sprintf.
25295         * keymap.c (Fsingle_key_description): Likewise.
25296         * print.c (print_object): Likewise.
25298 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
25300         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25301         file for image is nil.
25303 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
25305         * term.c: Include stdarg.h.
25306         (fatal): Implement using varargs.
25307         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
25309 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
25311         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25312         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25313         Update call to buffer_slot_type_mismatch.
25314         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25315         (buffer_slot_type_mismatch): Update.
25316         * buffer.c (buffer_local_types): Remove.
25317         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25318         (defvar_per_buffer): Set the type in the buffer_objfwd.
25320 2007-11-21  Jason Rumney  <jasonr@gnu.org>
25322         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25323         CreateFileMapping returns NULL on failure.
25325 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
25327         * search.c (Fset_match_data): Remove the `evaporate' feature.
25328         (unwind_set_match_data): Don't use the `evaporate' feature.
25330 2007-11-21  Jason Rumney  <jasonr@gnu.org>
25332         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25334         * w32console.c (w32con_write_glyphs): Remove unused variables.
25336 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
25338         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25340         * s/darwin.h (MULTI_KBOARD): Remove.
25342         * macfns.c (x_create_tip_frame, Fx_create_frame)
25343         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25345 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
25347         * buffer.c (Fbuffer_local_value): Remove redundant test.
25348         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25349         than in `current-buffer' to match the comment.
25350         Do the swap using swap_in_global_binding.
25352         * data.c (store_symval_forwarding, set_internal):
25353         * eval.c (specbind): Remove dead code.
25355         * coding.c (detect_coding, Fupdate_coding_systems_internal):
25356         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25357         Since we do not want to see internal Lisp_*fwd objects here.
25359 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
25361         * sysdep.c (init_system_name): Use getaddrinfo if available.
25363         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25364         (x_scroll_bar_note_movement): start, end, with, height in struct
25365         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25367 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
25369         * puresize.h (BASE_PURESIZE): Increase to 1190000.
25371 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
25373         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25374         This undoes Richard's change of 14-Oct-2002.
25376         * alloc.c (allocate_other_vector):
25377         * lisp.h (allocate_other_vector): Remove.
25379         * window.c (struct save_window_data): Move non-lisp data to the end
25380         and make it `int' rather than Lisp_Object.
25381         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25382         Done wrap/unwrap integer values.
25383         (Fset_window_configuration, compare_window_configurations):
25384         Update use of fields to their new types.
25386         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25387         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
25388         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25389         (SET_SCROLL_BAR_X_WINDOW): Remove.
25390         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25391         Access the new x_window field directly.
25392         * xterm.c (x_scroll_bar_create): Use a pseudovector.
25393         Don't wrap/unwrap integers into Lisp_Objects.
25394         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25395         (x_scroll_bar_report_motion):
25396         Don't wrap/unwrap integers into Lisp_Objects.
25397         (x_term_init): Use SDATA.
25398         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25399         (x_scroll_bar_set_handle, x_scroll_bar_remove)
25400         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25401         (x_scroll_bar_report_motion, x_scroll_bar_clear):
25402         * xfns.c (x_set_background_color):
25403         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25404         Access the new x_window field directly.
25406         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25407         (allocate_pseudovector): Make non-static.
25409         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25410         (allocate_pseudovector): Declare.
25411         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25413 2007-11-15  Andreas Schwab  <schwab@suse.de>
25415         * editfns.c (Fformat): Correctly format EMACS_INT values.
25416         Also take precision into account when formatting an integer.
25418         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25420 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
25422         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25423         (syms_of_keyboard): Defsubr it.
25425         * data.c (swap_in_global_binding): Fix longstanding bug where
25426         store_symval_forwarding was not called with the right second argument,
25427         thus causing objfwd-ing from being dropped.
25429 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
25431         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25432         (Fx_display_pixel_height, Fx_display_planes)
25433         (Fx_display_color_cells, Fx_server_max_request_size)
25434         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25435         (Fx_display_visual_class, Fx_display_save_under):
25436         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25437         (Fx_display_pixel_height, Fx_display_planes)
25438         (Fx_display_color_cells, Fx_server_max_request_size)
25439         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25440         (Fx_display_mm_height, Fx_display_mm_width)
25441         (Fx_display_backing_store, Fx_display_visual_class)
25442         (Fw32_select_font, Fx_display_save_under):
25443         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25444         (Fx_display_pixel_height, Fx_display_planes)
25445         (Fx_display_color_cells, Fx_server_max_request_size)
25446         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25447         (Fx_display_save_under): Fix typos in docstrings.
25449 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
25451         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25452         corresponding to deleted entries; they are an implementation detail.
25453         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25454         Remove variables.
25455         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25456         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25457         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25458         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25459         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25460         (Fw32_define_rgb_color, Fw32_load_color_file)
25461         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25462         Fix typos in docstrings.
25463         (Fx_server_version): Reflow docstring.
25464         (Fw32_shell_execute): Doc fixes.
25466 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
25468         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25469         if w32_parse_hot_key returned nil.
25471 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
25473         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25475 2007-11-09  Jason Rumney  <jasonr@gnu.org>
25477         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25479         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25481         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25482         Remove W32_SCROLL_BAR_CLICK_EVENT.
25484         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25485         Add MULTIMEDIA_KEY_EVENT.
25487         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25488         (lispy_multimedia_keys) [WINDOWSNT]: New array.
25489         (make_lispy_event) [WINDOWSNT]: Use it to translate
25490         MULTIMEDIA_KEY_EVENT.
25492         * w32term.h (WM_APPCOMMAND): Define if not already.
25493         (GET_APPCOMMAND_LPARAM): Likewise.
25495         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25496         WM_APPCOMMAND.
25498         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25499         (syms_of_w32fns): Export and initialize it.
25500         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25502 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
25504         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25505         twice.
25507         * xdisp.c (handle_face_prop): Fix last change.
25509 2007-11-09  Richard Stallman  <rms@gnu.org>
25511         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25512         not just for after-strings and before-strings.
25513         Call face_for_overlay_string and pass the overlay to it.
25514         (handle_display_prop): Determine whether property came from an overlay.
25515         Pass OVERLAY arg to handle_single_display_spec.
25516         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25517         (load_overlay_strings): Fill in it->string_overlays.
25518         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25520         * xfaces.c (face_for_overlay_string): Function renamed from
25521         face_at_buffer_position_no_overlays, and add arg OVERLAY.
25523         * dispextern.h (struct it): New elt string_overlays.
25524         New elt from_overlay, also in stack.
25525         Rearrange a few elements.
25526         (face_for_overlay_string): Decl renamed from
25527         face_at_buffer_position_no_overlays, and add argument.
25529 2007-11-09  Richard Stallman  <rms@gnu.org>
25531         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25532         to get the base face for an overlay string.
25534         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25536         * xfaces.c (face_at_buffer_position_no_overlays): New function.
25538         * xdisp.c (handle_stop): Move some code out of loop.
25540 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25542         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25543         Fix conversion from Lisp object to ATSUFontID.
25545 2007-11-09  Jason Rumney  <jasonr@gnu.org>
25547         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25549 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25551         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25552         Don't assume regions are aligned to page boundary.
25553         (print_load_command_name): Add LC_UUID if defined.
25555 2007-11-09  Richard Stallman  <rms@gnu.org>
25557         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25559 2007-11-07  Jason Rumney  <jasonr@gnu.org>
25561         * s/windows95.h: Remove.
25563 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
25565         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25566         abort with a message on unhandled store_type values.
25568 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
25570         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25571         Remove HAVE_X11R5 and HAVE_X11R4.
25573 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
25575         * Makefile.in: Remove references to sunfns.c and sunfns.o.
25577 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
25579         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25580         Don't set s->stippled_p here, since it has already been set by
25581         x_set_glyph_string_gc from x_draw_glyph_string.
25583 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
25585         * sunfns.c: Remove file.
25587         * m/sun386.h:
25588         * m/sun2.h:
25589         * m/sparc.h: Remove Sun windows code.
25591 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
25593         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25594         (init_keyboard): Set current_kboard's window-system to nil.
25595         (tty_read_avail_input): Typo.
25596         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25598 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
25600         * s/usg5-4.h:
25601         * s/usg5-3.h:
25602         * s/ptx.h:
25603         * m/is386.h:
25604         * m/ibmps2-aix.h:
25605         * Makefile.in: Remove all mentions of X10.
25607         * dispnew.c (syms_of_display): Don't mention version 10.
25609 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
25611         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25612         ($(BLD)/abbrev.$(O)): Remove.
25614 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
25616         Rewrite abbrev.c in Elisp.
25617         * image.c (Qcount): Don't declare as extern.
25618         (syms_of_image): Initialize and staticpro `Qcount'.
25619         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25620         * emacs.c (main): Don't call syms_of_abbrev.
25621         * Makefile.in (obj): Remove abbrev.o.
25622         (abbrev.o): Remove.
25623         * abbrev.c: Remove.
25625 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
25627         * window.c (window_min_size_2): Don't count header-line.
25629 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
25631         * frame.h (struct frame): Move all bit fields after the first bit
25632         field to take advantage of the available space.  Group all the
25633         chars together to reduce wasted space due to padding.
25635 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
25637         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25639         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25640         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25641         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25642         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25643         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25644         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25645         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25646         (last_marked, mark_object_loop_halt): Make static.
25648         * frame.c (syms_of_frame) <delete-frame-functions>:
25649         Fix typo in docstring.
25651 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
25653         * w32.c (init_environment): Fix tiny memory leak.
25654         (w32_get_resource): Remove unused variable `ok'.
25656 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
25658         Make `window-system' into a keyboard-local variable (rather than
25659         frame-local as done originally by multi-tty).
25661         * keyboard.h (struct kboard): Add Vwindow_system.
25662         * keyboard.c (init_kboard): Set a default for Vwindow_system.
25663         (mark_kboards): Mark Vwindow_system.
25665         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25666         (init_display): Don't set the obsolete `window-system' frame-param.
25668         * xterm.c (x_term_init):
25669         * w32term.c (w32_create_terminal):
25670         * term.c (init_tty): Set Vwindow_system.
25671         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25672         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
25674         * xfns.c (Fx_create_frame, x_create_tip_frame):
25675         * w32fns.c (Fx_create_frame, x_create_tip_frame):
25676         * macfns.c (Fx_create_frame):
25677         Don't set the obsolete `window-system' frame-param.
25679         * frame.h (Qwindow_system): Remove.
25680         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
25681         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25683 2007-10-24  Richard Stallman  <rms@gnu.org>
25685         * frame.c (x_figure_window_size): For fullscreen case,
25686         set USPosition | PPosition without clobbering rest of window_prompting.
25688         * keyboard.c (Fcurrent_idle_time): Doc fix.
25690         * print.c (Fwith_output_to_temp_buffer): Doc fix.
25692 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
25694         * process.c (unwind_request_sigio): Only define if __ultrix__.
25696         * callproc.c (child_setup): Remove spurious *.
25698         * lisp.h (Fget_text_property): Declare.
25699         (have_menus_p): Declare it here rather than in sys-dep header files.
25700         * macterm.h (have_menus_p):
25701         * msdos.h (have_menus_p):
25702         * xterm.h (have_menus_p): Remove.
25704         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25705         (Fmake_variable_frame_local): Just check the variable's const-ness
25706         rather than checking nil or t.
25708 2007-10-22  Jason Rumney  <jasonr@gnu.org>
25710         * w32fns.c: Include math.h.
25711         (w32_abort): Declaration moved to nt/config.nt.
25713         * s/ms-w32.h (HAVE_STDLIB_H): Define.
25714         (abort): Redefinition moved to nt/config.nt.
25716         * m/windowsnt.h: Remove.
25718 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
25720         * emacs.c (Fdump_emacs): Fix typo in message.
25721         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25722         <installation-directory>: Reflow docstring.
25724 2007-10-22  Juri Linkov  <juri@jurta.org>
25726         * minibuf.c: Allow minibuffer default to be a list of default values.
25727         With empty input use the first element of this list as returned default.
25728         (string_to_object)
25729         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25730         (read_minibuf): If defalt is cons, set histstring to its car.
25731         (Fread_string): If default_value is cons, set val to its car.
25732         (Fread_buffer): If def is cons, use its car.
25733         (Fcompleting_read): If defalt is cons, set val to its car.
25735 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
25737         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25739 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
25741         * doc.c (Fdocumentation): Check for advice in all cases.
25743 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
25745         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25747 2007-10-19  Richard Stallman  <rms@gnu.org>
25749         * doc.c (Fdocumentation): Check for and handle an advised function.
25751 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
25753         * process.c (Fset_process_filter): Doc fix.
25755 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
25757         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25758         which caused key-translation-map to applied repeatedly (thus breaking
25759         double-mode).
25761 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
25763         * xselect.c (x_own_selection, x_handle_selection_clear)
25764         (x_clear_frame_selections):
25765         * w32menu.c (list_of_panes, list_of_items):
25766         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25767         * textprop.c (validate_plist, interval_has_all_properties)
25768         (interval_has_some_properties, interval_has_some_properties_list)
25769         (add_properties, text_property_list):
25770         * process.c (Fget_buffer_process, list_processes_1, status_notify):
25771         * minibuf.c (Fassoc_string):
25772         * macselect.c (x_own_selection, x_clear_frame_selections)
25773         (Fx_disown_selection_internal):
25774         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25775         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25777 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
25779         * process.c: Link to libs for calling res_init() if available.
25780         (Fmake_network_process): Call res_init() before getaddrinfo or
25781         gethostbyname, if possible.
25783 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
25785         * lread.c (read1): Set pvectype for char_tables.
25787         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25788         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25789         Add type checks.
25790         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25792         * alloc.c (free_misc): Use XMISCTYPE.
25793         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25795 2007-10-17  Glenn Morris  <rgm@gnu.org>
25797         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25798         (syms_of_minibuf): Add Qcompletion_ignore_case.
25799         * dired.c (Qcompletion_ignore_case): Change to external.
25800         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25801         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25802         (Fread_file_name): Use it rather than intern'ing.
25804         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25805         (Fread_coding_system): Ignore case of user input.
25807 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25809         * xdisp.c (handle_display_prop): Ignore display specs after
25810         replacing one when string text is being replaced.
25811         (handle_single_display_spec): Pretend as if characters with display
25812         property haven't been consumed only when buffer text is being replaced.
25814 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
25816         * xfns.c (Fx_create_frame, Fx_display_list):
25817         * window.c (window_fixed_size_p, enlarge_window)
25818         (shrink_window_lowest_first):
25819         * macterm.c (init_font_name_table):
25820         * macfns.c (Fx_create_frame, Fx_display_list):
25821         * lread.c (close_load_descs):
25822         * keyboard.c (read_char_x_menu_prompt):
25823         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25824         * coding.c (code_convert_region_unwind): Test the type of an object
25825         rather than just !NILP before extracting data from it.
25827         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25829         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25830         (XMISCANY): New macro.
25831         (XMISCTYPE): Use it.
25832         (struct Lisp_Misc_Any): New type.
25833         (union Lisp_Misc): Use it.
25834         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25835         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25836         (find_symbol_value, set_internal, default_value, Fset_default)
25837         (Fmake_variable_buffer_local, Fmake_local_variable)
25838         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25839         (Flocal_variable_if_set_p, Fvariable_binding_locus):
25840         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25841         * alloc.c (allocate_buffer): Set the size and tag.
25842         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25843         Use XMISCANY.
25844         (die): Follow the GNU convention for error messages.
25845         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25846         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25847         tag any more.
25848         (set_buffer_internal_1):
25849         * frame.c (store_frame_param):
25850         * eval.c (specbind):
25851         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25853         * doc.c (Fsnarf_documentation): Simplify.
25855 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
25857         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25858         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25860 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
25862         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25864 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
25866         * eval.c (do_autoload): Don't save autoloads.
25868         * data.c (Ffset): Save autoload of the function being set.
25870 2007-10-07  John Paul Wallington  <jpw@pobox.com>
25872         * xfns.c (x_create_tip_frame): Set the `display-type' frame
25873         parameter before setting up faces.
25875 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
25877         * ccl.c (Fregister_code_conversion_map):
25878         * keyboard.c (append_tool_bar_item): Reformat last change.
25880         * lisp.h (eabs): Rename from `abs'.  All callers changed.
25882 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
25884         * buffer.c (add_overlay_mod_hooklist):
25885         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25886         * fontset.c (make_fontset):
25887         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25888         (append_tool_bar_item):
25889         * macmenu.c (grow_menu_items):
25890         * w32menu.c (grow_menu_items):
25891         * xmenu.c (grow_menu_items): Use larger_vector.
25893 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
25895         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25896         selected frame'' on MSDOS).
25898 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
25900         * frame.c (Qexplicit_name): New variable.
25901         (x_report_frame_params): Report it in parameter alist.
25902         (syms_of_frame): Intern and staticpro it.
25904 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
25906         * macfns.c (x_create_tip_frame): Set terminal for frame.
25908 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
25910         * frame.c (Qenvironment): Remove.
25911         (syms_of_frame) <Qenvironment>: Don't initialize.
25912         (Fdelete_frame): Don't treat the `environment' param specially.
25913         * frame.h (Qenvironment): Don't declare.
25914         * callproc.c (set_initial_environment): Don't set unused frame param.
25916         * frame.c (Fframe_with_environment): Remove.
25917         (syms_of_frame) <Sframe_with_environment>: Don't declare.
25919         * lisp.h (Fframe_with_environment): Don't declare.
25921 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
25923         * indent.c (indent_tabs_mode, last_known_column)
25924         (last_known_column_modified): Make static.
25925         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25927 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
25929         * puresize.h (BASE_PURESIZE): Increase to 1170000.
25931 2007-10-09  Jason Rumney  <jasonr@gnu.org>
25933         * w32term.c (x_set_window_size): Disable code that attempts to tell
25934         Lisp code about a size change before it actually happens.
25936 2007-10-09  Richard Stallman  <rms@gnu.org>
25938         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25939         return HANDLED_RETURN.
25941 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
25943         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25944         when there's an unread command event.
25946         * frame.c (focus_follows_mouse): Move here from frame.el to allow
25947         window autoselection act appropriately when leaving selected frame.
25948         (syms_of_frame): Initialize focus_follows_mouse.
25949         * frame.h (focus_follows_mouse): Extern it.
25950         * macterm.c (XTread_socket): When focus_follows_mouse is nil
25951         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25952         * msdos.c (dos_rawgetc): Likewise.
25953         * w32term.c (w32_read_socket): Likewise.
25954         * xterm.c (handle_one_xevent): Likewise.
25955         * xdisp.c (syms_of_xdisp): In doc-string of
25956         mouse-autoselect-window mention focus-follows-mouse.
25958 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25960         * macterm.c (mac_load_query_font): Fix missing return value.
25961         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25962         Add BLOCK_INPUT.
25964 2007-10-08  Richard Stallman  <rms@gnu.org>
25966         * xdisp.c (get_window_cursor_type): Implement documented behavior
25967         for cursor-in-non-selected-windows = t.
25969 2007-10-08  Jason Rumney  <jasonr@gnu.org>
25971         * w32.c (w32_get_resource): Always close registry keys.
25973 2007-10-08  Jason Rumney  <jasonr@gnu.org>
25975         * makefile.w32-in (LIBS): Add COMCTL32.
25977         * w32fns.c (globals_of_w32fns): Init common controls.
25979 2007-10-08  Richard Stallman  <rms@gnu.org>
25981         * image.c (our_memory_buffer): Rename from omfib_buffer.
25983 2007-10-08  Richard Stallman  <rms@gnu.org>
25985         * buffer.c (Foverlays_at): Doc fix.
25987 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
25989         * fns.c (Fplist_put): Preserve uneven tail data.
25991 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
25993         * termhooks.h (enum event_kind): Remove trailing comma.
25995         * frame.h (enum): Remove trailing comma.
25997 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
25999         * w32proc.c (delete_child): Don't terminate threads of zombies.
26001 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
26003         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26005         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26006         last-repeatable-command.
26007         (init_kboard): Initialize Vlast_repeatable_command.
26008         (command_loop_1): Set it to real_this_command unless that was
26009         bound to an input event.
26010         (mark_kboards): Mark it.
26012 2007-10-08  Richard Stallman  <rms@gnu.org>
26014         * eval.c (condition-case): Doc fix.
26016 2007-10-08  Masatake YAMATO  <jet@gyve.org>
26018         * xfaces.c (tty_supports_face_attributes_p): Fix code
26019         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26020         was copied and not edited.
26022 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
26024         Add new `input-decode-map' keymap and use it for terminal
26025         escape sequences.
26026         * keyboard.h (struct kboard): Add Vinput_decode_map.
26027         Remove Vlocal_key_translation_map.
26028         * keyboard.c (read_key_sequence): Add support for input-decode-map.
26029         (init_kboard): Init input-decode-map.
26030         Replace local-key-translation-map back with key-translation-map.
26031         (syms_of_keyboard): Declare input-decode-map.
26032         Remove local-key-translation-map.  Update docstrings.
26033         (mark_kboards): Mark Vinput_decode_map.
26034         Don't mark Vlocal_key_translation_map.
26035         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26036         Replace local-key-translation-map back with key-translation-map.
26037         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26038         Bind in input-decode-map rather than function-key-map.
26040         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26041         This was made redundant by the previous introduction of XSETPVECTYPE.
26043 2007-10-09  Richard Stallman  <rms@gnu.org>
26045         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26047 2007-09-29  Richard Stallman  <rms@gnu.org>
26049         * eval.c (internal_condition_case_2, internal_condition_case_1)
26050         (internal_condition_case): Reenable abort if x_catching_errors ()
26051         to see if that really happens and why.
26053 2007-10-06  Andreas Schwab  <schwab@suse.de>
26055         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26057 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
26059         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26061 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
26063         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26065 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
26067         * window.h (struct window):
26068         * window.c (struct save_window_data, struct saved_window):
26069         * termhooks.h (struct terminal):
26070         * process.h (struct Lisp_Process):
26071         * frame.h (struct frame):
26072         * buffer.h (struct buffer):
26073         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26074         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26075         The size field of (pseudo)vectors is now unsigned.
26076         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26078         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26079         Turn `count' into an integer.
26081         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26082         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26083         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26084         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26085         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26087         * alloc.c (allocate_pseudovector): New fun.
26088         (ALLOCATE_PSEUDOVECTOR): New macro.
26089         (allocate_window, allocate_terminal, allocate_frame)
26090         (allocate_process): Use it.
26091         (mark_vectorlike): New function.
26092         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26093         (mark_terminals): Use it.
26094         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26095         (Fmake_byte_code): Use XSETPVECTYPE.
26097         * frame.c (Fframe_parameters): Minor simplification.
26099         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26101         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26103         * buffer.c (Fget_buffer_create, init_buffer_once):
26104         * lread.c (defsubr):
26105         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26107         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26108         defined differently in the m/*.h files.
26109         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26110         (XSETPVECTYPE): New macro.
26111         (XSETPSEUDOVECTOR): Use it.
26113         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26114         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26116         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26117         * lread.c (defvar_per_buffer):
26118         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26120         * window.c (candidate_window_p): Only consider as visible frames that
26121         are on the same terminal.
26123         * m/ibms390x.h (MARKBIT): Remove unused macro.
26125 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
26127         * lread.c (Fload): Fix typo in docstring.
26129 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
26131         * floatfns.c (Fexpt): Manually check for overflows, so that a power
26132         of a non-zero value can't yield zero.
26134 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
26136         * term.c (term_clear_mouse_face, term_mouse_highlight)
26137         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26139         * print.c (safe_debug_print): Use XHASH.
26141         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26142         Lisp elements such as tags.
26143         (XHASH): New macro.
26144         (EQ): Use it.
26145         (SREF, SSET, STRING_COPYIN): Use SDATA.
26146         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26148         * alloc.c (mark_terminal): Remove left-over declaration.
26149         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26150         (allocate_vectorlike): Remove type argument.  Adjust callers.
26151         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26152         Only handle the one remaining MEM_TYPE_VECTORLIKE.
26154         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26155         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26156         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26157         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26158         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26159         Use them.
26161         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26162         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26163         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26165 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
26167         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26168         loaded by default.
26170 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
26172         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26173         on this tty.
26174         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26176         * term.c (mouse_face_window): Rename from Qmouse_face_window.
26177         Update all users.
26178         (handle_one_term_event): Use Gpm_DrawPointer.
26179         (Fgpm_mouse_start): Rename from Fterm_open_connection.
26180         Signal errors instead of returning nil.  Always return nil.
26181         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26182         Make it a noop if gpm-mouse was not activated.
26183         (syms_of_term): Update names.
26185 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
26187         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26188         (init_sys_modes): Check that gpm_tty is the current tty.
26190         * alloc.c (allocate_terminal): Set the vector size to only count the
26191         lisp fields.  Initialize those to nil.
26192         (mark_object): Don't treat terminals specially.
26193         (mark_terminal): Remove.
26194         (mark_terminals): Use mark_object instead.
26196         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26197         the GC to the beginning.
26199         * indent.h:
26200         * indent.c: Use EMACS_INT for ints coming from Elisp data.
26202         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26204 2007-09-25  Jason Rumney  <jasonr@gnu.org>
26206         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26208         * w32console.c (create_w32cons_output): Remove.
26210         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26212         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26213         (reset_sys_modes): Use reset_terminal_modes_hook.
26215 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
26217         * eval.c (do_autoload): Don't output any message.
26219 2007-09-24  Juri Linkov  <juri@jurta.org>
26221         * emacs.c (standard_args): Change priority of "--no-splash"
26222         from 40 to 3.  Add "--no-desktop" with the same priority.
26224 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
26226         * alloc.c (gc_sweep): Check cons cell mark bits word by word
26227         and optimize the case where they are all 1.
26229 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
26231         * lisp.h (abs): Define if not defined.
26232         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26233         Don't define `abs', since it's defined in lisp.h.
26235 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
26237         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
26238         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26239         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26240         (init_tty): Use DEV_TTY instead of "/dev/tty".
26241         [WINDOWSNT]: No need to protect from NAME arg being null.
26243 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
26245         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26246         up the tty state.
26248 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
26250         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
26251         (gpm_tty): Change its type.
26252         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
26253         (gpm_tty): Change its type and initialize it.
26254         (Fterm_open_connection): Check the frame is indeed a tty.
26255         Use the new gpm_tty.
26256         (Fterm_close_connection): Use the new gpm_tty.
26257         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26258         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26260 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
26262         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26263         underline_color, to draw strike-through.
26265 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
26267         * lisp.h (allocate_terminal): Declare.
26269         * window.c (candidate_window_p): Consider frames that are being placed
26270         by the user as somewhere between visible and iconified.
26271         (window_loop): Prefer windows on the current frame.
26272         (Fselect_window): Move the use of select-frame to the beginning so we
26273         can just delegate all the work (it'll call us back anyway).
26275         * frame.c (Qdisplay_environment_variable):
26276         * frame.h (Qdisplay_environment_variable): Delete.
26278         * .gdbinit (xbacktrace): Print the arg's address rather than the value
26279         of the first arg, since that value may be a union.
26281         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26282         parameter rather than Qdisplay_environment_variable.  If all else
26283         fails, look for DISPLAY in initial-environment.
26285 2007-09-21  Glenn Morris  <rgm@gnu.org>
26287         * Makefile.in (emacstool): Remove target.
26288         (lisp, shortlisp): Remove termdev.elc.
26290 2007-09-21  Markus Triska  <markus.triska@gmx.at>
26292         * xterm.c (x_delete_display): Compile session management conditionally.
26294 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
26296         * callproc.c (getenv_internal_1): New function.
26297         (getenv_internal): Use it.
26298         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
26300         * terminal.c (get_terminal): Don't accept ints to represent terminals.
26301         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26302         (Fset_terminal_parameter): Work with dead terminals as well.
26303         (Fmodify_terminal_parameters): Remove.
26305         * terminal.c (get_terminal): Handle terminals.
26306         Make sure the terminal returned is live.
26307         (create_terminal): Use allocate_terminal.
26308         (mark_terminals): Move to alloc.c.
26309         (delete_terminal): Use terminal->name as liveness status.
26310         NULL out fields after freeing their contents.
26311         Don't deallocate the object.
26312         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
26313         rather than an int.
26314         (Fterminal_live_p): Accept non-integer arguments.
26315         (Fterminal_list): Return terminal objects rather than an ints.
26317         * alloc.c (enum mem_type): New member for `terminal' objects.
26318         (allocate_terminal): New function.
26319         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26320         Handle terminals.
26321         (mark_terminal): New fun.
26322         (mark_terminals): Move from terminal.c.
26324         * term.c (get_tty_terminal): Don't treat output_initial specially.
26325         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26326         (delete_tty): Use terminal->name as liveness status.
26328         * termhooks.h (struct terminal): Make it into a pseudovector.
26329         Remove `deleted' replaced by checking `name's nullness.
26331         * print.c (print_object): Handle terminals.
26333         * lisp.h (enum pvec_type): New `terminal' pseudovector.
26334         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26336         * frame.c (make_terminal_frame):
26337         * keyboard.c (tty_read_avail_input):
26338         * w32term.c (x_delete_terminal):
26339         * xfns.c (Fx_create_frame, x_create_tip_frame):
26340         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26342 2007-09-20  Glenn Morris  <rgm@gnu.org>
26344         * process.c (Fmake_network_process): Doc fix.
26346 2007-09-19  Jason Rumney  <jasonr@gnu.org>
26348         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26350 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
26352         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26353         Fix a C warning regarding variable constness.
26355         * xterm.c (handle_one_xevent): Fix a C warning.
26357 2007-09-18  Jason Rumney  <jasonr@gnu.org>
26359         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26361 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
26363         * gtkutil.c (gdpy_def): New variable.
26364         (xg_initialize): Initialize gdpy_def.
26365         (xg_display_close): If no other display exists, set gdpy_def to a
26366         new connection.
26368 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
26370         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26371         when we have no file name for the icon.
26372         (xg_tool_bar_expose_callback): Remove.
26373         (xg_create_tool_bar): Don't connect expose signal to
26374         xg_tool_bar_expose_callback.
26375         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26377 2007-09-16  Andreas Schwab  <schwab@suse.de>
26379         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26380         values instead of zapping them.
26382 2007-09-14  Glenn Morris  <rgm@gnu.org>
26384         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26385         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26386         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26387         scope and rename to omfib_buffer for clarity.
26388         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26390 2007-09-14  Kenichi Handa  <handa@m17n.org>
26392         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26394 2007-09-13  Jason Rumney  <jasonr@gnu.org>
26396         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26398         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26400         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26401         (mac_term_init): Call here instead, passing rif.
26403 2007-09-13  Glenn Morris  <rgm@gnu.org>
26405         * s/hpux.h: No longer define `static' as nothing.
26407 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
26409         * callint.c (Fcall_interactively): Remove unused var `fun'.
26411 2007-09-12  Romain Francoise  <romain@orebokech.com>
26413         * window.c (prefer_window_split_horizontally, display_buffer):
26414         Revert 2007-09-08 change.
26416 2007-09-12  Glenn Morris  <rgm@gnu.org>
26418         * alloca.c: Remove file.
26419         * Makefile.in (alloca): Do not undef.
26420         (allocaobj, alloca.o): Remove.
26421         (otherobj): Remove allocaobj.
26422         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26423         * regex.c (C_ALLOCA): Remove all references and code that was only
26424         used when this was defined.
26425         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26426         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26427         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26429         * Makefile.in (SOURCES, unlock, relock): Delete.
26431         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26432         (menu_grab_callback): All uses changed.
26434         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26435         (x_reply_selection_request): All uses changed.
26437 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
26439         * lread.c (load_warn_old_style_backquotes): Change message to look
26440         better when it appears in the middle of byte-compiler messages.
26442 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
26444         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26446         * xterm.c (x_create_terminal): Add comment.
26448         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26450 2007-09-10  Richard Stallman  <rms@gnu.org>
26452         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26454 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
26456         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26457         (DEFUN): Document `intspec', use it instead of `prompt'.
26459         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26461         * data.c (Finteractive_form): If the interactive specification starts
26462         with a `(', use it as a Lisp form.
26464         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26465         name and file modes.
26467         * callint.c (Fcall_interactively): Comment fixes.
26469 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
26471         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26472         and compiled functions.
26474 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
26476         * window.c (prefer_window_split_horizontally): New variable.
26477         (display_buffer): Consider splitting window horizontally depending
26478         on prefer_window_split_horizontally.
26480 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
26482         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26484 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
26486         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26488         * frame.c (x_set_frame_parameters): Check number is positive before
26489         using XFASTINT.
26491         * window.c (freeze_window_start): Don't presume selected_window holds
26492         a window object.
26493         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26495 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
26497         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26499 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
26501         * window.c (Vsplit_window_preferred_function): New var.
26502         (Fdisplay_buffer): Use it.
26503         (syms_of_window): Export, and initialize it.
26505 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
26507         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26509 2007-09-06  Glenn Morris  <rgm@gnu.org>
26511         * gtkutil.c (menu_grab_callback) <cnt>:
26512         * xselect.c (x_reply_selection_request) <cnt>: Move static
26513         variable to file scope.
26515 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
26517         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26518         consistent values of selected_frame and selected_window.
26520 2007-09-04  Jason Rumney  <jasonr@gnu.org>
26522         * w32console.c (initialize_w32_display): Zero unused hooks.
26524 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
26526         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26527         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26529 2007-09-04  Jason Rumney  <jasonr@gnu.org>
26531         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26532         in w32console.c.  Set up input.  Remove XXX comments that have been
26533         confirmed as correct.
26535         * s/ms-w32.h (MULTI_KBOARD): Define.
26537         * w32console.c (one_and_only_w32cons): Remove.
26538         (initialize_w32_display): Take terminal argument.
26540         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26541         initialize_w32_display.
26542         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26544         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26546         * keyboard.c (discard_mouse_events): Discard it.
26547         (make_lispy_event): Translate it to a lisp event.
26548         (lispy_wheel_names): Add wheel-left and right events.
26549         (syms_of_keyboard): Enlarge wheel_syms.
26551         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26552         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26554         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26556         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26557         from WM_MOUSEHWHEEL.
26558         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26560         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26561         terminal.
26563         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26564         keyboard for the terminal.
26566 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
26568         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26569         (Vresume_tty_hook): Rename from Vresume_tty_functions.
26570         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26571         and resume-tty-function to resume-tty-hook.
26572         (Fsuspend_tty, Fresume_tty): Use new names.
26574 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
26576         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26577         if it starts with "n:".
26579 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
26581         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26583 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
26585         * frame.h:
26586         * frame.c (Qterm_environment_variable): Remove.
26587         (syms_of_frame): Don't init and staticpro it.
26589         * callproc.c (getenv_internal): Remove special case for $TERM.
26591         * callproc.c (Vinitial_environment): New variable.
26592         (set_initial_environment): Initialize it.
26593         (syms_of_callproc): Declare it.
26594         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26595         TERM under which a process runs is never related to the TERM in which
26596         Emacs is running.
26598 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
26600         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26601         * s/darwin.h: ... do it here.
26603 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
26605         * lisp.h (set_initial_environment): Rename from set_global_environment.
26607         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26608         removed by mistake on the multi-tty branch.
26610         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26611         (Fmodify_frame_parameters): Return a value.
26613         * image.c (png_load): Comment-out var only used in commented-out code.
26615         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26616         before passing it to mark_object.
26618         * xfaces.c (internal_resolve_face_name): Return a value.
26619         (internal_resolve_face_name, resolve_face_name_error): Comment out.
26621         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26622         (x_icon): Comment-out var only used in commented-out code.
26624 2007-08-29  Romain Francoise  <romain@orebokech.com>
26626         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26627         QUIT hasn't been provided.
26629 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
26631         * callproc.c (child_setup, getenv_internal): Use the
26632         display-environment-variable and term-environment-variable frame params.
26633         (set_initial_environment): Initialise Vprocess_environment.
26635         * config.in: Disable multi-keyboard support on a mac.
26637         * frame.c (Qterm_environment_variable)
26638         (Qdisplay_environment_variable): New variables.
26639         (syms_of_frame): Intern and staticpro them.
26640         (Fmake_terminal_frame): Disable output method test.
26642         * frame.h: Declare them here.
26644         * macfns.c (x_set_mouse_color): Get rif from the frame.
26645         (x_set_tool_bar_lines): Don't use updating_frame.
26646         (mac_window): Add 2 new parameters for consistency with other systems.
26647         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
26648         frame parameters following what is done in X11 and w32.  Don't use
26649         FRAME_MAC_DISPLAY_INFO.
26650         (Fx_open_connection, start_hourglass): Remove window-system check.
26651         (x_create_tip_frame): Get the keyboard from the terminal.
26653         * macmenu.c: Reorder includes.
26654         (Fx_popup_menu): Use terminal specific mouse_position_hook.
26656         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26657         terminal parameter.
26658         (x_clear_frame): Add a frame parameter.
26659         (note_mouse_movement): Get rif from the frame.
26660         (mac_term_init): Initialize the terminal.
26661         (mac_initialize): Make static and move terminal initialization ...
26662         (mac_create_terminal): ... to this new function.
26664         * macterm.h (struct mac_display_info): Add terminal.
26665         (mac_initialize): Delete declaration.
26667         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26669         * sysdep.c: Comment out text after #endif.
26671         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26672         is defined.  Better initialize ttys in windows.  Use terminal
26673         specific mouse_position_hook.
26675         * termhooks.h (union display_info): Add mac_display_info.
26677         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26678         Set the default minibuffer frame, window_system and the rest of the
26679         frame parameters following what is done in X11.
26681         * w32term.c (w32_initialize): Make static.
26683         * xselect.c (x_handle_selection_clear): Only access
26684         terminal->kboard when MULTI_KBOARD is defined.
26686         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26687         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26689 2007-08-29  Jason Rumney  <jasonr@gnu.org>
26691         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26692         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26694         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26695         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26697         * keyboard.c (restore_kboard_configuration): Only define when
26698         MULTI_KBOARD defined.
26700         * makefile.w32-in: Update dependancies from Makefile.in.
26701         (OBJ1): Add terminal.$(O)
26703         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26704         Don't define function body.
26705         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26707         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26709         * w32.c (request_sigio, unrequest_sigio): Remove.
26711         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26712         (w32con_clear_frame, w32con_clear_end_of_line)
26713         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26714         (w32con_delete_glyphs, w32con_set_terminal_window)
26715         (scroll_line, w32_sys_ring_bell): Add frame arg.
26716         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26717         Add terminal arg.
26718         (PICK_FRAME): Remove.
26719         (w32con_write_glyphs): Use frame specific terminal coding.
26720         (one_and_only_w32cons): New global variable.
26721         (initialize_w32_display): Use it for storing hooks.
26722         (create_w32cons_output): New function.
26724         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26725         arg a frame.
26727         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26728         Set window_system.
26729         (x_set_tool_bar_lines): Don't use updating_frame.
26730         (Fx_create_frame): Set terminal and ref count.
26731         (Fx_open_connection): Remove window-system check.
26733         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26735         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26736         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26737         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26738         Add frame arg.
26739         (x_delete_terminal, w32_create_terminal): New functions.
26740         (w32_term_init): Create a terminal.
26741         (w32_initialize): Move terminal specific initialization to
26742         w32_create_terminal.
26744         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26745         (w32_clear_rect, w32_clear_area): Use background from frame.
26746         (w32_display_info): Add terminal.
26747         (w32_sys_ring_bell, x_delete_display): Declare here.
26749         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26751         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26753 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
26755         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26756         Fix get_named_tty calls for the controlling tty.
26758 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
26760         * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26762 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
26764         * term.c (tty_insert_glyphs): Add missing first parameter.
26766 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
26768         * buffer.c (Fbuffer_list, Fbury_buffer):
26769         Take frame->buried_buffer_list into account.
26771         * cm.c (current_tty): New variable, for cmputc().
26772         (cmputc): Use it.
26773         (cmcheckmagic): Add tty parameter, look up terminal streams there.
26774         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
26775         (cmgoto): Add tty parameter.  Pass it on to calccost().
26776         Use emacs_tputs() instead of tputs().
26778         * cm.h (emacs_tputs): New macro to set current_tty, and then call
26779         tputs().
26780         (current_tty): New variable, for cmputc().
26781         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26783         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26784         (internal_condition_case, internal_condition_case_1)
26785         (internal_condition_case_2): Don't abort when x_catching_errors.
26787         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26788         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
26789         prevent crashes caused by bogus longjmps in read_char.
26791         * keymap.h (Fset_keymap_parent): Add EXFUN.
26793         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26794         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26795         Remove redundant definition.
26797         * macfns.c (x_set_mouse_color, x_make_gc):
26798         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26800         * w32term.c (x_free_frame_resources):
26801         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26802         (w32_initialize): Use the accessor macros for terminal characteristics.
26804         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26805         Use the accessor macros for terminal characteristics.
26806         * msdos.c (internal_terminal_init): Use the accessor macros for
26807         terminal characteristics.
26808         (ScreenVisualBell, internal_terminal_init):
26809         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26811         * termopts.h (no_redraw_on_reenter): Declare.
26813         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26814         (mark_terminals, mark_ttys): Declare.
26815         (Fgarbage_collect): Call them.
26816         (mark_object): Mark buried_buffer_list.
26818         * prefix-args.c: Include stdlib.h for exit.
26820         * syssignal.h: Add comment.
26822         * indent.c: Include stdio.h.
26824         * window.h (Vinitial_window_system): Declare.
26825         (Vwindow_system): Delete declaration.
26827         * fontset.c (Finternal_char_font): Use FRAME_RIF.
26829         * image.c (lookup_image): Don't initialize `c' until the xasserts
26830         have been run.
26832         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26833         FRAME_FOREGROUND_PIXEL.
26835         * print.c (print_preprocess): Don't lose print_depth levels while
26836         iterating.
26838         * widget.c (update_from_various_frame_slots):
26839         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26841         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26842         frames.
26843         (window_internal_height): Remove bogus make_number call.
26844         (init_window_once): Call make_terminal_frame with two zero parameters.
26846         * fileio.c (Fread_file_name): Update comment.
26848         * callint.c (Fcall_interactively):
26849         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26850         Make sure it is correctly unwound.
26852         * xsmfns.c (x_session_close): New function.
26854         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26855         Delete declarations.
26857         * xterm.h: Remove declaration for x_fully_uncatch_errors.
26858         (x_output): Remove background_pixel and foreground_pixel fields.
26859         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
26860         (x_delete_device, x_session_close): Declare.
26862         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
26863         (read_filtered_event): Call `read_char' with a local
26864         `wrong_kboard_jmpbuf'.
26866         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26867         Don't call single_kboard_state.  Use FRAME_RIF.
26869         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26870         systems.
26872         * lisp.h (set_process_environment): Rename to `set_global_environment'.
26873         (Fframe_with_environment, Fset_input_meta_mode)
26874         (Fset_quit_char): EXFUN.
26875         (x_create_device, tty_output, terminal, tty_display_info): Declare.
26876         (init_sys_modes, reset_sys_modes): Update prototypes.
26877         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26879         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26880         Vlocal_key_translation_map, and Vkeyboard_translate_table.
26881         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26882         Delete declarations.
26883         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26884         (temporarily_switch_to_single_kboard, tty_read_avail_input):
26885         New declarations.
26887         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26888         already does that during init_display().  Call syms_of_keymap
26889         before syms_of_keyboard.  Call `syms_of_terminal'.
26890         Call set_initial_environment, not set_process_environment.
26891         (shut_down_emacs): Call reset_all_sys_modes() instead of
26892         reset_sys_modes().
26894         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26895         (internal_resolve_face_name, resolve_face_name_error): New functions.
26896         (resolve_face_name): Protect against loops and errors thrown by Fget.
26897         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26898         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26900         * scroll.c: Replace CURTTY() with local variables throughout the
26901         file (where applicable).
26902         (calculate_scrolling, calculate_direct_scrolling)
26903         (scrolling_1, scroll_cost): Use the accessor macros for terminal
26904         characteristics.
26906         * keymap.c (Vfunction_key_map): Remove.
26907         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26908         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26909         (Vkey_translation_map): Remove.
26910         (syms_of_keymap): Remove DEFVAR for key-translation-map.
26911         (Fdescribe_buffer_bindings)
26912         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26913         Update for terminal-local key-translation-map.
26915         * Makefile.in (callproc.o): Update dependencies.
26916         (lisp, shortlisp): Add termdev.elc.
26917         (obj): Add terminal.o.
26918         (terminal.o): Add dependencies.
26919         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26920         (data.o, fns.o): Add termhooks.h dependency.
26921         (SOME_MACHINE_LISP): Add dnd.elc.
26922         (minibuf.o): Fix typo.
26923         Update dependencies.
26925         * data.c (do_symval_forwarding, store_symval_forwarding)
26926         (find_symbol_value): Use the selected frame's keyboard, not
26927         current_kboard.
26929         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26930         Vwindow_system.
26932         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26933         Fmenu_bar_open.
26934         (syms_of_xmenu): Update defsubr.
26935         (mouse_position_for_popup, Fx_popup_menu)
26936         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26937         (set_frame_menubar, free_frame_menubar)
26938         (create_and_show_popup_menu, xmenu_show)
26939         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26940         an X frame.
26942         * xselect.c (x_own_selection): Abort if not an X frame.
26943         (some_frame_on_display): Check if it is an X frame.
26944         (x_handle_selection_clear): Deal with MULTI_KBOARD.
26946         * coding.c: Include frame.h and termhooks.h.
26947         (terminal_coding, keyboard_coding): Delete.
26948         (Fset_terminal_coding_system_internal)
26949         (Fset_keyboard_coding_system_internal)
26950         (Fkeyboard_coding_system)
26951         (Fterminal_coding_system): Add a terminal parameter.
26952         Get terminal_coding from the terminal.
26953         (init_coding_once): Don't call setup_coding_system here.
26955         * dispextern.h (set_scroll_region, turn_off_insert)
26956         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26957         (tty_clear_end_of_line, tty_setup_colors)
26958         (delete_tty, updating_frame)
26959         (produce_special_glyphs, produce_glyphs, write_glyphs)
26960         (insert_glyphs): Remove.
26961         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26962         (tty_turn_off_highlight, get_tty_size): Add declaration.
26963         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26965         * frame.h (enum output_method): Add output_initial.
26966         (struct x_output): Delete.
26967         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26968         Access foreground_pixel and background_pixel directly from the frame.
26969         (tty_display): Delete.
26970         (struct frame): Add buried_buffer_list, foreground_pixel,
26971         background_pixel and terminal.  Delete kboard.
26972         (union output_data): Add tty.
26973         (FRAME_KBOARD): Get the kboard from the terminal.
26974         (FRAME_INITIAL_P): New macro.
26975         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26976         (Qterm_environment_variable, Qdisplay_environment_variable)
26977         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26978         New declarations.
26980         * termchar.h (tty_output, tty_display_info): New structures.
26981         (tty_list): Declare.
26982         (FRAME_TTY, CURTTY): New macros.
26983         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26984         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26985         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26986         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26988         * callproc.c: Include frame.h and termhooks.h, for terminal
26989         parameters.
26990         (add_env): New function.
26991         (child_setup): Use it.
26992         (child_setup, getenv_internal): Handle the new Vprocess_environment.
26993         (getenv_internal): Fix get_terminal_param call.
26994         (Fgetenv_internal, egetenv): Update doc.
26995         (syms_of_callproc): Initialize Vprocess_environment to nil.
26996         Register and initialize them.  Remove obsolete defvars.  Update doc
26997         strings.
26998         (child_setup): Handle Vlocal_environment_variables.
26999         (getenv_internal): Add terminal parameter.
27000         Handle Vlocal_environment_variables.
27001         (Fgetenv_internal): Add terminal parameter.
27002         (child_setup, getenv_internal, Fgetenv_internal): Store the local
27003         environment in a frame (not terminal) parameter.  Update doc strings.
27004         (set_initial_environment): Rename from set_global_environment.
27005         Store Emacs environment in initial frame parameter.
27007         * xdisp.c (redisplay_internal): Update references to
27008         `previous_terminal_frame'.
27009         (display_mode_line, Fformat_mode_line): Replace calls to
27010         `push_frame_kboard' with `push_kboard'.
27011         (get_glyph_string_clip_rects): Add extra parentheses and
27012         braces to prevent compiler warnings.
27013         (calc_pixel_width_or_height): Add xassert to check that the
27014         frame is alive.  Don't call `lookup_image' on a termcap frame.
27015         (message2_nolog, message3_nolog, redisplay_internal)
27016         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27017         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27018         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27019         (Fx_display_pixel_width, Fx_display_pixel_height)
27020         (Fx_display_planes, Fx_display_color_cells)
27021         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27022         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27023         (Fx_display_backing_store, Fx_display_visual_class)
27024         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27025         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27027         * xfns.c (x_set_foreground_color x_set_background_color)
27028         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27029         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27030         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27031         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27032         terminal that is being deleted.
27033         (Fx_create_frame): Use `store_frame_param' to set `window-system'
27034         frame parameter, and make sure it overrides any user-supplied setting.
27035         (Fx_close_connection, Fx_synchronize): Unify argument names with
27036         the rest of the DEFUNs.
27038         * dispnew.c (Fsend_string_to_terminal): Update call to
27039         `get_tty_terminal'.
27040         (Fredraw_frame, Fsend_string_to_terminal)
27041         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27042         FRAME_TERMCAP_P and FRAME_TTY.
27043         (window_change_signal): Don't believe width/height values that are
27044         impossibly small.
27045         (Vinitial_window_system): Rename from Vwindow_system.
27046         (termscript, Wcm, rif): Delete.
27048         * termhooks.h (struct terminal): New struct containing the
27049         previously global text display hooks and new members NAME,
27050         DELETED and PARAM_ALIST.
27051         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27052         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27053         (FRAME_RIF): New macros.
27054         (get_terminal_param, get_device): New declarations.
27055         (termscript): Delete declaration.
27057         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27058         (XTflash, x_free_frame_resources, x_scroll_bar_create)
27059         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27060         FRAME_FOREGROUND_PIXEL.
27061         (x_fully_uncatch_errors): Disable definition.
27062         (x_scroll_bar_expose): Fix reference to foreground pixel.
27063         (XTread_socket): Disable loop on all X displays.
27064         (x_delete_terminal): Don't set terminal->deleted and let
27065         delete_terminal delete the frames on the terminal.
27066         (x_delete_display): Doc update to reflect changes in
27067         delete_terminal.
27068         (x_display_info) <terminal>: Move member earlier in the struct.
27069         (deleting_tty): Remove old variable.
27070         (Fsuspend_tty): Call clear_tty_hooks.
27071         (Fresume_tty, init_tty): Call set_tty_hooks.
27072         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27073         errors on X frames.
27074         (x_catch_errors_unwind): Abort if x_error_message is NULL.
27075         (handle_one_xevent): Initialize `f' to NULL.
27076         (x_delete_terminal, x_create_terminal): New functions.
27077         (XTset_terminal_modes, XTreset_terminal_modes)
27078         (XTread_socket, x_connection_closed, x_term_init)
27079         (x_term_init, x_delete_display): Add terminal parameter.
27080         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27081         X connections.
27083         * frame.c: Include termchar.h.
27084         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27085         (Qwindow_system, Qenvironment, Qterm_environment_variable)
27086         (Qdisplay_environment_variable): New vars.
27087         (Fframep): Deal with output_initial.
27088         (Fframe-live-p): Doc fix.
27089         (Fwindow-system): New function.
27090         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27091         (make_terminal_frame): Don't create frames on a terminal that is
27092         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27093         (store_frame_param): Check for found_for_frame before calling XFRAME.
27094         (Fmake_terminal_frame): Handle NULL tty names correctly.
27095         (syms_of_frame): Enhance doc string of `default-frame-alist'.
27096         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
27097         frames to refer to a deleted frame in their 'environment parameter.
27098         (Fframe_with_environment): New function.
27099         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
27100         (get_future_frame_param): New function.
27101         (Fmake_terminal_frame): Use it.
27102         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27104         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27105         * sysdep.c (reset_sys_modes): Update for renames.
27107         * keyboard.c (tty_read_avail_input): New function.
27108         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27109         (syms_of_keyboard): Defsubr them.
27110         (Fset_input_meta_mode, Fset_quit_char): New functions.
27111         (Fset_input_mode): Split to above functions.
27112         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27113         parameter.  Use it in call to `read_char'.
27114         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
27115         Set wrong_kboard_jmpbuf correctly in recursive calls.
27116         Use current_kboard to access Vkeyboard_translate_table.
27117         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27118         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27119         Update longjmp invocations.  Remember the original current_kboard,
27120         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27121         changes it.  Comment out unnecessary calls to
27122         `record_single_kboard_state' and `any_kboard_state'.
27123         Update recursive calls.
27124         (wrong_kboard_jmpbuf): Remove global variable.
27125         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27126         Handle deleted interrupted_kboards correctly; that is a legal
27127         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
27128         and read_char calls.  Abort if interrupted_kboard died in read_char.
27129         (any_kboard_state, single_kboard_state)
27130         (push_frame_kboard): Remove function.
27131         (pop_kboard): Switch out of single_kboard mode if the kboard has
27132         been deleted.  Remove unused variable.  Help debugging by not
27133         changing current_kboard unnecessarily.  Set current_kboard to the
27134         kboard of the selected frame when the stored kboard object has
27135         been deleted before pop_kboard.
27136         (temporarily_switch_to_single_kboard): Change first parameter to a
27137         frame pointer.  Throw an error when caller wants to change kboards
27138         while in single_kboard mode.  Don't push_kboard if we weren't in
27139         single kboard state.  Don't pop_kboard if we popped into any
27140         kboard state.
27141         (restore_kboard_configuration): Abort if pop_kboard changed the
27142         kboard in single_kboard mode.  Call pop_kboard only after setting
27143         up single_kboard mode.
27144         (Frecursive_edit): Switch to single_kboard mode only in nested
27145         command loops.
27146         (cmd_error, command_loop, command_loop_1, timer_check):
27147         Comment out unnecessary call to `any_kboard_state' and
27148         `record_single_kboard_state'.
27149         (delete_kboard): Exit single_kboard mode if we have just deleted
27150         that kboard.  Use FRAME_KBOARD.
27151         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27152         `fatal_error_signal'.
27153         (record_single_kboard_state): Don't push_kboard if we weren't in
27154         single kboard state.  Don't pop_kboard if we popped into any
27155         kboard state.
27156         (push_frame_kboard): Rename to push_kboard.
27157         (kbd_buffer_get_event): Use FRAME_TERMINAL.
27158         (read_avail_input): Read input from all terminals.
27159         (mark_kboards): Also mark Vkeyboard_translate_table.
27160         (kbd_buffer_store_event_hold): Simplify condition.
27161         (read_key_sequence): Reinitialize fkey and keytran at each replay.
27162         (Vkeyboard_translate_table): Move to struct kboard.
27163         (init_kboard): Initialize Vkeyboard_translate_table.
27164         (syms_of_keyboard): Use DEFVAR_KBOARD to define
27165         Vkeyboard_translate_table.  Update doc strings.  Update docs of
27166         local-function-key-map and function-key-map.
27168         * terminal.c: New file.
27170         * term.c: Include errno.h.
27171         (Vring_bell_function, device_list, initial_device)
27172         (next_device_id, ring_bell, update_begin, update_end)
27173         (set_terminal_window, cursor_to, raw_cursor_to)
27174         (clear_to_end, clear_frame, clear_end_of_line)
27175         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27176         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27177         (syms_of_term): Move their initialization to terminal.c.
27178         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27179         (Ftty_display_color_cells)
27180         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27181         (clear_tty_hooks, set_tty_hooks)
27182         (init_tty, maybe_fatal): New functions.
27183         (Ftty_type): Return nil if terminal is not on a tty instead of
27184         throwing an error.  Doc update.
27185         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27186         Doc update.  Initialize new subrs and variables.
27187         (delete_tty): Use terminal->deleted.
27188         (tty_set_terminal_modes): Rename from set_terminal_modes.
27189         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27190         (set_scroll_region): Rename to `tty_set_scroll_region'.
27191         (turn_on_insert): Rename to `tty_turn_on_insert'.
27192         (turn_off_insert): Rename to `tty_turn_off_insert'.
27193         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27194         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27195         (toggle_highligh): Rename to `tty_toggle_highlight'.
27196         (background_highlight): Rename to `tty_background_highlight'.
27197         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27198         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27199         (tty_set_scroll_region, tty_background_highlight)
27200         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27201         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27202         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27203         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27204         Add static modifier.
27205         (tty_reset_terminal_modes, tty_set_terminal_window)
27206         (tty_set_scroll_region, tty_background_highlight)
27207         (tty_highlight_if_desired, tty_cursor_to)
27208         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27209         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27210         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27211         renames.
27213 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
27215         * keyboard.c: Qrtl is new.
27216         (parse_tool_bar_item): Handle :rtl keyword.
27217         (syms_of_keyboard): Intern :rtl keyword.
27219         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27221         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27222         so no Lisp code is executed.
27223         (file_for_image, find_rtl_image): New functions.
27224         (xg_get_image_for_pixmap): Use file_for_image.
27225         (update_frame_tool_bar): If direction is RTL, use RTL image if
27226         defined.  Use Gtk stock images if defined.
27228 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27230         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27231         for nonexistent or zero-width glyph in composition glyph.
27233 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
27235         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27237         * xdisp.c (Finvisible_p): New function.
27238         (syms_of_xdisp): defsubr it.
27240 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
27242         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27243         Doc fixes.
27245 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27247         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27249 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
27251         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27252         whether decoding has modified buffer contents.
27254 2007-08-24  Jason Rumney  <jasonr@gnu.org>
27256         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27257         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27258         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27259         (init_svg_functions) [HAVE_NTGUI]: New function.
27260         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27261         (svg_load_image): Use them.
27262         (svg_load_image) [HAVE_NTGUI]: Implement background.
27264 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27266         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27267         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27268         (LIBX): Remove @RSVG_LIBS@.
27269         (LIBES): Add $(RSVG_LIBS).
27271         * image.c (svg_load_image): Blend with specified background if exists.
27272         Use IMAGE_BACKGROUND.  Add Mac OS Support.
27274         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27275         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27276         Remove macros.
27277         [MAC_OSX] (socket_callback): Do nothing.
27278         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27279         ReceiveNextEvent.
27280         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
27281         socket_callback.
27282         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27284 2007-08-22  Glenn Morris  <rgm@gnu.org>
27286         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27288 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
27290         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27292         * image.c: Add support for SVG images.  Some additional comments
27293         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
27294         (svg_image_p): New function to test for SVG image.
27295         (svg_load): New function to load SVG image.
27296         (svg_load_image): New function, helper for svg_load.
27297         (Qsvg): New Lisp_object.
27298         (svg_keyword_index): New enum.
27299         (svg_format): New static `image_keyword' struct.
27300         (svg_type): New static `image_type' struct.
27301         (librsvg/rsvg.h): Include it.
27303 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
27305         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27307 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
27309         * lread.c (Qold_style_backquotes): New var.
27310         (syms_of_lread): Init and staticpro it.
27311         (load_warn_old_style_backquotes): New fun.
27312         (Fload): Use them to warn about old style backquotes.
27313         (end_of_file_error, Fload): Remove unused vars.
27315         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27317         * lread.c (Vold_style_backquotes): New var.
27318         (syms_of_lread): Init and export it to Elisp.
27319         (read1): Set it when we find an old-style (back)quote.
27321 2007-08-22  Jason Rumney  <jasonr@gnu.org>
27323         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27325 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
27327         * puresize.h (BASE_PURESIZE): Increase to 1140000.
27329 2007-08-19  Richard Stallman  <rms@gnu.org>
27331         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27333 2007-08-19  Andreas Schwab  <schwab@suse.de>
27335         * alloc.c (pure): Round PURESIZE up.
27337 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
27339         * xterm.c (handle_one_xevent): Remove check that mouse click is in
27340         active frame.
27342 2007-08-16  Richard Stallman  <rms@gnu.org>
27344         * eval.c (Fcommandp): Add parens to clarify.
27346         * minibuf.c (Fall_completions): Use enum for type of table.
27348         * emacs.c (USAGE2): Improve text.
27350 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
27352         * term.c (tty_default_color_capabilities): Declare static
27353         variables in file scope, to avoid HPUX compiler problem.
27355 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
27357         * gtkutil.c (update_frame_tool_bar): Use -1 as index
27358         to gtk_toolbar_insert.
27360 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
27362         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27364         * insdel.c (reset_var_on_error): New fun.
27365         (signal_before_change, signal_after_change):
27366         Use it to reset (after|before)-change-functions to nil in case of error.
27367         Bind inhibit-modification-hooks to t.
27368         Don't bind (after|before)-change-functions to nil while they run.
27370 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27372         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27373         filling pixmap with stippled background.
27375 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27377         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27378         Don't use invisible frame as parent window for repositioning.
27380 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
27382         * print.c (new_backquote_output): Rename from old_backquote_output.
27383         (print): Inverse its logic (according to its name) so as to match the
27384         behavior of new_backquote_flag in lread.c.
27386 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27388         * gmalloc.c (posix_memalign): New function.
27390         * macterm.c (frame_highlight, frame_unhighlight): Don't call
27391         ActivateControl/DeactivateControl here.
27392         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27393         frame-notice-user-settings is non-nil.
27394         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27395         for kEventParamFMFontStyle.
27396         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27397         mac_pass_command_to_system and mac_pass_control_to_system here.
27398         (XTread_socket): Call ActivateControl/DeactivateControl here.
27399         (XTread_socket) [TARGET_API_MAC_CARBON]:
27400         Check mac_pass_command_to_system and mac_pass_control_to_system here.
27401         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27402         for window repositioning.
27404 2007-08-08  Glenn Morris  <rgm@gnu.org>
27406         * Replace `iff' in doc-strings and comments.
27408 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
27410         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27412 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
27414         * fileio.c (Finsert_file_contents): Run format-decode and
27415         after_insert_file_functions on entire buffer when REPLACE is
27416         non-nil and inhibit modification_hooks and point_motion_hooks.
27417         For consistency, run after_insert_file_functions iff something
27418         got inserted.  Move signal_after_change and update_compositions
27419         after code running after_insert_file_functions.  Make sure that
27420         undo_list doesn't record intermediate steps of the decoding process.
27422 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27424         * emacs.c (main)
27425         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27426         Call malloc_enable_thread on interactive startup.
27428         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27429         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27430         [USE_PTHREAD]: Conditionalize with it.
27431         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27432         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27433         New functions.
27435 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
27437         * xdisp.c (redisplay_window): When restoring original buffer
27438         position, make sure it is still valid.
27440         * image.c (png_load): Ignore png-supplied background color.
27442 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27444         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27445         Use kCFAbsoluteTimeIntervalSince1970.
27447         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27448         New variable.
27449         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27450         event loop should be quit.
27451         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27452         Quit dialog event loop if quit_dialog_event_loop is set.
27454         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27455         (Selection): New typedef.  Use instead of ScrapRef.
27456         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27457         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27458         (mac_clear_selection): Rename from clear_scrap.
27459         (get_flavor_type_from_symbol): New argument SEL and subsume function of
27460         scrap_has_target_type.  All uses changed.
27461         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27462         (mac_selection_has_target_p): New functions.
27463         (mac_put_selection_value): Rename from put_scrap_string.
27464         (mac_get_selection_value): Rename from get_scrap_string.
27465         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27466         (put_scrap_private_timestamp, scrap_has_target_type)
27467         (get_scrap_private_timestamp): Remove functions.
27468         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27469         (x_own_selection, x_get_local_selection):
27470         Use mac_valid_selection_value_p.
27471         (x_own_selection): Don't use put_scrap_private_timestamp.
27472         Record OWNERSHIP-INFO into Vselection_alist instead.
27473         (x_get_local_selection): Don't check type if request is local.
27474         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27475         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27477 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
27479         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27480         add comment explaining why.
27482 2007-08-03  Richard Stallman  <rms@gnu.org>
27484         * fileio.c (Fvisited_file_modtime): Use make_time.
27486 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
27488         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27489         build.
27491 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
27493         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27495 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
27497         * puresize.h (BASE_PURESIZE): Increase to 1130000.
27499 2007-07-30  Richard Stallman  <rms@gnu.org>
27501         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27503 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
27505         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
27507 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
27509         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27510         remote default-directory.
27512         * buffer.c (mode-line-format): Update doc string.
27514 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27516         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27517         scroll bar gap.
27518         (x_scroll_bar_create): Set bar->fringe_extended_p.
27519         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27520         on frame edge.  Check fringe background extension.  Don't clear
27521         extended fringe background area.
27523         * w32term.h (struct scroll_bar): New member fringe_extended_p.
27524         (w32_fill_area): Enclose multiple statements with do ... while (0).
27526         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27527         Extend fringe background to scroll bar gap.
27528         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27529         Set bar->fringe_extended_p.
27530         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27531         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
27532         background extension.  Don't clear extended fringe background area.
27534         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27535         New member fringe_extended_p.
27537 2007-07-25  Glenn Morris  <rgm@gnu.org>
27539         * Relicense all FSF files to GPLv3 or later.
27541         * COPYING: Switch to GPLv3.
27543 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
27545         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27547         * data.c (Finteractive_form): Check for the presence of an
27548         `interactive-form' symbol property more thoroughly.
27550         * data.c (Finteractive_form): Use an `interactive-form' property if
27551         present, analogous to the function-documentation property.
27553 2007-07-24  Jason Rumney  <jasonr@gnu.org>
27555         * w32fns.c (x_real_positions): Get real position from OS instead of
27556         calculating it.
27558 2007-07-23  Jason Rumney  <jasonr@gnu.org>
27560         * filelock.c (current_lock_owner): Allow for @ sign in username.
27562 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
27564         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27565         remote default-directory.
27567         * buffer.c (mode-line-format): Describe above case in doc string.
27569 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
27571         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27572         Define if not defined.
27574 2007-07-18  Jason Rumney  <jasonr@gnu.org>
27576         * w32proc.c (w32_executable_type): Handle 64 bit executables.
27578 2007-07-18  Richard Stallman  <rms@gnu.org>
27580         * data.c (Fsetq_default): Doc fix.
27582         * eval.c (Fsetq): Doc fix.
27584 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
27586         * coding.c (Ffind_operation_coding_system):
27587         * eval.c (For, Fand): Doc fixes.
27588         Reported by Johan Bockgård.
27590 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
27592         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27594         * xterm.h: Declare x_ewmh_activate_frame.
27596         * xterm.c (x_ewmh_activate_frame): New function.
27597         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27599 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
27601         * window.c (Fdisplay_buffer): If largest or LRU window is the
27602         only window, split it even if it is not eligible for splitting.
27603         This restores the original behavior broken by the 2007-07-15
27604         change.
27606 2007-07-17  Glenn Morris  <rgm@gnu.org>
27608         * abbrev.c (abbrev_check_chars): New function.
27609         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27610         Call abbrev_check_chars to check abbrev characters are word
27611         constituents.  Doc fix.
27613 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
27615         * process.c (Fstart_process, Fmake_network_process)
27616         (read_process_output): Fix up last changes.
27618 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
27620         * makefile.w32-in (clean): Don't delete *~.
27622 2007-07-16  Andreas Schwab  <schwab@suse.de>
27624         * window.c (Fdisplay_buffer): Use NILP.
27625         (Fset_window_scroll_bars): Likewise.
27627 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
27629         * window.c (window_min_size_2): New function.
27630         (window_min_size_1, size_window, Fdisplay_buffer)
27631         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27632         windows without mode- or header-lines when window-min-height is
27633         too small.
27634         (size_window): Reset nodelete_p after testing it, following an
27635         earlier note by Kim F. Storm.
27636         (display_buffer): Do not set split_height_threshold to twice the
27637         value of window_min_height to avoid changing the value of a
27638         customizable variable.  Rather explicitly check whether the
27639         height of the window that shall be splitted is at least as large
27640         as split_height_threshold.
27641         (Fwindow_full_width_p): New defun.
27642         (syms_of_window): Defsubr it.
27644         * window.h: Add EXFUN for Fwindow_full_width_p.
27646 2007-07-14  Jason Rumney  <jasonr@gnu.org>
27648         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27650 2007-07-14  Richard Stallman  <rms@gnu.org>
27652         * eval.c (maybe_call_debugger): New function.
27653         (find_handler_clause): Use maybe_call_debugger.
27654         Call it when the handler says `debug'.
27655         Eliminate DEBUGGER_VALUE_PTR.
27656         (Fsignal): Eliminate debugger_value.
27657         (Qdebug): New variable.
27658         (syms_of_eval): Initialize it.
27660 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
27662         * eval.c (Fprogn):
27663         * keyboard.c (Ftrack_mouse):
27664         * print.c (Fwith_output_to_temp_buffer):
27665         * window.c (Fsave_window_excursion): Doc fix.
27667 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
27669         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27671 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
27673         * process.h (struct Lisp_Process): Turn slots infd, outfd,
27674         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27675         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27676         read_output_delay, and read_output_skip from Lisp_Objects to ints.
27677         Remove unused encoding_carryover.
27678         * process.c: Adjust all functions accordingly.
27680 2007-07-12  Richard Stallman  <rms@gnu.org>
27682         * term.c: Include unistd.h only if HAVE_UNISTD_H.
27684 2007-07-11  Jason Rumney  <jasonr@gnu.org>
27686         * makefile.w32-in (LIBS): Include OLE32.
27688         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27689         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27691 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
27693         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27694         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27695         from a Lisp_Object into a bare pointer.
27696         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27697         Adjust the code correspondingly.
27699         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27701         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27702         (term_show_mouse_face): Remove unused var `j'.
27703         (handle_one_term_event): Remove unused vars `i' and `j'.
27704         Don't cast return value of ttyname since it's not necessary.
27706 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
27708         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27709         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27711         * fns.c (map_char_table): Use an array of int for `indices' rather than
27712         an array of Lisp_Objects (which are only ever integers anyway).
27713         (Fmap_char_table): Update caller.
27714         * lisp.h: Update prototype.
27715         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27716         * fontset.c (Ffontset_info):
27717         * casetab.c (set_case_table): Update callers.
27719         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27721         * keymap.c (struct accessible_keymaps_data)
27722         (struct where_is_internal_data): New structures.
27723         (accessible_keymaps_1, where_is_internal_1): Use them to change
27724         interface to adhere to the one used by map_keymap.
27725         (Faccessible_keymaps, where_is_internal): Use map_keymap.
27726         (accessible_keymaps_char_table, where_is_internal_2): Remove.
27728         * keymap.h (map_keymap_function_t): More informative prototype.
27730 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
27732         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27733         (looking_at_1): Don't change search_regs and last_thing_searched
27734         if `inhibit-changing-match-data' is non-nil.
27735         (string_match_1, search_buffer, set_search_regs): Likewise.
27736         (syms_of_search): Add Lisp level definition for
27737         `inhibit-changing-match-data' and set it to nil.
27738         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27739         start and end of the match, instead of using values in search_regs.
27741 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
27743         * minibuf.c (Fcompleting_read): New value `confirm-only'
27744         for `require-match'.
27746 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
27748         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27749         part of the 2007-06-27 change to syms_of_fileio.
27751 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27753         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27754         Check WINDOWP before using XWINDOW.  Consolidate return statements.
27756 2007-06-27  Richard Stallman  <rms@gnu.org>
27758         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27760 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
27762         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27764 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27766         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27767         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27768         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27769         (_free_internal, memalign): Use them.
27770         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27771         Initialize to PTHREAD_MUTEX_INITIALIZER.
27772         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27773         (morecore_nolock): Rename from morecore.  All uses changed.
27774         Use only nolock versions of internal allocation functions.
27775         (_malloc_internal_nolock, _realloc_internal_nolock)
27776         (_free_internal_nolock): New functions created from
27777         _malloc_internal, _realloc_internal, and _free_internal.
27778         (_malloc_internal, _realloc_internal, _free_internal): Use them.
27779         Copy hook value to automatic variable before its use.
27780         (memalign): Copy hook value to automatic variable before its use.
27782 2007-06-26  Kenichi Handa  <handa@m17n.org>
27784         * coding.c (Ffind_operation_coding_system): Docstring improved.
27785         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27787 2007-06-25  David Kastrup  <dak@gnu.org>
27789         * keymap.c (Fcurrent_active_maps): Add `position' argument.
27790         (Fwhere_is_internal): Adjust call to `current-active-maps' to
27791         cater for additional parameter.
27793         * keymap.h: Adjust number of parameters to `current-active-maps'.
27795         * doc.c (Fsubstitute_command_keys): Adjust call of
27796         `current-active-maps'.
27798 2007-06-25  David Kastrup  <dak@gnu.org>
27800         * callint.c (Fcall_interactively): Make the parsing of interactive
27801         specs somewhat more readable.
27803 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27805         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27806         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
27807         if extended background has already been filled.
27809 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27811         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27812         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27814         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27815         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27816         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27817         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27818         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27819         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
27820         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27821         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27822         Run timers during dialog popup.
27823         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27825 2007-06-21  Jason Rumney  <jasonr@gnu.org>
27827         * image.c (convert_mono_to_color_image): Swap fore and background.
27829 2007-06-20  Jason Rumney  <jasonr@gnu.org>
27831         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27832         (w32_free_bdf_font): Unmap memory not handle.
27834 2007-06-20  Sam Steingold  <sds@gnu.org>
27836         * gmalloc.c (__morecore): Fix the declaration to comply with the
27837         definition.
27839 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
27841         * w32term.c (w32_delete_display): Remove leftover declaration.
27842         (w32_define_cursor, w32_initialize): Make static.
27844         * w32.c (_wsa_errlist): Fix typo in error message.
27845         (init_environment): Ignore any environment variable from the
27846         registry having a null value.
27848 2007-06-20  Glenn Morris  <rgm@gnu.org>
27850         * Makefile.in (LIBGIF): Default to -lgif.
27852 2007-06-17  Jason Rumney  <jasonr@gnu.org>
27854         * w32menu.c (add_menu_item): Don't use multibyte string functions on
27855         unicode strings.
27857 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
27859         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27860         Fix typo in docstring.
27862 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
27864         * w32menu.c (add_menu_item): Escape `&' characters in menu items
27865         and their keybindings.
27867 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
27869         * composite.c (update_compositions): Fix last fix.
27871 2007-06-14  Jason Rumney  <jasonr@gnu.org>
27873         * w32.c (get_process_times_fn): New function pointer.
27874         (globals_of_w32): Intialize it if present in kernel32.dll.
27875         (w32_get_internal_run_time): New function.
27877         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27879 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
27881         * composite.c (update_compositions): Check the validness of
27882         compositions.
27884 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27886         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27887         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27889         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27890         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27892         * macgui.h (USE_MAC_TOOLBAR): New define.
27894         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27895         Return immediately unless popup is activated.
27897         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27898         background to scroll bar gap.
27899         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27900         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27901         scroll bars on frame edge.  Check fringe background extension.
27902         Don't clear extended fringe background area.
27903         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27904         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27905         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27906         [USE_MAC_TOOLBAR]: New macros.
27907         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27908         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27909         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27910         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27911         [USE_MAC_TOOLBAR]: New functions.
27912         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27913         manually if previous repositioning has failed.
27914         (mac_handle_keyboard_event): Use precomputed event kind.
27915         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27916         as tool bar item click.  Handle mouse movement over tool bar items.
27918         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27919         toolbar_win_gravity.
27920         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27921         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27922         Add externs.
27924         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27925         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27927 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
27929         * image.c (search_image_cache): Remove unused variable.
27931 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
27933         * xfns.c, xmenu.c: Link to xaw3d if available.
27935 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27937         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27938         frame_foreground and frame_background.
27940         * image.c (lookup_image): Save frame foreground and background colors.
27941         (search_image_cache): Check if saved and current frame colors match.
27943 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
27945         * regex.c (regex_compile): Remove the `regnum' counter.
27946         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
27948 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
27950         * term.c: Include intervals.h to declare Fget_text_property.
27952 2007-06-10  Jason Rumney  <jasonr@gnu.org>
27954         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27956 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
27958         * callint.c (Fcall_interactively):
27959         * editfns.c (Fdelete_and_extract_region):
27960         * fileio.c (Fread_file_name):
27961         * fns.c (Fmapconcat):
27962         * keyboard.c (cmd_error_internal):
27963         * keymap.c (Fkey_description):
27964         * lread.c (openp):
27965         * minibuf.c (read_minibuf):
27966         * search.c (wordify):
27967         * sunfns.c (sel_read):
27968         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27969         * xfns.c (x_default_scroll_bar_color_parameter):
27970         * xmenu.c (menu_help_callback):
27971         * xselect.c (Fx_get_atom_name):
27972         * xterm.c (x_term_init): Use empty_unibyte_string.
27974 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
27976         * alloc.c (init_strings): Initialize canonical empty strings.
27977         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27978         canonical empty string when the requested size is 0.
27980         * emacs.c (empty_unibyte_string): Rename from empty_string.
27981         (empty_multibyte_string): New canonical empty string.
27982         (syms_of_emacs): Don't initialize empty_string.
27984         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27985         string, if appropriate.
27986         (empty_unibyte_string, empty_multibyte_string): New externs.
27987         (empty_string): Remove extern.
27989         * lread.c (syms_of_lread): Use empty_unibyte_string.
27991 2007-06-07  Jason Rumney  <jasonr@gnu.org>
27993         * s/ms-w32.h: Don't define HAVE_TZNAME.
27995         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27997 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27999         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28001         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28002         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28004         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28005         Don't call next handler.
28006         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28007         Remove argument.  Install handler to application.
28008         (set_frame_menubar): Don't change deep_p.
28009         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28010         FRAME_OUTER_TO_INNER_DIFF_Y.
28011         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28012         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28013         [HAVE_DIALOGS]: New macros.
28014         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28015         Use them.
28016         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28018         * macselect.c [MAC_OSX] (install_service_handler): Rename from
28019         init_service_handler.  All callers changed.  Return OSStatus value.
28021         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
28022         All callers changed so as not to call SetPortWindowPort.
28023         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28024         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28025         mac_draw_string_common.
28026         (mac_draw_image_string_qd): Likewise.
28027         (mac_draw_string_common): Use them.  Add INLINE.
28028         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28029         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28030         GetGlobalMouse.
28031         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28032         and FRAME_OUTER_TO_INNER_DIFF_Y.
28033         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28034         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28035         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28036         repositioning window to mac_handle_window_event.
28037         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28038         saving window location to mac_handle_window_event
28039         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28040         (install_menu_target_item_handler): Remove argument in extern.
28041         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28042         Also accept command events.
28043         (do_keystroke): New function created from XTread_socket.
28044         (init_command_handler): Remove functions.
28045         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28046         and save window location by kEventWindowShowing and kEventWindowHiding
28047         handlers here.  Don't call next handler for window state change and
28048         focus events.
28049         (mac_handle_application_event, mac_handle_keyboard_event)
28050         [TARGET_API_MAC_CARBON]: New functions.
28051         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28052         kEventWindowShowing and kEventWindowHiding events.  Move installation
28053         of mouse, font, text input and menu target item handlers to
28054         install_application_handler.
28055         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28056         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28057         New function.
28058         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28059         Register it.
28060         (XTread_socket) [TARGET_API_MAC_CARBON]:
28061         Consolidate SendEventToEventTarget calls.
28062         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28063         Move application activation handler to mac_handle_application_event.
28064         Move keyboard handler to mac_handle_keyboard_event.
28065         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28066         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28067         init_command_handler.  Call install_application_handler.
28069         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28070         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28072 2007-06-07  Glenn Morris  <rgm@gnu.org>
28074         * emacs.c (main): Use `emacs-copyright' in --version output.
28076 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
28078         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28080 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28082         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28084         * macgui.h: Replace WindowPtr with WindowRef.
28086         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28087         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
28088         Replace ControlHandle with ControlRef.
28089         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28091         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28092         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
28093         Replace ControlHandle with ControlRef.
28094         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
28095         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28097         * macterm.h (struct scroll_bar): Rename member control_handle_low
28098         and control_handle_high to control_ref_low and control_ref_high.
28099         All uses changed.
28100         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28101         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28102         respectively.  All uses changed.
28103         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28104         (install_window_handler, remove_window_handler): Replace WindowPtr
28105         with WindowRef in externs.
28107 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
28109         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28111 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
28113         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28115         * frame.c (Fmouse_position, Fmouse_pixel_position):
28116         Condition on HAVE_GPM too.
28118         * term.c (term_mouse_highlight): Remove unused variables.
28119         (Fterm_open_connection): Set gpm_zerobased to 1.
28120         (term_mouse_movement, term_mouse_click, handle_one_term_event):
28121         Use zero based co-ordinates.
28122         (handle_one_term_event): Report a drag as mouse movement too.
28124         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28126 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
28128         * image.c (search_image_cache): New function.  Require background
28129         color match if background color is unspecified in the image spec.
28130         (uncache_image, lookup_image): Use it.
28132 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
28134         * window.c (Fshrink_window): Reflow docstring.
28136 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
28138         * Version 22.1 released.
28140 2007-06-01  Richard Stallman  <rms@gnu.org>
28142         * xfns.c (x_encode_text): Add GCPRO.
28144 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28146         * xfns.c (x_set_name_internal): Save encoded name before
28147         x_encode_text in case string data is relocated.
28149 2007-05-31  Richard Stallman  <rms@gnu.org>
28151         * buffer.c (syms_of_buffer): Doc fix.
28153 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
28155         * sysdep.c (init_sys_modes): Add rather than replace with
28156         O_NONBLOCK.
28158         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28159         term_mouse_moveto.
28161         * termhooks.h (term_mouse_moveto): New extern.
28163         * term.c (mouse_face_window): Rename...
28164         (Qmouse_face_window): ...to this.
28165         (term_show_mouse_face, term_clear_mouse_face)
28166         (term_mouse_highlight): Use Qmouse_face_window.
28167         (term_mouse_moveto): New function.
28168         (term_mouse_position): Make it work.
28169         (syms_of_term): Uncomment assignment to mouse_position_hook.
28170         Staticpro Qmouse_face_window.
28172 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28174         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28175         around current_column call.
28177 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
28179         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28180         * xdisp.c (next_element_from_buffer):
28181         * window.c (delete_window):
28182         * term.c (term_mouse_highlight):
28183         * msdos.c (getdefdir):
28184         * macterm.c (mac_create_bitmap_from_bitmap_data)
28185         (init_font_name_table):
28186         * fns.c (Fsxhash):
28187         * data.c (Fmake_local_variable):
28188         * ccl.c (ccl_driver): Likewise.
28190 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28192         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28193         Call mac_wakeup_from_rne on window size change.
28195 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
28197         * image.c (uncache_image): Fix typo.
28199 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
28201         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28203 2007-05-22  Richard Stallman  <rms@gnu.org>
28205         * xterm.c (x_connection_closed): Remove NO_RETURN.
28207 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
28209         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28211 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
28213         * image.c (uncache_image): New function.
28214         (Fimage_refresh): New function.
28216 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
28218         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28220 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
28222         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28223         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28225 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
28227         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28228         conditional on [HAVE_GPM_H].
28230 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
28232         * syntax.c (skip_chars): Update syntax-table only after we checked that
28233         the new location is valid.
28235 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28237         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28238         mac_get_window_bounds.
28240 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
28242         * Makefile.in (LIBGPM): Allow it to be set from configure.
28243         If set then link Emacs with it.
28245         * config.in: Regenerate.
28247         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28248         New externs.
28250         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28251         Include gpm.h.
28252         (handle_one_term_event, term_gpm): New externs.
28254         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28255         and allow it to be interrupted by SIGIO.
28257         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28258         (wait_reading_process_output): Wait on gpm_fd too.
28259         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28260         (add_gpm_wait_descriptor_called_flag): New variable.
28261         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28263         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28264         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28265         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28266         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28267         (make_lispy_event): Add case GPM_CLICK_EVENT.
28268         (read_avail_input): Handle mouse input.
28270         * term.c (write_glyphs_with_face): New function.
28271         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28272         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28273         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28274         (mouse_face_face_id, term_gpm, pos_x, pos_y)
28275         (last_mouse_x, last_mouse_y): New variables.
28276         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28277         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28278         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28279         (Fterm_close_connection): New functions.
28280         (term_init): Initialise mouse_face_window.
28282 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
28284         * xdisp.c (redisplay_window): If first window line is a
28285         continuation line, recompute the new window start instead of
28286         recentering.
28288 2007-05-18  Glenn Morris  <rgm@gnu.org>
28290         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28291         Suggested by Alfred M. Szmidt <ams@gnu.org>.
28293 2007-05-17  Glenn Morris  <rgm@gnu.org>
28295         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28297 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28299         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28300         dead key repeat and up events.
28302 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
28304         * image.c (pbm_load): Check image size for monochrome pbm.
28306 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
28308         * xterm.c (XTread_socket): Revert last change.
28310 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
28312         * image.c (pbm_load): Correctly check image size for greyscale pbm.
28314         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28316 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
28318         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28319         mixup (YAILOM).
28321 2007-05-07  Andreas Schwab  <schwab@suse.de>
28323         * keymap.c (Flookup_key): Fix typo in last change.
28325 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
28327         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28328         mapping for unibyte strings.
28330 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28332         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28333         (Fx_popup_dialog) [MAC_OSX]: Likewise.
28335 2007-04-29  Richard Stallman  <rms@gnu.org>
28337         * insdel.c (replace_range): For undo, record insertion first.
28339 2007-04-29  Andreas Schwab  <schwab@suse.de>
28341         * lisp.h (VECSIZE): Use OFFSETOF.
28343 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28345         * xdisp.c (try_window_reusing_current_matrix): Fix number of
28346         disabled lines.
28348 2007-04-28  Richard Stallman  <rms@gnu.org>
28350         * lread.c (read_escape): In a string, \s is always space.
28352 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
28354         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28356         * gtkutil.c (xg_update_menubar, create_menus): Create empty
28357         submenu for menu bar items.
28359 See ChangeLog.10 for earlier changes.
28361 ;; Local Variables:
28362 ;; coding: utf-8
28363 ;; End:
28365   Copyright (C) 2007, 2008, 2009, 2010
28366     Free Software Foundation, Inc.
28368   This file is part of GNU Emacs.
28370   GNU Emacs is free software: you can redistribute it and/or modify
28371   it under the terms of the GNU General Public License as published by
28372   the Free Software Foundation, either version 3 of the License, or
28373   (at your option) any later version.
28375   GNU Emacs is distributed in the hope that it will be useful,
28376   but WITHOUT ANY WARRANTY; without even the implied warranty of
28377   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28378   GNU General Public License for more details.
28380   You should have received a copy of the GNU General Public License
28381   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.