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