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