(server-delete-client): Only delete the terminal if it
[bpt/emacs.git] / src / ChangeLog
CommitLineData
bdf5f8ef
SM
12007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
75a8734b
SM
3 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
4 (init_sys_modes): Check that gpm_tty is the current tty.
5
13559ee0
SM
6 * alloc.c (allocate_terminal): Set the vector size to only count the
7 lisp fields. Initialize those to nil.
8 (mark_object): Don't treat terminals specially.
9 (mark_terminal): Remove.
10 (mark_terminals): Use mark_object instead.
11
ff16b875
SM
12 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13 the GC to the beginning.
14
83155776
SM
15 * indent.h:
16 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17
bdf5f8ef
SM
18 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19
ec8705b6
JR
202007-09-25 Jason Rumney <jasonr@gnu.org>
21
22 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23
24 * w32console.c (create_w32cons_output): Remove.
25
26 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
27
28 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29 (reset_sys_modes): Use reset_terminal_modes_hook.
30
7351b242
SM
312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * eval.c (do_autoload): Don't output any message.
34
16706228
JL
352007-09-24 Juri Linkov <juri@jurta.org>
36
37 * emacs.c (standard_args): Change priority of "--no-splash"
38 from 40 to 3. Add "--no-desktop" with the same priority.
39
3ae2e3a3
RS
402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
41
42 * alloc.c (gc_sweep): Check cons cell mark bits word by word
43 and optimize the case where they are all 1.
44
7a58fb43
GM
452007-09-23 Johannes Weiner <hannes@saeurebad.de>
46
3ae2e3a3
RS
47 * lisp.h (abs): Define if not defined.
48 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
49 Don't define `abs', since it's defined in lisp.h.
7a58fb43 50
78048085
EZ
512007-09-22 Eli Zaretskii <eliz@gnu.org>
52
53 * term.c (DEV_TTY): New macro. Provide a definition for
54 MS-Windows.
55 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
56 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
57 (init_tty): Use DEV_TTY instead of "/dev/tty".
58 [WINDOWSNT]: No need to protect from NAME arg being null.
59
23d4cba5
DN
602007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
61
62 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
63 up the tty state.
64
71f44e7a
SM
652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
68 (gpm_tty): Change its type.
69 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
70 (gpm_tty): Change its type and initialize it.
71 (Fterm_open_connection): Check the frame is indeed a tty.
72 Use the new gpm_tty.
73 (Fterm_close_connection): Use the new gpm_tty.
74 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
75 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
76
def7fa34
JB
772007-09-21 Juanma Barranquero <lekktu@gmail.com>
78
79 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
80 underline_color, to draw strike-through.
81
d2bb6598
SM
822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
83
273f164c
SM
84 * lisp.h (allocate_terminal): Declare.
85
ca2d5566
SM
86 * window.c (candidate_window_p): Consider frames that are being placed
87 by the user as somewhere between visible and iconified.
88 (window_loop): Prefer windows on the current frame.
89 (Fselect_window): Move the use of select-frame to the beginning so we
90 can just delegate all the work (it'll call us back anyway).
91
6168122d
SM
92 * frame.c (Qdisplay_environment_variable):
93 * frame.h (Qdisplay_environment_variable): Delete.
94
c51842ec
SM
95 * .gdbinit (xbacktrace): Print the arg's address rather than the value
96 of the first arg, since that value may be a union.
97
d2bb6598
SM
98 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
99 parameter rather than Qdisplay_environment_variable. If all else
100 fails, look for DISPLAY in initial-environment.
101
6f022c19
GM
1022007-09-21 Glenn Morris <rgm@gnu.org>
103
104 * Makefile.in (emacstool): Remove target.
f466320b 105 (lisp, shortlisp): Remove termdev.elc.
6f022c19 106
ea1bf8c7
GM
1072007-09-21 Markus Triska <markus.triska@gmx.at>
108
d2bb6598 109 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 110
d30a25b3
SM
1112007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
112
db699fc6
SM
113 * callproc.c (getenv_internal_1): New function.
114 (getenv_internal): Use it.
115 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
116
d2bb6598 117 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
118 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
119 (Fset_terminal_parameter): Work with dead terminals as well.
120 (Fmodify_terminal_parameters): Remove.
121
d30a25b3
SM
122 * terminal.c (get_terminal): Handle terminals.
123 Make sure the terminal returned is live.
124 (create_terminal): Use allocate_terminal.
125 (mark_terminals): Move to alloc.c.
126 (delete_terminal): Use terminal->name as liveness status.
127 NULL out fields after freeing their contents.
128 Don't deallocate the object.
129 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
130 rather than an int.
131 (Fterminal_live_p): Accept non-integer arguments.
132 (Fterminal_list): Return terminal objects rather than an ints.
133
134 * alloc.c (enum mem_type): New member for `terminal' objects.
135 (allocate_terminal): New function.
d2bb6598
SM
136 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
137 Handle terminals.
d30a25b3
SM
138 (mark_terminal): New fun.
139 (mark_terminals): Move from terminal.c.
140
141 * term.c (get_tty_terminal): Don't treat output_initial specially.
142 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
143 (delete_tty): Use terminal->name as liveness status.
144
145 * termhooks.h (struct terminal): Make it into a pseudovector.
146 Remove `deleted' replaced by checking `name's nullness.
147
148 * print.c (print_object): Handle terminals.
149
150 * lisp.h (enum pvec_type): New `terminal' pseudovector.
151 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
152
153 * frame.c (make_terminal_frame):
154 * keyboard.c (tty_read_avail_input):
155 * w32term.c (x_delete_terminal):
156 * xfns.c (Fx_create_frame, x_create_tip_frame):
157 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
158
eba25e7c
GM
1592007-09-20 Glenn Morris <rgm@gnu.org>
160
161 * process.c (Fmake_network_process): Doc fix.
162
2a29c3c1
JR
1632007-09-19 Jason Rumney <jasonr@gnu.org>
164
165 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
166
ba1cbad7
MC
1672007-09-19 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
168
169 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
170 Fix a C warning regarding variable constness.
171
172 * xterm.c (handle_one_xevent): Fix a C warning.
173
334a1195
JR
1742007-09-18 Jason Rumney <jasonr@gnu.org>
175
176 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
177
879ffad9
JD
1782007-09-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
179
180 * gtkutil.c (gdpy_def): New variable.
181 (xg_initialize): Initialize gdpy_def.
182 (xg_display_close): If no other display exists, set gdpy_def to a
183 new connection.
184
45c94881
JD
1852007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
186
187 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
188 when we have no file name for the icon.
189 (xg_tool_bar_expose_callback): Remove.
190 (xg_create_tool_bar): Don't connect expose signal to
191 xg_tool_bar_expose_callback.
192 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
193
4d580af2
AS
1942007-09-16 Andreas Schwab <schwab@suse.de>
195
196 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
197 values instead of zapping them.
198
aca946f3
GM
1992007-09-14 Glenn Morris <rgm@gnu.org>
200
201 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
202 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
203 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
204 scope and rename to omfib_buffer for clarity.
205 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
206
25c460e5
KH
2072007-09-14 Kenichi Handa <handa@m17n.org>
208
209 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
210
09b69f01
JR
2112007-09-13 Jason Rumney <jasonr@gnu.org>
212
213 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
214
215 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
216
217 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
218 (mac_term_init): Call here instead, passing rif.
219
442218db
GM
2202007-09-13 Glenn Morris <rgm@gnu.org>
221
222 * s/hpux.h: No longer define `static' as nothing.
223
4795c40f
GM
2242007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
225
226 * callint.c (Fcall_interactively): Remove unused var `fun'.
227
1971a872
RF
2282007-09-12 Romain Francoise <romain@orebokech.com>
229
230 * window.c (prefer_window_split_horizontally, display_buffer):
231 Revert 2007-09-08 change.
232
2d33f506
GM
2332007-09-12 Glenn Morris <rgm@gnu.org>
234
585474ae 235 * alloca.c: Remove file.
ca7af97a
GM
236 * Makefile.in (alloca): Do not undef.
237 (allocaobj, alloca.o): Remove.
238 (otherobj): Remove allocaobj.
239 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
240 * regex.c (C_ALLOCA): Remove all references and code that was only
241 used when this was defined.
242 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
243 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
244 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
245
2d33f506 246 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
247
248 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
249 (menu_grab_callback): All uses changed.
250
251 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
252 (x_reply_selection_request): All uses changed.
2d33f506 253
18a4a65e
SM
2542007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
255
256 * lread.c (load_warn_old_style_backquotes): Change message to look
257 better when it appears in the middle of byte-compiler messages.
258
47cc8819
DN
2592007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
260
b7ea0894
DN
261 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
262
47cc8819
DN
263 * xterm.c (x_create_terminal): Add comment.
264
265 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
266
5632bd0f
RS
2672007-09-10 Richard Stallman <rms@gnu.org>
268
269 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
270
ccb5c14f
MC
2712007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
272
4bca9161
MC
273 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
274 (DEFUN): Document `intspec', use it instead of `prompt'.
275
04724b69
MC
276 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
277
8a6d230a
MC
278 * data.c (Finteractive_form): If the interactive specification starts
279 with a `(', use it as a Lisp form.
280
09fbdf6c
MC
281 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
282 name and file modes.
283
ccb5c14f
MC
284 * callint.c (Fcall_interactively): Comment fixes.
285
023accd6
SM
2862007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
287
288 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
289 and compiled functions.
290
f26b9544
EZ
2912007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
292
293 * window.c (prefer_window_split_horizontally): New variable.
294 (display_buffer): Consider splitting window horizontally depending
295 on prefer_window_split_horizontally.
296
4d395425
EZ
2972007-09-08 Eli Zaretskii <eliz@gnu.org>
298
97ddc760 299 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 300
08c1d235
SM
3012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
302
179cef48
SM
303 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
304
08c1d235
SM
305 * frame.c (x_set_frame_parameters): Check number is positive before
306 using XFASTINT.
307
308 * window.c (freeze_window_start): Don't presume selected_window holds
309 a window object.
92f94a12 310 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 311
97ddc760 3122007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
313
314 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
315
90ab5c62
SM
3162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
317
318 * window.c (Vsplit_window_preferred_function): New var.
319 (Fdisplay_buffer): Use it.
320 (syms_of_window): Export, and initialize it.
321
1ab2cd43
TTN
3222007-09-06 Pixel <pixel@mandriva.com> (tiny change)
323
324 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
325
0b0515bc
GM
3262007-09-06 Glenn Morris <rgm@gnu.org>
327
57fd5c55 328 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
329 * xselect.c (x_reply_selection_request) <cnt>: Move static
330 variable to file scope.
331
98594580
SM
3322007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
333
334 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
335 consistent values of selected_frame and selected_window.
336
0f4c7aef
JR
3372007-09-04 Jason Rumney <jasonr@gnu.org>
338
339 * w32console.c (initialize_w32_display): Zero unused hooks.
340
e4019195
DN
3412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
342
343 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
344 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
345
bce179b5
JR
3462007-09-04 Jason Rumney <jasonr@gnu.org>
347
a0236551
JR
348 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
349 in w32console.c. Set up input. Remove XXX comments that have been
350 confirmed as correct.
351
a4926668
JR
352 * s/ms-w32.h (MULTI_KBOARD): Define.
353
953bf0dc
JR
354 * w32console.c (one_and_only_w32cons): Remove.
355 (initialize_w32_display): Take terminal argument.
356
357 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
358 initialize_w32_display.
359 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
360
bce179b5
JR
361 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
362
363 * keyboard.c (discard_mouse_events): Discard it.
364 (make_lispy_event): Translate it to a lisp event.
365 (lispy_wheel_names): Add wheel-left and right events.
366 (syms_of_keyboard): Enlarge wheel_syms.
367
368 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
369 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
370
371 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
372
373 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
374 from WM_MOUSEHWHEEL.
375 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
376
377 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
378 terminal.
379
380 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
381 keyboard for the terminal.
382
92cd6a7c
DN
3832007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
384
385 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
386 (Vresume_tty_hook): Rename from Vresume_tty_functions.
387 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
388 and resume-tty-function to resume-tty-hook.
389 (Fsuspend_tty, Fresume_tty): Use new names.
390
2154c964
JD
3912007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
392
393 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
394 if it starts with "n:".
395
b42ff099
JD
3962007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
397
398 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
399
6b8e474c
SM
4002007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
401
92d9c1d4
SM
402 * frame.h:
403 * frame.c (Qterm_environment_variable): Remove.
404 (syms_of_frame): Don't init and staticpro it.
405
92d9c1d4
SM
406 * callproc.c (getenv_internal): Remove special case for $TERM.
407
6b8e474c
SM
408 * callproc.c (Vinitial_environment): New variable.
409 (set_initial_environment): Initialize it.
410 (syms_of_callproc): Declare it.
411 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
412 TERM under which a process runs is never related to the TERM in which
413 Emacs is running.
414
0f1444e1
DN
4152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
416
417 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
418 * s/darwin.h: ... do it here.
419
b8866860
SM
4202007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
421
422 * lisp.h (set_initial_environment): Rename from set_global_environment.
423
424 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
425 removed by mistake on the multi-tty branch.
426
427 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
428 (Fmodify_frame_parameters): Return a value.
429
430 * image.c (png_load): Comment-out var only used in commented-out code.
431
432 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
433 before passing it to mark_object.
434
435 * xfaces.c (internal_resolve_face_name): Return a value.
436 (internal_resolve_face_name, resolve_face_name_error): Comment out.
437
438 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
439 (x_icon): Comment-out var only used in commented-out code.
440
0a42be6d
RF
4412007-08-29 Romain Francoise <romain@orebokech.com>
442
443 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
444 QUIT hasn't been provided.
445
8d9cc0b7
MB
4462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
447
448 * callproc.c (child_setup, getenv_internal): Use the
449 display-environment-variable and term-environment-variable frame
450 params.
451 (set_initial_environment): Initialise Vprocess_environment.
452
453 * config.in: Disable multi-keyboard support on a mac.
454
455 * frame.c (Qterm_environment_variable)
456 (Qdisplay_environment_variable): New variables.
457 (syms_of_frame): Intern and staticpro them.
458 (Fmake_terminal_frame): Disable output method test.
459
460 * frame.h: Declare them here.
461
462 * macfns.c (x_set_mouse_color): Get rif from the frame.
463 (x_set_tool_bar_lines): Don't use updating_frame.
464 (mac_window): Add 2 new parameters for consistency with other systems.
465 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
466 frame parameters following what is done in X11 and w32. Don't use
467 FRAME_MAC_DISPLAY_INFO.
468 (Fx_open_connection, start_hourglass): Remove window-system check.
469 (x_create_tip_frame): Get the keyboard from the terminal.
470
471 * macmenu.c: Reorder includes.
472 (Fx_popup_menu): Use terminal specific mouse_position_hook.
473
474 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
475 terminal parameter.
476 (x_clear_frame): Add a frame parameter.
477 (note_mouse_movement): Get rif from the frame.
478 (mac_term_init): Initialize the terminal.
479 (mac_initialize): Make static and move terminal initialization ...
480 (mac_create_terminal): ... to this new function.
481
482 * macterm.h (struct mac_display_info): Add terminal.
7196c970 483 (mac_initialize): Delete declaration.
8d9cc0b7 484
381864b2 485 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
486
487 * sysdep.c: Comment out text after #endif.
488
489 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
490 is defined. Better initialize ttys in windows. Use terminal
491 specific mouse_position_hook.
492
493 * termhooks.h (union display_info): Add mac_display_info.
494
b8866860
SM
495 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
496 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
497 frame parameters following what is done in X11.
498
499 * w32term.c (w32_initialize): Make static.
500
501 * xselect.c (x_handle_selection_clear): Only access
502 terminal->kboard when MULTI_KBOARD is defined.
503
504 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
505 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
506
5072007-08-29 Jason Rumney <jasonr@gnu.org>
508
509 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
510 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
511
512 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
513 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
514
515 * keyboard.c (restore_kboard_configuration): Only define when
516 MULTI_KBOARD defined.
517
518 * makefile.w32-in: Update dependancies from Makefile.in
519 (OBJ1): Add terminal.$(O)
520
b8866860
SM
521 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
522 Don't define function body.
8d9cc0b7
MB
523 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
524
525 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
526
527 * w32.c (request_sigio, unrequest_sigio): Remove.
528
529 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
530 (w32con_clear_frame, w32con_clear_end_of_line)
531 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
532 (w32con_delete_glyphs, w32con_set_terminal_window)
533 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
534 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
535 Add terminal arg.
8d9cc0b7
MB
536 (PICK_FRAME): Remove.
537 (w32con_write_glyphs): Use frame specific terminal coding.
538 (one_and_only_w32cons): New global variable.
539 (initialize_w32_display): Use it for storing hooks.
540 (create_w32cons_output): New function.
541
542 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
543 arg a frame.
544
b8866860
SM
545 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
546 Set window_system.
8d9cc0b7
MB
547 (x_set_tool_bar_lines): Don't use updating_frame.
548 (Fx_create_frame): Set terminal and ref count.
549 (Fx_open_connection): Remove window-system check.
550
551 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
552
553 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
554 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
555 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
556 Add frame arg.
557 (x_delete_terminal, w32_create_terminal): New functions.
558 (w32_term_init): Create a terminal.
559 (w32_initialize): Move terminal specific initialization to
560 w32_create_terminal.
561
b8866860 562 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
563 (w32_clear_rect, w32_clear_area): Use background from frame.
564 (w32_display_info): Add terminal.
565 (w32_sys_ring_bell, x_delete_display): Declare here.
566
567 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
568
569 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
570
5712007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
572
573 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
574 Fix get_named_tty calls for the controlling tty.
575
5762007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
577
578 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
579
5802007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
581
582 * term.c (tty_insert_glyphs): Add missing first parameter.
583
5842007-08-29 Karoly Lorentey <karoly@lorentey.hu>
585
b8866860
SM
586 * buffer.c (Fbuffer_list, Fbury_buffer):
587 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
588
589 * cm.c (current_tty): New variable, for cmputc().
590 (cmputc): Use it.
591 (cmcheckmagic): Add tty parameter, look up terminal streams there.
592 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
593 (cmgoto): Add tty parameter. Pass it on to calccost().
594 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
595
596 * cm.h (emacs_tputs): New macro to set current_tty, and then call
597 tputs().
598 (current_tty): New variable, for cmputc().
599 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
600
601 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
602 (internal_condition_case, internal_condition_case_1)
603 (internal_condition_case_2): Don't abort when x_catching_errors.
604
605 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
606 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
607 prevent crashes caused by bogus longjmps in read_char.
608
609 * keymap.h (Fset_keymap_parent): Add EXFUN.
610
611 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
612 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
613 Remove redundant definition.
614
b8866860
SM
615 * macfns.c (x_set_mouse_color, x_make_gc):
616 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 617
b8866860
SM
618 * w32term.c (x_free_frame_resources):
619 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
620 (w32_initialize): Use the accessor macros for terminal characteristics.
621
622 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
623 Use the accessor macros for terminal characteristics.
624 * msdos.c (internal_terminal_init): Use the accessor macros for
625 terminal characteristics.
b8866860
SM
626 (ScreenVisualBell, internal_terminal_init):
627 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
628
629 * termopts.h (no_redraw_on_reenter): Declare.
630
631 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 632 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 633 (Fgarbage_collect): Call them.
03f06e5c 634 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
635
636 * prefix-args.c: Include stdlib.h for exit.
637
638 * syssignal.h: Add comment.
639
640 * indent.c: Include stdio.h.
641
642 * window.h (Vinitial_window_system): Declare.
643 (Vwindow_system): Delete declaration.
644
645 * fontset.c (Finternal_char_font): Use FRAME_RIF.
646
647 * image.c (lookup_image): Don't initialize `c' until the xasserts
648 have been run.
649
650 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
651 FRAME_FOREGROUND_PIXEL.
652
653 * print.c (print_preprocess): Don't lose print_depth levels while
654 iterating.
655
b8866860
SM
656 * widget.c (update_from_various_frame_slots):
657 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
658
659 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
660 frames.
661 (window_internal_height): Remove bogus make_number call.
b8866860 662 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
663
664 * fileio.c (Fread_file_name): Update comment.
665
b8866860
SM
666 * callint.c (Fcall_interactively):
667 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
668 Make sure it is correctly unwound.
669
670 * xsmfns.c (x_session_close): New function.
671
03f06e5c 672 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
673 Delete declarations.
674
675 * xterm.h: Remove declaration for x_fully_uncatch_errors.
676 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 677 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
8d9cc0b7
MB
678 (x_delete_device):
679 (x_session_close): Declare.
680
681 * lread.c: Include setjmp.h. Update declaration of `read_char'.
682 (read_filtered_event): Call `read_char' with a local
683 `wrong_kboard_jmpbuf'.
684
b8866860
SM
685 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
686 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
687
688 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
689 systems.
690
b8866860 691 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 692 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 693 (Fset_quit_char): EXFUN.
03f06e5c 694 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
695 (init_sys_modes, reset_sys_modes): Update prototypes.
696 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
697
b8866860
SM
698 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
699 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 700 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 701 Delete declarations.
03f06e5c
JB
702 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
703 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
704 New declarations.
705
706 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
707 already does that during init_display(). Call syms_of_keymap
b8866860
SM
708 before syms_of_keyboard. Call `syms_of_terminal'.
709 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
710 (shut_down_emacs): Call reset_all_sys_modes() instead of
711 reset_sys_modes().
712
713 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
714 (internal_resolve_face_name, resolve_face_name_error): New functions.
715 (resolve_face_name): Protect against loops and errors thrown by Fget.
716 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
717 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
718
719 * scroll.c: Replace CURTTY() with local variables throughout the
720 file (where applicable).
721 (calculate_scrolling, calculate_direct_scrolling)
722 (scrolling_1, scroll_cost): Use the accessor macros for terminal
723 characteristics.
724
725 * keymap.c (Vfunction_key_map): Remove.
b8866860 726 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
727 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
728 (Vkey_translation_map): Remove.
729 (syms_of_keymap): Remove DEFVAR for key-translation-map.
730 (Fdescribe_buffer_bindings):
731 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
732 Update for terminal-local key-translation-map.
733
734 * Makefile.in (callproc.o): Update dependencies.
735 (lisp, shortlisp): Add termdev.elc.
736 (obj): Add terminal.o.
737 (terminal.o): Add dependencies.
738 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
739 (data.o, fns.o): Add termhooks.h dependency.
740 (SOME_MACHINE_LISP): Add dnd.elc.
741 (minibuf.o): Fix typo.
742 Update dependencies.
743
744 * data.c (do_symval_forwarding, store_symval_forwarding)
745 (find_symbol_value): Use the selected frame's keyboard, not
746 current_kboard.
747
748 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
749 Vwindow_system.
750
751 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
752 Fmenu_bar_open.
753 (syms_of_xmenu): Update defsubr.
754 (mouse_position_for_popup, Fx_popup_menu)
755 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
756 (set_frame_menubar, free_frame_menubar)
757 (create_and_show_popup_menu, xmenu_show, )
758 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
759 an X frame.
760
761 * xselect.c (x_own_selection): Abort if not an X frame.
762 (some_frame_on_display): Check if it is an X frame.
763 (x_handle_selection_clear): Deal with MULTI_KBOARD.
764
765 * coding.c: Include frame.h and termhooks.h.
03f06e5c 766 (terminal_coding, keyboard_coding): Delete.
8d9cc0b7
MB
767 (Fset_terminal_coding_system_internal):
768 (Fset_keyboard_coding_system_internal):
769 (Fkeyboard_coding_system):
03f06e5c
JB
770 (Fterminal_coding_system): Add a terminal parameter.
771 Get terminal_coding from the terminal.
8d9cc0b7
MB
772 (init_coding_once): Don't call setup_coding_system here.
773
774 * dispextern.h (set_scroll_region, turn_off_insert)
775 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
776 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 777 (delete_tty, updating_frame)
8d9cc0b7
MB
778 (produce_special_glyphs, produce_glyphs, write_glyphs)
779 (insert_glyphs): Remove.
780 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 781 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 782 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
783
784 * frame.h (enum output_method): Add output_initial.
785 (struct x_output): Delete.
b8866860
SM
786 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
787 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
788 (tty_display): Delete.
789 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 790 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
791 (union output_data): Add tty.
792 (FRAME_KBOARD): Get the kboard from the terminal.
793 (FRAME_INITIAL_P): New macro.
794 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
795 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
796 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
797 New declarations.
8d9cc0b7
MB
798
799 * termchar.h (tty_output, tty_display_info): New structures.
800 (tty_list): Declare.
801 (FRAME_TTY, CURTTY): New macros.
802 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
803 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
804 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
805 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
806
807 * callproc.c: Include frame.h and termhooks.h, for terminal
808 parameters.
809 (add_env): New function.
810 (child_setup): Use it.
b8866860 811 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
812 (getenv_internal): Fix get_terminal_param call.
813 (Fgetenv_internal, egetenv): Update doc.
814 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 815 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
816 strings.
817 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
818 (getenv_internal): Add terminal parameter.
819 Handle Vlocal_environment_variables.
8d9cc0b7
MB
820 (Fgetenv_internal): Add terminal parameter.
821 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 822 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
823 (set_initial_environment): Rename from set_global_environment.
824 Store Emacs environment in initial frame parameter.
825
826 * xdisp.c (redisplay_internal): Update references to
827 `previous_terminal_frame'.
828 (display_mode_line, Fformat_mode_line): Replace calls to
829 `push_frame_kboard' with `push_kboard'.
830 (get_glyph_string_clip_rects): Add extra parentheses and
831 braces to prevent compiler warnings.
832 (calc_pixel_width_or_height): Add xassert to check that the
833 frame is alive. Don't call `lookup_image' on a termcap frame.
834 (message2_nolog, message3_nolog, redisplay_internal)
835 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
836 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
837 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
838 (Fx_display_pixel_width, Fx_display_pixel_height)
839 (Fx_display_planes, Fx_display_color_cells)
840 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
841 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
842 (Fx_display_backing_store, Fx_display_visual_class)
843 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 844 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
845
846 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
847 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
848 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
849 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
850 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
851 terminal that is being deleted.
852 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 853 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
854 (Fx_close_connection, Fx_synchronize): Unify argument names with
855 the rest of the DEFUNs.
856
857 * dispnew.c (Fsend_string_to_terminal): Update call to
858 `get_tty_terminal'.
859 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 860 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
861 FRAME_TERMCAP_P and FRAME_TTY.
862 (window_change_signal): Don't believe width/height values that are
863 impossibly small.
864 (Vinitial_window_system): Rename from Vwindow_system.
865 (termscript, Wcm, rif): Delete.
866
867 * termhooks.h (struct terminal): New struct containing the
868 previously global text display hooks and new members NAME,
869 DELETED and PARAM_ALIST.
870 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
871 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
872 (FRAME_RIF): New macros.
873 (get_terminal_param, get_device): New declarations.
874 (termscript): Delete declaration.
875
876 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
877 (XTflash, x_free_frame_resources, x_scroll_bar_create)
878 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
879 FRAME_FOREGROUND_PIXEL.
880 (x_fully_uncatch_errors): Disable definition.
881 (x_scroll_bar_expose): Fix reference to foreground pixel.
882 (XTread_socket): Disable loop on all X displays.
883 (x_delete_terminal): Don't set terminal->deleted and let
884 delete_terminal delete the frames on the terminal.
885 (x_delete_display): Doc update to reflect changes in
886 delete_terminal.
887 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
888 (deleting_tty): Remove old variable.
889 (Fsuspend_tty): Call clear_tty_hooks.
890 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
891 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
892 errors on X frames.
893 (x_catch_errors_unwind): Abort if x_error_message is NULL.
894 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 895 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
896 (XTset_terminal_modes, XTreset_terminal_modes)
897 (XTread_socket, x_connection_closed, x_term_init)
898 (x_term_init, x_delete_display): Add terminal parameter.
899 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
900 X connections.
901
902 * frame.c (Fframep): Deal with output_initial.
903 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
904 (Qtty_type, Qwindow_system, Qenvironment)
b8866860 905 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
8d9cc0b7
MB
906 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
907 (make_terminal_frame): Don't create frames on a terminal that is
908 being deleted.
909 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
910 FRAME_FOREGROUND_PIXEL.
b8866860 911 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
912 (Fmake_terminal_frame): Handle NULL tty names correctly.
913 (syms_of_frame): Enhance doc string of `default-frame-alist'.
914 (Fdelete_frame): Remove unused variable `count'.
915 (Qenvironment): New variable.
916 (Fdelete_frame): Don't allow other frames to refer to a deleted
917 frame in their 'environment parameter.
918 (Fframe_with_environment): New function.
b8866860 919 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
920 (get_future_frame_param): New function.
921 (Fmake_terminal_frame): Use it.
2d33f506 922 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
923
924 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
925 * sysdep.c (reset_sys_modes): Update for renames.
926
927 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 928 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
929 (syms_of_keyboard): Defsubr them.
930 (Fset_input_meta_mode, Fset_quit_char): New functions.
931 (Fset_input_mode): Split to above functions.
932
933 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
934 parameter. Use it in call to `read_char'.
b8866860
SM
935 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
936 Set wrong_kboard_jmpbuf correctly in recursive calls.
937 Use current_kboard to access Vkeyboard_translate_table.
938 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
939 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
940 Update longjmp invocations. Remember the original current_kboard,
941 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
942 changes it. Comment out unnecessary calls to
943 `record_single_kboard_state' and `any_kboard_state'.
944 Update recursive calls.
8d9cc0b7
MB
945 (wrong_kboard_jmpbuf): Remove global variable.
946 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
947 Handle deleted interrupted_kboards correctly; that is a legal
948 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 949 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
950 (any_kboard_state, single_kboard_state)
951 (push_frame_kboard): Remove function.
952 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
953 been deleted. Remove unused variable. Help debugging by not
954 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
955 kboard of the selected frame when the stored kboard object has
956 been deleted before pop_kboard.
957 (temporarily_switch_to_single_kboard): Change first parameter to a
958 frame pointer. Throw an error when caller wants to change kboards
959 while in single_kboard mode. Don't push_kboard if we weren't in
960 single kboard state. Don't pop_kboard if we popped into any
961 kboard state.
962 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 963 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
964 up single_kboard mode.
965 (Frecursive_edit): Switch to single_kboard mode only in nested
966 command loops.
b8866860
SM
967 (cmd_error, command_loop, command_loop_1, timer_check):
968 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
969 `record_single_kboard_state'.
970 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 971 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
972 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
973 `fatal_error_signal'.
974 (record_single_kboard_state): Don't push_kboard if we weren't in
975 single kboard state. Don't pop_kboard if we popped into any
976 kboard state.
977 (push_frame_kboard): Rename to push_kboard.
978 (kbd_buffer_get_event): Use FRAME_TERMINAL.
979 (read_avail_input): Read input from all terminals.
980 (mark_kboards): Also mark Vkeyboard_translate_table.
981 (kbd_buffer_store_event_hold): Simplify condition.
982 (read_key_sequence): Reinitialize fkey and keytran at each replay.
983 (Vkeyboard_translate_table): Move to struct kboard.
984 (init_kboard): Initialize Vkeyboard_translate_table.
985 (syms_of_keyboard): Use DEFVAR_KBOARD to define
986 Vkeyboard_translate_table. Update doc strings. Update docs of
987 local-function-key-map and function-key-map.
988
989 * terminal.c: New file.
990
991 * term.c: Include errno.h.
992 (Vring_bell_function, device_list, initial_device)
993 (next_device_id, ring_bell, update_begin, update_end)
994 (set_terminal_window, cursor_to, raw_cursor_to)
995 (clear_to_end, clear_frame, clear_end_of_line)
996 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
997 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
998 (syms_of_term): Move their initialization to terminal.c.
999 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
1000 (Ftty_display_color_cells)
1001 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 1002 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
1003 (init_tty, maybe_fatal): New functions.
1004 (Ftty_type): Return nil if terminal is not on a tty instead of
1005 throwing an error. Doc update.
1006 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 1007 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
1008 (delete_tty): Use terminal->deleted.
1009 (tty_set_terminal_modes): Rename from set_terminal_modes.
1010 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
1011 (set_scroll_region): Rename to `tty_set_scroll_region'.
1012 (turn_on_insert): Rename to `tty_turn_on_insert'.
1013 (turn_off_insert): Rename to `tty_turn_off_insert'.
1014 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
1015 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
1016 (toggle_highligh): Rename to `tty_toggle_highlight'.
1017 (background_highlight): Rename to `tty_background_highlight'.
1018 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
1019 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
1020 (tty_set_scroll_region, tty_background_highlight)
1021 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
1022 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
1023 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
1024 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
1025 Add static modifier.
1026 (tty_reset_terminal_modes, tty_set_terminal_window)
1027 (tty_set_scroll_region, tty_background_highlight)
1028 (tty_highlight_if_desired, tty_cursor_to)
1029 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
1030 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
1031 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
1032 renames.
1033
cf0590c4
JD
10342007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1035
1036 * keyboard.c: Qrtl is new.
1037 (parse_tool_bar_item): Handle :rtl keyword.
1038 (syms_of_keyboard): Intern :rtl keyword.
1039
1040 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1041
1042 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1043 so no Lisp code is executed.
1044 (file_for_image, find_rtl_image): New functions.
1045 (xg_get_image_for_pixmap): Use file_for_image
1046 (update_frame_tool_bar): If direction is RTL, use RTL image if
1047 defined. Use Gtk stock images if defined.
1048
83cc8d35
YM
10492007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1050
1051 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1052 for nonexistent or zero-width glyph in composition glyph.
1053
e60c4e15
SM
10542007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
1055
d7e2a28f
SM
1056 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
1057
e60c4e15
SM
1058 * xdisp.c (Finvisible_p): New function.
1059 (syms_of_xdisp): defsubr it.
1060
ee163e6d
JB
10612007-08-24 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1064 Doc fixes.
1065
90fa408d
YM
10662007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1067
1068 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
1069
cac4219c
MR
10702007-08-24 Martin Rudalics <rudalics@gmx.at>
1071
1072 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
1073 whether decoding has modified buffer contents.
1074
5fc9fdeb
JR
10752007-08-24 Jason Rumney <jasonr@gnu.org>
1076
1077 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
1078 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
1079 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
1080 (init_svg_functions) [HAVE_NTGUI]: New function.
1081 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
1082 (svg_load_image): Use them.
1083 (svg_load_image) [HAVE_NTGUI]: Implement background.
1084
93b23406
YM
10852007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1086
1087 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
1088 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
1089 (LIBX): Remove @RSVG_LIBS@.
1090 (LIBES): Add $(RSVG_LIBS).
1091
1092 * image.c (svg_load_image): Blend with specified background if exists.
1093 Use IMAGE_BACKGROUND. Add Mac OS Support.
1094
1095 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
1096 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
1097 Remove macros.
1098 [MAC_OSX] (socket_callback): Do nothing.
1099 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
1100 ReceiveNextEvent.
1101 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
1102 socket_callback.
1103 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
1104
2467875c
GM
11052007-08-22 Glenn Morris <rgm@gnu.org>
1106
ff8da443 1107 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 1108
4ab27a43
GM
11092007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
1110
1111 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 1112
666e0eda
GM
1113 * image.c: Add support for SVG images. Some additional comments
1114 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
1115 (svg_image_p): New function to test for SVG image.
1116 (svg_load): New function to load SVG image.
1117 (svg_load_image): New function, helper for svg_load.
1118 (Qsvg): New Lisp_object.
1119 (svg_keyword_index): New enum.
1120 (svg_format): New static `image_keyword' struct.
1121 (svg_type): New static `image_type' struct.
1122 (librsvg/rsvg.h): Include it.
4ab27a43 1123
b636b4c1
SM
11242007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1125
1126 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1127
9ecb827b
SM
11282007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1d064697
SM
1130 * lread.c (Qold_style_backquotes): New var.
1131 (syms_of_lread): Init and staticpro it.
1132 (load_warn_old_style_backquotes): New fun.
1133 (Fload): Use them to warn about old style backquotes.
1134 (end_of_file_error, Fload): Remove unused vars.
1135
5772ed4b
SM
1136 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1137
9ecb827b 1138 * lread.c (Vold_style_backquotes): New var.
5aa273b0 1139 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
1140 (read1): Set it when we find an old-style (back)quote.
1141
32e1c7b1
JR
11422007-08-22 Jason Rumney <jasonr@gnu.org>
1143
1144 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1145
b8fa755b
KY
11462007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
1147
1148 * puresize.h (BASE_PURESIZE): Increase to 1140000.
1149
1283140e
RS
11502007-08-19 Richard Stallman <rms@gnu.org>
1151
1152 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
1153
2c4685ee
AS
11542007-08-19 Andreas Schwab <schwab@suse.de>
1155
1156 * alloc.c (pure): Round PURESIZE up.
1157
e8953ebf
JD
11582007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1159
1160 * xterm.c (handle_one_xevent): Remove check that mouse click is in
1161 active frame.
1162
6e33efc4
RS
11632007-08-16 Richard Stallman <rms@gnu.org>
1164
1165 * eval.c (Fcommandp): Add parens to clarify.
1166
1167 * minibuf.c (Fall_completions): Use enum for type of table.
1168
1169 * emacs.c (USAGE2): Improve text.
1170
fcf8ff2e
GM
11712007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
1172
5205ee62
GM
1173 * term.c (tty_default_color_capabilities): Declare static
1174 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 1175
81d13a51
JD
11762007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1177
1178 * gtkutil.c (update_frame_tool_bar): Use -1 as index
1179 to gtk_toolbar_insert.
1180
4a181359
SM
11812007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1bc99c9c
SM
1183 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
1184
4a181359
SM
1185 * insdel.c (reset_var_on_error): New fun.
1186 (signal_before_change, signal_after_change):
1187 Use it to reset (after|before)-change-functions to nil in case of error.
1188 Bind inhibit-modification-hooks to t.
1189 Don't bind (after|before)-change-functions to nil while they run.
1190
6c28435c
YM
11912007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1192
1193 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1194 filling pixmap with stippled background.
1195
ad3b3e02
YM
11962007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1197
1198 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
1199 Don't use invisible frame as parent window for repositioning.
1200
a22dec27
SM
12012007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1202
1203 * print.c (new_backquote_output): Rename from old_backquote_output.
1204 (print): Inverse its logic (according to its name) so as to match the
1205 behavior of new_backquote_flag in lread.c.
1206
7b7d07bb
YM
12072007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1208
1209 * gmalloc.c (posix_memalign): New function.
1210
1211 * macterm.c (frame_highlight, frame_unhighlight): Don't call
1212 ActivateControl/DeactivateControl here.
1213 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
1214 frame-notice-user-settings is non-nil.
1215 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
1216 for kEventParamFMFontStyle.
1217 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
1218 mac_pass_command_to_system and mac_pass_control_to_system here.
1219 (XTread_socket): Call ActivateControl/DeactivateControl here.
1220 (XTread_socket) [TARGET_API_MAC_CARBON]:
1221 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
1222 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
1223 for window repositioning.
7b7d07bb 1224
22e9fe24
GM
12252007-08-08 Glenn Morris <rgm@gnu.org>
1226
1227 * Replace `iff' in doc-strings and comments.
1228
ae494350
CY
12292007-08-07 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1232
6f2528d8
MR
12332007-08-07 Martin Rudalics <rudalics@gmx.at>
1234
1235 * fileio.c (Finsert_file_contents): Run format-decode and
1236 after_insert_file_functions on entire buffer when REPLACE is
1237 non-nil and inhibit modification_hooks and point_motion_hooks.
1238 For consistency, run after_insert_file_functions iff something
1239 got inserted. Move signal_after_change and update_compositions
1240 after code running after_insert_file_functions. Make sure that
6b8e474c 1241 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 1242
3ceeb306
YM
12432007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1244
1245 * emacs.c (main)
1246 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1247 Call malloc_enable_thread on interactive startup.
1248
1249 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
1250 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1251 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
1252 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1253 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1254 New functions.
1255
ca5e6fd5
CY
12562007-08-06 Chong Yidong <cyd@stupidchicken.com>
1257
32bfce5d
CY
1258 * xdisp.c (redisplay_window): When restoring original buffer
1259 position, make sure it is still valid.
1260
ca5e6fd5
CY
1261 * image.c (png_load): Ignore png-supplied background color.
1262
a5b11587
YM
12632007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1264
1265 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
1266 Use kCFAbsoluteTimeIntervalSince1970.
1267
1268 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
1269 New variable.
1270 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
1271 event loop should be quit.
1272 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
1273 Quit dialog event loop if quit_dialog_event_loop is set.
1274
1275 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
1276 (Selection): New typedef. Use instead of ScrapRef.
1277 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
1278 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
1279 (mac_clear_selection): Rename from clear_scrap.
1280 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 1281 scrap_has_target_type. All uses changed.
a5b11587
YM
1282 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1283 (mac_selection_has_target_p): New functions.
1284 (mac_put_selection_value): Rename from put_scrap_string.
1285 (mac_get_selection_value): Rename from get_scrap_string.
1286 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
1287 (put_scrap_private_timestamp, scrap_has_target_type)
1288 (get_scrap_private_timestamp): Remove functions.
1289 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
1290 (x_own_selection, x_get_local_selection):
1291 Use mac_valid_selection_value_p.
1292 (x_own_selection): Don't use put_scrap_private_timestamp.
1293 Record OWNERSHIP-INFO into Vselection_alist instead.
1294 (x_get_local_selection): Don't check type if request is local.
1295 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
1296 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
1297
991bde0d
JD
12982007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1299
1300 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
1301 add comment explaining why.
1302
73ff9d42
RS
13032007-08-03 Richard Stallman <rms@gnu.org>
1304
1305 * fileio.c (Fvisited_file_modtime): Use make_time.
1306
54ed9a2d 13072007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
1308
1309 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1310 build.
1311
65a9c8e2
SM
13122007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
1313
1314 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
1315
c5925799
KY
13162007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
1317
1318 * puresize.h (BASE_PURESIZE): Increase to 1130000.
1319
adef3de7
RS
13202007-07-30 Richard Stallman <rms@gnu.org>
1321
1322 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
1323
784c1472
JD
13242007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1325
1326 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1327
a10421a1
NR
13282007-07-28 Nick Roberts <nickrob@snap.net.nz>
1329
1330 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
1331 remote default-directory.
1332
1333 * buffer.c (mode-line-format): Update doc string.
1334
0cb1ae20
YM
13352007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1336
1337 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
1338 scroll bar gap.
1339 (x_scroll_bar_create): Set bar->fringe_extended_p.
1340 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
1341 on frame edge. Check fringe background extension. Don't clear
1342 extended fringe background area.
1343
1344 * w32term.h (struct scroll_bar): New member fringe_extended_p.
1345 (w32_fill_area): Enclose multiple statements with do ... while (0).
1346
1347 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
1348 Extend fringe background to scroll bar gap.
1349 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1350 Set bar->fringe_extended_p.
1351 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1352 Put leftmost/rightmost scroll bars on frame edge. Check fringe
1353 background extension. Don't clear extended fringe background area.
1354
1355 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1356 New member fringe_extended_p.
1357
cacc7b51
GM
13582007-07-25 Glenn Morris <rgm@gnu.org>
1359
1360 * Relicense all FSF files to GPLv3 or later.
1361
1362 * COPYING: Switch to GPLv3.
1363
89835619
SM
13642007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
1365
c4f46926
SM
1366 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
1367
1368 * data.c (Finteractive_form): Check for the presence of an
1369 `interactive-form' symbol property more thoroughly.
1370
1371 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
1372 present, analogous to the function-documentation property.
1373
ee04257d
JR
13742007-07-24 Jason Rumney <jasonr@gnu.org>
1375
1376 * w32fns.c (x_real_positions): Get real position from OS instead of
1377 calculating it.
1378
50624218
JR
13792007-07-23 Jason Rumney <jasonr@gnu.org>
1380
1381 * filelock.c (current_lock_owner): Allow for @ sign in username.
1382
3650f60e
NR
13832007-07-22 Nick Roberts <nickrob@snap.net.nz>
1384
1385 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
1386 remote default-directory.
1387
1388 * buffer.c (mode-line-format): Describe above case in doc string.
1389
1e899515 13902007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 1391
75be5258
EZ
1392 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1393 Define if not defined.
1394
2b6e2f4d
JR
13952007-07-18 Jason Rumney <jasonr@gnu.org>
1396
1397 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1398
23dacf80
JB
13992007-07-18 Richard Stallman <rms@gnu.org>
1400
1401 * data.c (Fsetq_default): Doc fix.
1402
1403 * eval.c (Fsetq): Doc fix.
1404
14052007-07-18 Juanma Barranquero <lekktu@gmail.com>
1406
1407 * coding.c (Ffind_operation_coding_system):
1408 * eval.c (For, Fand): Doc fixes.
1409 Reported by Johan Bockg\e,Ae\e(Brd.
1410
656de71a
JD
14112007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1412
23dacf80 1413 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 1414
23dacf80 1415 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
1416
1417 * xterm.c (x_ewmh_activate_frame): New function.
1418 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
1419
71ec17e6
MR
14202007-07-17 Martin Rudalics <rudalics@gmx.at>
1421
1422 * window.c (Fdisplay_buffer): If largest or LRU window is the
1423 only window, split it even if it is not eligible for splitting.
1424 This restores the original behavior broken by the 2007-07-15
1425 change.
1426
e9818042
GM
14272007-07-17 Glenn Morris <rgm@gnu.org>
1428
1429 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
1430 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1431 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
1432 constituents. Doc fix.
1433
e6fca843
SM
14342007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1435
1436 * process.c (Fstart_process, Fmake_network_process)
1437 (read_process_output): Fix up last changes.
1438
b5d2b4ab
EZ
14392007-07-16 Eli Zaretskii <eliz@gnu.org>
1440
1441 * makefile.w32-in (clean): Don't delete *~.
1442
413a79ad
AS
14432007-07-16 Andreas Schwab <schwab@suse.de>
1444
1445 * window.c (Fdisplay_buffer): Use NILP.
1446 (Fset_window_scroll_bars): Likewise.
1447
f1de8c77
MR
14482007-07-15 Martin Rudalics <rudalics@gmx.at>
1449
1450 * window.c (window_min_size_2): New function.
1451 (window_min_size_1, size_window, Fdisplay_buffer)
1452 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1453 windows without mode- or header-lines when window-min-height is
1454 too small.
1455 (size_window): Reset nodelete_p after testing it, following an
1456 earlier note by Kim F. Storm.
1457 (display_buffer): Do not set split_height_threshold to twice the
1458 value of window_min_height to avoid changing the value of a
1459 customizable variable. Rather explicitly check whether the
1460 height of the window that shall be splitted is at least as large
1461 as split_height_threshold.
1462
5e1ab613
JR
14632007-07-14 Jason Rumney <jasonr@gnu.org>
1464
1465 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
1466
f01cbfdd
RS
14672007-07-14 Richard Stallman <rms@gnu.org>
1468
1469 * eval.c (maybe_call_debugger): New function.
1470 (find_handler_clause): Use maybe_call_debugger.
1471 Call it when the handler says `debug'.
1472 Eliminate DEBUGGER_VALUE_PTR.
1473 (Fsignal): Eliminate debugger_value.
1474 (Qdebug): New variable.
1475 (syms_of_eval): Initialize it.
1476
1bab435a
JB
14772007-07-14 Juanma Barranquero <lekktu@gmail.com>
1478
1479 * eval.c (Fprogn):
1480 * keyboard.c (Ftrack_mouse):
1481 * print.c (Fwith_output_to_temp_buffer):
1482 * window.c (Fsave_window_excursion): Doc fix.
1483
be436d23
SM
14842007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1485
1486 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1487
60f0fb11
SM
14882007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 * process.h (struct Lisp_Process): Turn slots infd, outfd,
1491 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
1492 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
1493 read_output_delay, and read_output_skip from Lisp_Objects to ints.
1494 Remove unused encoding_carryover.
1495 * process.c: Adjust all functions accordingly.
1496
d8b18043
RS
14972007-07-12 Richard Stallman <rms@gnu.org>
1498
1499 * term.c: Include unistd.h only if HAVE_UNISTD_H.
1500
d5781bb6
JR
15012007-07-11 Jason Rumney <jasonr@gnu.org>
1502
1503 * makefile.w32-in (LIBS): Include OLE32.
1504
1505 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1506 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1507
5bb7dfee
SM
15082007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1509
1510 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
1511 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
1512 from a Lisp_Object into a bare pointer.
1513 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
1514 Adjust the code correspondingly.
1515
1516 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
1517
1518 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
1519 (term_show_mouse_face): Remove unused var `j'.
1520 (handle_one_term_event): Remove unused vars `i' and `j'.
1521 Don't cast return value of ttyname since it's not necessary.
1522
a1be1ce8
SM
15232007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
1524
5045e68e
SM
1525 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
1526 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
1527
8071c00f
SM
1528 * fns.c (map_char_table): Use an array of int for `indices' rather than
1529 an array of Lisp_Objects (which are only ever integers anyway).
1530 (Fmap_char_table): Update caller.
1531 * lisp.h: Update prototype.
1532 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
1533 * fontset.c (Ffontset_info):
1534 * casetab.c (set_case_table): Update callers.
1535
1536 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
1537
fab84e3c
SM
1538 * keymap.c (struct accessible_keymaps_data)
1539 (struct where_is_internal_data): New structures.
1540 (accessible_keymaps_1, where_is_internal_1): Use them to change
1541 interface to adhere to the one used by map_keymap.
1542 (Faccessible_keymaps, where_is_internal): Use map_keymap.
1543 (accessible_keymaps_char_table, where_is_internal_2): Remove.
1544
a1be1ce8
SM
1545 * keymap.h (map_keymap_function_t): More informative prototype.
1546
ef887810
RS
15472007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
1548
1549 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
1550 (looking_at_1): Don't change search_regs and last_thing_searched
1551 if `inhibit-changing-match-data' is non-nil.
1552 (string_match_1, search_buffer, set_search_regs): Likewise.
1553 (syms_of_search): Add Lisp level definition for
1554 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
1555 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
1556 start and end of the match, instead of using values in search_regs.
ef887810 1557
4d02fc25
SM
15582007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
1559
1560 * minibuf.c (Fcompleting_read): New value `confirm-only'
1561 for `require-match'.
1562
fe45b81f
SM
15632007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
1566 part of the 2007-06-27 change to syms_of_fileio.
1567
a56dd283
YM
15682007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1569
1570 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1571 Check WINDOWP before using XWINDOW. Consolidate return statements.
1572
0cf9f5b5
RS
15732007-06-27 Richard Stallman <rms@gnu.org>
1574
1575 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1576
a66f285a
JB
15772007-06-27 Juanma Barranquero <lekktu@gmail.com>
1578
1579 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1580
8d0d84d2
YM
15812007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1584 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1585 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1586 (_free_internal, memalign): Use them.
1587 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1588 Initialize to PTHREAD_MUTEX_INITIALIZER.
1589 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1590 (morecore_nolock): Rename from morecore. All uses changed.
1591 Use only nolock versions of internal allocation functions.
1592 (_malloc_internal_nolock, _realloc_internal_nolock)
1593 (_free_internal_nolock): New functions created from
1594 _malloc_internal, _realloc_internal, and _free_internal.
1595 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1596 Copy hook value to automatic variable before its use.
1597 (memalign): Copy hook value to automatic variable before its use.
1598
5a0bbd9a
KH
15992007-06-26 Kenichi Handa <handa@m17n.org>
1600
1601 * coding.c (Ffind_operation_coding_system): Docstring improved.
1602 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
1603
9a51747b
DK
16042007-06-25 David Kastrup <dak@gnu.org>
1605
1606 * keymap.c (Fcurrent_active_maps): Add `position' argument.
1607 (Fwhere_is_internal): Adjust call to `current-active-maps' to
1608 cater for additional parameter.
1609
1610 * keymap.h: Adjust number of parameters to `current-active-maps'.
1611
1612 * doc.c (Fsubstitute_command_keys): Adjust call of
1613 `current-active-maps'.
1614
e4305426
DK
16152007-06-25 David Kastrup <dak@gnu.org>
1616
1617 * callint.c (Fcall_interactively): Make the parsing of interactive
1618 specs somewhat more readable.
1619
511a18d9
YM
16202007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1621
1622 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
1623 to scroll bar gap also when bitmap fills fringe. Draw only foreground
1624 if extended background has already been filled.
1625
512eb161
YM
16262007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1627
1628 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
1629 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
1630
1631 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
1632 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
1633 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
1634 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
1635 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
1636 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
1637 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
1638 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
1639 Run timers during dialog popup.
1640 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
1641
2386b1f1
JR
16422007-06-21 Jason Rumney <jasonr@gnu.org>
1643
1644 * image.c (convert_mono_to_color_image): Swap fore and background.
1645
fab8b787
JR
16462007-06-20 Jason Rumney <jasonr@gnu.org>
1647
1648 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1649 (w32_free_bdf_font): Unmap memory not handle.
1650
15bdd7a0 16512007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
1652
1653 * gmalloc.c (__morecore): Fix the declaration to comply with the
1654 definition.
1655
1bb8a291
JB
16562007-06-20 Juanma Barranquero <lekktu@gmail.com>
1657
1658 * w32term.c (w32_delete_display): Remove leftover declaration.
1659 (w32_define_cursor, w32_initialize): Make static.
1660
1661 * w32.c (_wsa_errlist): Fix typo in error message.
1662 (init_environment): Ignore any environment variable from the
1663 registry having a null value.
1664
92648dea
GM
16652007-06-20 Glenn Morris <rgm@gnu.org>
1666
1667 * Makefile.in (LIBGIF): Default to -lgif.
1668
ff25d115
JR
16692007-06-17 Jason Rumney <jasonr@gnu.org>
1670
1671 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1672 unicode strings.
1673
a1a578a5
JB
16742007-06-16 Juanma Barranquero <lekktu@gmail.com>
1675
1676 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1677 Fix typo in docstring.
1678
af41f8a8
EZ
16792007-06-16 Eli Zaretskii <eliz@gnu.org>
1680
1681 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1682 and their keybindings.
1683
8b29cab9
CY
16842007-06-15 Chong Yidong <cyd@stupidchicken.com>
1685
1686 * composite.c (update_compositions): Fix last fix.
1687
c433c134
JR
16882007-06-14 Jason Rumney <jasonr@gnu.org>
1689
1690 * w32.c (get_process_times_fn): New function pointer.
1691 (globals_of_w32): Intialize it if present in kernel32.dll.
1692 (w32_get_internal_run_time): New function.
1693
1694 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
1695
553d3164
KH
16962007-06-14 Kenichi Handa <handa@etlken.m17n.org>
1697
1698 * composite.c (update_compositions): Check the validness of
1699 compositions.
1700
446ba96f
YM
17012007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1702
1703 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
1704 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
1705
1706 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
1707 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
1708
1709 * macgui.h (USE_MAC_TOOLBAR): New define.
1710
1711 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1712 Return immediately unless popup is activated.
1713
1714 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
1715 background to scroll bar gap.
1716 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
1717 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
1718 scroll bars on frame edge. Check fringe background extension.
1719 Don't clear extended fringe background area.
1720 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
1721 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
1722 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
1723 [USE_MAC_TOOLBAR]: New macros.
1724 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
1725 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
1726 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
1727 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
1728 [USE_MAC_TOOLBAR]: New functions.
1729 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
1730 manually if previous repositioning has failed.
1731 (mac_handle_keyboard_event): Use precomputed event kind.
1732 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
1733 as tool bar item click. Handle mouse movement over tool bar items.
1734
1735 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
1736 toolbar_win_gravity.
1737 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
1738 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
1739 Add externs.
1740
1741 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
1742 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
1743
9720173f
CY
17442007-06-14 Chong Yidong <cyd@stupidchicken.com>
1745
1746 * image.c (search_image_cache): Remove unused variable.
1747
1217dd00
CY
17482007-06-13 Chong Yidong <cyd@stupidchicken.com>
1749
1750 * xfns.c, xmenu.c: Link to xaw3d if available.
1751
c5b8e0ea
YM
17522007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1753
1754 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
1755 frame_foreground and frame_background.
1756
1757 * image.c (lookup_image): Save frame foreground and background colors.
1758 (search_image_cache): Check if saved and current frame colors match.
1759
c69b0314
SM
17602007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
1761
1762 * regex.c (regex_compile): Remove the `regnum' counter.
1763 Use bufp->re_nsub instead. Add support for \(?N:RE\).
1764
c9612b8e
SM
17652007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
1766
1767 * term.c: Include intervals.h to declare Fget_text_property.
1768
843d2458
JR
17692007-06-10 Jason Rumney <jasonr@gnu.org>
1770
1771 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
1772
1e0d2d60 17732007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
1774
1775 * callint.c (Fcall_interactively):
1776 * editfns.c (Fdelete_and_extract_region):
1777 * fileio.c (Fread_file_name):
1778 * fns.c (Fmapconcat):
1779 * keyboard.c (cmd_error_internal):
1780 * keymap.c (Fkey_description):
1781 * lread.c (openp):
1782 * minibuf.c (read_minibuf):
1783 * search.c (wordify):
1784 * sunfns.c (sel_read):
1785 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
1786 * xfns.c (x_default_scroll_bar_color_parameter):
1787 * xmenu.c (menu_help_callback):
1788 * xselect.c (Fx_get_atom_name):
1789 * xterm.c (x_term_init): Use empty_unibyte_string.
1790
15bdd7a0 17912007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
1792
1793 * alloc.c (init_strings): Initialize canonical empty strings.
1794 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
1795 canonical empty string when the requested size is 0.
1796
1797 * emacs.c (empty_unibyte_string): Rename from empty_string.
1798 (empty_multibyte_string): New canonical empty string.
1799 (syms_of_emacs): Don't initialize empty_string.
1800
1801 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
1802 string, if appropriate.
1803 (empty_unibyte_string, empty_multibyte_string): New externs.
1804 (empty_string): Remove extern.
1805
1806 * lread.c (syms_of_lread): Use empty_unibyte_string.
1807
42c4c67a
JR
18082007-06-07 Jason Rumney <jasonr@gnu.org>
1809
1810 * s/ms-w32.h: Don't define HAVE_TZNAME.
1811
1812 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
1813
aa8280d3
YM
18142007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1815
1816 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
1817
1818 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
1819 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
1820
1821 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1822 Don't call next handler.
1823 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
1824 Remove argument. Install handler to application.
1825 (set_frame_menubar): Don't change deep_p.
1e0d2d60 1826 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
1827 FRAME_OUTER_TO_INNER_DIFF_Y.
1828 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1829 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1830 [HAVE_DIALOGS]: New macros.
1831 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
1832 Use them.
1833 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
1834
1835 * macselect.c [MAC_OSX] (install_service_handler): Rename from
1836 init_service_handler. All callers changed. Return OSStatus value.
1837
1838 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
1839 All callers changed so as not to call SetPortWindowPort.
1840 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1841 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
1842 mac_draw_string_common.
1843 (mac_draw_image_string_qd): Likewise.
1844 (mac_draw_string_common): Use them. Add INLINE.
1845 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
1846 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
1847 GetGlobalMouse.
1848 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
1849 and FRAME_OUTER_TO_INNER_DIFF_Y.
1850 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
1851 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
1852 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
1853 repositioning window to mac_handle_window_event.
1854 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
1855 saving window location to mac_handle_window_event
1856 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
1857 (install_menu_target_item_handler): Remove argument in extern.
1858 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
1859 Also accept command events.
1860 (do_keystroke): New function created from XTread_socket.
1861 (init_command_handler): Remove functions.
1862 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
1863 and save window location by kEventWindowShowing and kEventWindowHiding
1864 handlers here. Don't call next handler for window state change and
1865 focus events.
1866 (mac_handle_application_event, mac_handle_keyboard_event)
1867 [TARGET_API_MAC_CARBON]: New functions.
1868 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
1869 kEventWindowShowing and kEventWindowHiding events. Move installation
1870 of mouse, font, text input and menu target item handlers to
1871 install_application_handler.
1872 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
1873 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1874 New function.
1875 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1876 Register it.
c9612b8e
SM
1877 (XTread_socket) [TARGET_API_MAC_CARBON]:
1878 Consolidate SendEventToEventTarget calls.
1879 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
1880 Move application activation handler to mac_handle_application_event.
1881 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
1882 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
1883 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1884 init_command_handler. Call install_application_handler.
1885
1886 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
1887 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
1888
6926c954
GM
18892007-06-07 Glenn Morris <rgm@gnu.org>
1890
1891 * emacs.c (main): Use `emacs-copyright' in --version output.
1892
6fe04c89
CY
18932007-06-06 Chong Yidong <cyd@stupidchicken.com>
1894
c9612b8e 1895 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 1896
7eb0d727
YM
18972007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1898
1899 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
1900
1901 * macgui.h: Replace WindowPtr with WindowRef.
1902
1903 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1904 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1905 Replace ControlHandle with ControlRef.
1906 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
1907
1908 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
1909 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
1910 Replace ControlHandle with ControlRef.
1911 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
1912 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
1913
1914 * macterm.h (struct scroll_bar): Rename member control_handle_low
1915 and control_handle_high to control_ref_low and control_ref_high.
1916 All uses changed.
1917 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
1918 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
1919 respectively. All uses changed.
1920 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
1921 (install_window_handler, remove_window_handler): Replace WindowPtr
1922 with WindowRef in externs.
1923
65fddb74
JB
19242007-06-05 Juanma Barranquero <lekktu@gmail.com>
1925
1926 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
1927
db1213a9
NR
19282007-06-03 Nick Roberts <nickrob@snap.net.nz>
1929
1930 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
1931
65fddb74 1932 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
1933 Condition on HAVE_GPM too.
1934
1935 * term.c (term_mouse_highlight): Remove unused variables.
1936 (Fterm_open_connection): Set gpm_zerobased to 1.
1937 (term_mouse_movement, term_mouse_click, handle_one_term_event):
1938 Use zero based co-ordinates.
1939 (handle_one_term_event): Report a drag as mouse movement too.
1940
1941 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
1942
d94df25b
CY
19432007-06-03 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * image.c (search_image_cache): New function. Require background
1946 color match if background color is unspecified in the image spec.
1947 (uncache_image, lookup_image): Use it.
1948
4797b6d9
JB
19492007-06-01 Juanma Barranquero <lekktu@gmail.com>
1950
1951 * window.c (Fshrink_window): Reflow docstring.
1952
1ffe7343
NR
19532007-06-02 Chong Yidong <cyd@stupidchicken.com>
1954
1955 * Version 22.1 released.
1956
19572007-06-01 Richard Stallman <rms@gnu.org>
1958
1959 * xfns.c (x_encode_text): Add GCPRO.
1960
19612007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1962
1963 * xfns.c (x_set_name_internal): Save encoded name before
1964 x_encode_text in case string data is relocated.
1965
19662007-05-31 Richard Stallman <rms@gnu.org>
1967
1968 * buffer.c (syms_of_buffer): Doc fix.
1969
19702007-05-30 Nick Roberts <nickrob@snap.net.nz>
1971
1972 * sysdep.c (init_sys_modes): Add rather than replace with
1973 O_NONBLOCK.
1974
1975 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
1976 term_mouse_moveto.
1977
1978 * termhooks.h (term_mouse_moveto): New extern.
1979
1980 * term.c (mouse_face_window): Rename...
1981 (Qmouse_face_window): ...to this.
1982 (term_show_mouse_face, term_clear_mouse_face)
1983 (term_mouse_highlight): Use Qmouse_face_window.
1984 (term_mouse_moveto): New function.
1985 (term_mouse_position): Make it work.
1986 (syms_of_term): Uncomment assignment to mouse_position_hook.
1987 Staticpro Qmouse_face_window.
1988
19892007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1990
1991 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
1992 around current_column call.
1993
19942007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
1995
1996 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
1997 * xdisp.c (next_element_from_buffer):
1998 * window.c (delete_window):
1999 * term.c (term_mouse_highlight):
2000 * msdos.c (getdefdir):
2001 * macterm.c (mac_create_bitmap_from_bitmap_data)
2002 (init_font_name_table):
2003 * fns.c (Fsxhash):
2004 * data.c (Fmake_local_variable):
2005 * ccl.c (ccl_driver): Likewise.
2006
20072007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2008
2009 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
2010 Call mac_wakeup_from_rne on window size change.
2011
20122007-05-25 Chong Yidong <cyd@stupidchicken.com>
2013
2014 * image.c (uncache_image): Fix typo.
2015
20162007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
2017
2018 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
2019
20202007-05-22 Richard Stallman <rms@gnu.org>
2021
2022 * xterm.c (x_connection_closed): Remove NO_RETURN.
2023
20242007-05-22 Martin Rudalics <rudalics@gmx.at>
2025
2026 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2027
20282007-05-21 Chong Yidong <cyd@stupidchicken.com>
2029
2030 * image.c (uncache_image): New function.
2031 (Fimage_refresh): New function.
2032
20332007-05-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2034
2035 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
2036
20372007-05-20 Nick Roberts <nickrob@snap.net.nz>
2038
2039 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
2040 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
2041
20422007-05-20 Nick Roberts <nickrob@snap.net.nz>
2043
2044 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
2045 conditional on [HAVE_GPM_H].
2046
20472007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2048
2049 * syntax.c (skip_chars): Update syntax-table only after we checked that
2050 the new location is valid.
2051
20522007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2053
2054 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
2055 mac_get_window_bounds.
2056
20572007-05-20 Nick Roberts <nickrob@snap.net.nz>
2058
2059 * Makefile.in (LIBGPM): Allow it to be set from configure.
2060 If set then link Emacs with it.
2061
2062 * config.in: Regenerate.
2063
2064 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
2065 New externs.
2066
2067 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
2068 Include gpm.h.
2069 (handle_one_term_event, term_gpm): New externs.
2070
2071 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
2072 and allow it to be interrupted by SIGIO.
2073
2074 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
2075 (wait_reading_process_output): Wait on gpm_fd too.
2076 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
2077 (add_gpm_wait_descriptor_called_flag): New variable.
2078 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
2079
2080 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
2081 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
2082 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
2083 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
2084 (make_lispy_event): Add case GPM_CLICK_EVENT.
2085 (read_avail_input): Handle mouse input.
2086
2087 * term.c (write_glyphs_with_face): New function.
2088 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
2089 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
2090 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
2091 (mouse_face_face_id, term_gpm, pos_x, pos_y)
2092 (last_mouse_x, last_mouse_y): New variables.
2093 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
2094 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
2095 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
2096 (Fterm_close_connection): New functions.
2097 (term_init): Initialise mouse_face_window.
2098
20992007-05-19 Chong Yidong <cyd@stupidchicken.com>
2100
2101 * xdisp.c (redisplay_window): If first window line is a
2102 continuation line, recompute the new window start instead of
2103 recentering.
2104
21052007-05-18 Glenn Morris <rgm@gnu.org>
2106
2107 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
2108 Suggested by Alfred M. Szmidt <ams@gnu.org>.
2109
21102007-05-17 Glenn Morris <rgm@gnu.org>
2111
2112 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
2113
21142007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2115
2116 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
2117 dead key repeat and up events.
2118
21192007-05-14 Chong Yidong <cyd@stupidchicken.com>
2120
2121 * image.c (pbm_load): Check image size for monochrome pbm.
2122
21232007-05-13 Chong Yidong <cyd@stupidchicken.com>
2124
2125 * xterm.c (XTread_socket): Revert last change.
2126
21272007-05-12 Chong Yidong <cyd@stupidchicken.com>
2128
2129 * image.c (pbm_load): Correctly check image size for greyscale pbm.
2130
2131 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
2132
21332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2134
2135 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
2136 mixup (YAILOM).
2137
21382007-05-07 Andreas Schwab <schwab@suse.de>
2139
2140 * keymap.c (Flookup_key): Fix typo in last change.
2141
21422007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2143
2144 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
2145 mapping for unibyte strings.
2146
21472007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2148
2149 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
2150 (Fx_popup_dialog) [MAC_OSX]: Likewise.
2151
21522007-04-29 Richard Stallman <rms@gnu.org>
2153
2154 * insdel.c (replace_range): For undo, record insertion first.
2155
21562007-04-29 Andreas Schwab <schwab@suse.de>
2157
2158 * lisp.h (VECSIZE): Use OFFSETOF.
2159
21602007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2161
2162 * xdisp.c (try_window_reusing_current_matrix): Fix number of
2163 disabled lines.
2164
21652007-04-28 Richard Stallman <rms@gnu.org>
2166
2167 * lread.c (read_escape): In a string, \s is always space.
2168
21692007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2170
2171 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
2172
2173 * gtkutil.c (xg_update_menubar, create_menus): Create empty
2174 submenu for menu bar items.
2175
382c648d 2176See ChangeLog.10 for earlier changes.
6922b018
KH
2177
2178;; Local Variables:
49b3bd82 2179;; coding: iso-2022-7bit
33462dfa 2180;; add-log-time-zone-rule: t
6922b018 2181;; End:
2a34a036 2182
382c648d 2183 Copyright (C) 2007 Free Software Foundation, Inc.
7f6d64f8
GM
2184
2185 This file is part of GNU Emacs.
2186
2187 GNU Emacs is free software; you can redistribute it and/or modify
2188 it under the terms of the GNU General Public License as published by
684d6f5b 2189 the Free Software Foundation; either version 3, or (at your option)
7f6d64f8
GM
2190 any later version.
2191
2192 GNU Emacs is distributed in the hope that it will be useful,
2193 but WITHOUT ANY WARRANTY; without even the implied warranty of
2194 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2195 GNU General Public License for more details.
2196
2197 You should have received a copy of the GNU General Public License
2198 along with GNU Emacs; see the file COPYING. If not, write to the
2199 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
2200 Boston, MA 02110-1301, USA.
ab5796a9 2201
28f60c3d 2202;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40