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