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