(narrow_foreground_group, widen_foreground_group): Static.
[emacs.git] / src / ChangeLog
blobe1408227092c4a2bebc08da12c15422c4abf1850
1 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
3         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
4         (init_sys_modes): Check that gpm_tty is the current tty.
6         * alloc.c (allocate_terminal): Set the vector size to only count the
7         lisp fields.  Initialize those to nil.
8         (mark_object): Don't treat terminals specially.
9         (mark_terminal): Remove.
10         (mark_terminals): Use mark_object instead.
12         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13         the GC to the beginning.
15         * indent.h:
16         * indent.c: Use EMACS_INT for ints coming from Elisp data.
18         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20 2007-09-25  Jason Rumney  <jasonr@gnu.org>
22         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24         * w32console.c (create_w32cons_output): Remove.
26         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
28         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29         (reset_sys_modes): Use reset_terminal_modes_hook.
31 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
33         * eval.c (do_autoload): Don't output any message.
35 2007-09-24  Juri Linkov  <juri@jurta.org>
37         * emacs.c (standard_args): Change priority of "--no-splash"
38         from 40 to 3.  Add "--no-desktop" with the same priority.
40 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
42         * alloc.c (gc_sweep): Check cons cell mark bits word by word
43         and optimize the case where they are all 1.
45 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
47         * lisp.h (abs): Define if not defined.
48         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
49         Don't define `abs', since it's defined in lisp.h.
51 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
53         * term.c (DEV_TTY): New macro.  Provide a definition for
54         MS-Windows.
55         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
56         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
57         (init_tty): Use DEV_TTY instead of "/dev/tty".
58         [WINDOWSNT]: No need to protect from NAME arg being null.
60 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
62         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
63         up the tty state.
65 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
67         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
68         (gpm_tty): Change its type.
69         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
70         (gpm_tty): Change its type and initialize it.
71         (Fterm_open_connection): Check the frame is indeed a tty.
72         Use the new gpm_tty.
73         (Fterm_close_connection): Use the new gpm_tty.
74         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
75         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
77 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
79         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
80         underline_color, to draw strike-through.
82 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
84         * lisp.h (allocate_terminal): Declare.
86         * window.c (candidate_window_p): Consider frames that are being placed
87         by the user as somewhere between visible and iconified.
88         (window_loop): Prefer windows on the current frame.
89         (Fselect_window): Move the use of select-frame to the beginning so we
90         can just delegate all the work (it'll call us back anyway).
92         * frame.c (Qdisplay_environment_variable):
93         * frame.h (Qdisplay_environment_variable): Delete.
95         * .gdbinit (xbacktrace): Print the arg's address rather than the value
96         of the first arg, since that value may be a union.
98         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
99         parameter rather than Qdisplay_environment_variable.  If all else
100         fails, look for DISPLAY in initial-environment.
102 2007-09-21  Glenn Morris  <rgm@gnu.org>
104         * Makefile.in (emacstool): Remove target.
105         (lisp, shortlisp): Remove termdev.elc.
107 2007-09-21  Markus Triska  <markus.triska@gmx.at>
109         * xterm.c (x_delete_display): Compile session management conditionally.
111 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
113         * callproc.c (getenv_internal_1): New function.
114         (getenv_internal): Use it.
115         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
117         * terminal.c (get_terminal): Don't accept ints to represent terminals.
118         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
119         (Fset_terminal_parameter): Work with dead terminals as well.
120         (Fmodify_terminal_parameters): Remove.
122         * terminal.c (get_terminal): Handle terminals.
123         Make sure the terminal returned is live.
124         (create_terminal): Use allocate_terminal.
125         (mark_terminals): Move to alloc.c.
126         (delete_terminal): Use terminal->name as liveness status.
127         NULL out fields after freeing their contents.
128         Don't deallocate the object.
129         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
130         rather than an int.
131         (Fterminal_live_p): Accept non-integer arguments.
132         (Fterminal_list): Return terminal objects rather than an ints.
134         * alloc.c (enum mem_type): New member for `terminal' objects.
135         (allocate_terminal): New function.
136         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
137         Handle terminals.
138         (mark_terminal): New fun.
139         (mark_terminals): Move from terminal.c.
141         * term.c (get_tty_terminal): Don't treat output_initial specially.
142         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
143         (delete_tty): Use terminal->name as liveness status.
145         * termhooks.h (struct terminal): Make it into a pseudovector.
146         Remove `deleted' replaced by checking `name's nullness.
148         * print.c (print_object): Handle terminals.
150         * lisp.h (enum pvec_type): New `terminal' pseudovector.
151         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
153         * frame.c (make_terminal_frame):
154         * keyboard.c (tty_read_avail_input):
155         * w32term.c (x_delete_terminal):
156         * xfns.c (Fx_create_frame, x_create_tip_frame):
157         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
159 2007-09-20  Glenn Morris  <rgm@gnu.org>
161         * process.c (Fmake_network_process): Doc fix.
163 2007-09-19  Jason Rumney  <jasonr@gnu.org>
165         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
167 2007-09-19  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
169         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
170         Fix a C warning regarding variable constness.
172         * xterm.c (handle_one_xevent): Fix a C warning.
174 2007-09-18  Jason Rumney  <jasonr@gnu.org>
176         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
178 2007-09-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
180         * gtkutil.c (gdpy_def): New variable.
181         (xg_initialize): Initialize gdpy_def.
182         (xg_display_close): If no other display exists, set gdpy_def to a
183         new connection.
185 2007-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
187         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
188         when we have no file name for the icon.
189         (xg_tool_bar_expose_callback): Remove.
190         (xg_create_tool_bar): Don't connect expose signal to
191         xg_tool_bar_expose_callback.
192         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
194 2007-09-16  Andreas Schwab  <schwab@suse.de>
196         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
197         values instead of zapping them.
199 2007-09-14  Glenn Morris  <rgm@gnu.org>
201         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
202         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
203         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
204         scope and rename to omfib_buffer for clarity.
205         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
207 2007-09-14  Kenichi Handa  <handa@m17n.org>
209         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
211 2007-09-13  Jason Rumney  <jasonr@gnu.org>
213         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
215         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
217         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
218         (mac_term_init): Call here instead, passing rif.
220 2007-09-13  Glenn Morris  <rgm@gnu.org>
222         * s/hpux.h: No longer define `static' as nothing.
224 2007-09-13  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
226         * callint.c (Fcall_interactively): Remove unused var `fun'.
228 2007-09-12  Romain Francoise  <romain@orebokech.com>
230         * window.c (prefer_window_split_horizontally, display_buffer):
231         Revert 2007-09-08 change.
233 2007-09-12  Glenn Morris  <rgm@gnu.org>
235         * alloca.c: Remove file.
236         * Makefile.in (alloca): Do not undef.
237         (allocaobj, alloca.o): Remove.
238         (otherobj): Remove allocaobj.
239         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
240         * regex.c (C_ALLOCA): Remove all references and code that was only
241         used when this was defined.
242         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
243         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
244         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
246         * Makefile.in (SOURCES, unlock, relock): Delete.
248         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
249         (menu_grab_callback): All uses changed.
251         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
252         (x_reply_selection_request): All uses changed.
254 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
256         * lread.c (load_warn_old_style_backquotes): Change message to look
257         better when it appears in the middle of byte-compiler messages.
259 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
261         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
263         * xterm.c (x_create_terminal): Add comment.
265         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
267 2007-09-10  Richard Stallman  <rms@gnu.org>
269         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
271 2007-09-10  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
273         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
274         (DEFUN): Document `intspec', use it instead of `prompt'.
276         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
278         * data.c (Finteractive_form): If the interactive specification starts
279         with a `(', use it as a Lisp form.
281         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
282         name and file modes.
284         * callint.c (Fcall_interactively): Comment fixes.
286 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
288         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
289         and compiled functions.
291 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
293         * window.c (prefer_window_split_horizontally): New variable.
294         (display_buffer): Consider splitting window horizontally depending
295         on prefer_window_split_horizontally.
297 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
299         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
301 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
303         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
305         * frame.c (x_set_frame_parameters): Check number is positive before
306         using XFASTINT.
308         * window.c (freeze_window_start): Don't presume selected_window holds
309         a window object.
310         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
312 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
314         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
316 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
318         * window.c (Vsplit_window_preferred_function): New var.
319         (Fdisplay_buffer): Use it.
320         (syms_of_window): Export, and initialize it.
322 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
324         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
326 2007-09-06  Glenn Morris  <rgm@gnu.org>
328         * gtkutil.c (menu_grab_callback) <cnt>:
329         * xselect.c (x_reply_selection_request) <cnt>: Move static
330         variable to file scope.
332 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
334         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
335         consistent values of selected_frame and selected_window.
337 2007-09-04  Jason Rumney  <jasonr@gnu.org>
339         * w32console.c (initialize_w32_display): Zero unused hooks.
341 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
343         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
344         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
346 2007-09-04  Jason Rumney  <jasonr@gnu.org>
348         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
349         in w32console.c.  Set up input.  Remove XXX comments that have been
350         confirmed as correct.
352         * s/ms-w32.h (MULTI_KBOARD): Define.
354         * w32console.c (one_and_only_w32cons): Remove.
355         (initialize_w32_display): Take terminal argument.
357         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
358         initialize_w32_display.
359         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
361         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
363         * keyboard.c (discard_mouse_events): Discard it.
364         (make_lispy_event): Translate it to a lisp event.
365         (lispy_wheel_names): Add wheel-left and right events.
366         (syms_of_keyboard): Enlarge wheel_syms.
368         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
369         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
371         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
373         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
374         from WM_MOUSEHWHEEL.
375         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
377         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
378         terminal.
380         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
381         keyboard for the terminal.
383 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
385         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
386         (Vresume_tty_hook): Rename from Vresume_tty_functions.
387         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
388         and resume-tty-function to resume-tty-hook.
389         (Fsuspend_tty, Fresume_tty): Use new names.
391 2007-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
393         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
394         if it starts with "n:".
396 2007-08-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
398         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
400 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
402         * frame.h:
403         * frame.c (Qterm_environment_variable): Remove.
404         (syms_of_frame): Don't init and staticpro it.
406         * callproc.c (getenv_internal): Remove special case for $TERM.
408         * callproc.c (Vinitial_environment): New variable.
409         (set_initial_environment): Initialize it.
410         (syms_of_callproc): Declare it.
411         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
412         TERM under which a process runs is never related to the TERM in which
413         Emacs is running.
415 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
417         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
418         * s/darwin.h: ... do it here.
420 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
422         * lisp.h (set_initial_environment): Rename from set_global_environment.
424         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
425         removed by mistake on the multi-tty branch.
427         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
428         (Fmodify_frame_parameters): Return a value.
430         * image.c (png_load): Comment-out var only used in commented-out code.
432         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
433         before passing it to mark_object.
435         * xfaces.c (internal_resolve_face_name): Return a value.
436         (internal_resolve_face_name, resolve_face_name_error): Comment out.
438         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
439         (x_icon): Comment-out var only used in commented-out code.
441 2007-08-29  Romain Francoise  <romain@orebokech.com>
443         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
444         QUIT hasn't been provided.
446 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
448         * callproc.c (child_setup, getenv_internal): Use the
449         display-environment-variable and term-environment-variable frame
450         params.
451         (set_initial_environment): Initialise Vprocess_environment.
453         * config.in: Disable multi-keyboard support on a mac.
455         * frame.c (Qterm_environment_variable)
456         (Qdisplay_environment_variable): New variables.
457         (syms_of_frame): Intern and staticpro them.
458         (Fmake_terminal_frame): Disable output method test.
460         * frame.h: Declare them here.
462         * macfns.c (x_set_mouse_color): Get rif from the frame.
463         (x_set_tool_bar_lines): Don't use updating_frame.
464         (mac_window): Add 2 new parameters for consistency with other systems.
465         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
466         frame parameters following what is done in X11 and w32.  Don't use
467         FRAME_MAC_DISPLAY_INFO.
468         (Fx_open_connection, start_hourglass): Remove window-system check.
469         (x_create_tip_frame): Get the keyboard from the terminal.
471         * macmenu.c: Reorder includes.
472         (Fx_popup_menu): Use terminal specific mouse_position_hook.
474         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
475         terminal parameter.
476         (x_clear_frame): Add a frame parameter.
477         (note_mouse_movement): Get rif from the frame.
478         (mac_term_init): Initialize the terminal.
479         (mac_initialize): Make static and move terminal initialization ...
480         (mac_create_terminal): ... to this new function.
482         * macterm.h (struct mac_display_info): Add terminal.
483         (mac_initialize): Delete declaration.
485         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
487         * sysdep.c: Comment out text after #endif.
489         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
490         is defined.  Better initialize ttys in windows.  Use terminal
491         specific mouse_position_hook.
493         * termhooks.h (union display_info): Add mac_display_info.
495         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
496         Set the default minibuffer frame, window_system and the rest of the
497         frame parameters following what is done in X11.
499         * w32term.c (w32_initialize): Make static.
501         * xselect.c (x_handle_selection_clear): Only access
502         terminal->kboard when MULTI_KBOARD is defined.
504         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
505         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
507 2007-08-29  Jason Rumney  <jasonr@gnu.org>
509         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
510         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
512         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
513         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
515         * keyboard.c (restore_kboard_configuration): Only define when
516         MULTI_KBOARD defined.
518         * makefile.w32-in: Update dependancies from Makefile.in
519         (OBJ1): Add terminal.$(O)
521         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
522         Don't define function body.
523         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
525         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
527         * w32.c (request_sigio, unrequest_sigio): Remove.
529         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
530         (w32con_clear_frame, w32con_clear_end_of_line)
531         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
532         (w32con_delete_glyphs, w32con_set_terminal_window)
533         (scroll_line, w32_sys_ring_bell): Add frame arg.
534         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
535         Add terminal arg.
536         (PICK_FRAME): Remove.
537         (w32con_write_glyphs): Use frame specific terminal coding.
538         (one_and_only_w32cons): New global variable.
539         (initialize_w32_display): Use it for storing hooks.
540         (create_w32cons_output): New function.
542         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
543         arg a frame.
545         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
546         Set window_system.
547         (x_set_tool_bar_lines): Don't use updating_frame.
548         (Fx_create_frame): Set terminal and ref count.
549         (Fx_open_connection): Remove window-system check.
551         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
553         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
554         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
555         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
556         Add frame arg.
557         (x_delete_terminal, w32_create_terminal): New functions.
558         (w32_term_init): Create a terminal.
559         (w32_initialize): Move terminal specific initialization to
560         w32_create_terminal.
562         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
563         (w32_clear_rect, w32_clear_area): Use background from frame.
564         (w32_display_info): Add terminal.
565         (w32_sys_ring_bell, x_delete_display): Declare here.
567         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
569         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
571 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
573         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
574         Fix get_named_tty calls for the controlling tty.
576 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
578         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
580 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
582         * term.c (tty_insert_glyphs): Add missing first parameter.
584 2007-08-29  Karoly Lorentey  <karoly@lorentey.hu>
586         * buffer.c (Fbuffer_list, Fbury_buffer):
587         Take frame->buried_buffer_list into account.
589         * cm.c (current_tty): New variable, for cmputc().
590         (cmputc): Use it.
591         (cmcheckmagic): Add tty parameter, look up terminal streams there.
592         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
593         (cmgoto): Add tty parameter.  Pass it on to calccost().
594         Use emacs_tputs() instead of tputs().
596         * cm.h (emacs_tputs): New macro to set current_tty, and then call
597         tputs().
598         (current_tty): New variable, for cmputc().
599         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
601         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
602         (internal_condition_case, internal_condition_case_1)
603         (internal_condition_case_2): Don't abort when x_catching_errors.
605         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
606         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
607         prevent crashes caused by bogus longjmps in read_char.
609         * keymap.h (Fset_keymap_parent): Add EXFUN.
611         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
612         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
613         Remove redundant definition.
615         * macfns.c (x_set_mouse_color, x_make_gc):
616         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
618         * w32term.c (x_free_frame_resources):
619         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
620         (w32_initialize): Use the accessor macros for terminal characteristics.
622         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
623         Use the accessor macros for terminal characteristics.
624         * msdos.c (internal_terminal_init): Use the accessor macros for
625         terminal characteristics.
626         (ScreenVisualBell, internal_terminal_init):
627         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
629         * termopts.h (no_redraw_on_reenter): Declare.
631         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
632         (mark_terminals, mark_ttys): Declare.
633         (Fgarbage_collect): Call them.
634         (mark_object): Mark buried_buffer_list.
636         * prefix-args.c: Include stdlib.h for exit.
638         * syssignal.h: Add comment.
640         * indent.c: Include stdio.h.
642         * window.h (Vinitial_window_system): Declare.
643         (Vwindow_system): Delete declaration.
645         * fontset.c (Finternal_char_font): Use FRAME_RIF.
647         * image.c (lookup_image): Don't initialize `c' until the xasserts
648         have been run.
650         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
651         FRAME_FOREGROUND_PIXEL.
653         * print.c (print_preprocess): Don't lose print_depth levels while
654         iterating.
656         * widget.c (update_from_various_frame_slots):
657         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
659         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
660         frames.
661         (window_internal_height): Remove bogus make_number call.
662         (init_window_once): Call make_terminal_frame with two zero parameters.
664         * fileio.c (Fread_file_name): Update comment.
666         * callint.c (Fcall_interactively):
667         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
668         Make sure it is correctly unwound.
670         * xsmfns.c (x_session_close): New function.
672         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
673         Delete declarations.
675         * xterm.h: Remove declaration for x_fully_uncatch_errors.
676         (x_output): Remove background_pixel and foreground_pixel fields.
677         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
678         (x_delete_device):
679         (x_session_close): Declare.
681         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
682         (read_filtered_event): Call `read_char' with a local
683         `wrong_kboard_jmpbuf'.
685         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
686         Don't call single_kboard_state.  Use FRAME_RIF.
688         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
689         systems.
691         * lisp.h (set_process_environment): Rename to `set_global_environment'.
692         (Fframe_with_environment, Fset_input_meta_mode)
693         (Fset_quit_char): EXFUN.
694         (x_create_device, tty_output, terminal, tty_display_info): Declare.
695         (init_sys_modes, reset_sys_modes): Update prototypes.
696         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
698         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
699         Vlocal_key_translation_map, and Vkeyboard_translate_table.
700         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
701         Delete declarations.
702         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
703         (temporarily_switch_to_single_kboard, tty_read_avail_input):
704         New declarations.
706         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
707         already does that during init_display().  Call syms_of_keymap
708         before syms_of_keyboard.  Call `syms_of_terminal'.
709         Call set_initial_environment, not set_process_environment.
710         (shut_down_emacs): Call reset_all_sys_modes() instead of
711         reset_sys_modes().
713         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
714         (internal_resolve_face_name, resolve_face_name_error): New functions.
715         (resolve_face_name): Protect against loops and errors thrown by Fget.
716         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
717         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
719         * scroll.c: Replace CURTTY() with local variables throughout the
720         file (where applicable).
721         (calculate_scrolling, calculate_direct_scrolling)
722         (scrolling_1, scroll_cost): Use the accessor macros for terminal
723         characteristics.
725         * keymap.c (Vfunction_key_map): Remove.
726         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
727         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
728         (Vkey_translation_map): Remove.
729         (syms_of_keymap): Remove DEFVAR for key-translation-map.
730         (Fdescribe_buffer_bindings):
731         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
732         Update for terminal-local key-translation-map.
734         * Makefile.in (callproc.o): Update dependencies.
735         (lisp, shortlisp): Add termdev.elc.
736         (obj): Add terminal.o.
737         (terminal.o): Add dependencies.
738         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
739         (data.o, fns.o): Add termhooks.h dependency.
740         (SOME_MACHINE_LISP): Add dnd.elc.
741         (minibuf.o): Fix typo.
742         Update dependencies.
744         * data.c (do_symval_forwarding, store_symval_forwarding)
745         (find_symbol_value): Use the selected frame's keyboard, not
746         current_kboard.
748         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
749         Vwindow_system.
751         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
752         Fmenu_bar_open.
753         (syms_of_xmenu): Update defsubr.
754         (mouse_position_for_popup, Fx_popup_menu)
755         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
756         (set_frame_menubar, free_frame_menubar)
757         (create_and_show_popup_menu, xmenu_show, )
758         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
759         an X frame.
761         * xselect.c (x_own_selection): Abort if not an X frame.
762         (some_frame_on_display): Check if it is an X frame.
763         (x_handle_selection_clear): Deal with MULTI_KBOARD.
765         * coding.c: Include frame.h and termhooks.h.
766         (terminal_coding, keyboard_coding): Delete.
767         (Fset_terminal_coding_system_internal):
768         (Fset_keyboard_coding_system_internal):
769         (Fkeyboard_coding_system):
770         (Fterminal_coding_system): Add a terminal parameter.
771         Get terminal_coding from the terminal.
772         (init_coding_once): Don't call setup_coding_system here.
774         * dispextern.h (set_scroll_region, turn_off_insert)
775         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
776         (tty_clear_end_of_line, tty_setup_colors)
777         (delete_tty, updating_frame)
778         (produce_special_glyphs, produce_glyphs, write_glyphs)
779         (insert_glyphs): Remove.
780         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
781         (tty_turn_off_highlight, get_tty_size): Add declaration.
782         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
784         * frame.h (enum output_method): Add output_initial.
785         (struct x_output): Delete.
786         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
787         Access foreground_pixel and background_pixel directly from the frame.
788         (tty_display): Delete.
789         (struct frame): Add buried_buffer_list, foreground_pixel,
790         background_pixel and terminal.  Delete kboard
791         (union output_data): Add tty.
792         (FRAME_KBOARD): Get the kboard from the terminal.
793         (FRAME_INITIAL_P): New macro.
794         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
795         (Qterm_environment_variable, Qdisplay_environment_variable)
796         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
797         New declarations.
799         * termchar.h (tty_output, tty_display_info): New structures.
800         (tty_list): Declare.
801         (FRAME_TTY, CURTTY): New macros.
802         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
803         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
804         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
805         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
807         * callproc.c: Include frame.h and termhooks.h, for terminal
808         parameters.
809         (add_env): New function.
810         (child_setup): Use it.
811         (child_setup, getenv_internal): Handle the new Vprocess_environment.
812         (getenv_internal): Fix get_terminal_param call.
813         (Fgetenv_internal, egetenv): Update doc.
814         (syms_of_callproc): Initialize Vprocess_environment to nil.
815         Register and initialize them.  Remove obsolete defvars.  Update doc
816         strings.
817         (child_setup): Handle Vlocal_environment_variables.
818         (getenv_internal): Add terminal parameter.
819         Handle Vlocal_environment_variables.
820         (Fgetenv_internal): Add terminal parameter.
821         (child_setup, getenv_internal, Fgetenv_internal): Store the local
822         environment in a frame (not terminal) parameter.  Update doc strings.
823         (set_initial_environment): Rename from set_global_environment.
824         Store Emacs environment in initial frame parameter.
826         * xdisp.c (redisplay_internal): Update references to
827         `previous_terminal_frame'.
828         (display_mode_line, Fformat_mode_line): Replace calls to
829         `push_frame_kboard' with `push_kboard'.
830         (get_glyph_string_clip_rects): Add extra parentheses and
831         braces to prevent compiler warnings.
832         (calc_pixel_width_or_height): Add xassert to check that the
833         frame is alive.  Don't call `lookup_image' on a termcap frame.
834         (message2_nolog, message3_nolog, redisplay_internal)
835         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
836         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
837         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
838         (Fx_display_pixel_width, Fx_display_pixel_height)
839         (Fx_display_planes, Fx_display_color_cells)
840         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
841         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
842         (Fx_display_backing_store, Fx_display_visual_class)
843         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
844         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
846         * xfns.c (x_set_foreground_color x_set_background_color)
847         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
848         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
849         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
850         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
851         terminal that is being deleted.
852         (Fx_create_frame): Use `store_frame_param' to set `window-system'
853         frame parameter, and make sure it overrides any user-supplied setting.
854         (Fx_close_connection, Fx_synchronize): Unify argument names with
855         the rest of the DEFUNs.
857         * dispnew.c (Fsend_string_to_terminal): Update call to
858         `get_tty_terminal'.
859         (Fredraw_frame, Fsend_string_to_terminal)
860         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
861         FRAME_TERMCAP_P and FRAME_TTY.
862         (window_change_signal): Don't believe width/height values that are
863         impossibly small.
864         (Vinitial_window_system): Rename from Vwindow_system.
865         (termscript, Wcm, rif): Delete.
867         * termhooks.h (struct terminal): New struct containing the
868         previously global text display hooks and new members NAME,
869         DELETED and PARAM_ALIST.
870         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
871         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
872         (FRAME_RIF): New macros.
873         (get_terminal_param, get_device): New declarations.
874         (termscript): Delete declaration.
876         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
877         (XTflash, x_free_frame_resources, x_scroll_bar_create)
878         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
879         FRAME_FOREGROUND_PIXEL.
880         (x_fully_uncatch_errors): Disable definition.
881         (x_scroll_bar_expose): Fix reference to foreground pixel.
882         (XTread_socket): Disable loop on all X displays.
883         (x_delete_terminal): Don't set terminal->deleted and let
884         delete_terminal delete the frames on the terminal.
885         (x_delete_display): Doc update to reflect changes in
886         delete_terminal.
887         (x_display_info) <terminal>: Move member earlier in the struct.
888         (deleting_tty): Remove old variable.
889         (Fsuspend_tty): Call clear_tty_hooks.
890         (Fresume_tty, init_tty): Call set_tty_hooks.
891         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
892         errors on X frames.
893         (x_catch_errors_unwind): Abort if x_error_message is NULL.
894         (handle_one_xevent): Initialize `f' to NULL.
895         (x_delete_terminal, x_create_terminal): New functions.
896         (XTset_terminal_modes, XTreset_terminal_modes)
897         (XTread_socket, x_connection_closed, x_term_init)
898         (x_term_init, x_delete_display): Add terminal parameter.
899         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
900         X connections.
902         * frame.c (Fframep): Deal with output_initial.
903         (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
904         (Qtty_type, Qwindow_system, Qenvironment)
905         (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
906         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
907         (make_terminal_frame): Don't create frames on a terminal that is
908         being deleted.
909         (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
910         FRAME_FOREGROUND_PIXEL.
911         (store_frame_param): Check for found_for_frame before calling XFRAME.
912         (Fmake_terminal_frame): Handle NULL tty names correctly.
913         (syms_of_frame): Enhance doc string of `default-frame-alist'.
914         (Fdelete_frame): Remove unused variable `count'.
915         (Qenvironment): New variable.
916         (Fdelete_frame): Don't allow other frames to refer to a deleted
917         frame in their 'environment parameter.
918         (Fframe_with_environment): New function.
919         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
920         (get_future_frame_param): New function.
921         (Fmake_terminal_frame): Use it.
922         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
924         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
925         * sysdep.c (reset_sys_modes): Update for renames.
927         * keyboard.c (tty_read_avail_input): New function.
928         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
929         (syms_of_keyboard): Defsubr them.
930         (Fset_input_meta_mode, Fset_quit_char): New functions.
931         (Fset_input_mode): Split to above functions.
933         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
934         parameter.  Use it in call to `read_char'.
935         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
936         Set wrong_kboard_jmpbuf correctly in recursive calls.
937         Use current_kboard to access Vkeyboard_translate_table.
938         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
939         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
940         Update longjmp invocations.  Remember the original current_kboard,
941         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
942         changes it.  Comment out unnecessary calls to
943         `record_single_kboard_state' and `any_kboard_state'.
944         Update recursive calls.
945         (wrong_kboard_jmpbuf): Remove global variable.
946         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
947         Handle deleted interrupted_kboards correctly; that is a legal
948         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
949         and read_char calls.  Abort if interrupted_kboard died in read_char.
950         (any_kboard_state, single_kboard_state)
951         (push_frame_kboard): Remove function.
952         (pop_kboard): Switch out of single_kboard mode if the kboard has
953         been deleted.  Remove unused variable.  Help debugging by not
954         changing current_kboard unnecessarily.  Set current_kboard to the
955         kboard of the selected frame when the stored kboard object has
956         been deleted before pop_kboard.
957         (temporarily_switch_to_single_kboard): Change first parameter to a
958         frame pointer.  Throw an error when caller wants to change kboards
959         while in single_kboard mode.  Don't push_kboard if we weren't in
960         single kboard state.  Don't pop_kboard if we popped into any
961         kboard state.
962         (restore_kboard_configuration): Abort if pop_kboard changed the
963         kboard in single_kboard mode.  Call pop_kboard only after setting
964         up single_kboard mode.
965         (Frecursive_edit): Switch to single_kboard mode only in nested
966         command loops.
967         (cmd_error, command_loop, command_loop_1, timer_check):
968         Comment out unnecessary call to `any_kboard_state' and
969         `record_single_kboard_state'.
970         (delete_kboard): Exit single_kboard mode if we have just deleted
971         that kboard.  Use FRAME_KBOARD.
972         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
973         `fatal_error_signal'.
974         (record_single_kboard_state): Don't push_kboard if we weren't in
975         single kboard state.  Don't pop_kboard if we popped into any
976         kboard state.
977         (push_frame_kboard): Rename to push_kboard.
978         (kbd_buffer_get_event): Use FRAME_TERMINAL.
979         (read_avail_input): Read input from all terminals.
980         (mark_kboards): Also mark Vkeyboard_translate_table.
981         (kbd_buffer_store_event_hold): Simplify condition.
982         (read_key_sequence): Reinitialize fkey and keytran at each replay.
983         (Vkeyboard_translate_table): Move to struct kboard.
984         (init_kboard): Initialize Vkeyboard_translate_table.
985         (syms_of_keyboard): Use DEFVAR_KBOARD to define
986         Vkeyboard_translate_table.  Update doc strings.  Update docs of
987         local-function-key-map and function-key-map.
989         * terminal.c: New file.
991         * term.c: Include errno.h.
992         (Vring_bell_function, device_list, initial_device)
993         (next_device_id, ring_bell, update_begin, update_end)
994         (set_terminal_window, cursor_to, raw_cursor_to)
995         (clear_to_end, clear_frame, clear_end_of_line)
996         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
997         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
998         (syms_of_term): Move their initialization to terminal.c.
999         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
1000         (Ftty_display_color_cells)
1001         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
1002         (clear_tty_hooks, set_tty_hooks)
1003         (init_tty, maybe_fatal): New functions.
1004         (Ftty_type): Return nil if terminal is not on a tty instead of
1005         throwing an error.  Doc update.
1006         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
1007         Doc update.  Initialize new subrs and variables.
1008         (delete_tty): Use terminal->deleted.
1009         (tty_set_terminal_modes): Rename from set_terminal_modes.
1010         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
1011         (set_scroll_region): Rename to `tty_set_scroll_region'.
1012         (turn_on_insert): Rename to `tty_turn_on_insert'.
1013         (turn_off_insert): Rename to `tty_turn_off_insert'.
1014         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
1015         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
1016         (toggle_highligh): Rename to `tty_toggle_highlight'.
1017         (background_highlight): Rename to `tty_background_highlight'.
1018         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
1019         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
1020         (tty_set_scroll_region, tty_background_highlight)
1021         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
1022         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
1023         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
1024         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
1025         Add static modifier.
1026         (tty_reset_terminal_modes, tty_set_terminal_window)
1027         (tty_set_scroll_region, tty_background_highlight)
1028         (tty_highlight_if_desired, tty_cursor_to)
1029         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
1030         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
1031         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
1032         renames.
1034 2007-08-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1036         * keyboard.c: Qrtl is new.
1037         (parse_tool_bar_item): Handle :rtl keyword.
1038         (syms_of_keyboard): Intern :rtl keyword.
1040         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1042         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1043         so no Lisp code is executed.
1044         (file_for_image, find_rtl_image): New functions.
1045         (xg_get_image_for_pixmap): Use file_for_image
1046         (update_frame_tool_bar): If direction is RTL, use RTL image if
1047         defined.  Use Gtk stock images if defined.
1049 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1051         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1052         for nonexistent or zero-width glyph in composition glyph.
1054 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
1056         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
1058         * xdisp.c (Finvisible_p): New function.
1059         (syms_of_xdisp): defsubr it.
1061 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
1063         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1064         Doc fixes.
1066 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1068         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
1070 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
1072         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
1073         whether decoding has modified buffer contents.
1075 2007-08-24  Jason Rumney  <jasonr@gnu.org>
1077         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
1078         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
1079         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
1080         (init_svg_functions) [HAVE_NTGUI]: New function.
1081         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
1082         (svg_load_image): Use them.
1083         (svg_load_image) [HAVE_NTGUI]: Implement background.
1085 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1087         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
1088         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
1089         (LIBX): Remove @RSVG_LIBS@.
1090         (LIBES): Add $(RSVG_LIBS).
1092         * image.c (svg_load_image): Blend with specified background if exists.
1093         Use IMAGE_BACKGROUND.  Add Mac OS Support.
1095         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
1096         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
1097         Remove macros.
1098         [MAC_OSX] (socket_callback): Do nothing.
1099         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
1100         ReceiveNextEvent.
1101         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
1102         socket_callback.
1103         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
1105 2007-08-22  Glenn Morris  <rgm@gnu.org>
1107         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
1109 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
1111         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
1113         * image.c: Add support for SVG images.  Some additional comments
1114         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
1115         (svg_image_p): New function to test for SVG image.
1116         (svg_load): New function to load SVG image.
1117         (svg_load_image): New function, helper for svg_load.
1118         (Qsvg): New Lisp_object.
1119         (svg_keyword_index): New enum.
1120         (svg_format): New static `image_keyword' struct.
1121         (svg_type): New static `image_type' struct.
1122         (librsvg/rsvg.h): Include it.
1124 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
1126         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1128 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1130         * lread.c (Qold_style_backquotes): New var.
1131         (syms_of_lread): Init and staticpro it.
1132         (load_warn_old_style_backquotes): New fun.
1133         (Fload): Use them to warn about old style backquotes.
1134         (end_of_file_error, Fload): Remove unused vars.
1136         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1138         * lread.c (Vold_style_backquotes): New var.
1139         (syms_of_lread): Init and export it to Elisp.
1140         (read1): Set it when we find an old-style (back)quote.
1142 2007-08-22  Jason Rumney  <jasonr@gnu.org>
1144         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1146 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
1148         * puresize.h (BASE_PURESIZE): Increase to 1140000.
1150 2007-08-19  Richard Stallman  <rms@gnu.org>
1152         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
1154 2007-08-19  Andreas Schwab  <schwab@suse.de>
1156         * alloc.c (pure): Round PURESIZE up.
1158 2007-08-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1160         * xterm.c (handle_one_xevent): Remove check that mouse click is in
1161         active frame.
1163 2007-08-16  Richard Stallman  <rms@gnu.org>
1165         * eval.c (Fcommandp): Add parens to clarify.
1167         * minibuf.c (Fall_completions): Use enum for type of table.
1169         * emacs.c (USAGE2): Improve text.
1171 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
1173         * term.c (tty_default_color_capabilities): Declare static
1174         variables in file scope, to avoid HPUX compiler problem.
1176 2007-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1178         * gtkutil.c (update_frame_tool_bar): Use -1 as index
1179         to gtk_toolbar_insert.
1181 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1183         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
1185         * insdel.c (reset_var_on_error): New fun.
1186         (signal_before_change, signal_after_change):
1187         Use it to reset (after|before)-change-functions to nil in case of error.
1188         Bind inhibit-modification-hooks to t.
1189         Don't bind (after|before)-change-functions to nil while they run.
1191 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1193         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1194         filling pixmap with stippled background.
1196 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1198         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
1199         Don't use invisible frame as parent window for repositioning.
1201 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1203         * print.c (new_backquote_output): Rename from old_backquote_output.
1204         (print): Inverse its logic (according to its name) so as to match the
1205         behavior of new_backquote_flag in lread.c.
1207 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1209         * gmalloc.c (posix_memalign): New function.
1211         * macterm.c (frame_highlight, frame_unhighlight): Don't call
1212         ActivateControl/DeactivateControl here.
1213         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
1214         frame-notice-user-settings is non-nil.
1215         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
1216         for kEventParamFMFontStyle.
1217         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
1218         mac_pass_command_to_system and mac_pass_control_to_system here.
1219         (XTread_socket): Call ActivateControl/DeactivateControl here.
1220         (XTread_socket) [TARGET_API_MAC_CARBON]:
1221         Check mac_pass_command_to_system and mac_pass_control_to_system here.
1222         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
1223         for window repositioning.
1225 2007-08-08  Glenn Morris  <rgm@gnu.org>
1227         * Replace `iff' in doc-strings and comments.
1229 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
1231         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1233 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
1235         * fileio.c (Finsert_file_contents): Run format-decode and
1236         after_insert_file_functions on entire buffer when REPLACE is
1237         non-nil and inhibit modification_hooks and point_motion_hooks.
1238         For consistency, run after_insert_file_functions iff something
1239         got inserted.  Move signal_after_change and update_compositions
1240         after code running after_insert_file_functions.  Make sure that
1241         undo_list doesn't record intermediate steps of the decoding process.
1243 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1245         * emacs.c (main)
1246         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1247         Call malloc_enable_thread on interactive startup.
1249         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1250         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1251         [USE_PTHREAD]: Conditionalize with it.
1252         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1253         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1254         New functions.
1256 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
1258         * xdisp.c (redisplay_window): When restoring original buffer
1259         position, make sure it is still valid.
1261         * image.c (png_load): Ignore png-supplied background color.
1263 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1265         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
1266         Use kCFAbsoluteTimeIntervalSince1970.
1268         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
1269         New variable.
1270         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
1271         event loop should be quit.
1272         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
1273         Quit dialog event loop if quit_dialog_event_loop is set.
1275         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
1276         (Selection): New typedef.  Use instead of ScrapRef.
1277         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
1278         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
1279         (mac_clear_selection): Rename from clear_scrap.
1280         (get_flavor_type_from_symbol): New argument SEL and subsume function of
1281         scrap_has_target_type.  All uses changed.
1282         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1283         (mac_selection_has_target_p): New functions.
1284         (mac_put_selection_value): Rename from put_scrap_string.
1285         (mac_get_selection_value): Rename from get_scrap_string.
1286         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
1287         (put_scrap_private_timestamp, scrap_has_target_type)
1288         (get_scrap_private_timestamp): Remove functions.
1289         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
1290         (x_own_selection, x_get_local_selection):
1291         Use mac_valid_selection_value_p.
1292         (x_own_selection): Don't use put_scrap_private_timestamp.
1293         Record OWNERSHIP-INFO into Vselection_alist instead.
1294         (x_get_local_selection): Don't check type if request is local.
1295         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
1296         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
1298 2007-08-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1300         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
1301         add comment explaining why.
1303 2007-08-03  Richard Stallman  <rms@gnu.org>
1305         * fileio.c (Fvisited_file_modtime): Use make_time.
1307 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
1309         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1310         build.
1312 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
1314         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
1316 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
1318         * puresize.h (BASE_PURESIZE): Increase to 1130000.
1320 2007-07-30  Richard Stallman  <rms@gnu.org>
1322         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
1324 2007-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1326         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
1328 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
1330         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
1331         remote default-directory.
1333         * buffer.c (mode-line-format): Update doc string.
1335 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1337         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
1338         scroll bar gap.
1339         (x_scroll_bar_create): Set bar->fringe_extended_p.
1340         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
1341         on frame edge.  Check fringe background extension.  Don't clear
1342         extended fringe background area.
1344         * w32term.h (struct scroll_bar): New member fringe_extended_p.
1345         (w32_fill_area): Enclose multiple statements with do ... while (0).
1347         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
1348         Extend fringe background to scroll bar gap.
1349         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1350         Set bar->fringe_extended_p.
1351         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1352         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
1353         background extension.  Don't clear extended fringe background area.
1355         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1356         New member fringe_extended_p.
1358 2007-07-25  Glenn Morris  <rgm@gnu.org>
1360         * Relicense all FSF files to GPLv3 or later.
1362         * COPYING: Switch to GPLv3.
1364 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
1366         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
1368         * data.c (Finteractive_form): Check for the presence of an
1369         `interactive-form' symbol property more thoroughly.
1371         * data.c (Finteractive_form): Use an `interactive-form' property if
1372         present, analogous to the function-documentation property.
1374 2007-07-24  Jason Rumney  <jasonr@gnu.org>
1376         * w32fns.c (x_real_positions): Get real position from OS instead of
1377         calculating it.
1379 2007-07-23  Jason Rumney  <jasonr@gnu.org>
1381         * filelock.c (current_lock_owner): Allow for @ sign in username.
1383 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
1385         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
1386         remote default-directory.
1388         * buffer.c (mode-line-format): Describe above case in doc string.
1390 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
1392         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1393         Define if not defined.
1395 2007-07-18  Jason Rumney  <jasonr@gnu.org>
1397         * w32proc.c (w32_executable_type): Handle 64 bit executables.
1399 2007-07-18  Richard Stallman  <rms@gnu.org>
1401         * data.c (Fsetq_default): Doc fix.
1403         * eval.c (Fsetq): Doc fix.
1405 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
1407         * coding.c (Ffind_operation_coding_system):
1408         * eval.c (For, Fand): Doc fixes.
1409         Reported by Johan Bockg\e,Ae\e(Brd.
1411 2007-07-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1413         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
1415         * xterm.h: Declare x_ewmh_activate_frame.
1417         * xterm.c (x_ewmh_activate_frame): New function.
1418         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
1420 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
1422         * window.c (Fdisplay_buffer): If largest or LRU window is the
1423         only window, split it even if it is not eligible for splitting.
1424         This restores the original behavior broken by the 2007-07-15
1425         change.
1427 2007-07-17  Glenn Morris  <rgm@gnu.org>
1429         * abbrev.c (abbrev_check_chars): New function.
1430         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1431         Call abbrev_check_chars to check abbrev characters are word
1432         constituents.  Doc fix.
1434 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1436         * process.c (Fstart_process, Fmake_network_process)
1437         (read_process_output): Fix up last changes.
1439 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
1441         * makefile.w32-in (clean): Don't delete *~.
1443 2007-07-16  Andreas Schwab  <schwab@suse.de>
1445         * window.c (Fdisplay_buffer): Use NILP.
1446         (Fset_window_scroll_bars): Likewise.
1448 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
1450         * window.c (window_min_size_2): New function.
1451         (window_min_size_1, size_window, Fdisplay_buffer)
1452         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1453         windows without mode- or header-lines when window-min-height is
1454         too small.
1455         (size_window): Reset nodelete_p after testing it, following an
1456         earlier note by Kim F. Storm.
1457         (display_buffer): Do not set split_height_threshold to twice the
1458         value of window_min_height to avoid changing the value of a
1459         customizable variable.  Rather explicitly check whether the
1460         height of the window that shall be splitted is at least as large
1461         as split_height_threshold.
1463 2007-07-14  Jason Rumney  <jasonr@gnu.org>
1465         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
1467 2007-07-14  Richard Stallman  <rms@gnu.org>
1469         * eval.c (maybe_call_debugger): New function.
1470         (find_handler_clause): Use maybe_call_debugger.
1471         Call it when the handler says `debug'.
1472         Eliminate DEBUGGER_VALUE_PTR.
1473         (Fsignal): Eliminate debugger_value.
1474         (Qdebug): New variable.
1475         (syms_of_eval): Initialize it.
1477 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
1479         * eval.c (Fprogn):
1480         * keyboard.c (Ftrack_mouse):
1481         * print.c (Fwith_output_to_temp_buffer):
1482         * window.c (Fsave_window_excursion): Doc fix.
1484 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1486         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1488 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1490         * process.h (struct Lisp_Process): Turn slots infd, outfd,
1491         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
1492         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
1493         read_output_delay, and read_output_skip from Lisp_Objects to ints.
1494         Remove unused encoding_carryover.
1495         * process.c: Adjust all functions accordingly.
1497 2007-07-12  Richard Stallman  <rms@gnu.org>
1499         * term.c: Include unistd.h only if HAVE_UNISTD_H.
1501 2007-07-11  Jason Rumney  <jasonr@gnu.org>
1503         * makefile.w32-in (LIBS): Include OLE32.
1505         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1506         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1508 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1510         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
1511         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
1512         from a Lisp_Object into a bare pointer.
1513         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
1514         Adjust the code correspondingly.
1516         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
1518         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
1519         (term_show_mouse_face): Remove unused var `j'.
1520         (handle_one_term_event): Remove unused vars `i' and `j'.
1521         Don't cast return value of ttyname since it's not necessary.
1523 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1525         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
1526         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
1528         * fns.c (map_char_table): Use an array of int for `indices' rather than
1529         an array of Lisp_Objects (which are only ever integers anyway).
1530         (Fmap_char_table): Update caller.
1531         * lisp.h: Update prototype.
1532         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
1533         * fontset.c (Ffontset_info):
1534         * casetab.c (set_case_table): Update callers.
1536         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
1538         * keymap.c (struct accessible_keymaps_data)
1539         (struct where_is_internal_data): New structures.
1540         (accessible_keymaps_1, where_is_internal_1): Use them to change
1541         interface to adhere to the one used by map_keymap.
1542         (Faccessible_keymaps, where_is_internal): Use map_keymap.
1543         (accessible_keymaps_char_table, where_is_internal_2): Remove.
1545         * keymap.h (map_keymap_function_t): More informative prototype.
1547 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
1549         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
1550         (looking_at_1): Don't change search_regs and last_thing_searched
1551         if `inhibit-changing-match-data' is non-nil.
1552         (string_match_1, search_buffer, set_search_regs): Likewise.
1553         (syms_of_search): Add Lisp level definition for
1554         `inhibit-changing-match-data' and set it to nil.
1555         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
1556         start and end of the match, instead of using values in search_regs.
1558 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1560         * minibuf.c (Fcompleting_read): New value `confirm-only'
1561         for `require-match'.
1563 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
1565         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
1566         part of the 2007-06-27 change to syms_of_fileio.
1568 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1570         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1571         Check WINDOWP before using XWINDOW.  Consolidate return statements.
1573 2007-06-27  Richard Stallman  <rms@gnu.org>
1575         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1577 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
1579         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1581 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1583         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1584         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1585         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1586         (_free_internal, memalign): Use them.
1587         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1588         Initialize to PTHREAD_MUTEX_INITIALIZER.
1589         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1590         (morecore_nolock): Rename from morecore.  All uses changed.
1591         Use only nolock versions of internal allocation functions.
1592         (_malloc_internal_nolock, _realloc_internal_nolock)
1593         (_free_internal_nolock): New functions created from
1594         _malloc_internal, _realloc_internal, and _free_internal.
1595         (_malloc_internal, _realloc_internal, _free_internal): Use them.
1596         Copy hook value to automatic variable before its use.
1597         (memalign): Copy hook value to automatic variable before its use.
1599 2007-06-26  Kenichi Handa  <handa@m17n.org>
1601         * coding.c (Ffind_operation_coding_system): Docstring improved.
1602         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
1604 2007-06-25  David Kastrup  <dak@gnu.org>
1606         * keymap.c (Fcurrent_active_maps): Add `position' argument.
1607         (Fwhere_is_internal): Adjust call to `current-active-maps' to
1608         cater for additional parameter.
1610         * keymap.h: Adjust number of parameters to `current-active-maps'.
1612         * doc.c (Fsubstitute_command_keys): Adjust call of
1613         `current-active-maps'.
1615 2007-06-25  David Kastrup  <dak@gnu.org>
1617         * callint.c (Fcall_interactively): Make the parsing of interactive
1618         specs somewhat more readable.
1620 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1622         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
1623         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
1624         if extended background has already been filled.
1626 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1628         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
1629         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
1631         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
1632         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
1633         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
1634         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
1635         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
1636         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
1637         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
1638         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
1639         Run timers during dialog popup.
1640         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
1642 2007-06-21  Jason Rumney  <jasonr@gnu.org>
1644         * image.c (convert_mono_to_color_image): Swap fore and background.
1646 2007-06-20  Jason Rumney  <jasonr@gnu.org>
1648         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1649         (w32_free_bdf_font): Unmap memory not handle.
1651 2007-06-20  Sam Steingold  <sds@gnu.org>
1653         * gmalloc.c (__morecore): Fix the declaration to comply with the
1654         definition.
1656 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
1658         * w32term.c (w32_delete_display): Remove leftover declaration.
1659         (w32_define_cursor, w32_initialize): Make static.
1661         * w32.c (_wsa_errlist): Fix typo in error message.
1662         (init_environment): Ignore any environment variable from the
1663         registry having a null value.
1665 2007-06-20  Glenn Morris  <rgm@gnu.org>
1667         * Makefile.in (LIBGIF): Default to -lgif.
1669 2007-06-17  Jason Rumney  <jasonr@gnu.org>
1671         * w32menu.c (add_menu_item): Don't use multibyte string functions on
1672         unicode strings.
1674 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
1676         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1677         Fix typo in docstring.
1679 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
1681         * w32menu.c (add_menu_item): Escape `&' characters in menu items
1682         and their keybindings.
1684 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
1686         * composite.c (update_compositions): Fix last fix.
1688 2007-06-14  Jason Rumney  <jasonr@gnu.org>
1690         * w32.c (get_process_times_fn): New function pointer.
1691         (globals_of_w32): Intialize it if present in kernel32.dll.
1692         (w32_get_internal_run_time): New function.
1694         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
1696 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
1698         * composite.c (update_compositions): Check the validness of
1699         compositions.
1701 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1703         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
1704         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
1706         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
1707         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
1709         * macgui.h (USE_MAC_TOOLBAR): New define.
1711         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1712         Return immediately unless popup is activated.
1714         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
1715         background to scroll bar gap.
1716         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
1717         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
1718         scroll bars on frame edge.  Check fringe background extension.
1719         Don't clear extended fringe background area.
1720         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
1721         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
1722         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
1723         [USE_MAC_TOOLBAR]: New macros.
1724         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
1725         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
1726         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
1727         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
1728         [USE_MAC_TOOLBAR]: New functions.
1729         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
1730         manually if previous repositioning has failed.
1731         (mac_handle_keyboard_event): Use precomputed event kind.
1732         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
1733         as tool bar item click.  Handle mouse movement over tool bar items.
1735         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
1736         toolbar_win_gravity.
1737         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
1738         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
1739         Add externs.
1741         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
1742         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
1744 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
1746         * image.c (search_image_cache): Remove unused variable.
1748 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
1750         * xfns.c, xmenu.c: Link to xaw3d if available.
1752 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1754         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
1755         frame_foreground and frame_background.
1757         * image.c (lookup_image): Save frame foreground and background colors.
1758         (search_image_cache): Check if saved and current frame colors match.
1760 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1762         * regex.c (regex_compile): Remove the `regnum' counter.
1763         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
1765 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1767         * term.c: Include intervals.h to declare Fget_text_property.
1769 2007-06-10  Jason Rumney  <jasonr@gnu.org>
1771         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1773 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
1775         * callint.c (Fcall_interactively):
1776         * editfns.c (Fdelete_and_extract_region):
1777         * fileio.c (Fread_file_name):
1778         * fns.c (Fmapconcat):
1779         * keyboard.c (cmd_error_internal):
1780         * keymap.c (Fkey_description):
1781         * lread.c (openp):
1782         * minibuf.c (read_minibuf):
1783         * search.c (wordify):
1784         * sunfns.c (sel_read):
1785         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
1786         * xfns.c (x_default_scroll_bar_color_parameter):
1787         * xmenu.c (menu_help_callback):
1788         * xselect.c (Fx_get_atom_name):
1789         * xterm.c (x_term_init): Use empty_unibyte_string.
1791 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
1793         * alloc.c (init_strings): Initialize canonical empty strings.
1794         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
1795         canonical empty string when the requested size is 0.
1797         * emacs.c (empty_unibyte_string): Rename from empty_string.
1798         (empty_multibyte_string): New canonical empty string.
1799         (syms_of_emacs): Don't initialize empty_string.
1801         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
1802         string, if appropriate.
1803         (empty_unibyte_string, empty_multibyte_string): New externs.
1804         (empty_string): Remove extern.
1806         * lread.c (syms_of_lread): Use empty_unibyte_string.
1808 2007-06-07  Jason Rumney  <jasonr@gnu.org>
1810         * s/ms-w32.h: Don't define HAVE_TZNAME.
1812         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
1814 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1816         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
1818         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
1819         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
1821         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1822         Don't call next handler.
1823         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
1824         Remove argument.  Install handler to application.
1825         (set_frame_menubar): Don't change deep_p.
1826         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
1827         FRAME_OUTER_TO_INNER_DIFF_Y.
1828         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1829         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1830         [HAVE_DIALOGS]: New macros.
1831         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
1832         Use them.
1833         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
1835         * macselect.c [MAC_OSX] (install_service_handler): Rename from
1836         init_service_handler.  All callers changed.  Return OSStatus value.
1838         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
1839         All callers changed so as not to call SetPortWindowPort.
1840         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1841         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
1842         mac_draw_string_common.
1843         (mac_draw_image_string_qd): Likewise.
1844         (mac_draw_string_common): Use them.  Add INLINE.
1845         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
1846         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
1847         GetGlobalMouse.
1848         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
1849         and FRAME_OUTER_TO_INNER_DIFF_Y.
1850         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
1851         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
1852         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
1853         repositioning window to mac_handle_window_event.
1854         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
1855         saving window location to mac_handle_window_event
1856         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
1857         (install_menu_target_item_handler): Remove argument in extern.
1858         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
1859         Also accept command events.
1860         (do_keystroke): New function created from XTread_socket.
1861         (init_command_handler): Remove functions.
1862         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
1863         and save window location by kEventWindowShowing and kEventWindowHiding
1864         handlers here.  Don't call next handler for window state change and
1865         focus events.
1866         (mac_handle_application_event, mac_handle_keyboard_event)
1867         [TARGET_API_MAC_CARBON]: New functions.
1868         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
1869         kEventWindowShowing and kEventWindowHiding events.  Move installation
1870         of mouse, font, text input and menu target item handlers to
1871         install_application_handler.
1872         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
1873         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1874         New function.
1875         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1876         Register it.
1877         (XTread_socket) [TARGET_API_MAC_CARBON]:
1878         Consolidate SendEventToEventTarget calls.
1879         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
1880         Move application activation handler to mac_handle_application_event.
1881         Move keyboard handler to mac_handle_keyboard_event.
1882         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
1883         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1884         init_command_handler.  Call install_application_handler.
1886         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
1887         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
1889 2007-06-07  Glenn Morris  <rgm@gnu.org>
1891         * emacs.c (main): Use `emacs-copyright' in --version output.
1893 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
1895         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
1897 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1899         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
1901         * macgui.h: Replace WindowPtr with WindowRef.
1903         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1904         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
1905         Replace ControlHandle with ControlRef.
1906         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
1908         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1909         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
1910         Replace ControlHandle with ControlRef.
1911         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
1912         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
1914         * macterm.h (struct scroll_bar): Rename member control_handle_low
1915         and control_handle_high to control_ref_low and control_ref_high.
1916         All uses changed.
1917         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
1918         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
1919         respectively.  All uses changed.
1920         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
1921         (install_window_handler, remove_window_handler): Replace WindowPtr
1922         with WindowRef in externs.
1924 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
1926         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
1928 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
1930         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
1932         * frame.c (Fmouse_position, Fmouse_pixel_position):
1933         Condition on HAVE_GPM too.
1935         * term.c (term_mouse_highlight): Remove unused variables.
1936         (Fterm_open_connection): Set gpm_zerobased to 1.
1937         (term_mouse_movement, term_mouse_click, handle_one_term_event):
1938         Use zero based co-ordinates.
1939         (handle_one_term_event): Report a drag as mouse movement too.
1941         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
1943 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
1945         * image.c (search_image_cache): New function.  Require background
1946         color match if background color is unspecified in the image spec.
1947         (uncache_image, lookup_image): Use it.
1949 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
1951         * window.c (Fshrink_window): Reflow docstring.
1953 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
1955         * Version 22.1 released.
1957 2007-06-01  Richard Stallman  <rms@gnu.org>
1959         * xfns.c (x_encode_text): Add GCPRO.
1961 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1963         * xfns.c (x_set_name_internal): Save encoded name before
1964         x_encode_text in case string data is relocated.
1966 2007-05-31  Richard Stallman  <rms@gnu.org>
1968         * buffer.c (syms_of_buffer): Doc fix.
1970 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
1972         * sysdep.c (init_sys_modes): Add rather than replace with
1973         O_NONBLOCK.
1975         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
1976         term_mouse_moveto.
1978         * termhooks.h (term_mouse_moveto): New extern.
1980         * term.c (mouse_face_window): Rename...
1981         (Qmouse_face_window): ...to this.
1982         (term_show_mouse_face, term_clear_mouse_face)
1983         (term_mouse_highlight): Use Qmouse_face_window.
1984         (term_mouse_moveto): New function.
1985         (term_mouse_position): Make it work.
1986         (syms_of_term): Uncomment assignment to mouse_position_hook.
1987         Staticpro Qmouse_face_window.
1989 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1991         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
1992         around current_column call.
1994 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
1996         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
1997         * xdisp.c (next_element_from_buffer):
1998         * window.c (delete_window):
1999         * term.c (term_mouse_highlight):
2000         * msdos.c (getdefdir):
2001         * macterm.c (mac_create_bitmap_from_bitmap_data)
2002         (init_font_name_table):
2003         * fns.c (Fsxhash):
2004         * data.c (Fmake_local_variable):
2005         * ccl.c (ccl_driver): Likewise.
2007 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2009         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
2010         Call mac_wakeup_from_rne on window size change.
2012 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
2014         * image.c (uncache_image): Fix typo.
2016 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
2018         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
2020 2007-05-22  Richard Stallman  <rms@gnu.org>
2022         * xterm.c (x_connection_closed): Remove NO_RETURN.
2024 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
2026         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2028 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
2030         * image.c (uncache_image): New function.
2031         (Fimage_refresh): New function.
2033 2007-05-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2035         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
2037 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
2039         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
2040         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
2042 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
2044         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
2045         conditional on [HAVE_GPM_H].
2047 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
2049         * syntax.c (skip_chars): Update syntax-table only after we checked that
2050         the new location is valid.
2052 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2054         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
2055         mac_get_window_bounds.
2057 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
2059         * Makefile.in (LIBGPM): Allow it to be set from configure.
2060         If set then link Emacs with it.
2062         * config.in: Regenerate.
2064         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
2065         New externs.
2067         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
2068         Include gpm.h.
2069         (handle_one_term_event, term_gpm): New externs.
2071         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
2072         and allow it to be interrupted by SIGIO.
2074         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
2075         (wait_reading_process_output): Wait on gpm_fd too.
2076         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
2077         (add_gpm_wait_descriptor_called_flag): New variable.
2078         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
2080         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
2081         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
2082         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
2083         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
2084         (make_lispy_event): Add case GPM_CLICK_EVENT.
2085         (read_avail_input): Handle mouse input.
2087         * term.c (write_glyphs_with_face): New function.
2088         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
2089         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
2090         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
2091         (mouse_face_face_id, term_gpm, pos_x, pos_y)
2092         (last_mouse_x, last_mouse_y): New variables.
2093         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
2094         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
2095         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
2096         (Fterm_close_connection): New functions.
2097         (term_init): Initialise mouse_face_window.
2099 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
2101         * xdisp.c (redisplay_window): If first window line is a
2102         continuation line, recompute the new window start instead of
2103         recentering.
2105 2007-05-18  Glenn Morris  <rgm@gnu.org>
2107         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
2108         Suggested by Alfred M. Szmidt <ams@gnu.org>.
2110 2007-05-17  Glenn Morris  <rgm@gnu.org>
2112         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
2114 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2116         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
2117         dead key repeat and up events.
2119 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
2121         * image.c (pbm_load): Check image size for monochrome pbm.
2123 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
2125         * xterm.c (XTread_socket): Revert last change.
2127 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
2129         * image.c (pbm_load): Correctly check image size for greyscale pbm.
2131         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
2133 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2135         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
2136         mixup (YAILOM).
2138 2007-05-07  Andreas Schwab  <schwab@suse.de>
2140         * keymap.c (Flookup_key): Fix typo in last change.
2142 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2144         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
2145         mapping for unibyte strings.
2147 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2149         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
2150         (Fx_popup_dialog) [MAC_OSX]: Likewise.
2152 2007-04-29  Richard Stallman  <rms@gnu.org>
2154         * insdel.c (replace_range): For undo, record insertion first.
2156 2007-04-29  Andreas Schwab  <schwab@suse.de>
2158         * lisp.h (VECSIZE): Use OFFSETOF.
2160 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2162         * xdisp.c (try_window_reusing_current_matrix): Fix number of
2163         disabled lines.
2165 2007-04-28  Richard Stallman  <rms@gnu.org>
2167         * lread.c (read_escape): In a string, \s is always space.
2169 2007-04-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2171         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
2173         * gtkutil.c (xg_update_menubar, create_menus): Create empty
2174         submenu for menu bar items.
2176 See ChangeLog.10 for earlier changes.
2178 ;; Local Variables:
2179 ;; coding: iso-2022-7bit
2180 ;; add-log-time-zone-rule: t
2181 ;; End:
2183     Copyright (C) 2007 Free Software Foundation, Inc.
2185   This file is part of GNU Emacs.
2187   GNU Emacs is free software; you can redistribute it and/or modify
2188   it under the terms of the GNU General Public License as published by
2189   the Free Software Foundation; either version 3, or (at your option)
2190   any later version.
2192   GNU Emacs is distributed in the hope that it will be useful,
2193   but WITHOUT ANY WARRANTY; without even the implied warranty of
2194   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2195   GNU General Public License for more details.
2197   You should have received a copy of the GNU General Public License
2198   along with GNU Emacs; see the file COPYING.  If not, write to the
2199   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
2200   Boston, MA 02110-1301, USA.
2202 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40