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