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