(frame-inherited-parameters): Remove unused `environment'
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c7a4b95b
SM
12007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
26f9c7b7
SM
3 * frame.c (Qenvironment): Remove.
4 (syms_of_frame) <Qenvironment>: Don't initialize.
5 (Fdelete_frame): Don't treat the `environment' param specially.
6 * frame.h (Qenvironment): Don't declare.
7 * callproc.c (set_initial_environment): Don't set unused frame param.
8
c7a4b95b
SM
9 * frame.c (Fframe_with_environment): Remove.
10 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 11
c7a4b95b
SM
12 * lisp.h (Fframe_with_environment): Don't declare.
13
c86f7377
JB
142007-10-10 Juanma Barranquero <lekktu@gmail.com>
15
16 * indent.c (indent_tabs_mode, last_known_column)
17 (last_known_column_modified): Make static.
18 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19
d1b3a122
KY
202007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21
22 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23
1af74d06 242007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 25
1af74d06
MB
26 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
27 when there's an unread command event.
e0fead5d 28
c7a4b95b 29 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
30 window autoselection act appropriately when leaving selected frame.
31 (syms_of_frame): Initialize focus_follows_mouse.
32 * frame.h (focus_follows_mouse): Extern it.
33 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 34 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
35 * msdos.c (dos_rawgetc): Likewise.
36 * w32term.c (w32_read_socket): Likewise.
37 * xterm.c (handle_one_xevent): Likewise.
38 * xdisp.c (syms_of_xdisp): In doc-string of
39 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 40
1af74d06 412007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 42
1af74d06
MB
43 * macterm.c (mac_load_query_font): Fix missing return value.
44 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
45 Add BLOCK_INPUT.
c186cdb3 46
1af74d06 472007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 48
1af74d06
MB
49 * xdisp.c (get_window_cursor_type): Implement documented behavior
50 for cursor-in-non-selected-windows = t.
c186cdb3 51
1af74d06 522007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 53
1af74d06 54 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 55
1af74d06 562007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 57
1af74d06 58 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 59
1af74d06 60 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 61
1af74d06 622007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 63
c7a4b95b 64 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 65
1af74d06 662007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 67
1af74d06 68 * buffer.c (Foverlays_at): Doc fix.
036e218d 69
1af74d06 702007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 71
1af74d06 72 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 73
1af74d06 742007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 75
1af74d06 76 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 77
1af74d06 78 * frame.h (enum): Remove trailing comma.
90647b07 79
1af74d06 802007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 81
1af74d06 82 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 83
1af74d06 842007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 85
1af74d06 86 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 87
1af74d06
MB
88 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
89 last-repeatable-command.
90 (init_kboard): Initialize Vlast_repeatable_command.
91 (command_loop_1): Set it to real_this_command unless that was
92 bound to an input event.
93 (mark_kboards): Mark it.
9fbc32aa 94
1af74d06 952007-10-08 Richard Stallman <rms@gnu.org>
036e218d 96
1af74d06 97 * eval.c (condition-case): Doc fix.
9fbc32aa 98
1af74d06 992007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 100
1af74d06
MB
101 * xfaces.c (tty_supports_face_attributes_p): Fix code
102 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
103 was copied and not edited.
9fbc32aa 104
beb9f745
SM
1052007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
106
c86f7377 107 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
108 escape sequences.
109 * keyboard.h (struct kboard): Add Vinput_decode_map.
110 Remove Vlocal_key_translation_map.
111 * keyboard.c (read_key_sequence): Add support for input-decode-map.
112 (init_kboard): Init input-decode-map.
113 Replace local-key-translation-map back with key-translation-map.
114 (syms_of_keyboard): Declare input-decode-map.
115 Remove local-key-translation-map. Update docstrings.
116 (mark_kboards): Mark Vinput_decode_map.
117 Don't mark Vlocal_key_translation_map.
118 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
119 Replace local-key-translation-map back with key-translation-map.
120 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
121 Bind in input-decode-map rather than function-key-map.
122
beb9f745
SM
123 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
124 This was made redundant by the previous introduction of XSETPVECTYPE.
125
65342ae3
RS
1262007-10-09 Richard Stallman <rms@gnu.org>
127
beb9f745 128 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
129
1302007-09-29 Richard Stallman <rms@gnu.org>
131
132 * eval.c (internal_condition_case_2, internal_condition_case_1)
133 (internal_condition_case): Reenable abort if x_catching_errors ()
134 to see if that really happens and why.
135
6cff77fd
AS
1362007-10-06 Andreas Schwab <schwab@suse.de>
137
138 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
139
bbe6f2aa
JB
1402007-10-04 Juanma Barranquero <lekktu@gmail.com>
141
142 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
143
a390930c
SM
1442007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
145
146 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
147
d6aa1876
SM
1482007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
149
d0fdb6da
SM
150 * window.h (struct window):
151 * window.c (struct save_window_data, struct saved_window):
152 * termhooks.h (struct terminal):
153 * process.h (struct Lisp_Process):
154 * frame.h (struct frame):
155 * buffer.h (struct buffer):
156 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
157 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
158 The size field of (pseudo)vectors is now unsigned.
159 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
160
878f97ff
SM
161 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
162 Turn `count' into an integer.
d0fdb6da 163
878f97ff
SM
164 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
165 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
166 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
167 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
168 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
169
d2029e5b
SM
170 * alloc.c (allocate_pseudovector): New fun.
171 (ALLOCATE_PSEUDOVECTOR): New macro.
172 (allocate_window, allocate_terminal, allocate_frame)
173 (allocate_process): Use it.
174 (mark_vectorlike): New function.
175 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
176 (mark_terminals): Use it.
177 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
178 (Fmake_byte_code): Use XSETPVECTYPE.
179
180 * frame.c (Fframe_parameters): Minor simplification.
181
182 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
183
184 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
185
186 * buffer.c (Fget_buffer_create, init_buffer_once):
187 * lread.c (defsubr):
188 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
189
190 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
191 defined differently in the m/*.h files.
192 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
193 (XSETPVECTYPE): New macro.
194 (XSETPSEUDOVECTOR): Use it.
195
d6aa1876
SM
196 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
197 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 198
d6aa1876
SM
199 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
200 * lread.c (defvar_per_buffer):
201 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
202
203 * window.c (candidate_window_p): Only consider as visible frames that
204 are on the same terminal.
205
206 * m/ibms390x.h (MARKBIT): Remove unused macro.
207
88852d45
JB
2082007-10-01 Juanma Barranquero <lekktu@gmail.com>
209
210 * lread.c (Fload): Fix typo in docstring.
211
2742fe30
MC
2122007-10-01 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
213
214 * floatfns.c (Fexpt): Manually check for overflows, so that a power
215 of a non-zero value can't yield zero.
216
ed0c79c6
SM
2172007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
218
b870aa61
SM
219 * term.c (term_clear_mouse_face, term_mouse_highlight)
220 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
221
4c37a414
SM
222 * print.c (safe_debug_print): Use XHASH.
223
b9466edb
SM
224 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
225 Lisp elements such as tags.
226 (XHASH): New macro.
227 (EQ): Use it.
228 (SREF, SSET, STRING_COPYIN): Use SDATA.
229 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
230
9c545a55
SM
231 * alloc.c (mark_terminal): Remove left-over declaration.
232 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
233 (allocate_vectorlike): Remove type argument. Adjust callers.
234 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
235 Only handle the one remaining MEM_TYPE_VECTORLIKE.
236
dafc79fa
SM
237 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
238 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
239 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
240 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
241 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
242 Use them.
243
ed0c79c6
SM
244 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
245 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
246 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
247
3c81afd4
DN
2482007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
249
250 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
251 loaded by default.
252
6178ce5e
SM
2532007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
254
4ce5ab77
SM
255 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
256 on this tty.
257 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
258
6178ce5e
SM
259 * term.c (mouse_face_window): Rename from Qmouse_face_window.
260 Update all users.
261 (handle_one_term_event): Use Gpm_DrawPointer.
262 (Fgpm_mouse_start): Rename from Fterm_open_connection.
263 Signal errors instead of returning nil. Always return nil.
264 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
265 Make it a noop if gpm-mouse was not activated.
266 (syms_of_term): Update names.
267
bdf5f8ef
SM
2682007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
269
75a8734b
SM
270 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
271 (init_sys_modes): Check that gpm_tty is the current tty.
272
13559ee0
SM
273 * alloc.c (allocate_terminal): Set the vector size to only count the
274 lisp fields. Initialize those to nil.
275 (mark_object): Don't treat terminals specially.
276 (mark_terminal): Remove.
277 (mark_terminals): Use mark_object instead.
278
ff16b875
SM
279 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
280 the GC to the beginning.
281
83155776
SM
282 * indent.h:
283 * indent.c: Use EMACS_INT for ints coming from Elisp data.
284
bdf5f8ef
SM
285 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
286
ec8705b6
JR
2872007-09-25 Jason Rumney <jasonr@gnu.org>
288
289 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
290
291 * w32console.c (create_w32cons_output): Remove.
292
293 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
294
295 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
296 (reset_sys_modes): Use reset_terminal_modes_hook.
297
7351b242
SM
2982007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
299
300 * eval.c (do_autoload): Don't output any message.
301
16706228
JL
3022007-09-24 Juri Linkov <juri@jurta.org>
303
304 * emacs.c (standard_args): Change priority of "--no-splash"
305 from 40 to 3. Add "--no-desktop" with the same priority.
306
3ae2e3a3
RS
3072007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
308
309 * alloc.c (gc_sweep): Check cons cell mark bits word by word
310 and optimize the case where they are all 1.
311
7a58fb43
GM
3122007-09-23 Johannes Weiner <hannes@saeurebad.de>
313
3ae2e3a3
RS
314 * lisp.h (abs): Define if not defined.
315 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
316 Don't define `abs', since it's defined in lisp.h.
7a58fb43 317
78048085
EZ
3182007-09-22 Eli Zaretskii <eliz@gnu.org>
319
c7a4b95b 320 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
321 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
322 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
323 (init_tty): Use DEV_TTY instead of "/dev/tty".
324 [WINDOWSNT]: No need to protect from NAME arg being null.
325
23d4cba5
DN
3262007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
327
328 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
329 up the tty state.
330
71f44e7a
SM
3312007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
332
333 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
334 (gpm_tty): Change its type.
335 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
336 (gpm_tty): Change its type and initialize it.
337 (Fterm_open_connection): Check the frame is indeed a tty.
338 Use the new gpm_tty.
339 (Fterm_close_connection): Use the new gpm_tty.
340 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
341 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
342
def7fa34
JB
3432007-09-21 Juanma Barranquero <lekktu@gmail.com>
344
345 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
346 underline_color, to draw strike-through.
347
d2bb6598
SM
3482007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
349
273f164c
SM
350 * lisp.h (allocate_terminal): Declare.
351
ca2d5566
SM
352 * window.c (candidate_window_p): Consider frames that are being placed
353 by the user as somewhere between visible and iconified.
354 (window_loop): Prefer windows on the current frame.
355 (Fselect_window): Move the use of select-frame to the beginning so we
356 can just delegate all the work (it'll call us back anyway).
357
6168122d
SM
358 * frame.c (Qdisplay_environment_variable):
359 * frame.h (Qdisplay_environment_variable): Delete.
360
c51842ec
SM
361 * .gdbinit (xbacktrace): Print the arg's address rather than the value
362 of the first arg, since that value may be a union.
363
d2bb6598
SM
364 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
365 parameter rather than Qdisplay_environment_variable. If all else
366 fails, look for DISPLAY in initial-environment.
367
6f022c19
GM
3682007-09-21 Glenn Morris <rgm@gnu.org>
369
370 * Makefile.in (emacstool): Remove target.
f466320b 371 (lisp, shortlisp): Remove termdev.elc.
6f022c19 372
ea1bf8c7
GM
3732007-09-21 Markus Triska <markus.triska@gmx.at>
374
d2bb6598 375 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 376
d30a25b3
SM
3772007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
378
db699fc6
SM
379 * callproc.c (getenv_internal_1): New function.
380 (getenv_internal): Use it.
381 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
382
d2bb6598 383 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
384 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
385 (Fset_terminal_parameter): Work with dead terminals as well.
386 (Fmodify_terminal_parameters): Remove.
387
d30a25b3
SM
388 * terminal.c (get_terminal): Handle terminals.
389 Make sure the terminal returned is live.
390 (create_terminal): Use allocate_terminal.
391 (mark_terminals): Move to alloc.c.
392 (delete_terminal): Use terminal->name as liveness status.
393 NULL out fields after freeing their contents.
394 Don't deallocate the object.
395 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
396 rather than an int.
397 (Fterminal_live_p): Accept non-integer arguments.
398 (Fterminal_list): Return terminal objects rather than an ints.
399
400 * alloc.c (enum mem_type): New member for `terminal' objects.
401 (allocate_terminal): New function.
d2bb6598
SM
402 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
403 Handle terminals.
d30a25b3
SM
404 (mark_terminal): New fun.
405 (mark_terminals): Move from terminal.c.
406
407 * term.c (get_tty_terminal): Don't treat output_initial specially.
408 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
409 (delete_tty): Use terminal->name as liveness status.
410
411 * termhooks.h (struct terminal): Make it into a pseudovector.
412 Remove `deleted' replaced by checking `name's nullness.
413
414 * print.c (print_object): Handle terminals.
415
416 * lisp.h (enum pvec_type): New `terminal' pseudovector.
417 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
418
419 * frame.c (make_terminal_frame):
420 * keyboard.c (tty_read_avail_input):
421 * w32term.c (x_delete_terminal):
422 * xfns.c (Fx_create_frame, x_create_tip_frame):
423 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
424
eba25e7c
GM
4252007-09-20 Glenn Morris <rgm@gnu.org>
426
427 * process.c (Fmake_network_process): Doc fix.
428
2a29c3c1
JR
4292007-09-19 Jason Rumney <jasonr@gnu.org>
430
431 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
432
ba1cbad7
MC
4332007-09-19 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
434
435 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
436 Fix a C warning regarding variable constness.
437
438 * xterm.c (handle_one_xevent): Fix a C warning.
439
334a1195
JR
4402007-09-18 Jason Rumney <jasonr@gnu.org>
441
442 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
443
879ffad9
JD
4442007-09-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
445
446 * gtkutil.c (gdpy_def): New variable.
447 (xg_initialize): Initialize gdpy_def.
448 (xg_display_close): If no other display exists, set gdpy_def to a
449 new connection.
450
45c94881
JD
4512007-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
452
453 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
454 when we have no file name for the icon.
455 (xg_tool_bar_expose_callback): Remove.
456 (xg_create_tool_bar): Don't connect expose signal to
457 xg_tool_bar_expose_callback.
458 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
459
4d580af2
AS
4602007-09-16 Andreas Schwab <schwab@suse.de>
461
462 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
463 values instead of zapping them.
464
aca946f3
GM
4652007-09-14 Glenn Morris <rgm@gnu.org>
466
467 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
468 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
469 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
470 scope and rename to omfib_buffer for clarity.
471 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
472
25c460e5
KH
4732007-09-14 Kenichi Handa <handa@m17n.org>
474
475 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
476
09b69f01
JR
4772007-09-13 Jason Rumney <jasonr@gnu.org>
478
479 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
480
481 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
482
483 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
484 (mac_term_init): Call here instead, passing rif.
485
442218db
GM
4862007-09-13 Glenn Morris <rgm@gnu.org>
487
488 * s/hpux.h: No longer define `static' as nothing.
489
4795c40f
GM
4902007-09-13 Johan Bockg\e,Ae\e(Brd <bojohan@gnu.org>
491
492 * callint.c (Fcall_interactively): Remove unused var `fun'.
493
1971a872
RF
4942007-09-12 Romain Francoise <romain@orebokech.com>
495
496 * window.c (prefer_window_split_horizontally, display_buffer):
497 Revert 2007-09-08 change.
498
2d33f506
GM
4992007-09-12 Glenn Morris <rgm@gnu.org>
500
585474ae 501 * alloca.c: Remove file.
ca7af97a
GM
502 * Makefile.in (alloca): Do not undef.
503 (allocaobj, alloca.o): Remove.
504 (otherobj): Remove allocaobj.
505 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
506 * regex.c (C_ALLOCA): Remove all references and code that was only
507 used when this was defined.
508 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
509 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
510 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
511
2d33f506 512 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
513
514 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
515 (menu_grab_callback): All uses changed.
516
517 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
518 (x_reply_selection_request): All uses changed.
2d33f506 519
18a4a65e
SM
5202007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
521
522 * lread.c (load_warn_old_style_backquotes): Change message to look
523 better when it appears in the middle of byte-compiler messages.
524
47cc8819
DN
5252007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
526
b7ea0894
DN
527 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
528
47cc8819
DN
529 * xterm.c (x_create_terminal): Add comment.
530
531 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
532
5632bd0f
RS
5332007-09-10 Richard Stallman <rms@gnu.org>
534
535 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
536
ccb5c14f
MC
5372007-09-10 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
538
4bca9161
MC
539 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
540 (DEFUN): Document `intspec', use it instead of `prompt'.
541
04724b69
MC
542 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
543
8a6d230a
MC
544 * data.c (Finteractive_form): If the interactive specification starts
545 with a `(', use it as a Lisp form.
546
09fbdf6c
MC
547 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
548 name and file modes.
549
ccb5c14f
MC
550 * callint.c (Fcall_interactively): Comment fixes.
551
023accd6
SM
5522007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
553
554 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
555 and compiled functions.
556
f26b9544
EZ
5572007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
558
559 * window.c (prefer_window_split_horizontally): New variable.
560 (display_buffer): Consider splitting window horizontally depending
561 on prefer_window_split_horizontally.
562
4d395425
EZ
5632007-09-08 Eli Zaretskii <eliz@gnu.org>
564
97ddc760 565 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 566
08c1d235
SM
5672007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
568
179cef48
SM
569 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
570
08c1d235
SM
571 * frame.c (x_set_frame_parameters): Check number is positive before
572 using XFASTINT.
573
574 * window.c (freeze_window_start): Don't presume selected_window holds
575 a window object.
92f94a12 576 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 577
97ddc760 5782007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
579
580 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
581
90ab5c62
SM
5822007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
583
584 * window.c (Vsplit_window_preferred_function): New var.
585 (Fdisplay_buffer): Use it.
586 (syms_of_window): Export, and initialize it.
587
1ab2cd43
TTN
5882007-09-06 Pixel <pixel@mandriva.com> (tiny change)
589
590 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
591
0b0515bc
GM
5922007-09-06 Glenn Morris <rgm@gnu.org>
593
57fd5c55 594 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
595 * xselect.c (x_reply_selection_request) <cnt>: Move static
596 variable to file scope.
597
98594580
SM
5982007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
601 consistent values of selected_frame and selected_window.
602
0f4c7aef
JR
6032007-09-04 Jason Rumney <jasonr@gnu.org>
604
605 * w32console.c (initialize_w32_display): Zero unused hooks.
606
e4019195
DN
6072007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
608
609 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
610 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
611
bce179b5
JR
6122007-09-04 Jason Rumney <jasonr@gnu.org>
613
a0236551
JR
614 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
615 in w32console.c. Set up input. Remove XXX comments that have been
616 confirmed as correct.
617
a4926668
JR
618 * s/ms-w32.h (MULTI_KBOARD): Define.
619
953bf0dc
JR
620 * w32console.c (one_and_only_w32cons): Remove.
621 (initialize_w32_display): Take terminal argument.
622
623 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
624 initialize_w32_display.
625 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
626
bce179b5
JR
627 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
628
629 * keyboard.c (discard_mouse_events): Discard it.
630 (make_lispy_event): Translate it to a lisp event.
631 (lispy_wheel_names): Add wheel-left and right events.
632 (syms_of_keyboard): Enlarge wheel_syms.
633
634 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
635 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
636
637 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
638
639 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
640 from WM_MOUSEHWHEEL.
641 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
642
643 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
644 terminal.
645
646 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
647 keyboard for the terminal.
648
92cd6a7c
DN
6492007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
650
651 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
652 (Vresume_tty_hook): Rename from Vresume_tty_functions.
653 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
654 and resume-tty-function to resume-tty-hook.
655 (Fsuspend_tty, Fresume_tty): Use new names.
656
2154c964
JD
6572007-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
658
659 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
660 if it starts with "n:".
661
b42ff099
JD
6622007-08-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
663
664 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
665
6b8e474c
SM
6662007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
667
92d9c1d4
SM
668 * frame.h:
669 * frame.c (Qterm_environment_variable): Remove.
670 (syms_of_frame): Don't init and staticpro it.
671
92d9c1d4
SM
672 * callproc.c (getenv_internal): Remove special case for $TERM.
673
6b8e474c
SM
674 * callproc.c (Vinitial_environment): New variable.
675 (set_initial_environment): Initialize it.
676 (syms_of_callproc): Declare it.
677 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
678 TERM under which a process runs is never related to the TERM in which
679 Emacs is running.
680
0f1444e1
DN
6812007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
682
683 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
684 * s/darwin.h: ... do it here.
685
b8866860
SM
6862007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
687
688 * lisp.h (set_initial_environment): Rename from set_global_environment.
689
690 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
691 removed by mistake on the multi-tty branch.
692
693 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
694 (Fmodify_frame_parameters): Return a value.
695
696 * image.c (png_load): Comment-out var only used in commented-out code.
697
698 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
699 before passing it to mark_object.
700
701 * xfaces.c (internal_resolve_face_name): Return a value.
702 (internal_resolve_face_name, resolve_face_name_error): Comment out.
703
704 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
705 (x_icon): Comment-out var only used in commented-out code.
706
0a42be6d
RF
7072007-08-29 Romain Francoise <romain@orebokech.com>
708
709 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
710 QUIT hasn't been provided.
711
8d9cc0b7
MB
7122007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
713
714 * callproc.c (child_setup, getenv_internal): Use the
715 display-environment-variable and term-environment-variable frame
716 params.
717 (set_initial_environment): Initialise Vprocess_environment.
718
719 * config.in: Disable multi-keyboard support on a mac.
720
721 * frame.c (Qterm_environment_variable)
722 (Qdisplay_environment_variable): New variables.
723 (syms_of_frame): Intern and staticpro them.
724 (Fmake_terminal_frame): Disable output method test.
725
726 * frame.h: Declare them here.
727
728 * macfns.c (x_set_mouse_color): Get rif from the frame.
729 (x_set_tool_bar_lines): Don't use updating_frame.
730 (mac_window): Add 2 new parameters for consistency with other systems.
731 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
732 frame parameters following what is done in X11 and w32. Don't use
733 FRAME_MAC_DISPLAY_INFO.
734 (Fx_open_connection, start_hourglass): Remove window-system check.
735 (x_create_tip_frame): Get the keyboard from the terminal.
736
737 * macmenu.c: Reorder includes.
738 (Fx_popup_menu): Use terminal specific mouse_position_hook.
739
740 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
741 terminal parameter.
742 (x_clear_frame): Add a frame parameter.
743 (note_mouse_movement): Get rif from the frame.
744 (mac_term_init): Initialize the terminal.
745 (mac_initialize): Make static and move terminal initialization ...
746 (mac_create_terminal): ... to this new function.
747
748 * macterm.h (struct mac_display_info): Add terminal.
7196c970 749 (mac_initialize): Delete declaration.
8d9cc0b7 750
381864b2 751 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
752
753 * sysdep.c: Comment out text after #endif.
754
755 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
756 is defined. Better initialize ttys in windows. Use terminal
757 specific mouse_position_hook.
758
759 * termhooks.h (union display_info): Add mac_display_info.
760
b8866860
SM
761 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
762 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
763 frame parameters following what is done in X11.
764
765 * w32term.c (w32_initialize): Make static.
766
767 * xselect.c (x_handle_selection_clear): Only access
768 terminal->kboard when MULTI_KBOARD is defined.
769
770 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
771 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
772
7732007-08-29 Jason Rumney <jasonr@gnu.org>
774
775 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
776 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
777
778 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
779 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
780
781 * keyboard.c (restore_kboard_configuration): Only define when
782 MULTI_KBOARD defined.
783
784 * makefile.w32-in: Update dependancies from Makefile.in
785 (OBJ1): Add terminal.$(O)
786
b8866860
SM
787 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
788 Don't define function body.
8d9cc0b7
MB
789 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
790
791 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
792
793 * w32.c (request_sigio, unrequest_sigio): Remove.
794
795 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
796 (w32con_clear_frame, w32con_clear_end_of_line)
797 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
798 (w32con_delete_glyphs, w32con_set_terminal_window)
799 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
800 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
801 Add terminal arg.
8d9cc0b7
MB
802 (PICK_FRAME): Remove.
803 (w32con_write_glyphs): Use frame specific terminal coding.
804 (one_and_only_w32cons): New global variable.
805 (initialize_w32_display): Use it for storing hooks.
806 (create_w32cons_output): New function.
807
808 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
809 arg a frame.
810
b8866860
SM
811 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
812 Set window_system.
8d9cc0b7
MB
813 (x_set_tool_bar_lines): Don't use updating_frame.
814 (Fx_create_frame): Set terminal and ref count.
815 (Fx_open_connection): Remove window-system check.
816
817 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
818
819 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
820 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
821 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
822 Add frame arg.
823 (x_delete_terminal, w32_create_terminal): New functions.
824 (w32_term_init): Create a terminal.
825 (w32_initialize): Move terminal specific initialization to
826 w32_create_terminal.
827
b8866860 828 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
829 (w32_clear_rect, w32_clear_area): Use background from frame.
830 (w32_display_info): Add terminal.
831 (w32_sys_ring_bell, x_delete_display): Declare here.
832
833 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
834
835 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
836
8372007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
838
839 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
840 Fix get_named_tty calls for the controlling tty.
841
8422007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
843
844 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
845
8462007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
847
848 * term.c (tty_insert_glyphs): Add missing first parameter.
849
8502007-08-29 Karoly Lorentey <karoly@lorentey.hu>
851
b8866860
SM
852 * buffer.c (Fbuffer_list, Fbury_buffer):
853 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
854
855 * cm.c (current_tty): New variable, for cmputc().
856 (cmputc): Use it.
857 (cmcheckmagic): Add tty parameter, look up terminal streams there.
858 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
859 (cmgoto): Add tty parameter. Pass it on to calccost().
860 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
861
862 * cm.h (emacs_tputs): New macro to set current_tty, and then call
863 tputs().
864 (current_tty): New variable, for cmputc().
865 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
866
867 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
868 (internal_condition_case, internal_condition_case_1)
869 (internal_condition_case_2): Don't abort when x_catching_errors.
870
871 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
872 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
873 prevent crashes caused by bogus longjmps in read_char.
874
875 * keymap.h (Fset_keymap_parent): Add EXFUN.
876
877 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
878 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
879 Remove redundant definition.
880
b8866860
SM
881 * macfns.c (x_set_mouse_color, x_make_gc):
882 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 883
b8866860
SM
884 * w32term.c (x_free_frame_resources):
885 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
886 (w32_initialize): Use the accessor macros for terminal characteristics.
887
888 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
889 Use the accessor macros for terminal characteristics.
890 * msdos.c (internal_terminal_init): Use the accessor macros for
891 terminal characteristics.
b8866860
SM
892 (ScreenVisualBell, internal_terminal_init):
893 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
894
895 * termopts.h (no_redraw_on_reenter): Declare.
896
897 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 898 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 899 (Fgarbage_collect): Call them.
03f06e5c 900 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
901
902 * prefix-args.c: Include stdlib.h for exit.
903
904 * syssignal.h: Add comment.
905
906 * indent.c: Include stdio.h.
907
908 * window.h (Vinitial_window_system): Declare.
909 (Vwindow_system): Delete declaration.
910
911 * fontset.c (Finternal_char_font): Use FRAME_RIF.
912
913 * image.c (lookup_image): Don't initialize `c' until the xasserts
914 have been run.
915
916 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
917 FRAME_FOREGROUND_PIXEL.
918
919 * print.c (print_preprocess): Don't lose print_depth levels while
920 iterating.
921
b8866860
SM
922 * widget.c (update_from_various_frame_slots):
923 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
924
925 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
926 frames.
927 (window_internal_height): Remove bogus make_number call.
b8866860 928 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
929
930 * fileio.c (Fread_file_name): Update comment.
931
b8866860
SM
932 * callint.c (Fcall_interactively):
933 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
934 Make sure it is correctly unwound.
935
936 * xsmfns.c (x_session_close): New function.
937
03f06e5c 938 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
939 Delete declarations.
940
941 * xterm.h: Remove declaration for x_fully_uncatch_errors.
942 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 943 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
8d9cc0b7
MB
944 (x_delete_device):
945 (x_session_close): Declare.
946
947 * lread.c: Include setjmp.h. Update declaration of `read_char'.
948 (read_filtered_event): Call `read_char' with a local
949 `wrong_kboard_jmpbuf'.
950
b8866860
SM
951 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
952 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
953
954 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
955 systems.
956
b8866860 957 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 958 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 959 (Fset_quit_char): EXFUN.
03f06e5c 960 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
961 (init_sys_modes, reset_sys_modes): Update prototypes.
962 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
963
b8866860
SM
964 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
965 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 966 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 967 Delete declarations.
03f06e5c
JB
968 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
969 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
970 New declarations.
971
972 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
973 already does that during init_display(). Call syms_of_keymap
b8866860
SM
974 before syms_of_keyboard. Call `syms_of_terminal'.
975 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
976 (shut_down_emacs): Call reset_all_sys_modes() instead of
977 reset_sys_modes().
978
979 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
980 (internal_resolve_face_name, resolve_face_name_error): New functions.
981 (resolve_face_name): Protect against loops and errors thrown by Fget.
982 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
983 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
984
985 * scroll.c: Replace CURTTY() with local variables throughout the
986 file (where applicable).
987 (calculate_scrolling, calculate_direct_scrolling)
988 (scrolling_1, scroll_cost): Use the accessor macros for terminal
989 characteristics.
990
991 * keymap.c (Vfunction_key_map): Remove.
b8866860 992 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
993 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
994 (Vkey_translation_map): Remove.
995 (syms_of_keymap): Remove DEFVAR for key-translation-map.
996 (Fdescribe_buffer_bindings):
997 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
998 Update for terminal-local key-translation-map.
999
1000 * Makefile.in (callproc.o): Update dependencies.
1001 (lisp, shortlisp): Add termdev.elc.
1002 (obj): Add terminal.o.
1003 (terminal.o): Add dependencies.
1004 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
1005 (data.o, fns.o): Add termhooks.h dependency.
1006 (SOME_MACHINE_LISP): Add dnd.elc.
1007 (minibuf.o): Fix typo.
1008 Update dependencies.
1009
1010 * data.c (do_symval_forwarding, store_symval_forwarding)
1011 (find_symbol_value): Use the selected frame's keyboard, not
1012 current_kboard.
1013
1014 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
1015 Vwindow_system.
1016
1017 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
1018 Fmenu_bar_open.
1019 (syms_of_xmenu): Update defsubr.
1020 (mouse_position_for_popup, Fx_popup_menu)
1021 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
1022 (set_frame_menubar, free_frame_menubar)
1023 (create_and_show_popup_menu, xmenu_show, )
1024 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
1025 an X frame.
1026
1027 * xselect.c (x_own_selection): Abort if not an X frame.
1028 (some_frame_on_display): Check if it is an X frame.
1029 (x_handle_selection_clear): Deal with MULTI_KBOARD.
1030
1031 * coding.c: Include frame.h and termhooks.h.
03f06e5c 1032 (terminal_coding, keyboard_coding): Delete.
8d9cc0b7
MB
1033 (Fset_terminal_coding_system_internal):
1034 (Fset_keyboard_coding_system_internal):
1035 (Fkeyboard_coding_system):
03f06e5c
JB
1036 (Fterminal_coding_system): Add a terminal parameter.
1037 Get terminal_coding from the terminal.
8d9cc0b7
MB
1038 (init_coding_once): Don't call setup_coding_system here.
1039
1040 * dispextern.h (set_scroll_region, turn_off_insert)
1041 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
1042 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 1043 (delete_tty, updating_frame)
8d9cc0b7
MB
1044 (produce_special_glyphs, produce_glyphs, write_glyphs)
1045 (insert_glyphs): Remove.
1046 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 1047 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 1048 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
1049
1050 * frame.h (enum output_method): Add output_initial.
1051 (struct x_output): Delete.
b8866860
SM
1052 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
1053 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
1054 (tty_display): Delete.
1055 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 1056 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
1057 (union output_data): Add tty.
1058 (FRAME_KBOARD): Get the kboard from the terminal.
1059 (FRAME_INITIAL_P): New macro.
1060 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
1061 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
1062 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
1063 New declarations.
8d9cc0b7
MB
1064
1065 * termchar.h (tty_output, tty_display_info): New structures.
1066 (tty_list): Declare.
1067 (FRAME_TTY, CURTTY): New macros.
1068 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
1069 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
1070 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
1071 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
1072
1073 * callproc.c: Include frame.h and termhooks.h, for terminal
1074 parameters.
1075 (add_env): New function.
1076 (child_setup): Use it.
b8866860 1077 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
1078 (getenv_internal): Fix get_terminal_param call.
1079 (Fgetenv_internal, egetenv): Update doc.
1080 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 1081 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
1082 strings.
1083 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
1084 (getenv_internal): Add terminal parameter.
1085 Handle Vlocal_environment_variables.
8d9cc0b7
MB
1086 (Fgetenv_internal): Add terminal parameter.
1087 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 1088 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
1089 (set_initial_environment): Rename from set_global_environment.
1090 Store Emacs environment in initial frame parameter.
1091
1092 * xdisp.c (redisplay_internal): Update references to
1093 `previous_terminal_frame'.
1094 (display_mode_line, Fformat_mode_line): Replace calls to
1095 `push_frame_kboard' with `push_kboard'.
1096 (get_glyph_string_clip_rects): Add extra parentheses and
1097 braces to prevent compiler warnings.
1098 (calc_pixel_width_or_height): Add xassert to check that the
1099 frame is alive. Don't call `lookup_image' on a termcap frame.
1100 (message2_nolog, message3_nolog, redisplay_internal)
1101 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
1102 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
1103 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
1104 (Fx_display_pixel_width, Fx_display_pixel_height)
1105 (Fx_display_planes, Fx_display_color_cells)
1106 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
1107 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
1108 (Fx_display_backing_store, Fx_display_visual_class)
1109 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 1110 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
1111
1112 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
1113 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
1114 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
1115 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
1116 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
1117 terminal that is being deleted.
1118 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 1119 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
1120 (Fx_close_connection, Fx_synchronize): Unify argument names with
1121 the rest of the DEFUNs.
1122
1123 * dispnew.c (Fsend_string_to_terminal): Update call to
1124 `get_tty_terminal'.
1125 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 1126 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
1127 FRAME_TERMCAP_P and FRAME_TTY.
1128 (window_change_signal): Don't believe width/height values that are
1129 impossibly small.
1130 (Vinitial_window_system): Rename from Vwindow_system.
1131 (termscript, Wcm, rif): Delete.
1132
1133 * termhooks.h (struct terminal): New struct containing the
1134 previously global text display hooks and new members NAME,
1135 DELETED and PARAM_ALIST.
1136 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
1137 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
1138 (FRAME_RIF): New macros.
1139 (get_terminal_param, get_device): New declarations.
1140 (termscript): Delete declaration.
1141
1142 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
1143 (XTflash, x_free_frame_resources, x_scroll_bar_create)
1144 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
1145 FRAME_FOREGROUND_PIXEL.
1146 (x_fully_uncatch_errors): Disable definition.
1147 (x_scroll_bar_expose): Fix reference to foreground pixel.
1148 (XTread_socket): Disable loop on all X displays.
1149 (x_delete_terminal): Don't set terminal->deleted and let
1150 delete_terminal delete the frames on the terminal.
1151 (x_delete_display): Doc update to reflect changes in
1152 delete_terminal.
1153 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
1154 (deleting_tty): Remove old variable.
1155 (Fsuspend_tty): Call clear_tty_hooks.
1156 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
1157 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
1158 errors on X frames.
1159 (x_catch_errors_unwind): Abort if x_error_message is NULL.
1160 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 1161 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
1162 (XTset_terminal_modes, XTreset_terminal_modes)
1163 (XTread_socket, x_connection_closed, x_term_init)
1164 (x_term_init, x_delete_display): Add terminal parameter.
1165 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
1166 X connections.
1167
1168 * frame.c (Fframep): Deal with output_initial.
1169 (Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list, Qtty)
1170 (Qtty_type, Qwindow_system, Qenvironment)
b8866860 1171 (Qterm_environment_variable, Qdisplay_environment_variable): New vars.
8d9cc0b7
MB
1172 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
1173 (make_terminal_frame): Don't create frames on a terminal that is
1174 being deleted.
1175 (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
1176 FRAME_FOREGROUND_PIXEL.
b8866860 1177 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
1178 (Fmake_terminal_frame): Handle NULL tty names correctly.
1179 (syms_of_frame): Enhance doc string of `default-frame-alist'.
1180 (Fdelete_frame): Remove unused variable `count'.
1181 (Qenvironment): New variable.
1182 (Fdelete_frame): Don't allow other frames to refer to a deleted
1183 frame in their 'environment parameter.
1184 (Fframe_with_environment): New function.
b8866860 1185 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
1186 (get_future_frame_param): New function.
1187 (Fmake_terminal_frame): Use it.
2d33f506 1188 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
1189
1190 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
1191 * sysdep.c (reset_sys_modes): Update for renames.
1192
1193 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 1194 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
1195 (syms_of_keyboard): Defsubr them.
1196 (Fset_input_meta_mode, Fset_quit_char): New functions.
1197 (Fset_input_mode): Split to above functions.
1198
1199 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
1200 parameter. Use it in call to `read_char'.
b8866860
SM
1201 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
1202 Set wrong_kboard_jmpbuf correctly in recursive calls.
1203 Use current_kboard to access Vkeyboard_translate_table.
1204 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
1205 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
1206 Update longjmp invocations. Remember the original current_kboard,
1207 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
1208 changes it. Comment out unnecessary calls to
1209 `record_single_kboard_state' and `any_kboard_state'.
1210 Update recursive calls.
8d9cc0b7
MB
1211 (wrong_kboard_jmpbuf): Remove global variable.
1212 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
1213 Handle deleted interrupted_kboards correctly; that is a legal
1214 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 1215 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
1216 (any_kboard_state, single_kboard_state)
1217 (push_frame_kboard): Remove function.
1218 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
1219 been deleted. Remove unused variable. Help debugging by not
1220 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
1221 kboard of the selected frame when the stored kboard object has
1222 been deleted before pop_kboard.
1223 (temporarily_switch_to_single_kboard): Change first parameter to a
1224 frame pointer. Throw an error when caller wants to change kboards
1225 while in single_kboard mode. Don't push_kboard if we weren't in
1226 single kboard state. Don't pop_kboard if we popped into any
1227 kboard state.
1228 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 1229 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
1230 up single_kboard mode.
1231 (Frecursive_edit): Switch to single_kboard mode only in nested
1232 command loops.
b8866860
SM
1233 (cmd_error, command_loop, command_loop_1, timer_check):
1234 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
1235 `record_single_kboard_state'.
1236 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 1237 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
1238 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
1239 `fatal_error_signal'.
1240 (record_single_kboard_state): Don't push_kboard if we weren't in
1241 single kboard state. Don't pop_kboard if we popped into any
1242 kboard state.
1243 (push_frame_kboard): Rename to push_kboard.
1244 (kbd_buffer_get_event): Use FRAME_TERMINAL.
1245 (read_avail_input): Read input from all terminals.
1246 (mark_kboards): Also mark Vkeyboard_translate_table.
1247 (kbd_buffer_store_event_hold): Simplify condition.
1248 (read_key_sequence): Reinitialize fkey and keytran at each replay.
1249 (Vkeyboard_translate_table): Move to struct kboard.
1250 (init_kboard): Initialize Vkeyboard_translate_table.
1251 (syms_of_keyboard): Use DEFVAR_KBOARD to define
1252 Vkeyboard_translate_table. Update doc strings. Update docs of
1253 local-function-key-map and function-key-map.
1254
1255 * terminal.c: New file.
1256
1257 * term.c: Include errno.h.
1258 (Vring_bell_function, device_list, initial_device)
1259 (next_device_id, ring_bell, update_begin, update_end)
1260 (set_terminal_window, cursor_to, raw_cursor_to)
1261 (clear_to_end, clear_frame, clear_end_of_line)
1262 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
1263 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
1264 (syms_of_term): Move their initialization to terminal.c.
1265 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
1266 (Ftty_display_color_cells)
1267 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 1268 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
1269 (init_tty, maybe_fatal): New functions.
1270 (Ftty_type): Return nil if terminal is not on a tty instead of
1271 throwing an error. Doc update.
1272 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 1273 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
1274 (delete_tty): Use terminal->deleted.
1275 (tty_set_terminal_modes): Rename from set_terminal_modes.
1276 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
1277 (set_scroll_region): Rename to `tty_set_scroll_region'.
1278 (turn_on_insert): Rename to `tty_turn_on_insert'.
1279 (turn_off_insert): Rename to `tty_turn_off_insert'.
1280 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
1281 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
1282 (toggle_highligh): Rename to `tty_toggle_highlight'.
1283 (background_highlight): Rename to `tty_background_highlight'.
1284 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
1285 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
1286 (tty_set_scroll_region, tty_background_highlight)
1287 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
1288 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
1289 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
1290 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
1291 Add static modifier.
1292 (tty_reset_terminal_modes, tty_set_terminal_window)
1293 (tty_set_scroll_region, tty_background_highlight)
1294 (tty_highlight_if_desired, tty_cursor_to)
1295 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
1296 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
1297 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
1298 renames.
1299
cf0590c4
JD
13002007-08-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1301
1302 * keyboard.c: Qrtl is new.
1303 (parse_tool_bar_item): Handle :rtl keyword.
1304 (syms_of_keyboard): Intern :rtl keyword.
1305
1306 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
1307
1308 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
1309 so no Lisp code is executed.
1310 (file_for_image, find_rtl_image): New functions.
1311 (xg_get_image_for_pixmap): Use file_for_image
1312 (update_frame_tool_bar): If direction is RTL, use RTL image if
1313 defined. Use Gtk stock images if defined.
1314
83cc8d35
YM
13152007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1316
1317 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
1318 for nonexistent or zero-width glyph in composition glyph.
1319
e60c4e15
SM
13202007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
1321
d7e2a28f
SM
1322 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
1323
e60c4e15
SM
1324 * xdisp.c (Finvisible_p): New function.
1325 (syms_of_xdisp): defsubr it.
1326
ee163e6d
JB
13272007-08-24 Juanma Barranquero <lekktu@gmail.com>
1328
1329 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
1330 Doc fixes.
1331
90fa408d
YM
13322007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1333
1334 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
1335
cac4219c
MR
13362007-08-24 Martin Rudalics <rudalics@gmx.at>
1337
1338 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
1339 whether decoding has modified buffer contents.
1340
5fc9fdeb
JR
13412007-08-24 Jason Rumney <jasonr@gnu.org>
1342
1343 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
1344 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
1345 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
1346 (init_svg_functions) [HAVE_NTGUI]: New function.
1347 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
1348 (svg_load_image): Use them.
1349 (svg_load_image) [HAVE_NTGUI]: Implement background.
1350
93b23406
YM
13512007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1352
1353 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
1354 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
1355 (LIBX): Remove @RSVG_LIBS@.
1356 (LIBES): Add $(RSVG_LIBS).
1357
1358 * image.c (svg_load_image): Blend with specified background if exists.
1359 Use IMAGE_BACKGROUND. Add Mac OS Support.
1360
1361 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
1362 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
1363 Remove macros.
1364 [MAC_OSX] (socket_callback): Do nothing.
1365 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
1366 ReceiveNextEvent.
1367 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
1368 socket_callback.
1369 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
1370
2467875c
GM
13712007-08-22 Glenn Morris <rgm@gnu.org>
1372
ff8da443 1373 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 1374
4ab27a43
GM
13752007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
1376
1377 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 1378
666e0eda
GM
1379 * image.c: Add support for SVG images. Some additional comments
1380 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
1381 (svg_image_p): New function to test for SVG image.
1382 (svg_load): New function to load SVG image.
1383 (svg_load_image): New function, helper for svg_load.
1384 (Qsvg): New Lisp_object.
1385 (svg_keyword_index): New enum.
1386 (svg_format): New static `image_keyword' struct.
1387 (svg_type): New static `image_type' struct.
1388 (librsvg/rsvg.h): Include it.
4ab27a43 1389
b636b4c1
SM
13902007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
1391
1392 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
1393
9ecb827b
SM
13942007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
1395
1d064697
SM
1396 * lread.c (Qold_style_backquotes): New var.
1397 (syms_of_lread): Init and staticpro it.
1398 (load_warn_old_style_backquotes): New fun.
1399 (Fload): Use them to warn about old style backquotes.
1400 (end_of_file_error, Fload): Remove unused vars.
1401
5772ed4b
SM
1402 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
1403
9ecb827b 1404 * lread.c (Vold_style_backquotes): New var.
5aa273b0 1405 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
1406 (read1): Set it when we find an old-style (back)quote.
1407
32e1c7b1
JR
14082007-08-22 Jason Rumney <jasonr@gnu.org>
1409
1410 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
1411
b8fa755b
KY
14122007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
1413
1414 * puresize.h (BASE_PURESIZE): Increase to 1140000.
1415
1283140e
RS
14162007-08-19 Richard Stallman <rms@gnu.org>
1417
1418 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
1419
2c4685ee
AS
14202007-08-19 Andreas Schwab <schwab@suse.de>
1421
1422 * alloc.c (pure): Round PURESIZE up.
1423
e8953ebf
JD
14242007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1425
1426 * xterm.c (handle_one_xevent): Remove check that mouse click is in
1427 active frame.
1428
6e33efc4
RS
14292007-08-16 Richard Stallman <rms@gnu.org>
1430
1431 * eval.c (Fcommandp): Add parens to clarify.
1432
1433 * minibuf.c (Fall_completions): Use enum for type of table.
1434
1435 * emacs.c (USAGE2): Improve text.
1436
fcf8ff2e
GM
14372007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
1438
5205ee62
GM
1439 * term.c (tty_default_color_capabilities): Declare static
1440 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 1441
81d13a51
JD
14422007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1443
1444 * gtkutil.c (update_frame_tool_bar): Use -1 as index
1445 to gtk_toolbar_insert.
1446
4a181359
SM
14472007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
1448
1bc99c9c
SM
1449 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
1450
4a181359
SM
1451 * insdel.c (reset_var_on_error): New fun.
1452 (signal_before_change, signal_after_change):
1453 Use it to reset (after|before)-change-functions to nil in case of error.
1454 Bind inhibit-modification-hooks to t.
1455 Don't bind (after|before)-change-functions to nil while they run.
1456
6c28435c
YM
14572007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1458
1459 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
1460 filling pixmap with stippled background.
1461
ad3b3e02
YM
14622007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1463
1464 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
1465 Don't use invisible frame as parent window for repositioning.
1466
a22dec27
SM
14672007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
1468
1469 * print.c (new_backquote_output): Rename from old_backquote_output.
1470 (print): Inverse its logic (according to its name) so as to match the
1471 behavior of new_backquote_flag in lread.c.
1472
7b7d07bb
YM
14732007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1474
1475 * gmalloc.c (posix_memalign): New function.
1476
1477 * macterm.c (frame_highlight, frame_unhighlight): Don't call
1478 ActivateControl/DeactivateControl here.
1479 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
1480 frame-notice-user-settings is non-nil.
1481 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
1482 for kEventParamFMFontStyle.
1483 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
1484 mac_pass_command_to_system and mac_pass_control_to_system here.
1485 (XTread_socket): Call ActivateControl/DeactivateControl here.
1486 (XTread_socket) [TARGET_API_MAC_CARBON]:
1487 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
1488 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
1489 for window repositioning.
7b7d07bb 1490
22e9fe24
GM
14912007-08-08 Glenn Morris <rgm@gnu.org>
1492
1493 * Replace `iff' in doc-strings and comments.
1494
ae494350
CY
14952007-08-07 Chong Yidong <cyd@stupidchicken.com>
1496
1497 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
1498
6f2528d8
MR
14992007-08-07 Martin Rudalics <rudalics@gmx.at>
1500
1501 * fileio.c (Finsert_file_contents): Run format-decode and
1502 after_insert_file_functions on entire buffer when REPLACE is
1503 non-nil and inhibit modification_hooks and point_motion_hooks.
1504 For consistency, run after_insert_file_functions iff something
1505 got inserted. Move signal_after_change and update_compositions
1506 after code running after_insert_file_functions. Make sure that
6b8e474c 1507 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 1508
3ceeb306
YM
15092007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1510
1511 * emacs.c (main)
1512 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
1513 Call malloc_enable_thread on interactive startup.
1514
1515 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
1516 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
1517 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
1518 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1519 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
1520 New functions.
1521
ca5e6fd5
CY
15222007-08-06 Chong Yidong <cyd@stupidchicken.com>
1523
32bfce5d
CY
1524 * xdisp.c (redisplay_window): When restoring original buffer
1525 position, make sure it is still valid.
1526
ca5e6fd5
CY
1527 * image.c (png_load): Ignore png-supplied background color.
1528
a5b11587
YM
15292007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1530
1531 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
1532 Use kCFAbsoluteTimeIntervalSince1970.
1533
1534 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
1535 New variable.
1536 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
1537 event loop should be quit.
1538 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
1539 Quit dialog event loop if quit_dialog_event_loop is set.
1540
1541 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
1542 (Selection): New typedef. Use instead of ScrapRef.
1543 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
1544 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
1545 (mac_clear_selection): Rename from clear_scrap.
1546 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 1547 scrap_has_target_type. All uses changed.
a5b11587
YM
1548 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1549 (mac_selection_has_target_p): New functions.
1550 (mac_put_selection_value): Rename from put_scrap_string.
1551 (mac_get_selection_value): Rename from get_scrap_string.
1552 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
1553 (put_scrap_private_timestamp, scrap_has_target_type)
1554 (get_scrap_private_timestamp): Remove functions.
1555 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
1556 (x_own_selection, x_get_local_selection):
1557 Use mac_valid_selection_value_p.
1558 (x_own_selection): Don't use put_scrap_private_timestamp.
1559 Record OWNERSHIP-INFO into Vselection_alist instead.
1560 (x_get_local_selection): Don't check type if request is local.
1561 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
1562 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
1563
991bde0d
JD
15642007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1565
1566 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
1567 add comment explaining why.
1568
73ff9d42
RS
15692007-08-03 Richard Stallman <rms@gnu.org>
1570
1571 * fileio.c (Fvisited_file_modtime): Use make_time.
1572
54ed9a2d 15732007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
1574
1575 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
1576 build.
1577
65a9c8e2
SM
15782007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
1579
1580 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
1581
c5925799
KY
15822007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
1583
1584 * puresize.h (BASE_PURESIZE): Increase to 1130000.
1585
adef3de7
RS
15862007-07-30 Richard Stallman <rms@gnu.org>
1587
1588 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
1589
784c1472
JD
15902007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1591
1592 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
1593
a10421a1
NR
15942007-07-28 Nick Roberts <nickrob@snap.net.nz>
1595
1596 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
1597 remote default-directory.
1598
1599 * buffer.c (mode-line-format): Update doc string.
1600
0cb1ae20
YM
16012007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1602
1603 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
1604 scroll bar gap.
1605 (x_scroll_bar_create): Set bar->fringe_extended_p.
1606 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
1607 on frame edge. Check fringe background extension. Don't clear
1608 extended fringe background area.
1609
1610 * w32term.h (struct scroll_bar): New member fringe_extended_p.
1611 (w32_fill_area): Enclose multiple statements with do ... while (0).
1612
1613 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
1614 Extend fringe background to scroll bar gap.
1615 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1616 Set bar->fringe_extended_p.
1617 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1618 Put leftmost/rightmost scroll bars on frame edge. Check fringe
1619 background extension. Don't clear extended fringe background area.
1620
1621 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1622 New member fringe_extended_p.
1623
cacc7b51
GM
16242007-07-25 Glenn Morris <rgm@gnu.org>
1625
1626 * Relicense all FSF files to GPLv3 or later.
1627
1628 * COPYING: Switch to GPLv3.
1629
89835619
SM
16302007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
1631
c4f46926
SM
1632 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
1633
1634 * data.c (Finteractive_form): Check for the presence of an
1635 `interactive-form' symbol property more thoroughly.
1636
1637 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
1638 present, analogous to the function-documentation property.
1639
ee04257d
JR
16402007-07-24 Jason Rumney <jasonr@gnu.org>
1641
1642 * w32fns.c (x_real_positions): Get real position from OS instead of
1643 calculating it.
1644
50624218
JR
16452007-07-23 Jason Rumney <jasonr@gnu.org>
1646
1647 * filelock.c (current_lock_owner): Allow for @ sign in username.
1648
3650f60e
NR
16492007-07-22 Nick Roberts <nickrob@snap.net.nz>
1650
1651 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
1652 remote default-directory.
1653
1654 * buffer.c (mode-line-format): Describe above case in doc string.
1655
1e899515 16562007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 1657
75be5258
EZ
1658 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
1659 Define if not defined.
1660
2b6e2f4d
JR
16612007-07-18 Jason Rumney <jasonr@gnu.org>
1662
1663 * w32proc.c (w32_executable_type): Handle 64 bit executables.
1664
23dacf80
JB
16652007-07-18 Richard Stallman <rms@gnu.org>
1666
1667 * data.c (Fsetq_default): Doc fix.
1668
1669 * eval.c (Fsetq): Doc fix.
1670
16712007-07-18 Juanma Barranquero <lekktu@gmail.com>
1672
1673 * coding.c (Ffind_operation_coding_system):
1674 * eval.c (For, Fand): Doc fixes.
1675 Reported by Johan Bockg\e,Ae\e(Brd.
1676
656de71a
JD
16772007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1678
23dacf80 1679 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 1680
23dacf80 1681 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
1682
1683 * xterm.c (x_ewmh_activate_frame): New function.
1684 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
1685
71ec17e6
MR
16862007-07-17 Martin Rudalics <rudalics@gmx.at>
1687
1688 * window.c (Fdisplay_buffer): If largest or LRU window is the
1689 only window, split it even if it is not eligible for splitting.
1690 This restores the original behavior broken by the 2007-07-15
1691 change.
1692
e9818042
GM
16932007-07-17 Glenn Morris <rgm@gnu.org>
1694
1695 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
1696 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1697 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
1698 constituents. Doc fix.
1699
e6fca843
SM
17002007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1701
1702 * process.c (Fstart_process, Fmake_network_process)
1703 (read_process_output): Fix up last changes.
1704
b5d2b4ab
EZ
17052007-07-16 Eli Zaretskii <eliz@gnu.org>
1706
1707 * makefile.w32-in (clean): Don't delete *~.
1708
413a79ad
AS
17092007-07-16 Andreas Schwab <schwab@suse.de>
1710
1711 * window.c (Fdisplay_buffer): Use NILP.
1712 (Fset_window_scroll_bars): Likewise.
1713
f1de8c77
MR
17142007-07-15 Martin Rudalics <rudalics@gmx.at>
1715
1716 * window.c (window_min_size_2): New function.
1717 (window_min_size_1, size_window, Fdisplay_buffer)
1718 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
1719 windows without mode- or header-lines when window-min-height is
1720 too small.
1721 (size_window): Reset nodelete_p after testing it, following an
1722 earlier note by Kim F. Storm.
1723 (display_buffer): Do not set split_height_threshold to twice the
1724 value of window_min_height to avoid changing the value of a
1725 customizable variable. Rather explicitly check whether the
1726 height of the window that shall be splitted is at least as large
1727 as split_height_threshold.
1af74d06
MB
1728 (Fwindow_full_width_p): New defun.
1729 (syms_of_window): Defsubr it.
d31053f9 1730
1af74d06 1731 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 1732
5e1ab613
JR
17332007-07-14 Jason Rumney <jasonr@gnu.org>
1734
1735 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
1736
f01cbfdd
RS
17372007-07-14 Richard Stallman <rms@gnu.org>
1738
1739 * eval.c (maybe_call_debugger): New function.
1740 (find_handler_clause): Use maybe_call_debugger.
1741 Call it when the handler says `debug'.
1742 Eliminate DEBUGGER_VALUE_PTR.
1743 (Fsignal): Eliminate debugger_value.
1744 (Qdebug): New variable.
1745 (syms_of_eval): Initialize it.
1746
1bab435a
JB
17472007-07-14 Juanma Barranquero <lekktu@gmail.com>
1748
1749 * eval.c (Fprogn):
1750 * keyboard.c (Ftrack_mouse):
1751 * print.c (Fwith_output_to_temp_buffer):
1752 * window.c (Fsave_window_excursion): Doc fix.
1753
be436d23
SM
17542007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
1755
1756 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
1757
60f0fb11
SM
17582007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
1759
1760 * process.h (struct Lisp_Process): Turn slots infd, outfd,
1761 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
1762 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
1763 read_output_delay, and read_output_skip from Lisp_Objects to ints.
1764 Remove unused encoding_carryover.
1765 * process.c: Adjust all functions accordingly.
1766
d8b18043
RS
17672007-07-12 Richard Stallman <rms@gnu.org>
1768
1769 * term.c: Include unistd.h only if HAVE_UNISTD_H.
1770
d5781bb6
JR
17712007-07-11 Jason Rumney <jasonr@gnu.org>
1772
1773 * makefile.w32-in (LIBS): Include OLE32.
1774
1775 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
1776 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
1777
5bb7dfee
SM
17782007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1779
1780 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
1781 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
1782 from a Lisp_Object into a bare pointer.
1783 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
1784 Adjust the code correspondingly.
1785
1786 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
1787
1788 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
1789 (term_show_mouse_face): Remove unused var `j'.
1790 (handle_one_term_event): Remove unused vars `i' and `j'.
1791 Don't cast return value of ttyname since it's not necessary.
1792
a1be1ce8
SM
17932007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
1794
5045e68e
SM
1795 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
1796 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
1797
8071c00f
SM
1798 * fns.c (map_char_table): Use an array of int for `indices' rather than
1799 an array of Lisp_Objects (which are only ever integers anyway).
1800 (Fmap_char_table): Update caller.
1801 * lisp.h: Update prototype.
1802 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
1803 * fontset.c (Ffontset_info):
1804 * casetab.c (set_case_table): Update callers.
1805
1806 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
1807
fab84e3c
SM
1808 * keymap.c (struct accessible_keymaps_data)
1809 (struct where_is_internal_data): New structures.
1810 (accessible_keymaps_1, where_is_internal_1): Use them to change
1811 interface to adhere to the one used by map_keymap.
1812 (Faccessible_keymaps, where_is_internal): Use map_keymap.
1813 (accessible_keymaps_char_table, where_is_internal_2): Remove.
1814
a1be1ce8
SM
1815 * keymap.h (map_keymap_function_t): More informative prototype.
1816
ef887810
RS
18172007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
1818
1819 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
1820 (looking_at_1): Don't change search_regs and last_thing_searched
1821 if `inhibit-changing-match-data' is non-nil.
1822 (string_match_1, search_buffer, set_search_regs): Likewise.
1823 (syms_of_search): Add Lisp level definition for
1824 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
1825 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
1826 start and end of the match, instead of using values in search_regs.
ef887810 1827
4d02fc25
SM
18282007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
1829
1830 * minibuf.c (Fcompleting_read): New value `confirm-only'
1831 for `require-match'.
1832
fe45b81f
SM
18332007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
1834
1835 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
1836 part of the 2007-06-27 change to syms_of_fileio.
1837
a56dd283
YM
18382007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1839
1840 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1841 Check WINDOWP before using XWINDOW. Consolidate return statements.
1842
0cf9f5b5
RS
18432007-06-27 Richard Stallman <rms@gnu.org>
1844
1845 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1846
a66f285a
JB
18472007-06-27 Juanma Barranquero <lekktu@gmail.com>
1848
1849 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
1850
8d0d84d2
YM
18512007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1852
1853 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
1854 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
1855 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
1856 (_free_internal, memalign): Use them.
1857 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
1858 Initialize to PTHREAD_MUTEX_INITIALIZER.
1859 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
1860 (morecore_nolock): Rename from morecore. All uses changed.
1861 Use only nolock versions of internal allocation functions.
1862 (_malloc_internal_nolock, _realloc_internal_nolock)
1863 (_free_internal_nolock): New functions created from
1864 _malloc_internal, _realloc_internal, and _free_internal.
1865 (_malloc_internal, _realloc_internal, _free_internal): Use them.
1866 Copy hook value to automatic variable before its use.
1867 (memalign): Copy hook value to automatic variable before its use.
1868
5a0bbd9a
KH
18692007-06-26 Kenichi Handa <handa@m17n.org>
1870
1871 * coding.c (Ffind_operation_coding_system): Docstring improved.
1872 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
1873
9a51747b
DK
18742007-06-25 David Kastrup <dak@gnu.org>
1875
1876 * keymap.c (Fcurrent_active_maps): Add `position' argument.
1877 (Fwhere_is_internal): Adjust call to `current-active-maps' to
1878 cater for additional parameter.
1879
1880 * keymap.h: Adjust number of parameters to `current-active-maps'.
1881
1882 * doc.c (Fsubstitute_command_keys): Adjust call of
1883 `current-active-maps'.
1884
e4305426
DK
18852007-06-25 David Kastrup <dak@gnu.org>
1886
1887 * callint.c (Fcall_interactively): Make the parsing of interactive
1888 specs somewhat more readable.
1889
511a18d9
YM
18902007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1891
1892 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
1893 to scroll bar gap also when bitmap fills fringe. Draw only foreground
1894 if extended background has already been filled.
1895
512eb161
YM
18962007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1897
1898 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
1899 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
1900
1901 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
1902 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
1903 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
1904 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
1905 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
1906 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
1907 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
1908 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
1909 Run timers during dialog popup.
1910 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
1911
2386b1f1
JR
19122007-06-21 Jason Rumney <jasonr@gnu.org>
1913
1914 * image.c (convert_mono_to_color_image): Swap fore and background.
1915
fab8b787
JR
19162007-06-20 Jason Rumney <jasonr@gnu.org>
1917
1918 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
1919 (w32_free_bdf_font): Unmap memory not handle.
1920
15bdd7a0 19212007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
1922
1923 * gmalloc.c (__morecore): Fix the declaration to comply with the
1924 definition.
1925
1bb8a291
JB
19262007-06-20 Juanma Barranquero <lekktu@gmail.com>
1927
1928 * w32term.c (w32_delete_display): Remove leftover declaration.
1929 (w32_define_cursor, w32_initialize): Make static.
1930
1931 * w32.c (_wsa_errlist): Fix typo in error message.
1932 (init_environment): Ignore any environment variable from the
1933 registry having a null value.
1934
92648dea
GM
19352007-06-20 Glenn Morris <rgm@gnu.org>
1936
1937 * Makefile.in (LIBGIF): Default to -lgif.
1938
ff25d115
JR
19392007-06-17 Jason Rumney <jasonr@gnu.org>
1940
1941 * w32menu.c (add_menu_item): Don't use multibyte string functions on
1942 unicode strings.
1943
a1a578a5
JB
19442007-06-16 Juanma Barranquero <lekktu@gmail.com>
1945
1946 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
1947 Fix typo in docstring.
1948
af41f8a8
EZ
19492007-06-16 Eli Zaretskii <eliz@gnu.org>
1950
1951 * w32menu.c (add_menu_item): Escape `&' characters in menu items
1952 and their keybindings.
1953
8b29cab9
CY
19542007-06-15 Chong Yidong <cyd@stupidchicken.com>
1955
1956 * composite.c (update_compositions): Fix last fix.
1957
c433c134
JR
19582007-06-14 Jason Rumney <jasonr@gnu.org>
1959
1960 * w32.c (get_process_times_fn): New function pointer.
1961 (globals_of_w32): Intialize it if present in kernel32.dll.
1962 (w32_get_internal_run_time): New function.
1963
1964 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
1965
553d3164
KH
19662007-06-14 Kenichi Handa <handa@etlken.m17n.org>
1967
1968 * composite.c (update_compositions): Check the validness of
1969 compositions.
1970
446ba96f
YM
19712007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1972
1973 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
1974 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
1975
1976 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
1977 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
1978
1979 * macgui.h (USE_MAC_TOOLBAR): New define.
1980
1981 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
1982 Return immediately unless popup is activated.
1983
1984 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
1985 background to scroll bar gap.
1986 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
1987 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
1988 scroll bars on frame edge. Check fringe background extension.
1989 Don't clear extended fringe background area.
1990 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
1991 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
1992 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
1993 [USE_MAC_TOOLBAR]: New macros.
1994 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
1995 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
1996 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
1997 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
1998 [USE_MAC_TOOLBAR]: New functions.
1999 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
2000 manually if previous repositioning has failed.
2001 (mac_handle_keyboard_event): Use precomputed event kind.
2002 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
2003 as tool bar item click. Handle mouse movement over tool bar items.
2004
2005 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
2006 toolbar_win_gravity.
2007 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
2008 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
2009 Add externs.
2010
2011 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
2012 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
2013
9720173f
CY
20142007-06-14 Chong Yidong <cyd@stupidchicken.com>
2015
2016 * image.c (search_image_cache): Remove unused variable.
2017
1217dd00
CY
20182007-06-13 Chong Yidong <cyd@stupidchicken.com>
2019
2020 * xfns.c, xmenu.c: Link to xaw3d if available.
2021
c5b8e0ea
YM
20222007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2023
2024 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
2025 frame_foreground and frame_background.
2026
2027 * image.c (lookup_image): Save frame foreground and background colors.
2028 (search_image_cache): Check if saved and current frame colors match.
2029
c69b0314
SM
20302007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2031
2032 * regex.c (regex_compile): Remove the `regnum' counter.
2033 Use bufp->re_nsub instead. Add support for \(?N:RE\).
2034
c9612b8e
SM
20352007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * term.c: Include intervals.h to declare Fget_text_property.
2038
843d2458
JR
20392007-06-10 Jason Rumney <jasonr@gnu.org>
2040
2041 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2042
1e0d2d60 20432007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
2044
2045 * callint.c (Fcall_interactively):
2046 * editfns.c (Fdelete_and_extract_region):
2047 * fileio.c (Fread_file_name):
2048 * fns.c (Fmapconcat):
2049 * keyboard.c (cmd_error_internal):
2050 * keymap.c (Fkey_description):
2051 * lread.c (openp):
2052 * minibuf.c (read_minibuf):
2053 * search.c (wordify):
2054 * sunfns.c (sel_read):
2055 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
2056 * xfns.c (x_default_scroll_bar_color_parameter):
2057 * xmenu.c (menu_help_callback):
2058 * xselect.c (Fx_get_atom_name):
2059 * xterm.c (x_term_init): Use empty_unibyte_string.
2060
15bdd7a0 20612007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
2062
2063 * alloc.c (init_strings): Initialize canonical empty strings.
2064 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
2065 canonical empty string when the requested size is 0.
2066
2067 * emacs.c (empty_unibyte_string): Rename from empty_string.
2068 (empty_multibyte_string): New canonical empty string.
2069 (syms_of_emacs): Don't initialize empty_string.
2070
2071 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
2072 string, if appropriate.
2073 (empty_unibyte_string, empty_multibyte_string): New externs.
2074 (empty_string): Remove extern.
2075
2076 * lread.c (syms_of_lread): Use empty_unibyte_string.
2077
42c4c67a
JR
20782007-06-07 Jason Rumney <jasonr@gnu.org>
2079
2080 * s/ms-w32.h: Don't define HAVE_TZNAME.
2081
2082 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
2083
aa8280d3
YM
20842007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2085
2086 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
2087
2088 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
2089 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
2090
2091 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
2092 Don't call next handler.
2093 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
2094 Remove argument. Install handler to application.
2095 (set_frame_menubar): Don't change deep_p.
1e0d2d60 2096 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
2097 FRAME_OUTER_TO_INNER_DIFF_Y.
2098 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2099 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2100 [HAVE_DIALOGS]: New macros.
2101 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
2102 Use them.
2103 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
2104
2105 * macselect.c [MAC_OSX] (install_service_handler): Rename from
2106 init_service_handler. All callers changed. Return OSStatus value.
2107
2108 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
2109 All callers changed so as not to call SetPortWindowPort.
2110 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2111 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
2112 mac_draw_string_common.
2113 (mac_draw_image_string_qd): Likewise.
2114 (mac_draw_string_common): Use them. Add INLINE.
2115 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
2116 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
2117 GetGlobalMouse.
2118 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
2119 and FRAME_OUTER_TO_INNER_DIFF_Y.
2120 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
2121 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
2122 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
2123 repositioning window to mac_handle_window_event.
2124 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
2125 saving window location to mac_handle_window_event
2126 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
2127 (install_menu_target_item_handler): Remove argument in extern.
2128 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
2129 Also accept command events.
2130 (do_keystroke): New function created from XTread_socket.
2131 (init_command_handler): Remove functions.
2132 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
2133 and save window location by kEventWindowShowing and kEventWindowHiding
2134 handlers here. Don't call next handler for window state change and
2135 focus events.
2136 (mac_handle_application_event, mac_handle_keyboard_event)
2137 [TARGET_API_MAC_CARBON]: New functions.
2138 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
2139 kEventWindowShowing and kEventWindowHiding events. Move installation
2140 of mouse, font, text input and menu target item handlers to
2141 install_application_handler.
2142 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
2143 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2144 New function.
2145 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2146 Register it.
c9612b8e
SM
2147 (XTread_socket) [TARGET_API_MAC_CARBON]:
2148 Consolidate SendEventToEventTarget calls.
2149 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
2150 Move application activation handler to mac_handle_application_event.
2151 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
2152 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
2153 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2154 init_command_handler. Call install_application_handler.
2155
2156 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
2157 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
2158
6926c954
GM
21592007-06-07 Glenn Morris <rgm@gnu.org>
2160
2161 * emacs.c (main): Use `emacs-copyright' in --version output.
2162
6fe04c89
CY
21632007-06-06 Chong Yidong <cyd@stupidchicken.com>
2164
c9612b8e 2165 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 2166
7eb0d727
YM
21672007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2168
2169 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
2170
2171 * macgui.h: Replace WindowPtr with WindowRef.
2172
2173 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
2174 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
2175 Replace ControlHandle with ControlRef.
2176 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
2177
2178 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
2179 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
2180 Replace ControlHandle with ControlRef.
2181 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
2182 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
2183
2184 * macterm.h (struct scroll_bar): Rename member control_handle_low
2185 and control_handle_high to control_ref_low and control_ref_high.
2186 All uses changed.
2187 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
2188 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
2189 respectively. All uses changed.
2190 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
2191 (install_window_handler, remove_window_handler): Replace WindowPtr
2192 with WindowRef in externs.
2193
65fddb74
JB
21942007-06-05 Juanma Barranquero <lekktu@gmail.com>
2195
2196 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
2197
db1213a9
NR
21982007-06-03 Nick Roberts <nickrob@snap.net.nz>
2199
2200 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
2201
65fddb74 2202 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
2203 Condition on HAVE_GPM too.
2204
2205 * term.c (term_mouse_highlight): Remove unused variables.
2206 (Fterm_open_connection): Set gpm_zerobased to 1.
2207 (term_mouse_movement, term_mouse_click, handle_one_term_event):
2208 Use zero based co-ordinates.
2209 (handle_one_term_event): Report a drag as mouse movement too.
2210
2211 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
2212
d94df25b
CY
22132007-06-03 Chong Yidong <cyd@stupidchicken.com>
2214
2215 * image.c (search_image_cache): New function. Require background
2216 color match if background color is unspecified in the image spec.
2217 (uncache_image, lookup_image): Use it.
2218
4797b6d9
JB
22192007-06-01 Juanma Barranquero <lekktu@gmail.com>
2220
2221 * window.c (Fshrink_window): Reflow docstring.
2222
1ffe7343
NR
22232007-06-02 Chong Yidong <cyd@stupidchicken.com>
2224
2225 * Version 22.1 released.
2226
22272007-06-01 Richard Stallman <rms@gnu.org>
2228
2229 * xfns.c (x_encode_text): Add GCPRO.
2230
22312007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2232
2233 * xfns.c (x_set_name_internal): Save encoded name before
2234 x_encode_text in case string data is relocated.
2235
22362007-05-31 Richard Stallman <rms@gnu.org>
2237
2238 * buffer.c (syms_of_buffer): Doc fix.
2239
22402007-05-30 Nick Roberts <nickrob@snap.net.nz>
2241
2242 * sysdep.c (init_sys_modes): Add rather than replace with
2243 O_NONBLOCK.
2244
2245 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
2246 term_mouse_moveto.
2247
2248 * termhooks.h (term_mouse_moveto): New extern.
2249
2250 * term.c (mouse_face_window): Rename...
2251 (Qmouse_face_window): ...to this.
2252 (term_show_mouse_face, term_clear_mouse_face)
2253 (term_mouse_highlight): Use Qmouse_face_window.
2254 (term_mouse_moveto): New function.
2255 (term_mouse_position): Make it work.
2256 (syms_of_term): Uncomment assignment to mouse_position_hook.
2257 Staticpro Qmouse_face_window.
2258
22592007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2260
2261 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
2262 around current_column call.
2263
22642007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
2265
2266 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
2267 * xdisp.c (next_element_from_buffer):
2268 * window.c (delete_window):
2269 * term.c (term_mouse_highlight):
2270 * msdos.c (getdefdir):
2271 * macterm.c (mac_create_bitmap_from_bitmap_data)
2272 (init_font_name_table):
2273 * fns.c (Fsxhash):
2274 * data.c (Fmake_local_variable):
2275 * ccl.c (ccl_driver): Likewise.
2276
22772007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2278
2279 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
2280 Call mac_wakeup_from_rne on window size change.
2281
22822007-05-25 Chong Yidong <cyd@stupidchicken.com>
2283
2284 * image.c (uncache_image): Fix typo.
2285
22862007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
2287
2288 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
2289
22902007-05-22 Richard Stallman <rms@gnu.org>
2291
2292 * xterm.c (x_connection_closed): Remove NO_RETURN.
2293
22942007-05-22 Martin Rudalics <rudalics@gmx.at>
2295
2296 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2297
22982007-05-21 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * image.c (uncache_image): New function.
2301 (Fimage_refresh): New function.
2302
23032007-05-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2304
2305 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
2306
23072007-05-20 Nick Roberts <nickrob@snap.net.nz>
2308
2309 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
2310 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
2311
23122007-05-20 Nick Roberts <nickrob@snap.net.nz>
2313
2314 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
2315 conditional on [HAVE_GPM_H].
2316
23172007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2318
2319 * syntax.c (skip_chars): Update syntax-table only after we checked that
2320 the new location is valid.
2321
23222007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2323
2324 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
2325 mac_get_window_bounds.
2326
23272007-05-20 Nick Roberts <nickrob@snap.net.nz>
2328
2329 * Makefile.in (LIBGPM): Allow it to be set from configure.
2330 If set then link Emacs with it.
2331
2332 * config.in: Regenerate.
2333
2334 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
2335 New externs.
2336
2337 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
2338 Include gpm.h.
2339 (handle_one_term_event, term_gpm): New externs.
2340
2341 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
2342 and allow it to be interrupted by SIGIO.
2343
2344 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
2345 (wait_reading_process_output): Wait on gpm_fd too.
2346 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
2347 (add_gpm_wait_descriptor_called_flag): New variable.
2348 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
2349
2350 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
2351 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
2352 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
2353 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
2354 (make_lispy_event): Add case GPM_CLICK_EVENT.
2355 (read_avail_input): Handle mouse input.
2356
2357 * term.c (write_glyphs_with_face): New function.
2358 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
2359 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
2360 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
2361 (mouse_face_face_id, term_gpm, pos_x, pos_y)
2362 (last_mouse_x, last_mouse_y): New variables.
2363 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
2364 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
2365 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
2366 (Fterm_close_connection): New functions.
2367 (term_init): Initialise mouse_face_window.
2368
23692007-05-19 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * xdisp.c (redisplay_window): If first window line is a
2372 continuation line, recompute the new window start instead of
2373 recentering.
2374
23752007-05-18 Glenn Morris <rgm@gnu.org>
2376
2377 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
2378 Suggested by Alfred M. Szmidt <ams@gnu.org>.
2379
23802007-05-17 Glenn Morris <rgm@gnu.org>
2381
2382 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
2383
23842007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2385
2386 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
2387 dead key repeat and up events.
2388
23892007-05-14 Chong Yidong <cyd@stupidchicken.com>
2390
2391 * image.c (pbm_load): Check image size for monochrome pbm.
2392
23932007-05-13 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * xterm.c (XTread_socket): Revert last change.
2396
23972007-05-12 Chong Yidong <cyd@stupidchicken.com>
2398
2399 * image.c (pbm_load): Correctly check image size for greyscale pbm.
2400
2401 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
2402
24032007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
2406 mixup (YAILOM).
2407
24082007-05-07 Andreas Schwab <schwab@suse.de>
2409
2410 * keymap.c (Flookup_key): Fix typo in last change.
2411
24122007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2413
2414 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
2415 mapping for unibyte strings.
2416
24172007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2418
2419 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
2420 (Fx_popup_dialog) [MAC_OSX]: Likewise.
2421
24222007-04-29 Richard Stallman <rms@gnu.org>
2423
2424 * insdel.c (replace_range): For undo, record insertion first.
2425
24262007-04-29 Andreas Schwab <schwab@suse.de>
2427
2428 * lisp.h (VECSIZE): Use OFFSETOF.
2429
24302007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2431
2432 * xdisp.c (try_window_reusing_current_matrix): Fix number of
2433 disabled lines.
2434
24352007-04-28 Richard Stallman <rms@gnu.org>
2436
2437 * lread.c (read_escape): In a string, \s is always space.
2438
24392007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2440
2441 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
2442
2443 * gtkutil.c (xg_update_menubar, create_menus): Create empty
2444 submenu for menu bar items.
2445
382c648d 2446See ChangeLog.10 for earlier changes.
6922b018
KH
2447
2448;; Local Variables:
49b3bd82 2449;; coding: iso-2022-7bit
33462dfa 2450;; add-log-time-zone-rule: t
6922b018 2451;; End:
2a34a036 2452
382c648d 2453 Copyright (C) 2007 Free Software Foundation, Inc.
7f6d64f8
GM
2454
2455 This file is part of GNU Emacs.
2456
2457 GNU Emacs is free software; you can redistribute it and/or modify
2458 it under the terms of the GNU General Public License as published by
684d6f5b 2459 the Free Software Foundation; either version 3, or (at your option)
7f6d64f8
GM
2460 any later version.
2461
2462 GNU Emacs is distributed in the hope that it will be useful,
2463 but WITHOUT ANY WARRANTY; without even the implied warranty of
2464 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2465 GNU General Public License for more details.
2466
2467 You should have received a copy of the GNU General Public License
2468 along with GNU Emacs; see the file COPYING. If not, write to the
2469 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
2470 Boston, MA 02110-1301, USA.
ab5796a9 2471
28f60c3d 2472;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40