(our_memory_fill_input_buffer) <buffer>: Move to file scope and rename
[bpt/emacs.git] / src / ChangeLog
1 2007-09-14 Glenn Morris <rgm@gnu.org>
2
3 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
4 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
5 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
6 scope and rename to omfib_buffer for clarity.
7 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
8
9 2007-09-14 Kenichi Handa <handa@m17n.org>
10
11 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12
13 2007-09-13 Jason Rumney <jasonr@gnu.org>
14
15 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16
17 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18
19 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20 (mac_term_init): Call here instead, passing rif.
21
22 2007-09-13 Glenn Morris <rgm@gnu.org>
23
24 * s/hpux.h: No longer define `static' as nothing.
25
26 2007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
27
28 * callint.c (Fcall_interactively): Remove unused var `fun'.
29
30 2007-09-12 Romain Francoise <romain@orebokech.com>
31
32 * window.c (prefer_window_split_horizontally, display_buffer):
33 Revert 2007-09-08 change.
34
35 2007-09-12 Glenn Morris <rgm@gnu.org>
36
37 * alloca.c: Remove file.
38 * Makefile.in (alloca): Do not undef.
39 (allocaobj, alloca.o): Remove.
40 (otherobj): Remove allocaobj.
41 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
42 * regex.c (C_ALLOCA): Remove all references and code that was only
43 used when this was defined.
44 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
45 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
46 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
47
48 * Makefile.in (SOURCES, unlock, relock): Delete.
49
50 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
51 (menu_grab_callback): All uses changed.
52
53 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
54 (x_reply_selection_request): All uses changed.
55
56 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
57
58 * lread.c (load_warn_old_style_backquotes): Change message to look
59 better when it appears in the middle of byte-compiler messages.
60
61 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
62
63 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
64
65 * xterm.c (x_create_terminal): Add comment.
66
67 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
68
69 2007-09-10 Richard Stallman <rms@gnu.org>
70
71 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
72
73 2007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
74
75 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
76 (DEFUN): Document `intspec', use it instead of `prompt'.
77
78 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
79
80 * data.c (Finteractive_form): If the interactive specification starts
81 with a `(', use it as a Lisp form.
82
83 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
84 name and file modes.
85
86 * callint.c (Fcall_interactively): Comment fixes.
87
88 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
89
90 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
91 and compiled functions.
92
93 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
94
95 * window.c (prefer_window_split_horizontally): New variable.
96 (display_buffer): Consider splitting window horizontally depending
97 on prefer_window_split_horizontally.
98
99 2007-09-08 Eli Zaretskii <eliz@gnu.org>
100
101 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
102
103 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
104
105 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
106
107 * frame.c (x_set_frame_parameters): Check number is positive before
108 using XFASTINT.
109
110 * window.c (freeze_window_start): Don't presume selected_window holds
111 a window object.
112 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
113
114 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
115
116 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
117
118 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 * window.c (Vsplit_window_preferred_function): New var.
121 (Fdisplay_buffer): Use it.
122 (syms_of_window): Export, and initialize it.
123
124 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
125
126 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
127
128 2007-09-06 Glenn Morris <rgm@gnu.org>
129
130 * gtkutil.c (menu_grab_callback) <cnt>:
131 * xselect.c (x_reply_selection_request) <cnt>: Move static
132 variable to file scope.
133
134 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
137 consistent values of selected_frame and selected_window.
138
139 2007-09-04 Jason Rumney <jasonr@gnu.org>
140
141 * w32console.c (initialize_w32_display): Zero unused hooks.
142
143 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
144
145 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
146 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
147
148 2007-09-04 Jason Rumney <jasonr@gnu.org>
149
150 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
151 in w32console.c. Set up input. Remove XXX comments that have been
152 confirmed as correct.
153
154 * s/ms-w32.h (MULTI_KBOARD): Define.
155
156 * w32console.c (one_and_only_w32cons): Remove.
157 (initialize_w32_display): Take terminal argument.
158
159 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
160 initialize_w32_display.
161 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
162
163 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
164
165 * keyboard.c (discard_mouse_events): Discard it.
166 (make_lispy_event): Translate it to a lisp event.
167 (lispy_wheel_names): Add wheel-left and right events.
168 (syms_of_keyboard): Enlarge wheel_syms.
169
170 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
171 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
172
173 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
174
175 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
176 from WM_MOUSEHWHEEL.
177 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
178
179 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
180 terminal.
181
182 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
183 keyboard for the terminal.
184
185 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
186
187 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
188 (Vresume_tty_hook): Rename from Vresume_tty_functions.
189 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
190 and resume-tty-function to resume-tty-hook.
191 (Fsuspend_tty, Fresume_tty): Use new names.
192
193 2007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
194
195 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
196 if it starts with "n:".
197
198 2007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
199
200 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
201
202 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
203
204 * frame.h:
205 * frame.c (Qterm_environment_variable): Remove.
206 (syms_of_frame): Don't init and staticpro it.
207
208 * callproc.c (getenv_internal): Remove special case for $TERM.
209
210 * callproc.c (Vinitial_environment): New variable.
211 (set_initial_environment): Initialize it.
212 (syms_of_callproc): Declare it.
213 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
214 TERM under which a process runs is never related to the TERM in which
215 Emacs is running.
216
217 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
218
219 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
220 * s/darwin.h: ... do it here.
221
222 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
223
224 * lisp.h (set_initial_environment): Rename from set_global_environment.
225
226 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
227 removed by mistake on the multi-tty branch.
228
229 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
230 (Fmodify_frame_parameters): Return a value.
231
232 * image.c (png_load): Comment-out var only used in commented-out code.
233
234 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
235 before passing it to mark_object.
236
237 * xfaces.c (internal_resolve_face_name): Return a value.
238 (internal_resolve_face_name, resolve_face_name_error): Comment out.
239
240 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
241 (x_icon): Comment-out var only used in commented-out code.
242
243 2007-08-29 Romain Francoise <romain@orebokech.com>
244
245 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
246 QUIT hasn't been provided.
247
248 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
249
250 * callproc.c (child_setup, getenv_internal): Use the
251 display-environment-variable and term-environment-variable frame
252 params.
253 (set_initial_environment): Initialise Vprocess_environment.
254
255 * config.in: Disable multi-keyboard support on a mac.
256
257 * frame.c (Qterm_environment_variable)
258 (Qdisplay_environment_variable): New variables.
259 (syms_of_frame): Intern and staticpro them.
260 (Fmake_terminal_frame): Disable output method test.
261
262 * frame.h: Declare them here.
263
264 * macfns.c (x_set_mouse_color): Get rif from the frame.
265 (x_set_tool_bar_lines): Don't use updating_frame.
266 (mac_window): Add 2 new parameters for consistency with other systems.
267 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
268 frame parameters following what is done in X11 and w32. Don't use
269 FRAME_MAC_DISPLAY_INFO.
270 (Fx_open_connection, start_hourglass): Remove window-system check.
271 (x_create_tip_frame): Get the keyboard from the terminal.
272
273 * macmenu.c: Reorder includes.
274 (Fx_popup_menu): Use terminal specific mouse_position_hook.
275
276 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
277 terminal parameter.
278 (x_clear_frame): Add a frame parameter.
279 (note_mouse_movement): Get rif from the frame.
280 (mac_term_init): Initialize the terminal.
281 (mac_initialize): Make static and move terminal initialization ...
282 (mac_create_terminal): ... to this new function.
283
284 * macterm.h (struct mac_display_info): Add terminal.
285 (mac_initialize): Delete declaration.
286
287 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
288
289 * sysdep.c: Comment out text after #endif.
290
291 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
292 is defined. Better initialize ttys in windows. Use terminal
293 specific mouse_position_hook.
294
295 * termhooks.h (union display_info): Add mac_display_info.
296
297 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
298 Set the default minibuffer frame, window_system and the rest of the
299 frame parameters following what is done in X11.
300
301 * w32term.c (w32_initialize): Make static.
302
303 * xselect.c (x_handle_selection_clear): Only access
304 terminal->kboard when MULTI_KBOARD is defined.
305
306 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
307 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
308
309 2007-08-29 Jason Rumney <jasonr@gnu.org>
310
311 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
312 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
313
314 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
315 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
316
317 * keyboard.c (restore_kboard_configuration): Only define when
318 MULTI_KBOARD defined.
319
320 * makefile.w32-in: Update dependancies from Makefile.in
321 (OBJ1): Add terminal.$(O)
322
323 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
324 Don't define function body.
325 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
326
327 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
328
329 * w32.c (request_sigio, unrequest_sigio): Remove.
330
331 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
332 (w32con_clear_frame, w32con_clear_end_of_line)
333 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
334 (w32con_delete_glyphs, w32con_set_terminal_window)
335 (scroll_line, w32_sys_ring_bell): Add frame arg.
336 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
337 Add terminal arg.
338 (PICK_FRAME): Remove.
339 (w32con_write_glyphs): Use frame specific terminal coding.
340 (one_and_only_w32cons): New global variable.
341 (initialize_w32_display): Use it for storing hooks.
342 (create_w32cons_output): New function.
343
344 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
345 arg a frame.
346
347 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
348 Set window_system.
349 (x_set_tool_bar_lines): Don't use updating_frame.
350 (Fx_create_frame): Set terminal and ref count.
351 (Fx_open_connection): Remove window-system check.
352
353 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
354
355 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
356 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
357 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
358 Add frame arg.
359 (x_delete_terminal, w32_create_terminal): New functions.
360 (w32_term_init): Create a terminal.
361 (w32_initialize): Move terminal specific initialization to
362 w32_create_terminal.
363
364 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
365 (w32_clear_rect, w32_clear_area): Use background from frame.
366 (w32_display_info): Add terminal.
367 (w32_sys_ring_bell, x_delete_display): Declare here.
368
369 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
370
371 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
372
373 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
374
375 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
376 Fix get_named_tty calls for the controlling tty.
377
378 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
379
380 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
381
382 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
383
384 * term.c (tty_insert_glyphs): Add missing first parameter.
385
386 2007-08-29 Karoly Lorentey <karoly@lorentey.hu>
387
388 * buffer.c (Fbuffer_list, Fbury_buffer):
389 Take frame->buried_buffer_list into account.
390
391 * cm.c (current_tty): New variable, for cmputc().
392 (cmputc): Use it.
393 (cmcheckmagic): Add tty parameter, look up terminal streams there.
394 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
395 (cmgoto): Add tty parameter. Pass it on to calccost().
396 Use emacs_tputs() instead of tputs().
397
398 * cm.h (emacs_tputs): New macro to set current_tty, and then call
399 tputs().
400 (current_tty): New variable, for cmputc().
401 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
402
403 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
404 (internal_condition_case, internal_condition_case_1)
405 (internal_condition_case_2): Don't abort when x_catching_errors.
406
407 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
408 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
409 prevent crashes caused by bogus longjmps in read_char.
410
411 * keymap.h (Fset_keymap_parent): Add EXFUN.
412
413 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
414 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
415 Remove redundant definition.
416
417 * macfns.c (x_set_mouse_color, x_make_gc):
418 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
419
420 * w32term.c (x_free_frame_resources):
421 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
422 (w32_initialize): Use the accessor macros for terminal characteristics.
423
424 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
425 Use the accessor macros for terminal characteristics.
426 * msdos.c (internal_terminal_init): Use the accessor macros for
427 terminal characteristics.
428 (ScreenVisualBell, internal_terminal_init):
429 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
430
431 * termopts.h (no_redraw_on_reenter): Declare.
432
433 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
434 (mark_terminals, mark_ttys): Declare.
435 (Fgarbage_collect): Call them.
436 (mark_object): Mark buried_buffer_list.
437
438 * prefix-args.c: Include stdlib.h for exit.
439
440 * syssignal.h: Add comment.
441
442 * indent.c: Include stdio.h.
443
444 * window.h (Vinitial_window_system): Declare.
445 (Vwindow_system): Delete declaration.
446
447 * fontset.c (Finternal_char_font): Use FRAME_RIF.
448
449 * image.c (lookup_image): Don't initialize `c' until the xasserts
450 have been run.
451
452 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
453 FRAME_FOREGROUND_PIXEL.
454
455 * print.c (print_preprocess): Don't lose print_depth levels while
456 iterating.
457
458 * widget.c (update_from_various_frame_slots):
459 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
460
461 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
462 frames.
463 (window_internal_height): Remove bogus make_number call.
464 (init_window_once): Call make_terminal_frame with two zero parameters.
465
466 * fileio.c (Fread_file_name): Update comment.
467
468 * callint.c (Fcall_interactively):
469 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
470 Make sure it is correctly unwound.
471
472 * xsmfns.c (x_session_close): New function.
473
474 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
475 Delete declarations.
476
477 * xterm.h: Remove declaration for x_fully_uncatch_errors.
478 (x_output): Remove background_pixel and foreground_pixel fields.
479 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
480 (x_delete_device):
481 (x_session_close): Declare.
482
483 * lread.c: Include setjmp.h. Update declaration of `read_char'.
484 (read_filtered_event): Call `read_char' with a local
485 `wrong_kboard_jmpbuf'.
486
487 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
488 Don't call single_kboard_state. Use FRAME_RIF.
489
490 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
491 systems.
492
493 * lisp.h (set_process_environment): Rename to `set_global_environment'.
494 (Fframe_with_environment, Fset_input_meta_mode)
495 (Fset_quit_char): EXFUN.
496 (x_create_device, tty_output, terminal, tty_display_info): Declare.
497 (init_sys_modes, reset_sys_modes): Update prototypes.
498 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
499
500 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
501 Vlocal_key_translation_map, and Vkeyboard_translate_table.
502 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
503 Delete declarations.
504 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
505 (temporarily_switch_to_single_kboard, tty_read_avail_input):
506 New declarations.
507
508 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
509 already does that during init_display(). Call syms_of_keymap
510 before syms_of_keyboard. Call `syms_of_terminal'.
511 Call set_initial_environment, not set_process_environment.
512 (shut_down_emacs): Call reset_all_sys_modes() instead of
513 reset_sys_modes().
514
515 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
516 (internal_resolve_face_name, resolve_face_name_error): New functions.
517 (resolve_face_name): Protect against loops and errors thrown by Fget.
518 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
519 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
520
521 * scroll.c: Replace CURTTY() with local variables throughout the
522 file (where applicable).
523 (calculate_scrolling, calculate_direct_scrolling)
524 (scrolling_1, scroll_cost): Use the accessor macros for terminal
525 characteristics.
526
527 * keymap.c (Vfunction_key_map): Remove.
528 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
529 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
530 (Vkey_translation_map): Remove.
531 (syms_of_keymap): Remove DEFVAR for key-translation-map.
532 (Fdescribe_buffer_bindings):
533 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
534 Update for terminal-local key-translation-map.
535
536 * Makefile.in (callproc.o): Update dependencies.
537 (lisp, shortlisp): Add termdev.elc.
538 (obj): Add terminal.o.
539 (terminal.o): Add dependencies.
540 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
541 (data.o, fns.o): Add termhooks.h dependency.
542 (SOME_MACHINE_LISP): Add dnd.elc.
543 (minibuf.o): Fix typo.
544 Update dependencies.
545
546 * data.c (do_symval_forwarding, store_symval_forwarding)
547 (find_symbol_value): Use the selected frame's keyboard, not
548 current_kboard.
549
550 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
551 Vwindow_system.
552
553 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
554 Fmenu_bar_open.
555 (syms_of_xmenu): Update defsubr.
556 (mouse_position_for_popup, Fx_popup_menu)
557 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
558 (set_frame_menubar, free_frame_menubar)
559 (create_and_show_popup_menu, xmenu_show, )
560 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
561 an X frame.
562
563 * xselect.c (x_own_selection): Abort if not an X frame.
564 (some_frame_on_display): Check if it is an X frame.
565 (x_handle_selection_clear): Deal with MULTI_KBOARD.
566
567 * coding.c: Include frame.h and termhooks.h.
568 (terminal_coding, keyboard_coding): Delete.
569 (Fset_terminal_coding_system_internal):
570 (Fset_keyboard_coding_system_internal):
571 (Fkeyboard_coding_system):
572 (Fterminal_coding_system): Add a terminal parameter.
573 Get terminal_coding from the terminal.
574 (init_coding_once): Don't call setup_coding_system here.
575
576 * dispextern.h (set_scroll_region, turn_off_insert)
577 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
578 (tty_clear_end_of_line, tty_setup_colors)
579 (delete_tty, updating_frame)
580 (produce_special_glyphs, produce_glyphs, write_glyphs)
581 (insert_glyphs): Remove.
582 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
583 (tty_turn_off_highlight, get_tty_size): Add declaration.
584 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
585
586 * frame.h (enum output_method): Add output_initial.
587 (struct x_output): Delete.
588 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
589 Access foreground_pixel and background_pixel directly from the frame.
590 (tty_display): Delete.
591 (struct frame): Add buried_buffer_list, foreground_pixel,
592 background_pixel and terminal. Delete kboard
593 (union output_data): Add tty.
594 (FRAME_KBOARD): Get the kboard from the terminal.
595 (FRAME_INITIAL_P): New macro.
596 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
597 (Qterm_environment_variable, Qdisplay_environment_variable)
598 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
599 New declarations.
600
601 * termchar.h (tty_output, tty_display_info): New structures.
602 (tty_list): Declare.
603 (FRAME_TTY, CURTTY): New macros.
604 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
605 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
606 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
607 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
608
609 * callproc.c: Include frame.h and termhooks.h, for terminal
610 parameters.
611 (add_env): New function.
612 (child_setup): Use it.
613 (child_setup, getenv_internal): Handle the new Vprocess_environment.
614 (getenv_internal): Fix get_terminal_param call.
615 (Fgetenv_internal, egetenv): Update doc.
616 (syms_of_callproc): Initialize Vprocess_environment to nil.
617 Register and initialize them. Remove obsolete defvars. Update doc
618 strings.
619 (child_setup): Handle Vlocal_environment_variables.
620 (getenv_internal): Add terminal parameter.
621 Handle Vlocal_environment_variables.
622 (Fgetenv_internal): Add terminal parameter.
623 (child_setup, getenv_internal, Fgetenv_internal): Store the local
624 environment in a frame (not terminal) parameter. Update doc strings.
625 (set_initial_environment): Rename from set_global_environment.
626 Store Emacs environment in initial frame parameter.
627
628 * xdisp.c (redisplay_internal): Update references to
629 `previous_terminal_frame'.
630 (display_mode_line, Fformat_mode_line): Replace calls to
631 `push_frame_kboard' with `push_kboard'.
632 (get_glyph_string_clip_rects): Add extra parentheses and
633 braces to prevent compiler warnings.
634 (calc_pixel_width_or_height): Add xassert to check that the
635 frame is alive. Don't call `lookup_image' on a termcap frame.
636 (message2_nolog, message3_nolog, redisplay_internal)
637 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
638 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
639 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
640 (Fx_display_pixel_width, Fx_display_pixel_height)
641 (Fx_display_planes, Fx_display_color_cells)
642 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
643 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
644 (Fx_display_backing_store, Fx_display_visual_class)
645 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
646 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
647
648 * xfns.c (x_set_foreground_color x_set_background_color)
649 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
650 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
651 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
652 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
653 terminal that is being deleted.
654 (Fx_create_frame): Use `store_frame_param' to set `window-system'
655 frame parameter, and make sure it overrides any user-supplied setting.
656 (Fx_close_connection, Fx_synchronize): Unify argument names with
657 the rest of the DEFUNs.
658
659 * dispnew.c (Fsend_string_to_terminal): Update call to
660 `get_tty_terminal'.
661 (Fredraw_frame, Fsend_string_to_terminal)
662 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
663 FRAME_TERMCAP_P and FRAME_TTY.
664 (window_change_signal): Don't believe width/height values that are
665 impossibly small.
666 (Vinitial_window_system): Rename from Vwindow_system.
667 (termscript, Wcm, rif): Delete.
668
669 * termhooks.h (struct terminal): New struct containing the
670 previously global text display hooks and new members NAME,
671 DELETED and PARAM_ALIST.
672 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
673 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
674 (FRAME_RIF): New macros.
675 (get_terminal_param, get_device): New declarations.
676 (termscript): Delete declaration.
677
678 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
679 (XTflash, x_free_frame_resources, x_scroll_bar_create)
680 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
681 FRAME_FOREGROUND_PIXEL.
682 (x_fully_uncatch_errors): Disable definition.
683 (x_scroll_bar_expose): Fix reference to foreground pixel.
684 (XTread_socket): Disable loop on all X displays.
685 (x_delete_terminal): Don't set terminal->deleted and let
686 delete_terminal delete the frames on the terminal.
687 (x_delete_display): Doc update to reflect changes in
688 delete_terminal.
689 (x_display_info) <terminal>: Move member earlier in the struct.
690 (deleting_tty): Remove old variable.
691 (Fsuspend_tty): Call clear_tty_hooks.
692 (Fresume_tty, init_tty): Call set_tty_hooks.
693 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
694 errors on X frames.
695 (x_catch_errors_unwind): Abort if x_error_message is NULL.
696 (handle_one_xevent): Initialize `f' to NULL.
697 (x_delete_terminal, x_create_terminal): New functions.
698 (XTset_terminal_modes, XTreset_terminal_modes)
699 (XTread_socket, x_connection_closed, x_term_init)
700 (x_term_init, x_delete_display): Add terminal parameter.
701 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
702 X connections.
703
704 * frame.c (Fframep): Deal with output_initial.
705 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
706 (Qtty_type, Qwindow_system, Qenvironment)
707 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
708 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
709 (make_terminal_frame): Don't create frames on a terminal that is
710 being deleted.
711 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
712 FRAME_FOREGROUND_PIXEL.
713 (store_frame_param): Check for found_for_frame before calling XFRAME.
714 (Fmake_terminal_frame): Handle NULL tty names correctly.
715 (syms_of_frame): Enhance doc string of `default-frame-alist'.
716 (Fdelete_frame): Remove unused variable `count'.
717 (Qenvironment): New variable.
718 (Fdelete_frame): Don't allow other frames to refer to a deleted
719 frame in their 'environment parameter.
720 (Fframe_with_environment): New function.
721 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
722 (get_future_frame_param): New function.
723 (Fmake_terminal_frame): Use it.
724 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
725
726 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
727 * sysdep.c (reset_sys_modes): Update for renames.
728
729 * keyboard.c (tty_read_avail_input): New function.
730 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
731 (syms_of_keyboard): Defsubr them.
732 (Fset_input_meta_mode, Fset_quit_char): New functions.
733 (Fset_input_mode): Split to above functions.
734
735 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
736 parameter. Use it in call to `read_char'.
737 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
738 Set wrong_kboard_jmpbuf correctly in recursive calls.
739 Use current_kboard to access Vkeyboard_translate_table.
740 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
741 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
742 Update longjmp invocations. Remember the original current_kboard,
743 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
744 changes it. Comment out unnecessary calls to
745 `record_single_kboard_state' and `any_kboard_state'.
746 Update recursive calls.
747 (wrong_kboard_jmpbuf): Remove global variable.
748 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
749 Handle deleted interrupted_kboards correctly; that is a legal
750 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
751 and read_char calls. Abort if interrupted_kboard died in read_char.
752 (any_kboard_state, single_kboard_state)
753 (push_frame_kboard): Remove function.
754 (pop_kboard): Switch out of single_kboard mode if the kboard has
755 been deleted. Remove unused variable. Help debugging by not
756 changing current_kboard unnecessarily. Set current_kboard to the
757 kboard of the selected frame when the stored kboard object has
758 been deleted before pop_kboard.
759 (temporarily_switch_to_single_kboard): Change first parameter to a
760 frame pointer. Throw an error when caller wants to change kboards
761 while in single_kboard mode. Don't push_kboard if we weren't in
762 single kboard state. Don't pop_kboard if we popped into any
763 kboard state.
764 (restore_kboard_configuration): Abort if pop_kboard changed the
765 kboard in single_kboard mode. Call pop_kboard only after setting
766 up single_kboard mode.
767 (Frecursive_edit): Switch to single_kboard mode only in nested
768 command loops.
769 (cmd_error, command_loop, command_loop_1, timer_check):
770 Comment out unnecessary call to `any_kboard_state' and
771 `record_single_kboard_state'.
772 (delete_kboard): Exit single_kboard mode if we have just deleted
773 that kboard. Use FRAME_KBOARD.
774 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
775 `fatal_error_signal'.
776 (record_single_kboard_state): Don't push_kboard if we weren't in
777 single kboard state. Don't pop_kboard if we popped into any
778 kboard state.
779 (push_frame_kboard): Rename to push_kboard.
780 (kbd_buffer_get_event): Use FRAME_TERMINAL.
781 (read_avail_input): Read input from all terminals.
782 (mark_kboards): Also mark Vkeyboard_translate_table.
783 (kbd_buffer_store_event_hold): Simplify condition.
784 (read_key_sequence): Reinitialize fkey and keytran at each replay.
785 (Vkeyboard_translate_table): Move to struct kboard.
786 (init_kboard): Initialize Vkeyboard_translate_table.
787 (syms_of_keyboard): Use DEFVAR_KBOARD to define
788 Vkeyboard_translate_table. Update doc strings. Update docs of
789 local-function-key-map and function-key-map.
790
791 * terminal.c: New file.
792
793 * term.c: Include errno.h.
794 (Vring_bell_function, device_list, initial_device)
795 (next_device_id, ring_bell, update_begin, update_end)
796 (set_terminal_window, cursor_to, raw_cursor_to)
797 (clear_to_end, clear_frame, clear_end_of_line)
798 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
799 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
800 (syms_of_term): Move their initialization to terminal.c.
801 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
802 (Ftty_display_color_cells)
803 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
804 (clear_tty_hooks, set_tty_hooks)
805 (init_tty, maybe_fatal): New functions.
806 (Ftty_type): Return nil if terminal is not on a tty instead of
807 throwing an error. Doc update.
808 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
809 Doc update. Initialize new subrs and variables.
810 (delete_tty): Use terminal->deleted.
811 (tty_set_terminal_modes): Rename from set_terminal_modes.
812 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
813 (set_scroll_region): Rename to `tty_set_scroll_region'.
814 (turn_on_insert): Rename to `tty_turn_on_insert'.
815 (turn_off_insert): Rename to `tty_turn_off_insert'.
816 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
817 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
818 (toggle_highligh): Rename to `tty_toggle_highlight'.
819 (background_highlight): Rename to `tty_background_highlight'.
820 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
821 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
822 (tty_set_scroll_region, tty_background_highlight)
823 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
824 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
825 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
826 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
827 Add static modifier.
828 (tty_reset_terminal_modes, tty_set_terminal_window)
829 (tty_set_scroll_region, tty_background_highlight)
830 (tty_highlight_if_desired, tty_cursor_to)
831 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
832 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
833 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
834 renames.
835
836 2007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
837
838 * keyboard.c: Qrtl is new.
839 (parse_tool_bar_item): Handle :rtl keyword.
840 (syms_of_keyboard): Intern :rtl keyword.
841
842 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
843
844 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
845 so no Lisp code is executed.
846 (file_for_image, find_rtl_image): New functions.
847 (xg_get_image_for_pixmap): Use file_for_image
848 (update_frame_tool_bar): If direction is RTL, use RTL image if
849 defined. Use Gtk stock images if defined.
850
851 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
852
853 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
854 for nonexistent or zero-width glyph in composition glyph.
855
856 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
857
858 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
859
860 * xdisp.c (Finvisible_p): New function.
861 (syms_of_xdisp): defsubr it.
862
863 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
864
865 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
866 Doc fixes.
867
868 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
869
870 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
871
872 2007-08-24 Martin Rudalics <rudalics@gmx.at>
873
874 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
875 whether decoding has modified buffer contents.
876
877 2007-08-24 Jason Rumney <jasonr@gnu.org>
878
879 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
880 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
881 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
882 (init_svg_functions) [HAVE_NTGUI]: New function.
883 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
884 (svg_load_image): Use them.
885 (svg_load_image) [HAVE_NTGUI]: Implement background.
886
887 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
888
889 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
890 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
891 (LIBX): Remove @RSVG_LIBS@.
892 (LIBES): Add $(RSVG_LIBS).
893
894 * image.c (svg_load_image): Blend with specified background if exists.
895 Use IMAGE_BACKGROUND. Add Mac OS Support.
896
897 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
898 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
899 Remove macros.
900 [MAC_OSX] (socket_callback): Do nothing.
901 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
902 ReceiveNextEvent.
903 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
904 socket_callback.
905 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
906
907 2007-08-22 Glenn Morris <rgm@gnu.org>
908
909 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
910
911 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
912
913 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
914
915 * image.c: Add support for SVG images. Some additional comments
916 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
917 (svg_image_p): New function to test for SVG image.
918 (svg_load): New function to load SVG image.
919 (svg_load_image): New function, helper for svg_load.
920 (Qsvg): New Lisp_object.
921 (svg_keyword_index): New enum.
922 (svg_format): New static `image_keyword' struct.
923 (svg_type): New static `image_type' struct.
924 (librsvg/rsvg.h): Include it.
925
926 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
927
928 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
929
930 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
931
932 * lread.c (Qold_style_backquotes): New var.
933 (syms_of_lread): Init and staticpro it.
934 (load_warn_old_style_backquotes): New fun.
935 (Fload): Use them to warn about old style backquotes.
936 (end_of_file_error, Fload): Remove unused vars.
937
938 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
939
940 * lread.c (Vold_style_backquotes): New var.
941 (syms_of_lread): Init and export it to Elisp.
942 (read1): Set it when we find an old-style (back)quote.
943
944 2007-08-22 Jason Rumney <jasonr@gnu.org>
945
946 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
947
948 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
949
950 * puresize.h (BASE_PURESIZE): Increase to 1140000.
951
952 2007-08-19 Richard Stallman <rms@gnu.org>
953
954 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
955
956 2007-08-19 Andreas Schwab <schwab@suse.de>
957
958 * alloc.c (pure): Round PURESIZE up.
959
960 2007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
961
962 * xterm.c (handle_one_xevent): Remove check that mouse click is in
963 active frame.
964
965 2007-08-16 Richard Stallman <rms@gnu.org>
966
967 * eval.c (Fcommandp): Add parens to clarify.
968
969 * minibuf.c (Fall_completions): Use enum for type of table.
970
971 * emacs.c (USAGE2): Improve text.
972
973 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
974
975 * term.c (tty_default_color_capabilities): Declare static
976 variables in file scope, to avoid HPUX compiler problem.
977
978 2007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
979
980 * gtkutil.c (update_frame_tool_bar): Use -1 as index
981 to gtk_toolbar_insert.
982
983 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
984
985 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
986
987 * insdel.c (reset_var_on_error): New fun.
988 (signal_before_change, signal_after_change):
989 Use it to reset (after|before)-change-functions to nil in case of error.
990 Bind inhibit-modification-hooks to t.
991 Don't bind (after|before)-change-functions to nil while they run.
992
993 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
994
995 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
996 filling pixmap with stippled background.
997
998 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
999
1000 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
1001 Don't use invisible frame as parent window for repositioning.
1002
1003 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1004
1005 * print.c (new_backquote_output): Rename from old_backquote_output.
1006 (print): Inverse its logic (according to its name) so as to match the
1007 behavior of new_backquote_flag in lread.c.
1008
1009 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1010
1011 * gmalloc.c (posix_memalign): New function.
1012
1013 * macterm.c (frame_highlight, frame_unhighlight): Don't call
1014 ActivateControl/DeactivateControl here.
1015 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
1016 frame-notice-user-settings is non-nil.
1017 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
1018 for kEventParamFMFontStyle.
1019 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
1020 mac_pass_command_to_system and mac_pass_control_to_system here.
1021 (XTread_socket): Call ActivateControl/DeactivateControl here.
1022 (XTread_socket) [TARGET_API_MAC_CARBON]:
1023 Check mac_pass_command_to_system and mac_pass_control_to_system here.
1024 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
1025 for window repositioning.
1026
1027 2007-08-08 Glenn Morris <rgm@gnu.org>
1028
1029 * Replace `iff' in doc-strings and comments.
1030
1031 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
1032
1033 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1034
1035 2007-08-07 Martin Rudalics <rudalics@gmx.at>
1036
1037 * fileio.c (Finsert_file_contents): Run format-decode and
1038 after_insert_file_functions on entire buffer when REPLACE is
1039 non-nil and inhibit modification_hooks and point_motion_hooks.
1040 For consistency, run after_insert_file_functions iff something
1041 got inserted. Move signal_after_change and update_compositions
1042 after code running after_insert_file_functions. Make sure that
1043 undo_list doesn't record intermediate steps of the decoding process.
1044
1045 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1046
1047 * emacs.c (main)
1048 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1049 Call malloc_enable_thread on interactive startup.
1050
1051 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
1052 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1053 [USE_PTHREAD]: Conditionalize with it.
1054 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1055 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1056 New functions.
1057
1058 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
1059
1060 * xdisp.c (redisplay_window): When restoring original buffer
1061 position, make sure it is still valid.
1062
1063 * image.c (png_load): Ignore png-supplied background color.
1064
1065 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1066
1067 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
1068 Use kCFAbsoluteTimeIntervalSince1970.
1069
1070 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
1071 New variable.
1072 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
1073 event loop should be quit.
1074 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
1075 Quit dialog event loop if quit_dialog_event_loop is set.
1076
1077 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
1078 (Selection): New typedef. Use instead of ScrapRef.
1079 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
1080 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
1081 (mac_clear_selection): Rename from clear_scrap.
1082 (get_flavor_type_from_symbol): New argument SEL and subsume function of
1083 scrap_has_target_type. All uses changed.
1084 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1085 (mac_selection_has_target_p): New functions.
1086 (mac_put_selection_value): Rename from put_scrap_string.
1087 (mac_get_selection_value): Rename from get_scrap_string.
1088 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
1089 (put_scrap_private_timestamp, scrap_has_target_type)
1090 (get_scrap_private_timestamp): Remove functions.
1091 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
1092 (x_own_selection, x_get_local_selection):
1093 Use mac_valid_selection_value_p.
1094 (x_own_selection): Don't use put_scrap_private_timestamp.
1095 Record OWNERSHIP-INFO into Vselection_alist instead.
1096 (x_get_local_selection): Don't check type if request is local.
1097 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
1098 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
1099
1100 2007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1101
1102 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
1103 add comment explaining why.
1104
1105 2007-08-03 Richard Stallman <rms@gnu.org>
1106
1107 * fileio.c (Fvisited_file_modtime): Use make_time.
1108
1109 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
1110
1111 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1112 build.
1113
1114 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
1115
1116 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
1117
1118 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
1119
1120 * puresize.h (BASE_PURESIZE): Increase to 1130000.
1121
1122 2007-07-30 Richard Stallman <rms@gnu.org>
1123
1124 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
1125
1126 2007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1127
1128 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1129
1130 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
1131
1132 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
1133 remote default-directory.
1134
1135 * buffer.c (mode-line-format): Update doc string.
1136
1137 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1138
1139 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
1140 scroll bar gap.
1141 (x_scroll_bar_create): Set bar->fringe_extended_p.
1142 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
1143 on frame edge. Check fringe background extension. Don't clear
1144 extended fringe background area.
1145
1146 * w32term.h (struct scroll_bar): New member fringe_extended_p.
1147 (w32_fill_area): Enclose multiple statements with do ... while (0).
1148
1149 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
1150 Extend fringe background to scroll bar gap.
1151 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1152 Set bar->fringe_extended_p.
1153 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1154 Put leftmost/rightmost scroll bars on frame edge. Check fringe
1155 background extension. Don't clear extended fringe background area.
1156
1157 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1158 New member fringe_extended_p.
1159
1160 2007-07-25 Glenn Morris <rgm@gnu.org>
1161
1162 * Relicense all FSF files to GPLv3 or later.
1163
1164 * COPYING: Switch to GPLv3.
1165
1166 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
1167
1168 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
1169
1170 * data.c (Finteractive_form): Check for the presence of an
1171 `interactive-form' symbol property more thoroughly.
1172
1173 * data.c (Finteractive_form): Use an `interactive-form' property if
1174 present, analogous to the function-documentation property.
1175
1176 2007-07-24 Jason Rumney <jasonr@gnu.org>
1177
1178 * w32fns.c (x_real_positions): Get real position from OS instead of
1179 calculating it.
1180
1181 2007-07-23 Jason Rumney <jasonr@gnu.org>
1182
1183 * filelock.c (current_lock_owner): Allow for @ sign in username.
1184
1185 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
1186
1187 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
1188 remote default-directory.
1189
1190 * buffer.c (mode-line-format): Describe above case in doc string.
1191
1192 2007-07-20 Eli Zaretskii <eliz@gnu.org>
1193
1194 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1195 Define if not defined.
1196
1197 2007-07-18 Jason Rumney <jasonr@gnu.org>
1198
1199 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1200
1201 2007-07-18 Richard Stallman <rms@gnu.org>
1202
1203 * data.c (Fsetq_default): Doc fix.
1204
1205 * eval.c (Fsetq): Doc fix.
1206
1207 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
1208
1209 * coding.c (Ffind_operation_coding_system):
1210 * eval.c (For, Fand): Doc fixes.
1211 Reported by Johan Bockg\e,Ae\e(Brd.
1212
1213 2007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1214
1215 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
1216
1217 * xterm.h: Declare x_ewmh_activate_frame.
1218
1219 * xterm.c (x_ewmh_activate_frame): New function.
1220 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
1221
1222 2007-07-17 Martin Rudalics <rudalics@gmx.at>
1223
1224 * window.c (Fdisplay_buffer): If largest or LRU window is the
1225 only window, split it even if it is not eligible for splitting.
1226 This restores the original behavior broken by the 2007-07-15
1227 change.
1228
1229 2007-07-17 Glenn Morris <rgm@gnu.org>
1230
1231 * abbrev.c (abbrev_check_chars): New function.
1232 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1233 Call abbrev_check_chars to check abbrev characters are word
1234 constituents. Doc fix.
1235
1236 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1237
1238 * process.c (Fstart_process, Fmake_network_process)
1239 (read_process_output): Fix up last changes.
1240
1241 2007-07-16 Eli Zaretskii <eliz@gnu.org>
1242
1243 * makefile.w32-in (clean): Don't delete *~.
1244
1245 2007-07-16 Andreas Schwab <schwab@suse.de>
1246
1247 * window.c (Fdisplay_buffer): Use NILP.
1248 (Fset_window_scroll_bars): Likewise.
1249
1250 2007-07-15 Martin Rudalics <rudalics@gmx.at>
1251
1252 * window.c (window_min_size_2): New function.
1253 (window_min_size_1, size_window, Fdisplay_buffer)
1254 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1255 windows without mode- or header-lines when window-min-height is
1256 too small.
1257 (size_window): Reset nodelete_p after testing it, following an
1258 earlier note by Kim F. Storm.
1259 (display_buffer): Do not set split_height_threshold to twice the
1260 value of window_min_height to avoid changing the value of a
1261 customizable variable. Rather explicitly check whether the
1262 height of the window that shall be splitted is at least as large
1263 as split_height_threshold.
1264
1265 2007-07-14 Jason Rumney <jasonr@gnu.org>
1266
1267 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
1268
1269 2007-07-14 Richard Stallman <rms@gnu.org>
1270
1271 * eval.c (maybe_call_debugger): New function.
1272 (find_handler_clause): Use maybe_call_debugger.
1273 Call it when the handler says `debug'.
1274 Eliminate DEBUGGER_VALUE_PTR.
1275 (Fsignal): Eliminate debugger_value.
1276 (Qdebug): New variable.
1277 (syms_of_eval): Initialize it.
1278
1279 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
1280
1281 * eval.c (Fprogn):
1282 * keyboard.c (Ftrack_mouse):
1283 * print.c (Fwith_output_to_temp_buffer):
1284 * window.c (Fsave_window_excursion): Doc fix.
1285
1286 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1287
1288 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1289
1290 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 * process.h (struct Lisp_Process): Turn slots infd, outfd,
1293 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
1294 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
1295 read_output_delay, and read_output_skip from Lisp_Objects to ints.
1296 Remove unused encoding_carryover.
1297 * process.c: Adjust all functions accordingly.
1298
1299 2007-07-12 Richard Stallman <rms@gnu.org>
1300
1301 * term.c: Include unistd.h only if HAVE_UNISTD_H.
1302
1303 2007-07-11 Jason Rumney <jasonr@gnu.org>
1304
1305 * makefile.w32-in (LIBS): Include OLE32.
1306
1307 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1308 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1309
1310 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1311
1312 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
1313 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
1314 from a Lisp_Object into a bare pointer.
1315 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
1316 Adjust the code correspondingly.
1317
1318 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
1319
1320 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
1321 (term_show_mouse_face): Remove unused var `j'.
1322 (handle_one_term_event): Remove unused vars `i' and `j'.
1323 Don't cast return value of ttyname since it's not necessary.
1324
1325 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
1326
1327 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
1328 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
1329
1330 * fns.c (map_char_table): Use an array of int for `indices' rather than
1331 an array of Lisp_Objects (which are only ever integers anyway).
1332 (Fmap_char_table): Update caller.
1333 * lisp.h: Update prototype.
1334 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
1335 * fontset.c (Ffontset_info):
1336 * casetab.c (set_case_table): Update callers.
1337
1338 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
1339
1340 * keymap.c (struct accessible_keymaps_data)
1341 (struct where_is_internal_data): New structures.
1342 (accessible_keymaps_1, where_is_internal_1): Use them to change
1343 interface to adhere to the one used by map_keymap.
1344 (Faccessible_keymaps, where_is_internal): Use map_keymap.
1345 (accessible_keymaps_char_table, where_is_internal_2): Remove.
1346
1347 * keymap.h (map_keymap_function_t): More informative prototype.
1348
1349 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
1350
1351 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
1352 (looking_at_1): Don't change search_regs and last_thing_searched
1353 if `inhibit-changing-match-data' is non-nil.
1354 (string_match_1, search_buffer, set_search_regs): Likewise.
1355 (syms_of_search): Add Lisp level definition for
1356 `inhibit-changing-match-data' and set it to nil.
1357 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
1358 start and end of the match, instead of using values in search_regs.
1359
1360 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
1361
1362 * minibuf.c (Fcompleting_read): New value `confirm-only'
1363 for `require-match'.
1364
1365 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
1366
1367 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
1368 part of the 2007-06-27 change to syms_of_fileio.
1369
1370 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1371
1372 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1373 Check WINDOWP before using XWINDOW. Consolidate return statements.
1374
1375 2007-06-27 Richard Stallman <rms@gnu.org>
1376
1377 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1378
1379 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
1380
1381 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1382
1383 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1384
1385 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1386 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1387 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1388 (_free_internal, memalign): Use them.
1389 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1390 Initialize to PTHREAD_MUTEX_INITIALIZER.
1391 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1392 (morecore_nolock): Rename from morecore. All uses changed.
1393 Use only nolock versions of internal allocation functions.
1394 (_malloc_internal_nolock, _realloc_internal_nolock)
1395 (_free_internal_nolock): New functions created from
1396 _malloc_internal, _realloc_internal, and _free_internal.
1397 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1398 Copy hook value to automatic variable before its use.
1399 (memalign): Copy hook value to automatic variable before its use.
1400
1401 2007-06-26 Kenichi Handa <handa@m17n.org>
1402
1403 * coding.c (Ffind_operation_coding_system): Docstring improved.
1404 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
1405
1406 2007-06-25 David Kastrup <dak@gnu.org>
1407
1408 * keymap.c (Fcurrent_active_maps): Add `position' argument.
1409 (Fwhere_is_internal): Adjust call to `current-active-maps' to
1410 cater for additional parameter.
1411
1412 * keymap.h: Adjust number of parameters to `current-active-maps'.
1413
1414 * doc.c (Fsubstitute_command_keys): Adjust call of
1415 `current-active-maps'.
1416
1417 2007-06-25 David Kastrup <dak@gnu.org>
1418
1419 * callint.c (Fcall_interactively): Make the parsing of interactive
1420 specs somewhat more readable.
1421
1422 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1423
1424 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
1425 to scroll bar gap also when bitmap fills fringe. Draw only foreground
1426 if extended background has already been filled.
1427
1428 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1429
1430 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
1431 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
1432
1433 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
1434 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
1435 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
1436 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
1437 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
1438 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
1439 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
1440 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
1441 Run timers during dialog popup.
1442 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
1443
1444 2007-06-21 Jason Rumney <jasonr@gnu.org>
1445
1446 * image.c (convert_mono_to_color_image): Swap fore and background.
1447
1448 2007-06-20 Jason Rumney <jasonr@gnu.org>
1449
1450 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1451 (w32_free_bdf_font): Unmap memory not handle.
1452
1453 2007-06-20 Sam Steingold <sds@gnu.org>
1454
1455 * gmalloc.c (__morecore): Fix the declaration to comply with the
1456 definition.
1457
1458 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
1459
1460 * w32term.c (w32_delete_display): Remove leftover declaration.
1461 (w32_define_cursor, w32_initialize): Make static.
1462
1463 * w32.c (_wsa_errlist): Fix typo in error message.
1464 (init_environment): Ignore any environment variable from the
1465 registry having a null value.
1466
1467 2007-06-20 Glenn Morris <rgm@gnu.org>
1468
1469 * Makefile.in (LIBGIF): Default to -lgif.
1470
1471 2007-06-17 Jason Rumney <jasonr@gnu.org>
1472
1473 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1474 unicode strings.
1475
1476 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
1477
1478 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1479 Fix typo in docstring.
1480
1481 2007-06-16 Eli Zaretskii <eliz@gnu.org>
1482
1483 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1484 and their keybindings.
1485
1486 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
1487
1488 * composite.c (update_compositions): Fix last fix.
1489
1490 2007-06-14 Jason Rumney <jasonr@gnu.org>
1491
1492 * w32.c (get_process_times_fn): New function pointer.
1493 (globals_of_w32): Intialize it if present in kernel32.dll.
1494 (w32_get_internal_run_time): New function.
1495
1496 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
1497
1498 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
1499
1500 * composite.c (update_compositions): Check the validness of
1501 compositions.
1502
1503 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1504
1505 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
1506 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
1507
1508 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
1509 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
1510
1511 * macgui.h (USE_MAC_TOOLBAR): New define.
1512
1513 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1514 Return immediately unless popup is activated.
1515
1516 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
1517 background to scroll bar gap.
1518 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
1519 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
1520 scroll bars on frame edge. Check fringe background extension.
1521 Don't clear extended fringe background area.
1522 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
1523 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
1524 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
1525 [USE_MAC_TOOLBAR]: New macros.
1526 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
1527 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
1528 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
1529 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
1530 [USE_MAC_TOOLBAR]: New functions.
1531 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
1532 manually if previous repositioning has failed.
1533 (mac_handle_keyboard_event): Use precomputed event kind.
1534 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
1535 as tool bar item click. Handle mouse movement over tool bar items.
1536
1537 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
1538 toolbar_win_gravity.
1539 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
1540 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
1541 Add externs.
1542
1543 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
1544 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
1545
1546 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
1547
1548 * image.c (search_image_cache): Remove unused variable.
1549
1550 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
1551
1552 * xfns.c, xmenu.c: Link to xaw3d if available.
1553
1554 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1555
1556 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
1557 frame_foreground and frame_background.
1558
1559 * image.c (lookup_image): Save frame foreground and background colors.
1560 (search_image_cache): Check if saved and current frame colors match.
1561
1562 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1563
1564 * regex.c (regex_compile): Remove the `regnum' counter.
1565 Use bufp->re_nsub instead. Add support for \(?N:RE\).
1566
1567 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1568
1569 * term.c: Include intervals.h to declare Fget_text_property.
1570
1571 2007-06-10 Jason Rumney <jasonr@gnu.org>
1572
1573 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1574
1575 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
1576
1577 * callint.c (Fcall_interactively):
1578 * editfns.c (Fdelete_and_extract_region):
1579 * fileio.c (Fread_file_name):
1580 * fns.c (Fmapconcat):
1581 * keyboard.c (cmd_error_internal):
1582 * keymap.c (Fkey_description):
1583 * lread.c (openp):
1584 * minibuf.c (read_minibuf):
1585 * search.c (wordify):
1586 * sunfns.c (sel_read):
1587 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
1588 * xfns.c (x_default_scroll_bar_color_parameter):
1589 * xmenu.c (menu_help_callback):
1590 * xselect.c (Fx_get_atom_name):
1591 * xterm.c (x_term_init): Use empty_unibyte_string.
1592
1593 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
1594
1595 * alloc.c (init_strings): Initialize canonical empty strings.
1596 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
1597 canonical empty string when the requested size is 0.
1598
1599 * emacs.c (empty_unibyte_string): Rename from empty_string.
1600 (empty_multibyte_string): New canonical empty string.
1601 (syms_of_emacs): Don't initialize empty_string.
1602
1603 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
1604 string, if appropriate.
1605 (empty_unibyte_string, empty_multibyte_string): New externs.
1606 (empty_string): Remove extern.
1607
1608 * lread.c (syms_of_lread): Use empty_unibyte_string.
1609
1610 2007-06-07 Jason Rumney <jasonr@gnu.org>
1611
1612 * s/ms-w32.h: Don't define HAVE_TZNAME.
1613
1614 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
1615
1616 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1617
1618 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
1619
1620 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
1621 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
1622
1623 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1624 Don't call next handler.
1625 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
1626 Remove argument. Install handler to application.
1627 (set_frame_menubar): Don't change deep_p.
1628 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
1629 FRAME_OUTER_TO_INNER_DIFF_Y.
1630 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1631 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1632 [HAVE_DIALOGS]: New macros.
1633 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
1634 Use them.
1635 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
1636
1637 * macselect.c [MAC_OSX] (install_service_handler): Rename from
1638 init_service_handler. All callers changed. Return OSStatus value.
1639
1640 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
1641 All callers changed so as not to call SetPortWindowPort.
1642 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1643 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
1644 mac_draw_string_common.
1645 (mac_draw_image_string_qd): Likewise.
1646 (mac_draw_string_common): Use them. Add INLINE.
1647 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
1648 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
1649 GetGlobalMouse.
1650 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
1651 and FRAME_OUTER_TO_INNER_DIFF_Y.
1652 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
1653 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
1654 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
1655 repositioning window to mac_handle_window_event.
1656 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
1657 saving window location to mac_handle_window_event
1658 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
1659 (install_menu_target_item_handler): Remove argument in extern.
1660 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
1661 Also accept command events.
1662 (do_keystroke): New function created from XTread_socket.
1663 (init_command_handler): Remove functions.
1664 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
1665 and save window location by kEventWindowShowing and kEventWindowHiding
1666 handlers here. Don't call next handler for window state change and
1667 focus events.
1668 (mac_handle_application_event, mac_handle_keyboard_event)
1669 [TARGET_API_MAC_CARBON]: New functions.
1670 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
1671 kEventWindowShowing and kEventWindowHiding events. Move installation
1672 of mouse, font, text input and menu target item handlers to
1673 install_application_handler.
1674 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
1675 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1676 New function.
1677 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1678 Register it.
1679 (XTread_socket) [TARGET_API_MAC_CARBON]:
1680 Consolidate SendEventToEventTarget calls.
1681 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
1682 Move application activation handler to mac_handle_application_event.
1683 Move keyboard handler to mac_handle_keyboard_event.
1684 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
1685 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1686 init_command_handler. Call install_application_handler.
1687
1688 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
1689 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
1690
1691 2007-06-07 Glenn Morris <rgm@gnu.org>
1692
1693 * emacs.c (main): Use `emacs-copyright' in --version output.
1694
1695 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
1696
1697 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
1698
1699 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1700
1701 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
1702
1703 * macgui.h: Replace WindowPtr with WindowRef.
1704
1705 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1706 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1707 Replace ControlHandle with ControlRef.
1708 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
1709
1710 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1711 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1712 Replace ControlHandle with ControlRef.
1713 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
1714 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
1715
1716 * macterm.h (struct scroll_bar): Rename member control_handle_low
1717 and control_handle_high to control_ref_low and control_ref_high.
1718 All uses changed.
1719 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
1720 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
1721 respectively. All uses changed.
1722 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
1723 (install_window_handler, remove_window_handler): Replace WindowPtr
1724 with WindowRef in externs.
1725
1726 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
1727
1728 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
1729
1730 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
1731
1732 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
1733
1734 * frame.c (Fmouse_position, Fmouse_pixel_position):
1735 Condition on HAVE_GPM too.
1736
1737 * term.c (term_mouse_highlight): Remove unused variables.
1738 (Fterm_open_connection): Set gpm_zerobased to 1.
1739 (term_mouse_movement, term_mouse_click, handle_one_term_event):
1740 Use zero based co-ordinates.
1741 (handle_one_term_event): Report a drag as mouse movement too.
1742
1743 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
1744
1745 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
1746
1747 * image.c (search_image_cache): New function. Require background
1748 color match if background color is unspecified in the image spec.
1749 (uncache_image, lookup_image): Use it.
1750
1751 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
1752
1753 * window.c (Fshrink_window): Reflow docstring.
1754
1755 See ChangeLog.10 for earlier changes.
1756
1757 ;; Local Variables:
1758 ;; coding: iso-2022-7bit
1759 ;; add-log-time-zone-rule: t
1760 ;; End:
1761
1762 Copyright (C) 2007 Free Software Foundation, Inc.
1763
1764 This file is part of GNU Emacs.
1765
1766 GNU Emacs is free software; you can redistribute it and/or modify
1767 it under the terms of the GNU General Public License as published by
1768 the Free Software Foundation; either version 3, or (at your option)
1769 any later version.
1770
1771 GNU Emacs is distributed in the hope that it will be useful,
1772 but WITHOUT ANY WARRANTY; without even the implied warranty of
1773 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1774 GNU General Public License for more details.
1775
1776 You should have received a copy of the GNU General Public License
1777 along with GNU Emacs; see the file COPYING. If not, write to the
1778 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
1779 Boston, MA 02110-1301, USA.
1780
1781 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40