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