]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(Finsert_file_contents): Fix overflow check to not
[gnu-emacs] / src / ChangeLog
1 2007-12-16 Andreas Schwab <schwab@suse.de>
2
3 * fileio.c (Finsert_file_contents): Fix overflow check to not
4 depend on undefined integer overflow.
5
6 2007-12-14 Jason Rumney <jasonr@gnu.org>
7
8 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9 for characters above 127.
10
11 2007-12-13 Jason Rumney <jasonr@gnu.org>
12
13 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14 before dereferencing array.
15 (lookup_vk_code): Remove zero comparison.
16
17 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18
19 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20 (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
21 `unsigned int' instead of `uint'.
22 (xd_read_message, Fdbus_register_signal): Split expressions into
23 multiple lines before operators "&&" and "||", according to the
24 GNU Coding Standards.
25
26 2007-12-14 Eli Zaretskii <eliz@gnu.org>
27
28 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29
30 2007-12-12 Juri Linkov <juri@jurta.org>
31
32 * buffer.c (Frename_buffer): In interactive spec replace
33 `read-buffer' with `read-string' that uses `buffer-name-history'
34 as history, and the current buffer's name as default.
35
36 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
37
38 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
39 manipulating the backtrace manually.
40 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
41 (struct backtrace, backtrace_list): Remove.
42 (command_loop_1): Remove dead var `no_direct'.
43
44 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
45 preserve non-built-in buffer-local variables.
46 (Fkill_all_local_variables): Don't re-create&re-set permanent
47 buffer-local variables.
48
49 2007-12-09 Juri Linkov <juri@jurta.org>
50
51 * buffer.c (Frename_buffer): Change interactive spec from "s" to
52 Lisp code that uses `read-buffer' with current buffer as default.
53
54 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
55
56 * dbusbind.c (xd_read_message): Generate an event for every
57 registered handler. There might be several handlers registered
58 for the same signal.
59 (Fdbus_register_signal): Don't overwrite a registration for the
60 same signal. Add a new registration if handlers are different.
61 (Vdbus_registered_functions_table): Rework doc string.
62
63 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
64
65 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
66 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
67 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
68 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
69 Unify argument lists.
70 (xd_read_message, Fdbus_register_signal) Reorder and extend event
71 arguments and hash table keys. Use unique name for service.
72 (Fdbus_unregister_signal): Remove checks.
73 (Vdbus_registered_functions_table): Fix doc string.
74
75 2007-12-05 Magnus Henoch <mange@freemail.hu>
76
77 * process.c (make_process): Initialize pty_flag to 0.
78
79 2007-12-05 Jason Rumney <jasonr@gnu.org>
80
81 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
82 specified XBMs.
83
84 2007-12-05 Richard Stallman <rms@gnu.org>
85
86 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
87
88 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
89
90 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
91 New variable.
92 (mac_try_close_socket) [MAC_OSX]: New function.
93 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
94 Update cfsockets_for_select. Replace invalid CFRunLoop source.
95
96 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
97 Use mac_try_close_socket.
98
99 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
100
101 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
102 reloc_base.
103 (copy_dysymtab): Compute relocation base here.
104 (rebase_reloc_address) [__ppc64__]: New function.
105 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
106 changed.
107
108 2007-12-05 Jason Rumney <jasonr@gnu.org>
109
110 * w32proc.c (sys_spawnve): Quote args with wildcards.
111
112 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
113
114 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
115 __objc_* sections.
116 (unrelocate) [_LP64]: Set relocation base to address of data segment.
117
118 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
119
120 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
121 Move check for Vdbus_registered_functions_table to
122 xd_read_queued_messages.
123 (xd_read_queued_messages): Protect xd_read_message calls by
124 internal_condition_case_1.
125
126 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
127
128 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Renamed from
129 Qdbus_system_bus and Qdbus_session_bus, respectively.
130 (Vdbus_intern_symbols): Removed.
131 (Vdbus_registered_functions_table): New hash table.
132 (XD_SYMBOL_INTERN_SYMBOL): Removed.
133 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
134 Rewritten in order to manage registered functions by hash table
135 Vdbus_registered_functions_table.
136
137 2007-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
138
139 * xterm.c: Update URL to Window Manager Specification in comment.
140
141 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
142
143 * config.in (HAVE_DBUS): Add.
144
145 * Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
146 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
147 (obj): Add $(DBUS_OBJ).
148 (LIBES): Add $(DBUS_LIBS).
149 (dbusbind.o): New target.
150
151 * dbusbind.c: New file.
152
153 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
154
155 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
156 (Qdbus_event) New Lisp symbol.
157 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
158 (gobble_input): Call xd_read_queued_messages, reading D-Bus
159 messages.
160 (keys_of_keyboard ): Define dbus-event.
161
162 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
163
164 2007-12-01 Richard Stallman <rms@gnu.org>
165
166 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
167
168 2007-11-30 Jason Rumney <jasonr@gnu.org>
169
170 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
171 (w32con_reset_terminal_modes): Clear screen buffer.
172 (w32_face_attributes): Don't use color indexes that are out of range.
173 Only reverse the default colors.
174
175 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
176 WINDOWSNT.
177
178 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
179
180 2007-11-29 Jason Rumney <jasonr@gnu.org>
181
182 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
183 (w32_face_attributes): Use Vtty_defined_color_alist to determine
184 if the terminal colors are initialized.
185 (unspecified_fg, unspecified_bg): Remove unused declarations.
186
187 2007-11-29 Andreas Schwab <schwab@suse.de>
188
189 * keyboard.c (apply_modifiers): Fix typo.
190
191 2007-11-29 Richard Stallman <rms@gnu.org>
192
193 * keymap.c (Fcurrent_local_map): Doc fix.
194
195 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
196
197 * s/gnu-kfreebsd.h: New file.
198
199 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
200
201 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
202 Don't cast redundantly.
203
204 * keyboard.c (KEY_TO_CHAR): New macro.
205 (parse_modifiers, apply_modifiers): Accept integer arguments.
206 (read_key_sequence): Use them to unify the "shift->unshift" mapping
207 for chars and symbol keys.
208 After doing such remapping, apply function-key-map again.
209
210 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
211
212 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
213 compiled anymore.
214
215 2007-11-26 Andreas Schwab <schwab@suse.de>
216
217 * process.c (list_processes_1): Fix indentation level of the
218 command column.
219
220 2007-11-23 Andreas Schwab <schwab@suse.de>
221
222 * editfns.c (Fformat): Handle %c specially since it requires the
223 argument to be of type int.
224
225 2007-11-23 Markus Triska <markus.triska@gmx.at>
226
227 * emacs.c (main): Call init_editfns before init_process, since
228 init_process sets Vprocess_connection_type depending on OS release
229
230 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
233 (find_symbol_value): Use do_symval_forwarding.
234
235 * data.c (set_internal): Set the value in the `cons-cell' (for
236 Buffer_Local_values) not only for frame-local variables.
237
238 2007-11-22 Andreas Schwab <schwab@suse.de>
239
240 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
241 values to sprintf.
242 * keymap.c (Fsingle_key_description): Likewise.
243 * print.c (print_object): Likewise.
244
245 2007-11-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
246
247 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
248 file for image is nil.
249
250 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
251
252 * term.c: Include stdarg.h.
253 (fatal): Implement using varargs.
254 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
255
256 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
257
258 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
259 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
260 Update call to buffer_slot_type_mismatch.
261 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
262 (buffer_slot_type_mismatch): Update.
263 * buffer.c (buffer_local_types): Remove.
264 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
265 (defvar_per_buffer): Set the type in the buffer_objfwd.
266
267 2007-11-21 Jason Rumney <jasonr@gnu.org>
268
269 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
270 CreateFileMapping returns NULL on failure.
271
272 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
273
274 * search.c (Fset_match_data): Remove the `evaporate' feature.
275 (unwind_set_match_data): Don't use the `evaporate' feature.
276
277 2007-11-21 Jason Rumney <jasonr@gnu.org>
278
279 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
280
281 * w32console.c (w32con_write_glyphs): Remove unused variables.
282
283 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
284
285 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
286
287 * s/darwin.h (MULTI_KBOARD): Remove.
288
289 * macfns.c (x_create_tip_frame, Fx_create_frame)
290 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
291
292 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
293
294 * buffer.c (Fbuffer_local_value): Remove redundant test.
295 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
296 than in `current-buffer' to match the comment.
297 Do the swap using swap_in_global_binding.
298
299 * data.c (store_symval_forwarding, set_internal):
300 * eval.c (specbind): Remove dead code.
301
302 * coding.c (detect_coding, Fupdate_coding_systems_internal):
303 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
304 Since we do not want to see internal Lisp_*fwd objects here.
305
306 2007-11-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
307
308 * sysdep.c (init_system_name): Use getaddrinfo if available.
309
310 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
311 (x_scroll_bar_note_movement): start, end, with, height in struct
312 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
313
314 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
315
316 * puresize.h (BASE_PURESIZE): Increase to 1190000.
317
318 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
321 This undoes Richard's change of 14-Oct-2002.
322
323 * alloc.c (allocate_other_vector):
324 * lisp.h (allocate_other_vector): Remove.
325
326 * window.c (struct save_window_data): Move non-lisp data to the end
327 and make it `int' rather than Lisp_Object.
328 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
329 Done wrap/unwrap integer values.
330 (Fset_window_configuration, compare_window_configurations):
331 Update use of fields to their new types.
332
333 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
334 Turn integer fields into `int'. Merge x_window_low and x_window_high.
335 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
336 (SET_SCROLL_BAR_X_WINDOW): Remove.
337 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
338 Access the new x_window field directly.
339 * xterm.c (x_scroll_bar_create): Use a pseudovector.
340 Don't wrap/unwrap integers into Lisp_Objects.
341 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
342 (x_scroll_bar_report_motion):
343 Don't wrap/unwrap integers into Lisp_Objects.
344 (x_term_init): Use SDATA.
345 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
346 (x_scroll_bar_set_handle, x_scroll_bar_remove)
347 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
348 (x_scroll_bar_report_motion, x_scroll_bar_clear):
349 * xfns.c (x_set_background_color):
350 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
351 Access the new x_window field directly.
352
353 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
354 (allocate_pseudovector): Make non-static.
355
356 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
357 (allocate_pseudovector): Declare.
358 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c
359
360 2007-11-15 Andreas Schwab <schwab@suse.de>
361
362 * editfns.c (Fformat): Correctly format EMACS_INT values.
363 Also take precision into account when formatting an integer.
364
365 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
366
367 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
368
369 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
370 (syms_of_keyboard): Defsubr it.
371
372 * data.c (swap_in_global_binding): Fix longstanding bug where
373 store_symval_forwarding was not called with the right second argument,
374 thus causing objfwd-ing from being dropped.
375
376 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
377
378 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
379 (Fx_display_pixel_height, Fx_display_planes)
380 (Fx_display_color_cells, Fx_server_max_request_size)
381 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
382 (Fx_display_visual_class, Fx_display_save_under):
383 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
384 (Fx_display_pixel_height, Fx_display_planes)
385 (Fx_display_color_cells, Fx_server_max_request_size)
386 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
387 (Fx_display_mm_height, Fx_display_mm_width)
388 (Fx_display_backing_store, Fx_display_visual_class)
389 (Fw32_select_font, Fx_display_save_under):
390 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
391 (Fx_display_pixel_height, Fx_display_planes)
392 (Fx_display_color_cells, Fx_server_max_request_size)
393 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
394 (Fx_display_save_under): Fix typos in docstrings.
395
396 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
397
398 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
399 corresponding to deleted entries; they are an implementation detail.
400 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
401 Remove variables.
402 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
403 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
404 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
405 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
406 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
407 (Fw32_define_rgb_color, Fw32_load_color_file)
408 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
409 Fix typos in docstrings.
410 (Fx_server_version): Reflow docstring.
411 (Fw32_shell_execute): Doc fixes.
412
413 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
414
415 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
416 if w32_parse_hot_key returned nil.
417
418 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
419
420 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
421
422 2007-11-09 Jason Rumney <jasonr@gnu.org>
423
424 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
425
426 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
427
428 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
429 Remove W32_SCROLL_BAR_CLICK_EVENT.
430
431 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
432 Add MULTIMEDIA_KEY_EVENT.
433
434 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
435 (lispy_multimedia_keys) [WINDOWSNT]: New array.
436 (make_lispy_event) [WINDOWSNT]: Use it to translate
437 MULTIMEDIA_KEY_EVENT.
438
439 * w32term.h (WM_APPCOMMAND): Define if not already.
440 (GET_APPCOMMAND_LPARAM): Likewise.
441
442 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
443 WM_APPCOMMAND.
444
445 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
446 (syms_of_w32fns): Export and initialize it.
447 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
448
449 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
450
451 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
452 twice.
453
454 * xdisp.c (handle_face_prop): Fix last change.
455
456 2007-11-09 Richard Stallman <rms@gnu.org>
457
458 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
459 not just for after-strings and before-strings.
460 Call face_for_overlay_string and pass the overlay to it.
461 (handle_display_prop): Determine whether property came from an overlay.
462 Pass OVERLAY arg to handle_single_display_spec.
463 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
464 (load_overlay_strings): Fill in it->string_overlays.
465 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
466
467 * xfaces.c (face_for_overlay_string): Function renamed from
468 face_at_buffer_position_no_overlays, and add arg OVERLAY.
469
470 * dispextern.h (struct it): New elt string_overlays.
471 New elt from_overlay, also in stack.
472 Rearrange a few elements.
473 (face_for_overlay_string): Decl renamed from
474 face_at_buffer_position_no_overlays, and add argument.
475
476 2007-11-09 Richard Stallman <rms@gnu.org>
477
478 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
479 to get the base face for an overlay string.
480
481 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
482
483 * xfaces.c (face_at_buffer_position_no_overlays): New function.
484
485 * xdisp.c (handle_stop): Move some code out of loop.
486
487 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
488
489 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
490 Fix conversion from Lisp object to ATSUFontID.
491
492 2007-11-09 Jason Rumney <jasonr@gnu.org>
493
494 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
495
496 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
497
498 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
499 Don't assume regions are aligned to page boundary.
500 (print_load_command_name): Add LC_UUID if defined.
501
502 2007-11-09 Richard Stallman <rms@gnu.org>
503
504 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
505
506 2007-11-07 Jason Rumney <jasonr@gnu.org>
507
508 * s/windows95.h: Remove.
509
510 2007-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
511
512 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
513 abort with a message on unhandled store_type values.
514
515 2007-11-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
516
517 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
518 Remove HAVE_X11R5 and HAVE_X11R4.
519
520 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
521
522 * Makefile.in: Remove references to sunfns.c and sunfns.o.
523
524 2007-11-01 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
525
526 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
527 Don't set s->stippled_p here, since it has already been set by
528 x_set_glyph_string_gc from x_draw_glyph_string.
529
530 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
531
532 * sunfns.c: Remove file
533
534 * m/sun386.h:
535 * m/sun2.h:
536 * m/sparc.h: Remove Sun windows code.
537
538 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
539
540 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
541 (init_keyboard): Set current_kboard's window-system to nil.
542 (tty_read_avail_input): Typo.
543 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
544
545 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
546
547 * s/usg5-4.h:
548 * s/usg5-3.h:
549 * s/ptx.h:
550 * m/is386.h:
551 * m/ibmps2-aix.h:
552 * Makefile.in: Remove all mentions of X10
553
554 * dispnew.c (syms_of_display): Don't mention version 10.
555
556 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
557
558 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
559 ($(BLD)/abbrev.$(O)): Remove.
560
561 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
562
563 Rewrite abbrev.c in Elisp.
564 * image.c (Qcount): Don't declare as extern.
565 (syms_of_image): Initialize and staticpro `Qcount'.
566 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
567 * emacs.c (main): Don't call syms_of_abbrev.
568 * Makefile.in (obj): Remove abbrev.o.
569 (abbrev.o): Remove.
570 * abbrev.c: Remove.
571
572 2007-10-26 Martin Rudalics <rudalics@gmx.at>
573
574 * window.c (window_min_size_2): Don't count header-line.
575
576 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
577
578 * frame.h (struct frame): Move all bit fields after the first bit
579 field to take advantage of the available space. Group all the
580 chars together to reduce wasted space due to padding.
581
582 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
583
584 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
585
586 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
587 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
588 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
589 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
590 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
591 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
592 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
593 (last_marked, mark_object_loop_halt): Make static.
594
595 * frame.c (syms_of_frame) <delete-frame-functions>:
596 Fix typo in docstring.
597
598 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
599
600 * w32.c (init_environment): Fix tiny memory leak.
601 (w32_get_resource): Remove unused variable `ok'.
602
603 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
604
605 Make `window-system' into a keyboard-local variable (rather than
606 frame-local as done originally by multi-tty).
607
608 * keyboard.h (struct kboard): Add Vwindow_system.
609 * keyboard.c (init_kboard): Set a default for Vwindow_system.
610 (mark_kboards): Mark Vwindow_system.
611
612 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
613 (init_display): Don't set the obsolete `window-system' frame-param.
614
615 * xterm.c (x_term_init):
616 * w32term.c (w32_create_terminal):
617 * term.c (init_tty): Set Vwindow_system.
618 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
619 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
620
621 * xfns.c (Fx_create_frame, x_create_tip_frame):
622 * w32fns.c (Fx_create_frame, x_create_tip_frame):
623 * macfns.c (Fx_create_frame):
624 Don't set the obsolete `window-system' frame-param.
625
626 * frame.h (Qwindow_system): Remove.
627 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
628 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
629
630 2007-10-24 Richard Stallman <rms@gnu.org>
631
632 * frame.c (x_figure_window_size): For fullscreen case,
633 set USPosition | PPosition without clobbering rest of window_prompting.
634
635 * keyboard.c (Fcurrent_idle_time): Doc fix.
636
637 * print.c (Fwith_output_to_temp_buffer): Doc fix.
638
639 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
640
641 * process.c (unwind_request_sigio): Only define if __ultrix__.
642
643 * callproc.c (child_setup): Remove spurious *.
644
645 * lisp.h (Fget_text_property): Declare.
646 (have_menus_p): Declare it here rather than in sys-dep header files.
647 * macterm.h (have_menus_p):
648 * msdos.h (have_menus_p):
649 * xterm.h (have_menus_p): Remove.
650
651 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
652 (Fmake_variable_frame_local): Just check the variable's const-ness
653 rather than checking nil or t.
654
655 2007-10-22 Jason Rumney <jasonr@gnu.org>
656
657 * w32fns.c: Include math.h.
658 (w32_abort): Declaration moved to nt/config.nt.
659
660 * s/ms-w32.h (HAVE_STDLIB_H): Define.
661 (abort): Redefinition moved to nt/config.nt.
662
663 * m/windowsnt.h: Remove.
664
665 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
666
667 * emacs.c (Fdump_emacs): Fix typo in message.
668 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
669 <installation-directory>: Reflow docstring.
670
671 2007-10-22 Juri Linkov <juri@jurta.org>
672
673 * minibuf.c: Allow minibuffer default to be a list of default values.
674 With empty input use the first element of this list as returned default.
675 (string_to_object)
676 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
677 (read_minibuf): If defalt is cons, set histstring to its car.
678 (Fread_string): If default_value is cons, set val to its car.
679 (Fread_buffer): If def is cons, use its car.
680 (Fcompleting_read): If defalt is cons, set val to its car.
681
682 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
683
684 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
685
686 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
687
688 * doc.c (Fdocumentation): Check for advice in all cases.
689
690 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
691
692 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
693
694 2007-10-19 Richard Stallman <rms@gnu.org>
695
696 * doc.c (Fdocumentation): Check for and handle an advised function.
697
698 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
699
700 * process.c (Fset_process_filter): Doc fix.
701
702 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
703
704 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
705 which caused key-translation-map to applied repeatedly (thus breaking
706 double-mode).
707
708 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
709
710 * xselect.c (x_own_selection, x_handle_selection_clear)
711 (x_clear_frame_selections):
712 * w32menu.c (list_of_panes, list_of_items):
713 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
714 * textprop.c (validate_plist, interval_has_all_properties)
715 (interval_has_some_properties, interval_has_some_properties_list)
716 (add_properties, text_property_list):
717 * process.c (Fget_buffer_process, list_processes_1, status_notify):
718 * minibuf.c (Fassoc_string):
719 * macselect.c (x_own_selection, x_clear_frame_selections)
720 (Fx_disown_selection_internal):
721 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
722 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
723
724 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
725
726 * process.c: Link to libs for calling res_init() if available.
727 (Fmake_network_process): Call res_init() before getaddrinfo or
728 gethostbyname, if possible.
729
730 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
731
732 * lread.c (read1): Set pvectype for char_tables.
733
734 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
735 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
736 Add type checks.
737 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
738
739 * alloc.c (free_misc): Use XMISCTYPE.
740 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
741
742 2007-10-17 Glenn Morris <rgm@gnu.org>
743
744 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
745 (syms_of_minibuf): Add Qcompletion_ignore_case.
746 * dired.c (Qcompletion_ignore_case): Change to external.
747 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
748 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
749 (Fread_file_name): Use it rather than intern'ing.
750
751 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
752 (Fread_coding_system): Ignore case of user input.
753
754 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
755
756 * xdisp.c (handle_display_prop): Ignore display specs after
757 replacing one when string text is being replaced.
758 (handle_single_display_spec): Pretend as if characters with display
759 property haven't been consumed only when buffer text is being replaced.
760
761 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
762
763 * xfns.c (Fx_create_frame, Fx_display_list):
764 * window.c (window_fixed_size_p, enlarge_window)
765 (shrink_window_lowest_first):
766 * macterm.c (init_font_name_table):
767 * macfns.c (Fx_create_frame, Fx_display_list):
768 * lread.c (close_load_descs):
769 * keyboard.c (read_char_x_menu_prompt):
770 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
771 * coding.c (code_convert_region_unwind): Test the type of an object
772 rather than just !NILP before extracting data from it.
773
774 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
775
776 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
777 (XMISCANY): New macro.
778 (XMISCTYPE): Use it.
779 (struct Lisp_Misc_Any): New type.
780 (union Lisp_Misc): Use it.
781 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
782 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
783 (find_symbol_value, set_internal, default_value, Fset_default)
784 (Fmake_variable_buffer_local, Fmake_local_variable)
785 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
786 (Flocal_variable_if_set_p, Fvariable_binding_locus):
787 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
788 * alloc.c (allocate_buffer): Set the size and tag.
789 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
790 Use XMISCANY.
791 (die): Follow the GNU convention for error messages.
792 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
793 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
794 tag any more.
795 (set_buffer_internal_1):
796 * frame.c (store_frame_param):
797 * eval.c (specbind):
798 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
799
800 * doc.c (Fsnarf_documentation): Simplify.
801
802 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
803
804 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
805 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
806
807 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
808
809 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
810
811 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
812
813 * eval.c (do_autoload): Don't save autoloads.
814
815 * data.c (Ffset): Save autoload of the function being set.
816
817 2007-10-07 John Paul Wallington <jpw@pobox.com>
818
819 * xfns.c (x_create_tip_frame): Set the `display-type' frame
820 parameter before setting up faces.
821
822 2007-10-13 Eli Zaretskii <eliz@gnu.org>
823
824 * ccl.c (Fregister_code_conversion_map):
825 * keyboard.c (append_tool_bar_item): Reformat last change.
826
827 * lisp.h (eabs): Rename from `abs'. All callers changed.
828
829 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
830
831 * buffer.c (add_overlay_mod_hooklist):
832 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
833 * fontset.c (make_fontset):
834 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
835 (append_tool_bar_item):
836 * macmenu.c (grow_menu_items):
837 * w32menu.c (grow_menu_items):
838 * xmenu.c (grow_menu_items): Use larger_vector.
839
840 2007-10-13 Eli Zaretskii <eliz@gnu.org>
841
842 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
843 selected frame'' on MSDOS).
844
845 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
846
847 * macfns.c (x_create_tip_frame): Set terminal for frame.
848
849 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
850
851 * frame.c (Qenvironment): Remove.
852 (syms_of_frame) <Qenvironment>: Don't initialize.
853 (Fdelete_frame): Don't treat the `environment' param specially.
854 * frame.h (Qenvironment): Don't declare.
855 * callproc.c (set_initial_environment): Don't set unused frame param.
856
857 * frame.c (Fframe_with_environment): Remove.
858 (syms_of_frame) <Sframe_with_environment>: Don't declare.
859
860 * lisp.h (Fframe_with_environment): Don't declare.
861
862 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
863
864 * indent.c (indent_tabs_mode, last_known_column)
865 (last_known_column_modified): Make static.
866 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
867
868 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
869
870 * puresize.h (BASE_PURESIZE): Increase to 1170000.
871
872 2007-10-09 Richard Stallman <rms@gnu.org>
873
874 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
875 return HANDLED_RETURN.
876
877 2007-10-08 Martin Rudalics <rudalics@gmx.at>
878
879 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
880 when there's an unread command event.
881
882 * frame.c (focus_follows_mouse): Move here from frame.el to allow
883 window autoselection act appropriately when leaving selected frame.
884 (syms_of_frame): Initialize focus_follows_mouse.
885 * frame.h (focus_follows_mouse): Extern it.
886 * macterm.c (XTread_socket): When focus_follows_mouse is nil
887 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
888 * msdos.c (dos_rawgetc): Likewise.
889 * w32term.c (w32_read_socket): Likewise.
890 * xterm.c (handle_one_xevent): Likewise.
891 * xdisp.c (syms_of_xdisp): In doc-string of
892 mouse-autoselect-window mention focus-follows-mouse.
893
894 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
895
896 * macterm.c (mac_load_query_font): Fix missing return value.
897 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
898 Add BLOCK_INPUT.
899
900 2007-10-08 Richard Stallman <rms@gnu.org>
901
902 * xdisp.c (get_window_cursor_type): Implement documented behavior
903 for cursor-in-non-selected-windows = t.
904
905 2007-10-08 Jason Rumney <jasonr@gnu.org>
906
907 * w32.c (w32_get_resource): Always close registry keys.
908
909 2007-10-08 Jason Rumney <jasonr@gnu.org>
910
911 * makefile.w32-in (LIBS): Add COMCTL32.
912
913 * w32fns.c (globals_of_w32fns): Init common controls.
914
915 2007-10-08 Richard Stallman <rms@gnu.org>
916
917 * image.c (our_memory_buffer): Rename from omfib_buffer.
918
919 2007-10-08 Richard Stallman <rms@gnu.org>
920
921 * buffer.c (Foverlays_at): Doc fix.
922
923 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 * fns.c (Fplist_put): Preserve uneven tail data.
926
927 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
928
929 * termhooks.h (enum event_kind): Remove trailing comma.
930
931 * frame.h (enum): Remove trailing comma.
932
933 2007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
934
935 * w32proc.c (delete_child): Don't terminate threads of zombies.
936
937 2007-10-08 Martin Rudalics <rudalics@gmx.at>
938
939 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
940
941 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
942 last-repeatable-command.
943 (init_kboard): Initialize Vlast_repeatable_command.
944 (command_loop_1): Set it to real_this_command unless that was
945 bound to an input event.
946 (mark_kboards): Mark it.
947
948 2007-10-08 Richard Stallman <rms@gnu.org>
949
950 * eval.c (condition-case): Doc fix.
951
952 2007-10-08 Masatake YAMATO <jet@gyve.org>
953
954 * xfaces.c (tty_supports_face_attributes_p): Fix code
955 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
956 was copied and not edited.
957
958 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 Add new `input-decode-map' keymap and use it for terminal
961 escape sequences.
962 * keyboard.h (struct kboard): Add Vinput_decode_map.
963 Remove Vlocal_key_translation_map.
964 * keyboard.c (read_key_sequence): Add support for input-decode-map.
965 (init_kboard): Init input-decode-map.
966 Replace local-key-translation-map back with key-translation-map.
967 (syms_of_keyboard): Declare input-decode-map.
968 Remove local-key-translation-map. Update docstrings.
969 (mark_kboards): Mark Vinput_decode_map.
970 Don't mark Vlocal_key_translation_map.
971 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
972 Replace local-key-translation-map back with key-translation-map.
973 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
974 Bind in input-decode-map rather than function-key-map.
975
976 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
977 This was made redundant by the previous introduction of XSETPVECTYPE.
978
979 2007-10-09 Richard Stallman <rms@gnu.org>
980
981 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
982
983 2007-09-29 Richard Stallman <rms@gnu.org>
984
985 * eval.c (internal_condition_case_2, internal_condition_case_1)
986 (internal_condition_case): Reenable abort if x_catching_errors ()
987 to see if that really happens and why.
988
989 2007-10-06 Andreas Schwab <schwab@suse.de>
990
991 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
992
993 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
994
995 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
996
997 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
998
999 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
1000
1001 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
1002
1003 * window.h (struct window):
1004 * window.c (struct save_window_data, struct saved_window):
1005 * termhooks.h (struct terminal):
1006 * process.h (struct Lisp_Process):
1007 * frame.h (struct frame):
1008 * buffer.h (struct buffer):
1009 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
1010 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
1011 The size field of (pseudo)vectors is now unsigned.
1012 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
1013
1014 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
1015 Turn `count' into an integer.
1016
1017 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
1018 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
1019 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
1020 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
1021 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
1022
1023 * alloc.c (allocate_pseudovector): New fun.
1024 (ALLOCATE_PSEUDOVECTOR): New macro.
1025 (allocate_window, allocate_terminal, allocate_frame)
1026 (allocate_process): Use it.
1027 (mark_vectorlike): New function.
1028 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
1029 (mark_terminals): Use it.
1030 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
1031 (Fmake_byte_code): Use XSETPVECTYPE.
1032
1033 * frame.c (Fframe_parameters): Minor simplification.
1034
1035 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
1036
1037 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
1038
1039 * buffer.c (Fget_buffer_create, init_buffer_once):
1040 * lread.c (defsubr):
1041 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
1042
1043 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
1044 defined differently in the m/*.h files.
1045 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
1046 (XSETPVECTYPE): New macro.
1047 (XSETPSEUDOVECTOR): Use it.
1048
1049 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
1050 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
1051
1052 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
1053 * lread.c (defvar_per_buffer):
1054 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
1055
1056 * window.c (candidate_window_p): Only consider as visible frames that
1057 are on the same terminal.
1058
1059 * m/ibms390x.h (MARKBIT): Remove unused macro.
1060
1061 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * lread.c (Fload): Fix typo in docstring.
1064
1065 2007-10-01 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
1066
1067 * floatfns.c (Fexpt): Manually check for overflows, so that a power
1068 of a non-zero value can't yield zero.
1069
1070 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
1071
1072 * term.c (term_clear_mouse_face, term_mouse_highlight)
1073 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
1074
1075 * print.c (safe_debug_print): Use XHASH.
1076
1077 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
1078 Lisp elements such as tags.
1079 (XHASH): New macro.
1080 (EQ): Use it.
1081 (SREF, SSET, STRING_COPYIN): Use SDATA.
1082 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
1083
1084 * alloc.c (mark_terminal): Remove left-over declaration.
1085 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
1086 (allocate_vectorlike): Remove type argument. Adjust callers.
1087 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
1088 Only handle the one remaining MEM_TYPE_VECTORLIKE.
1089
1090 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
1091 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
1092 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
1093 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
1094 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
1095 Use them.
1096
1097 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
1098 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
1099 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
1100
1101 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
1102
1103 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
1104 loaded by default.
1105
1106 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1107
1108 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
1109 on this tty.
1110 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
1111
1112 * term.c (mouse_face_window): Rename from Qmouse_face_window.
1113 Update all users.
1114 (handle_one_term_event): Use Gpm_DrawPointer.
1115 (Fgpm_mouse_start): Rename from Fterm_open_connection.
1116 Signal errors instead of returning nil. Always return nil.
1117 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
1118 Make it a noop if gpm-mouse was not activated.
1119 (syms_of_term): Update names.
1120
1121 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
1122
1123 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
1124 (init_sys_modes): Check that gpm_tty is the current tty.
1125
1126 * alloc.c (allocate_terminal): Set the vector size to only count the
1127 lisp fields. Initialize those to nil.
1128 (mark_object): Don't treat terminals specially.
1129 (mark_terminal): Remove.
1130 (mark_terminals): Use mark_object instead.
1131
1132 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
1133 the GC to the beginning.
1134
1135 * indent.h:
1136 * indent.c: Use EMACS_INT for ints coming from Elisp data.
1137
1138 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
1139
1140 2007-09-25 Jason Rumney <jasonr@gnu.org>
1141
1142 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
1143
1144 * w32console.c (create_w32cons_output): Remove.
1145
1146 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
1147
1148 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
1149 (reset_sys_modes): Use reset_terminal_modes_hook.
1150
1151 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
1152
1153 * eval.c (do_autoload): Don't output any message.
1154
1155 2007-09-24 Juri Linkov <juri@jurta.org>
1156
1157 * emacs.c (standard_args): Change priority of "--no-splash"
1158 from 40 to 3. Add "--no-desktop" with the same priority.
1159
1160 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
1161
1162 * alloc.c (gc_sweep): Check cons cell mark bits word by word
1163 and optimize the case where they are all 1.
1164
1165 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
1166
1167 * lisp.h (abs): Define if not defined.
1168 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
1169 Don't define `abs', since it's defined in lisp.h.
1170
1171 2007-09-22 Eli Zaretskii <eliz@gnu.org>
1172
1173 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
1174 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
1175 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
1176 (init_tty): Use DEV_TTY instead of "/dev/tty".
1177 [WINDOWSNT]: No need to protect from NAME arg being null.
1178
1179 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1180
1181 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
1182 up the tty state.
1183
1184 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
1185
1186 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
1187 (gpm_tty): Change its type.
1188 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
1189 (gpm_tty): Change its type and initialize it.
1190 (Fterm_open_connection): Check the frame is indeed a tty.
1191 Use the new gpm_tty.
1192 (Fterm_close_connection): Use the new gpm_tty.
1193 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
1194 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
1195
1196 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
1197
1198 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
1199 underline_color, to draw strike-through.
1200
1201 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
1202
1203 * lisp.h (allocate_terminal): Declare.
1204
1205 * window.c (candidate_window_p): Consider frames that are being placed
1206 by the user as somewhere between visible and iconified.
1207 (window_loop): Prefer windows on the current frame.
1208 (Fselect_window): Move the use of select-frame to the beginning so we
1209 can just delegate all the work (it'll call us back anyway).
1210
1211 * frame.c (Qdisplay_environment_variable):
1212 * frame.h (Qdisplay_environment_variable): Delete.
1213
1214 * .gdbinit (xbacktrace): Print the arg's address rather than the value
1215 of the first arg, since that value may be a union.
1216
1217 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
1218 parameter rather than Qdisplay_environment_variable. If all else
1219 fails, look for DISPLAY in initial-environment.
1220
1221 2007-09-21 Glenn Morris <rgm@gnu.org>
1222
1223 * Makefile.in (emacstool): Remove target.
1224 (lisp, shortlisp): Remove termdev.elc.
1225
1226 2007-09-21 Markus Triska <markus.triska@gmx.at>
1227
1228 * xterm.c (x_delete_display): Compile session management conditionally.
1229
1230 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
1231
1232 * callproc.c (getenv_internal_1): New function.
1233 (getenv_internal): Use it.
1234 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
1235
1236 * terminal.c (get_terminal): Don't accept ints to represent terminals.
1237 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
1238 (Fset_terminal_parameter): Work with dead terminals as well.
1239 (Fmodify_terminal_parameters): Remove.
1240
1241 * terminal.c (get_terminal): Handle terminals.
1242 Make sure the terminal returned is live.
1243 (create_terminal): Use allocate_terminal.
1244 (mark_terminals): Move to alloc.c.
1245 (delete_terminal): Use terminal->name as liveness status.
1246 NULL out fields after freeing their contents.
1247 Don't deallocate the object.
1248 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
1249 rather than an int.
1250 (Fterminal_live_p): Accept non-integer arguments.
1251 (Fterminal_list): Return terminal objects rather than an ints.
1252
1253 * alloc.c (enum mem_type): New member for `terminal' objects.
1254 (allocate_terminal): New function.
1255 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
1256 Handle terminals.
1257 (mark_terminal): New fun.
1258 (mark_terminals): Move from terminal.c.
1259
1260 * term.c (get_tty_terminal): Don't treat output_initial specially.
1261 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
1262 (delete_tty): Use terminal->name as liveness status.
1263
1264 * termhooks.h (struct terminal): Make it into a pseudovector.
1265 Remove `deleted' replaced by checking `name's nullness.
1266
1267 * print.c (print_object): Handle terminals.
1268
1269 * lisp.h (enum pvec_type): New `terminal' pseudovector.
1270 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
1271
1272 * frame.c (make_terminal_frame):
1273 * keyboard.c (tty_read_avail_input):
1274 * w32term.c (x_delete_terminal):
1275 * xfns.c (Fx_create_frame, x_create_tip_frame):
1276 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
1277
1278 2007-09-20 Glenn Morris <rgm@gnu.org>
1279
1280 * process.c (Fmake_network_process): Doc fix.
1281
1282 2007-09-19 Jason Rumney <jasonr@gnu.org>
1283
1284 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
1285
1286 2007-09-19 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
1287
1288 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
1289 Fix a C warning regarding variable constness.
1290
1291 * xterm.c (handle_one_xevent): Fix a C warning.
1292
1293 2007-09-18 Jason Rumney <jasonr@gnu.org>
1294
1295 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
1296
1297 2007-09-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1298
1299 * gtkutil.c (gdpy_def): New variable.
1300 (xg_initialize): Initialize gdpy_def.
1301 (xg_display_close): If no other display exists, set gdpy_def to a
1302 new connection.
1303
1304 2007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1305
1306 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
1307 when we have no file name for the icon.
1308 (xg_tool_bar_expose_callback): Remove.
1309 (xg_create_tool_bar): Don't connect expose signal to
1310 xg_tool_bar_expose_callback.
1311 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
1312
1313 2007-09-16 Andreas Schwab <schwab@suse.de>
1314
1315 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
1316 values instead of zapping them.
1317
1318 2007-09-14 Glenn Morris <rgm@gnu.org>
1319
1320 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
1321 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
1322 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
1323 scope and rename to omfib_buffer for clarity.
1324 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
1325
1326 2007-09-14 Kenichi Handa <handa@m17n.org>
1327
1328 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
1329
1330 2007-09-13 Jason Rumney <jasonr@gnu.org>
1331
1332 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
1333
1334 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
1335
1336 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
1337 (mac_term_init): Call here instead, passing rif.
1338
1339 2007-09-13 Glenn Morris <rgm@gnu.org>
1340
1341 * s/hpux.h: No longer define `static' as nothing.
1342
1343 2007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
1344
1345 * callint.c (Fcall_interactively): Remove unused var `fun'.
1346
1347 2007-09-12 Romain Francoise <romain@orebokech.com>
1348
1349 * window.c (prefer_window_split_horizontally, display_buffer):
1350 Revert 2007-09-08 change.
1351
1352 2007-09-12 Glenn Morris <rgm@gnu.org>
1353
1354 * alloca.c: Remove file.
1355 * Makefile.in (alloca): Do not undef.
1356 (allocaobj, alloca.o): Remove.
1357 (otherobj): Remove allocaobj.
1358 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
1359 * regex.c (C_ALLOCA): Remove all references and code that was only
1360 used when this was defined.
1361 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
1362 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
1363 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
1364
1365 * Makefile.in (SOURCES, unlock, relock): Delete.
1366
1367 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
1368 (menu_grab_callback): All uses changed.
1369
1370 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
1371 (x_reply_selection_request): All uses changed.
1372
1373 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1374
1375 * lread.c (load_warn_old_style_backquotes): Change message to look
1376 better when it appears in the middle of byte-compiler messages.
1377
1378 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
1379
1380 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
1381
1382 * xterm.c (x_create_terminal): Add comment.
1383
1384 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
1385
1386 2007-09-10 Richard Stallman <rms@gnu.org>
1387
1388 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
1389
1390 2007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
1391
1392 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
1393 (DEFUN): Document `intspec', use it instead of `prompt'.
1394
1395 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
1396
1397 * data.c (Finteractive_form): If the interactive specification starts
1398 with a `(', use it as a Lisp form.
1399
1400 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
1401 name and file modes.
1402
1403 * callint.c (Fcall_interactively): Comment fixes.
1404
1405 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1406
1407 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
1408 and compiled functions.
1409
1410 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
1411
1412 * window.c (prefer_window_split_horizontally): New variable.
1413 (display_buffer): Consider splitting window horizontally depending
1414 on prefer_window_split_horizontally.
1415
1416 2007-09-08 Eli Zaretskii <eliz@gnu.org>
1417
1418 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
1419
1420 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1421
1422 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
1423
1424 * frame.c (x_set_frame_parameters): Check number is positive before
1425 using XFASTINT.
1426
1427 * window.c (freeze_window_start): Don't presume selected_window holds
1428 a window object.
1429 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
1430
1431 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
1432
1433 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
1434
1435 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1436
1437 * window.c (Vsplit_window_preferred_function): New var.
1438 (Fdisplay_buffer): Use it.
1439 (syms_of_window): Export, and initialize it.
1440
1441 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
1442
1443 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
1444
1445 2007-09-06 Glenn Morris <rgm@gnu.org>
1446
1447 * gtkutil.c (menu_grab_callback) <cnt>:
1448 * xselect.c (x_reply_selection_request) <cnt>: Move static
1449 variable to file scope.
1450
1451 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
1452
1453 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
1454 consistent values of selected_frame and selected_window.
1455
1456 2007-09-04 Jason Rumney <jasonr@gnu.org>
1457
1458 * w32console.c (initialize_w32_display): Zero unused hooks.
1459
1460 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
1461
1462 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
1463 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
1464
1465 2007-09-04 Jason Rumney <jasonr@gnu.org>
1466
1467 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
1468 in w32console.c. Set up input. Remove XXX comments that have been
1469 confirmed as correct.
1470
1471 * s/ms-w32.h (MULTI_KBOARD): Define.
1472
1473 * w32console.c (one_and_only_w32cons): Remove.
1474 (initialize_w32_display): Take terminal argument.
1475
1476 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
1477 initialize_w32_display.
1478 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
1479
1480 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
1481
1482 * keyboard.c (discard_mouse_events): Discard it.
1483 (make_lispy_event): Translate it to a lisp event.
1484 (lispy_wheel_names): Add wheel-left and right events.
1485 (syms_of_keyboard): Enlarge wheel_syms.
1486
1487 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
1488 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
1489
1490 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
1491
1492 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
1493 from WM_MOUSEHWHEEL.
1494 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
1495
1496 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
1497 terminal.
1498
1499 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
1500 keyboard for the terminal.
1501
1502 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
1503
1504 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
1505 (Vresume_tty_hook): Rename from Vresume_tty_functions.
1506 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
1507 and resume-tty-function to resume-tty-hook.
1508 (Fsuspend_tty, Fresume_tty): Use new names.
1509
1510 2007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1511
1512 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
1513 if it starts with "n:".
1514
1515 2007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1516
1517 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
1518
1519 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1520
1521 * frame.h:
1522 * frame.c (Qterm_environment_variable): Remove.
1523 (syms_of_frame): Don't init and staticpro it.
1524
1525 * callproc.c (getenv_internal): Remove special case for $TERM.
1526
1527 * callproc.c (Vinitial_environment): New variable.
1528 (set_initial_environment): Initialize it.
1529 (syms_of_callproc): Declare it.
1530 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
1531 TERM under which a process runs is never related to the TERM in which
1532 Emacs is running.
1533
1534 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
1535
1536 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
1537 * s/darwin.h: ... do it here.
1538
1539 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1540
1541 * lisp.h (set_initial_environment): Rename from set_global_environment.
1542
1543 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
1544 removed by mistake on the multi-tty branch.
1545
1546 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
1547 (Fmodify_frame_parameters): Return a value.
1548
1549 * image.c (png_load): Comment-out var only used in commented-out code.
1550
1551 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
1552 before passing it to mark_object.
1553
1554 * xfaces.c (internal_resolve_face_name): Return a value.
1555 (internal_resolve_face_name, resolve_face_name_error): Comment out.
1556
1557 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
1558 (x_icon): Comment-out var only used in commented-out code.
1559
1560 2007-08-29 Romain Francoise <romain@orebokech.com>
1561
1562 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
1563 QUIT hasn't been provided.
1564
1565 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
1566
1567 * callproc.c (child_setup, getenv_internal): Use the
1568 display-environment-variable and term-environment-variable frame
1569 params.
1570 (set_initial_environment): Initialise Vprocess_environment.
1571
1572 * config.in: Disable multi-keyboard support on a mac.
1573
1574 * frame.c (Qterm_environment_variable)
1575 (Qdisplay_environment_variable): New variables.
1576 (syms_of_frame): Intern and staticpro them.
1577 (Fmake_terminal_frame): Disable output method test.
1578
1579 * frame.h: Declare them here.
1580
1581 * macfns.c (x_set_mouse_color): Get rif from the frame.
1582 (x_set_tool_bar_lines): Don't use updating_frame.
1583 (mac_window): Add 2 new parameters for consistency with other systems.
1584 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
1585 frame parameters following what is done in X11 and w32. Don't use
1586 FRAME_MAC_DISPLAY_INFO.
1587 (Fx_open_connection, start_hourglass): Remove window-system check.
1588 (x_create_tip_frame): Get the keyboard from the terminal.
1589
1590 * macmenu.c: Reorder includes.
1591 (Fx_popup_menu): Use terminal specific mouse_position_hook.
1592
1593 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
1594 terminal parameter.
1595 (x_clear_frame): Add a frame parameter.
1596 (note_mouse_movement): Get rif from the frame.
1597 (mac_term_init): Initialize the terminal.
1598 (mac_initialize): Make static and move terminal initialization ...
1599 (mac_create_terminal): ... to this new function.
1600
1601 * macterm.h (struct mac_display_info): Add terminal.
1602 (mac_initialize): Delete declaration.
1603
1604 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
1605
1606 * sysdep.c: Comment out text after #endif.
1607
1608 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
1609 is defined. Better initialize ttys in windows. Use terminal
1610 specific mouse_position_hook.
1611
1612 * termhooks.h (union display_info): Add mac_display_info.
1613
1614 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
1615 Set the default minibuffer frame, window_system and the rest of the
1616 frame parameters following what is done in X11.
1617
1618 * w32term.c (w32_initialize): Make static.
1619
1620 * xselect.c (x_handle_selection_clear): Only access
1621 terminal->kboard when MULTI_KBOARD is defined.
1622
1623 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
1624 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
1625
1626 2007-08-29 Jason Rumney <jasonr@gnu.org>
1627
1628 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
1629 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
1630
1631 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
1632 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
1633
1634 * keyboard.c (restore_kboard_configuration): Only define when
1635 MULTI_KBOARD defined.
1636
1637 * makefile.w32-in: Update dependancies from Makefile.in.
1638 (OBJ1): Add terminal.$(O)
1639
1640 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
1641 Don't define function body.
1642 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
1643
1644 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
1645
1646 * w32.c (request_sigio, unrequest_sigio): Remove.
1647
1648 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
1649 (w32con_clear_frame, w32con_clear_end_of_line)
1650 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
1651 (w32con_delete_glyphs, w32con_set_terminal_window)
1652 (scroll_line, w32_sys_ring_bell): Add frame arg.
1653 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
1654 Add terminal arg.
1655 (PICK_FRAME): Remove.
1656 (w32con_write_glyphs): Use frame specific terminal coding.
1657 (one_and_only_w32cons): New global variable.
1658 (initialize_w32_display): Use it for storing hooks.
1659 (create_w32cons_output): New function.
1660
1661 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
1662 arg a frame.
1663
1664 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
1665 Set window_system.
1666 (x_set_tool_bar_lines): Don't use updating_frame.
1667 (Fx_create_frame): Set terminal and ref count.
1668 (Fx_open_connection): Remove window-system check.
1669
1670 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
1671
1672 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
1673 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
1674 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
1675 Add frame arg.
1676 (x_delete_terminal, w32_create_terminal): New functions.
1677 (w32_term_init): Create a terminal.
1678 (w32_initialize): Move terminal specific initialization to
1679 w32_create_terminal.
1680
1681 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
1682 (w32_clear_rect, w32_clear_area): Use background from frame.
1683 (w32_display_info): Add terminal.
1684 (w32_sys_ring_bell, x_delete_display): Declare here.
1685
1686 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
1687
1688 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
1689
1690 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
1691
1692 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
1693 Fix get_named_tty calls for the controlling tty.
1694
1695 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
1696
1697 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
1698
1699 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
1700
1701 * term.c (tty_insert_glyphs): Add missing first parameter.
1702
1703 2007-08-29 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <karoly@lorentey.hu>
1704
1705 * buffer.c (Fbuffer_list, Fbury_buffer):
1706 Take frame->buried_buffer_list into account.
1707
1708 * cm.c (current_tty): New variable, for cmputc().
1709 (cmputc): Use it.
1710 (cmcheckmagic): Add tty parameter, look up terminal streams there.
1711 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
1712 (cmgoto): Add tty parameter. Pass it on to calccost().
1713 Use emacs_tputs() instead of tputs().
1714
1715 * cm.h (emacs_tputs): New macro to set current_tty, and then call
1716 tputs().
1717 (current_tty): New variable, for cmputc().
1718 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
1719
1720 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
1721 (internal_condition_case, internal_condition_case_1)
1722 (internal_condition_case_2): Don't abort when x_catching_errors.
1723
1724 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
1725 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
1726 prevent crashes caused by bogus longjmps in read_char.
1727
1728 * keymap.h (Fset_keymap_parent): Add EXFUN.
1729
1730 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
1731 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1732 Remove redundant definition.
1733
1734 * macfns.c (x_set_mouse_color, x_make_gc):
1735 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1736
1737 * w32term.c (x_free_frame_resources):
1738 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1739 (w32_initialize): Use the accessor macros for terminal characteristics.
1740
1741 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
1742 Use the accessor macros for terminal characteristics.
1743 * msdos.c (internal_terminal_init): Use the accessor macros for
1744 terminal characteristics.
1745 (ScreenVisualBell, internal_terminal_init):
1746 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1747
1748 * termopts.h (no_redraw_on_reenter): Declare.
1749
1750 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
1751 (mark_terminals, mark_ttys): Declare.
1752 (Fgarbage_collect): Call them.
1753 (mark_object): Mark buried_buffer_list.
1754
1755 * prefix-args.c: Include stdlib.h for exit.
1756
1757 * syssignal.h: Add comment.
1758
1759 * indent.c: Include stdio.h.
1760
1761 * window.h (Vinitial_window_system): Declare.
1762 (Vwindow_system): Delete declaration.
1763
1764 * fontset.c (Finternal_char_font): Use FRAME_RIF.
1765
1766 * image.c (lookup_image): Don't initialize `c' until the xasserts
1767 have been run.
1768
1769 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
1770 FRAME_FOREGROUND_PIXEL.
1771
1772 * print.c (print_preprocess): Don't lose print_depth levels while
1773 iterating.
1774
1775 * widget.c (update_from_various_frame_slots):
1776 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1777
1778 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
1779 frames.
1780 (window_internal_height): Remove bogus make_number call.
1781 (init_window_once): Call make_terminal_frame with two zero parameters.
1782
1783 * fileio.c (Fread_file_name): Update comment.
1784
1785 * callint.c (Fcall_interactively):
1786 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
1787 Make sure it is correctly unwound.
1788
1789 * xsmfns.c (x_session_close): New function.
1790
1791 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
1792 Delete declarations.
1793
1794 * xterm.h: Remove declaration for x_fully_uncatch_errors.
1795 (x_output): Remove background_pixel and foreground_pixel fields.
1796 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
1797 (x_delete_device):
1798 (x_session_close): Declare.
1799
1800 * lread.c: Include setjmp.h. Update declaration of `read_char'.
1801 (read_filtered_event): Call `read_char' with a local
1802 `wrong_kboard_jmpbuf'.
1803
1804 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
1805 Don't call single_kboard_state. Use FRAME_RIF.
1806
1807 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
1808 systems.
1809
1810 * lisp.h (set_process_environment): Rename to `set_global_environment'.
1811 (Fframe_with_environment, Fset_input_meta_mode)
1812 (Fset_quit_char): EXFUN.
1813 (x_create_device, tty_output, terminal, tty_display_info): Declare.
1814 (init_sys_modes, reset_sys_modes): Update prototypes.
1815 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
1816
1817 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
1818 Vlocal_key_translation_map, and Vkeyboard_translate_table.
1819 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
1820 Delete declarations.
1821 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
1822 (temporarily_switch_to_single_kboard, tty_read_avail_input):
1823 New declarations.
1824
1825 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
1826 already does that during init_display(). Call syms_of_keymap
1827 before syms_of_keyboard. Call `syms_of_terminal'.
1828 Call set_initial_environment, not set_process_environment.
1829 (shut_down_emacs): Call reset_all_sys_modes() instead of
1830 reset_sys_modes().
1831
1832 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
1833 (internal_resolve_face_name, resolve_face_name_error): New functions.
1834 (resolve_face_name): Protect against loops and errors thrown by Fget.
1835 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
1836 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
1837
1838 * scroll.c: Replace CURTTY() with local variables throughout the
1839 file (where applicable).
1840 (calculate_scrolling, calculate_direct_scrolling)
1841 (scrolling_1, scroll_cost): Use the accessor macros for terminal
1842 characteristics.
1843
1844 * keymap.c (Vfunction_key_map): Remove.
1845 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
1846 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
1847 (Vkey_translation_map): Remove.
1848 (syms_of_keymap): Remove DEFVAR for key-translation-map.
1849 (Fdescribe_buffer_bindings):
1850 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
1851 Update for terminal-local key-translation-map.
1852
1853 * Makefile.in (callproc.o): Update dependencies.
1854 (lisp, shortlisp): Add termdev.elc.
1855 (obj): Add terminal.o.
1856 (terminal.o): Add dependencies.
1857 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
1858 (data.o, fns.o): Add termhooks.h dependency.
1859 (SOME_MACHINE_LISP): Add dnd.elc.
1860 (minibuf.o): Fix typo.
1861 Update dependencies.
1862
1863 * data.c (do_symval_forwarding, store_symval_forwarding)
1864 (find_symbol_value): Use the selected frame's keyboard, not
1865 current_kboard.
1866
1867 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
1868 Vwindow_system.
1869
1870 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
1871 Fmenu_bar_open.
1872 (syms_of_xmenu): Update defsubr.
1873 (mouse_position_for_popup, Fx_popup_menu)
1874 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
1875 (set_frame_menubar, free_frame_menubar)
1876 (create_and_show_popup_menu, xmenu_show, )
1877 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
1878 an X frame.
1879
1880 * xselect.c (x_own_selection): Abort if not an X frame.
1881 (some_frame_on_display): Check if it is an X frame.
1882 (x_handle_selection_clear): Deal with MULTI_KBOARD.
1883
1884 * coding.c: Include frame.h and termhooks.h.
1885 (terminal_coding, keyboard_coding): Delete.
1886 (Fset_terminal_coding_system_internal):
1887 (Fset_keyboard_coding_system_internal):
1888 (Fkeyboard_coding_system):
1889 (Fterminal_coding_system): Add a terminal parameter.
1890 Get terminal_coding from the terminal.
1891 (init_coding_once): Don't call setup_coding_system here.
1892
1893 * dispextern.h (set_scroll_region, turn_off_insert)
1894 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
1895 (tty_clear_end_of_line, tty_setup_colors)
1896 (delete_tty, updating_frame)
1897 (produce_special_glyphs, produce_glyphs, write_glyphs)
1898 (insert_glyphs): Remove.
1899 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
1900 (tty_turn_off_highlight, get_tty_size): Add declaration.
1901 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
1902
1903 * frame.h (enum output_method): Add output_initial.
1904 (struct x_output): Delete.
1905 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1906 Access foreground_pixel and background_pixel directly from the frame.
1907 (tty_display): Delete.
1908 (struct frame): Add buried_buffer_list, foreground_pixel,
1909 background_pixel and terminal. Delete kboard
1910 (union output_data): Add tty.
1911 (FRAME_KBOARD): Get the kboard from the terminal.
1912 (FRAME_INITIAL_P): New macro.
1913 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
1914 (Qterm_environment_variable, Qdisplay_environment_variable)
1915 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
1916 New declarations.
1917
1918 * termchar.h (tty_output, tty_display_info): New structures.
1919 (tty_list): Declare.
1920 (FRAME_TTY, CURTTY): New macros.
1921 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
1922 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
1923 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
1924 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
1925
1926 * callproc.c: Include frame.h and termhooks.h, for terminal
1927 parameters.
1928 (add_env): New function.
1929 (child_setup): Use it.
1930 (child_setup, getenv_internal): Handle the new Vprocess_environment.
1931 (getenv_internal): Fix get_terminal_param call.
1932 (Fgetenv_internal, egetenv): Update doc.
1933 (syms_of_callproc): Initialize Vprocess_environment to nil.
1934 Register and initialize them. Remove obsolete defvars. Update doc
1935 strings.
1936 (child_setup): Handle Vlocal_environment_variables.
1937 (getenv_internal): Add terminal parameter.
1938 Handle Vlocal_environment_variables.
1939 (Fgetenv_internal): Add terminal parameter.
1940 (child_setup, getenv_internal, Fgetenv_internal): Store the local
1941 environment in a frame (not terminal) parameter. Update doc strings.
1942 (set_initial_environment): Rename from set_global_environment.
1943 Store Emacs environment in initial frame parameter.
1944
1945 * xdisp.c (redisplay_internal): Update references to
1946 `previous_terminal_frame'.
1947 (display_mode_line, Fformat_mode_line): Replace calls to
1948 `push_frame_kboard' with `push_kboard'.
1949 (get_glyph_string_clip_rects): Add extra parentheses and
1950 braces to prevent compiler warnings.
1951 (calc_pixel_width_or_height): Add xassert to check that the
1952 frame is alive. Don't call `lookup_image' on a termcap frame.
1953 (message2_nolog, message3_nolog, redisplay_internal)
1954 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
1955 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
1956 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
1957 (Fx_display_pixel_width, Fx_display_pixel_height)
1958 (Fx_display_planes, Fx_display_color_cells)
1959 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
1960 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
1961 (Fx_display_backing_store, Fx_display_visual_class)
1962 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
1963 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
1964
1965 * xfns.c (x_set_foreground_color x_set_background_color)
1966 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
1967 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
1968 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
1969 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
1970 terminal that is being deleted.
1971 (Fx_create_frame): Use `store_frame_param' to set `window-system'
1972 frame parameter, and make sure it overrides any user-supplied setting.
1973 (Fx_close_connection, Fx_synchronize): Unify argument names with
1974 the rest of the DEFUNs.
1975
1976 * dispnew.c (Fsend_string_to_terminal): Update call to
1977 `get_tty_terminal'.
1978 (Fredraw_frame, Fsend_string_to_terminal)
1979 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
1980 FRAME_TERMCAP_P and FRAME_TTY.
1981 (window_change_signal): Don't believe width/height values that are
1982 impossibly small.
1983 (Vinitial_window_system): Rename from Vwindow_system.
1984 (termscript, Wcm, rif): Delete.
1985
1986 * termhooks.h (struct terminal): New struct containing the
1987 previously global text display hooks and new members NAME,
1988 DELETED and PARAM_ALIST.
1989 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
1990 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
1991 (FRAME_RIF): New macros.
1992 (get_terminal_param, get_device): New declarations.
1993 (termscript): Delete declaration.
1994
1995 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
1996 (XTflash, x_free_frame_resources, x_scroll_bar_create)
1997 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
1998 FRAME_FOREGROUND_PIXEL.
1999 (x_fully_uncatch_errors): Disable definition.
2000 (x_scroll_bar_expose): Fix reference to foreground pixel.
2001 (XTread_socket): Disable loop on all X displays.
2002 (x_delete_terminal): Don't set terminal->deleted and let
2003 delete_terminal delete the frames on the terminal.
2004 (x_delete_display): Doc update to reflect changes in
2005 delete_terminal.
2006 (x_display_info) <terminal>: Move member earlier in the struct.
2007 (deleting_tty): Remove old variable.
2008 (Fsuspend_tty): Call clear_tty_hooks.
2009 (Fresume_tty, init_tty): Call set_tty_hooks.
2010 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
2011 errors on X frames.
2012 (x_catch_errors_unwind): Abort if x_error_message is NULL.
2013 (handle_one_xevent): Initialize `f' to NULL.
2014 (x_delete_terminal, x_create_terminal): New functions.
2015 (XTset_terminal_modes, XTreset_terminal_modes)
2016 (XTread_socket, x_connection_closed, x_term_init)
2017 (x_term_init, x_delete_display): Add terminal parameter.
2018 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
2019 X connections.
2020
2021 * frame.c (Fframep): Deal with output_initial.
2022 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
2023 (Qtty_type, Qwindow_system, Qenvironment)
2024 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
2025 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
2026 (make_terminal_frame): Don't create frames on a terminal that is
2027 being deleted.
2028 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
2029 FRAME_FOREGROUND_PIXEL.
2030 (store_frame_param): Check for found_for_frame before calling XFRAME.
2031 (Fmake_terminal_frame): Handle NULL tty names correctly.
2032 (syms_of_frame): Enhance doc string of `default-frame-alist'.
2033 (Fdelete_frame): Remove unused variable `count'.
2034 (Qenvironment): New variable.
2035 (Fdelete_frame): Don't allow other frames to refer to a deleted
2036 frame in their 'environment parameter.
2037 (Fframe_with_environment): New function.
2038 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
2039 (get_future_frame_param): New function.
2040 (Fmake_terminal_frame): Use it.
2041 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
2042
2043 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
2044 * sysdep.c (reset_sys_modes): Update for renames.
2045
2046 * keyboard.c (tty_read_avail_input): New function.
2047 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
2048 (syms_of_keyboard): Defsubr them.
2049 (Fset_input_meta_mode, Fset_quit_char): New functions.
2050 (Fset_input_mode): Split to above functions.
2051
2052 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
2053 parameter. Use it in call to `read_char'.
2054 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
2055 Set wrong_kboard_jmpbuf correctly in recursive calls.
2056 Use current_kboard to access Vkeyboard_translate_table.
2057 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
2058 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
2059 Update longjmp invocations. Remember the original current_kboard,
2060 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
2061 changes it. Comment out unnecessary calls to
2062 `record_single_kboard_state' and `any_kboard_state'.
2063 Update recursive calls.
2064 (wrong_kboard_jmpbuf): Remove global variable.
2065 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
2066 Handle deleted interrupted_kboards correctly; that is a legal
2067 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
2068 and read_char calls. Abort if interrupted_kboard died in read_char.
2069 (any_kboard_state, single_kboard_state)
2070 (push_frame_kboard): Remove function.
2071 (pop_kboard): Switch out of single_kboard mode if the kboard has
2072 been deleted. Remove unused variable. Help debugging by not
2073 changing current_kboard unnecessarily. Set current_kboard to the
2074 kboard of the selected frame when the stored kboard object has
2075 been deleted before pop_kboard.
2076 (temporarily_switch_to_single_kboard): Change first parameter to a
2077 frame pointer. Throw an error when caller wants to change kboards
2078 while in single_kboard mode. Don't push_kboard if we weren't in
2079 single kboard state. Don't pop_kboard if we popped into any
2080 kboard state.
2081 (restore_kboard_configuration): Abort if pop_kboard changed the
2082 kboard in single_kboard mode. Call pop_kboard only after setting
2083 up single_kboard mode.
2084 (Frecursive_edit): Switch to single_kboard mode only in nested
2085 command loops.
2086 (cmd_error, command_loop, command_loop_1, timer_check):
2087 Comment out unnecessary call to `any_kboard_state' and
2088 `record_single_kboard_state'.
2089 (delete_kboard): Exit single_kboard mode if we have just deleted
2090 that kboard. Use FRAME_KBOARD.
2091 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
2092 `fatal_error_signal'.
2093 (record_single_kboard_state): Don't push_kboard if we weren't in
2094 single kboard state. Don't pop_kboard if we popped into any
2095 kboard state.
2096 (push_frame_kboard): Rename to push_kboard.
2097 (kbd_buffer_get_event): Use FRAME_TERMINAL.
2098 (read_avail_input): Read input from all terminals.
2099 (mark_kboards): Also mark Vkeyboard_translate_table.
2100 (kbd_buffer_store_event_hold): Simplify condition.
2101 (read_key_sequence): Reinitialize fkey and keytran at each replay.
2102 (Vkeyboard_translate_table): Move to struct kboard.
2103 (init_kboard): Initialize Vkeyboard_translate_table.
2104 (syms_of_keyboard): Use DEFVAR_KBOARD to define
2105 Vkeyboard_translate_table. Update doc strings. Update docs of
2106 local-function-key-map and function-key-map.
2107
2108 * terminal.c: New file.
2109
2110 * term.c: Include errno.h.
2111 (Vring_bell_function, device_list, initial_device)
2112 (next_device_id, ring_bell, update_begin, update_end)
2113 (set_terminal_window, cursor_to, raw_cursor_to)
2114 (clear_to_end, clear_frame, clear_end_of_line)
2115 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
2116 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
2117 (syms_of_term): Move their initialization to terminal.c.
2118 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
2119 (Ftty_display_color_cells)
2120 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
2121 (clear_tty_hooks, set_tty_hooks)
2122 (init_tty, maybe_fatal): New functions.
2123 (Ftty_type): Return nil if terminal is not on a tty instead of
2124 throwing an error. Doc update.
2125 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
2126 Doc update. Initialize new subrs and variables.
2127 (delete_tty): Use terminal->deleted.
2128 (tty_set_terminal_modes): Rename from set_terminal_modes.
2129 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
2130 (set_scroll_region): Rename to `tty_set_scroll_region'.
2131 (turn_on_insert): Rename to `tty_turn_on_insert'.
2132 (turn_off_insert): Rename to `tty_turn_off_insert'.
2133 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
2134 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
2135 (toggle_highligh): Rename to `tty_toggle_highlight'.
2136 (background_highlight): Rename to `tty_background_highlight'.
2137 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
2138 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
2139 (tty_set_scroll_region, tty_background_highlight)
2140 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
2141 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
2142 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
2143 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
2144 Add static modifier.
2145 (tty_reset_terminal_modes, tty_set_terminal_window)
2146 (tty_set_scroll_region, tty_background_highlight)
2147 (tty_highlight_if_desired, tty_cursor_to)
2148 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
2149 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
2150 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
2151 renames.
2152
2153 2007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2154
2155 * keyboard.c: Qrtl is new.
2156 (parse_tool_bar_item): Handle :rtl keyword.
2157 (syms_of_keyboard): Intern :rtl keyword.
2158
2159 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
2160
2161 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
2162 so no Lisp code is executed.
2163 (file_for_image, find_rtl_image): New functions.
2164 (xg_get_image_for_pixmap): Use file_for_image
2165 (update_frame_tool_bar): If direction is RTL, use RTL image if
2166 defined. Use Gtk stock images if defined.
2167
2168 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2169
2170 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
2171 for nonexistent or zero-width glyph in composition glyph.
2172
2173 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
2174
2175 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
2176
2177 * xdisp.c (Finvisible_p): New function.
2178 (syms_of_xdisp): defsubr it.
2179
2180 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
2181
2182 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
2183 Doc fixes.
2184
2185 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2186
2187 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
2188
2189 2007-08-24 Martin Rudalics <rudalics@gmx.at>
2190
2191 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
2192 whether decoding has modified buffer contents.
2193
2194 2007-08-24 Jason Rumney <jasonr@gnu.org>
2195
2196 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
2197 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
2198 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
2199 (init_svg_functions) [HAVE_NTGUI]: New function.
2200 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
2201 (svg_load_image): Use them.
2202 (svg_load_image) [HAVE_NTGUI]: Implement background.
2203
2204 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2205
2206 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
2207 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
2208 (LIBX): Remove @RSVG_LIBS@.
2209 (LIBES): Add $(RSVG_LIBS).
2210
2211 * image.c (svg_load_image): Blend with specified background if exists.
2212 Use IMAGE_BACKGROUND. Add Mac OS Support.
2213
2214 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
2215 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
2216 Remove macros.
2217 [MAC_OSX] (socket_callback): Do nothing.
2218 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
2219 ReceiveNextEvent.
2220 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
2221 socket_callback.
2222 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
2223
2224 2007-08-22 Glenn Morris <rgm@gnu.org>
2225
2226 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2227
2228 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
2229
2230 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
2231
2232 * image.c: Add support for SVG images. Some additional comments
2233 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
2234 (svg_image_p): New function to test for SVG image.
2235 (svg_load): New function to load SVG image.
2236 (svg_load_image): New function, helper for svg_load.
2237 (Qsvg): New Lisp_object.
2238 (svg_keyword_index): New enum.
2239 (svg_format): New static `image_keyword' struct.
2240 (svg_type): New static `image_type' struct.
2241 (librsvg/rsvg.h): Include it.
2242
2243 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
2244
2245 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
2246
2247 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2248
2249 * lread.c (Qold_style_backquotes): New var.
2250 (syms_of_lread): Init and staticpro it.
2251 (load_warn_old_style_backquotes): New fun.
2252 (Fload): Use them to warn about old style backquotes.
2253 (end_of_file_error, Fload): Remove unused vars.
2254
2255 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
2256
2257 * lread.c (Vold_style_backquotes): New var.
2258 (syms_of_lread): Init and export it to Elisp.
2259 (read1): Set it when we find an old-style (back)quote.
2260
2261 2007-08-22 Jason Rumney <jasonr@gnu.org>
2262
2263 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
2264
2265 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
2266
2267 * puresize.h (BASE_PURESIZE): Increase to 1140000.
2268
2269 2007-08-19 Richard Stallman <rms@gnu.org>
2270
2271 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
2272
2273 2007-08-19 Andreas Schwab <schwab@suse.de>
2274
2275 * alloc.c (pure): Round PURESIZE up.
2276
2277 2007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2278
2279 * xterm.c (handle_one_xevent): Remove check that mouse click is in
2280 active frame.
2281
2282 2007-08-16 Richard Stallman <rms@gnu.org>
2283
2284 * eval.c (Fcommandp): Add parens to clarify.
2285
2286 * minibuf.c (Fall_completions): Use enum for type of table.
2287
2288 * emacs.c (USAGE2): Improve text.
2289
2290 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
2291
2292 * term.c (tty_default_color_capabilities): Declare static
2293 variables in file scope, to avoid HPUX compiler problem.
2294
2295 2007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2296
2297 * gtkutil.c (update_frame_tool_bar): Use -1 as index
2298 to gtk_toolbar_insert.
2299
2300 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
2303
2304 * insdel.c (reset_var_on_error): New fun.
2305 (signal_before_change, signal_after_change):
2306 Use it to reset (after|before)-change-functions to nil in case of error.
2307 Bind inhibit-modification-hooks to t.
2308 Don't bind (after|before)-change-functions to nil while they run.
2309
2310 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2311
2312 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
2313 filling pixmap with stippled background.
2314
2315 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2316
2317 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
2318 Don't use invisible frame as parent window for repositioning.
2319
2320 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
2321
2322 * print.c (new_backquote_output): Rename from old_backquote_output.
2323 (print): Inverse its logic (according to its name) so as to match the
2324 behavior of new_backquote_flag in lread.c.
2325
2326 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2327
2328 * gmalloc.c (posix_memalign): New function.
2329
2330 * macterm.c (frame_highlight, frame_unhighlight): Don't call
2331 ActivateControl/DeactivateControl here.
2332 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
2333 frame-notice-user-settings is non-nil.
2334 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
2335 for kEventParamFMFontStyle.
2336 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
2337 mac_pass_command_to_system and mac_pass_control_to_system here.
2338 (XTread_socket): Call ActivateControl/DeactivateControl here.
2339 (XTread_socket) [TARGET_API_MAC_CARBON]:
2340 Check mac_pass_command_to_system and mac_pass_control_to_system here.
2341 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
2342 for window repositioning.
2343
2344 2007-08-08 Glenn Morris <rgm@gnu.org>
2345
2346 * Replace `iff' in doc-strings and comments.
2347
2348 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
2351
2352 2007-08-07 Martin Rudalics <rudalics@gmx.at>
2353
2354 * fileio.c (Finsert_file_contents): Run format-decode and
2355 after_insert_file_functions on entire buffer when REPLACE is
2356 non-nil and inhibit modification_hooks and point_motion_hooks.
2357 For consistency, run after_insert_file_functions iff something
2358 got inserted. Move signal_after_change and update_compositions
2359 after code running after_insert_file_functions. Make sure that
2360 undo_list doesn't record intermediate steps of the decoding process.
2361
2362 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2363
2364 * emacs.c (main)
2365 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
2366 Call malloc_enable_thread on interactive startup.
2367
2368 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
2369 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
2370 [USE_PTHREAD]: Conditionalize with it.
2371 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
2372 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
2373 New functions.
2374
2375 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
2376
2377 * xdisp.c (redisplay_window): When restoring original buffer
2378 position, make sure it is still valid.
2379
2380 * image.c (png_load): Ignore png-supplied background color.
2381
2382 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2383
2384 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
2385 Use kCFAbsoluteTimeIntervalSince1970.
2386
2387 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
2388 New variable.
2389 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
2390 event loop should be quit.
2391 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
2392 Quit dialog event loop if quit_dialog_event_loop is set.
2393
2394 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
2395 (Selection): New typedef. Use instead of ScrapRef.
2396 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
2397 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
2398 (mac_clear_selection): Rename from clear_scrap.
2399 (get_flavor_type_from_symbol): New argument SEL and subsume function of
2400 scrap_has_target_type. All uses changed.
2401 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2402 (mac_selection_has_target_p): New functions.
2403 (mac_put_selection_value): Rename from put_scrap_string.
2404 (mac_get_selection_value): Rename from get_scrap_string.
2405 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
2406 (put_scrap_private_timestamp, scrap_has_target_type)
2407 (get_scrap_private_timestamp): Remove functions.
2408 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
2409 (x_own_selection, x_get_local_selection):
2410 Use mac_valid_selection_value_p.
2411 (x_own_selection): Don't use put_scrap_private_timestamp.
2412 Record OWNERSHIP-INFO into Vselection_alist instead.
2413 (x_get_local_selection): Don't check type if request is local.
2414 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
2415 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
2416
2417 2007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2418
2419 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
2420 add comment explaining why.
2421
2422 2007-08-03 Richard Stallman <rms@gnu.org>
2423
2424 * fileio.c (Fvisited_file_modtime): Use make_time.
2425
2426 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
2427
2428 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
2429 build.
2430
2431 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
2432
2433 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
2434
2435 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
2436
2437 * puresize.h (BASE_PURESIZE): Increase to 1130000.
2438
2439 2007-07-30 Richard Stallman <rms@gnu.org>
2440
2441 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
2442
2443 2007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2444
2445 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
2446
2447 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
2448
2449 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
2450 remote default-directory.
2451
2452 * buffer.c (mode-line-format): Update doc string.
2453
2454 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2455
2456 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
2457 scroll bar gap.
2458 (x_scroll_bar_create): Set bar->fringe_extended_p.
2459 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
2460 on frame edge. Check fringe background extension. Don't clear
2461 extended fringe background area.
2462
2463 * w32term.h (struct scroll_bar): New member fringe_extended_p.
2464 (w32_fill_area): Enclose multiple statements with do ... while (0).
2465
2466 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
2467 Extend fringe background to scroll bar gap.
2468 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
2469 Set bar->fringe_extended_p.
2470 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2471 Put leftmost/rightmost scroll bars on frame edge. Check fringe
2472 background extension. Don't clear extended fringe background area.
2473
2474 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2475 New member fringe_extended_p.
2476
2477 2007-07-25 Glenn Morris <rgm@gnu.org>
2478
2479 * Relicense all FSF files to GPLv3 or later.
2480
2481 * COPYING: Switch to GPLv3.
2482
2483 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
2484
2485 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
2486
2487 * data.c (Finteractive_form): Check for the presence of an
2488 `interactive-form' symbol property more thoroughly.
2489
2490 * data.c (Finteractive_form): Use an `interactive-form' property if
2491 present, analogous to the function-documentation property.
2492
2493 2007-07-24 Jason Rumney <jasonr@gnu.org>
2494
2495 * w32fns.c (x_real_positions): Get real position from OS instead of
2496 calculating it.
2497
2498 2007-07-23 Jason Rumney <jasonr@gnu.org>
2499
2500 * filelock.c (current_lock_owner): Allow for @ sign in username.
2501
2502 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
2503
2504 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
2505 remote default-directory.
2506
2507 * buffer.c (mode-line-format): Describe above case in doc string.
2508
2509 2007-07-20 Eli Zaretskii <eliz@gnu.org>
2510
2511 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
2512 Define if not defined.
2513
2514 2007-07-18 Jason Rumney <jasonr@gnu.org>
2515
2516 * w32proc.c (w32_executable_type): Handle 64 bit executables.
2517
2518 2007-07-18 Richard Stallman <rms@gnu.org>
2519
2520 * data.c (Fsetq_default): Doc fix.
2521
2522 * eval.c (Fsetq): Doc fix.
2523
2524 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
2525
2526 * coding.c (Ffind_operation_coding_system):
2527 * eval.c (For, Fand): Doc fixes.
2528 Reported by Johan Bockg\e,Ae\e(Brd.
2529
2530 2007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2531
2532 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
2533
2534 * xterm.h: Declare x_ewmh_activate_frame.
2535
2536 * xterm.c (x_ewmh_activate_frame): New function.
2537 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
2538
2539 2007-07-17 Martin Rudalics <rudalics@gmx.at>
2540
2541 * window.c (Fdisplay_buffer): If largest or LRU window is the
2542 only window, split it even if it is not eligible for splitting.
2543 This restores the original behavior broken by the 2007-07-15
2544 change.
2545
2546 2007-07-17 Glenn Morris <rgm@gnu.org>
2547
2548 * abbrev.c (abbrev_check_chars): New function.
2549 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2550 Call abbrev_check_chars to check abbrev characters are word
2551 constituents. Doc fix.
2552
2553 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2554
2555 * process.c (Fstart_process, Fmake_network_process)
2556 (read_process_output): Fix up last changes.
2557
2558 2007-07-16 Eli Zaretskii <eliz@gnu.org>
2559
2560 * makefile.w32-in (clean): Don't delete *~.
2561
2562 2007-07-16 Andreas Schwab <schwab@suse.de>
2563
2564 * window.c (Fdisplay_buffer): Use NILP.
2565 (Fset_window_scroll_bars): Likewise.
2566
2567 2007-07-15 Martin Rudalics <rudalics@gmx.at>
2568
2569 * window.c (window_min_size_2): New function.
2570 (window_min_size_1, size_window, Fdisplay_buffer)
2571 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
2572 windows without mode- or header-lines when window-min-height is
2573 too small.
2574 (size_window): Reset nodelete_p after testing it, following an
2575 earlier note by Kim F. Storm.
2576 (display_buffer): Do not set split_height_threshold to twice the
2577 value of window_min_height to avoid changing the value of a
2578 customizable variable. Rather explicitly check whether the
2579 height of the window that shall be splitted is at least as large
2580 as split_height_threshold.
2581 (Fwindow_full_width_p): New defun.
2582 (syms_of_window): Defsubr it.
2583
2584 * window.h: Add EXFUN for Fwindow_full_width_p.
2585
2586 2007-07-14 Jason Rumney <jasonr@gnu.org>
2587
2588 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
2589
2590 2007-07-14 Richard Stallman <rms@gnu.org>
2591
2592 * eval.c (maybe_call_debugger): New function.
2593 (find_handler_clause): Use maybe_call_debugger.
2594 Call it when the handler says `debug'.
2595 Eliminate DEBUGGER_VALUE_PTR.
2596 (Fsignal): Eliminate debugger_value.
2597 (Qdebug): New variable.
2598 (syms_of_eval): Initialize it.
2599
2600 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
2601
2602 * eval.c (Fprogn):
2603 * keyboard.c (Ftrack_mouse):
2604 * print.c (Fwith_output_to_temp_buffer):
2605 * window.c (Fsave_window_excursion): Doc fix.
2606
2607 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2608
2609 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
2610
2611 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
2612
2613 * process.h (struct Lisp_Process): Turn slots infd, outfd,
2614 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
2615 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
2616 read_output_delay, and read_output_skip from Lisp_Objects to ints.
2617 Remove unused encoding_carryover.
2618 * process.c: Adjust all functions accordingly.
2619
2620 2007-07-12 Richard Stallman <rms@gnu.org>
2621
2622 * term.c: Include unistd.h only if HAVE_UNISTD_H.
2623
2624 2007-07-11 Jason Rumney <jasonr@gnu.org>
2625
2626 * makefile.w32-in (LIBS): Include OLE32.
2627
2628 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
2629 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
2630
2631 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2632
2633 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
2634 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
2635 from a Lisp_Object into a bare pointer.
2636 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
2637 Adjust the code correspondingly.
2638
2639 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
2640
2641 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
2642 (term_show_mouse_face): Remove unused var `j'.
2643 (handle_one_term_event): Remove unused vars `i' and `j'.
2644 Don't cast return value of ttyname since it's not necessary.
2645
2646 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
2647
2648 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
2649 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
2650
2651 * fns.c (map_char_table): Use an array of int for `indices' rather than
2652 an array of Lisp_Objects (which are only ever integers anyway).
2653 (Fmap_char_table): Update caller.
2654 * lisp.h: Update prototype.
2655 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
2656 * fontset.c (Ffontset_info):
2657 * casetab.c (set_case_table): Update callers.
2658
2659 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
2660
2661 * keymap.c (struct accessible_keymaps_data)
2662 (struct where_is_internal_data): New structures.
2663 (accessible_keymaps_1, where_is_internal_1): Use them to change
2664 interface to adhere to the one used by map_keymap.
2665 (Faccessible_keymaps, where_is_internal): Use map_keymap.
2666 (accessible_keymaps_char_table, where_is_internal_2): Remove.
2667
2668 * keymap.h (map_keymap_function_t): More informative prototype.
2669
2670 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
2671
2672 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
2673 (looking_at_1): Don't change search_regs and last_thing_searched
2674 if `inhibit-changing-match-data' is non-nil.
2675 (string_match_1, search_buffer, set_search_regs): Likewise.
2676 (syms_of_search): Add Lisp level definition for
2677 `inhibit-changing-match-data' and set it to nil.
2678 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
2679 start and end of the match, instead of using values in search_regs.
2680
2681 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
2682
2683 * minibuf.c (Fcompleting_read): New value `confirm-only'
2684 for `require-match'.
2685
2686 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
2687
2688 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
2689 part of the 2007-06-27 change to syms_of_fileio.
2690
2691 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2692
2693 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2694 Check WINDOWP before using XWINDOW. Consolidate return statements.
2695
2696 2007-06-27 Richard Stallman <rms@gnu.org>
2697
2698 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
2699
2700 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
2701
2702 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
2703
2704 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2705
2706 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
2707 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
2708 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
2709 (_free_internal, memalign): Use them.
2710 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
2711 Initialize to PTHREAD_MUTEX_INITIALIZER.
2712 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
2713 (morecore_nolock): Rename from morecore. All uses changed.
2714 Use only nolock versions of internal allocation functions.
2715 (_malloc_internal_nolock, _realloc_internal_nolock)
2716 (_free_internal_nolock): New functions created from
2717 _malloc_internal, _realloc_internal, and _free_internal.
2718 (_malloc_internal, _realloc_internal, _free_internal): Use them.
2719 Copy hook value to automatic variable before its use.
2720 (memalign): Copy hook value to automatic variable before its use.
2721
2722 2007-06-26 Kenichi Handa <handa@m17n.org>
2723
2724 * coding.c (Ffind_operation_coding_system): Docstring improved.
2725 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
2726
2727 2007-06-25 David Kastrup <dak@gnu.org>
2728
2729 * keymap.c (Fcurrent_active_maps): Add `position' argument.
2730 (Fwhere_is_internal): Adjust call to `current-active-maps' to
2731 cater for additional parameter.
2732
2733 * keymap.h: Adjust number of parameters to `current-active-maps'.
2734
2735 * doc.c (Fsubstitute_command_keys): Adjust call of
2736 `current-active-maps'.
2737
2738 2007-06-25 David Kastrup <dak@gnu.org>
2739
2740 * callint.c (Fcall_interactively): Make the parsing of interactive
2741 specs somewhat more readable.
2742
2743 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2744
2745 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
2746 to scroll bar gap also when bitmap fills fringe. Draw only foreground
2747 if extended background has already been filled.
2748
2749 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2750
2751 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
2752 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
2753
2754 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
2755 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
2756 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
2757 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
2758 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
2759 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
2760 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
2761 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
2762 Run timers during dialog popup.
2763 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
2764
2765 2007-06-21 Jason Rumney <jasonr@gnu.org>
2766
2767 * image.c (convert_mono_to_color_image): Swap fore and background.
2768
2769 2007-06-20 Jason Rumney <jasonr@gnu.org>
2770
2771 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
2772 (w32_free_bdf_font): Unmap memory not handle.
2773
2774 2007-06-20 Sam Steingold <sds@gnu.org>
2775
2776 * gmalloc.c (__morecore): Fix the declaration to comply with the
2777 definition.
2778
2779 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
2780
2781 * w32term.c (w32_delete_display): Remove leftover declaration.
2782 (w32_define_cursor, w32_initialize): Make static.
2783
2784 * w32.c (_wsa_errlist): Fix typo in error message.
2785 (init_environment): Ignore any environment variable from the
2786 registry having a null value.
2787
2788 2007-06-20 Glenn Morris <rgm@gnu.org>
2789
2790 * Makefile.in (LIBGIF): Default to -lgif.
2791
2792 2007-06-17 Jason Rumney <jasonr@gnu.org>
2793
2794 * w32menu.c (add_menu_item): Don't use multibyte string functions on
2795 unicode strings.
2796
2797 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
2798
2799 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
2800 Fix typo in docstring.
2801
2802 2007-06-16 Eli Zaretskii <eliz@gnu.org>
2803
2804 * w32menu.c (add_menu_item): Escape `&' characters in menu items
2805 and their keybindings.
2806
2807 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
2808
2809 * composite.c (update_compositions): Fix last fix.
2810
2811 2007-06-14 Jason Rumney <jasonr@gnu.org>
2812
2813 * w32.c (get_process_times_fn): New function pointer.
2814 (globals_of_w32): Intialize it if present in kernel32.dll.
2815 (w32_get_internal_run_time): New function.
2816
2817 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
2818
2819 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
2820
2821 * composite.c (update_compositions): Check the validness of
2822 compositions.
2823
2824 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2825
2826 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
2827 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
2828
2829 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
2830 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
2831
2832 * macgui.h (USE_MAC_TOOLBAR): New define.
2833
2834 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2835 Return immediately unless popup is activated.
2836
2837 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
2838 background to scroll bar gap.
2839 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
2840 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
2841 scroll bars on frame edge. Check fringe background extension.
2842 Don't clear extended fringe background area.
2843 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
2844 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
2845 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
2846 [USE_MAC_TOOLBAR]: New macros.
2847 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
2848 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
2849 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
2850 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
2851 [USE_MAC_TOOLBAR]: New functions.
2852 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
2853 manually if previous repositioning has failed.
2854 (mac_handle_keyboard_event): Use precomputed event kind.
2855 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
2856 as tool bar item click. Handle mouse movement over tool bar items.
2857
2858 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
2859 toolbar_win_gravity.
2860 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
2861 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
2862 Add externs.
2863
2864 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
2865 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
2866
2867 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * image.c (search_image_cache): Remove unused variable.
2870
2871 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
2872
2873 * xfns.c, xmenu.c: Link to xaw3d if available.
2874
2875 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2876
2877 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
2878 frame_foreground and frame_background.
2879
2880 * image.c (lookup_image): Save frame foreground and background colors.
2881 (search_image_cache): Check if saved and current frame colors match.
2882
2883 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2884
2885 * regex.c (regex_compile): Remove the `regnum' counter.
2886 Use bufp->re_nsub instead. Add support for \(?N:RE\).
2887
2888 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2889
2890 * term.c: Include intervals.h to declare Fget_text_property.
2891
2892 2007-06-10 Jason Rumney <jasonr@gnu.org>
2893
2894 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2895
2896 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
2897
2898 * callint.c (Fcall_interactively):
2899 * editfns.c (Fdelete_and_extract_region):
2900 * fileio.c (Fread_file_name):
2901 * fns.c (Fmapconcat):
2902 * keyboard.c (cmd_error_internal):
2903 * keymap.c (Fkey_description):
2904 * lread.c (openp):
2905 * minibuf.c (read_minibuf):
2906 * search.c (wordify):
2907 * sunfns.c (sel_read):
2908 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
2909 * xfns.c (x_default_scroll_bar_color_parameter):
2910 * xmenu.c (menu_help_callback):
2911 * xselect.c (Fx_get_atom_name):
2912 * xterm.c (x_term_init): Use empty_unibyte_string.
2913
2914 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
2915
2916 * alloc.c (init_strings): Initialize canonical empty strings.
2917 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
2918 canonical empty string when the requested size is 0.
2919
2920 * emacs.c (empty_unibyte_string): Rename from empty_string.
2921 (empty_multibyte_string): New canonical empty string.
2922 (syms_of_emacs): Don't initialize empty_string.
2923
2924 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
2925 string, if appropriate.
2926 (empty_unibyte_string, empty_multibyte_string): New externs.
2927 (empty_string): Remove extern.
2928
2929 * lread.c (syms_of_lread): Use empty_unibyte_string.
2930
2931 2007-06-07 Jason Rumney <jasonr@gnu.org>
2932
2933 * s/ms-w32.h: Don't define HAVE_TZNAME.
2934
2935 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
2936
2937 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2938
2939 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
2940
2941 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
2942 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
2943
2944 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2945 Don't call next handler.
2946 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
2947 Remove argument. Install handler to application.
2948 (set_frame_menubar): Don't change deep_p.
2949 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
2950 FRAME_OUTER_TO_INNER_DIFF_Y.
2951 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2952 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2953 [HAVE_DIALOGS]: New macros.
2954 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
2955 Use them.
2956 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
2957
2958 * macselect.c [MAC_OSX] (install_service_handler): Rename from
2959 init_service_handler. All callers changed. Return OSStatus value.
2960
2961 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
2962 All callers changed so as not to call SetPortWindowPort.
2963 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2964 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
2965 mac_draw_string_common.
2966 (mac_draw_image_string_qd): Likewise.
2967 (mac_draw_string_common): Use them. Add INLINE.
2968 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
2969 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
2970 GetGlobalMouse.
2971 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
2972 and FRAME_OUTER_TO_INNER_DIFF_Y.
2973 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
2974 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
2975 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
2976 repositioning window to mac_handle_window_event.
2977 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
2978 saving window location to mac_handle_window_event
2979 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
2980 (install_menu_target_item_handler): Remove argument in extern.
2981 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
2982 Also accept command events.
2983 (do_keystroke): New function created from XTread_socket.
2984 (init_command_handler): Remove functions.
2985 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
2986 and save window location by kEventWindowShowing and kEventWindowHiding
2987 handlers here. Don't call next handler for window state change and
2988 focus events.
2989 (mac_handle_application_event, mac_handle_keyboard_event)
2990 [TARGET_API_MAC_CARBON]: New functions.
2991 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
2992 kEventWindowShowing and kEventWindowHiding events. Move installation
2993 of mouse, font, text input and menu target item handlers to
2994 install_application_handler.
2995 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
2996 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2997 New function.
2998 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2999 Register it.
3000 (XTread_socket) [TARGET_API_MAC_CARBON]:
3001 Consolidate SendEventToEventTarget calls.
3002 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
3003 Move application activation handler to mac_handle_application_event.
3004 Move keyboard handler to mac_handle_keyboard_event.
3005 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
3006 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
3007 init_command_handler. Call install_application_handler.
3008
3009 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
3010 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
3011
3012 2007-06-07 Glenn Morris <rgm@gnu.org>
3013
3014 * emacs.c (main): Use `emacs-copyright' in --version output.
3015
3016 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
3017
3018 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
3019
3020 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3021
3022 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
3023
3024 * macgui.h: Replace WindowPtr with WindowRef.
3025
3026 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3027 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
3028 Replace ControlHandle with ControlRef.
3029 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
3030
3031 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
3032 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
3033 Replace ControlHandle with ControlRef.
3034 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
3035 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
3036
3037 * macterm.h (struct scroll_bar): Rename member control_handle_low
3038 and control_handle_high to control_ref_low and control_ref_high.
3039 All uses changed.
3040 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
3041 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
3042 respectively. All uses changed.
3043 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
3044 (install_window_handler, remove_window_handler): Replace WindowPtr
3045 with WindowRef in externs.
3046
3047 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
3048
3049 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
3050
3051 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
3052
3053 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
3054
3055 * frame.c (Fmouse_position, Fmouse_pixel_position):
3056 Condition on HAVE_GPM too.
3057
3058 * term.c (term_mouse_highlight): Remove unused variables.
3059 (Fterm_open_connection): Set gpm_zerobased to 1.
3060 (term_mouse_movement, term_mouse_click, handle_one_term_event):
3061 Use zero based co-ordinates.
3062 (handle_one_term_event): Report a drag as mouse movement too.
3063
3064 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
3065
3066 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * image.c (search_image_cache): New function. Require background
3069 color match if background color is unspecified in the image spec.
3070 (uncache_image, lookup_image): Use it.
3071
3072 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
3073
3074 * window.c (Fshrink_window): Reflow docstring.
3075
3076 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * Version 22.1 released.
3079
3080 2007-06-01 Richard Stallman <rms@gnu.org>
3081
3082 * xfns.c (x_encode_text): Add GCPRO.
3083
3084 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3085
3086 * xfns.c (x_set_name_internal): Save encoded name before
3087 x_encode_text in case string data is relocated.
3088
3089 2007-05-31 Richard Stallman <rms@gnu.org>
3090
3091 * buffer.c (syms_of_buffer): Doc fix.
3092
3093 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
3094
3095 * sysdep.c (init_sys_modes): Add rather than replace with
3096 O_NONBLOCK.
3097
3098 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
3099 term_mouse_moveto.
3100
3101 * termhooks.h (term_mouse_moveto): New extern.
3102
3103 * term.c (mouse_face_window): Rename...
3104 (Qmouse_face_window): ...to this.
3105 (term_show_mouse_face, term_clear_mouse_face)
3106 (term_mouse_highlight): Use Qmouse_face_window.
3107 (term_mouse_moveto): New function.
3108 (term_mouse_position): Make it work.
3109 (syms_of_term): Uncomment assignment to mouse_position_hook.
3110 Staticpro Qmouse_face_window.
3111
3112 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3113
3114 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
3115 around current_column call.
3116
3117 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
3118
3119 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
3120 * xdisp.c (next_element_from_buffer):
3121 * window.c (delete_window):
3122 * term.c (term_mouse_highlight):
3123 * msdos.c (getdefdir):
3124 * macterm.c (mac_create_bitmap_from_bitmap_data)
3125 (init_font_name_table):
3126 * fns.c (Fsxhash):
3127 * data.c (Fmake_local_variable):
3128 * ccl.c (ccl_driver): Likewise.
3129
3130 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3131
3132 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
3133 Call mac_wakeup_from_rne on window size change.
3134
3135 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
3136
3137 * image.c (uncache_image): Fix typo.
3138
3139 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
3140
3141 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
3142
3143 2007-05-22 Richard Stallman <rms@gnu.org>
3144
3145 * xterm.c (x_connection_closed): Remove NO_RETURN.
3146
3147 2007-05-22 Martin Rudalics <rudalics@gmx.at>
3148
3149 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
3150
3151 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
3152
3153 * image.c (uncache_image): New function.
3154 (Fimage_refresh): New function.
3155
3156 2007-05-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3157
3158 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
3159
3160 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
3161
3162 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
3163 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
3164
3165 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
3166
3167 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
3168 conditional on [HAVE_GPM_H].
3169
3170 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3171
3172 * syntax.c (skip_chars): Update syntax-table only after we checked that
3173 the new location is valid.
3174
3175 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3176
3177 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
3178 mac_get_window_bounds.
3179
3180 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
3181
3182 * Makefile.in (LIBGPM): Allow it to be set from configure.
3183 If set then link Emacs with it.
3184
3185 * config.in: Regenerate.
3186
3187 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
3188 New externs.
3189
3190 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
3191 Include gpm.h.
3192 (handle_one_term_event, term_gpm): New externs.
3193
3194 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
3195 and allow it to be interrupted by SIGIO.
3196
3197 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
3198 (wait_reading_process_output): Wait on gpm_fd too.
3199 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
3200 (add_gpm_wait_descriptor_called_flag): New variable.
3201 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
3202
3203 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
3204 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
3205 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
3206 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
3207 (make_lispy_event): Add case GPM_CLICK_EVENT.
3208 (read_avail_input): Handle mouse input.
3209
3210 * term.c (write_glyphs_with_face): New function.
3211 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
3212 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
3213 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
3214 (mouse_face_face_id, term_gpm, pos_x, pos_y)
3215 (last_mouse_x, last_mouse_y): New variables.
3216 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
3217 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
3218 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
3219 (Fterm_close_connection): New functions.
3220 (term_init): Initialise mouse_face_window.
3221
3222 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
3223
3224 * xdisp.c (redisplay_window): If first window line is a
3225 continuation line, recompute the new window start instead of
3226 recentering.
3227
3228 2007-05-18 Glenn Morris <rgm@gnu.org>
3229
3230 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
3231 Suggested by Alfred M. Szmidt <ams@gnu.org>.
3232
3233 2007-05-17 Glenn Morris <rgm@gnu.org>
3234
3235 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
3236
3237 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3238
3239 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
3240 dead key repeat and up events.
3241
3242 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
3243
3244 * image.c (pbm_load): Check image size for monochrome pbm.
3245
3246 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
3247
3248 * xterm.c (XTread_socket): Revert last change.
3249
3250 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
3251
3252 * image.c (pbm_load): Correctly check image size for greyscale pbm.
3253
3254 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
3255
3256 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3257
3258 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
3259 mixup (YAILOM).
3260
3261 2007-05-07 Andreas Schwab <schwab@suse.de>
3262
3263 * keymap.c (Flookup_key): Fix typo in last change.
3264
3265 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3266
3267 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
3268 mapping for unibyte strings.
3269
3270 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3271
3272 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
3273 (Fx_popup_dialog) [MAC_OSX]: Likewise.
3274
3275 2007-04-29 Richard Stallman <rms@gnu.org>
3276
3277 * insdel.c (replace_range): For undo, record insertion first.
3278
3279 2007-04-29 Andreas Schwab <schwab@suse.de>
3280
3281 * lisp.h (VECSIZE): Use OFFSETOF.
3282
3283 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3284
3285 * xdisp.c (try_window_reusing_current_matrix): Fix number of
3286 disabled lines.
3287
3288 2007-04-28 Richard Stallman <rms@gnu.org>
3289
3290 * lread.c (read_escape): In a string, \s is always space.
3291
3292 2007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3293
3294 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
3295
3296 * gtkutil.c (xg_update_menubar, create_menus): Create empty
3297 submenu for menu bar items.
3298
3299 See ChangeLog.10 for earlier changes.
3300
3301 ;; Local Variables:
3302 ;; coding: iso-2022-7bit
3303 ;; add-log-time-zone-rule: t
3304 ;; End:
3305
3306 Copyright (C) 2007 Free Software Foundation, Inc.
3307
3308 This file is part of GNU Emacs.
3309
3310 GNU Emacs is free software; you can redistribute it and/or modify
3311 it under the terms of the GNU General Public License as published by
3312 the Free Software Foundation; either version 3, or (at your option)
3313 any later version.
3314
3315 GNU Emacs is distributed in the hope that it will be useful,
3316 but WITHOUT ANY WARRANTY; without even the implied warranty of
3317 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3318 GNU General Public License for more details.
3319
3320 You should have received a copy of the GNU General Public License
3321 along with GNU Emacs; see the file COPYING. If not, write to the
3322 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
3323 Boston, MA 02110-1301, USA.
3324
3325 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40