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