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