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