]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(Fswitch_to_buffer): Move buffer to front of
[gnu-emacs] / src / ChangeLog
1 2006-08-25 Nick Roberts <nickrob@snap.net.nz>
2
3 * buffer.c (Fswitch_to_buffer): Move buffer to front of
4 buffer-alist if necessary.
5
6 2006-08-22 Kim F. Storm <storm@cua.dk>
7
8 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
9 number of items changes.
10
11 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
14
15 2006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16
17 * keyboard.c: Clarify difference between in_sighandler and
18 handling_signal.
19
20 2006-08-21 Kim F. Storm <storm@cua.dk>
21
22 * macterm.c (x_draw_stretch_glyph_string):
23 * w32term.c (x_draw_stretch_glyph_string):
24 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
25 stretch glyph in left marginal areas on header and mode lines.
26
27 2006-08-21 Kenichi Handa <handa@m17n.org>
28
29 * keyboard.c (syms_of_keyboard): Docstring of
30 Vunread_post_input_method_events and Vunread_input_method_events
31 fixed.
32
33 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
34
35 * keyboard.c (show_help_echo): Preserve mouse movement flag if
36 tracking mouse.
37
38 2006-08-20 Richard Stallman <rms@gnu.org>
39
40 * xfaces.c (load_pixmap): Add quotes in error message.
41
42 * keyboard.c (Fcurrent_idle_time): New function.
43 (syms_of_keyboard): defsubr it.
44
45 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
46
47 * window.c (Fset_window_fringes): Do nothing on a tty.
48 (Fwindow_fringes): Put ? operator after the line break.
49
50 2006-08-16 Andreas Schwab <schwab@suse.de>
51
52 * print.c (debug_output_compilation_hack): Fix return type.
53
54 2006-08-16 Richard Stallman <rms@gnu.org>
55
56 * print.c (debug_output_compilation_hack): New function.
57
58 2006-08-16 Kenichi Handa <handa@m17n.org>
59
60 * fileio.c (choose_write_coding_system): Use LF for end-of-line
61 in auto-saving.
62
63 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
64
65 * keyboard.c (read_char): Don't change idle timer state at all if
66 end_time is supplied.
67
68 2006-08-15 Kenichi Handa <handa@m17n.org>
69
70 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
71 is exhausted, return with RET.
72 (detect_coding_emacs_mule, detect_coding_iso2022)
73 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
74 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
75 change.
76
77 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
78
79 * keyboard.c (read_char): Don't reset idle timers if a time limit
80 is supplied.
81
82 2006-08-14 Kim F. Storm <storm@cua.dk>
83
84 * .gdbinit (pitx): Print iterator position.
85 Limit stack dump in case iterator is not initialized.
86
87 2006-08-12 Eli Zaretskii <eliz@gnu.org>
88
89 * frame.c (Fmouse_position, Fmouse_pixel_position)
90 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
91
92 2006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
93
94 * xselect.c (Fx_register_dnd_atom): New function.
95 (syms_of_xselect): Defsubr it.
96 (x_handle_dnd_message): Check that message_type is in
97 dpyinfo->x_dnd_atoms before generating lisp event.
98
99 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
100 of drag and drop Atoms.
101
102 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
103
104
105 2006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
106
107 * keyboard.c: Define in_sighandler.
108 (input_available_signal): Set in_sighandler.
109 (init_keyboard): Initialize in_sighandler.
110
111 * keyboard.h: Declare in_sighandler.
112
113 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
114 to check if mutex should be locked or not.
115
116 2006-08-09 Richard Stallman <rms@gnu.org>
117
118 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
119 (read_key_sequence): Always start fkey.start and fkey.end at 0,
120 and likewise for keytran.
121
122 2006-08-09 Kenichi Handa <handa@m17n.org>
123
124 * coding.c (syms_of_coding): Improve the docstring
125 file-coding-system-alist.
126
127 2006-08-07 Andreas Schwab <schwab@suse.de>
128
129 * puresize.h (BASE_PURESIZE): Increase to 1120000.
130
131 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
132
133 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
134 (Fkill_all_local_variables): Use it.
135 (syms_of_buffer): Defvar it.
136
137 2006-08-05 Eli Zaretskii <eliz@gnu.org>
138
139 * w32.c (w32_valid_pointer_p): New function.
140
141 * w32.h: Add prototype for w32_valid_pointer_p.
142
143 * alloc.c: Include w32.h.
144 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
145 the job.
146
147 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
148 is exactly equal to end_time, not only when it is past that.
149
150 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
151
152 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
153
154 * process.c: Reapply 2006-08-01 change.
155
156 2006-08-04 Eli Zaretskii <eliz@gnu.org>
157
158 * w32fns.c (w32_query_font): Fix last change: use stricmp.
159
160 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
161
162 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
163 the before-change-functions since they may have altered the buffer.
164
165 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
166
167 * w32fns.c (w32_createwindow): Handle -geometry command line option
168 and the geometry settings in the Registry.
169
170 2006-08-04 Kenichi Handa <handa@m17n.org>
171
172 * w32fns.c (w32_query_font): Compare names by ignoring case.
173
174 * xterm.c (x_query_font): Compare names by ignoring case.
175
176 2006-08-03 Jason Rumney <jasonr@gnu.org>
177
178 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
179 when no option selected.
180
181 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
182
183 * process.c: Revert last change.
184
185 2006-08-01 Kim F. Storm <storm@cua.dk>
186
187 * process.c (wait_reading_process_output_unwind): New function.
188 Restores waiting_for_user_input_p to saved value.
189 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
190 instead of save/restore old value on stack.
191
192 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
193
194 * editfns.c: Undo 2006-06-27 change.
195
196 2006-07-29 Eli Zaretskii <eliz@gnu.org>
197
198 * coding.c (Ffind_operation_coding_system): Revert the change from
199 2006-05-29.
200
201 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
202
203 2006-07-28 Richard Stallman <rms@gnu.org>
204
205 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
206 Add conditional aborts for clarity.
207
208 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
209 Used to avoid running the hooks over and over for each frame.
210 (prepare_menu_bars): Pass value from update_menu_bar
211 as HOOKS_RUN of next call.
212
213 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
214
215 2006-07-28 Kim F. Storm <storm@cua.dk>
216
217 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
218 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
219
220 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
221
222 * keyboard.c (read_char): New arg END_TIME specifying timeout.
223 All callers changed. Turn off echoing if END_TIME is non-NULL.
224 (kbd_buffer_get_event): New arg END_TIME.
225
226 * lread.c (read_filtered_event): New arg SECONDS to wait until.
227 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
228
229 * lisp.h: Update read-char, read-event, and read_filtered_event
230 prototypes.
231
232 * keyboard.h: Include systime.h. Update read_char prototype.
233
234 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
235
236 * alloc.c (find_string_data_in_pure): New function.
237 (make_pure_string): Use it to reuse existing string data if possible.
238
239 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
240
241 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
242
243 * keymap.c (Fdefine_key): If the key binding definition looks like an
244 XEmacs-style key sequence, convert it to Emacs's format.
245
246 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
247
248 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
249 parameters are bound to some values, use that instead of
250 CW_USEDEFAULT.
251
252 2006-07-21 Eli Zaretskii <eliz@gnu.org>
253
254 * w32.c (convert_time): Use explicit long double constants to
255 ensure long double arithmetics is used throughout.
256
257 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
258
259 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
260 (init_alloc_once): Initialize them.
261 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
262 without alignment.
263
264 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
265
266 2006-07-18 Francis Litterio <franl@world.std.com>
267
268 * w32term.c (x_calc_absolute_position): Fix frame positioning
269 with negative X/Y coordinates.
270
271 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
272
273 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
274
275 * textprop.c (text_read_only): Likewise.
276
277 * lread.c (end_of_file_error): Likewise.
278
279 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
280 Likewise.
281
282 * eval.c (unwind_to_catch): Likewise.
283
284 * buffer.h (buffer_slot_type_mismatch): Likewise.
285
286 2006-07-18 Kim F. Storm <storm@cua.dk>
287
288 Cleanup Fsignal calls that never returns; now only use it for Qquit.
289
290 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
291 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
292 (signal_error): New no-return function (from xfaces.c).
293 (Fthrow): Use xsignal2 instead of Fsignal + abort.
294 (error): Use xsignal1 instead of Fsignal + abort.
295 (FletX, Flet, grow_specpdl): Use signal_error.
296 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
297
298 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
299 (list1): New function.
300
301 * lisp.h (list1): Add EXFUN.
302 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
303 Add prototypes. Mark them as no-return.
304
305 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
306 Use xsignal1.
307
308 * callint.c (check_mark): Use xsignal0.
309
310 * casefiddle.c (casify_object): wrong_type_argument is no-return.
311
312 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
313
314 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
315 (Fdefine_coding_system_internal): Use xsignal1.
316
317 * data.c (circular_list_error): Use xsignal.
318 (wrong_type_argument): Use xsignal2. Don't care about return value.
319 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
320 Remove loop around Fsignal.
321 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
322 (indirect_function, Findirect_function, Fstring_to_number)
323 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
324 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
325 Use xsignal0.
326
327 * doc.c (Fdocumentation): Use xsignal1.
328
329 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
330
331 * fileio.c (report_file_error): Use xsignal.
332 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
333 (Finsert_file_contents): Use xsignal2.
334 (syms_of_fileio): Use list2, list3.
335
336 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
337 (range_error2, domain_error2): Use xsignal3.
338 (rounding_driver, fmod_float): Use xsignal0.
339 (float_error): Use xsignal1.
340 (matherr): Use xsignal.
341
342 * fns.c (Flength): wrong_type_argument is no-return.
343 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
344 (Fmd5): Use xsignal1.
345
346 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
347
348 * keyboard.c (recursive_edit_1): Use xsignal1.
349
350 * keymap.c (Fmap_keymap): Use xsignal1.
351
352 * lread.c (Fload): Use xsignal2, signal_error.
353 (end_of_file_error): Use xsignal0, xsignal1.
354 (read0): Use xsignal1.
355 (invalid_syntax): New error function marked no-return.
356 (read_integer, read1, read_list): Use it.
357
358 * macselect.c (x_get_local_selection): Use signal_error.
359
360 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
361
362 * search.c (compile_pattern_1): Use xsignal1.
363 (signal_failure): Remove (was only called once).
364 (search_command): Use xsignal1 instead of signal_failure.
365
366 * syntax.c (scan_lists): Use xsignal3.
367
368 * textprop.c (text_read_only): Use xsignal0, xsignal1.
369
370 * unexsol.c (unexec): Use xsignal.
371
372 * window.c (window_scroll_pixel_based, window_scroll_line_based):
373 Use xsignal0.
374
375 * xfaces.c (signal_error): Move to eval.c.
376 (resolve_face_name): Use xsignal1.
377
378 * xfns.c (x_decode_color): Use signal_error.
379
380 * xselect.c (x_get_local_selection, copy_multiple_data)
381 (x_get_window_property_as_lisp_data)
382 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
383 (Fx_get_cut_buffer_internal): Use signal_error.
384
385 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
386
387 * macterm.c (XTread_socket): Undo previous change.
388
389 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
390
391 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
392 directly lookup keycode_to_xkeysym_table.
393 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
394 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
395 (XTread_socket): Use character codes to construct keypad key events.
396 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
397 (x_delete_display): Apply 2006-07-04 change for xterm.c.
398
399 2006-07-17 Richard Stallman <rms@gnu.org>
400
401 * keyboard.c (Vcommand_error_function): New variable.
402 (syms_of_keyboard): Defvar it.
403 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
404
405 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
406
407 2006-07-17 Kim F. Storm <storm@cua.dk>
408
409 * xdisp.c (handle_single_display_spec): Ensure the right value of
410 it->position is saved by push_it.
411 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
412 (reseat_1): Don't setup it->object twice.
413 (set_iterator_to_next): No need to set it->object after pop_it.
414 (move_it_to): Explicitly check to see if last move reached to_charpos.
415
416 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
417
418 * xdisp.c (display_mode_line): Preserve match data.
419
420 2006-07-14 Kim F. Storm <storm@cua.dk>
421
422 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
423 (init_winsock): Load them. Use ws2_32.dll.
424 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
425 (sys_accept): Undo last change. Instead, set child status to
426 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
427 sys_select will wakeup the reader thread.
428 (_sys_wait_accept): New function used by reader thread to wait for
429 an incoming connection on a server socket.
430
431 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
432
433 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
434 server socket (FILE_LISTEN flag).
435
436 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
437
438 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
439
440 2006-07-14 Kim F. Storm <storm@cua.dk>
441
442 * w32.c: Fix high cpu load for server sockets.
443 (pfn_WSAEventSelect): New function ptr.
444 (init_winsock): Load it.
445 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
446 char_avail event object to FD_ACCEPT.
447 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
448 socket's char_avail event object to FD_READ|FD_CLOSE.
449
450 * w32.h (FILE_LISTEN): New filedesc flag value.
451
452 2006-07-13 Kim F. Storm <storm@cua.dk>
453
454 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
455 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
456 Simplify loops and use CAR for Bnth and Belt.
457
458 * data.c (Findirect_function): Optimize for no indirection.
459
460 * eval.c (Fthrow): Remove loop around Fsignal.
461 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
462 Use original function name in all signaled errors.
463 Simplify Fsignal calls (no return).
464 (funcall_lambda): Simplify Fsignal calls (no return).
465
466 2006-07-13 Andreas Schwab <schwab@suse.de>
467
468 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
469 out_charpos.
470
471 2006-07-13 Kenichi Handa <handa@m17n.org>
472
473 * editfns.c (Fformat): Fix calculation of text property positions
474 of format string.
475
476 2006-07-12 Kim F. Storm <storm@cua.dk>
477
478 * lisp.h (CHECK_TYPE): New macro for generic type checking.
479 (CAR_SAFE, CDR_SAFE): New macros.
480 (ARRAYP, CHECK_ARRAY): New macros.
481 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
482 (CHECK_WINDOW_CONFIGURATION): New macro.
483 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
484 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
485 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
486 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
487 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
488 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
489 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
490 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
491
492 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
493 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
494
495 * callint.c (Fcall_interactively):
496 * casefiddle.c (casify_object):
497 * editfns.c (general_insert_function):
498 * fns.c (Flength, Felt, Ffillarray):
499 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
500
501 * data.c (wrong_type_argument): Remove loop around Fsignal.
502 (Farrayp, Fsequencep): Use ARRAYP.
503 (Fcar): Use CAR.
504 (Fcar_safe): Use CAR_SAFE.
505 (Fcdr): Use CDR.
506 (Fcdr_safe): Use CDR_SAFE.
507 (Fsetcar, Fsetcdr): Use CHECK_CONS.
508 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
509 (Faset): Use CHECK_ARRAY.
510
511 * fns.c (Felt): Use CHECK_ARRAY.
512 (concat): Use CHECK_NUMBER.
513 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
514 (Fmemq): Use CHECK_LIST.
515 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
516 (assq_no_quit): Use CAR_SAFE.
517 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
518 Use CHECK_LIST_CONS.
519 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
520
521 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
522
523 * casetab.c (check_case_table):
524 * category.c (check_category_table):
525 * marker.c (Fcopy_marker):
526 * syntax.c (check_syntax_table):
527 * xfaces.c (load_pixmap): Use CHECK_TYPE.
528
529 * fns.c (Fcopy_sequence, concat):
530 * fringe.c (Fdefine_fringe_bitmap):
531 * lread.c (check_obarray): Cleanup wrong_type_argument use.
532
533 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
534
535 * keymap.c (Fdefine_key, Flookup_key):
536 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
537
538 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
539
540 * search.c (Fset_match_data): Use CHECK_LIST.
541
542 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
543
544 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
545 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
546
547 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
548
549 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
550
551 * dired.c: Include blockinput.h.
552 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
553
554 * editfns.c: Include blockinput.h.
555 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
556 getpwuid/getpwnam.
557
558 * fileio.c: Include blockinput.h.
559 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
560 around getpwnam.
561 (search_embedded_absfilename): Remove spurious xfree.
562
563 2006-07-11 Kim F. Storm <storm@cua.dk>
564
565 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
566 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
567 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
568 Signal error if TIMEOUT is not a number.
569 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
570 The rework of sit_for args also fixes several incorrect Qt args
571 which should have been 1.
572 (Fredisplay): Pass 1 instead of Qt to swallow_events and
573 detect_input_pending_run_timers.
574
575 * lisp.h (sit_for): Update prototype.
576 (Fredisplay): Add EXFUN.
577
578 * dispextern.h (sit_for): Remove prototype.
579
580 * callint.c (Fcall_interactively):
581 * minibuf.c (temp_echo_area_glyphs):
582 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
583 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
584
585 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
586
587 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
588
589 2006-07-11 Kim F. Storm <storm@cua.dk>
590
591 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
592 input is available. Fix test for redisplay_dont_pause non-nil.
593 Specbind redisplay-dont-pause to t if FORCE non-nil.
594
595 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
596
597 * puresize.h (BASE_PURESIZE): Increment to 1211000.
598
599 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
600 (Fsit_for): Function deleted.
601
602 * keyboard.c (command_loop_1, Fexecute_extended_command):
603 Call sit_for instead of Fsit_for.
604
605 * minibuf.c (temp_echo_area_glyphs): Likewise.
606
607 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
608
609 * syntax.c (Fforward_comment): Revert the reversion.
610 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
611
612 2006-07-09 John Paul Wallington <jpw@pobox.com>
613
614 * syntax.c (Fforward_comment): Revert previous change.
615
616 2006-07-09 Kim F. Storm <storm@cua.dk>
617
618 * window.c (Fforce_window_update): Doc fix.
619
620 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
621
622 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
623 directory unreadable for better user privacy.
624
625 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
626
627 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
628
629 * lread.c (read_filtered_event): Remove `register' qualifier because it
630 causes compilation problem with gcc-4.0.2-20051125 on amd64.
631 (readevalloop): Remove unused var `bpos'.
632 Yet another int/Lisp_Object mixup (YAILOM).
633
634 2006-07-07 Eli Zaretskii <eliz@gnu.org>
635
636 * keyboard.c (Fexecute_extended_command): Mention the argument
637 PREFIXARG in the doc string.
638
639 2006-07-07 Kim F. Storm <storm@cua.dk>
640
641 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
642
643 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
644
645 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
646 clash detection using the base buffer.
647
648 * puresize.h (BASE_PURESIZE): Increment to 1210500.
649
650 2006-07-04 Kim F. Storm <storm@cua.dk>
651
652 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
653
654 2006-07-04 Kenichi Handa <handa@m17n.org>
655
656 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
657 to update Voverriding_fontspec_alist.
658
659 2006-07-03 Richard Stallman <rms@gnu.org>
660
661 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
662
663 * xfaces.c (Fface_attribute_relative_p): Doc fix.
664
665 * textprop.c (Fget_char_property_and_overlay): Doc fix.
666
667 * eval.c (Fdefvaralias): Doc fix.
668
669 2006-07-03 Kim F. Storm <storm@cua.dk>
670
671 * dispnew.c (sit_for): Fix preempt condition.
672
673 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
674
675 * lread.c (read_filtered_event): Treat select-window just like
676 switch-frame.
677
678 2006-07-02 Kim F. Storm <storm@cua.dk>
679
680 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
681 to ever fit the tool-bar,
682 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
683 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
684 (redisplay_tool_bar): Only clear desired matrix if we actually
685 change the tool-bar window height. Only try to make the tool-bar
686 window bigger if there is actually room for it.
687
688 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
689
690 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
691 SPI_GETWORKAREA to find the dimensions of the screen work area,
692 and adjust vertical position of the frame in order to avoid being
693 covered by the task bar.
694
695 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
696 f->left_pos and SH_SHOW instead of f->top_pos in the call to
697 CreateWindow. Record the actual position in f->left_pos and
698 f->top_pos.
699
700 2006-06-30 John Paul Wallington <jpw@pobox.com>
701
702 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
703 Doc fix - default value has changed.
704
705 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
706
707 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
708
709 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
710
711 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
712
713 * macterm.c (Qeql): Add extern.
714 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
715 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
716 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
717 Change keys of Vmac_atsu_font_table from strings to numbers.
718 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
719 (init_font_name_table) [USE_ATSUI]: Use it.
720 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
721 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
722 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
723 only when saved_ts_script_language_on_focus coincides with
724 Vmac_ts_script_language_on_focus.
725 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
726 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
727 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
728 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
729
730 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
731
732 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
733 (Ffield_string_no_properties, Ffield_end): Mention
734 args-out-of-range error condition in docstring.
735
736 2006-06-27 Kim F. Storm <storm@cua.dk>
737
738 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
739
740 2006-06-25 Kim F. Storm <storm@cua.dk>
741
742 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
743 version 2.4 and later.
744
745 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
746
747 * xfns.c (Fx_create_frame): Set font parameter directly instead of
748 using x_default_parameter, since x_get_args clears the parm alist.
749
750 2006-06-24 Eli Zaretskii <eliz@gnu.org>
751
752 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
753 case-insensitively.
754
755 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
756
757 * lread.c (read_escape): When an unknown Unicode code point is
758 encountered as a string or character escape, signal an error.
759
760 2006-06-23 Kim F. Storm <storm@cua.dk>
761
762 * .gdbinit (pitx): Dump iterator stack.
763
764 * xdisp.c (handle_composition_prop): Push iterator on stack.
765 (set_iterator_to_next): Pop iterator at end of composition.
766
767 2006-06-23 Martin Rudalics <rudalics@gmx.at>
768
769 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
770 itself on DOS_NT platforms, if the old and new names are identical
771 but for the letter-case.
772
773 2006-06-21 Kim F. Storm <storm@cua.dk>
774
775 * dispextern.h (struct it): Add `position' member to iterator stack.
776 Rename `pos' member to `current'. Rearrange and add comments.
777
778 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
779 if we get any overlays.
780 (set_cursor_from_row): Don't clobber `end' if we rescan from
781 start_string.
782 (push_it, pop_it): Save it->position.
783
784 2006-06-19 Richard Stallman <rms@gnu.org>
785
786 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
787 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
788 for the case of a top-level window and the following minibuffer.
789 Don't exit because of no `next' when there is a parent.
790 Use the FIRST_ONLY feature when resizing following windows.
791
792 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
793
794 2006-06-17 Kim F. Storm <storm@cua.dk>
795
796 * dispnew.c (update_frame): Check for input pending on entry.
797 (update_window, update_frame_1): Break loop if input is detected.
798
799 2006-06-16 Francis Litterio <flitterio@gmail.com>
800
801 * xterm.c (x_check_expected_move, handle_one_xevent)
802 (x_set_offset, x_check_fullscreen): Extensive changes to make
803 frame positioning deterministic under X.
804
805 * xterm.h (x_output): Added members left_before_move and
806 top_before_move. Removed members expected_left and expected_top.
807
808 2006-06-16 Kim F. Storm <storm@cua.dk>
809
810 * dispextern.h (struct it): Add union to iterator stack to save
811 image, composition, and stretch specific paramters.
812
813 * xdisp.c (next_overlay_string): Fix assert.
814 (push_it, pop_it): Handle composition and stretch specific values.
815 Only handle it->slice in image (for now).
816 (back_to_previous_visible_line_start): Continue search if newline is
817 part of a compisition. Simplify.
818 (reseat_1): Set it->object to buffer.
819 (set_iterator_to_next): Set it->object to string or buffer, when
820 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
821 (next_element_from_composition): Set it->object to buffer if not
822 from string.
823 (set_cursor_from_row): Only save start of string if not already
824 done to handle multiple strings in a row.
825
826 * .gdbinit (pitx): Show composition parameters.
827 (pgx, pg): New commands to print a glyph structure.
828 (pgi, pgn): New commands to print specific/next glyph.
829 (pgrowx, pgrow): New commands to print all glyphs in a row.
830
831 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
832
833 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
834 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
835
836 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
837 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
838 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
839 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
840 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
841 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
842 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
843 Services functions to get size of main display in pixels.
844
845 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
846
847 * xdisp.c (back_to_previous_visible_line_start): Reset
848 it->continuation_lines_width.
849
850 2006-06-14 Richard Stallman <rms@gnu.org>
851
852 * eval.c (Fdefconst): Mark variable as risky.
853
854 * callproc.c (Fcall_process): Doc fix.
855
856 * window.c (adjust_window_trailing_edge): Don't break out of the loop
857 because there's no next window, if there are parallel windows.
858 Do break out when WINDOW is nil.
859
860 2006-06-14 Kim F. Storm <storm@cua.dk>
861
862 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
863 iterator stack (instead of hardcoded number). Increase from 2 to
864 4 to make room for propertized overlay strings before and after a
865 display string, image or composition.
866 (struct it): Add image_id and method members to iterator stack.
867
868 * xdisp.c (init_from_display_pos): Don't set it->method and
869 overlay_string_index after pop_it. Add asserts.
870 (handle_stop): Look for overlay strings around a display string,
871 image, or composition. Handle properties on those strings.
872 (next_overlay_string): Don't set string, pos or method after pop_it.
873 (get_overlay_strings_1): Split from get_overlay_strings; don't
874 modify it if no overlay strings are found.
875 (get_overlay_strings): Use get_overlay_strings_1. Always set
876 it->string and it->method.
877 (push_it): Push it->image_id and it->method. Push it->object
878 instead of it->string if method is GET_FROM_IMAGE.
879 (pop_it): Pop it->image_id and it->method. Ppo it->object
880 instead of it->string if method is GET_FROM_IMAGE.
881 Reset it->current.string_pos if popped it->string is nil.
882 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
883 whether a given change was correct; but the change is correct.
884 Clear it->string_from_display_prop_p.
885 (set_iterator_to_next): Rely on it->method and it->image_id from
886 iterator stack, instead of setting them explicitly after pop_it.
887
888 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
889 negative time forces redisplay even when input is available.
890 (Fsit_for): Doc fix.
891
892 2006-06-13 Kim F. Storm <storm@cua.dk>
893
894 * dispnew.c: Modify preemptive redisplay to be based on periodic
895 checks for input.
896 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
897 (Vredisplay_preemption_period): New variable.
898 (syms_of_display): DEFVAR_LISP and initialize it.
899 (preemption_period, preemption_next_check): New variables.
900 (update_frame, update_single_window): Initialize them based on
901 Vredisplay_preemption_period if !force_p.
902 (update_window, update_frame_1): Use them to determine when to
903 check for input.
904
905 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
906
907 * lread.c (read_escape): Provide a Unicode character escape
908 syntax; \u followed by exactly four or \U followed by exactly
909 eight hex digits in a comment or string is read as a Unicode
910 character with that code point.
911
912 2006-06-09 Eli Zaretskii <eliz@gnu.org>
913
914 * window.c (window_scroll_pixel_based): Signal "Beginning of
915 buffer" when scroll-down at the beginning of an empty buffer.
916
917 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
918
919 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
920 0x7f from ASCII range.
921
922 2006-06-05 Jason Rumney <jasonr@gnu.org>
923
924 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
925 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
926 (x_scroll_bar_report_motion): Remove workarounds for
927 versions of Windows NT < 3.51.
928 [!SIF_ALL]: Remove.
929 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
930 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
931
932 2006-06-04 David Kastrup <dak@gnu.org>
933
934 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
935 `sit-for'.
936
937 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
938
939 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
940
941 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
942
943 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
944 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
945 [USE_MAC_TSM]: Likewise.
946 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
947 (Qbefore_string) [USE_MAC_TSM]: Add extern.
948 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
949 ActivateTSMDocument/DeactivateTSMDocument.
950 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
951 (mac_handle_window_event) [USE_MAC_TSM]: Handle
952 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
953 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
954 (install_window_handler) [USE_MAC_TSM]: Install it. Register
955 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
956 (keycode_to_xkeysym_table): Add entry for f16.
957 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
958 before/after passing keystroke event to toolbox dispatcher.
959 (init_tsm) [USE_MAC_TSM]: New function.
960 (mac_initialize) [USE_MAC_TSM]: Call it.
961 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
962
963 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
964
965 2006-06-02 John Paul Wallington <jpw@gnu.org>
966
967 * xfns.c (x_set_name_internal): Set icon to `text', derived from
968 name, when frame's icon_name isn't a string rather than only when
969 it is nil.
970
971 2006-06-03 Eli Zaretskii <eliz@gnu.org>
972
973 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
974 and not nil.
975
976 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
977
978 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
979 string.
980
981 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
982
983 * xdisp.c (next_element_from_composition): Set it->object to
984 it->string if composition is coming from string.
985 (set_cursor_from_row): Don't return 0 unless row displays a
986 continued line.
987 (dump_glyph): Dump composite glyph.
988
989 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
990
991 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
992
993 2006-06-01 Richard Stallman <rms@gnu.org>
994
995 * window.c (Fsplit_window): Doc fix.
996
997 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
998
999 * process.c (deleted_pid_list): New variable to store the pids
1000 of deleted processes. Declare it only if SIGCHLD is defined.
1001 (init_process): Initialize it.
1002 (syms_of_process): Staticpro it.
1003 (Fdelete_process): Add pid of the deleted process to it. Check after
1004 the addition and before the kill if the process is already stopped,
1005 in which case it is deleted from the list and not killed.
1006 (sigchld_handler): Define it only if SIGCHLD is. Search the process
1007 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
1008 Original idea by Stefan Monnier.
1009
1010 2006-06-01 Kim F. Storm <storm@cua.dk>
1011
1012 * dispnew.c (sit_for): Perform redisplay even if input is pending
1013 when redisplay-dont-pause is non-nil.
1014
1015 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1016
1017 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
1018 (XTread_socket): Remove obsolete comment.
1019
1020 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1021
1022 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
1023 menu-bar-open.
1024
1025 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1026
1027 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
1028 menu-bar-open.
1029
1030 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
1031
1032 2006-05-31 Juri Linkov <juri@jurta.org>
1033
1034 * minibuf.c (Vhistory_add_new_input): New variable.
1035 (read_minibuf): Use it.
1036 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
1037 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
1038
1039 2006-05-31 Kim F. Storm <storm@cua.dk>
1040
1041 * process.c (select_wrapper): Add wrapper around select to work around
1042 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
1043 select called from wait_reading_process_output.
1044
1045 2006-05-30 Andreas Schwab <schwab@suse.de>
1046
1047 * xmenu.c (Fmenu_bar_start): Return a value.
1048
1049 2006-05-30 Richard Stallman <rms@gnu.org>
1050
1051 * coding.c (Ffind_operation_coding_system): Doc fix.
1052
1053 2006-05-30 Eli Zaretskii <eliz@gnu.org>
1054
1055 * w32term.c (x_draw_hollow_cursor): Fix last change.
1056
1057 2006-05-29 Kim F. Storm <storm@cua.dk>
1058
1059 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
1060
1061 2006-05-29 Eli Zaretskii <eliz@gnu.org>
1062
1063 * coding.c (Ffind_operation_coding_system): Doc fix.
1064
1065 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1066
1067 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
1068 Call mac_set_font_info_for_selection if font panel is made visible.
1069
1070 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
1071 (mac_font_panel_visible_p, mac_show_hide_font_panel)
1072 [USE_MAC_FONT_PANEL]: New functions.
1073 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
1074 immediately if font panel is not visible.
1075
1076 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
1077 Add externs.
1078
1079 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
1080
1081 * search.c (matcher_overflow): Mark as NO_RETURN.
1082
1083 * xterm.c (x_connection_closed): Likewise.
1084
1085 * sysdep.c (croak): Likewise.
1086
1087 * sound.c (sound_perror, alsa_sound_perror): Likewise.
1088
1089 * lisp.h (die, nsberror): Likewise.
1090
1091 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1092
1093 * sound.c (alsa_open, alsa_configure, alsa_write): Move
1094 assignment to err out of if-statement.
1095
1096 * gtkutil.c (menu_nav_ended): New function.
1097 (create_menus): Connect menu_nav_ended to "selection-done" to fix
1098 grabs.
1099
1100 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
1101
1102 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
1103
1104 * charset.h (invalid_character): Mark as NO_RETURN.
1105
1106 2006-05-29 Kenichi Handa <handa@m17n.org>
1107
1108 * coding.c (Ffind_operation_coding_system): Call a function by
1109 safe_call1 instead of call1.
1110
1111 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1112
1113 * window.c (struct saved_window): Add `dedicated'.
1114 (Fset_window_configuration, save_window_save): Save/restore the
1115 `dedicated' flag.
1116
1117 2006-05-28 Kim F. Storm <storm@cua.dk>
1118
1119 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
1120 don't update w->cursor and return 0. Return 1 on success.
1121 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
1122 until it succeeds.
1123
1124 * dispextern.h (set_cursor_from_row): Update prototype.
1125
1126 2006-05-28 Kim F. Storm <storm@cua.dk>
1127
1128 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
1129 parameters. Adjust x and width in case cursor in on a partially
1130 visible stretch glyph on the left edge.
1131 (erase_phys_cursor): Don't erase into left fringe/margin in case
1132 previous cursor glyph is a partially visible stretch glyph on left.
1133
1134 * dispextern.h (get_phys_cursor_geometry): Update prototype.
1135
1136 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
1137 cursor and erasing cursor on partially visible stretch glyph on left.
1138 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
1139
1140 * macterm.c: Likewise.
1141
1142 * w32term.c: Likewise.
1143
1144 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1145
1146 * macselect.c (mac_handle_apple_event):
1147 Return errAEEventNotHandled if key binding is not found.
1148
1149 2006-05-26 Eli Zaretskii <eliz@gnu.org>
1150
1151 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
1152 [__MINGW32__]: MinGW-specific declaration of `etext'.
1153
1154 * w32heap.c (etext, edata): Remove unused definitions.
1155
1156 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
1157
1158 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
1159 Incorporate the exclusive file-opening functionality into the behavior
1160 when OK-IF-ALREADY-EXISTS is nil.
1161 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
1162
1163 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1164
1165 * sound.c (alsa_configure): Move get period/buffer_size after
1166 setting hwparams.
1167
1168 2006-05-26 Kenichi Handa <handa@m17n.org>
1169
1170 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
1171 . BUFFER) in TARGET.
1172
1173 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * image.c (png_load): Don't call fclose on NULL.
1176
1177 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
1178
1179 * fns.c (Fyes_or_no_p):
1180 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
1181 only seven args.
1182
1183 2006-05-25 Juri Linkov <juri@jurta.org>
1184
1185 * lisp.h (Fread_from_minibuffer): Decrement number of args.
1186
1187 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
1188 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
1189
1190 * buffer.c (mode-line-format): Fix docstring.
1191
1192 2006-05-25 Richard Stallman <rms@gnu.org>
1193
1194 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
1195
1196 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
1197
1198 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1199
1200 2006-05-24 Alan Mackenzie <acm@muc.de>
1201
1202 * lread.c (Vload_history): Enhance doc-string to say that the file
1203 is the absolute truename of the loaded file.
1204
1205 * lread.c (Vafter_load_alist): doc-string: state that an element
1206 now has a regexp to match file names, not a file name as such.
1207
1208 * lread.c (readevalloop): Call file-truename on the name for
1209 load-history, except at preloading time.
1210
1211 * lread.c (Fload): At preloading time, preserve the extension of
1212 the filename which goes into load-history. New var hist_file_name.
1213
1214 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
1215 function do-after-load-evaluation.
1216
1217 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1218
1219 * mac.c (ae_attr_table): New variable.
1220 (syms_of_mac): Intern and staticpro its elements.
1221 (mac_aelist_to_lisp): Also convert Apple event attributes.
1222 (mac_ae_put_lisp): New function.
1223 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
1224
1225 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
1226
1227 * macselect.c (Qemacs_suspension_id): New variable.
1228 (syms_of_macselect): Intern and staticpro it.
1229 (struct suspended_ae_info): New struct.
1230 (deferred_apple_events, defer_apple_events)
1231 (Fmac_process_deferred_apple_events): Use it.
1232 (suspended_apple_events): New variable.
1233 (mac_handle_apple_event_1): New function.
1234 (mac_handle_apple_event): Use it. Don't process previously
1235 suspended events.
1236 (cleanup_suspended_apple_events, get_suspension_id)
1237 (cleanup_all_suspended_apple_events): New functions.
1238 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
1239 at exit.
1240 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
1241 (Fmac_resume_apple_event): New defuns.
1242 (syms_of_macselect): Defsubr them.
1243
1244 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
1245 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
1246
1247 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
1248 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
1249 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
1250 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1251 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1252 Likewise.
1253 (typeUTF8Text, kEventParamWindowMouseLocation)
1254 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
1255 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
1256
1257 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1258
1259 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
1260 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
1261 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
1262 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
1263 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
1264 resource to backtranslate key with modifiers.
1265 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
1266
1267 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1268
1269 * xterm.c: Remove declarations already in xterm.h
1270
1271 * xterm.h: Add extern declarations for x_clear_errors,
1272 x_fully_uncatch_errors, x_catching_errors and
1273 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
1274
1275 2006-05-21 Richard Stallman <rms@gnu.org>
1276
1277 * xfaces.c (best_matching_font): Abort for best == NULL
1278 before we start to use it.
1279
1280 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
1281
1282 2006-05-20 Kim F. Storm <storm@cua.dk>
1283
1284 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
1285
1286 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1287
1288 * macterm.c (convert_fn_keycode): Fix last change.
1289
1290 2006-05-19 Eli Zaretskii <eliz@gnu.org>
1291
1292 * w32.c (init_environment): Perform the processing of environment
1293 variables on a copy of default variables and their values, not on
1294 the original. Simplify code that calls ExpandEnvironmentStrings
1295 and make buf1[] and buf2[] more visible for easier debugging.
1296
1297 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1298
1299 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
1300
1301 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
1302
1303 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
1304
1305 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
1306 Forward keyUp events to toolbox_dispatcher.
1307
1308 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
1309
1310 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1311
1312 * config.in: Regenerated (HAVE_ALSA).
1313
1314 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
1315 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
1316 (snd_error_quiet, alsa_init): New functions.
1317 (vox_init): Return 0 if unable to open device.
1318 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
1319 a fallback.
1320 (struct sound_device): Add period_size.
1321 (wav_play, au_play): Use period_size if set.
1322
1323 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
1324 (ALL_CFLAGS): Add CFLAGS_SOUND
1325
1326 2006-05-18 Kenichi Handa <handa@m17n.org>
1327
1328 * callproc.c (Fcall_process): Reject encoding arguments by
1329 ascii-incompatible coding systems (e.g. utf-16).
1330
1331 * coding.c (Qascii_incompatible): New variable.
1332 (syms_of_coding): Setup Qascii_incompatible.
1333 (setup_coding_system): Be sure to initialize coding->common_flags.
1334 Check `ascii-incompatible' property of the coding system.
1335
1336 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
1337
1338 2006-05-18 Kim F. Storm <storm@cua.dk>
1339
1340 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
1341 backtracking in case last image doesn't fit on line.
1342
1343 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
1344
1345 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
1346 height of one frame default line.
1347
1348 2006-05-17 Richard Stallman <rms@gnu.org>
1349
1350 * xfaces.c (better_font_p): Any font beats no font.
1351 (best_matching_font): Simplify based on above change.
1352
1353 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
1354
1355 2006-05-16 Kim F. Storm <storm@cua.dk>
1356
1357 * xterm.c (handle_one_xevent): Check that f is not NULL before
1358 calling x_kill_gs_process.
1359
1360 2006-05-14 Richard Stallman <rms@gnu.org>
1361
1362 * textprop.c (Fnext_single_char_property_change)
1363 (Fprevious_single_char_property_change): Don't allow returning
1364 value beyond LIMIT in any cases.
1365 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
1366
1367 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
1368
1369 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1370
1371 * xterm.c (handle_one_xevent): Check that f is not NULL before
1372 calling _XEditResCheckMessages.
1373
1374 2006-05-14 Kim F. Storm <storm@cua.dk>
1375
1376 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
1377
1378 2006-05-13 Eli Zaretskii <eliz@gnu.org>
1379
1380 * frame.c (x_set_border_width): Fix error message to say "frame",
1381 not "window".
1382
1383 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
1384
1385 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
1386
1387 * intervals.c (set_point_both): Fix mixup before before and after
1388 in variable names.
1389
1390 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
1391 while setting point temporarily.
1392
1393 2006-05-11 Richard Stallman <rms@gnu.org>
1394
1395 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
1396
1397 2006-05-11 Kim F. Storm <storm@cua.dk>
1398
1399 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
1400
1401 2006-05-11 Kenichi Handa <handa@m17n.org>
1402
1403 * fileio.c (Finsert_file_contents): Fix for the case of IO error
1404 while handling replace operation.
1405
1406 2006-05-10 Kenichi Handa <handa@m17n.org>
1407
1408 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
1409 chosen for the default face was different from the frame font,
1410 adjust the frame font.
1411
1412 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1413
1414 * image.c (Qduration) [MAC_OS]: Undo previous change.
1415 (syms_of_image) [MAC_OS]: Likewise.
1416 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
1417
1418 * macfns.c (x_to_mac_color): Fix shift amount change.
1419 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
1420 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
1421
1422 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
1423 Vmac_services_selection. All uses changed.
1424 (mac_store_service_event): Rename from mac_store_services_event in
1425 extern and calls.
1426
1427 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
1428 changed.
1429 [MAC_OSX] (mac_store_service_event): Rename from
1430 mac_store_services_event. All callers changed.
1431 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
1432 FACE_ID and C. All callers changed.
1433 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
1434 mac_set_font_info_for_selection when focus frame is destroyed.
1435 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
1436
1437 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
1438 args in extern.
1439
1440 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
1441
1442 * keymap.c (describe_map): Avoid generating duplicate entries if
1443 the shadowed binding has the same definition.
1444
1445 2006-05-09 Kenichi Handa <handa@m17n.org>
1446
1447 * keymap.c (push_key_description): Handle invalid character key.
1448
1449 2006-05-08 Kenichi Handa <handa@m17n.org>
1450
1451 * callproc.c (Fcall_process): Use system_eol_type for encoding
1452 arguments if eol_type is not yet decided.
1453
1454 * coding.h (system_eol_type): Extern it.
1455
1456 * coding.c (setup_coding_system): For invalid coding-system, set
1457 coding->eol_type to CODING_EOL_UNDECIDED.
1458 (encode_coding): Cancel previous change.
1459 (shrink_encoding_region): Likewise.
1460 (code_convert_region1): Likewise.
1461 (code_convert_string1): Likewise.
1462 (code_convert_string_norecord): Likewise.
1463
1464 * fileio.c (choose_write_coding_system): Use system_eol_type for
1465 encoding if eol_type is not yet decided.
1466
1467 * process.c (setup_process_coding_systems): Use system_eol_type
1468 for encoding if eol_type is not yet decided.
1469 (read_process_output): Likewise.
1470 (send_process): Likewise.
1471
1472 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
1473
1474 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
1475
1476 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1477
1478 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
1479 (syms_of_mac): Likewise for defsubr.
1480
1481 * macfns.c (mac_set_font): New function.
1482 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
1483 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
1484 kWindowToolbarButtonAttribute when creating window.
1485 (Fmac_clear_font_name_table): Move from macfns.c.
1486 (syms_of_macfns): Likewise for defsubr.
1487 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
1488 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
1489
1490 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
1491 and build is done on Mac OS X 10.2 and later.
1492
1493 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
1494 (mac_store_services_event): Change return type in extern.
1495
1496 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
1497 FMFontFamily value.
1498 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
1499 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
1500 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
1501 (QWindow) [MAC_OSX]: Likewise.
1502 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
1503 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
1504 (syms_of_macterm) [USE_ATSUI]: Defvar it.
1505 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
1506 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
1507 (syms_of_macterm): Intern and staticpro them.
1508 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
1509 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
1510 function.
1511 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
1512 [MAC_OSX] (mac_store_services_event): Likewise.
1513 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
1514 kEventWindowToolbarSwitchMode event.
1515 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
1516 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
1517 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
1518 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
1519 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
1520
1521 * macterm.h (mac_set_font_info_for_selection): Add extern.
1522
1523 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1524
1525 * image.c (Qduration) [MAC_OS]: New variable.
1526 (syms_of_image) [MAC_OS]: Intern and staticpro it.
1527 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
1528 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
1529 instead of cfstring_create_with_string.
1530
1531 2006-05-06 Kim F. Storm <storm@cua.dk>
1532
1533 * .gdbinit (xframe): Print frame name.
1534 (xlist): New command to print a list (max 10 elements).
1535 (xpr): Print lisp object of any type.
1536 (pitx): Print it->pixel_width.
1537
1538 2006-05-05 Kenichi Handa <handa@m17n.org>
1539
1540 * xdisp.c (handle_composition_prop): Fix for the case of empty
1541 composition component.
1542
1543 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1544
1545 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
1546 from event->arg.
1547
1548 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
1549 MAC_APPLE_EVENT.
1550
1551 * macterm.h (mac_make_lispy_event_code): Remove extern.
1552 (mac_post_mouse_moved_event): Add extern.
1553 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
1554 `const AEDesc *' in externs.
1555 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
1556
1557 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
1558 `const AEDesc *'.
1559 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
1560 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
1561 Use xrealloc instead of repeated xmalloc/xfree.
1562 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
1563 function.
1564
1565 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
1566
1567 * macselect.c: Update copyright year.
1568 (mac_store_apple_event): Change return type to void in extern.
1569 (mac_handle_apple_event): Don't get return value from
1570 mac_store_apple_event.
1571 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
1572 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
1573 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
1574 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
1575 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
1576 implementation using create_apple_event_from_drag_ref.
1577 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1578 (mac_do_receive_dragUPP): Move variables from macterm.c.
1579 (install_drag_handler, remove_drag_handler): New functions.
1580
1581 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
1582 path select also for proxy icon click.
1583 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
1584 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
1585 (xlfdpat_create): Remove unused label `error' and trailing sentences.
1586 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
1587 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
1588 macselect.c.
1589 (install_drag_handler, remove_drag_handler): Add extern.
1590 (mac_store_apple_event): Change return type to void. All uses changed.
1591 Create Lisp object from Apple event and store it into input event.
1592 (mac_make_lispy_event_code): Remove function.
1593 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
1594 (install_window_handler): Call install_drag_handler.
1595 (remove_window_handler): Call remove_drag_handler.
1596
1597 2006-05-03 Richard Stallman <rms@gnu.org>
1598
1599 * sound.c (Fplay_sound_internal): Dynamically allocate
1600 current_sound_device and current_sound.
1601 (sound_cleanup): Free them.
1602
1603 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
1604 when inside a keyboard macro.
1605
1606 2006-05-02 Andreas Schwab <schwab@suse.de>
1607
1608 * xmenu.c (restore_menu_items): Return a value.
1609
1610 2006-05-01 Martin Rudalics <rudalics@gmx.at>
1611
1612 * syntax.c (Fforward_comment): Detect generic comment at beginning of
1613 buffer when moving backwards.
1614
1615 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1616
1617 * dispnew.c (update_window): Don't set changed_p when mode/header
1618 line is updated.
1619
1620 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
1621 (get_glyph_face_and_encoding, get_char_face_and_encoding):
1622 Don't distinguish known faces from others.
1623
1624 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
1625 through typeFileURL failed.
1626
1627 * macfns.c (mac_update_title_bar): New function.
1628 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
1629 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
1630 Call mac_prepare_for_quickdraw.
1631
1632 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
1633 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
1634 (enum pcm_status): New enum.
1635 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
1636 (XCharStructRow): Remove. Now validity is represented by
1637 non-negativeness of sum of ascent and descent.
1638 (struct MacFontStruct): Change type of member `rows'.
1639 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
1640
1641 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
1642 Adjust endpoints of strictly horizontal/vertical lines.
1643 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
1644 (pcm_init, pcm_get_status): New functions.
1645 (x_per_char_metric, XLoadQueryFont): Use them instead of
1646 XCharStructRow and related macros.
1647 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
1648 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
1649 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
1650 and window path pop-up menu on title bar.
1651 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
1652
1653 * macterm.h (mac_update_title_bar): Add extern.
1654 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
1655 (FRAME_FILE_NAME): New macro.
1656
1657 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
1658
1659 2006-04-30 Richard Stallman <rms@gnu.org>
1660
1661 * keymap.c (Fdefine_key): Improve error message
1662 when KEY begins with a non-prefix key.
1663
1664 2006-04-30 Martin Rudalics <rudalics@gmx.at>
1665
1666 * syntax.c (Fforward_comment): Don't forget to break out of the loop
1667 when we skipped backward over a generic comment.
1668
1669 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
1670
1671 * .gdbinit (pp1, pv1): Only print value as expression is now
1672 printed out by gud-print.
1673 (pv1): Correct doc string.
1674
1675 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
1678 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
1679 keymap.c:895: error: address of register variable `def' requested.
1680
1681 2006-04-26 Jason Rumney <jasonr@gnu.org>
1682
1683 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
1684
1685 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
1686 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
1687 where we preempt mouse_button_timer.
1688
1689 2006-04-25 Miles Bader <miles@gnu.org>
1690
1691 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
1692
1693 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
1694
1695 * process.h: Include headers for pid_t.
1696
1697 2006-04-24 Kim F. Storm <storm@cua.dk>
1698
1699 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
1700 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
1701 (produce_stretch_glyph): Assume that face box height and width is
1702 already included in stretch glyph size so caller doesn't have to
1703 consider the extra space otherwise added (fixes problem in ses.el).
1704
1705 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
1706 matrices to force recalculation of tool-bar height after font change.
1707
1708 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
1709 Clear it when done, so we don't accidentally draw a second copy of
1710 the tool-bar after resetting f->n_tool_bar_rows.
1711 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
1712 we recalculate f->n_tool_bar_rows.
1713
1714 2006-04-23 Lars Hansen <larsh@soem.dk>
1715
1716 * editfns.c (find_field): Fix comment.
1717 (Ffield_beginning): Fix bug when POS is at field beginning.
1718
1719 2006-04-22 Eli Zaretskii <eliz@gnu.org>
1720
1721 * puresize.h (BASE_PURESIZE): Increase to 1205000.
1722
1723 2006-04-21 Kim F. Storm <storm@cua.dk>
1724
1725 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
1726 window start is at BEGV.
1727
1728 * dispextern.h (struct image): New member `corners'.
1729 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
1730
1731 * image.c (four_corners_best): New arg CORNERS specifies what pixels
1732 to look at in case image has margin.
1733 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
1734 (image_background, image_background_transparent)
1735 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
1736 (gif_load): Set img->corners according to image's margin spec.
1737 Use img->corners values directly where applicable.
1738 Save image extension data in img->data.lisp_val.
1739 (gif_clear_image): New function to free img->data.lisp_val.
1740 (gif_type): Use it instead of generic x_clear_image.
1741 (Fimage_extension_data): New defun.
1742 (syms_of_image): Defsubr it.
1743
1744 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
1745
1746 * window.c (Fdisplay_buffer): Doc fix.
1747
1748 2006-04-21 Eli Zaretskii <eliz@gnu.org>
1749
1750 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
1751
1752 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1753
1754 * image.c [MAC_OS] (xpm_load_image): Fill in background field
1755 while we have ximg handy.
1756
1757 * macmenu.c (restore_menu_items, save_menu_items): New functions
1758 from xmenu.c.
1759 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
1760 changes for xmenu.c.
1761
1762 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
1763 (add_mac_font_name): New function.
1764 (init_font_name_table): Use it. Adopt the first found font from
1765 those having the same family name.
1766
1767 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
1768
1769 * xdisp.c (note_mouse_highlight): Use build_string.
1770
1771 2006-04-20 Lars Hansen <larsh@soem.dk>
1772
1773 * textprop.c (Fremove_list_of_text_properties):
1774 Ensure modify_region is called only when buffer is modified and that
1775 signal_after_change is allways called in that case.
1776
1777 * print.c (PRINTFINISH): Call signal_after_change.
1778
1779 2006-04-20 Kim F. Storm <storm@cua.dk>
1780
1781 * xdisp.c (redisplay_window): Fix last change.
1782
1783 * xdisp.c (redisplay_window): If current window start is not at the
1784 beginning of a line, select a new window start if buffer is modified
1785 and window start is in the modified region, but the first change is
1786 before window start.
1787
1788 2006-04-18 Richard Stallman <rms@gnu.org>
1789
1790 * xmenu.c (restore_menu_items, save_menu_items): New fns.
1791 (set_frame_menubar): Use save_menu_items. Save updated vector in
1792 the frame before unwinding it. Don't use unuse_menu_items.
1793 Don't use discard_menu_items.
1794 (digest_single_submenu): Abort if an item is not in a pane.
1795 (init_menu_items): Put the error check at the top.
1796
1797 * keymap.c (describe_map): Make "shadowed" warning more verbose.
1798
1799 * window.c (adjust_window_trailing_edge): Correctly distinguish
1800 series vs parallel cases, even when window has no parent.
1801
1802 * abbrev.c (record_symbol): New function.
1803 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
1804
1805 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1806
1807 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
1808 value of xmalloc.
1809
1810 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1811 (create_apple_event_from_event_ref, xrm_get_preference_database)
1812 (cfstring_create_normalized): Don't check return value of xmalloc.
1813
1814 * macselect.c (get_scrap_target_type_list, defer_apple_events)
1815 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
1816 return value of xmalloc/xrealloc.
1817
1818 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
1819 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
1820 (XLoadQueryFont, mac_store_apple_event): Don't check return value
1821 of xmalloc.
1822
1823 2006-04-17 Kim F. Storm <storm@cua.dk>
1824
1825 * window.c (coordinates_in_window): On the vertical border,
1826 calculate the row number measured from the top of the window, not
1827 the top of the frame.
1828 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
1829 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
1830
1831 2006-04-16 Eli Zaretskii <eliz@gnu.org>
1832
1833 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
1834
1835 2006-04-16 Romain Francoise <romain@orebokech.com>
1836
1837 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
1838
1839 2006-04-16 Andreas Schwab <schwab@suse.de>
1840
1841 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
1842
1843 2006-04-15 Romain Francoise <romain@orebokech.com>
1844
1845 * puresize.h (BASE_PURESIZE): Increment to 1210000.
1846
1847 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1848
1849 * print.c (Fprin1_to_string): Mention in the `doc' that the
1850 behavior is modified by `print-level' and `print-length'.
1851
1852 2006-04-13 Kenichi Handa <handa@m17n.org>
1853
1854 * coding.c (setup_coding_system): If eol-type is not yet decided
1855 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
1856 If coding_system is nil, return 0.
1857 (code_convert_region1): Even if coding_system is nil, don't skip
1858 conversion if system_eol_type is not LF.
1859 (code_convert_string1): Likewise.
1860 (code_convert_string_norecord): Likewise.
1861
1862 2006-04-13 Kenichi Handa <handa@m17n.org>
1863
1864 * coding.c (setup_coding_system): Fix previous change.
1865 (encode_coding): If eol_type is not yet decided, use system_eol_type.
1866 (shrink_encoding_region): If eol_type is not yet decided and
1867 system_eol_type is not LF, don't shrink.
1868
1869 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
1870
1871 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
1872 line.
1873
1874 2006-04-12 Richard Stallman <rms@gnu.org>
1875
1876 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
1877
1878 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
1879 (Fprocess_send_eof): Abort if fail to open null device.
1880
1881 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1882
1883 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
1884
1885 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
1886 assignment used as truth value. Add explicit braces to avoid
1887 ambiguous `else'.
1888 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
1889
1890 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
1891 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
1892 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
1893 Put externs in #ifdef HAVE_X_WINDOWS.
1894 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
1895 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
1896 (init_mac_osx_environment) [MAC_OSX]: Add extern.
1897
1898 * mac.c (init_process): Remove undef.
1899 (select) [MAC_OSX]: Undefine before including sysselect.h.
1900 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
1901 Remove functions and prototypes.
1902 (parse_value): Add parentheses around + inside shift.
1903 (path_from_vol_dir_name): Make static.
1904 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
1905 [!MAC_OSX] (get_path_to_system_folder): Likewise.
1906 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
1907 variable `cCode'.
1908 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
1909 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
1910
1911 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
1912 (x_set_mouse_color): Remove unused variable `dpy'.
1913 (Fx_create_frame): Remove unused variable `x_frame_count'.
1914 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
1915 (x_sync): Move from macterm.c.
1916 (Fx_file_dialog): Remove unused variable `default_filter_index'.
1917
1918 * macmenu.c (min_menu_id): Make element type explicit.
1919
1920 * macselect.c (get_flavor_type_from_symbol): Remove unused
1921 variable `val'.
1922 (get_scrap_private_timestamp, x_get_foreign_selection)
1923 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
1924 (Fmac_process_deferred_apple_events): Remove unused variables
1925 `keyword', `reply', `apple_event', `count', and `err'.
1926
1927 * macterm.c: Don't include gnu.h.
1928 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
1929 (x_sync): Move to macfns.c.
1930 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
1931 variable `mask_bits'.
1932 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
1933 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
1934 (x_mac_to_emacs_modifiers): Remove function.
1935 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
1936 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
1937 Add explicit braces to avoid ambiguous `else'.
1938 (x_make_frame_visible): Remove unused variables `type',
1939 `original_top', and `original_left'.
1940 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
1941 (x_load_font): Remove unused variables `full_name', and `value'.
1942 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
1943 Remove functions.
1944 (do_zoom_window): Reorganize variables with respect to conditionals.
1945 (init_command_handler): Remove unused variable `err'.
1946 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
1947
1948 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
1949 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
1950 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
1951 (do_menu_choice, have_menus_p, x_real_positions)
1952 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
1953 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
1954 (free_frame_menubar): Add externs.
1955
1956 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
1957 (malloc, realloc, free): Add undefs.
1958 (read_load_commands): Remove unused variable `n' and `j'.
1959 (copy_data_segment): Remove unused variable `r'.
1960
1961 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
1962 within ||. Add explicit braces to avoid ambiguous `else'.
1963 (dump_glyph_row): Remove label for `inverse_p' from legend.
1964
1965 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
1966 Add explicit braces to avoid ambiguous `else'.
1967
1968 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1969
1970 * dispnew.c (init_display): Don't init X display if the user asked
1971 for a non-X display.
1972
1973 2006-04-12 Kenichi Handa <handa@m17n.org>
1974
1975 * coding.c (setup_coding_system): Use system_eol_type for default
1976 coding->eol_type.
1977
1978 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1979
1980 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
1981
1982 * data.c (wrong_type_argument): Try to avoid compiler warnings due
1983 to the fact the function is now marked as NO_RETURN.
1984
1985 2006-04-10 Eli Zaretskii <eliz@gnu.org>
1986
1987 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
1988
1989 2006-04-10 Romain Francoise <romain@orebokech.com>
1990
1991 * xrdb.c (gethomedir): Use xstrdup.
1992
1993 2006-04-10 Andreas Schwab <schwab@suse.de>
1994
1995 * xrdb.c (gethomedir): Make sure to always return a pointer that
1996 can be passed to free.
1997
1998 2006-04-09 Richard Stallman <rms@gnu.org>
1999
2000 * lisp.h (Fkill_emacs): Undo previous change.
2001
2002 2006-04-08 Richard Stallman <rms@gnu.org>
2003
2004 * search.c (boyer_moore): Test ch >= 0400, not >.
2005
2006 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2007
2008 * puresize.h (pure_write_error): Mark as NO_RETURN.
2009
2010 * lisp.h (args_out_of_range, args_out_of_range_3)
2011
2012 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2013
2014 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
2015 if a menu is active on this frame.
2016
2017 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
2018
2019 * lisp.h (report_file_error): Mark as NO_RETURN.
2020
2021 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2022
2023 * alloc.c [STDC_HEADERS]: Include stddef.h.
2024
2025 * lisp.h (PSEUDOVECSIZE): Fix last change.
2026
2027 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2028
2029 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
2030 `raw_status_high', and `raw_status_low' with plain integers, and move
2031 them to the end of the structure.
2032
2033 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
2034 pseudovector's size field so only the Lisp_Object fields get GC'd.
2035
2036 * process.c (update_status, make_process, Fdelete_process)
2037 (Fprocess_status, list_processes_1, start_process_unwind)
2038 (create_process, Fmake_network_process, server_accept_connection)
2039 (wait_reading_process_output, send_process, Fprocess_running_child_p)
2040 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
2041 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
2042 `pid' and `raw_status'.
2043 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
2044 representing PIDs that are larger than most-positive-fixnum.
2045
2046 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
2047
2048 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
2049
2050 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2051
2052 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
2053
2054 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
2055
2056 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
2057 ../lib-src/b2m.c and ../lib-src/editfns.c.
2058 (Fcurrent_time_string): Use it.
2059 Document that the year might not consume 4 columns if it's outside
2060 the range 1000-9999.
2061 Check for asctime failure.
2062 Don't assume that the output string length is always exactly 24.
2063
2064 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2065
2066 * macterm.c (XTread_socket): Initialize variable `f' before its use.
2067
2068 2006-04-03 Kenichi Handa <handa@m17n.org>
2069
2070 * image.c: Include "charset.h" and "coding.h".
2071 (x_find_image_file): Return an encoded file name.
2072
2073 2006-04-01 Eli Zaretskii <eliz@gnu.org>
2074
2075 * configure: Regenerated.
2076
2077 2006-03-31 Kenichi Handa <handa@m17n.org>
2078
2079 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
2080
2081 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2082
2083 * xdisp.c (syms_of_xdisp): Fix variable name.
2084
2085 2006-03-30 Kenichi Handa <handa@m17n.org>
2086
2087 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
2088
2089 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
2090
2091 * keyboard.c (process_tool_bar_item): Reorder dummy args.
2092
2093 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2094
2095 * keyboard.c (tool_bar_items): Use map_keymap.
2096 (process_tool_bar_item): Add dummy args to fit the required interface.
2097
2098 2006-03-25 Eli Zaretskii <eliz@gnu.org>
2099
2100 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
2101 to zero before calling debug_print or safe_debug_print.
2102
2103 * print.c (print_output_debug_flag): New global variable.
2104 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
2105 OutputDebugString if print_output_debug_flag is zero.
2106
2107 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
2108
2109 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
2110 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
2111 (Fdecode_time): Cast tm_year to EMACS_INT.
2112 (Fcurrent_time_string): Report an invalid time specification if
2113 the argument is invalid. Also, check for out-of-range time stamps.
2114
2115 2006-03-24 Kim F. Storm <storm@cua.dk>
2116
2117 * xterm.c (handle_one_xevent):
2118 * w32term.c (w32_read_socket):
2119 * macterm.c (XTread_socket): Don't let key-press clear mouse face
2120 on in toolbar window if mouse-highlight is an integer.
2121
2122 * fns.c (sxhash_list): Include last non-nil CDR in hash.
2123
2124 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2125
2126 * macmenu.c (enum mac_menu_kind): New enum.
2127 (min_menu_id): New variable.
2128 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
2129 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
2130 min_menu_id and enumerators in enum mac_menu_kind.
2131 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
2132 All uses changed. Add range check for menu ID.
2133 (fill_menubar): Add range check for menu ID.
2134 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
2135 GetEventParameter.
2136 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
2137 for each menu kind.
2138
2139 2006-03-22 Kim F. Storm <storm@cua.dk>
2140
2141 * xdisp.c: Undo 2006-03-21 change.
2142
2143 * term.c: Define aliases for append_glyph and produce_stretch_glyph
2144 when `static' is defined to avoid name clash with those in xdisp.c.
2145
2146 * process.c (Faccept_process_output): Fix to comply with lisp reference.
2147 Change arg "timeout" to "seconds" and allow both integer and float value.
2148 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
2149 rather than microseconds. Fix doc string accordingly.
2150
2151 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
2152
2153 * xdisp.c (store_next_glyph): Rename from append_glyph.
2154 (generate_stretch_glyph): Rename from produce_stretch_glyph.
2155 All callers changed accordingly.
2156
2157 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2158
2159 * xterm.c: x_session_initialized new variable.
2160 (x_term_init): Use x_session_initialized to check if
2161 x_session_initialize should be called.
2162 (x_initialize): Initialize x_session_initialized.
2163
2164 2006-03-21 Kim F. Storm <storm@cua.dk>
2165
2166 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
2167 bitmap here, but ...
2168 (update_window_fringes): ... here, so we can test if it has changed.
2169
2170 2006-03-20 Andreas Schwab <schwab@suse.de>
2171
2172 * dispnew.c (init_display): Check DISPLAY here.
2173
2174 * emacs.c (main): Don't check here.
2175
2176 * xterm.c (x_display_ok): Don't use DISPLAY env var.
2177
2178 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2179
2180 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
2181 mixup (YAILOM).
2182
2183 2006-03-20 Eli Zaretskii <eliz@gnu.org>
2184
2185 * emacs.c (main): Fix last change.
2186
2187 2006-03-20 Kenichi Handa <handa@m17n.org>
2188
2189 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
2190
2191 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
2192
2193 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
2194
2195 * xterm.c (x_term_init): Remove unnecessary GCPRO.
2196
2197 2006-03-19 Kim F. Storm <storm@cua.dk>
2198
2199 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
2200 so it doesn't associate overlay string with following glyph by default.
2201 Allow integer property value to specify explicit number of buffer
2202 positions associate with overlay string.
2203
2204 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
2205
2206 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
2207
2208 2006-03-18 Nozomu Ando <nand@mac.com>
2209
2210 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
2211 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
2212 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
2213 Don't redefine.
2214
2215 * m/mips.h: Don't use unexmips on NetBSD.
2216 (LIBS_MACHINE): Move definition lower, so it doesn't use
2217 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
2218 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
2219
2220 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
2221 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
2222 option is broken (e.g., MIPS/NetBSD).
2223
2224 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
2225
2226 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
2227 Remove the HAVE_X_WINDOWS conditional.
2228
2229 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
2230
2231 * emacs.c (main): If user asks for a display that is unavailable,
2232 simulate -nw.
2233
2234 * xterm.c (x_display_ok): New function.
2235
2236 * xterm.h: Add prototype for x_display_ok.
2237
2238 2006-03-18 Eli Zaretskii <eliz@gnu.org>
2239
2240 * w32fns.c (Fw32_select_font): Doc fix.
2241
2242 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2243
2244 * image.c [MAC_OS] (XPutPixel, XGetPixel)
2245 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
2246 version when depth is 32.
2247 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
2248 New function.
2249 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
2250 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
2251
2252 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
2253 Create GWorld in ARGB pixel format.
2254 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
2255 Remove functions.
2256 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
2257 instead of mac_copy_area/mac_copy_area_with_mask.
2258
2259 2006-03-15 Kim F. Storm <storm@cua.dk>
2260
2261 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
2262 empty row. Fixes memory corruption revealed by 2006-03-02 change.
2263 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
2264 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
2265 width is exactly the same as the window width. Don't count a final
2266 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
2267
2268 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
2269
2270 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
2271 conditional on HAVE_NTGUI, not WINDOWS_NT.
2272
2273 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2274
2275 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
2276
2277 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
2278
2279 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
2280 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
2281 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
2282 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
2283 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
2284 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
2285 instead of mac_draw_bitmap.
2286 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
2287 define_fringe_bitmap and destroy_fringe_bitmap.
2288
2289 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
2290
2291 * xterm.c (x_uncatch_errors): Block input for entire function.
2292
2293 2006-03-12 Jason Rumney <jasonr@gnu.org>
2294
2295 * w32fns.c (Fx_create_frame): Remove call to
2296 Qface_set_after_frame_default (from xfns.c 2003-05-26).
2297
2298 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
2299 finished with the menu.
2300
2301 * w32term.c: Sync 2005-10-24 xterm.c changes.
2302 (last_mouse_glyph_frame): New var.
2303 (note_mouse_movement): Say mouse moved if current frame differs
2304 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2305 (w32_mouse_position): Set last_mouse_glyph_frame.
2306 Remove OLD_REDISPLAY_CODE block.
2307
2308 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2309
2310 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
2311
2312 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
2313 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
2314
2315 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2316
2317 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
2318
2319 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
2320 (x_draw_composite_glyph_string_foreground)
2321 (x_draw_image_foreground): Undo previous changes.
2322 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
2323 argument of mac_draw_rectangle.
2324 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
2325 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
2326 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
2327 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
2328 [USE_CG_DRAWING]: New functions.
2329 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
2330 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
2331 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
2332 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
2333 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
2334 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
2335 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2336
2337 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2338
2339 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
2340
2341 2006-03-11 Jason Rumney <jasonr@gnu.org>
2342
2343 * w32fns.c (signal_user_input): New function.
2344 (post_character_message): Use it for keyboard input.
2345 (w32_msg_pump): Use it for mouse input.
2346
2347 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
2348
2349 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
2350 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
2351
2352 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2353
2354 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
2355 if a menu is already active (the menubar_active flag is on).
2356
2357 2006-03-11 David Ponce <david@dponce.com>
2358
2359 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
2360
2361 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2362
2363 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
2364 the list of unused display error handling functions.
2365
2366 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
2367 HAVE_X_WINDOWS.
2368 (internal_condition_case, internal_condition_case_1)
2369 (internal_condition_case_2): Call x_catching_errors only if
2370 HAVE_X_WINDOWS.
2371
2372 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
2373 Don't include sys/resource.h unless defined.
2374
2375 2006-03-11 Richard Stallman <rms@gnu.org>
2376
2377 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
2378
2379 * vm-limit.c (get_lim_data, lim_data, data_space_start):
2380 Move from mem-limits.h.
2381 (enum warnlevel): New data type.
2382 (check_memory_limits): Rewrite the logic about warnings.
2383 Use standard `struct rlimit'. Check return values for nonsense.
2384 (memory_warnings): Always clear lim_data.
2385
2386 * mem-limits.h (get_lim_data, lim_data, data_space_start):
2387 Move to vm-limit.c.
2388
2389 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
2390
2391 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
2392 (internal_condition_case_1, internal_condition_case_2):
2393 Abort if within unclosed x_catch_errors.
2394
2395 2006-03-11 Romain Francoise <romain@orebokech.com>
2396
2397 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
2398
2399 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2400
2401 * lisp.h: Remove duplicate prototypes. Make the prototype of
2402 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
2403
2404 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2405
2406 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
2407 argument of XDrawRectangle.
2408
2409 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
2410
2411 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
2412 (x_draw_glyph_string_foreground)
2413 (x_draw_composite_glyph_string_foreground)
2414 (x_draw_image_foreground): Don't subtract 1 from width and height
2415 arguments to mac_draw_rectangle.
2416 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
2417
2418 2006-03-10 Kim F. Storm <storm@cua.dk>
2419
2420 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
2421
2422 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
2423
2424 * alloc.c (USE_POSIX_MEMALIGN): New macro.
2425 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
2426
2427 2006-03-09 Kenichi Handa <handa@m17n.org>
2428
2429 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
2430 ASCII component of a composition.
2431
2432 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
2433
2434 * window.c: Declare preserve_y as a static global variable.
2435 (window_scroll_pixel_based): No longer declare preserve_y;
2436 it is global now.
2437 (syms_of_window): Set preserve_y to -1.
2438
2439 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2440
2441 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
2442 depth is 32.
2443 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
2444 depth is 32.
2445
2446 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
2447
2448 * xdisp.c (handle_invisible_prop): Don't update it->position with
2449 a buffer position if we're in a display string.
2450
2451 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2452
2453 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
2454 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
2455
2456 * macfns.c (x_default_scroll_bar_color_parameter)
2457 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
2458 Remove unnecessary prototypes.
2459 (x_set_scroll_bar_default_width):
2460 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
2461 (mac_set_scroll_bar_width): New function.
2462 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
2463
2464 * macterm.c (get_control_part_bounds): Fix type of return value.
2465 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
2466 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
2467 scroll bar if it is not tall enough to display scroll bar thumb.
2468 [USE_CARBON_EVENTS] (mac_convert_event_ref)
2469 (mac_handle_command_event, mac_handle_window_event)
2470 (mac_handle_mouse_event): Check error code of GetEventParameter.
2471 (convert_fn_keycode) [MAC_OSX]: Likewise.
2472
2473 2006-03-05 Andreas Schwab <schwab@suse.de>
2474
2475 * xselect.c (x_catch_errors_unwind): Fix missing return value.
2476
2477 2006-03-02 Kim F. Storm <storm@cua.dk>
2478
2479 * frame.h (struct frame): New member n_tool_bar_rows.
2480
2481 * xdisp.c: Minimize the unpleasent visual impact of the requirement
2482 that non-toolkit tool-bars must occupy an integral number of screen
2483 lines, by distributing the rows evenly over the tool-bar screen area.
2484 (Vtool_bar_border): New variable.
2485 (syms_of_xdisp): DEFVAR_LISP it.
2486 (display_tool_bar_line): Add HEIGHT arg for desired row height.
2487 Make tool-bar row the desired height. Use default face for border
2488 below tool-bar.
2489 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
2490 actual tool-bar rows.
2491 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
2492 Adjust the height of the tool-bar rows to fill tool-bar screen area.
2493 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
2494 is resized.
2495
2496 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
2497
2498 * search.c (Fregexp_quote): Do not precede a literal `]' with two
2499 backslashes to try to make clear that it has a literal meaning; it
2500 does not do that. (It could close a character alternative
2501 containing a backslash.)
2502
2503 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
2504
2505 * xselect.c (x_catch_errors_unwind): New function.
2506 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
2507 (Fx_get_atom_name): Call x_uncatch_errors earlier.
2508
2509 * window.c (Qscroll_up, Qscroll_down): New syms.
2510 (window_scroll_pixel_based): Make preserve_y static to avoid
2511 getting point stuck when scrolling 1 line.
2512
2513 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
2514
2515 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
2516
2517 * xterm.c (x_load_font, x_term_init, XTmouse_position)
2518 (handle_one_xevent, x_connection_closed, x_list_fonts):
2519 No arg for x_uncatch_errors.
2520
2521 * xselect.c (x_own_selection, x_decline_selection_request)
2522 (x_reply_selection_request, x_get_foreign_selection)
2523 (Fx_get_atom_name, Fx_send_client_event): Likewise.
2524
2525 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
2526 Likewise.
2527
2528 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
2529
2530 * lread.c: Declare Vload_file_rep_suffixes instead of
2531 deleted variable default_suffixes.
2532 (Fget_load_suffixes): New function.
2533 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
2534 No longer use deleted variable default_suffixes. Update docstring.
2535 (syms_of_lread): defsubr Sget_load_suffixes.
2536 Expand `load-suffixes' docstring.
2537 Delete default_suffixes and DEFVAR_LISP the new variable
2538 `load-file-rep-suffixes'.
2539
2540 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
2541 of Vload_suffixes.
2542
2543 * lisp.h: EXFUN Fget_load_suffixes.
2544 Extern Vload_file_rep_suffixes.
2545
2546 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
2547 with lisp.h.
2548
2549 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2550
2551 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
2552 qualifier which was trying to avoid the bug that was fixed by
2553 yesterday's changes to xterm.c.
2554
2555 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
2556
2557 * xterm.h (x_catch_errors) Return value changed to void.
2558 (x_uncatch_errors): Delete unused count argument.
2559
2560 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
2561 it can be called in a signal handler.
2562 (x_catch_errors_unwind): Function deleted.
2563 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
2564 (x_check_errors): Call x_uncatch_errors before signalling error.
2565
2566 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
2567 (x_connection_closed, x_list_fonts): Use new versions of
2568 x_catch_errors and x_uncatch_errors.
2569
2570 * xselect.c (x_own_selection, x_decline_selection_request)
2571 (x_reply_selection_request, x_get_foreign_selection)
2572 (Fx_get_atom_name, Fx_send_client_event): Likewise.
2573
2574 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
2575 Likewise.
2576
2577 * eval.c (record_unwind_protect): Add an assertion.
2578
2579 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2580
2581 * process.c (Fmake_network_process): Init the process's mark.
2582
2583 2006-02-25 Kim F. Storm <storm@cua.dk>
2584
2585 * buffer.c (modify_overlay): Force redisplay if we modify an
2586 overlay at the end of the buffer.
2587
2588 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2589
2590 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
2591 nil the image file has been removed, in that case use the (cached)
2592 pixmap.
2593
2594 2006-02-24 Kenichi Handa <handa@m17n.org>
2595
2596 * fileio.c (Finsert_file_contents): When a text is replaced
2597 partially, be sure to set point before the inserted characters.
2598
2599 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
2600
2601 * xfns.c (Fx_file_dialog): Return a decoded file name.
2602
2603 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2604
2605 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
2606 glyph whose face is extended to the text area end.
2607
2608 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
2609 values if control is not visible or values are not changed.
2610
2611 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2612
2613 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
2614 The default `window' should not be "on a different frame".
2615
2616 2006-02-22 Kim F. Storm <storm@cua.dk>
2617
2618 * indent.c (Fvertical_motion): Only try to move back if we can.
2619
2620 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2621
2622 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
2623 n_clip_rects.
2624
2625 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
2626 xmenu.c.
2627
2628 * macterm.c (GC_CLIP_REGION): Remove macro.
2629 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
2630 All uses changed. Don't do clipping if n_clip_rects is zero.
2631 (mac_set_clip_rectangles): Use xassert instead of abort.
2632 Set n_clip_rects. Don't make clip_region empty when number of
2633 clipping rectangles is zero.
2634 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
2635 calling mac_set_clip_rectangles.
2636 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
2637 avoid multiple redraws.
2638
2639 2006-02-22 Kim F. Storm <storm@cua.dk>
2640
2641 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
2642
2643 2006-02-21 Kim F. Storm <storm@cua.dk>
2644
2645 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
2646
2647 2006-02-21 Zhang Wei <brep@newsmth.org>
2648
2649 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
2650 returning it.
2651
2652 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2653
2654 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
2655 (standard_bitmaps): Use it.
2656
2657 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2658
2659 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
2660 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
2661 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
2662 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
2663 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
2664 Draw background if BG_WIDTH is not zero. Use float constants as
2665 divisors instead of double. Use alloca instead of xmalloc/xfree.
2666 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2667 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
2668 mac_draw_image_string* functions.
2669 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
2670 some fonts when srcCopy text transfer mode might be used.
2671 (mac_begin_clip, mac_end_clip): Check if region is empty.
2672 (mac_set_clip_rectangles): When resetting clip region, make it
2673 empty instead of disposing of it.
2674
2675 2006-02-20 Kim F. Storm <storm@cua.dk>
2676
2677 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
2678
2679 * buffer.h (struct buffer): New members fringe_indicator_alist and
2680 fringe_cursor_alist.
2681
2682 * buffer.c (init_buffer_once): Set dummy default values for
2683 fringe-indicator-alist and fringe-cursor-alist. The proper
2684 default values are set by pre-loading fringe.el.
2685 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
2686 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
2687 corresponding default- variables.
2688
2689 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
2690 to use `int'.
2691 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
2692 Define explicitly.
2693 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
2694 (Qhollow_small): New variables.
2695 (syms_of_fringe): Intern and staticpro them.
2696 (question_mark_bits): Rename from unknown_bits.
2697 (left_curly_arrow_bits): Rename from continuation_bits.
2698 (right_curly_arrow_bits): Rename from continued_bits.
2699 (left_triangle_bits): Rename from ov_bits.
2700 (right_triangle_bits): Add.
2701 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
2702 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
2703 (filled_square_bits): Add.
2704 (vertical_bar_bits): Rename from bar_cursor_bits.
2705 (horizontal_bar_bits): Rename from hbar_cursor_bits.
2706 (empty_line_bits): Rename from zv_bits.
2707 (standard_bitmaps): Update to use new names.
2708 (draw_fringe_bitmap_1): Make static.
2709 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
2710 to map from logical cursors and indicators to physical bitmaps.
2711 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
2712 bitmaps using symbol names instead of bitmap numbers.
2713 (update_window_fringes): Use logical indicator symbol names
2714 instead of bitmap numbers for logical. Add bitmap cache.
2715 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
2716
2717 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
2718
2719 * regex.c: Revert 2006-02-19 change.
2720 (xmalloc, xrealloc): Define these when not linked to Emacs.
2721 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
2722
2723 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
2724
2725 * regex.c (extend_range_table_work_area): Fix typo.
2726
2727 2006-02-19 Richard M. Stallman <rms@gnu.org>
2728
2729 * xterm.c (x_catch_errors): Use xmalloc.
2730
2731 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
2732 (regex_compile): Likewise.
2733 (regcomp): Use xmalloc.
2734
2735 * gtkutil.c (malloc_widget_value): Use xmalloc.
2736
2737 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
2738 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
2739
2740 * xmenu.c (digest_single_submenu): When pane_string is empty,
2741 do initialize save_wv.
2742
2743 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2744
2745 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
2746 w->update_mode_line if arg F is not the selected frame.
2747
2748 * macmenu.c (popup_activated_flag, submenu_id)
2749 (next_menubar_widget_id): Remove variables.
2750 (initialize_frame_menubar): Remove function.
2751 (pop_down_menu, mac_menu_show): Simplify save value.
2752 (dispose_menus): New function.
2753 (pop_down_menu, fill_menubar): Use it.
2754 (fill_submenu): Remove function. All uses changed to fill_menu.
2755 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
2756 POS. Don't call SetMenuItemHierarchicalID here.
2757 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
2758 used next. Call SetMenuItemHierarchicalID here.
2759 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
2760 objects if needed. Reuse existing menu bar titles if possible.
2761 (set_frame_menubar): Don't clean up menu objects here.
2762
2763 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
2764
2765 * window.c (window_min_size_1): Ensure room for the scroll bar and
2766 fringes.
2767
2768 2006-02-17 Romain Francoise <romain@orebokech.com>
2769
2770 * puresize.h (BASE_PURESIZE): Increment to 1200000.
2771
2772 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
2773
2774 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
2775 addition of the BLOCK_INPUTs.
2776
2777 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
2778
2779 * window.c (Fset_window_scroll_bars): Doc fix.
2780
2781 2006-02-17 Kenichi Handa <handa@m17n.org>
2782
2783 * xdisp.c (display_mode_element): Call display_string with correct
2784 PREC arg (which must be a number of characters, not column width).
2785
2786 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2787
2788 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
2789
2790 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
2791
2792 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
2793
2794 2006-02-14 Richard M. Stallman <rms@gnu.org>
2795
2796 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
2797
2798 * m/ibms390x.h: New file.
2799
2800 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2801
2802 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
2803 value of x-gtk-whole-detached-tool-bar.
2804 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
2805
2806 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
2807
2808 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2809
2810 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
2811
2812 * xterm.h: Declare x_x_to_emacs_modifiers.
2813
2814 * gtkutil.c (xg_tool_bar_button_cb): New function.
2815 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
2816 store modifiers in event.
2817 (update_frame_tool_bar): Connect button-release-event to
2818 xg_tool_bar_button_cb.
2819
2820 2006-02-13 Richard M. Stallman <rms@gnu.org>
2821
2822 * .gdbinit (xwindow): Update the code to show the window box.
2823
2824 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2825
2826 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
2827
2828 2006-02-12 Richard M. Stallman <rms@gnu.org>
2829
2830 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
2831
2832 2006-02-11 Eli Zaretskii <eliz@gnu.org>
2833
2834 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
2835 (syms_of_keyboard): DEVFAR_LISP and initialize it.
2836 (parse_tool_bar_item, parse_menu_item): If that variable is
2837 non-nil, don't disable menu items and tool-bar buttons.
2838
2839 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
2840
2841 * doc.c (Fsubstitute_command_keys): Doc fix.
2842
2843 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
2844
2845 * data.c (Findirect_function): Rewrite docstring.
2846 Fix omission bug: Declare new arg NOERROR.
2847
2848 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2849
2850 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
2851 if window_desc is not set yet.
2852 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
2853 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
2854 parameter `visibility' is `icon'.
2855 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
2856 instead of "fontset-mac".
2857 (Fx_focus_frame): New defun.
2858 (syms_of_macfns): Defsubr it.
2859
2860 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
2861 for unfocused frame.
2862 (x_raise_frame): Call BringToFront instead of SelectWindow.
2863 (x_lower_frame): Use NULL instead of nil.
2864 (x_make_frame_visible): Don't call SelectWindow.
2865 (XTread_socket): Increment handling_signal at the start, decrement
2866 it at the end.
2867 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
2868 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
2869
2870 2006-02-10 Kim F. Storm <storm@cua.dk>
2871
2872 * data.c (Findirect_function): Add NOERROR arg. All callers changed
2873 to pass Qnil for NOERROR.
2874
2875 * keymap.c (current_minor_maps_error): Remove.
2876 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
2877 instead of using internal_condition_case_1+current_minor_maps_error.
2878
2879 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2880
2881 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
2882 frames for GTK, in that case it is the tool bar. This is so that
2883 highlighted text get reset properly.
2884
2885 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
2886
2887 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
2888
2889 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2890
2891 * window.c (adjust_window_trailing_edge): Check that shrinking
2892 does not set a window to size zero or less.
2893
2894 2006-02-08 Miles Bader <miles@gnu.org>
2895
2896 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
2897 of Fget_text_property (other field functions work with overlays as
2898 well as text-properties).
2899
2900 2006-02-07 Kenichi Handa <handa@m17n.org>
2901
2902 * dispextern.h (unibyte_display_via_language_environment): Extern it.
2903
2904 * xterm.h (unibyte_display_via_language_environment):
2905 * w32term.h (unibyte_display_via_language_environment):
2906 * macterm.h (unibyte_display_via_language_environment): Delete extern.
2907
2908 2006-02-07 Kenichi Handa <handa@m17n.org>
2909
2910 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
2911 (produce_glyphs): Set the character to print in
2912 it->char_to_display. Handle unibyte-display-via-language-environment.
2913 (produce_stretch_glyph): Set character to print in it->char_to_display.
2914
2915 2006-02-06 Kenichi Handa <handa@m17n.org>
2916
2917 * lread.c (openp): Initialize encoded_fn before GCPRO it.
2918
2919 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
2920
2921 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
2922
2923 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
2924 Cast bitfield value to EMACS_INT, to suppress gcc warning.
2925
2926 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
2927 defining.
2928
2929 2006-02-03 Kim F. Storm <storm@cua.dk>
2930
2931 * xdisp.c: Cache last merged escape glyph face.
2932 (last_escape_glyph_frame, last_escape_glyph_face_id)
2933 (last_escape_glyph_merged_face_id): New variables.
2934 (get_next_display_element): Use/update them.
2935 (redisplay_internal): Reset them before redisplay.
2936
2937 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
2938 Only recheck faces after displaying ellipsis.
2939
2940 2006-02-02 Kenichi Handa <handa@m17n.org>
2941
2942 * coding.c (decode_composition_emacs_mule): Fix handling of
2943 incorrect format data.
2944
2945 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2946
2947 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
2948 (gtk_toolbar_insert) so we can have tool bars of different sizes.
2949
2950 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
2951
2952 * data.c (Flistp): Doc fix.
2953
2954 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
2955
2956 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
2957 Fix typos in docstrings.
2958
2959 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
2960
2961 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
2962
2963 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
2964
2965 * alloc.c (make_interval, allocate_string)
2966 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
2967 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
2968 global variables.
2969
2970 2006-01-27 Eli Zaretskii <eliz@gnu.org>
2971
2972 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
2973 the MSDOS definition.
2974
2975 2006-01-26 Richard M. Stallman <rms@gnu.org>
2976
2977 * alloc.c (check_pure_size): Make overflow message an "error message".
2978
2979 * keymap.c (Fmap_keymap): Doc fix.
2980
2981 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
2982 unless they were cleared out.
2983
2984 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
2985
2986 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2987
2988 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
2989 (find_field): Set before_field to after_field when pos is at BEGV.
2990 (Fline_beginning_position, Fline_end_position):
2991 Clarify confusing doc string.
2992
2993 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
2994 string.
2995
2996 2006-01-26 Kenichi Handa <handa@m17n.org>
2997
2998 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
2999 current_dir, and error_file. On reporting an error, decode them
3000 back.
3001
3002 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
3005 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
3006 Don't check for quit, since any loop will go through fail or jump.
3007
3008 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * alloc.c (allocate_string_data): Update next_free immediately, to
3011 reduce risk of memory clobberage.
3012
3013 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3014
3015 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
3016 display when point moves across an ellipsis. If there are
3017 adjacent invisible texts, don't lose the second one's ellipsis.
3018 (x_produce_glyphs): Doc fix.
3019
3020 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
3021
3022 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
3023
3024 2006-01-23 Kim F. Storm <storm@cua.dk>
3025
3026 * xdisp.c (handle_single_display_spec): Fix handling of space
3027 property on char from string: set *position rather than
3028 it->current.pos.
3029 (produce_stretch_glyph): Reduce width of stretch glyphs so they
3030 don't get wider than the window (unless truncate-lines is on).
3031
3032 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
3033
3034 * xterm.c: Avoid allocating Lisp data from a signal handler.
3035 (x_error_message): New var to replace x_error_message_string.
3036 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
3037 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
3038 (syms_of_xterm): Use it instead of x_error_message_string.
3039
3040 * alloc.c (lisp_align_free): Add an assertion.
3041 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
3042 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
3043 a signal handler.
3044
3045 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
3046
3047 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
3048
3049 2006-01-21 Romain Francoise <romain@orebokech.com>
3050
3051 * xdisp.c (get_window_cursor_type): Fix last change.
3052 Update copyright year.
3053
3054 2006-01-20 Eli Zaretskii <eliz@gnu.org>
3055
3056 * lread.c (Fload): Don't leak the file descriptor returned by
3057 openp if we are going to signal an error.
3058
3059 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
3060 directly to _close.
3061 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
3062 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
3063 to _read.
3064 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
3065 directly to _write.
3066
3067 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
3068 if it is NULL.
3069
3070 2006-01-20 Kenichi Handa <handa@m17n.org>
3071
3072 * puresize.h (BASE_PURESIZE): Increment to 1190000.
3073
3074 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * xdisp.c (get_window_cursor_type): Use cursor type specified by
3077 the selected buffer for the echo area too.
3078
3079 2006-01-19 Richard M. Stallman <rms@gnu.org>
3080
3081 * keymap.c (Fmap_keymap): Doc fix.
3082
3083 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
3084
3085 * keyboard.c (echo_char): Don't omit the space between first two
3086 echoed chars.
3087
3088 * minibuf.c (read_minibuf): Fix previous change.
3089
3090 2006-01-19 Kenichi Handa <handa@m17n.org>
3091
3092 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
3093
3094 2006-01-17 Richard M. Stallman <rms@gnu.org>
3095
3096 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
3097 value in f->param_alist.
3098
3099 2006-01-15 Andreas Schwab <schwab@suse.de>
3100
3101 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
3102
3103 2006-01-13 Richard M. Stallman <rms@gnu.org>
3104
3105 * Makefile.in: Define new macro WINDOW_SUPPORT.
3106 (lisp): Use it.
3107 (SOME_MACHINE_LISP): Add conditionally loaded files.
3108
3109 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3110
3111 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3112 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
3113 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
3114 decomposed form.
3115
3116 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
3117 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
3118 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
3119 macro. Also try member ifr_addr when getting netmask.
3120
3121 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
3122
3123 * fileio.c (Fexpand_file_name): Remove redundant tests.
3124 Fix elimination of // so that it doesn't prevent elimination of an
3125 immediately following /. or /..
3126
3127 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3128
3129 * gtkutil.c (xg_toggle_notify_cb): New function.
3130 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
3131 xg_toggle_notify_cb.
3132 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
3133 parameter value changes so the toggle button gets updated.
3134
3135 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
3136
3137 * .gdbinit: Fix typo.
3138
3139 2006-01-05 Eli Zaretskii <eliz@gnu.org>
3140
3141 * .gdbinit: Fix last change.
3142
3143 2006-01-05 Kim F. Storm <storm@cua.dk>
3144
3145 * process.c (Fmake_network_process): Use AF_INET instead of
3146 AF_UNSPEC when AF_INET6 is not defined.
3147
3148 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3149
3150 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
3151 Don't check that the other type is known file-related one.
3152
3153 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
3154 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
3155 OS X 10.4 and later.
3156
3157 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3158
3159 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
3160 let GTK do all image processing. Importing Emacs own pixmaps to GTK
3161 looks bad for inactive tool bar items with some Gnome themes.
3162
3163 2006-01-04 Eli Zaretskii <eliz@gnu.org>
3164
3165 * .gdbinit: Avoid a warning message when x_error_quitter is not
3166 compiled in.
3167
3168 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
3169 for w32.
3170
3171 2006-01-04 Kim F. Storm <storm@cua.dk>
3172
3173 * process.c: Add IPv6 support.
3174 (Qipv4, Qipv6): New vars.
3175 (syms_of_process): Intern and staticpro them.
3176 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
3177 with or without port number. Handle 4 element vector as IPv4 address
3178 without port number.
3179 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3180 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
3181 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
3182 request that address family only. :family nil or omitted means to
3183 determine address family from the specified :host and :service.
3184 (ifflag_table): Add missing OpenBSD IFF_ flags.
3185 (server_accept_connection): Handle IPv6 addresses.
3186 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
3187
3188 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
3189 determine which breakpoints to set.
3190
3191 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
3192
3193 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
3194
3195 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
3196
3197 2006-01-03 Romain Francoise <romain@orebokech.com>
3198
3199 * emacs.c (main): Update copyright year.
3200
3201 2006-01-03 Ken Raeburn <raeburn@gnu.org>
3202
3203 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
3204 nil for the call to internal_delete_file.
3205
3206 2006-01-01 Ken Raeburn <raeburn@gnu.org>
3207
3208 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
3209 to nil for the call to Fwrite_region.
3210
3211 2005-12-31 Richard M. Stallman <rms@gnu.org>
3212
3213 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
3214
3215 2005-12-31 Eli Zaretskii <eliz@gnu.org>
3216
3217 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
3218
3219 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
3220
3221 * textprop.c (set_text_properties): Reword description of return value.
3222 Return Qnil if caller wants to remove all text properties from a
3223 string and the string already has no intervals.
3224
3225 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
3226
3227 * term.c (visible_cursor): New boolean var.
3228 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
3229 visible_cursor.
3230 (syms_of_term): Export the new var as "visible-cursor".
3231
3232 2005-12-30 Eli Zaretskii <eliz@gnu.org>
3233
3234 * .gdbinit: Tell users not to worry about GDB warnings that some
3235 functions do not exist in the binary.
3236
3237 2005-12-30 Andreas Schwab <schwab@suse.de>
3238
3239 * process.c (Fnetwork_interface_info): Correctly terminate the
3240 loop over ifflag_table.
3241
3242 2005-12-29 Richard M. Stallman <rms@gnu.org>
3243
3244 * lread.c (readevalloop): Test for reading a whole buffer
3245 before actually reading anything. Handle all cases, including
3246 START = END = nil and an already-narrowed buffer.
3247 Convert END to a marker if it is a number.
3248
3249 * keymap.c (describe_map): Put sparse map elements into an array,
3250 sort them, then output a sequence of identical bindings on one line.
3251 (struct describe_map_elt): New data type.
3252 (describe_map_compare): New function.
3253
3254 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3255
3256 * gtkutil.c (xg_get_file_with_chooser): Change message shown
3257 in file chooser.
3258
3259 2005-12-27 Richard M. Stallman <rms@gnu.org>
3260
3261 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
3262 not the current one.
3263
3264 * minibuf.c (Fminibuffer_message): Doc fix.
3265 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
3266
3267 * eval.c (do_autoload): Ignore elements of Vautoload_queue
3268 where car is not symbol.
3269
3270 2005-12-27 Kenichi Handa <handa@m17n.org>
3271
3272 * charset.c (lisp_string_width): Check multibyteness of STRING.
3273
3274 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3275
3276 * xfns.c: x_show_hidden_files, new variable.
3277 (syms_of_xfns): Defvar it.
3278
3279 * gtkutil.c (xg_toggle_visibility_cb): New function.
3280 (xg_get_file_with_chooser): Add toggle hidden files and a message
3281 to the new file chooser dialog. Show hidden files if
3282 x_show_hidden_files is non-zero.
3283
3284 2005-12-26 Richard M. Stallman <rms@gnu.org>
3285
3286 * keyboard.h: Undo previous change.
3287
3288 * Makefile.in (undo.o): Undo previous change.
3289
3290 * undo.c: Undo previous change.
3291
3292 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
3293
3294 * keyboard.h: extern last_point_position_window.
3295
3296 * undo.c: include keyboard.h.
3297
3298 * Makefile.in (undo.o): Depend on keyboard.h.
3299
3300 2005-12-26 Richard M. Stallman <rms@gnu.org>
3301
3302 * commands.h (last_point_position_window): Declare.
3303
3304 * undo.c: Depend on window.h.
3305 (record_point): Save old point from the correct window.
3306
3307 * keyboard.c (last_point_position_window): New variable.
3308 (command_loop_1): Set last_point_position_window.
3309 (syms_of_keyboard): Init it.
3310
3311 * Makefile.in (undo.o): Depend on window.h.
3312
3313 2005-12-25 Richard M. Stallman <rms@gnu.org>
3314
3315 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
3316 to undo a `provide'.
3317
3318 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
3319
3320 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
3321
3322 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
3323 define for FreeBSD on this platform.
3324
3325 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3326
3327 * macterm.h (TYPE_FILE_NAME): New define.
3328 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
3329
3330 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
3331 Add prototypes. Make static.
3332 (mac_aedesc_to_lisp): Initialize err to noErr.
3333 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3334 (init_coercion_handler): New functions.
3335 (Fmac_coerce_ae_data): Use coercion of Apple event data for
3336 translation from/to file names.
3337
3338 * macterm.c: Don't include sys/param.h.
3339 (init_coercion_handler): Add extern.
3340 [MAC_OS8] (main): Call init_coercion_handler.
3341 (mac_initialize) [MAC_OSX]: Likewise.
3342 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
3343 Apple event data for translation from/to file names.
3344
3345 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3346
3347 * image.c [MAC_OS] (find_image_fsspec): Likewise.
3348
3349 2005-12-23 Martin Rudalics <rudalics@gmx.at>
3350
3351 * insdel.c (insert, insert_and_inherit, insert_before_markers)
3352 (insert_before_markers_and_inherit): Make sure FROM is correct
3353 when `after-change-functions' are called.
3354
3355 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3356
3357 * xfns.c (Fx_uses_old_gtk_dialog): New function.
3358
3359 * gtkutil.c (xg_uses_old_file_dialog): New function.
3360 (xg_get_file_name): Use xg_uses_old_file_dialog.
3361
3362 * gtkutil.h: Declare xg_uses_old_file_dialog.
3363
3364 2005-12-22 Richard M. Stallman <rms@gnu.org>
3365
3366 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
3367
3368 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3369
3370 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
3371
3372 * macgui.h (XCharStruct): Remove member `valid_p'.
3373 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
3374 (XCharStructRow): New typedef.
3375 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
3376 New macros.
3377 (struct MacFontStruct): Add member `bounds'. Remove member
3378 `per_char'. All uses for QuichDraw Text fonts are changed to
3379 `bounds.per_char'. ATSUI font bounds are represented as an array
3380 `bounds.rows' of XCharStructRow's, each of which consists of a
3381 bitmap of valid entries and an array of char bounds.
3382
3383 * macterm.c (mac_per_char_metric): Add prototype.
3384 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
3385 (mac_query_char_extents): New function.
3386 (x_per_char_metric): Use it.
3387 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
3388 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
3389 Use mac_per_char_metric instead of x_per_char_metric.
3390 (mac_text_extents_16): New function.
3391 (mac_compute_glyph_string_overhangs): Use it.
3392 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
3393
3394 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
3397 (Fminibuffer_completion_help): Remove duplicates before display.
3398
3399 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3400
3401 * print.c (print_preprocess): Don't lose print_depth levels while
3402 iterating.
3403
3404 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3405
3406 * macmenu.c (Qmac_apple_event): Add extern.
3407 (set_frame_menubar, mac_menu_show keymp_panes)
3408 (single_keymap_panes, list_of_panes, list_of_item)
3409 (single_menu_item): Add argument types to prototypes.
3410 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
3411 (struct skp): New struct (from xmenu.c).
3412 (single_keymap_panes, single_menu_item, list_of_panes)
3413 (list_of_item): Sync with xmenu.c.
3414 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
3415 POSITION if it is mac-apple-event event.
3416 (menubar_selection_callback): Don't use menu_command_in_progress.
3417 (set_frame_menubar): First parse all submenus, then make
3418 widget_value trees from them. Don't allocate any widget_value
3419 objects until we are done with the parsing.
3420 (parse_single_submenu, digest_single_submenu): New functions.
3421 (single_submenu): Function deleted, replaced by those two.
3422 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
3423 create or dispose of EventHandlerUPP. Install hander to all submenus.
3424 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
3425 instead of ENCODE_SYSTEM.
3426 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
3427 integer values.
3428 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
3429 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
3430 format menu item string. Don't use NULL for integer value.
3431
3432 * macterm.h (struct mac_output): Remove unused member
3433 menu_command_in_progress.
3434
3435 2005-12-20 Juri Linkov <juri@jurta.org>
3436
3437 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
3438 position is non-nil, else set it to nil.
3439
3440 * macmenu.c (Fx_popup_menu): Add `else' to set
3441 Vmenu_updating_frame to nil only if position is nil.
3442
3443 * w32menu.c (Fx_popup_menu): Add `else' to set
3444 Vmenu_updating_frame to nil only if position is nil.
3445
3446 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3447
3448 * keyboard.c (make_lispy_event): Drag-and-drop items are now
3449 stored in member `args' of struct input_event.
3450
3451 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
3452
3453 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
3454 stored in member `args' of struct input_event.
3455
3456 * w32term.c (construct_drag_n_drop): Likewise.
3457
3458 * macterm.c (mac_do_receive_drag): Likewise.
3459 (x_use_underline_position_properties): Undo 2005-07-13 change.
3460 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
3461 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
3462 (mac_pass_command_to_system, mac_pass_control_to_system):
3463 New boolean variables renamed from Lisp_Object ones
3464 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
3465 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
3466 All uses changed.
3467 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
3468 Make them user options.
3469 (mac_handle_command_event, mac_store_services_event):
3470 Call create_apple_event_from_event_ref without 5th argument.
3471 (backtranslate_modified_keycode): Mask off modifier keys that are
3472 mapped to some Emacs modifiers before passing it to KeyTranslate.
3473 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
3474 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
3475 Fix docstrings of `mac-*-modifier'.
3476
3477 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
3478 (do_applescript): Change argument types to Lisp_Object.
3479 All uses changed.
3480
3481 * macterm.h (create_apple_event_from_event_ref): Remove 5th
3482 argument from extern.
3483
3484 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3485
3486 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
3487 the answer, return `lambda', not nil.
3488
3489 2005-12-17 Eli Zaretskii <eliz@gnu.org>
3490
3491 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
3492 enclosed in $(ARGQUOTE)s should not be split between two lines, as
3493 that will break with GNU Make >3.80, when sh.exe is used and
3494 arg quoting is with '..'.
3495
3496 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
3497
3498 * print.c (print_preprocess): Just signal an error if print_depth
3499 is exceeded.
3500
3501 2005-12-17 Eli Zaretskii <eliz@gnu.org>
3502
3503 * .gdbinit: Set a breakpoint on w32_abort.
3504
3505 2005-12-16 Juri Linkov <juri@jurta.org>
3506
3507 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
3508 created from minibuffer_completion_contents.
3509 (minibuffer_completion_contents): Remove.
3510 (do_completion, Fminibuffer_complete_word)
3511 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
3512 with Fminibuffer_completion_contents.
3513 (syms_of_minibuf): Add Sminibuffer_completion_contents.
3514 (Fdisplay_completion_list): Doc fix.
3515 (display_completion_list_1): Use `nil' for second arg of
3516 `Fdisplay_completion_list'.
3517
3518 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3519
3520 * xfns.c (compute_tip_xy): Handle negative dx and dy.
3521
3522 * w32fns.c (compute_tip_xy): Ditto.
3523
3524 * macfns.c (compute_tip_xy): Ditto.
3525
3526 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
3527
3528 * print.c (print_preprocess): Go to a deeper print_depth to avoid
3529 print_object loop.
3530
3531 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
3532
3533 * coding.c (code_convert_region_unwind): GCPRO arg.
3534
3535 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3536
3537 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
3538 i.e. dy is offset from top of frame instead of bottom.
3539
3540 * macfns.c (compute_tip_xy): Ditto.
3541
3542 * w32fns.c (compute_tip_xy): Ditto.
3543
3544 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
3545 (xg_get_image_for_pixmap, xg_create_frame_widgets)
3546 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
3547
3548 * xmenu.c (menubar_selection_callback): Do nothing if the callback
3549 is for an unselected radio menu item.
3550
3551 2005-12-11 Richard M. Stallman <rms@gnu.org>
3552
3553 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
3554
3555 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
3556
3557 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
3558 (Flookup_key): Doc fix.
3559 (syms_of_keymap) <function-key-map>: Doc fix.
3560
3561 * fns.c (Frequire): Treat evaluating from a source file
3562 like loading the file.
3563
3564 * floatfns.c (Flog): Doc fix.
3565
3566 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
3567 when we change the buffer.
3568
3569 2005-12-11 Juri Linkov <juri@jurta.org>
3570
3571 * minibuf.c (display_completion_list_1):
3572 Call `minibuffer_completion_contents' instead of using `nil' as
3573 second arg of `Fdisplay_completion_list'.
3574 (keys_of_minibuf): Unbind SPC in
3575 Vminibuffer_local_filename_completion_map (see also related
3576 change on 2005-12-06).
3577
3578 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * emacs.c (main) [MAC_OS8]: Undo previous change.
3581
3582 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
3583 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
3584
3585 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3586
3587 * Makefile.in (macselect.o): Depend on keymap.h.
3588
3589 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
3590 syms_of_macselect.
3591
3592 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
3593 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
3594
3595 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
3596 (syms_of_keyboard) [MAC_OS]: Initialize it.
3597 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
3598
3599 * mac.c (Qundecoded_file_name): New variable.
3600 (syms_of_mac): Initialize it.
3601 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
3602 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
3603 (Fmac_coerce_ae_data): New defun.
3604 (syms_of_mac): Defsubr it.
3605
3606 * macselect.c: Include keymap.h.
3607 (mac_ready_for_apple_events): New variable.
3608 (Vmac_apple_event_map, Qmac_apple_event_class)
3609 (Qmac_apple_event_id): New variables.
3610 (syms_of_macselect): Initialize them.
3611 (Qundefined, mac_store_apple_event): Add externs.
3612 (struct apple_event_binding): New struct.
3613 (find_event_binding_fun, find_event_binding)
3614 (mac_find_apple_event_spec, defer_apple_events)
3615 (mac_handle_apple_event, init_apple_event_handler)
3616 (copy_scrap_flavor_data): New functions.
3617 (Fmac_process_deferred_apple_events): New defun.
3618 (syms_of_macselect): Defsubr it.
3619 (mac_store_services_event): Fix extern.
3620 (mac_handle_service_event): Don't allocate Lisp objects during
3621 asynchronous input processing. Use mac_store_services_event
3622 instead of mac_store_application_menu_event.
3623
3624 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
3625 (Qpreferences): Remove variables.
3626 (syms_of_macterm) : Don't initialize them.
3627 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
3628 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
3629 (init_required_apple_events, do_ae_open_application)
3630 (do_ae_print_documents, do_ae_open_documents)
3631 (do_ae_quit_application): Remove functions and prototypes.
3632 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
3633 (mac_find_apple_event_spec): Add externs.
3634 (mac_store_application_menu_event): Remove function.
3635 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
3636 (mac_handle_command_event): Create Apple event from Carbon event.
3637 Use mac_store_apple_event instead of mac_store_application_menu_event.
3638 [MAC_OSX] (mac_store_services_event): Likewise.
3639 (struct SelectionRange, SelectionRange): Remove struct and typedef.
3640 [MAC_OS8] (main): Call init_apple_event_handler instead of
3641 init_required_apple_events.
3642 (mac_initialize) [MAC_OSX]: Likewise.
3643 [!USE_CARBON_EVENTS] (mac_wait_next_event):
3644 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
3645
3646 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
3647 Add externs.
3648 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
3649 (Fmac_get_preference): Add EXFUN.
3650
3651 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
3652 event.
3653
3654 2005-12-09 Richard M. Stallman <rms@gnu.org>
3655
3656 * xfns.c (Fx_create_frame): Reinstate previous change.
3657
3658 2005-12-09 Eli Zaretskii <eliz@gnu.org>
3659
3660 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
3661 GDB to the abort dialog.
3662
3663 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
3664
3665 * indent.c (Fvertical_motion): Force move if starting on
3666 stretch glyph.
3667
3668 2005-12-08 Richard M. Stallman <rms@gnu.org>
3669
3670 * lread.c (read_escape) <\s>: Don't treat strings specially.
3671
3672 * xfns.c (Fx_create_frame): Comment out previous change.
3673
3674 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3675
3676 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
3677 when needed.
3678
3679 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3680
3681 * minibuf.c (keys_of_minibuf): Just unbind SPC in
3682 Vminibuffer_local_filename_completion_map rather than forcing it
3683 explicitly to the same binding as the global map.
3684
3685 2005-12-06 Ken Raeburn <raeburn@gnu.org>
3686
3687 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
3688 * bytecode.c (Fbyte_code): Likewise.
3689 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
3690 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
3691 * undo.c (truncate_undo_list): Likewise.
3692
3693 2005-12-05 Richard M. Stallman <rms@gnu.org>
3694
3695 * window.c (enlarge_window): Eliminate arg preserve_before.
3696 Assume it is 0. All callers changed.
3697 (Fenlarge_window, Fshrink_window): Likewise.
3698
3699 2005-12-02 Eli Zaretskii <eliz@gnu.org>
3700
3701 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
3702 fit below.
3703
3704 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3705
3706 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
3707
3708 * xfns.c (x_real_positions): int ign => unsigned int.
3709 (xg_set_icon_from_xpm_data): Remove unused variable err.
3710 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
3711 to remove compiler warning.
3712 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
3713
3714 2005-12-02 David Reitter <david.reitter@gmail.com>
3715
3716 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
3717 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
3718 and Vminibuffer_local_must_match_filename_map keymaps.
3719 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
3720
3721 * keymap.c (Vminibuffer_local_filename_completion_map)
3722 (Vminibuffer_local_must_match_filename_map): New variables.
3723 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
3724 parent to be Vminibuffer_local_completion_map and
3725 Vminibuffer_local_must_match_map, respectively.
3726
3727 * commands.h (Vminibuffer_local_filename_completion_map)
3728 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
3729
3730 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
3731
3732 * window.c (Fset_window_configuration): Don't accidentally copy the
3733 window-point of one window to another.
3734
3735 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3736
3737 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
3738
3739 2005-11-30 Kim F. Storm <storm@cua.dk>
3740
3741 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
3742 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
3743 passing it to `emacs_write'.
3744
3745 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
3746
3747 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
3748
3749 2005-11-27 Richard M. Stallman <rms@gnu.org>
3750
3751 * window.c (adjust_window_trailing_edge): New function.
3752 (Fadjust_window_trailing_edge): New function.
3753 (syms_of_window): Defsubr it.
3754 (window_deletion_count): New variable.
3755 (delete_window): Update window_deletion_count.
3756
3757 2005-11-26 Eli Zaretskii <eliz@gnu.org>
3758
3759 * minibuf.c (syms_of_minibuf): Mention the extension of
3760 `completion-auto-help's meaning by complete.el.
3761
3762 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
3763
3764 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3765 Handle :inherit property as a lisp expression.
3766
3767 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3768
3769 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
3770 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
3771 Qsuper, and Qmodifier_value.
3772 (Vmac_control_modifier, Vmac_option_modifier)
3773 (Vmac_command_modifier, Vmac_function_modifier)
3774 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
3775 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
3776 (Vmac_charset_info_alist): Doc fixes.
3777
3778 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3779
3780 * emacs.c (main) [MAC_OSX]: Change working directory to home
3781 directory if `-psn_*' option is specified.
3782
3783 * mac.c (DECODE_UTF_8): Remove macro.
3784 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
3785 created from cfstring_to_lisp.
3786 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
3787 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
3788
3789 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
3790 Add prototype.
3791
3792 2005-11-21 Ken Raeburn <raeburn@gnu.org>
3793
3794 * keymap.c (shadow_lookup): Use make_number to pass a number to
3795 Fsubstring.
3796
3797 2005-11-21 Juri Linkov <juri@jurta.org>
3798
3799 * puresize.h (BASE_PURESIZE): Increment to 1180000.
3800
3801 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
3802
3803 * xfaces.c (Finternal_set_lisp_face_attribute):
3804 Use :ignore-defface for new frame defaults when `unspecified' is
3805 supplied.
3806 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
3807 (merge_face_vectors): Don't do :ignore-defface overwriting here.
3808 (Finternal_merge_in_global_face): Do it here.
3809
3810 2005-11-20 Juri Linkov <juri@jurta.org>
3811
3812 * charset.c (invalid_character): Use Lisp-readable syntax
3813 for octal and hex. Reorder decimal, octal and hex values.
3814
3815 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
3816
3817 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
3818 this type is recognised when debugging.
3819
3820 2005-11-19 Andreas Schwab <schwab@suse.de>
3821
3822 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
3823 Lisp_Cons and Lisp_Float.
3824
3825 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3826
3827 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
3828 New variable.
3829 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
3830 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
3831 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
3832 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
3833
3834 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
3837
3838 * xfaces.c (Qignore_defface): New variable.
3839 (syms_of_xfaces): Provide `:ignore-defface'.
3840 (IGNORE_DEFFACE_P): New macro.
3841 (check_lface_attrs, lface_fully_specified_p)
3842 (Finternal_set_lisp_face_attribute)
3843 (Fface_attribute_relative_p, Fmerge_face_attribute):
3844 Handle Qignore_defface as a possible value.
3845 (merge_face_vectors): The merged face is `unspecified' if the
3846 mergee specifies `:ignore-defface'.
3847
3848 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3849
3850 * lread.c (readevalloop): Add missing GCPROs.
3851
3852 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
3853
3854 * xfns.c (xg_set_icon_from_xpm_data): New function.
3855
3856 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
3857 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
3858
3859 * xterm.c (x_bitmap_icon): Use the xpm if available.
3860
3861 * image.c (x_create_bitmap_from_xpm_data): New function.
3862 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
3863
3864 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
3865
3866 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
3867
3868 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
3869
3870 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
3871
3872 2005-11-15 Andreas Schwab <schwab@suse.de>
3873
3874 * lisp.h (struct Lisp_Cons): Make cdr a union.
3875 (XCDR_AS_LVALUE): Adjust.
3876 (struct Lisp_Float): Make data a union.
3877 (XFLOAT_DATA): Adjust.
3878
3879 * alloc.c (free_float): Make free list chaining aliasing-safe.
3880 (make_float): Likewise.
3881 (free_cons): Likewise.
3882 (Fcons): Likewise.
3883 (check_cons_list): Likewise.
3884 (Fmake_symbol): Likewise.
3885 (allocate_misc): Likewise.
3886 (free_misc): Likewise.
3887 (gc_sweep): Likewise.
3888
3889 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3890
3891 * mac.c (HASHKEY_QUERY_CACHE): New define.
3892 (xrm_create_database, xrm_q_put_resource): Empty query cache.
3893 (xrm_get_resource): Use query cache.
3894
3895 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
3896 inhibit_window_system is set.
3897
3898 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3899
3900 * macgui.h (USE_CG_TEXT_DRAWING): New define.
3901 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
3902 and cg_glyphs.
3903
3904 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
3905 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
3906 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
3907 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
3908 not used and font substitution never occurs for ASCII and Latin-1
3909 characters.
3910 (XLoadQueryFont): Maximum and minimum metrics are now those among
3911 ASCII characters.
3912 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
3913 height adjustments for Courier, Helvetica, and Times.
3914
3915 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
3916
3917 2005-11-11 David Reitter <david.reitter@gmail.com>
3918
3919 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
3920 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
3921 Vmac_control_modifier / mac-control-modifier,
3922 Vmac_option_modifier / mac-option-modifier,
3923 Vmac_command_modifier / mac-command-modifier.
3924 (mac_to_emacs_modifiers): Use the new style modifier
3925 variables. Return UInt32 (modifiers are longs now.)
3926 (backtranslate_modified_keycode): New function (refactoring).
3927 (XTread_socket): Use new modifier variables and refactored function.
3928 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
3929 no dedicated meta key. Not in use anyway.)
3930 (convert_fn_keycode): Map Fn-keys to their original keycode
3931 using a table (english keyboard only).
3932
3933 2005-11-11 Kim F. Storm <storm@cua.dk>
3934
3935 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
3936 Add post hook to "backtrace" to always dump lisp call stack to
3937 increase chance of people sending it to us when reporting bugs.
3938
3939 * doc.c (Fsubstitute_command_keys): Doc fix.
3940
3941 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
3942
3943 * xdisp.c (handle_stop): Skip overlay string handling if
3944 ignore_overlay_strings_at_pos_p is set.
3945 (set_iterator_to_next): At end of display vector, set
3946 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
3947 string, so we skip those overlay strings at current pos.
3948
3949 2005-11-10 Lars Hansen <larsh@soem.dk>
3950
3951 * fileio.c (file-regular-p): Doc fix.
3952
3953 2005-11-10 Kim F. Storm <storm@cua.dk>
3954
3955 * alloc.c (valid_lisp_object_p): New function to validate that
3956 an object is really a valid Lisp_Object.
3957
3958 * lisp.h (valid_lisp_object_p): Add prototype.
3959
3960 * print.c (safe_debug_print): New function to be called from gdb
3961 to print Lisp objects; use valid_lisp_object_p to avoid crashing
3962 if user tries to print something which is not a Lisp object.
3963
3964 * .gdbinit (pp, pp1): Use safe_debug_print.
3965 (pv, pv1): New commands to print value of a lisp variable.
3966
3967 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
3968
3969 * .gdbinit (pp1): New user-defined function.
3970
3971 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3972
3973 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
3974
3975 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
3976 related variables for dumped executable.
3977
3978 * unexmacosx.c (unexec_write_zero): New function.
3979 (copy_data_segment): Clear uninitialized local variables in
3980 statically linked libraries.
3981
3982 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
3983
3984 2005-11-09 Juri Linkov <juri@jurta.org>
3985
3986 * keymap.c (shadow_lookup): If Flookup_key returns a number,
3987 call it again with a sub-key-sequence, and if its return value
3988 is non-nil (sub-key is bound), return nil.
3989
3990 2005-11-08 Kim F. Storm <storm@cua.dk>
3991
3992 * process.c (Fsignal_process): Recognize signal names with and
3993 without SIG prefix, e.g. SIGHUP and HUP.
3994
3995 * search.c (search_buffer): No need to initialize base_pat.
3996
3997 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
3998
3999 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
4000 Don't abuse the `mini' arg. Use the `obj' arg instead.
4001
4002 2005-11-04 Kim F. Storm <storm@cua.dk>
4003
4004 * xdisp.c (show_mouse_face): Clear mouse face to eol.
4005
4006 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
4007
4008 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
4009 font-lock.elc and jit-lock.elc.
4010
4011 2005-11-03 Richard M. Stallman <rms@gnu.org>
4012
4013 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
4014 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
4015 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
4016
4017 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
4018
4019 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
4020
4021 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4022
4023 * window.c (Fdisplay_buffer): Fix last change to not use
4024 a dedicated window.
4025
4026 2005-11-01 Kim F. Storm <storm@cua.dk>
4027
4028 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
4029 Instead, rotate the bottom angle bitmap 180 degrees to indicate
4030 that the bottom row does not end in a newline.
4031
4032 2005-11-01 Andreas Schwab <schwab@suse.de>
4033
4034 * unexelf.c (unexec): Handle .plt section in BSS segment.
4035
4036 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4037
4038 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
4039
4040 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
4041 determine whether to consider dedicated windows as well.
4042 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
4043 (Fdisplay_buffer): Do consider dedicated windows in those cases where
4044 we will split the window rather than reuse it.
4045 Don't try to use windows on other displays.
4046
4047 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
4048
4049 * puresize.h (BASE_PURESIZE): Increment to 1170000.
4050
4051 2005-10-31 Romain Francoise <romain@orebokech.com>
4052
4053 * macfns.c: Update copyright year.
4054 * m/gould.h: Likewise.
4055
4056 2005-10-30 Kim F. Storm <storm@cua.dk>
4057
4058 * xdisp.c (display_line): Restore it->current_x and call
4059 extend_face_to_end_of_line when last glyph doesn't fit on line.
4060 (set_glyph_string_background_width): Remove specific tests here
4061 to see if face background should extend to end of line. Simplify.
4062
4063 2005-10-30 Richard M. Stallman <rms@gnu.org>
4064
4065 * alloc.c (BYTES_USED): Use uordblks, not arena.
4066 (bytes_used_when_reconsidered): New variable.
4067 (emacs_blocked_free): Set that.
4068
4069 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
4070
4071 * alloc.c (emacs_blocked_free): Fix typo.
4072
4073 2005-10-29 Richard M. Stallman <rms@gnu.org>
4074
4075 * data.c (Fmake_variable_frame_local): Doc fix.
4076
4077 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
4078 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
4079 controls whether to save and restore mode_line_proptrans_alist.
4080 Callers changed.
4081 (unwind_format_mode_line): Work with that feature.
4082 (redisplay_internal): Don't call prepare_menu_bars if memory full.
4083 (move_elt_to_front): New function.
4084 (display_mode_element): Use move_elt_to_front.
4085 Don't bother munging text props on a null string.
4086 Delete obsolete elts from mode_line_proptrans_alist.
4087 (decode_mode_spec): Test Vmemory_full, not spare_memory.
4088 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
4089
4090 * lisp.h (memory_full_cons_threshold): Declare.
4091 (internal_lisp_condition_case): Declare.
4092
4093 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
4094 (Fmemory_full_p): Function deleted.
4095 (syms_of_alloc): Don't defsubr it.
4096 (memory_full_cons_threshold): New variable.
4097 (spare_memory): Now a vector of 7 elts.
4098 (buffer_memory_full): Don't set Vmemory_full here.
4099 (xfree): Don't try to refill here.
4100 (emacs_blocked_free): Record BYTES_USED in local var.
4101 (memory_full): Now free all the slots in spare_memory.
4102 (refill_memory_reserve): Allocate each slot in spare_memory.
4103 (init_alloc_once): Call refill_memory_reserve.
4104
4105 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
4106
4107 * eval.c (internal_lisp_condition_case): New function.
4108 (Fcondition_case): Use internal_lisp_condition_case.
4109 (Feval): Test Vmemory_full and memory_full_cons_threshold.
4110 (Ffuncall): Likewise.
4111
4112 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
4113
4114 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
4115
4116 * syntax.c (Fparse_partial_sexp): Fix docstring.
4117
4118 2005-10-28 Romain Francoise <romain@orebokech.com>
4119
4120 * puresize.h (BASE_PURESIZE): Increment to 1130000.
4121
4122 2005-10-28 Richard M. Stallman <rms@gnu.org>
4123
4124 * xfns.c (syms_of_xfns): Provide `x' as feature.
4125
4126 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
4127
4128 * editfns.c (Fformat): Don't include string padding
4129 between info[n].start and info[n].end.
4130
4131 * alloc.c (spare_memory): No longer static.
4132 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
4133
4134 * puresize.h (BASE_PURESIZE): Increment to 1120000.
4135
4136 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
4139
4140 * fringe.c (update_window_fringes): Handle case where buffer ends
4141 with a newline.
4142
4143 2005-10-27 Kenichi Handa <handa@m17n.org>
4144
4145 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
4146
4147 2005-10-24 Kenichi Handa <handa@m17n.org>
4148
4149 * charset.h (charset_mule_unicode_0100_24ff)
4150 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4151 Extern them.
4152
4153 * charset.c (charset_mule_unicode_0100_24ff)
4154 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4155 New variables.
4156 (Fsetup_special_charsets): Initialize them.
4157
4158 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4159 supported Unicode characters.
4160
4161 2005-10-25 Jason Rumney <jasonr@gnu.org>
4162
4163 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
4164
4165 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4166
4167 * image.c [MAC_OS] (image_load_qt_1): Check image size.
4168 Use GraphicsImportGetImageDescription instead of
4169 GraphicsImportGetNaturalBounds.
4170 [MAC_OSX] (image_load_quartz2d): Check image size.
4171 [MAC_OS] (xpm_load_image): Likewise.
4172
4173 * macterm.c (last_mouse_glyph_frame): New var.
4174 (note_mouse_movement): Say mouse moved if current frame differs
4175 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4176 (XTmouse_position): Set last_mouse_glyph_frame.
4177 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
4178 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
4179 Use EndianU16_BtoN.
4180 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
4181 (x_per_char_metric, XLoadQueryFont)
4182 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
4183 glyph bounds.
4184 (mac_to_x_fontname, mac_do_list_fonts)
4185 (mac_initialize_display_info): Change screen resolutions to 72dpi.
4186
4187 2005-10-25 Masatake YAMATO <jet@gyve.org>
4188
4189 * minibuf.c (Fdisplay_completion_list): Small doc fix.
4190
4191 2005-10-24 Kim F. Storm <storm@cua.dk>
4192
4193 * xterm.c: Undo 2005-10-23 change.
4194 (last_mouse_glyph_frame): New var.
4195 (note_mouse_movement): Say mouse moved if current frame differs
4196 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4197 (XTmouse_position): Set last_mouse_glyph_frame.
4198 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
4199 last_mouse_glyph] on mouse up/down event.
4200
4201 * editfns.c (Fcompare_buffer_substrings): Fix last change.
4202
4203 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4204
4205 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
4206
4207 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4208
4209 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4210 so tool tips don't interfere with press on tool bar button.
4211
4212 2005-10-23 Richard M. Stallman <rms@gnu.org>
4213
4214 * casetab.c (Fset_case_table): Doc fix.
4215
4216 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
4217 (readevalloop): Compute ENTIRE properly.
4218 (syms_of_lread) <load-history>: Doc fix.
4219
4220 2005-10-21 Richard M. Stallman <rms@gnu.org>
4221
4222 * lread.c (Fload): Simplify gcpro structure.
4223 Gcpro FOUND as well as FILE, but not EFOUND.
4224 Unless preloading, record FOUND instead of FILE in Vload_history.
4225 Rename repeat local FILE to MSG_FILE.
4226 (syms_of_lread) <load-history>: Doc fix.
4227
4228 2005-10-21 Kenichi Handa <handa@m17n.org>
4229
4230 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
4231
4232 2005-10-20 Kim F. Storm <storm@cua.dk>
4233
4234 * buffer.c (clone_per_buffer_values): Remove unused var tem.
4235 (init_buffer): Remove unused vars dotstat, pwdstat.
4236
4237 * ccl.c (check_ccl_update): Remove unused var vp.
4238
4239 * fileio.c (auto_save_error): Call SAFE_FREE.
4240
4241 * fns.c (Fchar_table_range): Remove unused var i.
4242
4243 * minibuf.c (display_completion_list_1): New wrapper function
4244 for Fdisplay_completion_list.
4245 (Fminibuffer_completion_help): Use it.
4246
4247 * term.c (encode_terminal_code): Remove unused var src_start.
4248
4249 * window.c (Fwindow_tree): Remove unused var alist.
4250
4251 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
4252
4253 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
4254
4255 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
4256
4257 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
4258
4259 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
4260
4261 2005-10-20 Andreas Schwab <schwab@suse.de>
4262
4263 * minibuf.c (Fdisplay_completion_list): Doc fix.
4264
4265 2005-10-19 Kim F. Storm <storm@cua.dk>
4266
4267 * image.c (check_image_size): Handle integer Vmax_image_size value
4268 directly as max pixel value. Use default frame size for null frame.
4269 (syms_of_image) <max-image-size>: Describe integer value.
4270
4271 2005-10-19 Romain Francoise <romain@orebokech.com>
4272
4273 * emacs.c (main): Update copyright year.
4274
4275 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * image.c (Vmax_image_size): New variable.
4278 (check_image_size): New function.
4279 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
4280 (gif_load, gs_load): Use it.
4281 (lookup_image): Try loading again if previous load failed.
4282 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
4283 to display in, NULL if none.
4284 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
4285 argument.
4286
4287 2005-10-18 Richard M. Stallman <rms@gnu.org>
4288
4289 * search.c (Fstring_match): Doc fix.
4290
4291 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4292
4293 * macterm.c (note_mouse_movement): Use PtInRect.
4294 (XTread_socket): Also ignore mouse motion just before a button
4295 release event. Don't process button release event when mouse is
4296 not grabbed.
4297
4298 2005-10-16 Masatake YAMATO <jet@gyve.org>
4299
4300 * minibuf.c (Fdisplay_completion_list): Add new optional
4301 argument COMMON_SUBSTRING. Bind `completion-common-substring'
4302 to the optional argument during running `completion-setup-hook'.
4303
4304 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4305
4306 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
4307 Allow nil as argument.
4308 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
4309 for encoding arguments as UTF-16 in native byte order, no BOM.
4310
4311 * macfns.c (Fx_create_frame): Add debugging code.
4312 (Fx_show_tip): Set frame pixel width and height.
4313
4314 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
4315 (FRAME_NORMAL_GC): New macro.
4316 (mac_draw_line, mac_clear_area, mac_clear_window)
4317 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
4318 (mac_draw_image_string, mac_draw_image_string_16): Rename from
4319 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
4320 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
4321 All uses changed.
4322 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
4323 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
4324 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
4325 (mac_draw_string_16, mac_draw_image_string)
4326 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
4327 (mac_scroll_area): Drawing functions now take frame as destination.
4328 All uses changed.
4329 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
4330 (x_draw_fringe_bitmap): Set clipping area in face->gc.
4331
4332 * macterm.h (mac_clear_area): Add extern.
4333
4334 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4335
4336 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
4337 changes for xterm.c.
4338
4339 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
4340
4341 2005-10-14 Kenichi Handa <handa@m17n.org>
4342
4343 * search.c (search_buffer): Give up BM search on case-fold-search
4344 if one of a target character has a case-equivalence of different
4345 charset even if that target charcter is an ASCII.
4346
4347 * casefiddle.c (casify_object): Fix for the case that case
4348 conversion change the byte length.
4349
4350 2005-10-14 Kim F. Storm <storm@cua.dk>
4351
4352 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
4353 (handle_one_xevent): Only clear help_echo_string; restore it if
4354 note_mouse_movement didn't record any mouse movement.
4355
4356 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
4357 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
4358
4359 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
4360 (Fposn_at_x_y): Fix calculation of x coordinate.
4361 (Fposn_at_point): Return nil if point is hscrolled out of view.
4362
4363 2005-10-13 Andreas Schwab <schwab@suse.de>
4364
4365 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
4366 non-interactive mode.
4367
4368 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4369
4370 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
4371
4372 2005-10-12 Kim F. Storm <storm@cua.dk>
4373
4374 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
4375
4376 2005-10-12 Romain Francoise <romain@orebokech.com>
4377
4378 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
4379
4380 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4381
4382 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
4383 get end of text rows. Obtain header-line/mode-line rows directly.
4384
4385 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
4386 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
4387
4388 2005-10-12 Kim F. Storm <storm@cua.dk>
4389
4390 * xdisp.c (remember_mouse_glyph): New generic version based on
4391 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
4392 properly handle all different window areas.
4393
4394 * dispextern.h (remember_mouse_glyph): Add prototype.
4395
4396 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
4397 (note_mouse_movement, XTmouse_position): Use generic
4398 remember_mouse_glyph, add last_mouse_glyph arg.
4399
4400 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
4401 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
4402 (note_mouse_movement, w32_mouse_position): Use generic
4403 remember_mouse_glyph, add last_mouse_glyph arg.
4404
4405 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
4406 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
4407 (XTmouse_position): Adapt to use generic remember_mouse_glyph
4408 instead of pixel_to_glyph_coords.
4409
4410 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
4411 Fix x position for ON_TEXT when left margin width > 0.
4412
4413 2005-10-11 Kim F. Storm <storm@cua.dk>
4414
4415 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
4416
4417 * keyboard.c (make_lispy_position): Fix buffer calculations for
4418 mouse click or movement in right fringe and the margins.
4419
4420 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
4421
4422 * image.c (fn_jpeg_stdio_src): Don't define it.
4423 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
4424 (our_common_init_source): Rename from `our_init_source'.
4425 (our_common_term_source): Rename from `our_term_source'.
4426 (our_memory_fill_input_buffer): Rename from
4427 `our_fill_input_buffer'.
4428 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
4429 (jpeg_memory_src): Use the new names.
4430 (struct jpeg_stdio_mgr): New struct.
4431 (JPEG_STDIO_BUFFER_SIZE): New constant.
4432 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
4433 (jpeg_file_src): New functions.
4434 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
4435
4436 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4437
4438 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
4439 (fm_font_family_alist): New variable.
4440 (syms_of_macterm): Initialize and staticpro it.
4441 (decode_mac_font_name): Replace '-' in family name with '_' if it
4442 occurs just once. Lower family name.
4443 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
4444 All uses changed. Remove argument MF and code conversion for it.
4445 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
4446 to CHARSET. Parse font size. Lower family name. Return integer
4447 value for status of parsing.
4448 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
4449 Don't use Fdowncase because family name is already lowered by
4450 decode_mac_font_name.
4451 (init_font_name_table): Always call decode_mac_font_name.
4452 Add pair of family name and its reference to fm_font_family_alist.
4453 (mac_clear_font_name_table): Clear fm_font_family_alist.
4454 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
4455 Lookup fm_font_family_alist to get font family reference.
4456 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
4457 name is already lowered by parse_x_font_name.
4458
4459 2005-10-11 Kim F. Storm <storm@cua.dk>
4460
4461 * xterm.c (glyph_rect): Return 0 if position is outside text area.
4462
4463 * keyboard.c (make_lispy_position): Fix buffer position calculation for
4464 mouse click or movement in fringe.
4465
4466 2005-10-10 Jason Rumney <jasonr@gnu.org>
4467
4468 * xterm.c (remember_mouse_glyph): New function.
4469 (note_mouse_movement): Use it to remember the current glyph if changed.
4470 (XTmouse_position): Fix calculation of fake glyph under mouse.
4471 Move code to calculate glyph under mouse into remember_mouse_glyph.
4472
4473 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4474
4475 * emacs.c (USAGE3, standard_args): -nb => -nbi.
4476
4477 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
4478
4479 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
4480 (next_frame, prev_frame, set_term_frame_name): Make static.
4481
4482 * window.c (Fwindow_tree): Fix spelling.
4483
4484 2005-10-09 Romain Francoise <romain@orebokech.com>
4485
4486 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
4487
4488 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4489
4490 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
4491 Add options -nb, --no-bitmap-icon.
4492
4493 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
4494
4495 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4496
4497 * macgui.h (MAX_CLIP_RECTS): New define.
4498 (struct _XGC): New member clip_region.
4499 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
4500 clip_rects.
4501
4502 * macterm.c (GC_CLIP_REGION): New macro.
4503 (saved_port_clip_region): New variable.
4504 (mac_begin_clip, mac_end_clip): New functions.
4505 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
4506 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
4507 (mac_copy_area_with_mask, mac_scroll_area): Use them.
4508 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
4509 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
4510 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
4511 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
4512 rectangles stored in gc.
4513 (XFreeGC): Dispose of clipping region.
4514 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
4515 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
4516 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
4517 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
4518 (x_draw_bar_cursor): Use them.
4519 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
4520 get multiple clipping rectangles.
4521
4522 * macterm.h (mac_term_init): Add types to extern.
4523 (struct mac_output): Remove members mWP and pending_menu_activation.
4524 Put members scroll_bar_foreground_pixel and
4525 scroll_bar_background_pixel in #if 0.
4526 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
4527
4528 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
4529 Add debugging code.
4530
4531 2005-10-08 Kim F. Storm <storm@cua.dk>
4532
4533 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
4534
4535 2005-10-07 Kim F. Storm <storm@cua.dk>
4536
4537 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
4538 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
4539 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
4540
4541 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4542
4543 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
4544 to for_overlaps. Now occupy 3 bits.
4545 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
4546 (OVERLAPS_ERASED_CURSOR): New defines.
4547 (struct redisplay_interface): Add new OVERLAPS arg to member
4548 fix_overlapping_area.
4549 (x_fix_overlapping_area): Add new OVERLAPS arg.
4550 (get_glyph_string_clip_rects): Add extern.
4551
4552 * dispnew.c (redraw_overlapping_rows):
4553 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
4554
4555 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
4556 for_overlaps.
4557 (get_glyph_string_clip_rects): New function created from
4558 get_glyph_string_clip_rect. Set clipping rectangles according to the
4559 value of for_overlaps. Enable to store multiple clipping rectangles.
4560 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
4561 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
4562 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
4563 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
4564 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
4565 calculating clipping rectangles later. Call x_fix_overlapping_area
4566 with new OVERLAPS arg to draw only erased cursor area.
4567 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
4568 to draw overlaps in both preceding and succeeding rows.
4569
4570 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
4571 struct glyph_string to for_overlaps.
4572
4573 2005-10-04 Richard M. Stallman <rms@gnu.org>
4574
4575 * alloc.c (refill_memory_reserve): Conditionalize the body,
4576 not the function's existence.
4577
4578 2005-10-04 Kim F. Storm <storm@cua.dk>
4579
4580 * window.c (window_split_tree): New function.
4581 (Fwindow_split_tree): New defun.
4582 (syms_of_window): Defsubr it.
4583
4584 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4585
4586 * macterm.c (mac_invert_rectangle): New function.
4587 (XTflash): Use it.
4588
4589 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
4590
4591 * regex.h (re_char): Don't expose it in the interface.
4592 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
4593
4594 * regex.c (re_char): Move it back here.
4595 (re_set_whitespace_regexp): Change the arg's type to not use it.
4596
4597 * keyboard.c (make_lispy_event): If point has moved between down and up
4598 event, make it a drag, not a click, to mirror what
4599 mouse-drag-region expects.
4600
4601 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4602
4603 * lisp.h (fatal): Undo previous change.
4604 * term.c (fatal): Undo previous change.
4605
4606 2005-10-01 Richard M. Stallman <rms@gnu.org>
4607
4608 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
4609
4610 2005-10-01 Kim F. Storm <storm@cua.dk>
4611
4612 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
4613
4614 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4615
4616 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
4617
4618 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
4619 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4620 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
4621 Try ATSUI-compatible 12pt Monaco font first.
4622
4623 * macgui.h (struct _XCharStruct): New member valid_p.
4624 (STORE_XCHARSTRUCT): Set valid_p.
4625 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
4626
4627 * macterm.c (mac_draw_string_common, x_per_char_metric)
4628 (mac_compute_glyph_string_overhangs, init_font_name_table)
4629 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
4630 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
4631 (x_draw_glyph_string_background)
4632 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
4633 XDrawImageString. Always draw background and foreground separately.
4634 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
4635 functions for one-byte chars when using ATSUI-compatible fonts.
4636 (atsu_font_id_hash) [USE_ATSUI]: New variable.
4637 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
4638 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
4639 max_char_or_byte2 more in detail.
4640 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
4641
4642 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4643
4644 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
4645 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
4646
4647 * unexelf.c (fatal): Fix prototype.
4648
4649 * term.c (fatal): Implement using varargs.
4650
4651 * regex.c (re_char): Move typedef ...
4652 * regex.h (re_char): ... here.
4653 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
4654
4655 * emacs.c (malloc_set_state): Fix return type.
4656 (endif): Fix type.
4657
4658 * lisp.h (fatal): Add argument types.
4659
4660 * dispextern.h (fatal): Delete prototype.
4661
4662 * systime.h (make_time): Prototype moved from ...
4663 * editfns.c (make_time): ... here.
4664
4665 * editfns.c: Move systime.h include after lisp.h.
4666 * dired.c:
4667 * xsmfns.c:
4668 * process.c: Likewise.
4669
4670 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
4671 Add parameter types.
4672 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
4673 (emacs_blocked_free): Change definition to match __free_hook.
4674 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4675 (emacs_blocked_realloc): Change definition to match __realloc_hook.
4676
4677 2005-09-30 Romain Francoise <romain@orebokech.com>
4678
4679 * minibuf.c (Fread_buffer): Follow convention for reading from the
4680 minibuffer with a default value. Doc fix.
4681
4682 2005-09-29 Juri Linkov <juri@jurta.org>
4683
4684 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
4685 Rename argument name `string' to `format-string'.
4686 (Fformat): Doc fix.
4687
4688 2005-09-28 Kim F. Storm <storm@cua.dk>
4689
4690 * image.c (gif_load): Fix size of allocated image buffer
4691 for images where a sub-image may be larger than the image's
4692 total height/width specifications.
4693
4694 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4695
4696 * macgui.h (struct _XCharStruct): Each member now takes short value.
4697
4698 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
4699
4700 * xfaces.c (lookup_derived_face): Add parameter type.
4701
4702 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
4703
4704 * marker.c (verify_bytepos): Add parameter type.
4705
4706 * process.c (get_operating_system_release): Move prototype ...
4707
4708 * systime.h (get_operating_system_release): ... here.
4709
4710 * xterm.c (handle_one_xevent): Refer to union field to match the
4711 type required by the function definition.
4712 (set_vertical_scroll_bar): Move prototype ...
4713
4714 * xterm.h: ... here.
4715
4716 * fns.c (internal_equal, seed_random): Fix prototypes.
4717 (internal_equal): Add missing parameter.
4718
4719 2005-09-25 Richard M. Stallman <rms@gnu.org>
4720
4721 * keyboard.c (update_menu_bindings): Variable deleted.
4722 (syms_of_keyboard): Don't defvar it.
4723 (parse_menu_item): Don't test it.
4724
4725 2005-09-23 Richard M. Stallman <rms@gnu.org>
4726
4727 * editfns.c (Fformat): Explicitly test for end of format string
4728 and don't use `index'.
4729
4730 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
4731
4732 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
4733 Define BROKEN_GET_CURRENT_DIR_NAME.
4734
4735 * sysdep.c (get_current_dir_name): Also define if
4736 BROKEN_GET_CURRENT_DIR_NAME.
4737
4738 * m/ibmrs6000.h: Test for USG5, not USG5_4.
4739
4740 2005-09-22 Kim F. Storm <storm@cua.dk>
4741
4742 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
4743 (message2): Fix commentary. Ok to use alloca'ed memory.
4744 Still not ok to use Lisp string data (because of GC).
4745 (set_message): Add comment why GC cannot happen.
4746
4747 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4748
4749 * macterm.c (xlfdpat_block_match_1): Fix assertion.
4750 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
4751 variants for a scalable font multiple times.
4752
4753 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4754
4755 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
4756 Setup slave tty options before forking.
4757
4758 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4759
4760 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
4761 positions have been set for the frame (as is done for frames in
4762 special-display-buffer-names).
4763
4764 2005-09-19 Kim F. Storm <storm@cua.dk>
4765
4766 * editfns.c (Fformat): Don't scan past end of format string that
4767 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
4768
4769 2005-09-18 Andreas Schwab <schwab@suse.de>
4770
4771 * window.h (struct window): Remove height_fixed_p, no longer set.
4772
4773 * window.c (make_window): Don't initialize height_fixed_p.
4774 (window_fixed_size_p): Don't use it.
4775
4776 2005-09-18 John Paul Wallington <jpw@pobox.com>
4777
4778 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
4779
4780 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4781
4782 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
4783
4784 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4785 New variables.
4786 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
4787 file selection.
4788
4789 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
4790
4791 2005-09-17 Eli Zaretskii <eliz@gnu.org>
4792
4793 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
4794 (obj): Use XMENU_OBJ, not a literal xmenu.o.
4795
4796 2005-09-16 Romain Francoise <romain@orebokech.com>
4797
4798 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
4799
4800 2005-09-15 Richard M. Stallman <rms@gnu.org>
4801
4802 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
4803 (display_mode_element): Instead of `lisp_string' and `this',
4804 record `offset' and increment that.
4805 `last_offset' replaces `last'.
4806
4807 * Makefile.in (XMENU_OBJ): Variable deleted.
4808 (obj): Use xmenu.o unconditionally.
4809 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
4810
4811 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
4812
4813 2005-09-15 Kim F. Storm <storm@cua.dk>
4814
4815 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
4816 (reseat_at_next_visible_line_start): Likewise (in xassert).
4817
4818 2005-09-14 Romain Francoise <romain@orebokech.com>
4819
4820 * fileio.c (write_region_inhibit_fsync): New variable.
4821 (Fwrite_region): Use it to skip call to fsync.
4822 (syms_of_fileio): Initialize it.
4823
4824 2005-09-14 Kenichi Handa <handa@m17n.org>
4825
4826 * coding.c (code_convert_region_unwind): Argument format changed.
4827 (run_pre_post_conversion_on_str): If pre-write-conversion function
4828 changed the current buffer, delete the new buffer.
4829 (run_pre_write_conversin_on_c_str): Likewise.
4830
4831 * fileio.c (Fexpand_file_name): Check multibyteness of
4832 default_directory.
4833
4834 2005-09-13 Kenichi Handa <handa@m17n.org>
4835
4836 * composite.c (compose_chars_in_text): Delete it.
4837
4838 * composite.h (compose_chars_in_text): Delete extern.
4839
4840 2005-09-13 Kim F. Storm <storm@cua.dk>
4841
4842 * print.c (print_error_message): Fix last change.
4843
4844 2005-09-12 Kim F. Storm <storm@cua.dk>
4845
4846 * composite.c (compose_chars_in_text): Fix setup of `pend'.
4847 Unconditionally reload `ptr' and `pend' after eval.
4848
4849 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
4850
4851 * print.c (print_error_message): Pass copy of caller name to
4852 message_dolog.
4853
4854 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
4855
4856 2005-09-12 Kenichi Handa <handa@m17n.org>
4857
4858 * xdisp.c (display_mode_element): Be sure to make variables THIS
4859 and LISP_STRING point into a string data of ELT.
4860
4861 2005-09-12 Kim F. Storm <storm@cua.dk>
4862
4863 * editfns.c (Ftranslate_region_internal): Reload `tt' after
4864 signal_after_change that may have GC'ed.
4865 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
4866
4867 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
4868 after insert while runs signal_after_change.
4869
4870 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
4871 declaration to where it is used.
4872
4873 * w32.c (check_windows_init_file): Fix allocation of error buffer.
4874
4875 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
4876 (x_set_name_internal): Call x_encode_text with new FREEP arg to
4877 know if xfree is needed instead of guessing.
4878
4879 * xterm.h (x_encode_text): Remove prototype.
4880
4881 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
4882
4883 * w32term.c (x_bitmap_icon): Load small icons too.
4884
4885 2005-09-10 Romain Francoise <romain@orebokech.com>
4886
4887 * buffer.c (init_buffer): Grow buffer to add directory separator
4888 and terminal zero. Fix typos.
4889
4890 2005-09-10 Eli Zaretskii <eliz@gnu.org>
4891
4892 * buffer.c (init_buffer): Fix error message for failed call to
4893 get_current_dir_name.
4894 (get_current_dir_name): Remove prototype.
4895
4896 * xsmfns.c (get_current_dir_name): Remove prototype.
4897
4898 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4899 Add prototype.
4900
4901 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
4902 Don't #undef NULL after including blockinput.h.
4903
4904 * config.in: Regenerated.
4905
4906 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
4907
4908 Remove the MAXPATHLEN limitations:
4909
4910 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4911 New function.
4912
4913 * buffer.c (init_buffer): Use it.
4914
4915 * xsmfns.c (smc_save_yourself_CB): Ditto.
4916
4917 2005-09-09 Kim F. Storm <storm@cua.dk>
4918
4919 * doc.c (Fsubstitute_command_keys): Lookup key binding for
4920 commands that are remapped from some other command.
4921
4922 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
4923 flag in disabled rows below the window.
4924
4925 * frame.h (struct frame): New member updated_p.
4926
4927 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
4928 member. Remove local `updated' array and associated variables.
4929
4930 2005-09-07 Kim F. Storm <storm@cua.dk>
4931
4932 * xdisp.c (handle_display_prop): Respect overlay window property.
4933
4934 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
4935 Fixes crash reported by YAMAMOTO Mitsuharu.
4936
4937 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4938
4939 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
4940 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
4941 (xlfdpat_block_match_1, xlfdpat_match): New functions.
4942 (xlfdpat_block_match): New macro.
4943 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
4944 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
4945 (add_font_name_table_entry): Increase font_name_table_size more
4946 rapidly.
4947 (mac_c_string_match): Remove function.
4948 (mac_do_list_fonts): Use XLFD pattern match instead of regular
4949 expression match.
4950
4951 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
4952
4953 2005-09-03 Richard M. Stallman <rms@gnu.org>
4954
4955 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
4956 (move_it_in_display_line_to): Stop after last char on line even
4957 on a windowing terminal, if that's the specified stop position.
4958
4959 * fns.c (Fsort): Doc fix.
4960
4961 * editfns.c (Fpropertize): Don't insist that properties be symbols.
4962
4963 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
4964
4965 * dired.c (directory_files_internal_unwind, directory_files_internal)
4966 (file_name_completion): Use a Save_Value object rather than a cons of
4967 two 16bit ints to store the DIR*.
4968 (directory_files_internal, file_name_completion): Handle both EINTR and
4969 EAGAIN consistently after `readdir'.
4970
4971 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4972
4973 * intervals.c (update_interval): Add position info in error.
4974
4975 * dispnew.c (window_to_frame_hpos, update_window):
4976 Avoid gcc warning about unused variable `f'.
4977
4978 2005-08-31 Jason Rumney <jasonr@gnu.org>
4979
4980 * w32menu.c (add_menu_item): If unicode_append_menu returns an
4981 error, revert to using AppendMenu.
4982
4983 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4984
4985 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
4986 All uses changed.
4987 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
4988 cases.
4989 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
4990 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
4991 Use posix_pathname_to_fsspec.
4992 [MAC_OS] (xpm_load_image): Fill in background_transparent field
4993 while we have mask.
4994
4995 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
4996
4997 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
4998
4999 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5000
5001 * syntax.c (update_syntax_table): Properly reproduce the special +1
5002 setting of e_property at the end of the buffer when bumping into the
5003 INTERVALS_AT_ONCE limit.
5004
5005 2005-08-27 Eli Zaretskii <eliz@gnu.org>
5006
5007 * emacs.c (USAGE1): Fix the description of the -Q option.
5008
5009 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
5010
5011 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
5012
5013 2005-08-26 Kim F. Storm <storm@cua.dk>
5014
5015 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
5016 Don't move PT to new window start.
5017
5018 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5019
5020 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
5021 ICONIFY/DEICONIFY_EVENT.
5022
5023 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
5024 Restore background color.
5025 (mac_handle_visibility_change): New function.
5026 (x_make_frame_invisible, x_iconify_frame)
5027 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
5028 [USE_CARBON_EVENTS] (mac_handle_window_event)
5029 (install_window_handler): Handle visibility change events.
5030 (x_make_frame_visible): Don't reposition window if it is iconified
5031 or asked for visible before. Select and uncollapse window when it
5032 is made visible.
5033 (x_make_frame_invisible): Don't reset x_highlight_frame.
5034 (x_iconify_frame): Likewise. Make invisible frame visible before
5035 it is iconified.
5036 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
5037 (do_window_update): Don't change visibility of invisible frame.
5038
5039 2005-08-22 Juri Linkov <juri@jurta.org>
5040
5041 * term.c (turn_on_face): Check for TS_set_foreground and
5042 TS_set_background depending on standout_mode. Simplify.
5043
5044 2005-08-21 Kim F. Storm <storm@cua.dk>
5045
5046 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
5047 bitmaps on fully visible rows.
5048
5049 * fringe.c (update_window_fringes): Replace FORCE_P arg with
5050 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
5051 and return 0.
5052
5053 * xdisp.c (redisplay_window): Call update_window_fringes with
5054 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
5055
5056 2005-08-20 Richard M. Stallman <rms@gnu.org>
5057
5058 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
5059 (resize_mini_window): Set w->start, and PT, so as to display the tail
5060 end of the buffer, if it doesn't all fit.
5061
5062 2005-08-18 Kim F. Storm <storm@cua.dk>
5063
5064 * xdisp.c (calc_pixel_width_or_height): Use actual display
5065 resolution when available instead of Vdisplay_pixels_per_inch.
5066
5067 2005-08-17 Kim F. Storm <storm@cua.dk>
5068
5069 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
5070
5071 * dispnew.c (buffer_posn_from_coords): Check that target row is
5072 within matrix.
5073
5074 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5075
5076 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
5077 xg_set_frame_icon and call it.
5078
5079 * gtkutil.c (xg_set_frame_icon): New function.
5080
5081 * gtkutil.h (xg_set_frame_icon): Declare it.
5082
5083 2005-08-16 Kim F. Storm <storm@cua.dk>
5084
5085 * dispnew.c (increment_row_positions): Skip non-enabled rows.
5086
5087 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
5088 (Fcurrent_window_configuration): Use VECSIZE macro instead.
5089
5090 2005-08-15 Richard M. Stallman <rms@gnu.org>
5091
5092 * xdisp.c (message3_nolog): Clear echo_message_buffer.
5093
5094 2005-08-15 Kim F. Storm <storm@cua.dk>
5095
5096 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
5097
5098 * process.c (deactivate_process, status_notify, read_process_output)
5099 (update_status, status_convert, decode_status, allocate_pty)
5100 (make_process, remove_process, list_processes_1)
5101 (create_process_1, unwind_request_sigio, read_process_output)
5102 (send_process, keyboard_bit_set): Declare static.
5103 (Fdelete_process): Simplify. Pass process to status_notify, so we
5104 don't try to read output from it.
5105 (status_notify): New arg deleting_process--don't try to read
5106 output from that process.
5107
5108 * lisp.h (deactivate_process, status_notify, read_process_output):
5109 Remove prototypes.
5110
5111 2005-08-14 Richard M. Stallman <rms@gnu.org>
5112
5113 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
5114 define_image_type.
5115
5116 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5117
5118 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
5119 (xg_get_image_for_pixmap): Move some code to
5120 xg_get_pixbuf_from_pix_and_mask, and call it.
5121
5122 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
5123
5124 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
5125 to get an GTK icon and set it with GTK functions to avoid having GTK
5126 override an icon set with just X functions.
5127
5128 2005-08-11 Richard M. Stallman <rms@gnu.org>
5129
5130 * image.c (syms_of_image): Init image_types here, and call
5131 define_image_type.
5132 (init_image): Not here.
5133
5134 2005-08-09 Richard M. Stallman <rms@gnu.org>
5135
5136 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
5137
5138 * lisp.h (QUIT): Throw t to Vthrow_on_input.
5139
5140 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
5141
5142 * floatfns.c (Fexpt): Use floats for negative exponent.
5143
5144 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5145
5146 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
5147 should not be there, causing menu display errors with GTK 2.6.9.
5148
5149 2005-08-07 Richard M. Stallman <rms@gnu.org>
5150
5151 * floatfns.c (Fexpt): Undo previous change.
5152
5153 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
5154 so it can be used with various state vectors.
5155
5156 * emacs.c (endif): Convert -script into -scriptload.
5157 (standard_args): Add -scriptload. Allow -basic-display with one dash.
5158
5159 * fns.c (syms_of_fns): Add `emacs' to features.
5160
5161 * term.c (set_terminal_modes): If no TS_termcap_modes string,
5162 output newlines to scroll the old screen contents off the screen.
5163
5164 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
5165
5166 * floatfns.c (Fexpt): Use floats for negative exponent.
5167 Reported by D Goel.
5168
5169 2005-08-02 Richard M. Stallman <rms@gnu.org>
5170
5171 * frame.c (Fframe_char_width): Doc fix.
5172
5173 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
5174
5175 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
5176 Defvar it.
5177
5178 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
5179
5180 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
5181 (my_create_window, my_create_tip_window): Make static.
5182
5183 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
5184 (my_set_foreground_window, my_destroy_window): Make static.
5185
5186 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
5187
5188 Merge gnulib getopt implementation into Emacs.
5189
5190 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
5191 now part of lib-src.
5192
5193 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
5194
5195 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
5196
5197 2005-07-25 Jason Rumney <jasonr@gnu.org>
5198
5199 * w32menu.c (w32_menu_display_help): Suppress tooltip when
5200 navigating menus with the keyboard.
5201
5202 2005-07-23 Richard M. Stallman <rms@gnu.org>
5203
5204 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
5205
5206 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
5207 gc_relative_threshold, one by one.
5208
5209 * keyboard.c (read_char): Test gc_cons_threshold.
5210 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
5211
5212 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
5213 gc_relative_threshold, one by one.
5214
5215 * alloc.c (gc_cons_threshold): Not static.
5216 (gc_cons_combined_threshold): Var deleted.
5217 (gc_relative_threshold): New variable.
5218 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
5219 instead of gc_cons_combined_threshold.
5220
5221 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
5222 (gc_cons_combined_threshold): Declaration deleted.
5223
5224 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5225
5226 * mac.c: Don't include stdlib.h or string.h.
5227 (Fdo_applescript, Fmac_file_name_to_posix)
5228 (Fmac_file_name_to_posix): Doc fixes.
5229 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
5230 (Fmac_code_convert_string): Likewise.
5231 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
5232 if the executable is not contained in a bundle.
5233
5234 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
5235 (gray_width, gray_height): Remove defines.
5236 (gray_bits, gray_bitmap_width, gray_bitmap_height)
5237 (gray_bitmap_bits): Remove variables.
5238 (lispy_function_keys): Remove extern.
5239 (free_frame_menubar): Add extern.
5240 (x_window_to_frame): Remove function.
5241 (unwind_create_tip_frame): Add declaration.
5242 (x_set_name_internal): New function.
5243 (x_set_name, x_set_title): Use it.
5244 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
5245 (Fx_display_pixel_height, Fx_display_planes)
5246 (Fx_display_color_cells, Fx_server_max_request_size)
5247 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5248 (Fx_display_mm_height, Fx_display_mm_width)
5249 (Fx_display_backing_store, Fx_display_visual_class)
5250 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
5251
5252 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5253
5254 * macselect.c (Fx_own_selection_internal): Follow error conventions.
5255 (Fx_get_selection_internal, Fx_selection_owner_p)
5256 (Fx_selection_exists_p): Doc fixes.
5257 (syms_of_macselect) <selection-converter-alist>: Likewise.
5258
5259 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
5260
5261 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5262
5263 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
5264 (Fccl_execute_on_string): Likewise; add usage info.
5265
5266 * composite.c (Fcompose_region_internal)
5267 (Fcompose_string_internal):
5268 Improve argument/docstring consistency.
5269
5270 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
5271 Fix typos in docstrings.
5272
5273 * textprop.c (Fnext_char_property_change)
5274 (Fprevious_char_property_change): Doc fixes.
5275
5276 * window.c (Fset_window_margins, Fset_window_fringes):
5277 Improve argument/docstring consistency.
5278
5279 * xfaces.c (Finternal_lisp_face_p): Doc fix.
5280
5281 2005-07-21 Andreas Schwab <schwab@suse.de>
5282
5283 * eval.c (restore_stack_limits): Return a value.
5284
5285 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
5286
5287 * eval.c (Fdefvar): Doc fix.
5288
5289 2005-07-20 Kim F. Storm <storm@cua.dk>
5290
5291 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
5292 Use make_save_value to unwind protect stream.
5293
5294 * lread.c (Fload, load_unwind):
5295 Use make_save_value to unwind protect stream.
5296
5297 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
5298
5299 * eval.c (Fprog2, Fcalled_interactively_p),
5300 (syms_of_eval) <debug-on-quit>: Doc fixes.
5301 (syms_of_eval) <max-specpdl-size>:
5302 (Finteractive_p): Fix typos in docstrings.
5303
5304 2005-07-19 Kim F. Storm <storm@cua.dk>
5305
5306 * w32fns.c (Vx_hand_shape): Variable removed.
5307 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
5308
5309 2005-07-19 Kenichi Handa <handa@m17n.org>
5310
5311 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
5312
5313 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
5314
5315 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
5316
5317 2005-07-18 Kim F. Storm <storm@cua.dk>
5318
5319 * frame.h (struct frame): New member already_hscrolled_p.
5320
5321 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
5322 to avoid redisplay looping hscrolling back and forth ad infinitum.
5323
5324 2005-07-18 Juri Linkov <juri@jurta.org>
5325
5326 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
5327 * keymap.c (Fminor_mode_key_binding):
5328 * macterm.c (mac-emulate-three-button-mouse):
5329 Delete duplicate duplicate words.
5330
5331 2005-07-18 Ken Raeburn <raeburn@gnu.org>
5332
5333 * minibuf.c (Ftest_completion): Fix odd syntax in test.
5334
5335 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5336
5337 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
5338
5339 * macgui.h (struct _XGC): New struct.
5340 (GC): Use it.
5341 (GCForeground, GCBackground, GCFont): Use X11 mask values.
5342 (XCreateGC, XParseGeometry): Move externs to macterm.h.
5343
5344 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
5345 (XSetFont): Add declaration.
5346 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
5347 Remove functions.
5348 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
5349 New defines.
5350 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
5351 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
5352 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
5353 Use them.
5354 (mac_erase_rectangle): New function.
5355 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
5356 (x_draw_stretch_glyph_string): Use it.
5357 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
5358 (XSetBackground, XSetFont): Adjust for new GC implementation.
5359 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
5360 (XTset_vertical_scroll_bar): Clear area under scroll bar.
5361
5362 * macterm.h (struct mac_display_info): Change types of
5363 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
5364 (XCreateGC, XParseGeometry): Move externs from macgui.h.
5365
5366 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
5367
5368 2005-07-16 Richard M. Stallman <rms@gnu.org>
5369
5370 * buffer.c (Fmake_overlay): Doc fix.
5371
5372 2005-07-16 Eli Zaretskii <eliz@gnu.org>
5373
5374 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
5375 Vw32_valid_locale_ids, and Vw32_valid_codepages.
5376
5377 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378
5379 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
5380 Use Fstring_as_unibyte instead of string_make_unibyte.
5381
5382 2005-07-15 Richard M. Stallman <rms@gnu.org>
5383
5384 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
5385
5386 2005-07-15 Kim F. Storm <storm@cua.dk>
5387
5388 * xdisp.c: Fix redisplay loop in last change.
5389 (IT_POS_VALID_AFTER_MOVE_P): New macro.
5390 (move_it_vertically_backward, move_it_by_lines): Use it.
5391
5392 2005-07-14 Jason Rumney <jasonr@gnu.org>
5393
5394 * w32.c (init_environment): Default HOME directory to user's
5395 appdata directory if possible.
5396
5397 2005-07-14 Kim F. Storm <storm@cua.dk>
5398
5399 * .gdbinit (pitx): Fix output format. Print string charpos.
5400
5401 * lread.c (syms_of_lread): Initialize seen_list.
5402
5403 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
5404
5405 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
5406 Staticpro re_match_object.
5407
5408 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5409
5410 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
5411 dereference.
5412
5413 * macterm.c (mac_window_to_frame): Remove duplicate define.
5414
5415 2005-07-14 Kenichi Handa <handa@m17n.org>
5416
5417 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
5418 (code_convert_region): Adjust for the above change.
5419 (set_conversion_work_buffer): If the work buffer is already in
5420 use, generate a new buffer and return it. Otherwise return Qnil.
5421 (run_pre_post_conversion_on_str): Adjust for the above change.
5422 (run_pre_write_conversin_on_c_str): Likewise.
5423
5424 2005-07-13 Kim F. Storm <storm@cua.dk>
5425
5426 * xdisp.c (start_display): Don't reseat to next visible line start
5427 if current start position is in a string or image.
5428 (move_it_vertically_backward): Be sure to move out of strings and
5429 images when moving it2 forward.
5430 (move_it_by_lines): When moving forward, move to next buffer
5431 position if we end up in a string or image. When moving backward,
5432 count rows moved over when moving to start of current row in case
5433 row starts in middle of a string or image. Also move further
5434 backward if we end up in a string or image.
5435 (try_cursor_movement): If overlay string spans multiple lines,
5436 move backward to set cursor on start of an overlay string.
5437 (cursor_row_p): Row is ok if cursor is at newline from string, but
5438 string starts on this line (so we always position cursor at start
5439 of string).
5440
5441 * indent.c (Fvertical_motion): If start position is on an image,
5442 don't move back if we move too far (that's almost certain to happen).
5443
5444 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
5445 row in minibuffer windows.
5446 (try_window): Don't check margins in minibuffer windows.
5447
5448 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5449
5450 * macterm.c: Don't include stdlib.h or composite.h.
5451 (x_use_underline_position_properties, last_mouse_press_frame)
5452 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
5453 (syms_of_macterm, mac_initialize): Don't initialize them.
5454 (waiting_for_input, initial_argv, initial_argc)
5455 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
5456 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
5457 (extra_keyboard_modifiers): Fix type in extern.
5458 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
5459 (x_scroll_bar_report_motion): Add argument types to declaration.
5460 (mac_compute_glyph_string_overhangs): Add declaration.
5461 (disable_mouse_highlight): Remove unused variable.
5462 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
5463 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
5464 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
5465 All callers changed.
5466 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
5467 timestamp.
5468 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
5469 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
5470 only when its width is less than the height.
5471 (XTredeem_scroll_bar): Sync with xterm.c.
5472 (font_name_table, font_name_table_size, font_name_count):
5473 Make static.
5474 (drag_and_drop_file_list): Remove variable. Previous use is now
5475 local to function.
5476 (do_ae_open_documents): Move DRAG_N_DROP event construction part
5477 from XTread_socket.
5478 (XTread_socket): Consolidate setting of event timestamp.
5479 Move DRAG_N_DROP event construction part to do_ae_open_documents.
5480 Support extra_keyboard_modifiers.
5481
5482 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
5483 beginning with that for ASCII.
5484
5485 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
5486
5487 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
5488 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
5489 (syms_of_alloc): Declare gc-cons-percentage.
5490
5491 * eval.c (Feval, Ffuncall):
5492 * keyboard.c (read_char):
5493 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
5494
5495 * lisp.h (gc_cons_combined_threshold): Declare.
5496
5497 2005-07-12 Kim F. Storm <storm@cua.dk>
5498
5499 * coding.c (Qprocess_argument):
5500 * coding.h (Qprocess_argument): Remove unused var.
5501
5502 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
5503
5504 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5505
5506 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
5507 Endian.h.
5508 [!MAC_OSX] (fchmod, fchown): New functions.
5509 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
5510 Use SBYTES and EndianU32_BtoN.
5511 (mac_get_object_from_code): Return 4 byte string even if argument
5512 is 0. Use make_unibyte_string and EndianU32_NtoB.
5513 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
5514 (Fmac_set_file_type): Fix documents and argument declarations.
5515 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
5516
5517 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
5520
5521 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5522
5523 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
5524 Lucid if X_I18N, font otherwise.
5525
5526 2005-07-10 Steven Tamm <steventamm@mac.com>
5527
5528 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
5529 (Fmac_set_file_type, Fmac_set_file_creator): Add.
5530 (mac_get_object_from_code, mac_get_code_from_arg): Add.
5531
5532 2005-07-10 Richard M. Stallman <rms@gnu.org>
5533
5534 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
5535 (syms_of_lread): Set up eval-buffer-list.
5536 (Feval_buffer, Feval_region): Bind eval-buffer-list.
5537
5538 2005-07-08 Richard M. Stallman <rms@gnu.org>
5539
5540 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
5541
5542 2005-07-08 Kim F. Storm <storm@cua.dk>
5543
5544 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
5545 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
5546
5547 2005-07-07 Kim F. Storm <storm@cua.dk>
5548
5549 * window.c (Frecenter): Fix last change (set iarg before use).
5550
5551 2005-07-06 Richard M. Stallman <rms@gnu.org>
5552
5553 * window.c (Frecenter): When arg is inside the scroll margin,
5554 move it out of the margin.
5555
5556 2005-07-06 Jason Rumney <jasonr@gnu.org>
5557
5558 * w32console.c (initialize_w32_display): Detect when the console
5559 dimensions are insane, and default to 80x25 instead.
5560 (w32_use_full_screen_buffer): Default to NIL.
5561
5562 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5563
5564 * macterm.c (mac_draw_vertical_window_border): Use foreground of
5565 VERTICAL_BORDER_FACE_ID for vertical border line.
5566 (mac_encode_char): Call check_ccl_update in advance.
5567 (mac_to_x_fontname, x_font_name_to_mac_font_name)
5568 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
5569 Don't assume that font family length is less than 32.
5570 (x_compute_min_glyph_bounds): Make static.
5571 (x_load_font): Never set fonts_changed_p to zero.
5572
5573 2005-07-04 Lute Kamstra <lute@gnu.org>
5574
5575 * Update FSF's address in GPL notices.
5576
5577 2005-07-03 Richard M. Stallman <rms@gnu.org>
5578
5579 * xdisp.c (try_window): Fix previous change in how it handles
5580 a partially-visible line or one only partly past the margin.
5581
5582 * window.c (window_scroll_pixel_based): Take account
5583 of this_scroll_margin when finding point when scrolling up.
5584
5585 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
5586
5587 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5588 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
5589 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5590
5591 2005-07-02 Juri Linkov <juri@jurta.org>
5592
5593 * w32term.c (w32_draw_vertical_window_border): Use foreground of
5594 VERTICAL_BORDER_FACE_ID for vertical border line.
5595
5596 2005-07-02 Eli Zaretskii <eliz@gnu.org>
5597
5598 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
5599 fchmod so that chmod doesn't get called on MSDOS before the file
5600 is closed.
5601
5602 2005-07-01 Jason Rumney <jasonr@gnu.org>
5603
5604 * w32term.c (cleartype_active): New flag for enabling sub-pixel
5605 workaround.
5606 (w32_initialize): Initialize it.
5607 (w32_native_per_char_metric): Allow a couple of extra pixels when
5608 Cleartype is active.
5609
5610 * w32term.c (w32_initialize): Move check for screen reader here
5611 from syms_of_w32term.
5612
5613 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5614
5615 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
5616 is not zero.
5617
5618 2005-07-01 Masatake YAMATO <jet@gyve.org>
5619
5620 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
5621
5622 2005-06-30 Juri Linkov <juri@jurta.org>
5623
5624 * xdisp.c (x_draw_vertical_border): If left fringe is not present
5625 decrease x coord of vertical border by 1 pixel to not occupy text
5626 area of the right window.
5627
5628 * xterm.c (x_draw_vertical_window_border): Use foreground of
5629 VERTICAL_BORDER_FACE_ID for vertical border line.
5630
5631 * term.c (turn_on_face): In standout mode apply specified
5632 fg to bg, and specified bg to fg (this makes the logic of
5633 inversion on terminal consistent with X).
5634
5635 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
5636
5637 * eval.c (user_variable_p_eh): New function.
5638 (Fuser_variable_p): Use it. Clarify docstring.
5639 Return t for aliases of user options, nil for alias loops.
5640
5641 2005-06-27 Richard M. Stallman <rms@gnu.org>
5642
5643 * eval.c (Fdefvar): Improve error message.
5644
5645 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5646
5647 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
5648 change.
5649
5650 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
5651
5652 * eval.c (Fdefvar): Don't try to set constant symbols.
5653
5654 2005-06-25 Richard M. Stallman <rms@gnu.org>
5655
5656 * macfns.c (Fx_show_tip): Pass new arg to try_window.
5657
5658 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
5659
5660 * xfns.c (Fx_show_tip): Pass new arg to try_window.
5661
5662 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
5663 (redisplay_window): Handle try_window reporting point in scroll margin.
5664
5665 * dispextern.h (try_window): Declare new arg.
5666
5667 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
5668 Use fchmod to copy the file modes.
5669 (Frename_file): Don't copy UID and GID here;
5670 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
5671
5672 * eval.c (call_debugger): Take full care of extending stack limits
5673 to make space for the debugger, and restore the change afterward.
5674 Bind debug-on-error to nil.
5675 (restore_stack_limits): New subroutine.
5676 (Fsignal): Extend specpdl bound along with eval depth bound,
5677 for calling edebug. Don't do either one, for calling debugger.
5678 (find_handler_clause): Don't bind debug-on-error here.
5679 Don't unbind anything either.
5680 Temporarily advance max_specpdl_size for calling
5681 internal_with_output_to_temp_buffer.
5682 (grow_specpdl): Don't alter max_specpdl_size before signaling
5683 an error.
5684 (syms_of_eval) <max-specpdl-size>: Doc fix.
5685
5686 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
5687
5688 2005-06-24 Eli Zaretskii <eliz@gnu.org>
5689
5690 * fileio.c (Frename_file): Undo last change: no need to ifdef away
5691 chown on DOS_NT platforms.
5692
5693 * w32.c (sys_chown): New function.
5694
5695 * s/ms-w32.h (chown): New; define to sys_chown.
5696
5697 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
5698
5699 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
5700 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
5701
5702 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
5703
5704 2005-06-23 Richard M. Stallman <rms@gnu.org>
5705
5706 * xdisp.c (get_next_display_element): Finish reversing the tests of
5707 Vnobreak_char_display.
5708
5709 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
5710 All uses changed.
5711 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
5712 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
5713
5714 * fileio.c (Frename_file): Preserve owner and group, if possible,
5715 when copying.
5716
5717 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
5718
5719 * abbrev.c (Funexpand_abbrev):
5720 * category.c (Fmake_category_set):
5721 * dispnew.c (Fsleep_for, Fsit_for):
5722 * editfns.c (Fsubst_char_in_region):
5723 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
5724 * frame.c (make_frame_without_minibuffer):
5725 * lread.c (read_vector):
5726 * macfns.c (check_x_frame):
5727 * process.c (Fstop_process, Fcontinue_process):
5728 * search.c (Freplace_match):
5729 * syntax.c (Fstring_to_syntax):
5730 * w32fns.c (check_x_frame, check_x_display_info):
5731 * xfaces.c (x_supports_face_attributes_p):
5732 * xselect.c (Fx_own_selection_internal): Follow error conventions.
5733
5734 * image.c (fn_png_init_io): Don't define it.
5735 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
5736 (png_read_from_file): New function, based on png_read_from_memory.
5737 (png_load): Use it, instead of fn_png_init_io.
5738
5739 2005-06-23 Kim F. Storm <storm@cua.dk>
5740
5741 * search.c (Fmatch_data): Remove evaporate option.
5742 (Fset_match_data): Do not mention evaporate option in doc string.
5743 Add commentary explaining evaporate arg (for internal use only).
5744 (unwind_set_match_data): Add comment on evaporate use.
5745
5746 2005-06-22 Miles Bader <miles@gnu.org>
5747
5748 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
5749 (realize_basic_faces, syms_of_xfaces): Update references to it.
5750 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
5751 to `VERTICAL_BORDER_FACE_ID'.
5752 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
5753
5754 2005-06-21 Juri Linkov <juri@jurta.org>
5755
5756 * dispextern.h: Add extern Qframe_set_background_mode.
5757
5758 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
5759 Qframe_set_background_mode.
5760
5761 * frame.c (Fmodify_frame_parameters):
5762 Call frame-set-background-mode after changing the background color
5763 on non-window non-dos branch.
5764
5765 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
5766
5767 * fns.c (Fchar_table_range):
5768 * process.c (Fmake_network_process): Fix spellings.
5769
5770 2005-06-20 Kim F. Storm <storm@cua.dk>
5771
5772 * fns.c (Fsort): Doc fix.
5773
5774 2005-06-20 Miles Bader <miles@gnu.org>
5775
5776 * xfaces.c (Qvertical_divider): New variable.
5777 (realize_basic_faces): Realize its face.
5778 (syms_of_xfaces): Initialize it.
5779
5780 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
5781
5782 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
5783 window-separator on ttys using `vertical-divider' face by default.
5784
5785 2005-06-17 Richard M. Stallman <rms@gnu.org>
5786
5787 * xdisp.c (get_next_display_element):
5788 Reverse test of Vshow_nonbreak_escape.
5789
5790 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
5791 (Ftty_no_underline): New function.
5792 (syms_of_term): defsubr it.
5793
5794 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
5795
5796 * dispnew.c (spec_glyph_lookup_face): New function.
5797 (build_frame_matrix_from_leaf_window): Use it.
5798
5799 * dispextern.h (spec_glyph_lookup_face): Add declaration.
5800
5801 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5802
5803 2005-06-12 Richard M. Stallman <rms@gnu.org>
5804
5805 * keyboard.c (read_char): After catching a longjmp,
5806 call restore_getcjmp.
5807
5808 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
5809
5810 * xselect.c (lisp_data_to_selection_data): Fix spelling.
5811
5812 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5813
5814 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
5815 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
5816 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
5817 events.
5818 (XTread_socket): Don't pass keyboard events with the option
5819 modifier to the system when Vmac_command_key_is_meta is nil or
5820 Vmac_option_modifier is non-nil.
5821 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
5822 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
5823 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
5824 handler function.
5825 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
5826 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
5827 handler part to mac_handle_mouse_event.
5828
5829 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
5830
5831 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
5832 NEW-ALIAS and BASE-VARIABLE, respectively.
5833
5834 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5835
5836 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5837 (get_phys_cursor_geometry, format_mode_line_unwind_data)
5838 (get_line_height_property, x_produce_glyphs): Remove unused vars.
5839
5840 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
5841
5842 2005-06-13 Eli Zaretskii <eliz@gnu.org>
5843
5844 * w32term.c (x_use_underline_position_properties): New variable.
5845 (x_draw_glyph_string): Remind in a comment to change doc string of
5846 x-use-underline-position-properties if/when underline positioning
5847 is implemented.
5848 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
5849 and initialize it to nil.
5850
5851 2005-06-12 Jason Rumney <jasonr@gnu.org>
5852
5853 * w32fns.c (NEWOPENFILENAME): New struct.
5854 (Fx_file_dialog): Use it to trick the system into giving us up to
5855 date dialogs on systems that are documented to support it.
5856 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
5857
5858 2005-06-12 Eli Zaretskii <eliz@gnu.org>
5859
5860 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
5861 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
5862
5863 2005-06-11 Eli Zaretskii <eliz@gnu.org>
5864
5865 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
5866 to CreateDIBSection to avoid a compiler warning.
5867 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
5868 warning.
5869 (png_load): Cast return values of fn_png_create_read_struct and
5870 fn_png_create_info_struct, to avoid compiler warnings on W32.
5871 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
5872 to avoid compiler warnings.
5873 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
5874 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
5875 avoid a compiler warning.
5876 (tiff_load): Cast return values of fn_TIFFOpen and
5877 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
5878 to IMAGE_BACKGROUND to avoid a compiler warning.
5879 (gif_load): Cast return values of fn_DGifOpenFileName and
5880 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
5881 IMAGE_BACKGROUND to avoid a compiler warning.
5882 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
5883 before redefining.
5884
5885 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
5886 the call to CreateDIBSection, to avoid a compiler warning.
5887
5888 2005-06-11 Jason Rumney <jasonr@gnu.org>
5889
5890 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
5891 minibuffer.
5892 * macfns.c (Fx_file_dialog): Likewise.
5893
5894 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5895
5896 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
5897
5898 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5899
5900 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
5901 * w32fns.c (syms_of_w32fns): Fix spellings.
5902
5903 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5904
5905 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5906 `verbose'; print diagnostic messages only if it is non-zero.
5907 All callers changed to pass a zero value unless DEBUG_DUMP is defined
5908 in the environment.
5909 (copy_executable_and_dump_data): Print section names with %.8s.
5910
5911 2005-06-10 Masatake YAMATO <jet@gyve.org>
5912
5913 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
5914 when mouse_face is not given.
5915
5916 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
5917
5918 * window.c (Fselect_window): Adapt call to Fselect_frame.
5919
5920 * lisp.h: Update EXFUN of Fselect_frame.
5921
5922 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
5923
5924 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
5925 no_enter.
5926 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
5927 Adapt to above change.
5928
5929 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5930
5931 * fns.c (Fmemq, Fmaphash): Doc fixes.
5932
5933 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
5934
5935 * xfaces.c (Fdisplay_supports_face_attributes_p):
5936 Fix typo in docstring.
5937
5938 2005-06-08 Steven Tamm <steventamm@mac.com>
5939
5940 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
5941 used by gcc4 on intel mac.
5942
5943 2005-06-09 Kim F. Storm <storm@cua.dk>
5944
5945 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
5946 in REUSE list if non-nil; free them if equal to evaporate.
5947 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
5948 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
5949 (restore_search_regs): Rename from restore_match_data. Uses changed.
5950 (unwind_set_match_data): New function.
5951 (record_unwind_save_match_data): New function like save-match-data.
5952
5953 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
5954 (record_unwind_save_match_data): Add prototype.
5955 (restore_search_regs): Rename from restore_match_data.
5956
5957 * composite.c (compose_chars_in_text):
5958 * eval.c (do_autoload):
5959 * macmenu.c (set_frame_menubar):
5960 * process.c (read_process_output, exec_sentinel):
5961 * xmenu.c (set_frame_menubar):
5962 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
5963 * w32menu.c (set_frame_menubar):
5964 Use record_unwind_save_match_data.
5965
5966 2005-06-08 Richard M. Stallman <rms@gnu.org>
5967
5968 * xdisp.c (get_next_display_element): Alter previous change:
5969 Distinguish Vshow_nonbreak_escape = t or not t.
5970 For t, use escape_glyph once again, as before previous change.
5971 Use space or hyphen for display, instead of the non-ASCII char.
5972 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
5973
5974 * process.c (Fstart_process): Don't touch command_channel_p slot.
5975
5976 * process.h (struct process): Delete command_channel_p.
5977
5978 2005-06-07 Masatake YAMATO <jet@gyve.org>
5979
5980 * xdisp.c (note_mode_line_or_margin_highlight):
5981 Check the overlapping of re-rendering area to avoid flickering.
5982 (note_mouse_highlight): Call clear_mouse_face if PART
5983 is not ON_MODE_LINE nor ON_HEADER_LINE.
5984
5985 2005-06-07 Kim F. Storm <storm@cua.dk>
5986
5987 * process.c: Improve commentary for adaptive read buffering.
5988
5989 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
5990
5991 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
5992 if available.
5993
5994 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5995
5996 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
5997 New functions for popping down menus on C-g.
5998 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
5999
6000 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
6001 non-static.
6002
6003 * config.in: Add HAVE_CANCELMENUTRACKING.
6004
6005 2005-06-06 Eli Zaretskii <eliz@gnu.org>
6006
6007 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
6008
6009 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
6010
6011 * w32proc.c (RVA_TO_PTR): New macro.
6012
6013 * w32heap.c (RVA_TO_PTR): No need to #undef now.
6014
6015 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
6016 Depend on w32heap.h.
6017
6018 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
6019
6020 * keyboard.c (command_loop_1): Update Vthis_original_command.
6021
6022 2005-06-06 Richard M. Stallman <rms@gnu.org>
6023
6024 * xmenu.c (popup_get_selection): Undo previous change.
6025
6026 2005-06-06 Juri Linkov <juri@jurta.org>
6027
6028 * xdisp.c (Qno_break_space): New variable.
6029 (syms_of_xdisp): Initialize it.
6030 (get_next_display_element): Add no-break space and soft hypen
6031 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
6032 Use `no-break-space' face for no-break spaces.
6033
6034 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6035
6036 * window.c (delete_window): Handle the case where a h/vchild has
6037 a h/vchild.
6038
6039 2005-06-05 Eli Zaretskii <eliz@gnu.org>
6040
6041 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
6042 call to pfn_setsockopt, cast optval to `const char *'.
6043
6044 2005-06-04 Eli Zaretskii <eliz@gnu.org>
6045
6046 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
6047 (open_unc_volume): Cast return value of map_w32_filename, to avoid
6048 compiler warnings.
6049
6050 * s/ms-w32.h (fileno): Don't define if already defined.
6051
6052 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
6053
6054 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
6055
6056 2005-06-04 Richard M. Stallman <rms@gnu.org>
6057
6058 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
6059
6060 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6061
6062 * macmenu.c (cleanup_popup_menu): New function.
6063 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
6064 mac_menu_show Quit:s.
6065 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
6066 a dialog).
6067
6068 2005-06-04 Kim F. Storm <storm@cua.dk>
6069
6070 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
6071
6072 * callproc.c (Fcall_process): Don't use alloca to gradually
6073 increase size of buf, as it effectively uses twice the necessary
6074 space on the stack. Instead, pre-allocate buf of full size, and
6075 gradually increase the read size.
6076
6077 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
6078
6079 * eval.c (unbind_to): Preserve value of Vquit_flag.
6080
6081 * xterm.c (handle_one_xevent): Also ignore mouse motion just
6082 before a button release event.
6083
6084 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
6085
6086 * xfaces.c (Finternal_lisp_face_equal_p): Really report
6087 on faces in a frame, if the argument FRAME is non-nil.
6088 Improve argument/docstring consistency.
6089
6090 2005-06-02 Kim F. Storm <storm@cua.dk>
6091
6092 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
6093 (x_consider_frame_title, Fformat_mode_line): Save offset into
6094 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
6095
6096 2005-06-01 Kim F. Storm <storm@cua.dk>
6097
6098 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
6099
6100 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6101
6102 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
6103 resolution fields for scalable fonts to 0.
6104
6105 * xfaces.c (build_scalable_font_name): Round pixel size to the
6106 nearest integer.
6107
6108 2005-06-01 Kim F. Storm <storm@cua.dk>
6109
6110 * xdisp.c (display_mode_line): Support nested calls to redisplay
6111 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
6112
6113 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6114
6115 * fileio.c (Finsert_file_contents):
6116 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6117
6118 2005-05-31 Kim F. Storm <storm@cua.dk>
6119
6120 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
6121 (mode_line_noprop_ptr): Rename from frame_title_*.
6122 (store_mode_line_noprop_char): Rename from store_frame_title_char.
6123 (store_mode_line_noprop): Rename from store_frame_title.
6124 (mode_line_target): New enum to specify current output target
6125 for mode line formatting.
6126 (display_mode_element): Test it rather than frame_title_ptr and
6127 mode_line_string_list to determine where output should go.
6128 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
6129 (Vmode_line_unwind_vector): New variable.
6130 (format_mode_line_unwind_data, unwind_format_mode_line):
6131 New functions for unwind protection in mode line formatting.
6132 (x_consider_frame_title): Use them and new local var 'title_start'
6133 to support nested calls to format-mode-line and redisplay.
6134 Set mode_line_target to MODE_LINE_TITLE.
6135 (Fformat_mode_line): Use them and new local var 'string_start' to
6136 support nested calls to format-mode-line and redisplay.
6137 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
6138 Don't trim trailing dashes.
6139 (decode_mode_spec): Don't make infinite number of trailing dashes
6140 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
6141 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
6142 mode_line_string_face_prop, and Vmode_line_unwind_vector.
6143 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
6144 Initialize mode_line_target to MODE_LINE_DISPLAY.
6145
6146 2005-05-29 Richard M. Stallman <rms@gnu.org>
6147
6148 * buffer.c (Fbuffer_local_value): Call indirect_variable.
6149
6150 2005-05-28 Masatake YAMATO <jet@gyve.org>
6151
6152 * xdisp.c (note_mode_line_or_margin_highlight): Change the
6153 pointer to a hand cursor when hoovering over a mouse-face.
6154
6155 2005-05-27 Kenichi Handa <handa@m17n.org>
6156
6157 * xterm.c (x_encode_char): Call check_ccl_update in advance.
6158
6159 * ccl.c: Now an element of Vccl_program_table is a vector of
6160 length 4, not 3.
6161 (ccl_get_compiled_code): New arg idx. Caller changed.
6162 Adjust for the change of Vccl_program_table.
6163 (setup_ccl_program): Adjust for the change of Vccl_program_table.
6164 (check_ccl_update): New function.
6165 (Fregister_ccl_program): Use ASET to set an element of a vector.
6166 Adjusted for the change of Vccl_program_table.
6167
6168 * ccl.h (struct ccl_program): New member idx.
6169 (check_ccl_update): Extern it.
6170
6171 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
6172
6173 * image.c (Vimage_library_alist): Move from image.el.
6174 (syms_of_image): Defvar it.
6175 (lookup_image_type): Use it.
6176
6177 * buffer.c (Fbuffer_local_value): Make argument name match its use
6178 in docstring.
6179
6180 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
6181
6182 * keyboard.c (Frecursive_edit): Fix typo in docstring.
6183 (Fposn_at_x_y): Make argument name match its use in docstring.
6184
6185 2005-05-26 Lute Kamstra <lute@gnu.org>
6186
6187 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
6188
6189 2005-05-24 Masatake YAMATO <jet@gyve.org>
6190
6191 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
6192 as loop sentinels.
6193
6194 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
6195
6196 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
6197 select frame title ("Question"/"Information").
6198 (xdialog_show): Use it.
6199
6200 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
6201
6202 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
6203
6204 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
6205 a third argument (Qnil).
6206
6207 * lisp.h: x-popup-dialog can have three arguments.
6208
6209 * editfns.c (Fmessage_box): Use "Information" for frame title.
6210
6211 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
6212
6213 * termcap.c [VMS]: Include <starlet.h>.
6214
6215 2005-05-23 Masatake YAMATO <jet@gyve.org>
6216
6217 * xdisp.c (note_mode_line_or_margin_highlight): Add code
6218 for mouse-face. Change the type of the first argument from `window'
6219 to `Lisp_Object'.
6220 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
6221 window instead of w.
6222
6223 2005-05-22 Andreas Schwab <schwab@suse.de>
6224
6225 * process.c (send_process): Move misplaced volatile.
6226
6227 2005-05-21 Richard M. Stallman <rms@gnu.org>
6228
6229 * xdisp.c (display_mode_element): If we're processing a list and
6230 padding is specified, put it after the last element.
6231
6232 2005-05-21 Eli Zaretskii <eliz@gnu.org>
6233
6234 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
6235 "superroot" on DOS_NT systems.
6236
6237 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
6238
6239 * process.c (send_process): Restore the SIGPIPE handler if we
6240 catch a SIGPIPE.
6241
6242 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
6243
6244 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
6245 misleading comments).
6246 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
6247
6248 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6249
6250 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
6251 Correct the right value.
6252
6253 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
6254
6255 * keyboard.c (syms_of_keyboard): Remove Lisp variables
6256 post-command-idle-hook and post-command-idle-delay.
6257 (command_loop_1): Don't try to execute post-command-idle-hook.
6258
6259 2005-05-16 Kim F. Storm <storm@cua.dk>
6260
6261 * xdisp.c (handle_display_prop): Handle empty replacement.
6262 (handle_single_display_spec): Return -1 for empty replacement.
6263
6264 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
6265
6266 * .gdbinit (pitx): Print more info about iterator.
6267
6268 2005-05-16 Andreas Schwab <schwab@suse.de>
6269
6270 * unexmacosx.c (unexec_realloc): Move declarations before statements.
6271
6272 2005-05-14 Richard M. Stallman <rms@gnu.org>
6273
6274 * xdisp.c (message3): Call cancel_echoing.
6275
6276 * alloc.c (Fmemory_full_p): New function.
6277 (syms_of_alloc): defsubr it.
6278
6279 * process.c (send_process_trap): Unblock SIGPIPE.
6280 (send_process): Reset SIGPIPE handler before reporting error.
6281
6282 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
6283
6284 * emacs.c (syms_of_emacs): Fix doc string for system-type.
6285
6286 2005-05-13 Richard M. Stallman <rms@gnu.org>
6287
6288 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
6289 (Finsert_file_contents): If we read 0 bytes from a special file,
6290 unlock the visited file if we locked it.
6291 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
6292 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
6293
6294 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6295
6296 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
6297
6298 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
6299 Regard toolkit scroll bar thumb drag events as squeezable and prevent
6300 redisplay from being paused by them.
6301
6302 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
6303 [!MAC_OSX] (target_ticks): Remove variable.
6304 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
6305 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
6306 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
6307 event occurs before timeout, behave as if the function were interrupted.
6308 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
6309 handling using Time Manager routines.
6310 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
6311 New variables.
6312 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
6313 (setitimer): New functions.
6314
6315 * macfns.c, macmenu.c: Don't include signal.h.
6316
6317 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
6318 Rename from get_control_part_bound. All callers changed.
6319 (x_scroll_bar_clear): New function.
6320 (x_clear_frame): Use it.
6321 (XTset_vertical_scroll_bar): Don't call Draw1Control.
6322 (x_scroll_bar_handle_click): Change type of second argument from
6323 int to ControlPartCode.
6324 (check_alarm): Remove declaration.
6325 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
6326 (XTread_socket): Use ControlPartCode instead of SInt16.
6327
6328 2005-05-13 Nozomu Ando <nand@mac.com>
6329
6330 * unexmacosx.c: Include assert.h.
6331 (MACOSX_MALLOC_MULT16): New define.
6332 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
6333 ptr is in unexec regions by checking it is multiple of 16.
6334 (unexec_malloc_header_t): New typedef.
6335 (unexec_malloc, unexec_realloc, unexec_free): Store and use
6336 allocated size information in unexec_malloc_header.
6337
6338 2005-05-10 Richard M. Stallman <rms@gnu.org>
6339
6340 * xterm.c (noinclude): Add #undef.
6341
6342 * image.c, xfns.c, xmenu.c: Don't include signal.h.
6343
6344 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
6345
6346 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
6347 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
6348 Doc fixes.
6349
6350 * dired.c (Ffile_name_completion): Make argument name
6351 match its use in docstring.
6352
6353 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
6354
6355 * eval.c (Fdefvaralias): Remove any pre-existing
6356 variable-documentation property of the alias.
6357
6358 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
6359
6360 * xfns.c (start_hourglass): Do nothing when running on a tty.
6361
6362 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
6363
6364 * fns.c (Fchar_table_range): Fix typos in docstring.
6365
6366 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6367
6368 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
6369
6370 2005-05-06 Eli Zaretskii <eliz@gnu.org>
6371
6372 * lread.c (Flocate_file_internal): Doc fix.
6373
6374 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
6375
6376 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6377
6378 * macselect.c (x_own_selection): Accept Lisp string as result of
6379 selection converter function.
6380 (x_clear_frame_selections): Don't call x-lost-selection-functions
6381 if Emacs is not owner of the selection.
6382 (Vmac_services_selection): Put variable and initialization in
6383 #ifdef MAC_OSX.
6384 (syms_of_macselect) [MAC_OSX]: Set default value of
6385 Vmac_services_selection to PRIMARY.
6386
6387 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
6388 (mac_handle_tool_bar_click): Remove unused function and declaration.
6389 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
6390 (install_scroll_bar_timer, set_scroll_bar_timer)
6391 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
6392 (get_control_part_bound, x_scroll_bar_handle_press)
6393 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
6394 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
6395 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
6396 (scroll_bar_timer_event_posted_p): New variables.
6397 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
6398 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
6399 (x_scroll_bar_create): Set control reference with NewControl.
6400 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
6401 Initialize track_top and track_height to nil.
6402 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
6403 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
6404 (XTset_vertical_scroll_bar): Don't make space between scroll bar
6405 and associated window.
6406 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
6407 from window config.
6408 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6409 Set track_top and track_height to nil when scroll bar size is changed.
6410 Recalculate them if they are nil.
6411 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
6412 clicked control is a scroll bar.
6413 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
6414 event handler functions. Don't add modifiers to scroll bar click
6415 events. Call scroll bar release handler when window is deactivated.
6416 (mac_initialize): Remove unused code for X toolkit.
6417 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
6418 Initialize Vx_toolkit_scroll_bars to nil.
6419
6420 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6421 New members track_top and track_height.
6422
6423 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
6424 init_process when including sys/select.h.
6425
6426 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
6427
6428 * eval.c (Fdefvaralias): Doc fix.
6429
6430 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
6431
6432 2005-05-05 Kim F. Storm <storm@cua.dk>
6433
6434 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
6435 default value.
6436 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
6437 Fix type of cursor-in-non-selected-windows.
6438
6439 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6440
6441 * mac.c: #undef init_process so not to conflict with system headers.
6442
6443 2005-05-02 Richard M. Stallman <rms@gnu.org>
6444
6445 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
6446
6447 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
6448
6449 * xdisp.c (Vcursor_in_non_selected_windows)
6450 (Qcursor_in_non_selected_windows): Vars deleted.
6451 (syms_of_xdisp): Don't initialize them.
6452 (get_window_cursor_type): Use cursor_in_non_selected_windows
6453 buffer slot.
6454
6455 2005-05-02 Kim F. Storm <storm@cua.dk>
6456
6457 * macros.c (executing_kbd_macro_index): Rename from
6458 executing_macro_index. All uses changed.
6459 (executing_kbd_macro_iterations): Rename from
6460 executing_macro_iterations. All uses changed.
6461 (executing_kbd_macro): Rename from executing_macro.
6462 All uses changed.
6463 (syms_of_macros): Rename Lisp var executing-macro-index to
6464 executing-kbd-macro-index.
6465
6466 * xdisp.c (move_it_in_display_line_to): Fix last change.
6467
6468 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
6469
6470 * xmenu.c (Fx_popup_menu): Doc fix.
6471
6472 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
6473
6474 2005-05-02 Jason Rumney <jasonr@gnu.org>
6475
6476 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
6477
6478 2005-05-02 Nozomu Ando <nand@mac.com>
6479
6480 * sysselect.h: Fix typo.
6481
6482 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
6483
6484 * charset.c (Fchars_in_region): Remove as obsolete.
6485
6486 2005-05-01 Kim F. Storm <storm@cua.dk>
6487
6488 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
6489 TO_CHARPOS. This may happen if last glyphs was an image or stretch
6490 glyph.
6491
6492 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
6493
6494 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
6495
6496 2005-05-01 Richard M. Stallman <rms@gnu.org>
6497
6498 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
6499 If user cancels the menu, quit unless FOR_CLICK.
6500
6501 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
6502 All uses changed.
6503 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
6504 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
6505 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
6506 * commands.h (Vexecuting_kbd_macro): Likewise.
6507
6508 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
6509
6510 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
6511
6512 2005-04-30 Richard M. Stallman <rms@gnu.org>
6513
6514 * fileio.c (Ffind_file_name_handler): Handle the `operations'
6515 property of the file name handler.
6516 (Qoperations): New variable.
6517 (syms_of_fileio): Initialize and staticpro it.
6518
6519 * xdisp.c (set_message_1): Delete xassert.
6520
6521 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6522
6523 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
6524
6525 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
6526
6527 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
6528 before/after including Carbon.h if there is a working mktime.
6529
6530 2005-04-28 Kim F. Storm <storm@cua.dk>
6531
6532 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
6533 Fix cyclic alias check. If alias loop is detected, signal
6534 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
6535
6536 2005-04-28 Lute Kamstra <lute@gnu.org>
6537
6538 * eval.c (do_autoload): Record only autoloads in the autoload
6539 property of symbols.
6540
6541 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
6542
6543 * emacs.c (USAGE1): Add --basic-display and --quick options.
6544
6545 2005-04-27 Kim F. Storm <storm@cua.dk>
6546
6547 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
6548
6549 2005-04-26 Richard M. Stallman <rms@gnu.org>
6550
6551 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
6552 (syms_of_window): Doc fixes.
6553
6554 * indent.c (Fvertical_motion): Undo previous change.
6555
6556 2005-04-26 Kenichi Handa <handa@m17n.org>
6557
6558 * fns.c (char_table_range): New function.
6559 (Fchar_table_range): Signal an error if characters in the range
6560 have inconsistent values. Don't check the parent.
6561
6562 2005-04-25 Kenichi Handa <handa@m17n.org>
6563
6564 * fontset.c (fontset_set): Fix previous change.
6565
6566 2005-04-24 Richard M. Stallman <rms@gnu.org>
6567
6568 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
6569
6570 2005-04-24 Eli Zaretskii <eliz@gnu.org>
6571
6572 * regex.c (re_search_2, re_match_2_internal): Convert second arg
6573 of RE_TRANSLATE to int, to shut up GCC warnings.
6574
6575 * fileio.c (Fcopy_file): Doc fix.
6576 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
6577 not needed.
6578
6579 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6580
6581 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
6582 (SOME_MACHINE_OBJECTS): Likewise.
6583 (mac.o): Depend on ccl.h.
6584 (macselect.o): New target.
6585
6586 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
6587 Call syms_of_macselect.
6588
6589 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
6590
6591 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
6592 (QCLIPBOARD): Remove variable.
6593 (syms_of_mac): Don't initialize it.
6594 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
6595 Remove functions.
6596 (syms_of_mac): Don't defsubr them.
6597 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
6598 (QHFS_plus_D, QHFS_plus_C): New variables.
6599 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6600 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
6601 (cfstring_create_normalized): New functions.
6602 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
6603 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6604
6605 * macterm.c (handling_window_update, terminate_flag):
6606 Remove variables.
6607 (do_window_update, do_ae_quit_application, XTread_socket):
6608 Don't use them.
6609 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
6610 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
6611 (init_service_handler): Move to macselect.c. Remove declarations.
6612 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
6613 (Qapplication, Qabout): New variables.
6614 (syms_of_mac): Initialize them.
6615 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
6616 (Qperform): New variables.
6617 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
6618 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
6619 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
6620 (mac_store_application_menu_event, init_menu_bar): New functions.
6621 [USE_CARBON_EVENTS] (mac_handle_command_event)
6622 (init_command_handler): New functions.
6623 (mac_handle_window_event): Return noErr on window update event.
6624 (do_ae_quit_application): Call mac_store_application_menu_event.
6625 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
6626 and init_menu_bar.
6627
6628 * macterm.h (x_clear_frame_selections): Add extern.
6629
6630 * macselect.c: New file for selection processing on Mac OS.
6631
6632 2005-04-23 Richard M. Stallman <rms@gnu.org>
6633
6634 * fileio.c (Fcopy_file): New arg MUSTBENEW.
6635 (Frename_file): Pass new arg to Fcopy_file.
6636
6637 * window.c (window_size_fixed): Variable deleted.
6638 (syms_of_window): Initialize window-size-fixed to nil.
6639 But don't DEFVAR window_size_fixed.
6640
6641 2005-04-23 Andreas Schwab <schwab@suse.de>
6642
6643 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
6644 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
6645 use lib64 instead of lib.
6646 (_LP64) [_ARCH_PPC64]: Define if not defined.
6647
6648 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
6649
6650 * s/ms-w32.h (HAVE_PWD_H): Define.
6651
6652 2005-04-22 Kenichi Handa <handa@m17n.org>
6653
6654 * fns.c (copy_sub_char_table): Explicitly copy the default value
6655 of the sub-chartable.
6656
6657 * fontset.c (fontset_set): When a sub-chartable is created,
6658 explicitly sets the defalt value.
6659
6660 2005-04-22 Kim F. Storm <storm@cua.dk>
6661
6662 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
6663 (Fsafe_plist_get): Rename to Fplist_get.
6664 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
6665 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
6666
6667 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
6668
6669 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
6670 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6671 Use Fplist_get instead of Fsafe_plist_get.
6672
6673 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
6674
6675 2005-04-21 Miles Bader <miles@gnu.org>
6676
6677 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
6678
6679 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
6680
6681 * sysdep.c: Remove reference to defunct vms-pwd.h.
6682 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
6683 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
6684
6685 * config.in: Regenerate.
6686
6687 2005-04-20 Kenichi Handa <handa@m17n.org>
6688
6689 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
6690 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
6691 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
6692
6693 * alloc.c (make_sub_char_table): Argument changed to initial
6694 value of the slots.
6695
6696 * data.c (Faref): Handle special slots used as default values of
6697 ascii, eight-bit-control, eight-bit-control. Don't ignore a
6698 default value set for a group of characters.
6699 (Faset): Signal an error if IDXVAL is not a valid character code.
6700 Make a sub-chartable with correct initial value.
6701
6702 * fns.c (Fset_char_table_range): Don't set slots used as default
6703 values for ascii, eight-bit-control, eight-bit-graphic.
6704 Don't call Faref with charset-id.
6705 (Fset_char_table_default): Document how to treat normal character
6706 argument. Handle special slots used as default values of ascii,
6707 eight-bit-control, eight-bit-control. Make a sub chartable if
6708 necessary.
6709
6710 2005-04-20 Kenichi Handa <handa@m17n.org>
6711
6712 * search.c (boyer_moore): Fix previous change.
6713
6714 2005-04-19 Kim F. Storm <storm@cua.dk>
6715
6716 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
6717 face unless last visible char and first invisible char have the
6718 same face. Also use default face if saved_face_id is undefined.
6719
6720 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6721
6722 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
6723 `full_name'.
6724 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
6725 mac_scriptcode member.
6726
6727 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
6728 (syms_of_mac): Don't initialize them.
6729 (Vmac_charset_info_alist): New variable.
6730 (syms_of_mac): Defvar it.
6731 (create_text_encoding_info_alist): New function.
6732 (decode_mac_font_name, mac_to_x_fontname)
6733 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
6734 code the correspondence among XLFD charsets, Mac script codes, and
6735 Emacs coding systems. Use Vmac_charset_info_alist and result of
6736 create_text_encoding_info_alist instead.
6737 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
6738 routines also on Mac OS Classic.
6739 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
6740 Use add_font_name_table_entry.
6741 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
6742 specified. Derive unspecified scalable fields from specified one.
6743 (x_list_fonts): Consider Valternate_fontname_alist.
6744 (kDefaultFontSize): Change value from 9 to 12.
6745 (XLoadQueryFont): Get decoded font family, font face, and charset
6746 from x_font_name_to_mac_font_name. Set full name of loaded font.
6747 (mac_unload_font): Free `full_name' member.
6748 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
6749 NULL. Copy full_name member of struct MacFontStruct to that of
6750 struct font_info.
6751
6752 2005-04-19 Kim F. Storm <storm@cua.dk>
6753
6754 * xdisp.c (handle_stop): Set saved_face_id to current face if
6755 selective_display_ellipsis_p so ellipsis will be shown in same
6756 face as preceding text.
6757 (setup_for_ellipsis): Don't set saved_face_id here.
6758 (next_element_from_display_vector): Default to saved_face_id.
6759
6760 * fns.c (Fsafe_get): New function.
6761 (syms_of_fns): Defsubr it.
6762
6763 * lisp.h (Fsafe_get): EXFUN it.
6764
6765 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
6766 loops in case of bad face property lists. Limit number of face
6767 alias lookups to 10 (in case of face alias loops).
6768
6769 2005-04-18 Kim F. Storm <storm@cua.dk>
6770
6771 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
6772 It replaces the corresponding member from struct window, as a
6773 window may now show multiple overlay arrows.
6774 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
6775
6776 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
6777 Compare overlay_arrow_bitmap than overlay_arrow_p members.
6778
6779 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
6780 rather than from window.
6781 (update_window_fringes): Compare overlay_arrow_bitmap rather than
6782 overlay_arrow_p members.
6783 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
6784 if not default.
6785
6786 * window.h (struct window): Remove member overlay_arrow_bitmap.
6787
6788 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
6789
6790 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
6791 Calls changed. Don't check for overlay-arrow-bitmap property here.
6792 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
6793 fringe is present, return Lisp integer for bitmap (or -1 for default).
6794 Fix value of overlay-arrow-bitmap property to be a symbol, use
6795 lookup_fringe_bitmap to parse it.
6796 (display_line): Change call to overlay_arrow_at_row. Store integer
6797 return value as overlay bitmap in row rather than window.
6798 Only show overlay arrow if row displays text, or if no other overlay
6799 arrow is seen in window (if overlay marker is at point-max).
6800
6801 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6802
6803 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
6804
6805 2005-04-18 Lute Kamstra <lute@gnu.org>
6806
6807 * lread.c (Vloads_in_progress): Static.
6808 * fns.c (Vloads_in_progress): Remove extern.
6809 (load_in_progress): Add extern.
6810 (Frequire): Use load_in_progress instead of Vloads_in_progress.
6811
6812 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6813
6814 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
6815
6816 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6817
6818 * macterm.c (XTread_socket): Don't beep on keyboard input even if
6819 no frame is visible.
6820
6821 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6822
6823 * term.c (struct keys): Add support for shifted keys.
6824
6825 2005-04-16 Richard M. Stallman <rms@gnu.org>
6826
6827 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
6828 (set_message): Call with_echo_area_buffer with WHICH = 0.
6829 (set_message_1): Erase the echo area buffer first thing.
6830 (echo_area_display): Don't clear echo_message_buffer.
6831
6832 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6833
6834 * Makefile.in (mac.o): Depend on charset.h and coding.h.
6835
6836 * mac.c: Include charset.h and coding.h.
6837 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
6838 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
6839 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
6840
6841 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6842
6843 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
6844
6845 * macterm.c (x_autoselect_window_p): Remove variable.
6846 (last_window): New variable.
6847 (XTreassert_line_highlight, x_change_line_highlight):
6848 Remove declarations.
6849 (mac_focus_changed, x_detect_focus_change): New functions and
6850 declarations.
6851 (XTextExtents16, front_emacs_window): Remove function.
6852 (mac_focus_frame): New function.
6853 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
6854 (mac_check_for_quit_char): Use it instead of front_emacs_window.
6855 (x_scroll_bar_report_motion): Obtain window from control owner.
6856 (x_make_frame_invisible): Set window manager size hint.
6857 (do_mouse_moved): Remove function.
6858 (XTread_socket): Move its contents here. Generate select-window
6859 event on mouse movement if needed. Use x_detect_focus_change on
6860 activate/deactivate events. Don't deiconify frame or invalidate
6861 window rectangle when dnd items are dropped.
6862 Don't activate/deactivate root control.
6863 (frame_highlight, frame_unhighlight): Activate/deactivate root
6864 control here.
6865 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
6866
6867 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
6868 New extern.
6869
6870 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
6871
6872 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
6873 (lisp): Use it.
6874 (SOME_MACHINE_LISP): Add tooltip.
6875
6876 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6877
6878 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
6879 Don't include TextEncodingConverter.h.
6880 (mac_system_script_code, Vmac_system_locale): New variables.
6881 (syms_of_mac): Defvar them.
6882 (mac_get_system_locale): New function.
6883
6884 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
6885 Use ENCODE_SYSTEM to encode title bar string.
6886 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
6887 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
6888 Use CFStringGetSystemEncoding to get system default string encoding.
6889
6890 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
6891 TextEncodingConverter.h.
6892
6893 2005-04-13 Steven Tamm <steventamm@mac.com>
6894
6895 * macterm.c (syms_of_macterm): Remove redundant definition of
6896 mac-pass-control-to-system.
6897
6898 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6899
6900 * window.c (Fset_window_configuration): Be careful when you choose
6901 among several possible points for the new_current_buffer.
6902
6903 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6904
6905 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
6906 poll_for_input_1. Set interrupt_input_pending to 1 instead.
6907 (Qlanguage_change) [MAC_OS]: New variable.
6908 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
6909 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
6910
6911 * macterm.c (mac_keyboard_text_encoding)
6912 (current_mac_keyboard_text_encoding): Remove variables.
6913 (XTread_socket): Store language-change event if keyboard script change
6914 is detected. Don't convert input to `mac_keyboard_text_encoding'.
6915 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
6916
6917 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
6918
6919 2005-04-10 Richard M. Stallman <rms@gnu.org>
6920
6921 * emacs.c (standard_args): Rename --bare-bones to --quick.
6922 Add -D aka --basic-display.
6923
6924 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
6925
6926 2005-04-09 Richard M. Stallman <rms@gnu.org>
6927
6928 * keymap.c (where_is_internal): Convert a string used as event type
6929 into "(any string)".
6930
6931 * lread.c (Vloads_in_progress): Not static.
6932 * fns.c (Vloads_in_progress): Add extern.
6933 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
6934
6935 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
6936
6937 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
6938
6939 2005-04-09 Lute Kamstra <lute@gnu.org>
6940
6941 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
6942 within the accessible part of the buffer.
6943
6944 2005-04-09 Kim F. Storm <storm@cua.dk>
6945
6946 * lread.c (readevalloop): Add args START and END as region in
6947 current buffer to read. Callers changed.
6948 When specified, narrow to this region only when reading,
6949 not during eval. Track next point to read from during eval.
6950 Also restore point to "real" buffer position before eval.
6951 (Feval_region): Don't save excursion and restriction here, and
6952 don't narrow to region. Just pass region to readevalloop.
6953 Note: Point is now preserved even when PRINTFLAG is nil.
6954
6955 2005-04-08 Kim F. Storm <storm@cua.dk>
6956
6957 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
6958
6959 2005-04-06 Kim F. Storm <storm@cua.dk>
6960
6961 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
6962
6963 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6964
6965 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
6966 (Fmac_get_preference): Doc fix.
6967
6968 * macfns.c (Fx_create_frame, x_create_tip_frame):
6969 Add "fontset-mac" to fallback font/fontsets.
6970
6971 2005-04-04 Kim F. Storm <storm@cua.dk>
6972
6973 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
6974
6975 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
6976 Call it again after autoload.
6977
6978 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6979
6980 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
6981 mallopt.
6982
6983 * ralloc.c (r_alloc_init): Ditto.
6984
6985 2005-04-01 Kenichi Handa <handa@m17n.org>
6986
6987 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
6988 (Vascii_eqv_table): Extern them.
6989
6990 * casetab.c (set_case_table): If standard is nonzero, setup
6991 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
6992
6993 * search.c (looking_at_1): Use current_buffer->case_canon_table,
6994 not DOWNCASE_TABLE.
6995 (string_match_1): Likewise.
6996 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
6997 Vascii_downcase_table.
6998 (fast_string_match_ignore_case): Likewise.
6999 (search_buffer): Fix checking of boyer-moore usability.
7000 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
7001 No need of tranlating characters in PAT. Fix calculation of
7002 simple_translate.
7003
7004 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7005
7006 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
7007 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
7008 Use XtNtopShadowPixel and XtNbottomShadowPixel.
7009 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
7010 really work and that breaks with some versions of Xaw3d.
7011
7012 2005-03-31 Kenichi Handa <handa@m17n.org>
7013
7014 * coding.c (syms_of_coding): Fix previous change.
7015
7016 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
7017
7018 * fileio.c (search_embedded_absfilename): Fix last change.
7019
7020 2005-03-25 Kenichi Handa <handa@m17n.org>
7021
7022 * coding.c (syms_of_coding): Suggest to use set-coding-category in
7023 the docstring of coding-category-list.
7024
7025 2005-03-31 Kim F. Storm <storm@cua.dk>
7026
7027 * keyboard.c (Qmouse_fixup_help_message): New var.
7028 (syms_of_keyboard): Intern and staticpro it.
7029 (show_help_echo): Apply mouse-fixup-help-message to help string.
7030
7031 2005-03-30 Kim F. Storm <storm@cua.dk>
7032
7033 * xdisp.c (display_line): Allow multiple overlay arrows in window.
7034
7035 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7036
7037 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
7038 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
7039 (Ffile_name_absolute_p): Use it.
7040 (search_embedded_absfilename): New fun, extracted from
7041 Fsubstitute_in_file_name. Use file_name_absolute_p.
7042 Free the pw data after use.
7043 (Fsubstitute_in_file_name): Use it.
7044 After cutting a prefix, re-check file-name-handler.
7045
7046 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
7047
7048 * w32term.h (x_output): Add focus_state.
7049
7050 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
7051 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
7052
7053 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7054
7055 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
7056 Use Fexit_minibuffer.
7057 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
7058
7059 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7060
7061 * dired.c (Ffile_attributes): Add a missing gcpro.
7062
7063 * alloc.c (make_number): The arg can be bigger than `int'.
7064 * lisp.h (make_number): Make prototype more precise.
7065
7066 * process.c, dired.c (Vfile_name_coding_system)
7067 (Vdefault_file_name_coding_system):
7068 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
7069 (Vdefault_file_name_coding_system): Remove unused declarations.
7070
7071 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7072
7073 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
7074 if it failed to pop up (Gnome "show pointer on ctrl" option makes
7075 menus fail to pop up).
7076
7077 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7078
7079 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
7080 Just prepend a backslash without replacing the NBSP by an SPC.
7081
7082 2005-03-22 Kim F. Storm <storm@cua.dk>
7083
7084 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
7085 * dispextern.h (lookup_derived_face): Fix prototype.
7086 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
7087
7088 * xdisp.c (handle_single_display_spec): Derive left-fringe and
7089 right-fringe face from fringe face.
7090
7091 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
7092 Derive face from fringe face.
7093
7094 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7095
7096 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
7097
7098 2005-03-22 David Kastrup <dak@gnu.org>
7099
7100 * textprop.c (Fnext_char_property_change)
7101 (Fprevious_char_property_change): Allow marker as limit.
7102 (Fnext_single_char_property_change)
7103 (Fprevious_single_char_property_change): Check that limit is a
7104 number in strings.
7105 (Fnext_single_char_property_change): Coerce position to integer.
7106 (Fprevious_single_char_property_change): Same here.
7107
7108 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
7109
7110 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
7111
7112 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7113
7114 * frame.c (Fignore_event): Remove.
7115 (syms_of_frame): Don't defsubr it.
7116
7117 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
7118 redundant `ignore-event'.
7119
7120 2005-03-19 Eli Zaretskii <eliz@gnu.org>
7121
7122 * unexec.c (write_segment, unexec): Move these functions to avoid
7123 forward references (which cause errors with "gcc -gcoff").
7124
7125 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7126
7127 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
7128 that it doesn't become "tooltip". The specbind is enough.
7129
7130 * xrdb.c (x_load_resources): Use different char *helv when I18N
7131 is present.
7132
7133 2005-03-17 Kenichi Handa <handa@m17n.org>
7134
7135 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
7136
7137 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7138
7139 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
7140 Use xic_create_fontsetname even for non-Motif menus.
7141 Don't forget to free the fontsetname.
7142
7143 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
7144
7145 2005-03-17 Richard M. Stallman <rms@gnu.org>
7146
7147 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
7148
7149 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
7150 (Fmake_symbolic_link): Use G to read the new file name.
7151
7152 * callint.c (Finteractive): Document G option.
7153 (Fcall_interactively): Implement G option.
7154
7155 * buffer.c (buffer_lisp_local_variables): New function,
7156 broken out from Fbuffer_local_variables.
7157 (clone_per_buffer_values): Use buffer_lisp_local_variables.
7158
7159 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7160
7161 * xfns.c (xic_create_fontsetname): Add `motif' argument.
7162 Always return a freshly allocated string.
7163 (xic_create_xfontset): Adjust call.
7164
7165 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
7166 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
7167 (dump_realized_face): Fix warning.
7168
7169 * emacs.c (Fkill_emacs): YAILOM.
7170
7171 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
7172
7173 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7174
7175 * mac.c (HASHKEY_TERMINAL): Remove.
7176 (HASHKEY_MAX_NID): New macro.
7177 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
7178 argument.
7179 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
7180 (xrm_create_database, xrm_q_put_resource)
7181 (xrm_merge_string_database, xrm_q_get_resource_1)
7182 (xrm_q_get_resource): Change resource database representation so
7183 that it may not use multiple hash tables for a single database.
7184 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
7185
7186 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
7187
7188 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
7189
7190 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
7191 locale-coding-system, as was already done for WINDOWSNT.
7192
7193 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
7194 translation for chars in the 0-255 range.
7195
7196 2005-03-16 Lute Kamstra <lute@gnu.org>
7197
7198 * floatfns.c (Ffloor): Doc fix.
7199
7200 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7201
7202 * mac.c: Include macterm.h instead of directly including Carbon.h.
7203 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
7204 (Qarray, Qdictionary): New variables.
7205 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7206 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
7207 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
7208 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
7209 in callback for CFDictionaryApplyFunction.
7210 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7211 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7212 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
7213 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
7214 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
7215 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7216 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
7217 (skip_white_space, parse_comment, parse_include_file)
7218 (parse_binding, parse_component, parse_resource_name, parse_value)
7219 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
7220 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
7221 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
7222 New functions.
7223
7224 * macfns.c (mac_get_rdb_resource): Remove function.
7225 (x_get_string_resource): Use xrm_get_resource.
7226
7227 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
7228
7229 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
7230 name_list_element.
7231 (mac_make_rdb): Create resource database from preferences and
7232 argument string.
7233 (mac_term_init): Save resource database to cddr part of
7234 name_list_element.
7235
7236 * macterm.h (xrm_merge_string_database, xrm_get_resource)
7237 (xrm_get_preference_database): Add externs.
7238 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7239 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7240 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
7241
7242 * process.c (init_process): Change `#ifdef DARWIN' to `#if
7243 defined (DARWIN) || defined (MAC_OSX)'
7244
7245 * s/darwin.h (DARWIN): Don't define.
7246
7247 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7248
7249 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
7250 Remove unused variables.
7251 (syms_of_macfns): Don't initialize them. Likewise for
7252 Qface_set_after_frame_default. Defvar and initialize
7253 Vx_window_horizontal_drag_shape.
7254 (x_set_mouse_color): Change mouse pointer shape.
7255 (mac_window) [!MAC_OSX]: Create root control.
7256 (Fx_create_frame): Remove initializations of mouse pointer shapes.
7257 (hourglass_started): New function (from xfns.c).
7258 (start_hourglass, cancel_hourglass): Put function body in #ifdef
7259 MAC_OSX.
7260 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
7261 indicator for each non-tooltip frame if needed, and show it.
7262 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
7263
7264 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
7265 Controls.h. Use ThemeCursor instead of CursHandle.
7266
7267 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
7268 Remove functions and declarations.
7269 (mac_set_colors): Take argument for saving background color.
7270 All callers changed.
7271 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
7272 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
7273 background color.
7274 (x_update_end, mac_do_track_drag): Don't reset background color.
7275 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
7276 Use SetThemeCursor.
7277 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
7278 indicator control to the upper-right corner of the window.
7279 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
7280 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
7281 (do_window_update): Update controls after updating content area.
7282 (mac_handle_window_event): Remove unused extern.
7283 (XTread_socket): Check both control handle and control part code
7284 to determine whether a scroll bar is clicked. Activate/deactivate
7285 root control instead of contained scroll bar controls.
7286 (make_mac_terminal_frame): Use ThemeCursor constants.
7287
7288 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
7289 New member hourglass_control.
7290 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
7291 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
7292
7293 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7294
7295 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
7296 coincides with that in Apple X11 except `clear', `enter' on
7297 laptops, and fn + `enter' on laptops.
7298
7299 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7300
7301 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
7302 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
7303 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
7304
7305 * xfns.c (xic_defaut_fontset): New constant.
7306 (xic_create_fontsetname): New function.
7307 Extracted from create_frame_xic. Try to generate a slightly
7308 better fontset.
7309 (xic_create_xfontset): Use it.
7310 (create_frame_xic): Simplify.
7311
7312 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
7313
7314 * fileio.c (Fmake_symbolic_link): Fix last change.
7315
7316 2005-03-11 Richard M. Stallman <rms@gnu.org>
7317
7318 * fileio.c (Frename_file, Fadd_name_to_file)
7319 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
7320 expand the basename of FILE relative to it.
7321
7322 2005-03-11 Kenichi Handa <handa@m17n.org>
7323
7324 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
7325 before calling setup_coding_system so that autoloading of a coding
7326 system work.
7327
7328 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7329
7330 * xfns.c (hourglass_started): New function.
7331
7332 * dispextern.h: Declare hourglass_started.
7333
7334 * keyboard.c (Fexecute_extended_command): Restart hourglass
7335 after call to Fcompleting_read if already started.
7336
7337 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
7338 GTK main loop is entered in xterm.c, thus doing the redraw.
7339
7340 2005-03-10 Kim F. Storm <storm@cua.dk>
7341
7342 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
7343
7344 2005-03-08 Kenichi Handa <handa@m17n.org>
7345
7346 * frame.c (x_set_font): Call set_default_ascii_font if an
7347 available font is found.
7348
7349 * fontset.c (set_default_ascii_font): New function.
7350 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
7351
7352 * fontset.h (set_default_ascii_font): Extern it.
7353
7354 2005-03-07 Kim F. Storm <storm@cua.dk>
7355
7356 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
7357 (clear_image_cache_count): New var.
7358 (redisplay_internal): Don't clear face and image caches in the
7359 middle of redisplay; do it afterwards.
7360
7361 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
7362
7363 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
7364 is valid. If not, clear phys_cursor_on_p and return.
7365
7366 2005-03-07 Andreas Schwab <schwab@suse.de>
7367
7368 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
7369
7370 2005-03-06 Richard M. Stallman <rms@gnu.org>
7371
7372 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
7373
7374 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
7375 (Feval, Ffuncall): Use CHECK_CONS_LIST.
7376
7377 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
7378
7379 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
7380 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
7381
7382 2005-03-05 Juri Linkov <juri@jurta.org>
7383
7384 * emacs.c (USAGE1): Replace Info node name "command arguments"
7385 with "emacs invocation".
7386 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
7387 allow arguments `--color' and `MODE' to be separated by space.
7388 Add --no-blinking-cursor, -nbc.
7389 (standard_args): Add -nbc, --no-blinking-cursor.
7390
7391 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7392
7393 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
7394 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
7395 * fileio.c (Fexpand_file_name) [VMS]:
7396 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
7397 * doc.c (munge_doc_file_name) [VMS]: Likewise.
7398 (Fsnarf_documentation): Call munge_doc_file_name.
7399
7400 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7401
7402 * s/vms.h (FILE_SYSTEM_CASE): New macro.
7403 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
7404 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
7405
7406 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7407
7408 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
7409 defined (MAC_OSX) && defined (HAVE_CARBON)'.
7410
7411 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
7412
7413 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
7414 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
7415 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
7416 (mac_clear_font_name_table): Move extern to macterm.h.
7417
7418 * macfns.c (install_window_handler): Move extern to macterm.h.
7419 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
7420 valid. Don't check !NILP (dir) because it is already checked with
7421 CHECK_STRING.
7422 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
7423 specifying the default location and obtaining the selected filename.
7424
7425 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
7426
7427 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
7428 are included via Carbon.h.
7429
7430 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
7431 Define USE_CARBON_EVENTS to 1.
7432 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
7433 (x_free_frame_resources): Call remove_window_handler for
7434 non-tooltip windows.
7435 [TARGET_API_MAC_CARBON]: Don't include headers that are included
7436 via Carbon.h.
7437 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
7438 (mac_do_receive_dragUPP): New variables.
7439 (mac_handle_service_event, init_service_handler): Put declarations
7440 and definitions in #ifdef MAC_OSX.
7441 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
7442 drag-and-drop handler functions and register them.
7443 (remove_window_handler): New function.
7444 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
7445 Use fsspec_to_posix_pathname.
7446 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
7447 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
7448 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
7449 Set default cursors.
7450 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
7451 init_service_handler or init_quit_char_handler.
7452 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
7453
7454 * macterm.h (install_window_handler, remove_window_handler)
7455 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
7456 (mac_clear_font_name_table): New externs.
7457
7458 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
7459
7460 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
7461 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
7462 (Fexpand_file_name): Likewise.
7463
7464 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
7465
7466 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
7467 no longer special-case VMS. Add bogus return value.
7468
7469 2005-03-02 Kim F. Storm <storm@cua.dk>
7470
7471 * dispextern.h (XASSERTS): Define to 0 if not already defined.
7472 (xassert) [!XASSERTS]: Define dummy version.
7473
7474 2005-03-02 Kim F. Storm <storm@cua.dk>
7475
7476 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
7477 Reported by David Kastrup.
7478
7479 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
7480
7481 * xdisp.c (get_next_display_element): Fix control and escape
7482 glyph from display vector.
7483
7484 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
7485
7486 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
7487
7488 2005-02-27 Richard M. Stallman <rms@gnu.org>
7489
7490 * xdisp.c (fast_find_position): Rename END to BEG.
7491 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
7492
7493 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7494
7495 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
7496 gtk_window_resize and x_wm_set_size_hint.
7497
7498 2005-02-25 Kim F. Storm <storm@cua.dk>
7499
7500 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
7501
7502 * xdisp.c (init_from_display_pos): Don't read past end of
7503 it->overlay_strings array.
7504
7505 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
7506
7507 * buffer.c (syms_of_buffer): Fix typo.
7508
7509 2005-02-23 Lute Kamstra <lute@gnu.org>
7510
7511 * buffer.c (Foverlay_buffer): Doc fix.
7512
7513 2005-02-22 Kim F. Storm <storm@cua.dk>
7514
7515 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
7516 and symbol keys in alists and hash tables.
7517
7518 * xdisp.c (fast_find_position): Fix search for start of overlay.
7519
7520 2005-02-21 Kim F. Storm <storm@cua.dk>
7521
7522 * window.c (window_scroll_pixel_based): When scrolling backwards,
7523 handle partial visible line at end of window even when we hit PT.
7524
7525 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
7526
7527 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
7528
7529 2005-02-21 Kim F. Storm <storm@cua.dk>
7530
7531 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
7532 I think those asserts are bogus if buffer contains invisible text
7533 or images.
7534
7535 2005-02-21 David Kastrup <dak@gnu.org>
7536
7537 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
7538
7539 2005-02-20 Kim F. Storm <storm@cua.dk>
7540
7541 * xdisp.c (pos_visible_p): Be sure to move to the specified
7542 position. Always get the full ascent / descent of the
7543 corresponding row, to return reliable rtop and rbot values.
7544 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
7545 Must look one character back, as back_to_previous_line_start
7546 returns position after the newline.
7547 (move_it_vertically_backward): Fix heuristic for when to move further
7548 back in case line_height * 2/3 is larger than window height.
7549 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
7550 as it does not do anything anymore. Add arg current_matrix_p to
7551 use current matrix rather than desired matrix when set.
7552 (try_cursor_movement): Don't scroll to make cursor row fully
7553 visible if cursor didn't move. This avoids unexpected recentering
7554 in case of blinking cursor or accepting process output.
7555 Use current matrix to check cursor row visibility.
7556 (redisplay_window): Fix whether to recenter or move to top in case
7557 cursor line is taller than window height.
7558 (find_first_unchanged_at_end_row): Stop search if we reach a row
7559 which not enabled (instead of abort).
7560
7561 2005-02-18 Kim F. Storm <storm@cua.dk>
7562
7563 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
7564 to be nil in a :box attribute value list; customize prints that
7565 as lisp value when no box color is specified.
7566
7567 * .gdbinit (pitx, pit): Pretty print display iterator.
7568 (prowx, prow): Pretty print glyph row.
7569 (pcursorx, pcursor): Pretty print a window cursor.
7570 (pwinx, pwin): Pretty print struct window.
7571
7572 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7573
7574 * alloc.c (BLOCK_BYTES): Harmless typo.
7575
7576 2005-02-17 Andreas Schwab <schwab@suse.de>
7577
7578 * xfns.c (hack_wm_protocols): Use correct type for last parameter
7579 of XGetWindowProperty to avoid aliasing issues.
7580 (Fx_window_property): Likewise.
7581
7582 * xselect.c (Fx_disown_selection_internal): Use union of struct
7583 input_event and struct selection_input_event to avoid aliasing issues.
7584
7585 * xterm.c (handle_one_xevent): Use union of struct input_event and
7586 struct selection_input_event to avoid aliasing issues.
7587 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
7588
7589 2005-02-17 Kim F. Storm <storm@cua.dk>
7590
7591 * dispextern.h (enum it_method): New enum.
7592 (GET_FROM_*): Its members.
7593 (struct it): Change member method from function pointer to enum.
7594
7595 * xdisp.c (check_it, init_from_display_pos, handle_stop)
7596 (setup_for_ellipsis, handle_single_display_spec)
7597 (handle_composition_prop, next_overlay_string)
7598 (get_overlay_strings, reseat_1, reseat_to_string)
7599 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
7600 (in_display_vector_p, display_line, get_next_display_element):
7601 Change it->method from function pointer to enum.
7602 (get_next_element): New array to map it->method to function.
7603 (get_next_display_element): Use it.
7604 (set_iterator_to_next): Use switch instead of if/else chain.
7605
7606 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7607
7608 * w32select.c: Summary: Thorough rework to implement Unicode
7609 clipboard operations and delayed rendering.
7610
7611 Drop last_clipboard_text and related code, keep track of
7612 ownership via clipboard_owner instead. Drop old #if0 sections.
7613
7614 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
7615 (clipboard_owner, modifying_clipboard, cfg_coding_system)
7616 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
7617 (current_coding_system, current_requires_encoding)
7618 (current_num_nls, current_clipboard_type, current_lcid):
7619 New static variables.
7620
7621 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
7622 (render, render_all, run_protected, lisp_error_handler)
7623 (owner_callback, create_owner, setup_config)
7624 (enum_locale_callback, cp_from_locale, coding_from_cp):
7625 New local functions.
7626
7627 (term_w32select, globals_of_w32select): New global functions.
7628
7629 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
7630 clipboard_owner instead. Use delayed rendering and provide
7631 all text formats. Provide CF_LOCALE if necessary.
7632
7633 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
7634 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
7635 available. Force DOS line-ends for decoding.
7636
7637 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
7638
7639 (syms_of_w32select): Init and register new variables.
7640
7641 * w32.h: Add prototypes for globals_of_w32select and
7642 term_w32select. Make the neighboring K&R declarations into
7643 prototypes, too.
7644
7645 * emacs.c: Include w32.h to get function prototypes.
7646 (main): Call globals_of_w32select.
7647
7648 * w32.c (term_ntproc): Call term_w32select.
7649
7650 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
7651
7652 2005-02-16 Kim F. Storm <storm@cua.dk>
7653
7654 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
7655 at end of display vector.
7656
7657 2005-02-15 Richard M. Stallman <rms@gnu.org>
7658
7659 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
7660 for mode and header lines.
7661
7662 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
7663
7664 * keymap.h (describe_map_tree): Change decl.
7665
7666 * keyboard.c (command_loop_1): Always use safe_run_hooks
7667 to run Qdeferred_action_function.
7668
7669 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
7670 (describe_map, describe_vector): Likewise. When it's 1,
7671 don't omit shadowed bindings, instead mark them as shadowed.
7672
7673 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
7674 for describe_map_tree. Pass 1 for MENTION_SHADOW.
7675
7676 * data.c (Fsetq_default): Allow no arg case.
7677
7678 2005-02-14 Kenichi Handa <handa@m17n.org>
7679
7680 * coding.c (encode_coding_string): Always return a unibyte string.
7681 If NOCOPY is nonzero and there's no need of encoding, make STR
7682 unibyte directly.
7683
7684 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
7685 multibyte string, signal an error instead of aborting.
7686
7687 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
7688
7689 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
7690
7691 2005-02-12 Kim F. Storm <storm@cua.dk>
7692
7693 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
7694
7695 2005-02-10 Kim F. Storm <storm@cua.dk>
7696
7697 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
7698 if it moves outside window or it doesn't display text.
7699
7700 2005-02-09 Kim F. Storm <storm@cua.dk>
7701
7702 * undo.c (Fprimitive_undo): Check that undo function does not
7703 switch buffer.
7704
7705 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7706
7707 * xselect.c (selection_data_to_lisp_data): For the special case
7708 type == XA_ATOM, data contains array of int, not array of Atom.
7709 (x_property_data_to_lisp, selection_data_to_lisp_data):
7710 Comment update: data must be array of int for format == 32.
7711
7712 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
7713
7714 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
7715
7716 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7717
7718 * xfns.c (Fx_change_window_property): Use long array when format is 32.
7719 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
7720 convert long array returned from XGetWindowProperty to an int array.
7721 (x_set_tool_bar_lines): Check that width and height is greater than
7722 zero before clearing area.
7723
7724 * xselect.c (x_reply_selection_request): Pass long array to
7725 XChangeProperty so that 64 bit longs are handeled correctly.
7726 (x_get_window_property): If format is 32 and long is bigger than 32
7727 bits convert data from XGetWindowProperty from long array to int array.
7728 (lisp_data_to_selection_data): When the input is a vector and the
7729 format is 32, allocate a long array even if long is bigger than 32 bits.
7730 (x_fill_property_data): Use char, short and long as the man page
7731 for XChangeProperty specifies. This way the data returned is OK for
7732 both 32 and 64 bit machines.
7733 (x_handle_dnd_message): Calculate size correctly even for 64 bit
7734 machines.
7735 (Fx_send_client_event): Undo change from 2005-02-05,
7736 x_fill_property_data now handles that case.
7737
7738 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
7739 reason for the approach in the code.
7740
7741 2005-02-07 Kim F. Storm <storm@cua.dk>
7742
7743 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
7744
7745 2005-02-06 Richard M. Stallman <rms@gnu.org>
7746
7747 * eval.c (Frun_hook_with_args)
7748 (Frun_hook_with_args_until_success)
7749 (Frun_hook_with_args_until_failure): Doc fixes.
7750
7751 2005-02-05 Andreas Schwab <schwab@suse.de>
7752
7753 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
7754
7755 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7756
7757 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
7758 the longs in a XClientMessageEvent correctly when long is 64 bits.
7759
7760 2005-02-05 Eli Zaretskii <eliz@gnu.org>
7761
7762 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
7763 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
7764
7765 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7766
7767 * xmenu.c (menubar_selection_callback): Force out GTK buffered
7768 events so the menu event comes after them. This is to prevent sit-for
7769 from exiting on buffered events directly after a menu selection,
7770 lisp code for Help => About Emacs uses sit-for.
7771
7772 * gtkutil.c (create_menus): Connect selection-done event instead of
7773 the deactivate event to deactivate_cb. This will make the last
7774 leave event come before the call to deactivate_cb, so the leave
7775 event does not make sit-for exit after a menu selection.
7776
7777 2005-02-03 Kim F. Storm <storm@cua.dk>
7778
7779 * dispnew.c (build_frame_matrix_from_leaf_window)
7780 [!GLYPH_DEBUG]: Fix xassert.
7781
7782 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
7783
7784 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7785
7786 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7787
7788 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
7789 the compiling OS version.
7790
7791 * macfns.c (x_create_tip_frame): Likewise.
7792
7793 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
7794
7795 2005-02-03 Richard M. Stallman <rms@gnu.org>
7796
7797 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
7798
7799 * xdisp.c (echo_area_display): Clear echo_message_buffer.
7800
7801 * buffer.c (Fbury_buffer): Doc fix.
7802
7803 2005-02-02 Steven Tamm <steventamm@mac.com>
7804
7805 * macfns.c (unwind_create_frame): Fix compile error due to
7806 xassert being uncondition, but predicate is.
7807 * dispnew.c (update_window): Fix compile error due to
7808 xassert being uncondition, but predicate is.
7809
7810 2005-02-02 Miles Bader <miles@gnu.org>
7811
7812 * dispextern.h (xassert): Enable unconditionally.
7813
7814 2005-02-02 Kim F. Storm <storm@cua.dk>
7815
7816 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
7817
7818 2005-02-02 Kenichi Handa <handa@m17n.org>
7819
7820 * casefiddle.c (casify_object): Enable changing characters of
7821 different byte length.
7822 (casify_region): Fix loop condition, args to replace_range_2, and
7823 update opoint_byte.
7824
7825 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
7826
7827 2005-02-01 Kim F. Storm <storm@cua.dk>
7828
7829 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
7830 stack before calling handle_display_prop.
7831
7832 2005-01-31 Kim F. Storm <storm@cua.dk>
7833
7834 * undo.c (Qapply): New lisp var.
7835 (syms_of_undo): Intern and staticpro it.
7836 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
7837 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
7838
7839 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7840
7841 2005-01-30 Jesper Harder <harder@phys.au.dk>
7842
7843 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
7844 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7845
7846 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
7847
7848 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
7849 Increase value to 3 Meg.
7850
7851 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7852
7853 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
7854 button events are not received otherwise.
7855
7856 2005-01-29 Richard M. Stallman <rms@gnu.org>
7857
7858 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7859
7860 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
7861
7862 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7863
7864 * keymap.c (access_keymap): YAILOM.
7865
7866 2005-01-27 Kim F. Storm <storm@cua.dk>
7867
7868 * xdisp.c (get_phys_cursor_geometry): New function to calculate
7869 phys cursor position and size for hollow cursor. Position is
7870 aligned with get_glyph_string_clip_rect and ensures that a hollow
7871 cursor is shown, even when the actual glyph is not visible.
7872
7873 * dispextern.h (get_phys_cursor_geometry): Add prototype.
7874
7875 * xterm.c (x_clip_to_row): Ensure y >= 0.
7876 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7877
7878 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7879
7880 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7881
7882 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
7885
7886 2005-01-27 Kim F. Storm <storm@cua.dk>
7887
7888 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
7889 glyph, even when row is only partially visible and actual cursor
7890 position is not visible.
7891
7892 2005-01-24 Richard M. Stallman <rms@gnu.org>
7893
7894 * xterm.c (x_error_quitter): No longer static, and moved after
7895 x_error_handler.
7896
7897 2005-01-24 Kim F. Storm <storm@cua.dk>
7898
7899 * xdisp.c (move_it_by_lines): If we move forward after going too
7900 far back, cancel move if end position is same as start position.
7901
7902 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7903
7904 * dispextern.h (struct glyph_string): New members clip_head and
7905 clip_tail.
7906
7907 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
7908 region to the area between clip_head and clip_tail.
7909 (draw_glyphs): Record the area that need to be actually redrawn to
7910 the new variables clip_head and clip_tail when there are
7911 overhangs. Set values of these variables to the corresponding
7912 members in struct glyph_string. Refine x coordinates for
7913 notice_overwritten_cursor using clip_head and clip_tail.
7914
7915 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
7916
7917 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
7918 QDTextBounds.
7919 (x_draw_glyph_string): Don't fill the background of the successor
7920 of a glyph with a right overhang if the successor will draw a cursor.
7921 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
7922 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
7923
7924 2005-01-24 Kim F. Storm <storm@cua.dk>
7925
7926 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
7927 direction if window height was smaller than next-screen-context-lines.
7928 Now always scroll at least one line in the requested direction.
7929 Ensure that we actually do scroll backwards when requested to do so.
7930
7931 * xdisp.c (redisplay_window): Only try to make cursor line fully
7932 visible once (to avoid redisplay loop).
7933
7934 2005-01-23 Kim F. Storm <storm@cua.dk>
7935
7936 * window.c (Fpos_visible_in_window_p): Simplify return value for
7937 partially visible rows.
7938 (window_scroll_pixel_based): Adapt to that change.
7939
7940 * window.c (window_scroll_pixel_based): Force moving to next line
7941 if scrolling doesn't move start point, e.g. if looking at tall image.
7942
7943 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
7944 Clear last_height before calling line_bottom_y to get real height.
7945 Fix calculation of y.
7946
7947 2005-01-22 Steven Tamm <steventamm@mac.com>
7948
7949 * s/darwin.h: Removed PTY_ITERATION from here.
7950 (DARWIN): Define.
7951
7952 * process.c (init_process): Default process-connection-type to
7953 nil on darwin 6 or less, t if it is 7 or higher. This way the
7954 broken pty behavior is still allowed on darwin 6 for interactive
7955 processes for people that know what they are doing.
7956
7957 2005-01-22 Kim F. Storm <storm@cua.dk>
7958
7959 * window.c (auto_window_vscroll_p): New boolean.
7960 (syms_of_window): DEFVAR_BOOL it.
7961 (Fpos_visible_in_window_p): Extend return value to include RTOP
7962 and RBOT values if FULLY is nil.
7963 (window_scroll_pixel_based): Adjust vscroll for partially visible
7964 rows if auto_window_vscroll_p is set.
7965 (Fset_window_vscroll): Do nothing if vscroll is not modified.
7966
7967 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
7968 to return number of partially invisible pixels at top and bottom
7969 of the dislay row at POS.
7970
7971 * lisp.h (pos_visible_p): Fix prototype.
7972
7973 2005-01-21 Richard M. Stallman <rms@gnu.org>
7974
7975 * fileio.c (Fcopy_file): Doc fix.
7976
7977 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7978
7979 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
7980 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
7981 start of function for older compilers.
7982
7983 2005-01-20 Richard M. Stallman <rms@gnu.org>
7984
7985 * editfns.c (Fmessage): If arg is "", return "" (as before).
7986
7987 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
7988
7989 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
7990 variable.
7991
7992 2005-01-20 Steven Tamm <steventamm@mac.com>
7993
7994 * editfns.c (Voperating_system_release): Add.
7995 (init_editfns): Assign new variable operating-system-release
7996 based on call to uname if available.
7997 (get_operating_system_release): Add function to
7998 allow c-level access to operating system release.
7999
8000 * config.h: Regenerated.
8001
8002 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
8003 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
8004 using ptys as '7'.
8005
8006 2005-01-20 Kim F. Storm <storm@cua.dk>
8007
8008 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
8009
8010 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
8011 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
8012
8013 * macterm.c (x_draw_glyph_string_box): Likewise.
8014
8015 * w32term.c (x_draw_glyph_string_box): Likewise.
8016
8017 * indent.c (Fvertical_motion): Temporarily disable selective display.
8018
8019 2005-01-19 Kim F. Storm <storm@cua.dk>
8020
8021 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
8022 image property.
8023
8024 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
8025
8026 2005-01-18 Kim F. Storm <storm@cua.dk>
8027
8028 * xdisp.c (fast_find_position): Backtrack to find first row if
8029 charpos is inside a display overlay that spans multiple lines.
8030
8031 2005-01-18 Kenichi Handa <handa@m17n.org>
8032
8033 * coding.c (decode_coding_iso2022): Translate invalid codes if
8034 translation-table is specified.
8035
8036 2005-01-18 Kim F. Storm <storm@cua.dk>
8037
8038 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
8039 change. If handle_display_prop indicates newline is replaced by
8040 image or text, move back to start of relevant overlay or interval
8041 and continue scan from there. Simplify.
8042
8043 2005-01-17 Kim F. Storm <storm@cua.dk>
8044
8045 * dispnew.c (mode_line_string, marginal_area_string):
8046 Fix off-by-one error in search for glyph.
8047
8048 2005-01-16 Kim F. Storm <storm@cua.dk>
8049
8050 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
8051
8052 2005-01-16 Steven Tamm <steventamm@mac.com>
8053
8054 * macterm.c (mac_to_x_fontname): Remove spurious argument.
8055
8056 2005-01-16 Andreas Schwab <schwab@suse.de>
8057
8058 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
8059
8060 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8061
8062 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
8063 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
8064
8065 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8066
8067 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
8068 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
8069 New flags for readable_events.
8070 (get_filtered_input_pending, readable_filtered_events): Remove.
8071 (tracking_off): Call readable_events and get_input_pending with
8072 flag READABLE_EVENTS_DO_TIMERS_NOW.
8073 (readable_events): Move code from old readable_filtered_events here,
8074 but check new READABLE_EVENTS_* in argument flags instead of previous
8075 two boolean arguments do_timers_now and filter_events.
8076 If we are doing mouse tracking and the mouse moved, return only if
8077 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
8078 (swallow_events): Call get_input_pending with flag
8079 READABLE_EVENTS_DO_TIMERS_NOW.
8080 (get_input_pending): Move code from old get_filtered_input_pending
8081 here. Replace boolean arguments do_timers_now, filter_events with
8082 flags, and pass flags to readable_events. Document new
8083 READABLE_EVENTS_* flags.
8084 (detect_input_pending_ignore_squeezables): New function.
8085 (detect_input_pending_run_timers): Call get_input_pending with flag
8086 READABLE_EVENTS_DO_TIMERS_NOW.
8087 (Finput_pending_p): Call get_input_pending with flags
8088 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
8089
8090 * dispnew.c (update_window, update_frame_1): Replace calls to
8091 detect_input_pending with detect_input_pending_ignore_squeezables
8092 so that redisplay is not paused if the event queue contains only
8093 mouse movements.
8094
8095 * lisp.h: Declare detect_input_pending_ignore_squeezables.
8096
8097 2005-01-15 Steven Tamm <steventamm@mac.com>
8098
8099 * macterm.c (Vmac_use_core_graphics): Declare variable for
8100 mac-allow-anti-aliasing.
8101 (syms_of_macterm): DEFVAR_LISP and initialize it.
8102 (mac_draw_string_common): Use core graphics text rendering if
8103 mac-allow-anti-aliasing is enabled.
8104
8105 * macfns.c (Fx_file_dialog): Save As dialog includes only the
8106 file name in the text box.
8107
8108 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8109
8110 * macfns.c (x_set_foreground_color, x_set_background_color):
8111 Sync with xfns.c.
8112 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
8113 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
8114 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
8115
8116 2005-01-14 Kim F. Storm <storm@cua.dk>
8117
8118 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
8119
8120 2005-01-13 Richard M. Stallman <rms@gnu.org>
8121
8122 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
8123 if Voverriding_terminal_local_map is non-nil.
8124
8125 * keyboard.c (syms_of_keyboard): Doc fix.
8126
8127 2005-01-13 Kim F. Storm <storm@cua.dk>
8128
8129 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
8130 (specify 0 for FACE instead). Reorder arg list. Doc fix.
8131
8132 2005-01-12 Richard M. Stallman <rms@gnu.org>
8133
8134 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
8135 face property for characters that don't specify one.
8136
8137 * fns.c (Frequire): Record in load-history unconditionally.
8138
8139 2005-01-10 Kim F. Storm <storm@cua.dk>
8140
8141 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
8142
8143 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
8144 Callers changed.
8145 Add support to merge with lisp face id too (if face_name is t).
8146
8147 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8148 Don't lookup lface_id from display table glyphs here; instead use
8149 merge_faces to merge the lisp face id into current face.
8150
8151 2005-01-09 Kim F. Storm <storm@cua.dk>
8152
8153 * dispextern.h (struct it): New member dpvec_face_id.
8154 (merge_into_realized_face): Add prototype.
8155
8156 * xfaces.c (merge_into_realized_face): New function. Used to
8157 merge escape-glyph face or face from display table into current face.
8158
8159 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
8160 (syms_of_xdisp): DEFVAR_LISP it.
8161 (escape_glyph_face): Remove var.
8162 (redisplay_window): Don't initialize it.
8163 (setup_for_ellipsis, get_next_display_element):
8164 Set it->dpvec_face_id to -1.
8165 (get_next_display_element): Test Vshow_nonbreak_escape.
8166 Do not setup escape_glyph_face.
8167 Properly merge escape-glyph face or face from display table with
8168 current face for escape and control characters.
8169 Set it->dpvec_face_id to relevant face id instead of adding it to each
8170 element of display vector.
8171 (next_element_from_display_vector): If it->dpvec_face_id is set,
8172 use that instead of lface_id from glyph itself.
8173
8174 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8175
8176 * xterm.h (struct x_output): New member, toolbar_detached.
8177
8178 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
8179 38.
8180 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
8181 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
8182 (xg_create_tool_bar): Initialize toolbar_detached.
8183 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
8184 toolbar_detached is zero.
8185
8186 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8187
8188 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
8189 gtk_menu_popup if not for_click, so callbacks for the menu are called.
8190
8191 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
8192 (xg_tool_bar_callback, xg_tool_bar_help_callback)
8193 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
8194
8195 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8196 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
8197 XFLOAT_DATA to get extract number from Lisp object.
8198
8199 2005-01-07 Kim F. Storm <storm@cua.dk>
8200
8201 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
8202 Set stop_charpos to current charpos instead of 0.
8203
8204 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
8205
8206 * xdisp.c (Fformat_mode_line): First arg now required.
8207
8208 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8209
8210 * macterm.c (XLoadQueryFont): Correctly handle 0 size
8211 font widths that are returned from some Japanese fonts.
8212
8213 2005-01-06 Kim F. Storm <storm@cua.dk>
8214
8215 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
8216 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
8217 (destroy_fringe_bitmap): Set fringe_faces element to nil.
8218 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
8219 fringe_faces array and init elements to nil.
8220 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
8221 non-persistent face id.
8222 (mark_fringe_data): New function for GC.
8223
8224 * alloc.c (mark_fringe_data): Declare extern.
8225 (Fgarbage_collect): Call mark_fringe_data.
8226
8227 * alloc.c (overrun_check_free): Invalidate freed memory if
8228 XMALLOC_CLEAR_FREE_MEMORY is defined.
8229
8230 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8231
8232 * macfns.c: Include sys/param.h.
8233 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
8234 and function.
8235 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
8236 of filename string. Set event callback function when creating
8237 dialog boxes. Add code conversions for filenames. Don't dispose
8238 of apple event descriptor record if failed to create it.
8239
8240 * macterm.c: Include sys/param.h.
8241 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
8242 kEventWindowUpdate.
8243 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
8244 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
8245 of FSSpec from apple event descriptor record.
8246 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
8247 size of filename string.
8248 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
8249 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
8250 file dialog is in action.
8251 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
8252 Reject only when there are no filename items. Set background color
8253 before (un)highlighting the window below the dragged items.
8254 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
8255
8256 2005-01-05 Romain Francoise <romain@orebokech.com>
8257
8258 * term.c (encode_terminal_code): Fix buffer size computation.
8259
8260 2005-01-04 Richard M. Stallman <rms@gnu.org>
8261
8262 * xdisp.c (Fformat_mode_line): Doc fix.
8263
8264 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * alloc.c (refill_memory_reserve): Move.
8267 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
8268 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
8269
8270 2005-01-03 Richard M. Stallman <rms@gnu.org>
8271
8272 * window.c (window_scroll_pixel_based): Don't correct preserve_y
8273 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
8274
8275 2005-01-03 Jason Rumney <jasonr@gnu.org>
8276
8277 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
8278 fontp->space_width to FONT_WIDTH so they are valid.
8279
8280 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
8281 average width. Set fontp->average_width and fontp->space_width to
8282 their appropriate values.
8283
8284 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8285 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8286 fontp->space_width.
8287
8288 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8289
8290 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
8291 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
8292 metrics for max and min bounds.
8293 (x_load_font): Correctly calculate average font width metrics.
8294
8295 2005-01-02 Richard M. Stallman <rms@gnu.org>
8296
8297 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
8298
8299 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8300
8301 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
8302
8303 2004-12-31 Richard M. Stallman <rms@gnu.org>
8304
8305 * xdisp.c (setup_for_ellipsis, get_next_display_element):
8306 Set it->ellipsis_p to 1 or 0.
8307 (display_line): Record whether row ends in mid-ellipsis.
8308 (set_cursor_from_row): If ends in ellipsis, find start of it.
8309 (cursor_row_p): If PT's at the end of the ellipsis the row
8310 ends within, don't display cursor on this row.
8311
8312 * dispextern.h (struct it): New element ellipsis_p.
8313 (struct glyph_row): New element ends_in_ellipsis_p.
8314
8315 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
8316 position if we're reading from something other than the buffer.
8317
8318 * window.c (window_scroll_pixel_based): Only look at
8319 Vscroll_preserve_screen_position if the old PT can't be kept.
8320 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8321
8322 2004-12-30 Kim F. Storm <storm@cua.dk>
8323
8324 * xdisp.c (get_line_height_property): New function extracted from
8325 original calc_line_height_property.
8326 (calc_line_height_property): Rework. Handle t and (nil . ratio).
8327 (x_produce_glyphs): Use them to handle line-height and
8328 line-spacing according to new height spec.
8329 (Qtotal): Remove.
8330 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
8331
8332 2004-12-30 Kenichi Handa <handa@m17n.org>
8333
8334 * fileio.c (Finsert_file_contents): Don't use
8335 current_buffer->buffer_file_coding_system even if REPLACE is
8336 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
8337
8338 * fontset.h (struct font_info): New members space_width and
8339 average_width.
8340
8341 * frame.h (struct frame): New member space_width.
8342 (FRAME_SPACE_WIDTH): New macro.
8343
8344 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
8345
8346 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8347 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8348 fontp->space_width.
8349 (x_load_font): Calculate fontp->space_width and fontp->average_width.
8350 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
8351
8352 * xdisp.c (x_produce_glyphs): Calculate tab width by
8353 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
8354
8355 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
8356
8357 * macterm.c (SelectionRange): Add Xcode position apple event struct.
8358 (do_ae_open_documents): Handle Xcode-style file position open events.
8359
8360 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
8361
8362 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
8363
8364 2004-12-29 Richard M. Stallman <rms@gnu.org>
8365
8366 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
8367
8368 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8369
8370 * macfns.c (install_window_handler): Modify extern to return OSErr
8371 value.
8372 (mac_window): Handle return value of install_window_handler.
8373
8374 * macterm.c (reflect_byte): Remove function.
8375 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
8376 Lookup table instead.
8377 (mac_do_font_lists): Simplify calculation of the longest
8378 nonspecial string.
8379 (init_mac_drag_n_drop): Remove function and declaration.
8380 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
8381 init_mac_drag_n_drop.
8382 (mac_do_track_drag): New function and declaration.
8383 (install_window_handler): Return OSErr value.
8384 (install_window_handler) [TARGET_API_MAC_CARBON]:
8385 Register handlers for tracking/receiving drag-and-drop items.
8386 (do_ae_open_documents): Generate unibyte strings for filenames.
8387 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
8388 Reject only non-filename items. Set event modifiers, and return value.
8389
8390 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8391
8392 * coding.c (decode_coding): Fix previous change.
8393
8394 2004-12-28 Richard M. Stallman <rms@gnu.org>
8395
8396 * xdisp.c (back_to_previous_visible_line_start):
8397 Don't call handle_display_prop.
8398
8399 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8400
8401 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
8402 (decode_coding_emacs_mule, encode_coding_emacs_mule)
8403 (decode_coding_iso2022, encode_designation_at_bol)
8404 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
8405 (decode_coding): Constify arguments and local vars.
8406
8407 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8408
8409 * xmenu.c (popup_get_selection): Only pop down dialogs
8410 on C-g and Escape.
8411 (popup_get_selection): Remove parameter down_on_keypress.
8412 (create_and_show_popup_menu, create_and_show_dialog):
8413 Remove parameter down_on_keypress to popup_get_selection.
8414
8415 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8416
8417 * dispextern.h: Change HAVE_CARBON to MAC_OS.
8418 (struct glyph_string): Likewise.
8419
8420 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
8421 mac_initialize.
8422
8423 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
8424 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
8425
8426 * fns.c (vector): Change MAC_OSX to MAC_OS.
8427
8428 * frame.c (x_set_frame_parameters, x_report_frame_params)
8429 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
8430 (x_set_border_width, Vdefault_frame_scroll_bars):
8431 Change HAVE_CARBON to MAC_OS.
8432
8433 * image.c [MAC_OS]: Include sys/stat.h.
8434 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
8435 QuickTimeComponents.h.
8436
8437 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
8438 [!MAC_OSX] (select): Use mac_wait_next_event.
8439 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
8440 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
8441 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
8442 (mac_clear_font_name_table): Add extern.
8443 (Fmac_clear_font_name_table): New defun.
8444 (syms_of_mac): Defsubr it.
8445 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
8446 [MAC_OSX] (select_and_poll_event): New function.
8447 [MAC_OSX] (sys_select): Use it.
8448 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
8449 [MAC_OSX && SELECT_USE_CFSOCKET]
8450 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
8451 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
8452 RunLoop for simultaneously monitoring two kinds of inputs, window
8453 events and process outputs, without periodically polling.
8454
8455 * macfns.c (mac_initialized): Remove extern.
8456 (stricmp): Put in #if 0. All callers changed to use xstricmp in
8457 xfaces.c.
8458 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
8459 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
8460 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
8461 (mac_get_rdb_resource): New function (from w32reg.c).
8462 (x_get_string_resource): Use it.
8463 (install_window_handler): Add extern.
8464 (mac_window): New function.
8465 (Fx_create_frame): Use it instead of make_mac_frame.
8466 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
8467 (Fx_open_connection, Fx_close_connection): New defuns.
8468 (syms_of_macfns): Defsubr them.
8469 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
8470 Add kWindowNoUpdatesAttribute to the window attribute.
8471 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
8472 (x_create_tip_frame): Don't call ShowWindow.
8473 (Fx_show_tip): Call ShowWindow.
8474 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
8475 TARGET_API_MAC_CARBON'.
8476 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
8477 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
8478
8479 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
8480 (Window): Typedef to WindowPtr and move outside `#if
8481 TARGET_API_MAC_CARBON'.
8482 (XSizeHints): New struct.
8483
8484 * macterm.c (x_update_begin, x_update_end)
8485 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
8486 frame.
8487 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8488 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
8489 (construct_mouse_click): Put in #if 0.
8490 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
8491 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
8492 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
8493 (activate_scroll_bars, deactivate_scroll_bars)
8494 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
8495 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
8496 if the position is neither user-specified nor program-specified.
8497 (x_free_frame_resources): Free size_hints.
8498 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
8499 (mac_clear_font_name_table): New function.
8500 (mac_do_list_fonts): Initialize font_name_table if needed.
8501 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
8502 around mac_do_list_fonts.
8503 (mac_unload_font): New function.
8504 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
8505 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
8506 and definitions with #if TARGET_API_MAC_CARBON.
8507 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
8508 (install_window_handler): Add decl.
8509 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
8510 window. Use UpdateControls. Get the rectangle that should be
8511 updated and restrict the target of expose_frame to it.
8512 (do_grow_window): Set minimum height/width according to size_hints.
8513 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
8514 (do_zoom_window): Don't use x_set_window_size.
8515 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
8516 (install_window_handler): New function.
8517 [!USE_CARBON_EVENTS] (mouse_region): New variable.
8518 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
8519 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
8520 GetEventDispatcherTarget inside BLOCK_INPUT.
8521 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
8522 Update mouse_region when mouse is moved.
8523 (make_mac_frame): Remove.
8524 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
8525 Initialize mouse pointer shapes. Change values of f->left_pos and
8526 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
8527 Don't call ShowWindow.
8528 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
8529 Vinvocation_name and Vsystem_name.
8530 (mac_make_rdb): New function (from w32term.c).
8531 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
8532 already been opened. Don't pass argument to
8533 mac_initialize_display_info. Don't set dpyinfo->height/width.
8534 Add entries to x_display_list and x_display_name_list.
8535 (x_delete_display): New function.
8536 (mac_initialize): Don't call mac_initialize_display_info.
8537 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
8538
8539 * macterm.h (check_mac): Add extern.
8540 (struct mac_output): New member size_hints.
8541 (FRAME_SIZE_HINTS): New macro.
8542 (mac_unload_font): Add extern.
8543
8544 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
8545
8546 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
8547
8548 2004-12-27 Richard M. Stallman <rms@gnu.org>
8549
8550 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
8551 (syms_of_buffer): Don't defsubr it.
8552
8553 * process.c (list_processes_1): Set undo_list instead
8554 of calling Fbuffer_disable_undo.
8555
8556 * xdisp.c (single_display_spec_string_p): Rename from
8557 single_display_prop_string_p.
8558 (single_display_spec_intangible_p): Rename from
8559 single_display_prop_intangible_p.
8560 (handle_single_display_spec): Rename from handle_single_display_prop.
8561 Rewritten to be easier to understand.
8562
8563 Change in load-history format. Functions now get (defun . NAME),
8564 and variables get just NAME.
8565
8566 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
8567
8568 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
8569 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
8570 (Qdefvar): Var deleted.
8571 (syms_of_eval): Don't initialze it.
8572
8573 * lread.c (syms_of_lread) <load-history>: Doc fix.
8574
8575 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8576
8577 * xmenu.c (popup_get_selection): Pop down on C-g.
8578 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
8579 pops down menu on C-g.
8580 (xdialog_show): If dialog popped down and no button in the dialog was
8581 pushed, call Fsignal to quit.
8582 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
8583 Fsignal to quit.
8584
8585 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
8586
8587 * gtkutil.c (xg_initialize): Install bindings for C-g so that
8588 dialogs and menus pop down.
8589
8590 2004-12-27 Kenichi Handa <handa@m17n.org>
8591
8592 * coding.c (code_convert_region): Fix calculation of `ratio'.
8593
8594 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8595
8596 * gtkutil.c (update_frame_tool_bar): Make the value of
8597 tool-bar-button-margin control margins of images in tool bar.
8598
8599 * alloc.c (check_depth): New variable.
8600 (overrun_check_malloc, overrun_check_realloc): Only add
8601 overhead and write check pattern if check_depth is 1 (to handle
8602 recursive calls). Increase/decrease check_depth in entry/exit.
8603 (overrun_check_free): Only check for overhead if check_depth is 1.
8604 Increase/decrease check_depth in entry/exit.
8605
8606 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8607
8608 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
8609 before touching input_available_clear_time, to avoid accessing it
8610 from multiple threads.
8611
8612 2004-12-23 Jason Rumney <jasonr@gnu.org>
8613
8614 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
8615 of JPEG library.
8616
8617 2004-12-22 Richard M. Stallman <rms@gnu.org>
8618
8619 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
8620
8621 * lisp.h (Vundo_outer_limit): Fix decl.
8622
8623 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
8624 Uses changed.
8625 (syms_of_undo): Initialize appropriately.
8626 (truncate_undo_list): If it's nil, there's no limit.
8627
8628 2004-12-22 Kenichi Handa <handa@m17n.org>
8629
8630 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
8631
8632 2004-12-21 Richard M. Stallman <rms@gnu.org>
8633
8634 * eval.c (unwind_to_catch): Clear immediate_quit.
8635
8636 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
8637 specially as `\ ' and `\-'.
8638
8639 * keyboard.c (kbd_buffer_store_event_hold):
8640 In the code for while-no-input, handle immediate_quit.
8641
8642 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
8643 Call that at the very start.
8644 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
8645 (syms_of_alloc): Don't define undo-limit,
8646 undo-strong-limit and undo-outer-limit here.
8647
8648 * undo.c (truncate_undo_list): Return void.
8649 Take just one argument, the buffer.
8650 Make it current, and inhibit recursive GC.
8651 Access and update the undo list directly; return void.
8652 Refer to the undo...limit variables directly.
8653 Test undo_outer_limit only after counting the whole current command.
8654 When it's exceeded, call the function in undo-outer-limit-function.
8655 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
8656 (Vundo_outer_limit_function): New variable.
8657 (syms_of_undo): Define undo-limit, undo-strong-limit
8658 and undo-outer-limit here, and undo-outer-limit-function.
8659 Doc fixes.
8660
8661 * lisp.h (truncate_undo_list): Update decl.
8662
8663 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
8664
8665 * fileio.c (Fread_file_name): Delete duplicates in
8666 file-name-history when history_delete_duplicates is true.
8667
8668 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8669
8670 * macterm.c (mac_do_list_fonts): Fix memory leak
8671
8672 2004-12-20 Richard M. Stallman <rms@gnu.org>
8673
8674 * regex.c (re_match_2_internal) <symend, wordend>:
8675 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
8676
8677 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8678
8679 * macterm.c (endif, x_font_name_to_mac_font_name):
8680 Use maccentraleurroman instead of maccentraleuropean
8681 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
8682 quickly finding a specific font without needing regexps.
8683
8684 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8685
8686 * syssignal.h: Declare main_thread.
8687 (SIGNAL_THREAD_CHECK): New macro.
8688
8689 * keyboard.c (input_available_signal): Move thread checking code
8690 to macro SIGNAL_THREAD_CHECK and call that macro.
8691 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
8692
8693 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
8694
8695 * emacs.c: Define main_thread.
8696 (main): Initialize main_thread.
8697 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
8698 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
8699
8700 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
8701
8702 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
8703
8704 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
8705
8706 * process.c (send_process_trap, sigchld_handler):
8707 Call SIGNAL_THREAD_CHECK.
8708
8709 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
8710
8711 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
8712
8713 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
8714 returning when xg_ignore_gtk_scrollbar is true.
8715
8716 2004-12-14 Kim F. Storm <storm@cua.dk>
8717
8718 * keyboard.c (read_char): Save and restore echo_string when
8719 handling input method.
8720
8721 2004-12-13 Richard M. Stallman <rms@gnu.org>
8722
8723 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
8724
8725 * keyboard.c (Vthrow_on_input): New variable.
8726 (syms_of_keyboard): Defvar and initialize it.
8727 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
8728
8729 * lisp.h (QUIT): Check for Vthrow_on_input.
8730 (Vthrow_on_input): Declare it.
8731
8732 2004-12-13 Kim F. Storm <storm@cua.dk>
8733
8734 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
8735 vector.
8736
8737 2004-12-12 Richard M. Stallman <rms@gnu.org>
8738
8739 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
8740
8741 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
8742 (Ftry_completion): Really use outer `zero'; eliminate inner one.
8743
8744 2004-12-12 Kenichi Handa <handa@m17n.org>
8745
8746 * term.c (encode_terminal_code): Fix previous change.
8747
8748 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * keyboard.c (handle_async_input): Remove pthread mutex handling.
8751 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
8752
8753 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
8754 in macro arguments.
8755
8756 * minibuf.c (Ftry_completion, Fall_completions): Don't use
8757 XFASTINT blindly.
8758
8759 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
8760
8761 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8762
8763 * w32term.c (x_calc_absolute_position): Remove calculation of
8764 difference between inner and outer window. Don't subtract difference
8765 for left and top calculations.
8766
8767 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
8768 for left and top calculations. Remove call to x_real_positions.
8769 [Bug report by Drew Adams in November]
8770 (x_check_expected_move): Do not set change_gravity to 1 when calling
8771 x_set_offset.
8772
8773 2004-12-08 Richard M. Stallman <rms@gnu.org>
8774
8775 * xdisp.c (get_next_display_element): Use `escape-glyph' for
8776 control chars and escaped octal codes.
8777 (Qescape_glyph): New variable.
8778 (syms_of_xdisp): Initialize it.
8779 (escape_glyph_face): New variable.
8780 (redisplay_window): Initialize it.
8781
8782 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
8783
8784 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
8785 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
8786
8787 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8788
8789 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
8790 reset_malloc_hooks.
8791
8792 * keyboard.c (handle_async_input, input_available_signal):
8793 Add ! defined (SYSTEM_MALLOC) around thread code.
8794
8795 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
8796
8797 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
8800
8801 * config.in: Regenerate.
8802
8803 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8804
8805 * xmenu.c (Fx_popup_menu): Correct documentation about position.
8806 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
8807 if not given by a mouse click to correspond with x-popup-menu
8808 documentation.
8809
8810 * config.in: Regenerate.
8811
8812 * gtkutil.c: Include signal.h and syssignal.h.
8813 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
8814
8815 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
8816 new variables main_thread and alloc_mutex,
8817 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
8818 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
8819 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
8820 (UN)BLOCK_INPUT.
8821 (emacs_blocked_free, emacs_blocked_malloc)
8822 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
8823 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
8824 (reset_malloc_hooks): New function.
8825
8826 * lisp.h: Declare reset_malloc_hooks.
8827
8828 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
8829
8830 * keyboard.c: Conditionally include pthread.h
8831 (handle_async_input, input_available_signalt): If not in the main
8832 thread, block signal, send signal to main thread and return.
8833
8834 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
8835 Set current folder in file chooser if default_filename is a directory.
8836
8837 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
8840 Remove redundant correctness checks.
8841 (regex_compile): Fix up error codes for \{..\} expressions.
8842
8843 2004-12-05 Richard M. Stallman <rms@gnu.org>
8844
8845 * regex.c (regex_compile): Fix end-of-pattern case for space.
8846
8847 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8848
8849 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
8850 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
8851 crashes with invalid characters.
8852 * macmenu.c (add_menu_item): Use it.
8853 * image.c (image_load_quartz2d): Likewise.
8854 * macfns.c (x_set_name, x_set_title): Likewise.
8855 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
8856 creating them each time for labels.
8857
8858 2004-12-02 Richard M. Stallman <rms@gnu.org>
8859
8860 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
8861 don't use it here.
8862
8863 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
8864 (interactive_p): Skip Scalled_interactively_p frames
8865 like Sinteractive_p frames.
8866 (unwind_to_catch): Clear handling_signal.
8867
8868 * data.c (Fmake_variable_buffer_local): Doc fix.
8869 (Fmake_local_variable): Doc fix.
8870
8871 * insdel.c (insert_from_string_before_markers)
8872 (insert_from_string): Don't modify buffer on empty insertion.
8873
8874 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
8875
8876 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8877
8878 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
8879 menu text as UTF8 fails.
8880
8881 2004-12-01 Kim F. Storm <storm@cua.dk>
8882
8883 * alloc.c: Add commentary for last change.
8884 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
8885 sizeof(size_t) != 4.
8886 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
8887 Use them. Also clear header and trailer of freed memory.
8888 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
8889 (string_overrun_cookie): Rename from string_overrun_pattern.
8890 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
8891
8892 2004-12-01 Andreas Schwab <schwab@suse.de>
8893
8894 * lisp.h: Declare string_to_multibyte.
8895
8896 2004-12-01 Kenichi Handa <handa@m17n.org>
8897
8898 * w32console.c (w32con_write_glyphs): Decide coding here.
8899 Adjusted for the change of encode_terminal_code.
8900
8901 * term.c (encode_terminal_code): Don't make it "static".
8902
8903 2004-11-30 Kenichi Handa <handa@m17n.org>
8904
8905 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
8906 (encode_terminal_code): Argument changed. Encode all
8907 characters at once, and return a pointer to the result of encoding.
8908 (write_glyphs): Decide coding here. Adjusted for the above change.
8909 (insert_glyphs): Likewise.
8910 (term_init): Initialize encode_terminal_bufsize to 0.
8911
8912 * coding.c (Vcode_conversion_workbuf_name): New variable.
8913 (syms_of_coding): Initialize and staticpro it.
8914 (set_conversion_work_buffer): New function.
8915 (run_pre_post_conversion_on_str): Use it.
8916 (run_pre_write_conversin_on_c_str): New function.
8917
8918 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
8919
8920 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8921
8922 * keyboard.c: Don't undef SIGIO
8923 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
8924 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
8925 (macfns.o): Don't depend on ccl.h.
8926 * macfns.c (mac_frame_parm_handlers): Set handlers for
8927 Qleft_fringe and Qright_fringe.
8928 * macterm.c (mac_fill_rectangle_to_pixmap)
8929 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
8930 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
8931 Put in #if 0.
8932 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
8933 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
8934 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
8935 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8936 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
8937 XDrawImageString. Always draw background and foreground separately.
8938 (x_draw_image_foreground): Use clipping instead of computing the
8939 intersection rectangle.
8940 (x_draw_image_glyph_string): Don't draw an image with mask to a
8941 pixmap.
8942 (x_redisplay_interface): Set flush_display_optional member to 0.
8943 (XTread_socket): Correctly reset the TEConverter
8944 object.
8945
8946 2004-11-30 Kim F. Storm <storm@cua.dk>
8947
8948 * lisp.h: New defines to enable buffer overrun checking.
8949 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
8950 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
8951
8952 * alloc.c: Add more checks for buffer overruns.
8953 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
8954 xmalloc_overrun_check_trailer, overrun_check_malloc)
8955 overrun_check_realloc, overrun_check_free): Add.
8956 (GC_STRING_EXTRA, string_overrun_pattern): Add.
8957 (check_sblock, allocate_string_data, compact_small_strings):
8958 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
8959 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
8960 (check_string_free_list): Add.
8961 (allocate_string, sweep_strings): Call check_string_free_list.
8962
8963 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
8964 XMALLOC_OVERRUN_CHECK to avoid crash during load.
8965
8966 2004-11-29 Kim F. Storm <storm@cua.dk>
8967
8968 * fns.c (concat): Use SAFE_ALLOCA.
8969
8970 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
8971
8972 * sysdep.c (emacs_write): Don't use QUIT.
8973
8974 2004-11-29 Kenichi Handa <handa@m17n.org>
8975
8976 * buffer.c (init_buffer): Set current_buffer->directory to a
8977 multibyte string made by string_to_multibyte.
8978
8979 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
8980
8981 2004-11-27 Andreas Schwab <schwab@suse.de>
8982
8983 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
8984
8985 * s/gnu-linux.h: Enable no-op gcpros on ia64.
8986 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
8987
8988 * filelock.c (lock_file_1): Call get_boot_time early.
8989 Increase buffer size.
8990
8991 2004-11-27 Eli Zaretskii <eliz@gnu.org>
8992
8993 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
8994 is not defined.
8995
8996 2004-11-27 Kim F. Storm <storm@cua.dk>
8997
8998 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
8999 marker out of doc string.
9000
9001 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
9004 which was not mentioned in the log.
9005
9006 2004-11-26 Kim F. Storm <storm@cua.dk>
9007
9008 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
9009 angle bitmaps at top/bottom line.
9010
9011 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
9012 set it when it->method is set to next_element_from_display_vector.
9013 (setup_for_ellipsis): Add LEN argument. Callers changed.
9014 Set it->saved_face_id.
9015 (get_next_display_element): Use loop instead of recursion.
9016 Set it->saved_face_id. Combine duplicate code for ctr chars.
9017 (next_element_from_display_vector): Do not set it->saved_face_id.
9018 (next_element_from_ellipsis): Use setup_for_ellipsis.
9019
9020 2004-11-26 Eli Zaretskii <eliz@gnu.org>
9021
9022 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
9023 prevent compiler warnings.
9024
9025 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
9026
9027 * keyboard.c (command_loop_1): Print a message describing the key
9028 the user just pressed when this key has no binding.
9029
9030 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
9031 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
9032
9033 * lread.c (readchar): Check QUIT when `getc' is interrupted.
9034
9035 2004-11-24 Richard M. Stallman <rms@gnu.org>
9036
9037 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
9038
9039 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
9040
9041 2004-11-24 Kim F. Storm <storm@cua.dk>
9042
9043 * xdisp.c (move_it_in_display_line_to, display_line):
9044 Restore saved_face_id also when truncate-lines or hscrolled.
9045
9046 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9047
9048 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
9049 x-use-old-gtk-file-dialog.
9050
9051 * xfns.c: Define x_use_old_gtk_file_dialog.
9052 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
9053 outside ifdef USE_GTK.
9054
9055 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
9056
9057 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
9058 Don't use XFASTINT blindly.
9059
9060 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
9061
9062 * indent.c (skip_invisible): Avoid non-idempotent side-effects
9063 in macro arguments.
9064
9065 * keymap.c (Flookup_key): Check INTEGERP before XINT.
9066
9067 * lread.c (oblookup): Don't use XFASTINT blindly.
9068
9069 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
9070 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
9071
9072 2004-11-23 Kim F. Storm <storm@cua.dk>
9073
9074 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
9075 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
9076
9077 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
9078 signal_p is zero and face name is unknown.
9079 (Fx_list_fonts): Don't signal error in lookup_named_face.
9080 (Fface_font): Signal error in lookup_named_face.
9081 (ascii_face_of_lisp_face): Likewise.
9082
9083 * dispextern.h (lookup_named_face): Fix prototype.
9084
9085 * xdisp.c (handle_single_display_prop): Don't signal error in
9086 lookup_named_face for unknown fringe face name.
9087 (highlight_trailing_whitespace): Don't signal error in
9088 lookup_named_face if trailing-whitespace face unknown.
9089 (calc_line_height_property): Don't signal error in
9090 lookup_named_face if specified face name is unknown.
9091
9092 * fringe.c (update_window_fringes): Show top row indicator if
9093 window has header-line. Don't show arrow at bob and eob
9094 if the boundary indicators are not used.
9095 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
9096
9097 * window.c (set_window_buffer): Clear display_error_modiff.
9098
9099 2004-11-22 Kim F. Storm <storm@cua.dk>
9100
9101 * fringe.c (update_window_fringes): Provide sensible fall-back
9102 value for non-nil indicate-buffer-boundaries setting.
9103
9104 2004-11-22 Markus Rost <rost@ias.edu>
9105
9106 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
9107
9108 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9109
9110 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
9111
9112 2004-11-21 Kim F. Storm <storm@cua.dk>
9113
9114 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
9115
9116 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
9117 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9118
9119 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
9120 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9121
9122 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
9123 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9124
9125 * xdisp.c (move_it_in_display_line_to, display_line):
9126 Restore saved_face_id if overflow-newline-into-fringe is enabled and
9127 line is continued before or in middle of element from display vector.
9128
9129 * indent.c (Fvertical_motion): Fix last change. Use another
9130 method to detect if iterator moved too far ahead after reseat.
9131
9132 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
9133 expand matrix width for overflow in zero-width area.
9134 (append_glyph, append_composite_glyph, produce_image_glyph)
9135 (append_stretch_glyph): Use it to avoid loop in redisplay.
9136 (note_mode_line_or_margin_highlight): Don't let help-echo from
9137 string override help-echo from image map.
9138
9139 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
9140
9141 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
9142 * callint.c (Fcall_interactively): Ditto.
9143
9144 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9145
9146 * minibuf.c (Fminibuffer_complete_and_exit):
9147 Fixup the case of the completed value, for case-indep completion.
9148
9149 2004-11-20 Richard M. Stallman <rms@gnu.org>
9150
9151 * lisp.h (Fread_from_minibuffer): Add arg in decl.
9152
9153 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
9154 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9155
9156 * search.c (Vsearch_spaces_regexp):
9157 Rename from Vsearch_whitespace_regexp. All uses changed.
9158
9159 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
9160
9161 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
9162
9163 2004-11-19 Richard M. Stallman <rms@gnu.org>
9164
9165 * search.c (Vsearch_whitespace_regexp): New variable.
9166 (syms_of_search): Defvar it.
9167 (compile_pattern_1): Call re_set_whitespace_regexp with it.
9168 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
9169 is non-nil.
9170 (struct regexp_cache): New element whitespace_regexp.
9171 (syms_of_search): Initialize whitespace_regexp elements.
9172 (compile_pattern): Compare whitespace_regexp elements.
9173 (compile_pattern_1): Set whitespace_regexp elements.
9174
9175 * regex.c (regex_compile): Substitute whitespace_regexp
9176 for spaces, if it is nonzero.
9177 (whitespace_regexp): New variable.
9178 (re_set_whitespace_regexp): New function.
9179
9180 2004-11-19 Kim F. Storm <storm@cua.dk>
9181
9182 * indent.c (Fvertical_motion): Fix last change.
9183
9184 2004-11-18 Kim F. Storm <storm@cua.dk>
9185
9186 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
9187 Instead, move back again if reseating moves too far ahead.
9188
9189 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
9190
9191 * xdisp.c (message3): Call clear_message.
9192
9193 2004-11-17 Kim F. Storm <storm@cua.dk>
9194
9195 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
9196
9197 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9198
9199 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
9200
9201 * xmenu.c (x_menu_in_use): Remove.
9202 (x_menu_set_in_use): Also set popup_activated_flag.
9203
9204 * xfns.c (Fx_file_dialog): Call popup_activated instead of
9205 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
9206
9207 * xterm.h (x_menu_in_use): Remove.
9208
9209 2004-11-16 Richard M. Stallman <rms@gnu.org>
9210
9211 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
9212 Use map-keymap-internal to implement that.
9213
9214 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
9215
9216 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9217
9218 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
9219 a window before using XWINDOW.
9220
9221 * window.c (make_window, Fselect_window, make_dummy_parent)
9222 (save_window_save):
9223 * frame.c (make_frame):
9224 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
9225
9226 * lisp.h (NILP): Use EQ rather than XFASTINT.
9227
9228 2004-11-16 Kim F. Storm <storm@cua.dk>
9229
9230 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
9231
9232 * indent.c (Fvertical_motion): Fix last change. Only reseat when
9233 moving backwards.
9234
9235 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
9236
9237 * dispextern.h: Extern reseat_at_previous_visible_line_start.
9238
9239 2004-11-16 Kenichi Handa <handa@m17n.org>
9240
9241 * xdisp.c (display_mode_element): Fix previous change (calculate
9242 end position of substring to display correctly).
9243
9244 2004-11-16 Kim F. Storm <storm@cua.dk>
9245
9246 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
9247 Reported by Andrew M. Scott.
9248
9249 2004-11-15 Kim F. Storm <storm@cua.dk>
9250
9251 * fns.c (Fsafe_plist_get): New defun.
9252 (syms_of_fns): Defsubr it.
9253
9254 * lisp.h (Fsafe_plist_get): Add EXFUN.
9255
9256 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
9257 Use Fsafe_plist_get.
9258 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9259 Fix image map element parsing. Use Fsafe_plist_get.
9260
9261 2004-11-15 Richard M. Stallman <rms@gnu.org>
9262
9263 * xdisp.c (get_next_display_element): Fix previous change.
9264
9265 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9266
9267 * window.c (shrink_windows): Handle special case of one window left
9268 when trying to shrink the final reminder. Grow windows if
9269 total_removed is less than total_shrink.
9270
9271 * xmenu.c (pop_down_menu): Remove global variable current_menu,
9272 extract pointer from arg with XSAVE_VALUE.
9273 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
9274 Construct arg to record_unwind_protect with make_save_value.
9275
9276 2004-11-13 Richard M. Stallman <rms@gnu.org>
9277
9278 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
9279 (get_next_display_element): Fix previous change to apply only to \n.
9280
9281 * indent.c (Fvertical_motion): Scan to PT from start of line to
9282 make iterator consistent.
9283
9284 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9285
9286 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9287
9288 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
9289
9290 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
9291 Record unwind with clean_up_file_dialog.
9292
9293 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
9294 Declare.
9295
9296 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
9297
9298 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9299
9300 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
9301 (xg_file_sel_destroy): Remove.
9302 (xg_file_response_cb, pop_down_file_dialog)
9303 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
9304 New functions.
9305 (xg_get_file_with_chooser, xg_get_file_with_selection):
9306 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
9307 Move common code to xg_get_file_name. Return widget created.
9308 (xg_get_file_name): Set name, transient for, modal and destroy
9309 with parent here. Connect response signal to xg_file_response_cb,
9310 connect delete-event to gtk_true. Record pop_down_file_dialog
9311 for unwind. Do event loop and call x_menu_wait_for_event in loop.
9312 (xg_create_widget): Make dialogs modal.
9313
9314 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
9315 Lisp_Object.
9316 (popup_get_selection): Move unwind protect ...
9317 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9318 Move destroy of widget to pop_down_menu.
9319 (popup_widget_loop): Move unwind protect ...
9320 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9321 Move destroy of widget to pop_down_menu.
9322 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
9323 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
9324 x_mouse_leave and grabbed = 0 to pop_down_menu.
9325
9326 2004-11-13 Kim F. Storm <storm@cua.dk>
9327
9328 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
9329 (syms_of_xdisp): DEFVAR_BOOL it.
9330 (make_cursor_line_fully_visible, try_cursor_movement)
9331 (try_window_id): Use it.
9332
9333 2004-11-12 Kim F. Storm <storm@cua.dk>
9334
9335 * dispextern.h (struct glyph_row): New member extra_line_spacing.
9336 (struct it): New member max_extra_line_spacing.
9337 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
9338 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
9339 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
9340 part of last line is only extra line spacing (so the text on the
9341 line is fully visible). Use helper macros.
9342 Add W arg (to use them). All callers changed.
9343 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
9344 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
9345
9346 * window.c (window_scroll_pixel_based, Frecenter):
9347 Use move_it_vertically_backward directly.
9348 (Frecenter): Fix calculation of new start pos for negative arg.
9349 Before, the new start pos was sometimes chosen too far back, so
9350 the last line became only partially visible, and thus would be
9351 either only semi-visible or automatically scrolled to the middle
9352 of the window by redisplay.
9353
9354 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
9355 (move_it_vertically_backward): Don't recure to move further back.
9356 (move_it_vertically): Remove superfluous condition.
9357 (move_it_by_lines): Clear last_height when moved 0 lines.
9358 (resize_mini_window): Use it.max_extra_line_spacing.
9359 (display_tool_bar_line): Clear row->extra_line_spacing.
9360 (try_scrolling): Use move_it_vertically_backward directly.
9361 (redisplay_window): Likewise.
9362 (compute_line_metrics): Set row->extra_line_spacing.
9363 (display_line, display_string): Likewise.
9364 (x_produce_glyphs): Update it->max_extra_line_spacing.
9365
9366 * xmenu.c (pop_down_menu): Return nil.
9367
9368 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9369
9370 * xmenu.c (x_menu_wait_for_event): New function.
9371 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
9372 to handle timers.
9373 (popup_widget_loop): Add argument do_timers.
9374 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
9375 do_timers to popup_widget_loop.
9376 (xmenu_show): Call XMenuActivateSetWaitFunction so that
9377 x_menu_wait_for_event is called by XMenuActivate.
9378 (create_and_show_popup_menu): Pass 1 for do_timers to
9379 popup_get_selection.
9380 (pop_down_menu): New function.
9381 (popup_get_selection, popup_widget_loop): Unwind protect to
9382 pop_down_menu.
9383 (popup_widget_loop): Add argument widget.
9384 (create_and_show_popup_menu, create_and_show_dialog): Pass new
9385 argument widget to popup_widget_loop.
9386
9387 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9388
9389 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
9390
9391 2004-11-09 Kim F. Storm <storm@cua.dk>
9392
9393 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
9394 Fix various comments referring to XEvents instead of input events.
9395 (x_queue_event): Fix format strings.
9396 (x_stop_queuing_selection_requests): Likewise.
9397
9398 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
9399 (pint2hrstr): Add extra braces to silence compiler.
9400
9401 * print.c (print_object): Fix format string.
9402
9403 * lread.c (read1): Fix next_char matching.
9404
9405 * lisp.h (Fdelete): Add EXFUN.
9406 (replace_range_2): Add prototype.
9407
9408 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
9409
9410 * intervals.h (NULL_INTERVAL_P): Add separate version when
9411 ENABLE_CHECKING is not defined to silence compiler.
9412 (compare_string_intervals): Add prototype.
9413
9414 * fringe.c (destroy_fringe_bitmap): Fix return type.
9415 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
9416
9417 * emacs.c (Fdump_emacs): Fix format string.
9418
9419 * doc.c: Include <ctype.h>.
9420 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
9421
9422 * data.c (store_symval_forwarding): Remove unused variables.
9423
9424 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
9425
9426 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9427
9428 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
9429 to ${OLDXMENU}.
9430
9431 2004-11-09 Kim F. Storm <storm@cua.dk>
9432
9433 * process.c (Fmake_network_process): Remove kludge for interrupted
9434 connects on BSD. If connect is interrupted, just close socket and
9435 start over rather than sleeping and retry with same socket.
9436
9437 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9438
9439 * .cvsignore: Add buildobj.lst.
9440
9441 * doc.c: New variable Vbuild_files.
9442 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
9443 file names from buildobj.lst. Only attach docstrings from files
9444 that are in Vbuild_files.
9445 (syms_of_doc): Defvar Vbuild_files.
9446
9447 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
9448 and w32*.o.
9449 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
9450 (mostlyclean): Rm buildobj.lst
9451
9452 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
9453 is linked.
9454
9455 2004-11-09 Kim F. Storm <storm@cua.dk>
9456
9457 * fringe.c (update_window_fringes): Update fringe bitmaps if
9458 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
9459 also update previous row to get rid of misc. artifacts.
9460
9461 2004-11-08 Kim F. Storm <storm@cua.dk>
9462
9463 * xdisp.c (fast_find_position): Fix start pos if header line present.
9464 (note_mouse_highlight): Clear mouse face if we move out of text area.
9465
9466 2004-11-08 Eli Zaretskii <eliz@gnu.org>
9467
9468 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
9469 Don't include <sys/time.h> explicitly.
9470 Include <stdio.h> unconditionally, not just on MacOS.
9471
9472 2004-11-08 Kenichi Handa <handa@m17n.org>
9473
9474 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
9475 don't pay attention to '\' before '*'.
9476 (fontset_pattern_regexp): Change the meaning of the second arg.
9477 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
9478 (check_fontset_name): Try NAME as literal at first, and if it
9479 failes, try NAME as pattern.
9480
9481 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9482
9483 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
9484
9485 2004-11-07 Andreas Schwab <schwab@suse.de>
9486
9487 * lisp.h (Fmsdos_downcase_filename): Declare.
9488 * dired.c (Fmsdos_downcase_filename): Don't declare here.
9489 * fileio.c: Likewise.
9490
9491 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9492
9493 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
9494 comparisons with integers instead of Lisp_Object address.
9495 (Fmsdos_set_keyboard): Declare argument allkeys.
9496
9497 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
9498
9499 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
9500 int/Lisp_Object mixup.
9501
9502 * fileio.c: Ditto.
9503
9504 2004-11-06 Steven Tamm <steventamm@mac.com>
9505
9506 * editfns.c: Need to include sys/time.h before resource.h on darwin.
9507
9508 2004-11-06 Richard M. Stallman <rms@gnu.org>
9509
9510 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
9511
9512 * xfaces.c (merge_named_face): GCPRO the face_name in the
9513 named_merge_point struct that we make.
9514 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
9515
9516 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
9517 before deciding whether to inactivate mark.
9518
9519 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
9520
9521 * config.in: Regenerate (add HAVE_GETRUSAGE).
9522 * editfns.c (Fget_internal_run_time): New function.
9523 (syms_of_data): Defsubr it.
9524 * fns.c (sxhash): As far as possible, merge calculation of
9525 hash code for symbols and strings.
9526
9527 2004-11-06 Eli Zaretskii <eliz@gnu.org>
9528
9529 * frame.c (syms_of_frame): Fix the example in the doc string.
9530
9531 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9532
9533 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
9534
9535 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
9536 (create_and_show_dialog): Revert change from 2004-10-31.
9537
9538 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
9539
9540 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
9541
9542 2004-11-05 Kim F. Storm <storm@cua.dk>
9543
9544 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
9545
9546 * fileio.c (Ffile_modes): Doc fix.
9547 (auto_save_1): Check for Ffile_modes nil value.
9548
9549 2004-11-05 Kim F. Storm <storm@cua.dk>
9550
9551 * xselect.c (struct selection_event_queue, selection_queue)
9552 (x_queue_selection_requests, x_queue_event)
9553 (x_start_queuing_selection_requests)
9554 (x_stop_queuing_selection_requests): Add new queue for selection
9555 input events to replace previous XEvent queue in xterm.c.
9556 (queue_selection_requests_unwind): Adapt to new queue.
9557 (x_reply_selection_request): Adapt to new queue.
9558 Unexpect wait_object in case of x errors (memory leak).
9559 (x_handle_selection_request, x_handle_selection_clear): Make static.
9560 (x_handle_selection_event): New function. May queue selection events.
9561 (wait_for_property_change_unwind): Use save_value instead of cons.
9562 Clear property_change_reply_object.
9563 (wait_for_property_change): Abort if already waiting.
9564 Use save_value instead of cons for unwind data.
9565 (x_handle_property_notify): Skip events already arrived, but don't
9566 free them, as "arrived" field is checked by wait_for_property_change,
9567 and it will be freed by unwind or explicit unexpect_property_change.
9568 (x_get_foreign_selection): Add to new queue.
9569 (receive_incremental_selection): Don't unexpect wait_object when done
9570 as it has already been freed by previous wait_for_property_change.
9571
9572 * xterm.h (x_start_queuing_selection_requests)
9573 (x_stop_queuing_selection_requests, x_handle_selection_request)
9574 (x_handle_selection_clear): Remove prototypes.
9575 (x_handle_selection_event): Add prototype.
9576
9577 * xterm.c (handle_one_xevent): Don't queue X selection events
9578 here, it may be too late if we start queuing after we have already
9579 stored some selection events into the kbd buffer.
9580 (struct selection_event_queue, queue, x_queue_selection_requests)
9581 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
9582 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
9583 (x_catch_errors_unwind): Block input around final XSync.
9584
9585 * keyboard.h (kbd_buffer_unget_event): Add prototype.
9586
9587 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
9588 (kbd_buffer_unget_event): New function.
9589 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
9590 and use x_handle_selection_event.
9591 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
9592
9593 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9594
9595 * xselect.c (TRACE3): New debug macro.
9596 (x_reply_selection_request): Use it.
9597 (receive_incremental_selection): In call to TRACE0, the name of
9598 a symbol is in xname.
9599
9600 2004-11-05 Kim F. Storm <storm@cua.dk>
9601
9602 * fontset.c (fontset_pattern_regexp): Use unsigned char.
9603
9604 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9605
9606 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
9607
9608 * gtkutil.h (use_old_gtk_file_dialog): Declare.
9609
9610 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
9611 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
9612 * xfns.c (syms_of_xfns): ... to here.
9613
9614 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
9615 it doesn't start with /.
9616
9617 2004-11-04 Kenichi Handa <handa@m17n.org>
9618
9619 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
9620 treat it as a literal character.
9621
9622 2004-11-03 Kim F. Storm <storm@cua.dk>
9623
9624 * .gdbinit (ppt): New function.
9625
9626 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9627
9628 * xterm.c (x_window_to_scroll_bar): Only call
9629 xg_get_scroll_id_for_window if toolkit scroll bars are used.
9630
9631 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
9632 of save.
9633
9634 2004-11-02 Andreas Schwab <schwab@suse.de>
9635
9636 * window.c (Fscroll_right): Fix last change.
9637
9638 2004-11-02 Kim F. Storm <storm@cua.dk>
9639
9640 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
9641
9642 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9643
9644 * callproc.c (Fcall_process): Block input around vfork.
9645
9646 2004-11-02 Kim F. Storm <storm@cua.dk>
9647
9648 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
9649 (syms_of_eval): Defsubr it.
9650
9651 2004-11-02 Richard M. Stallman <rms@gnu.org>
9652
9653 * insdel.c (replace_range_2): New function.
9654
9655 * casefiddle.c (casify_region): Handle changes in byte-length
9656 using replace_range_2.
9657
9658 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
9659
9660 * xdisp.c (back_to_previous_visible_line_start):
9661 Subtract 1 from pos when checking previous newline for invisibility.
9662
9663 * window.c (window_scroll_pixel_based): Update preserve_y
9664 for header line if any.
9665 (Fscroll_left, Fscroll_right): Don't call interactive_p;
9666 use a new second argument instead.
9667
9668 * eval.c (Fcall_interactive_p): New function.
9669 (interactive_p): Don't test INTERACTIVE here.
9670 (Finteractive_p): Doc fix.
9671
9672 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
9673
9674 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9675
9676 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
9677 comparing font names.
9678
9679 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9680
9681 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
9682 Fx_file_dialog if only directories should be read.
9683
9684 * lisp.h: Fx_file_dialog takes 5 parameters.
9685
9686 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
9687 Add parameter only_dir_p.
9688 In Motif version, don't put DEFAULT_FILENAME in filter part of the
9689 dialog, just text field part. Do not add DEFAULT_FILENAME
9690 to list of files if it isn't there.
9691 In GTK version, pass only_dir_p parameter to xg_get_file_name.
9692
9693 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
9694 Check only_dir_p instead of comparing prompt to "Dired". When using
9695 a save dialog, add option kNavDontConfirmReplacement, change title
9696 to "Enter name", change text for save button to "Ok".
9697
9698 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
9699 Check only_dir_p instead of comparing prompt to "Dired".
9700
9701 * gtkutil.c (xg_get_file_with_chooser)
9702 (xg_get_file_with_selection): New functions, only defined ifdef
9703 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
9704 respectively.
9705 (xg_get_file_name): Add parameter only_dir_p.
9706 Call xg_get_file_with_chooser or xg_get_file_with_selection
9707 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
9708 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
9709
9710 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
9711
9712 * config.in: Rebuild (added HAVE_GTK_FILE_*).
9713
9714 2004-11-01 Kim F. Storm <storm@cua.dk>
9715
9716 * process.c (connect_wait_mask, num_pending_connects):
9717 Only declare and use them if NON_BLOCKING_CONNECT is defined.
9718 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
9719 (IF_NON_BLOCKING_CONNECT): New helper macro.
9720 (wait_reading_process_output): Only declare and use local vars
9721 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
9722
9723 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
9724
9725 * w32term.c (x_scroll_run): Delete region objects after use.
9726
9727 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9728
9729 * xmenu.c: Add prototypes for forward function declarations.
9730 (popup_get_selection): Remove parameter do_timers, remove call to
9731 timer_check.
9732 (create_and_show_popup_menu, create_and_show_dialog):
9733 Remove parameter do_timers from call to popup_get_selection.
9734
9735 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
9736 tool_bar_items and assign the result to f->tool_bar_items if
9737 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
9738 tool_bar_items to assignment of result.
9739
9740 * atimer.c (alarm_signal_handler): Do not call set_alarm if
9741 pending_atmers is non-zero.
9742
9743 2004-10-31 Kim F. Storm <storm@cua.dk>
9744
9745 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
9746
9747 2004-10-28 Will <will@glozer.net>
9748
9749 * macterm.c: Allow user to assign key modifiers to the Mac Option
9750 key via a 'mac-option-modifier' variable.
9751
9752 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9753
9754 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
9755 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
9756 (x_handle_selection_request, x_handle_selection_clear)
9757 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
9758
9759 2004-10-28 Richard M. Stallman <rms@gnu.org>
9760
9761 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9762
9763 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9764
9765 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
9768 comment-starter over a 1-char one.
9769
9770 2004-10-27 Richard M. Stallman <rms@gnu.org>
9771
9772 * xdisp.c (get_next_display_element): In mode lines,
9773 treat newline and tab like other control characters.
9774
9775 * editfns.c (Fmessage): Doc fix.
9776
9777 * indent.c (vmotion): When moving up, check the newline before.
9778 Make prevline an int, not a Lisp_Object.
9779
9780 2004-10-27 Kim F. Storm <storm@cua.dk>
9781
9782 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
9783 Only allocate info and discarded tables once.
9784
9785 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
9786 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
9787 (SAFE_FREE): Test it to determine if we need to unwind to free.
9788 Remove size arg. All users changed.
9789 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
9790
9791 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9792
9793 * gtkutil.c: Put empty line between comment and function body.
9794 (xg_destroy_widgets): Rename from remove_from_container.
9795 Just destroy all widgets in list. Argument wcont removed.
9796 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
9797 instead of remove_from_container.
9798 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
9799 (free_frame_tool_bar): Add comment.
9800
9801 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
9802 is not NULL before strcmp.
9803
9804 2004-10-26 Kim F. Storm <storm@cua.dk>
9805
9806 * callint.c (Fcall_interactively): Add 'U' code to get the
9807 up-event discarded by a previous 'k' or 'K' argument.
9808
9809 2004-10-26 David Kastrup <dak@gnu.org>
9810
9811 * buffer.c (syms_of_buffer): Fix a few typos.
9812
9813 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9814
9815 * xsmfns.c: Put empty line between comment and function body.
9816 Use two spaces before comment end.
9817
9818 2004-10-25 Kenichi Handa <handa@m17n.org>
9819
9820 * fontset.c (fontset_pattern_regexp): Optimize for the case that
9821 PATTERN is full XLFD.
9822
9823 2004-10-24 Kenichi Handa <handa@m17n.org>
9824
9825 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
9826
9827 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
9828 (regex_compile): Return REG_ERANGEX if appropriate.
9829
9830 2004-10-22 Kenichi Handa <handa@m17n.org>
9831
9832 * editfns.c (Ftranslate_region_internal): New function.
9833 (syms_of_editfns): Defsubr it.
9834
9835 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9836
9837 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
9838
9839 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
9840
9841 * xterm.h (x_output): New member `xic_base_fontname'.
9842 (FRAME_XIC_BASE_FONTNAME): New macro.
9843 (xic_free_xfontset): Declare.
9844
9845 * xfns.c (xic_create_xfontset): Share fontsets between frames
9846 based on base_fontname.
9847 (xic_free_xfontset): New function.
9848 (free_frame_xic): Use it.
9849 (xic_set_xfontset): Ditto.
9850
9851 * xterm.c (xim_destroy_callback): Ditto.
9852
9853
9854 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
9855
9856 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
9857
9858 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9859
9860 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
9861 XSync.
9862
9863 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
9864 New variables and constant.
9865 (main): Calculate heap_bss_diff. If we are dumping and the
9866 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
9867 and exec ourself again.
9868 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
9869 print a warning.
9870
9871 * lastfile.c: Make my_endbss and my_endbss_static available on all
9872 platforms.
9873
9874 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
9875 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
9876
9877 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
9878
9879 * data.c (Flocal_variable_if_set_p): Doc fix.
9880
9881 2004-10-19 Jason Rumney <jasonr@gnu.org>
9882
9883 * w32.c (init_environment): Set emacs_dir correctly when running
9884 emacs from the build directory.
9885
9886 2004-10-19 Richard M. Stallman <rms@gnu.org>
9887
9888 * editfns.c (Fdelete_and_extract_region):
9889 If region is empty, return null string.
9890
9891 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9892
9893 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
9894 and canon_width.
9895 (xg_frame_cleared): Remove.
9896
9897 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
9898 (xg_find_top_left_in_fixed): Remove.
9899 (xg_create_scroll_bar): Put an event box widget between
9900 the scroll bar widget and the edit widget.
9901 (xg_show_scroll_bar): Show the parent widget (the event box).
9902 (xg_remove_scroll_bar): Destroy parent (the event box) also.
9903 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
9904 Move the parent (the event box) widget inside the fixed widget.
9905 Move window clear to xterm.c.
9906
9907 * gtkutil.h (xg_frame_cleared): Remove.
9908
9909 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
9910 (x_scroll_bar_create, XTset_vertical_scroll_bar):
9911 Remove arguments left and width to xg_update_scrollbar_pos.
9912 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
9913
9914 2004-10-19 Kenichi Handa <handa@m17n.org>
9915
9916 * xdisp.c (display_mode_element): Fix display of wide chars.
9917
9918 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9919
9920 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
9921 gdk_window_clear and move gdk_window_process_all_updates after
9922 clear so events are sent to the X server in correct order.
9923
9924 2004-10-18 Kenichi Handa <handa@m17n.org>
9925
9926 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
9927 comparing font names.
9928 (fs_query_fontset): Use fast_string_match for comparing fontset names.
9929 (list_fontsets): Likewise.
9930
9931 * search.c (fast_string_match_ignore_case): New function.
9932
9933 * lisp.h (fast_string_match_ignore_case): Extern it.
9934
9935 2004-10-17 Kim F. Storm <storm@cua.dk>
9936
9937 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
9938 than bitmap if there is not left fringe.
9939 (get_overlay_arrow_glyph_row): Also used on windows system.
9940 (display_line): Display overlay string if no left fringe.
9941
9942 2004-10-16 Jason Rumney <jasonr@gnu.org>
9943
9944 * w32fns.c (w32_font_match): Encode font name being matched.
9945
9946 2004-10-16 Richard M. Stallman <rms@gnu.org>
9947
9948 * window.c (Fspecial_display_p): Doc fix.
9949
9950 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
9953 Don't ignore menus, because where-is-internal already does it for us.
9954
9955 2004-10-15 Kim F. Storm <storm@cua.dk>
9956
9957 * xdisp.c (redisplay_window): Only update fringes and vertical
9958 border on window frames.
9959
9960 2004-10-14 Andreas Schwab <schwab@suse.de>
9961
9962 * m/ia64.h (DATA_SEG_BITS): Don't define.
9963
9964 2004-10-14 Kim F. Storm <storm@cua.dk>
9965
9966 * xterm.h: Include Xutil.h after keysym.h to work around bug
9967 in some X versions.
9968
9969 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9970
9971 * fns.c (map_char_table): Add missing gcpros.
9972
9973 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9974
9975 * keymap.c (get_keymap): An autoload form is not a keymap.
9976
9977 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
9978
9979 2004-10-13 Kim F. Storm <storm@cua.dk>
9980
9981 * callproc.c (Fcall_process): Simplify handling of display arg.
9982 Resume `display_on_the_fly' once a coding system is determined.
9983
9984 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
9985
9986 2004-10-12 Kim F. Storm <storm@cua.dk>
9987
9988 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
9989 caller, such as call-process, is not going to poll for input.
9990 (calc_line_height_property): Handle case where it->object is nil.
9991
9992 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
9993
9994 2004-10-12 Kenichi Handa <handa@m17n.org>
9995
9996 * xdisp.c (get_next_display_element):
9997 If unibyte_display_via_language_environment is zero, display 8-bit
9998 chars in octal in unibyte buffer.
9999
10000 2004-10-12 Kim F. Storm <storm@cua.dk>
10001
10002 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
10003 are no ordinary bindings.
10004
10005 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10006
10007 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
10008
10009 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10010
10011 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
10012 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
10013 (make_mac_frame): Add BLOCK_INPUT around the making of a
10014 terminal frame.
10015 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
10016 * macgui.h (mktime): Use emacs_mktime.
10017 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
10018 Make a cancel file-open dialog be like C-g.
10019 * mac.c (mktime): Use emacs_mktime.
10020 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
10021 (Fmac_paste_function): Add better error handling for carbon cut/paste.
10022
10023 2004-10-10 Kim F. Storm <storm@cua.dk>
10024
10025 * keyboard.c (timer_resume_idle): New function to resume idle
10026 timer without resetting timers on the idle list.
10027 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
10028 (timer_start_idle, timer_stop_idle): Declare static.
10029 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
10030
10031 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
10032
10033 2004-10-08 Steven Tamm <steventamm@mac.com>
10034
10035 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
10036 * macterm.c (mac_check_for_quit_char): Remove warning for using
10037 NULL where 0 should be used.
10038 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
10039 objc/malloc.h
10040 * mac.c: Include time.h for Tiger compatibility.
10041
10042 2004-10-07 Kim F. Storm <storm@cua.dk>
10043
10044 * xdisp.c (redisplay_window): Fix flicker on vertical line between
10045 windows. Update vertical line after drawing window fringes, but
10046 only if actually drawing any bitmaps--or there is no fringe.
10047
10048 * xterm.c (x_update_window_end): Likewise.
10049 * macterm.c (x_update_window_end): Likewise.
10050 * w32term.c (x_update_window_end): Likewise.
10051
10052 * fringe.c (draw_window_fringes): Return value now indicates if
10053 any fringe bitmaps were redrawn (or there are no fringes).
10054
10055 * dispextern.h (draw_window_fringes): Update prototype.
10056
10057 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10058
10059 * macfns.c (mac_get_window_bounds): Add extern.
10060 (x_real_positions): Use mac_get_window_bounds.
10061
10062 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
10063 xmenu.c (YAILOM).
10064
10065 * macterm.c [!MAC_OSX]: Include Windows.h.
10066 (front_emacs_window): Rename from mac_front_window. All uses
10067 changed. Return the frontmost non-tooltip emacs window.
10068 (mac_get_window_bounds): New function.
10069 (x_calc_absolute_position): Use the difference of width and height
10070 between the inner and outer window.
10071 (x_set_offset): Specify window position by the coordinae of the
10072 outer window. Adjust the position if the title bar is completely
10073 outside the screen.
10074 (app_is_suspended, app_sleep_time): Remove unused variables.
10075 (do_app_resume, do_app_suspend): Remove their contents because
10076 window-activate/deactivate events will do the job.
10077 (do_zoom_window): Remove unused variables. Make compliant to the
10078 standard way of zooming. Set f->left_pos and f->top_pos.
10079 (XTread_socket): Don't use argument `expected'. Don't use
10080 FrontWindow to determine the clicked window. Exclude unprocessed
10081 mouseUp cases in the early stage. Add parentheses to fix operator
10082 precedence.
10083 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
10084
10085 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
10086
10087 * config.in: Regenerate.
10088
10089 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
10090 HAVE_EXECSHIELD.
10091
10092 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10093
10094 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
10095 a row if Alt or Meta has been found for that row. Also stop scanning
10096 for Keysyms for that row.
10097
10098 2004-10-04 Kim F. Storm <storm@cua.dk>
10099
10100 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
10101 to list. Include overlay arrow bitmap in return value.
10102
10103 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
10104 bars with fractional column width. If scroll bar separates two
10105 windows, move it towards the window it belongs to. Only update
10106 the padding area below the scroll bar widget when necessary,
10107 i.e. when scroll bar widget is created, moved, or resized.
10108
10109 * xdisp.c (define_frame_cursor1): Do not change frame cursor
10110 while tracking/dragging mouse.
10111 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
10112
10113 * window.c (coordinates_in_window): Relax check for cursor
10114 on vertial border between mode lines.
10115 (Fset_window_fringes): Do not allow negative widths.
10116 (Fset_window_scroll_bars): Likewise.
10117
10118 * .gdbinit (pp): Shorthand for p ARG + pr.
10119 (ff): New command: flush frame updates (X only).
10120
10121 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
10122
10123 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
10124
10125 2004-09-30 Kenichi Handa <handa@m17n.org>
10126
10127 * process.c (send_process): Free composition data.
10128
10129 * fileio.c (Finsert_file_contents): Free composition data.
10130
10131 * coding.c (code_convert_region): Don't skip ASCIIs if there are
10132 compositions to encode.
10133 (encode_coding_string): Likewise. Free composition data.
10134
10135 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
10136
10137 * coding.c (code_convert_region): Free composition data.
10138
10139 2004-09-29 Kim F. Storm <storm@cua.dk>
10140
10141 * fringe.c: Remove limit on number of bitmaps.
10142 (fringe_bitmaps, fringe_faces): Change to pointers.
10143 (max_fringe_bitmaps): New var.
10144 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
10145 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
10146
10147 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
10148 (struct glyph_row): Reorder fringe_bitmap related fields.
10149 (struct it): Likewise.
10150
10151 * w32term.c (fringe_bmp): Change to pointer.
10152 (max_fringe_bmp): New var.
10153 (w32_define_fringe_bitmap): Expand fringe_bmp.
10154 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
10155 (w32_destroy_fringe_bitmap): Likewise.
10156
10157 2004-09-29 Kim F. Storm <storm@cua.dk>
10158
10159 * fringe.c: Simplify last change.
10160 (lookup_fringe_bitmap): New function.
10161 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
10162 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
10163 Keep standard bitmaps in Vfringe_bitmaps.
10164 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
10165 (Fset_fringe_bitmap_face): Likewise.
10166
10167 * dispextern.h (lookup_fringe_bitmap): Add prototype.
10168 (valid_fringe_bitmap_p): Remove prototype.
10169
10170 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
10171
10172 2004-09-29 Kim F. Storm <storm@cua.dk>
10173
10174 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
10175 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
10176
10177 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
10178
10179 * fringe.c (Vfringe_bitmaps): New variable.
10180 (syms_of_fringe): DEFVAR_LISP it.
10181 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
10182 Change arg to Lisp_Object and fail if not an integer.
10183 (get_fringe_bitmap_name, resolve_fringe_bitmap)
10184 (destroy_fringe_bitmap): New functions.
10185 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
10186 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
10187 clear its fringe property.
10188 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
10189 Fdestroy_fringe_bitmap.
10190 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
10191 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
10192 and set fringe property. Signal error if no free slots.
10193 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
10194 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
10195
10196 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
10197 symbols with a fringe property.
10198
10199 2004-09-27 Kim F. Storm <storm@cua.dk>
10200
10201 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
10202 Doc fix. Format may now be a symbol or alist, not a cons.
10203
10204 * fringe.c (update_window_fringes): Handle new formats of
10205 indicate-buffer-boundaries (symbol or alist). No longer
10206 allow a simple cons.
10207 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
10208
10209 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10210
10211 * config.in: Rebuild.
10212
10213 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10214
10215 * config.in: Rebuild.
10216
10217 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
10218
10219 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
10220
10221 * xterm.c (x_term_init): Work around a bug in some X servers.
10222
10223 2004-09-18 Richard M. Stallman <rms@gnu.org>
10224
10225 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
10226
10227 * xdisp.c (try_window_reusing_current_matrix):
10228 Handle the case where we reach the old displayed text,
10229 out of sync with the old line boundary.
10230
10231 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
10232
10233 * fileio.c (Finsert_file_contents): Fix case of replacement in a
10234 narrowed buffer.
10235
10236 2004-09-14 Kim F. Storm <storm@cua.dk>
10237
10238 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
10239
10240 * xfaces.c (Qface_no_inherit): New var.
10241 (syms_of_xfaces): Intern and staticpro it.
10242 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
10243 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
10244 Don't increment face_change_count when face has non-nil
10245 face-no-inherit property.
10246
10247 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
10248
10249 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
10250 (Fbyte_code): Remove dead code after `wrong_type_argument'.
10251
10252 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
10253 before doing the mark_stack_check_gcpros since they're not on the stack.
10254
10255 2004-09-12 Kim F. Storm <storm@cua.dk>
10256
10257 * editfns.c (Fformat): Handle format strings with multiple text
10258 properties. Reverse text property list from the format string,
10259 so the positions are in increasing order.
10260
10261 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10262
10263 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
10264 x_uncatch_errors so that possible protocol errors are delivered.
10265
10266 2004-09-10 Eli Zaretskii <eliz@gnu.org>
10267
10268 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
10269 blockinput.h.
10270 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
10271 charset.h, and coding.h
10272 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
10273 (term.o): Depend on window.h and keymap.h.
10274 (abbrev.o): Depend on syntax.h.
10275 (callint.o): Depend on keymap.h.
10276 (casefiddle.o): Depend on charset.h and keymap.h.
10277 (category.o): Depend on keymap.h.
10278 (coding.o): Depend on dispextern.h.
10279 (cmds.o): Depend on keyboard.h and keymap.h.
10280 (dispnew.o): Depend on indent.h and intervals.h.
10281 (doc.o): Depend on keymap.h.
10282 (editfns.o): Depend on frame.h.
10283 (emacs.o): Depend on dispextern.h.
10284 (fileio.o): Don't depend on ccl.h.
10285 (filelock.o): Depend on charset.h and coding.h.
10286 (frame.o): Depend on w32term.h and macterm.h.
10287 (insdel.o): Depend on region-cache.h.
10288 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
10289 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
10290 (search.o): Depend on $(INTERVALS_SRC).
10291 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
10292 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
10293 xterm.h, w32term.h, and macterm.h.
10294 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
10295 w32term.h, and macterm.h.
10296 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
10297 region-cache.h, xterm.h, w32term.h, and macterm.h.
10298 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
10299 (data.o): Depend on frame.h.
10300 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
10301 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
10302 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
10303 (intervals.o): Depend on keymap.h.
10304
10305 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
10306 Add debugging print-out to termscript.
10307
10308 2004-09-09 Richard M. Stallman <rms@gnu.org>
10309
10310 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
10311
10312 2004-09-08 Richard M. Stallman <rms@gnu.org>
10313
10314 * window.c (Fset_window_buffer): Doc fix.
10315
10316 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
10317
10318 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
10319
10320 * minibuf.c (history_delete_duplicates): New variable.
10321 (read_minibuf): Use it.
10322 (syms_of_minibuf): Create the corresponding lisp variable.
10323
10324 2004-09-08 Kim F. Storm <storm@cua.dk>
10325
10326 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
10327 overlay just before point.
10328
10329 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
10330
10331 * buffer.h (struct buffer): Add auto_save_file_format field.
10332 * buffer.c (reset_buffer, init_buffer_once):
10333 Handle auto_save_file_format field.
10334 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
10335 `buffer-auto-save-file-format'.
10336 * fileio.c: Delete declaration for removed Vauto_save_file_format.
10337 (build_annotations): Adapt to replacement of
10338 `auto-save-file-format' with the new buffer-local variable
10339 `buffer-auto-save-file-format'.
10340 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
10341
10342 2004-09-07 Jason Rumney <jasonr@gnu.org>
10343
10344 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
10345
10346 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
10347 Handle Unicode menu titles.
10348
10349 2004-09-07 Kim F. Storm <storm@cua.dk>
10350
10351 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
10352 property from text property or overlay strings at point.
10353
10354 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10355
10356 * xmenu.c (update_submenu_strings): YAILOM.
10357 (set_frame_menubar): Make sure last_i is initialized.
10358
10359 2004-09-03 Jason Rumney <jasonr@gnu.org>
10360
10361 * w32menu.c (_widget_value): Add lname and lkey.
10362 (digest_single_submenu): Set lname and lkey in widget_value
10363 instead of name and key.
10364 (update_submenu_strings): New function.
10365 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10366 call update_submenu_strings.
10367
10368 * w32menu.c (globals_of_w32menu): Check for Unicode API.
10369 (digest_single_submenu, w32_menu_show): Encode menu strings as
10370 UTF-8 if Unicode API is available.
10371 (utf8to16): New function.
10372 (add_menu_item): Use it when calling Unicode API.
10373
10374 2004-09-03 Kim F. Storm <storm@cua.dk>
10375
10376 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
10377 in overlay or text-property strings; set cursor on corresponding
10378 glyph rather than at end of the string.
10379
10380 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10381
10382 * macfns.c (x_real_positions): Save the current window port and
10383 set a new one before obtaining the global coordinate.
10384 Use FRAME_MAC_WINDOW.
10385 (x_set_name, x_set_title): Encode title to UTF8.
10386 Use SetWindowTitleWithCFString.
10387 (Fx_server_version): Get correct OS version.
10388
10389 * macmenu.c (add_menu_item): Remove unused variable `i'.
10390 Don't let separator items destroy refence constants of other menu items.
10391
10392 * macterm.c (x_update_end): Move SetPortWindowPort to inside
10393 BLOCK_INPUT.
10394 (x_set_offset): Use FRAME_MAC_WINDOW.
10395
10396 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
10397 nontext_cursor if it is on a scroll bar.
10398
10399 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
10400 Carbon support.
10401 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
10402 Use LIBS_CARBON.
10403
10404 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10405
10406 * xfns.c (x_set_name_internal): New function. Check if we shall call
10407 xfree before ENCODE_UTF_8.
10408 (x_set_name, x_set_title): Call x_set_name_internal.
10409
10410 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
10411
10412 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
10413 reload it.
10414
10415 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10416
10417 * macmenu.c (_widget_value): Add lname and lkey.
10418 (single_submenu): Set lname and lkey in widget_value
10419 instead of name and key.
10420 (update_submenu_strings): New function.
10421 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10422 call update_submenu_strings.
10423
10424 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
10425 instead of name and key.
10426 (update_submenu_strings): New function.
10427 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10428 call update_submenu_strings.
10429
10430 * gtkutil.h (_widget_value): Added lname and lkey.
10431
10432 2004-08-30 Steven Tamm <steventamm@mac.com>
10433
10434 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
10435 by using different names for inner loop variables.
10436
10437 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10438
10439 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
10440 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
10441
10442 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
10443 tool bar items is 0.
10444
10445 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10446
10447 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
10448 strings in menu items.
10449 (single_submenu): Use ENCODE_MENU_STRING
10450 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
10451 button release isn't passed to event loop
10452 (add_menu_item): Use SetMenuItemWithCFString
10453
10454 2004-08-26 Steven Tamm <steventamm@mac.com>
10455
10456 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
10457 tool-bar/menu click.
10458 * macfns.c (Fx_file_dialog): Implement using NavServices.
10459
10460 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10461
10462 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
10463
10464 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10465 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10466 (x_top_window_to_frame): Return 0 if wdesc is None.
10467
10468 2004-08-22 Richard M. Stallman <rms@gnu.org>
10469
10470 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
10471 HAVE_TERMIOS]: If there's no char for this signal, drop through
10472 and use system calls.
10473
10474 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
10475
10476 2004-08-20 Kim F. Storm <storm@cua.dk>
10477
10478 * process.c (wait_reading_process_output): Rename from
10479 wait_reading_process_input. All uses changed.
10480 (wait_reading_process_output_1): Rename from
10481 wait_reading_process_input_1. All uses changed.
10482
10483 * dispnew.c (Fsleep_for): Remove obsolete code.
10484
10485 2004-08-20 Kenichi Handa <handa@m17n.org>
10486
10487 * syntax.c (skip_chars): Fix for unibyte case.
10488
10489 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10490
10491 * syntax.c (char_quoted): Mixup byte/char pos.
10492 (back_comment): Fixup globals in all cases.
10493
10494 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10495
10496 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
10497 passing it to gtk_window_set_title.
10498
10499 2004-08-19 Kim F. Storm <storm@cua.dk>
10500
10501 * process.c (wait_reading_process_input): Clean up.
10502 Add wait_for_cell, wait_proc, and just_wait_proc args
10503 to avoid overloading `read_kbd' and `do_display' args.
10504 Change read_kbd arg to int. All callers changed.
10505
10506 * process.c (process_send_signal): Use CDISABLE.
10507
10508 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
10509
10510 2004-08-18 Kim F. Storm <storm@cua.dk>
10511
10512 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
10513 forward to wait_reading_process_input via DO_DISPLAY arg.
10514 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
10515 object, only process output from that process; also inhibit
10516 running timers if DO_DISPLAY==-2.
10517
10518 2004-08-17 Kim F. Storm <storm@cua.dk>
10519
10520 * process.c (process_send_signal): Fix last change--use
10521 _POSIX_VDISABLE instead of CVDISABLE when available.
10522
10523 2004-08-16 Richard M. Stallman <rms@gnu.org>
10524
10525 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
10526 Set VQUIT and VINTR chars to the standard ones if they are unset.
10527 [AIX]: Don't do that here. And don't force VINTR to standard
10528 when SIGNALS_VIA_CHARACTERS.
10529
10530 * process.c (process_send_signal)
10531 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
10532 Do nothing if the character is CVDISABLE.
10533
10534 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
10535
10536 * intervals.c (move_if_not_intangible):
10537 Force POSITION to be between BEGV and ZV.
10538
10539 2004-08-14 John Paul Wallington <jpw@gnu.org>
10540
10541 * buffer.c (Frestore_buffer_modified_p): Doc fix.
10542
10543 * fileio.c (Fread_file_name): Doc fix.
10544
10545 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
10546
10547 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
10548
10549 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
10550
10551 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
10552
10553 * keyboard.c: Declare Qdisabled_command_function instead of
10554 Qdisabled_command_hook.
10555 (Fcommand_execute): Use Qdisabled_command_function instead of
10556 Qdisabled_command_hook.
10557 (syms_of_keyboard): Ditto.
10558
10559 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
10560
10561 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
10562 (syms_of_keymap) <key-translation-map>: Doc fixes.
10563
10564 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
10565
10566 * window.c (window_list_1): YAILOM.
10567
10568 * fileio.c (make_temp_name): Handle multibyte prefixes.
10569
10570 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
10571
10572 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
10573 Doc fix.
10574
10575 2004-08-03 Kenichi Handa <handa@m17n.org>
10576
10577 * coding.c (decode_coding_string): Adjust coding->consumed, and
10578 etc. with shrinked_bytes.
10579
10580 2004-08-03 Kim F. Storm <storm@cua.dk>
10581
10582 * indent.c (compute_motion): Fix check for full width window
10583 in non-window case. Do not count left truncation glyph on
10584 window systems.
10585
10586 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
10587
10588 * data.c (Finteractive_form): Doc fix.
10589
10590 2004-08-02 Kim F. Storm <storm@cua.dk>
10591
10592 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
10593 properly accounting for continuation glyph on non-window systems.
10594 (Fcompute_motion): Use actual window width if WIDTH is nil, and
10595 actual window width/height if TOPOS is nil, properly accounting for
10596 continuation glyphs on non-window systems, and optional header lines.
10597 (vmotion): Let compute_motion calculate actual window width.
10598
10599 * window.c (window_scroll_line_based): Let compute_motion
10600 calculate actual window width.
10601
10602 2004-08-02 Kim F. Storm <storm@cua.dk>
10603
10604 * process.c (read_process_output): Use whole read buffer.
10605 Don't trigger adaptive read buffering on errors.
10606
10607 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
10608
10609 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
10610
10611 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
10612
10613 * callint.c (Fcall_interactively): Doc fix.
10614
10615 2004-07-30 Richard M. Stallman <rms@gnu.org>
10616
10617 * abbrev.c (Fexpand_abbrev): Undo previous change.
10618
10619 2004-07-30 Kim F. Storm <storm@cua.dk>
10620
10621 * editfns.c (Fformat): Allocate extra (dummy) element in info.
10622
10623 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
10624
10625 * eval.c (Fdefvar, Fdefconst): Doc fixes.
10626
10627 2004-07-27 Kim F. Storm <storm@cua.dk>
10628
10629 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
10630 we have ensured that the glyph fits on the current line (or returned
10631 MOVE_LINE_CONTINUED otherwise).
10632
10633 2004-07-26 Kim F. Storm <storm@cua.dk>
10634
10635 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
10636 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
10637 if target position is at end of display line but char is not a newline.
10638
10639 2004-07-25 Richard M. Stallman <rms@gnu.org>
10640
10641 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
10642 instead of ON_VERTICAL_BORDER, when on scroll bar.
10643 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
10644
10645 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
10646
10647 * window.c (Fcoordinates_in_window_p):
10648 Take account of FRAME_INTERNAL_BORDER_WIDTH.
10649
10650 * alloc.c (check_cons_list): New function (contents commented out).
10651
10652 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
10653
10654 * xfaces.c (Fcolor_supported_p): Doc fix.
10655
10656 * frame.c (Fselect_frame, Fset_frame_selected_window)
10657 (Fframe_visible_p, Fraise_frame): Doc fixes.
10658
10659 2004-07-24 Richard M. Stallman <rms@gnu.org>
10660
10661 * keyboard.h (not_single_kboard_state): Declare.
10662
10663 * fileio.c (Fwrite_region): Doc fix.
10664
10665 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
10666
10667 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
10668 only when a real abbrev is present.
10669
10670 * xfns.c (x_icon_verify): New function.
10671 (Fx_create_frame): Use it.
10672
10673 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
10674
10675 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
10676
10677 2004-07-21 Kim F. Storm <storm@cua.dk>
10678
10679 * window.h (struct glyph_matrix): New members nrows_scale_factor
10680 and ncols_scale_factor.
10681
10682 * window.c (make_window): Initialize nrows_scale_factor and
10683 ncols_scale_factor members.
10684
10685 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
10686 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
10687 (required_matrix_height): Apply nrows_scale_factor.
10688 (required_matrix_width): Apply ncols_scale_factor.
10689
10690 * xdisp.c (display_line): Increment nrows_scale_factor and set
10691 fonts_changed_p if past last allocated row.
10692 (append_glyph, append_composite_glyph, produce_image_glyph)
10693 (append_stretch_glyph): Increment ncols_scale_factor and set
10694 fonts_changed_p if current area is full.
10695
10696 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10697
10698 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
10699
10700 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
10701
10702 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
10703 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
10704 (Fset_window_start, Fscroll_up, Fscroll_down)
10705 (Fother_window_for_scrolling, Fscroll_other_window)
10706 (Fsave_window_excursion, Fset_window_vscroll)
10707 (syms_of_window) <window-size-fixed>: Doc fixes.
10708
10709 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10710
10711 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
10712 ENCODE_SYSTEM for filenames.
10713
10714 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10715
10716 * mac.c (sys_select): Block input around call to
10717 ReceiveNextEvent to prevent breakage. Correctly handle
10718 blocking on event queue only by calling ReceiveNextEvent
10719 instead of select (since GUI events aren't on an fd).
10720 (sys_read): Remove function
10721 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
10722
10723 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10724
10725 * mac.c (sys_select): Redo sys_select to use alarm-based
10726 polling instead of 1 sec timeouts (like solaris).
10727
10728 * macterm.c (x_make_frame_visible): Comment in polling on
10729 frame creation.
10730
10731 * keyboard.c: Undef SIGIO on Carbon
10732
10733 * atimer.c (alarm_signal_handler): Call alarm handlers after
10734 scheduling.
10735
10736 * eval.c (Feval): Remove quit_char test
10737
10738 * process.c (wait_reading_process_input): Remove clearing
10739 stdin for select call on process input.
10740
10741 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
10742
10743 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
10744 capitalization error in docstring.
10745
10746 2004-07-17 Juanma Barranquero <lektu@terra.es>
10747
10748 * keyboard.c (not_single_kboard_state): Do nothing unless
10749 MULTI_KBOARD is defined.
10750
10751 2004-07-17 Richard M. Stallman <rms@gnu.org>
10752
10753 * window.c (coordinates_in_window): Inside the window but outside
10754 its box to the L or R, return ON_VERTICAL_BORDER.
10755 (window_list_1): Rotate the list to start with WINDOW.
10756
10757 * print.c (print_preprocess): Test for print_depth at limit
10758 before entering in being_printed.
10759
10760 * keyboard.c (not_single_kboard_state): New function.
10761 (stuff_buffered_input): Now no-op only if no SIGTSTP.
10762
10763 * frame.c (Fdelete_frame): If we're in single_bboard_state on
10764 this kboard, and we delete its last frame, go to any_kboard_state.
10765
10766 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
10767
10768 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10769
10770 * w32fns.c (Fx_file_dialog): Encode strings in system coding
10771 system before passing them to OS functions for display.
10772
10773 2004-07-15 David Kastrup <dak@gnu.org>
10774
10775 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
10776 Apparently fixes an abort condition.
10777
10778 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
10779
10780 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
10781 instead of a cons.
10782
10783 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10784
10785 * keyboard.c (echo_dash): Do nothing if there already is a dash
10786 at the end of the echo string.
10787
10788 2004-07-12 Kim F. Storm <storm@cua.dk>
10789
10790 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
10791 if GC_MARK_STACK.
10792
10793 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
10794
10795 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
10796
10797 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
10798 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
10799 (Freplace_buffer_in_windows, Fset_window_buffer)
10800 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
10801 (syms_of_window): Expand docstring of `display-buffer-function'.
10802
10803 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
10804
10805 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
10806 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
10807 that time values of the type (HIGH . LOW) are considered obsolete.
10808
10809 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
10810
10811 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
10812 docstring.
10813
10814 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
10815
10816 2004-07-06 John Paul Wallington <jpw@gnu.org>
10817
10818 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
10819
10820 * fns.c (Fclear_string): Signal an error if STRING is not a string.
10821
10822 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10823
10824 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
10825 instead of CGMainDisplayID (only in OSX 10.2 and later).
10826
10827 2004-07-04 John Paul Wallington <jpw@gnu.org>
10828
10829 * fileio.c (read_file_name_completion_ignore_case): New variable.
10830 (syms_of_fileio): Declare and initialise it.
10831 (Fread_file_name): Bind `completion-ignore-case' to respect it.
10832
10833 2004-07-03 Eli Zaretskii <eliz@gnu.org>
10834
10835 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
10836 for event.x and event.y.
10837
10838 2004-07-01 Kenichi Handa <handa@m17n.org>
10839
10840 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
10841 after getting a new string by pre-write-conversion.
10842
10843 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
10846 (x_calc_absolute_position): Remove unused var `child'.
10847
10848 * xfaces.c (x_supports_face_attributes_p)
10849 (Fdisplay_supports_face_attributes_p): YAILOM.
10850 (tty_supports_face_attributes_p): Remove unused var `i'.
10851
10852 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
10853 back_unibyte_ok.
10854
10855 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
10856
10857 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
10858
10859 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
10860
10861 2004-06-30 Andreas Schwab <schwab@suse.de>
10862
10863 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
10864 (Finit_image_library): Pass LIBRARIES through to
10865 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
10866 (lookup_image_type): Pass Qnil as second argument to
10867 Finit_image_library.
10868
10869 * lisp.h (Finit_image_library): Declare.
10870
10871 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10872
10873 * macterm.c (do_window_activate, do_window_deactivate): Remove.
10874 (XTread_socket): Send mouse button events to the toolbox
10875 dispatcher even when the mouse is grabbed. Don't process window
10876 activate events for non-Emacs windows. Replace function calls to
10877 do_window_activate and do_window_deactivate with their contents.
10878 Reset mouse grabbing status when a window is deactivated.
10879
10880 2004-06-29 Steven Tamm <steventamm@mac.com>
10881
10882 * macterm.c (mac_get_emulated_btn)
10883 (mac_event_to_emacs_modifiers): Fix emulated mouse button
10884 support to correctly mask out modifiers.
10885
10886 2004-06-29 David Kastrup <dak@gnu.org>
10887
10888 * search.c (Fset_match_data): Allow buffer before end of list
10889 which can happen if set-match-data is using a pre-consed list.
10890
10891 2004-06-28 Steven Tamm <steventamm@mac.com>
10892
10893 * macterm.c (XTread_socket): Correctly set the frame position
10894 after the window is moved.
10895
10896 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10897
10898 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
10899 gpix and gmask just before return to avoid memory leak.
10900 (xg_get_image_for_pixmap): Add workaround for monochrome displays
10901 so insensitive and activated icons look ok.
10902
10903 2004-06-27 Jason Rumney <jasonr@gnu.org>
10904
10905 * w32fns.c (file_dialog_callback): Disable edit control if set
10906 to directories only on CDN_INITDONE message.
10907 (Fx_file_dialog): Default to directories only when prompt starts
10908 with "Dired".
10909
10910 2004-06-25 Kim F. Storm <storm@cua.dk>
10911
10912 * alloc.c (allocate_misc): Update total_free_markers.
10913 (free_misc): New function.
10914 (safe_alloca_unwind, free_marker): Use it.
10915
10916 * lisp.h (free_misc): Add prototype.
10917
10918 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
10919
10920 2004-06-24 Richard M. Stallman <rms@gnu.org>
10921
10922 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
10923 (syms_of_emacs): Lisp variables deleted.
10924
10925 2004-06-23 David Kastrup <dak@gnu.org>
10926
10927 * search.c (Freplace_match): Adjust the match-data more thoroughly
10928 when replacing strings in the buffer.
10929 (Fmatch_data): When INTEGERS is non-nil and the last match was in
10930 a buffer, add the buffer as last element to the match data.
10931 (Fset_match_data): If an additional element of the match-data is a
10932 buffer, restore it to last_thing_searched.
10933 (save_search_regs): Save last_thing_searched as part of the match data.
10934 (restore_match_data): Restore it again.
10935
10936 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
10937
10938 * keymap.c (Ftext_char_description): Doc fix.
10939 * doc.c (Fsnarf_documentation): Doc fix.
10940
10941 2004-06-22 Kim F. Storm <storm@cua.dk>
10942
10943 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
10944
10945 * lisp.h (struct Lisp_Save_Value): New member dogc.
10946 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
10947 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
10948 (SAFE_FREE_LISP): New macro.
10949
10950 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
10951 (make_save_value): Init new dogc member.
10952 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
10953
10954 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
10955 SAFE_FREE_LISP macros.
10956
10957 2004-06-22 Kim F. Storm <storm@cua.dk>
10958
10959 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
10960 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
10961 in that memory area are unknown to GC. Add comments.
10962
10963 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
10964
10965 2004-06-21 Kim F. Storm <storm@cua.dk>
10966
10967 * lisp.h (MAX_ALLOCA): Define here.
10968 (safe_alloca_unwind): Add prototype.
10969 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
10970
10971 * alloc.c (safe_alloca_unwind): New function.
10972
10973 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10974
10975 * charset.c (Fstring): Use SAFE_ALLOCA.
10976
10977 * coding.c (MAX_ALLOCA): Remove define.
10978
10979 * data.c (MAX_ALLOCA): Remove define.
10980 (Faset): Use SAFE_ALLOCA.
10981
10982 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
10983
10984 * fns.c (string_make_multibyte, string_to_multibyte)
10985 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
10986 (MAX_ALLOCA): Remove define.
10987 (Fbase64_encode_region, Fbase64_encode_string)
10988 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
10989 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
10990 memory leak if encoding fails.
10991
10992 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
10993
10994 2004-06-21 Eli Zaretskii <eliz@gnu.org>
10995
10996 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10997
10998 2004-06-20 Richard M. Stallman <rms@gnu.org>
10999
11000 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
11001
11002 * search.c (match_limit): Cleaner err msg when no match data available.
11003
11004 * window.c (syms_of_window): Doc fix.
11005
11006 * keyboard.c (command_loop_1): Handle values `only' and `identity'
11007 for Vtransient_mark_mode.
11008
11009 * buffer.c (syms_of_buffer): Doc fix.
11010
11011 2004-06-21 David Kastrup <dak@gnu.org>
11012
11013 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
11014 and unbinding of `case-fold-search' according to
11015 `completion-ignore-case' around calls of string-match and
11016 predicates, respectively. Should give satisfactory performance
11017 in all relevant cases.
11018
11019 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11020
11021 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
11022 clip_x/y_origin.
11023
11024 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
11025
11026 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
11027
11028 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
11029 on Mac OSX.
11030
11031 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
11032
11033 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
11034
11035 2004-06-16 Kim F. Storm <storm@cua.dk>
11036
11037 * dispextern.h (Vimage_types): Remove extern.
11038
11039 2004-06-16 Miles Bader <miles@gnu.org>
11040
11041 * image.c (lookup_image_type): Initialize image type if necessary.
11042
11043 2004-06-15 Kim F. Storm <storm@cua.dk>
11044
11045 * xdisp.c (try_cursor_movement): Exclude header line from scroll
11046 margin at top of window.
11047 (try_window_reusing_current_matrix): Calculate proper cursor position
11048 after scrolling up with non-zero scroll margin, as the old cursor
11049 position corresponds to value of PT before executing this command.
11050 (try_window_id): Consider scroll margin at bottom of window too;
11051 otherwise we fail to scroll when hl-line-mode is enabled.
11052
11053 * syntax.c (skip_chars): Only recognize [:class:] when it has the
11054 proper format and class is a lower-case word.
11055
11056 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11057
11058 * gtkutil.c (xg_get_image_for_pixmap): New function.
11059 (xg_get_gdk_pixmap_and_mask): Remove.
11060 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
11061 xg_get_gdk_pixmap_and_mask.
11062
11063 * xterm.h (struct x_display_info): Typo in comment fixed.
11064
11065 2004-06-14 Juanma Barranquero <lektu@terra.es>
11066
11067 * dispextern.h (Vimage_types): Make it conditional on
11068 HAVE_WINDOW_SYSTEM.
11069
11070 * image.c (Vimage_types): Move from xdisp.c.
11071 (Vimage_type_cache): New variable.
11072 (define_image_type): New argument indicating whether an image
11073 library was loaded; cache loaded status and return t on success,
11074 nil otherwise.
11075 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
11076 (w32_delayed_load): New function to load an image library from a
11077 list of possible filenames.
11078 (init_xpm_functions, init_png_functions, init_jpeg_functions)
11079 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
11080 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
11081 (Finit_image_library): New function, extracted from `init_image'.
11082 Try to initialize an image library on demand and cache whether we
11083 were successful or not.
11084 (syms_of_image): Initialize `Vimage_types' and
11085 `Vimage_type_cache'. Add recognized image types to Vimage_types.
11086 Export `init-image-library'.
11087 (init_image): Remove initialization of all image types, except xbm
11088 and pbm.
11089
11090 * xdisp.c (Vimage_types): Delete (moved to image.c).
11091
11092 2004-06-14 Andreas Schwab <schwab@suse.de>
11093
11094 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11095 Avoid calling specbind when completion-regexp-list is empty.
11096
11097 2004-06-13 Richard M. Stallman <rms@gnu.org>
11098
11099 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11100 (re_wctype, re_iswctype, re_wctype_to_bit):
11101 Non-function definitions moved here from regex.c.
11102
11103 * regex.c (re_wctype, re_iswctype): Function defs longer static.
11104 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11105 (re_wctype, re_iswctype, re_wctype_to_bit):
11106 Non-function definitions moved to regex.h.
11107
11108 * window.c (Fselect_window): Doc fix.
11109
11110 * syntax.c: Include regex.h.
11111 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
11112 If requested, make a list of classes, then check the scanned
11113 chars for membership in them.
11114 (in_classes): New function.
11115 Doc fix.
11116
11117 * keyboard.c (cmd_error): Don't call any_kboard_state
11118 if inside a recursive edit level.
11119
11120 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
11121
11122 * keyboard.c (command_loop): Call any_kboard_state before
11123 command_loop_2 when at top level.
11124
11125 2004-06-13 Andreas Schwab <schwab@suse.de>
11126
11127 * print.c (print_object): Always use %ld for printing EMACS_INT.
11128
11129 * keyboard.c (cancel_hourglass_unwind): Return a value.
11130 (modify_event_symbol): Always use %ld for printing EMACS_INT.
11131 (Fexecute_extended_command): Likewise.
11132
11133 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
11134 avoid clashes.
11135 (SYNTAX): Likewise.
11136 (SYNTAX_WITH_FLAGS): Likewise.
11137 (SYNTAX_MATCH): Likewise.
11138
11139 * syntax.c (char_quoted): Avoid warning about undefined operation.
11140 (find_defun_start): Likewise.
11141 (scan_lists): Likewise.
11142 (INC_FROM): Likewise.
11143 (scan_sexps_forward): Likewise.
11144
11145 * image.c: Include <ctype.h>.
11146
11147 * xfaces.c (face_attr_equal_p): Declare parameters.
11148
11149 2004-06-13 Kenichi Handa <handa@m17n.org>
11150
11151 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
11152
11153 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
11154
11155 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
11156
11157 2004-06-12 Kenichi Handa <handa@m17n.org>
11158
11159 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
11160 ccl_prog_stack_struct and update it.
11161 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
11162 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
11163 ccl->eof_ic on EOF.
11164 (ccl_debug_hook): New function.
11165 (struct ccl_prog_stack): New member eof_ic.
11166 (ccl_driver): Handle EOF in subrountine call correctly.
11167
11168 2004-06-11 Kenichi Handa <handa@m17n.org>
11169
11170 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
11171
11172 2004-06-11 Kim F. Storm <storm@cua.dk>
11173
11174 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
11175
11176 2004-06-11 Juanma Barranquero <lektu@terra.es>
11177
11178 * keyboard.c (Fposn_at_point): Doc fix.
11179
11180 2004-06-11 David Kastrup <dak@gnu.org>
11181
11182 * search.c (match_limit): Don't flag an error if match-data
11183 exceeding the allocated search_regs.num_regs gets requested, just
11184 return Qnil.
11185
11186 2004-06-08 Miles Bader <miles@gnu.org>
11187
11188 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
11189
11190 2004-06-07 Juanma Barranquero <lektu@terra.es>
11191
11192 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
11193 (Fcurrent_time_string, Fcurrent_time_zone)
11194 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
11195
11196 2004-06-07 Miles Bader <miles@gnu.org>
11197
11198 * xfaces.c (struct named_merge_point): New type.
11199 (push_named_merge_point): New function.
11200 (merge_named_face): New function.
11201 (merge_face_ref, face_at_buffer_position, face_at_string_position):
11202 Use `merge_named_face'.
11203 (merge_face_inheritance): Function removed.
11204 (merge_face_ref): Rename from `merge_face_vector_with_property'.
11205 Add new `err_msgs' and `named_merge_points' args. Return error
11206 status. Only print error messages if ERR_MSGS is true. Don't try to
11207 do :inherit attribute validation.
11208 (merge_face_heights): Handle `unspecified' in both directions.
11209 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
11210 Call `merge_face_ref' instead of `merge_face_inheritance'.
11211 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
11212 (compute_char_face, face_at_buffer_position)
11213 (face_at_string_position): Call `merge_face_ref' instead of
11214 `merge_face_vector_with_property'.
11215
11216 2004-06-07 Kenichi Handa <handa@m17n.org>
11217
11218 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
11219 the necessary places.
11220
11221 2004-06-07 Kim F. Storm <storm@cua.dk>
11222
11223 * process.c (Fdelete_process): Undo 2004-05-28 change.
11224 Instead, call status_notify also for network process.
11225 (status_message): Use process instead of status as arg.
11226 Give messages "deleted" or "connection broken by remote peer" for
11227 an exited network process.
11228 (status_notify): Change call to status_message.
11229 (read_process_output): Increase readmax to 4096. Do not increase
11230 buffer size for datagram channels (default is now large enough).
11231
11232 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11233
11234 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
11235 problem due to newly defined variable.
11236
11237 2004-06-06 Miles Bader <miles@gnu.org>
11238
11239 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
11240 immediately if non-interactive or not initialized.
11241
11242 2004-06-05 Richard M. Stallman <rms@gnu.org>
11243
11244 * minibuf.c (Fcompleting_read): Doc fix.
11245
11246 2004-06-05 Andreas Schwab <schwab@suse.de>
11247
11248 * macfns.c (x_create_tip_frame): Fix declaration after statement.
11249
11250 2004-06-05 Juanma Barranquero <lektu@terra.es>
11251
11252 * keymap.c (Fdescribe_vector): Fix docstring.
11253 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
11254
11255 2004-06-05 Miles Bader <miles@gnu.org>
11256
11257 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
11258 attributes have different values than the default face.
11259
11260 2004-06-04 Eli Zaretskii <eliz@gnu.org>
11261
11262 * xfaces.c (x_supports_face_attributes_p): Make this function
11263 conditional on HAVE_WINDOW_SYSTEM.
11264 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
11265 Don't call x_supports_face_attributes_p if it was not compiled in.
11266
11267 2004-06-04 Miles Bader <miles@gnu.org>
11268
11269 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
11270 from Ftty_supports_face_attributes_p.
11271 (x_supports_face_attributes_p): New function.
11272 (Ftty_supports_face_attributes_p): Function deleted.
11273 (Fdisplay_supports_face_attributes_p): New function.
11274 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
11275 (face_attr_equal_p): New function.
11276 (lface_equal_p): Use it.
11277
11278 2004-06-03 Juanma Barranquero <lektu@terra.es>
11279
11280 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
11281 (Vw32_color_map): Fix typo in docstring.
11282 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
11283 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
11284 Make argument names match their use in docstring.
11285
11286 2004-06-02 Juanma Barranquero <lektu@terra.es>
11287
11288 Work around bugs/problems with MinGW builds of graphics libraries
11289 called from MSVC builds of Emacs.
11290
11291 * image.c (lookup_image): Make pointer to img static.
11292 (png_read_from_memory): Disable "global" optimization.
11293
11294 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
11295
11296 * eval.c (Fcondition_case): Fix usage. Simplify.
11297
11298 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
11299
11300 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11301
11302 * macfns.c: Don't include ccl.h.
11303 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
11304 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
11305 TextUtils.h.
11306 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
11307 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
11308 display height/width.
11309 (compute_tip_xy, Vx_max_tooltip_size): Declare.
11310 (unwind_create_tip_frame, compute_tip_xy): New functions.
11311 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
11312 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
11313 and last_show_tip_args.
11314
11315 * macgui.h [!MAC_OSX]: Include Gestalt.h.
11316 (Cursor, No_Cursor): New defines.
11317 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
11318 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
11319
11320 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
11321
11322 * macterm.c: Don't include Gestalt.h.
11323 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
11324 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
11325 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
11326 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
11327 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
11328 (construct_mouse_click, XTmouse_position)
11329 (x_scroll_bar_report_motion, x_calc_absolute_position)
11330 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
11331 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
11332 (note_mouse_movement): Clear the mouse face and reset the pointer
11333 shape when the pointer goes outside the frame without grabbing.
11334 (mac_front_window): New function.
11335 (mac_window_to_frame): New macro.
11336 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
11337 (do_window_activate, do_window_deactivate, do_app_resume)
11338 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
11339 (do_zoom_window, mac_do_receive_drag, XTread_socket)
11340 (mac_check_for_quit_char): Use mac_front_window and/or
11341 mac_window_to_frame.
11342 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
11343 scroll-bar click event.
11344 (mac_define_frame_cursor): Change the pointer shape.
11345 (x_free_frame_resources): Reset tip_window to NULL when it is
11346 disposed of.
11347 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
11348 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
11349 (do_window_update): Don't do anything if the updated window is the
11350 tooltip window.
11351 (do_mouse_moved): Handle mouse movement events here (previously in
11352 XTread_socket). Clear the mouse face if
11353 dpyinfo->mouse_face_hidden is set.
11354 (do_os_event, do_events): Remove (now in XTread_socket).
11355 (XTread_socket): Immediately return if interrupt_input_blocked.
11356 Loop until all the events in the queue are processed.
11357 Rearrange codes for mouse grabbing. Add tooltip support. Include the
11358 contents of do_os_event and do_events. Remove mouse movement
11359 handling (now in do_mouse_moved). Add the case where
11360 Vmouse_highlight has an integer value.
11361 (NewMacWindow): Remove.
11362 (make_mac_frame): Do what NewMacWindow previously did. Don't do
11363 excess initializations.
11364 (make_mac_terminal_frame): Previous initializations in
11365 make_mac_frame are moved here.
11366 (mac_initialize_display_info):
11367 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
11368
11369 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
11370 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
11371
11372 2004-05-29 Richard M. Stallman <rms@gnu.org>
11373
11374 * lisp.h (truncate_undo_list): Update decl.
11375
11376 * alloc.c (undo_outer_limit): New variable.
11377 (syms_of_alloc): Defvar it.
11378 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
11379
11380 * undo.c (truncate_undo_list): New arg LIMITSIZE.
11381
11382 * alloc.c (lisp_align_malloc): Check for base == 0
11383 regardless of HAVE_POSIX_MEMALIGN.
11384 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
11385
11386 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11387
11388 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
11389 (marker_blocks_pending_free): Remove.
11390 (Fgarbage_collect): Sweep after cleaning up undo-lists.
11391 Mark the undo lists after claning them up.
11392 Don't free block in marker_blocks_pending_free.
11393 (mark_buffer): Don't mark undo_list.
11394 (gc_sweep): Sweep hash-tables and strings first.
11395 Do free marker blocks that are empty.
11396
11397 2004-05-28 Jim Blandy <jimb@redhat.com>
11398
11399 * regex.c (print_partial_compiled_pattern): Add missing 'break'
11400 after 'case wordend'. For symbeg and symend, print to stderr,
11401 like the other cases.
11402
11403 2004-05-28 Noah Friedman <friedman@splode.com>
11404
11405 * process.c (Fdelete_process): Do not call remove_process.
11406
11407 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11408
11409 * alloc.c (struct backtrace): Remove.
11410 (Fgarbage_collect): Use the new mark_backtrace.
11411
11412 * eval.c (mark_backtrace): New function.
11413
11414 * minibuf.c (run_exit_minibuf_hook): New function.
11415 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
11416 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
11417
11418 2004-05-27 Kim F. Storm <storm@cua.dk>
11419
11420 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
11421 over display properties, e.g. images, that replace buffer text.
11422
11423 2004-05-25 Kim F. Storm <storm@cua.dk>
11424
11425 * alloc.c (marker_blocks_pending_free): New var.
11426 (gc_sweep): Store free marker blocks on that list.
11427 (Fgarbage_collect): Free them after undo-list cleanup.
11428
11429 * process.c (wait_reading_process_input): Check connect_wait_mask
11430 before actually accepting connection in case it has already been
11431 accepted due to recursion.
11432
11433 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
11434
11435 * coding.c (Fset_safe_terminal_coding_system_internal):
11436 Set suppress_error in safe_terminal_coding, not terminal_coding.
11437
11438 2004-05-22 Richard M. Stallman <rms@gnu.org>
11439
11440 * alloc.c (Fmake_string): Doc fix.
11441
11442 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
11443 and the alist pairs too.
11444
11445 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
11446
11447 * emacs.c (main): Update copyright year.
11448
11449 * fileio.c (Fread_file_name): Expand DIR if not absolute.
11450
11451 * insdel.c (del_range_2, replace_range): Don't write an anchor
11452 if the gap is empty.
11453
11454 * xdisp.c (try_scrolling): If scroll-up-aggressively or
11455 scroll-down-aggressively is small but positive, put point
11456 near the screen edge.
11457
11458 2004-05-22 Juanma Barranquero <lektu@terra.es>
11459
11460 * keymap.c (Fdefine_key): Doc fix.
11461
11462 2004-05-22 Kim F. Storm <storm@cua.dk>
11463
11464 * alloc.c (struct backtrace): Add debug_on_exit member.
11465 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
11466 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
11467 the removed cons cells.
11468 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
11469 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
11470 any cons cells pointing to unallocated stings.
11471 Do not lisp_free any marker blocks, as there may still be pointers
11472 to them from buffer undo lists at this stage of GC.
11473
11474 * keyboard.c (struct backtrace): Add debug_on_exit member.
11475 (Fcommand_execute): Clear it.
11476
11477 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
11478
11479 * intervals.c (lookup_char_property): Do not prematurely return nil.
11480
11481 2004-05-19 Jim Blandy <jimb@redhat.com>
11482
11483 Add support for new '\_<' and '\_>' regexp operators, matching the
11484 beginning and end of symbols.
11485
11486 * regex.c (enum syntaxcode): Add Ssymbol.
11487 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
11488 (re_opcode_t): New opcodes `symbeg' and `symend'.
11489 (print_partial_compiled_pattern): Print the new opcodes properly.
11490 (regex_compile): Parse the new operators.
11491 (analyse_first): Skip sym(beg|end) (they match only the empty string).
11492 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
11493 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
11494 (re_match_2_internal): Match symbeg and symend.
11495
11496 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
11497
11498 2004-05-19 Kim F. Storm <storm@cua.dk>
11499
11500 * .gdbinit (xsymbol): Fix last change.
11501
11502 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
11503
11504 * .gdbinit (xprintstr): New fun.
11505 (xstring, xprintsym): Use it.
11506
11507 * w32proc.c (create_child): Use INTMASK.
11508
11509 * alloc.c (Fgarbage_collect): Do all the marking before flushing
11510 unmarked elements of the undo list.
11511
11512 2004-05-18 David Ponce <david@dponce.com>
11513
11514 * print.c (print): Reset print_depth before to call print_object.
11515
11516 2004-05-18 Jason Rumney <jasonr@gnu.org>
11517
11518 * w32console.c: Prefix RIF functions with w32con_ to avoid
11519 namespace clash with functions in term.c and w32term.c.
11520
11521 * w32menu.c (add_menu_item, w32_menu_display_help)
11522 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
11523
11524 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
11525
11526 2004-05-18 Eli Zaretskii <eliz@gnu.org>
11527
11528 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
11529
11530 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
11531 with make_number.
11532 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
11533 with XINT.
11534
11535 2004-05-18 Kim F. Storm <storm@cua.dk>
11536
11537 * blockinput.h (INPUT_BLOCKED_P): New macros.
11538
11539 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
11540 (Ftop_level): Unblock input if blocked.
11541
11542 * buffer.h (GET_OVERLAYS_AT): New macro.
11543 * msdos.c (IT_note_mouse_highlight): Use it.
11544 * textprop.c (get_char_property_and_overlay): Use it.
11545 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
11546 * xfaces.c (face_at_buffer_position): Use it.
11547
11548 * print.c (print_object): Increase buf size.
11549
11550 2004-05-17 Jason Rumney <jasonr@gnu.org>
11551
11552 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
11553 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
11554 Lisp_Object using i member.
11555 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
11556 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
11557 consistently.
11558
11559 * w32proc.c (create_child): Use make_number instead of masking pid.
11560
11561 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
11562 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
11563 Use EQ to compare Lisp_Objects.
11564 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
11565
11566 * w32term.c (w32_num_mouse_buttons): Rename from
11567 Vw32_num_mouse_buttons and make it an int.
11568
11569 * w32.c (init_environment): Use it.
11570
11571 * w32fns.c (w32_wnd_proc): Likewise.
11572
11573 * w32proc.c (w32_pipe_read_delay): Rename from
11574 Vw32_pipe_read_delay and make it an int.
11575
11576 * w32.c (_sys_read_ahead): Use it.
11577
11578 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
11579
11580 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
11581
11582 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
11583 (key_event): Don't mix Lisp_Object and int.
11584
11585 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
11586
11587 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
11588 modifiers in language change event.
11589
11590 2004-05-17 Kim F. Storm <storm@cua.dk>
11591
11592 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
11593 Such objects may be freed markers which still exist on an undo list.
11594
11595 2004-05-16 Juanma Barranquero <lektu@terra.es>
11596
11597 * data.c (Fset_default): Make argument names match their use in
11598 docstring.
11599
11600 2004-05-15 Andreas Schwab <schwab@suse.de>
11601
11602 * emacs.c (gdb_array_mark_flag): Define.
11603 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
11604
11605 2004-05-15 Eli Zaretskii <eliz@gnu.org>
11606
11607 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
11608 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
11609 defined for the MS-DOS build.
11610
11611 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
11612
11613 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
11614
11615 2004-05-14 Kenichi Handa <handa@m17n.org>
11616
11617 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
11618
11619 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11620
11621 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
11622 section to frame.c section.
11623 (Fxw_display_color_p, Fx_file_dialog): Declare if
11624 HAVE_WINDOW_SYSTEM defined.
11625
11626 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
11627
11628 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
11629
11630 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
11631 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
11632 (XTread_socket): Fix int/Lisp_Object mixup.
11633 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
11634
11635 * macterm.h (struct frame, struct face, struct image)
11636 (display_x_get_resource, Fx_display_color_p)
11637 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
11638 Add prototypes.
11639
11640 2004-05-14 Kim F. Storm <storm@cua.dk>
11641
11642 * process.c (wait_reading_process_input): Make reentrant.
11643 Make Available and Connecting non-static. Save and restore value
11644 of waiting_for_user_input_p.
11645
11646 2004-05-13 Kim F. Storm <storm@cua.dk>
11647
11648 * keyboard.c (mark_kboards): Don't mark x and y members
11649 that are overloaded in selection request events.
11650
11651 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11652
11653 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
11654
11655 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
11656
11657 * window.c (Fdisplay_buffer, Fsplit_window)
11658 (split-height-threshold): Doc fix.
11659
11660 2004-05-13 Juanma Barranquero <lektu@terra.es>
11661
11662 * xfaces.c (Ftty_supports_face_attributes_p)
11663 (Finternal_copy_lisp_face): Fix typo in docstring.
11664 (Finternal_get_lisp_face_attribute): Fix docstring.
11665
11666 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11667
11668 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
11669
11670 2004-05-11 Steven Tamm <steventamm@mac.com>
11671
11672 * macfns.c (Fx_create_frame): Default to using tool-bar by
11673 setting tool-bar-lines to 1 in default-frame-alist.
11674
11675 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11676
11677 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
11678 (xpm_get_color_table_v, xpm_make_color_table_h)
11679 (xpm_put_color_table_h, xpm_get_color_table_h)
11680 (xpm_str_to_color_key, xpm_load_image, xpm_load)
11681 (syms_of_image): Support XPM on Carbon Emacs. Does not
11682 depend on libXpm, but only supports XPM version 3 without extensions.
11683
11684 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11685
11686 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
11687 instead of FRAME_X_P
11688
11689 2004-05-11 Kim F. Storm <storm@cua.dk>
11690
11691 * process.c (read_process_output): Grow decoding_buf when needed;
11692 this could cause a crash in allocate_string and compact_small_strings.
11693
11694 2004-04-29 Jim Blandy <jimb@redhat.com>
11695
11696 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
11697 against proper opcode.
11698
11699 2004-05-10 Juanma Barranquero <lektu@terra.es>
11700
11701 * process.c (Fstart_process): Fix docstring.
11702
11703 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
11704 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
11705 (Fsplit_char, Fchar_charset): Make argument names match their use
11706 in docstring.
11707
11708 2004-05-10 Richard M. Stallman <rms@gnu.org>
11709
11710 * print.c (print_preprocess): Use being_printed, loop_count and
11711 halftail to detect overdeep nesting and cyclic cdr chains.
11712
11713 2004-05-10 Andreas Schwab <schwab@suse.de>
11714
11715 * lisp.h (Fmake_symbolic_link): Declare.
11716
11717 * fileio.c (Frename_file): Remove extra argument in call to
11718 Fmake_symbolic_link.
11719
11720 2004-05-10 Kim F. Storm <storm@cua.dk>
11721
11722 * xdisp.c (calc_line_height_property): Use string position when
11723 object is a string.
11724
11725 2004-05-10 Kenichi Handa <handa@m17n.org>
11726
11727 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
11728 inhibit-modification-hooks to t temporarily before calling
11729 Ferase_buffer.
11730
11731 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
11732 inhibit-modification-hooks to t temporarily before calling
11733 Ferase_buffer.
11734
11735 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
11736 inhibit-modification-hooks to t temporarily before calling
11737 Ferase_buffer.
11738
11739 * fns.c (count_combining): Delete it.
11740 (concat): Don't check combining bytes.
11741
11742 2004-05-09 Jason Rumney <jasonr@gnu.org>
11743
11744 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
11745 (globals_of_w32fns): Set it.
11746
11747 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
11748
11749 * data.c (Fquo): Simplify.
11750
11751 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
11752
11753 * data.c (Fquo): If any argument is float, do the computation in
11754 floating point.
11755
11756 2004-05-08 Juanma Barranquero <lektu@terra.es>
11757
11758 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
11759 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
11760 Fix spelling of Emacs on docstring.
11761 (Fset_process_coding_system, Fprocess_coding_system)
11762 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
11763 Make argument names match their use in docstring.
11764 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
11765 Fix docstring.
11766
11767 * editfns.c (Finsert_buffer_substring): Make argument names match their
11768 use in docstring.
11769
11770 * syntax.c (Fmodify_syntax_entry): Fix docstring.
11771
11772 2004-05-07 Steven Tamm <steventamm@mac.com>
11773
11774 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
11775 around call to ReceiveEvent to avoid certain crashes.
11776
11777 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11778
11779 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
11780 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
11781 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
11782 Save/restore the current graphics port and device handle when
11783 drawing into an offscreen graphics world.
11784
11785 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
11786 (gif_load): Likewise.
11787
11788 2004-05-07 Juanma Barranquero <lektu@terra.es>
11789
11790 * window.c (Fset_window_buffer): Fix docstring.
11791
11792 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
11793
11794 * emacs.c (main) [VMS]: Fix var ref.
11795
11796 2004-05-06 Romain Francoise <romain@orebokech.com>
11797
11798 * data.c (Fsetq_default): Fix docstring.
11799
11800 2004-05-06 Jason Rumney <jasonr@gnu.org>
11801
11802 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
11803 to avoid name clash.
11804
11805 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11806
11807 * fileio.c (barf_or_query_if_file_exists): Use lstat.
11808 (Frename_file): Handle renaming of symlinks across file systems.
11809 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
11810
11811 2004-05-04 Kim F. Storm <storm@cua.dk>
11812
11813 * xdisp.c (Qtotal): New var.
11814 (syms_of_xdisp): Intern and staticpro it.
11815 (calc_line_height_property): New arg total. Set it if
11816 line-spacing property has format (total . VALUE).
11817 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
11818 Handle total line-spacing property.
11819
11820 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11821
11822 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
11823 "under" scroll bar when size/position changes.
11824
11825 2004-05-03 Jason Rumney <jasonr@gnu.org>
11826
11827 * makefile.nt: Remove.
11828
11829 2004-05-02 Eli Zaretskii <eliz@gnu.org>
11830
11831 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
11832 Avoid compiler warnings.
11833
11834 * Makefile.in (region-cache.o): Depend on config.h.
11835
11836 2004-05-02 Romain Francoise <romain@orebokech.com>
11837
11838 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
11839 with continuation lines, too.
11840
11841 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
11842
11843 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
11844
11845 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
11846
11847 * xdisp.c (calc_line_height_property): YAILOM (yet another
11848 int/Lisp_Object mixup).
11849
11850 2004-05-01 Eli Zaretskii <eliz@gnu.org>
11851
11852 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
11853 undo bad effect of pack(4) in some versions of system headers.
11854
11855 2004-05-01 Jason Rumney <jasonr@gnu.org>
11856
11857 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
11858
11859 2004-04-30 Kim F. Storm <storm@cua.dk>
11860
11861 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
11862 (syms_of_buffer) <cursor-type>: Doc fix.
11863
11864 * dispextern.h (struct it): Remove member use_default_face.
11865 Add members override_ascent, override_descent, override_boff.
11866
11867 * xdisp.c (init_iterator): Handle line-spacing float value.
11868 Initialize override_ascent member.
11869 (append_space_for_newline): Reset override_ascent.
11870 Remove use_default_face.
11871 (calc_line_height_property): New function to calculate value of
11872 line-height and line-spacing properties. Look at overlays, too.
11873 Set override_ascent, override_descent, override_boff members when
11874 using another face than the current face. Float values are now
11875 relative to the frame default font, by default; accept a cons
11876 of ratio and face name to specify value relative to a specific face.
11877 (x_produce_glyphs): Use calc_line_height_property.
11878 Use override_ascent etc. when set to handle different face heights.
11879 A negative line-spacing property value is interpreted as a total
11880 line height, rather than inter-line spacing.
11881 (note_mouse_highlight): Allocate room for 40 overlays initially.
11882
11883 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
11884
11885 * data.c (Fsubr_name): New fun.
11886 (syms_of_data): Defsubr it.
11887
11888 2004-04-29 Kim F. Storm <storm@cua.dk>
11889
11890 * xdisp.c (null_glyph_slice): New var.
11891 (append_glyph, append_composite_glyph, append_stretch_glyph):
11892 Use it to initialize glyph slice.
11893
11894 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
11895
11896 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
11897 (on_hot_spot_p): Make sure we always return a value.
11898 (Flookup_image_map): Remove unused var ix and iy.
11899 (note_mode_line_or_margin_highlight): Remove unused var `image'.
11900
11901 2004-04-27 Eli Zaretskii <eliz@gnu.org>
11902
11903 * msdos.c (init_environment): If one of the TMP... environment
11904 variables is set to a drive letter without a trailing slash,
11905 append a slash.
11906
11907 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
11908
11909 * editfns.c (lisp_time_argument): Provide externally.
11910
11911 * fileio.c (Fset_file_times): New function.
11912 (syms_of_fileio): Intern and staticpro it.
11913
11914 2004-04-27 Kim F. Storm <storm@cua.dk>
11915
11916 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
11917 header line strings.
11918
11919 * dispextern.h (struct it): New member use_default_face.
11920
11921 * xdisp.c (Qline_height): New variable.
11922 (syms_of_xdisp): Intern and staticpro it.
11923 (append_space_for_newline): Partially undo 2004-04-25 change;
11924 add default_face_p arg, and restore callers.
11925 Clear it->use_default_face after use.
11926 (x_produce_glyphs): Set default font for ascii char if
11927 it->use_default_font is set. Change line-spacing property to set
11928 just extra line spacing. Handle new line-height property.
11929
11930 2004-04-26 Andreas Schwab <schwab@suse.de>
11931
11932 * print.c (print_object): Print non-ascii characters in bool
11933 vector representation as octal escapes.
11934
11935 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
11936 * print.c (print_object): Use it instead of BITS_PER_CHAR for
11937 bool vectors.
11938 * lread.c (read1): Likewise.
11939 * alloc.c (Fmake_bool_vector): Likewise.
11940 * data.c (Faref, Faset): Likewise.
11941 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
11942 (mapcar1): Likewise.
11943
11944 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11945
11946 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
11947
11948 2004-04-26 Miles Bader <miles@gnu.org>
11949
11950 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
11951
11952 2004-04-26 Juanma Barranquero <lektu@terra.es>
11953
11954 * buffer.c (Fpop_to_buffer): Fix docstring.
11955
11956 2004-04-26 Steven Tamm <steventamm@mac.com>
11957
11958 * lread.c (init_lread): Don't display missing lisp directory
11959 warnings with Carbon Emacs because self-contained bundled Emacs
11960 may be built without correct installation path.
11961
11962 2004-04-25 Kim F. Storm <storm@cua.dk>
11963
11964 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11965
11966 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11967
11968 * xdisp.c (append_space_for_newline): Rename from append_space.
11969 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
11970 (x_produce_glyphs): Handle line-spacing property on newline char.
11971 If value is t, adjust ascent and descent to fit current row height.
11972 If value is an integer or float, set extra_line_spacing to integer
11973 value, or to float value x current line height.
11974
11975 2004-04-23 Kenichi Handa <handa@m17n.org>
11976
11977 * fontset.c (Finternal_char_font): If POSITION is nil, return
11978 font for displaying CH with the default face.
11979
11980 2004-04-23 Juanma Barranquero <lektu@terra.es>
11981
11982 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
11983
11984 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11985
11986 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
11987 Don't make assumptions about the relative place of i and val.
11988 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
11989
11990 2004-04-21 Kim F. Storm <storm@cua.dk>
11991
11992 * dispextern.h (struct glyph_slice): New struct.
11993 (struct glyph): New member slice.
11994 (GLYPH_SLICE_EQUAL_P): New macro.
11995 (GLYPH_EQUAL_P): Use it.
11996 (struct glyph_string): New member slice.
11997 (struct it_slice): New struct.
11998 (struct it): New member slice, add member to stack too.
11999 New member constrain_row_ascent_descent_p.
12000 (image_ascent): Add prototype.
12001
12002 * dispnew.c (buffer_posn_from_coords): Return full image width
12003 and height even for image slices (posn is relative to full image).
12004 (marginal_area_string): Adjust x0,y0 for image slice.
12005
12006 * image.c (image_ascent): Add slice arg; calculate ascent for
12007 image slice (or full image).
12008
12009 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
12010 (syms_of_keyboard): Defsubr them.
12011
12012 * lisp.h (pos_visible_p): Fix prototype.
12013
12014 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12015 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12016 (x_draw_image_foreground, x_draw_image_relief)
12017 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12018 Draw sliced images.
12019
12020 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
12021 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12022 (x_draw_image_foreground, x_draw_image_relief)
12023 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
12024 Draw sliced images.
12025
12026 * w32term.h (image_ascent): Remove prototype.
12027
12028 * window.c (Fpos_visible_in_window_p): Return pixel position if
12029 PARTIALLY arg is non-nil. Simplify. Doc fix.
12030 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
12031 to return/set vscroll in pixels.
12032
12033 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
12034
12035 * xdisp.c (Qslice): New variable.
12036 (syms_of_xdisp): Intern and staticpro it.
12037 (pos_visible_p): Return pixel position in new x and y args.
12038 (init_iterator): Reset it->slice info.
12039 (handle_display_prop): Parse (slice ...) property.
12040 (push_it, pop_it): Save/restore slice info.
12041 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
12042 force repositioning of tall row if window is vscrolled, as that
12043 would reset vscroll.
12044 (append_space): Set it->constrain_row_ascent_descent_p to avoid
12045 increasing row height if row is non-empty.
12046 (fill_image_glyph_string): Copy slice info.
12047 (take_vertical_position_into_account): Simplify.
12048 (produce_image_glyph): Handle iterator slice info, setup glyph
12049 slice info. Do not force minimum line height.
12050 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
12051 do not increase height (ascent/descent) of non-empty row when
12052 adding normal character glyph; instead reduce glyph ascent/descent
12053 appropriately; if row is higher than current glyph, adjust glyph
12054 descent/ascent to reposition glyph within the existing row.
12055 Likewise, when char is newline, only set ascent/descent if row is
12056 currently empty.
12057 (note_mouse_highlight): Handle hotspots with sliced image.
12058
12059 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12060 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12061 (x_draw_image_foreground, x_draw_image_relief)
12062 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12063 Draw sliced images.
12064
12065 * xterm.h (image_ascent): Remove prototype.
12066
12067 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
12068
12069 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
12070
12071 2004-04-20 John Paul Wallington <jpw@gnu.org>
12072
12073 * fns.c (Fassoc, Feql): Fix indentation.
12074
12075 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
12076
12077 2004-04-19 John Paul Wallington <jpw@gnu.org>
12078
12079 * fns.c (Feql): New function.
12080 (syms_of_fns): Defsubr it.
12081
12082 2004-04-18 Jason Rumney <jasonr@gnu.org>
12083
12084 * w32select.c (Fw32_set_clipboard_data): Get sequence number
12085 after closing the clipboard.
12086
12087 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
12088
12089 * buffer.c (Fbuffer_base_buffer): Doc fix.
12090
12091 2004-04-17 Kim F. Storm <storm@cua.dk>
12092
12093 * keymap.c (Fkey_description): Add optional PREFIX arg.
12094 Combine prefix with KEYS to make up the full key sequence to describe.
12095 Correlate meta_prefix_char and following (simple) key to describe
12096 as meta modifier. All callers changed.
12097 (describe_map): Rename arg `keys' to `prefix'. Remove local
12098 `elt_prefix' var. Use Fkey_description with prefix instead of
12099 elt_prefix combined with Fsingle_key_description.
12100 (describe_vector): Declare static. Replace arg `elt_prefix' with
12101 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
12102 if !KEYMAP_P. Use Fkey_description with prefix instead of
12103 Fsingle_key_description.
12104
12105 * keymap.h (Fkey_description): Fix prototype.
12106 (describe_vector): Remove prototype.
12107
12108 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
12109
12110 * image.c (PNG_BG_COLOR_SHIFT): Remove.
12111 (png_load): Fix calculation of transparent background color on X
12112 and W32 platforms.
12113
12114 2004-04-16 Juanma Barranquero <lektu@terra.es>
12115
12116 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
12117 not too large before computing how much to scroll.
12118
12119 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
12120
12121 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
12122
12123 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
12124
12125 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
12126 Add hyperlink to Elisp manual to the docstring.
12127
12128 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
12129
12130 * callint.c (fix_command): Use XDCR.
12131
12132 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
12133
12134 * window.c (Fget_lru_window): Doc fix.
12135
12136 2004-04-14 Kim F. Storm <storm@cua.dk>
12137
12138 * editfns.c (Fformat): Fix allocation size of precision array.
12139
12140 * dispnew.c (update_window): Only set changed_p if
12141 scrolling_window actually did scroll.
12142 (scrolling_window): Only return 1 if we actually did scroll.
12143
12144 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
12145 height to glyph height when cursor row is not fully visible.
12146 (make_cursor_line_fully_visible): Add FORCE_P arg to return
12147 failure in case row is higher than window. Callers changed.
12148 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
12149 Try to scroll partially visible, higher-than-window cursor row.
12150 (redisplay_window): Always try to scroll partially visible,
12151 higher-than-window cursor row - both initially and again with
12152 centering_position = 0.
12153 Clear desired matrix before retrying with centering_position = 0.
12154
12155 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12156
12157 * syntax.c (scan_lists): Simplify backward string scan.
12158 Fix off-by-one boundary check for string and comment fences.
12159
12160 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
12161
12162 * sheap.c, unexcw.c: New files.
12163
12164 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
12165
12166 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
12167 base buffer has been killed. Correct the error message if the
12168 base buffer does not exist.
12169
12170 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
12171
12172 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
12173 Cygwin itself. Add support for Xaw3d scrollbars.
12174
12175 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
12176
12177 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
12178
12179 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
12180 before Cygwin unexec.
12181
12182 * Makefile.in: Link changes for Cygwin unexec() support.
12183
12184 2004-04-12 Andreas Schwab <schwab@suse.de>
12185
12186 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
12187
12188 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
12189
12190 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
12191 IGNORE argument equals NAME. Doc fix.
12192
12193 2004-04-11 Masatake YAMATO <jet@gyve.org>
12194
12195 * buffer.c (fix_start_end_in_overlays): Make overlays
12196 empty if they are backwards.
12197
12198 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12199
12200 * xfaces.c (face_color_supported_p): Fix compilation without X11.
12201
12202 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
12203
12204 * doc.c (Fsnarf_documentation): Ignore new file name entries.
12205
12206 2004-04-06 Kim F. Storm <storm@cua.dk>
12207
12208 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12209 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
12210
12211 * w32term.c (w32_read_socket): Set mouse_face_hidden after
12212 clearing highlight.
12213
12214 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12215
12216 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
12217 clearing highlight.
12218
12219 * indent.c (vmotion): Do not reserve one column for continuation
12220 marks on window frames.
12221
12222 2004-04-04 Eli Zaretskii <eliz@gnu.org>
12223
12224 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
12225 from GCC.
12226
12227 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12228
12229 * .gdbinit-union: Remove.
12230
12231 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
12232 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
12233 ($nonvalbits): Remove.
12234 ($valmask): Set it by calling xreload to avoid redundancy.
12235
12236 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
12237 (gdb_emacs_intbits): Remove.
12238
12239 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12240
12241 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
12242
12243 2004-03-30 Kenichi Handa <handa@m17n.org>
12244
12245 * editfns.c (Fformat): Fix initialization of the array info.
12246
12247 2004-03-30 Kim F. Storm <storm@cua.dk>
12248
12249 * xterm.c (x_mouse_click_focus_ignore_position): New var.
12250 (syms_of_xterm): DEFVAR_BOOL it.
12251 (ignore_next_mouse_click_timeout): New var.
12252 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
12253 Use it to filter mouse clicks following focus event.
12254
12255 2004-03-29 David Ponce <david@dponce.com>
12256
12257 * callint.c (Fcall_interactively): Fix last change.
12258
12259 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * eval.c (Fcommandp): Simplify.
12262
12263 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
12264 Extend to handle all kinds of functions.
12265
12266 * lisp.h (Finteractive_form): Declare.
12267
12268 * callint.c (Fcall_interactively): Use it.
12269
12270 2004-03-26 Kim F. Storm <storm@cua.dk>
12271
12272 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
12273 to catch errors in calc_pixel_width_or_height during redisplay.
12274
12275 2004-03-26 Masatake YAMATO <jet@gyve.org>
12276
12277 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
12278
12279 * lisp.h (fix_start_end_in_overlays): Likewise.
12280
12281 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
12282
12283 * editfns.c (Ftranspose_regions): Likewise.
12284
12285 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12286
12287 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
12288
12289 2004-03-19 Richard M. Stallman <rms@gnu.org>
12290
12291 * s/sol2-6.h: Delete previous change.
12292
12293 2004-03-19 Kim F. Storm <storm@cua.dk>
12294
12295 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
12296 to_charpos corresponds to newline in right fringe. Use local
12297 BUFFER_POS_REACHED_P macro.
12298
12299 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12300
12301 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
12302 to compile on non-window system.
12303
12304 2004-03-19 Kim F. Storm <storm@cua.dk>
12305
12306 * dispextern.h (calc_pixel_width_or_height): Add prototype.
12307
12308 * image.c (Qcenter): Move to xdisp.c.
12309
12310 * xdisp.c (Qcenter): Declare here.
12311 (syms_of_xdisp): Intern and staticpro it.
12312 (handle_single_display_prop): Allow space display property on all
12313 platforms.
12314 (display_mode_line): Set mode_line_p before displaying line.
12315 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
12316 handling. Remove complex cases for fringes and scroll-bars.
12317 Add left, right, and center alignment positions. Add text (area)
12318 width/height. Return width or height for image specs.
12319 (produce_stretch_glyph): Improve handling of :align-to. Is now
12320 relative to left of text area by default, but other base offsets
12321 can be specified -- also for text lines.
12322
12323 * term.c (produce_glyphs): Handle IT_STRETCH.
12324 (produce_stretch_glyph): New function to handle space width and
12325 align-to display properties on non-window systems.
12326
12327 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12328
12329 * fileio.c (Fread_file_name): Set completion-ignore-case for
12330 case-insensitive systems.
12331
12332 2004-03-14 Masatake YAMATO <jet@gyve.org>
12333
12334 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
12335 when keymap and cursor are setup.
12336
12337 2004-03-14 Steven Tamm <steventamm@mac.com>
12338
12339 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
12340
12341 2004-03-14 Kim F. Storm <storm@cua.dk>
12342
12343 * dispextern.h (x_find_image_file): Add prototype.
12344
12345 * image.c (x_find_image_file): Make extern.
12346
12347 * xfns.c (x_find_image_file): Remove prototype.
12348
12349 2004-03-13 Eli Zaretskii <eliz@gnu.org>
12350
12351 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
12352
12353 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
12354
12355 2004-03-12 Richard M. Stallman <rms@gnu.org>
12356
12357 * fns.c (internal_equal): New arg PROPS controls comparing
12358 text properties. All callers changed.
12359 (Fequal_including_properties): New function.
12360 (syms_of_fns): defsubr it.
12361
12362 2004-03-12 Kim F. Storm <storm@cua.dk>
12363
12364 Fix image support on MAC. From YAMAMOTO Mitsuharu.
12365
12366 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
12367 (image_background, image_background_transparent): Fix prototypes.
12368
12369 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
12370
12371 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
12372 (x_query_font, x_find_ccl_program, x_set_window_size)
12373 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12374 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12375 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
12376
12377 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
12378 (x_query_font, x_find_ccl_program, x_set_window_size)
12379 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12380 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12381 (mac_draw_line_to_pixmap): Add prototypes.
12382
12383 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12384
12385 * macterm.c (XTread_socket): Fix mouse click on tool bar.
12386
12387 2004-03-11 Kim F. Storm <storm@cua.dk>
12388
12389 * dispextern.h: Move image related prototypes from xfns.c section
12390 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
12391 HAVE_X_WINDOWS.
12392
12393 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
12394 Move gtkutil.o to new GTK_OBJ list.
12395 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
12396 (GTK_OBJ) [USE_GTK]: New declaration.
12397 (obj): Add $(GTK_OBJ) to list.
12398
12399 2004-03-11 Steven Tamm <steventamm@mac.com>
12400
12401 * image.c [MAC_OSX]: Include sys/stat.h.
12402
12403 * macfns.c (syms_of_macfns): Remove definitions of things now
12404 defined in image.c.
12405
12406 2004-03-11 Kim F. Storm <storm@cua.dk>
12407
12408 The following changes consolidates the identical/similar image
12409 support code previously found in xfns.c, w32fns.c, and macfns.c
12410 into a new file image.c.
12411
12412 * makefile.w32-in (OBJ1): Add image.o.
12413 ($(BLD)/image.$(O)): Add dependencies.
12414
12415 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
12416 (image.o): Add dependencies.
12417
12418 * image.c: New file with consolidated image support code.
12419 (COLOR_TABLE_SUPPORT): New define to control whether
12420 color table support is available (X only).
12421 (Bitmap_Record): Common name for x_bitmap_record,
12422 w32_bitmap_record, and mac_bitmap_record.
12423 (XImagePtr): Common name for pointer to XImage or equivalent.
12424 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
12425 to XImagePtr on X+MAC, and to HDC on W32.
12426 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
12427 (NO_PIXMAP): Common name for "None" or equivalent.
12428 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
12429 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
12430 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
12431 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
12432 Define with suitable equivalents on W32 and MAC for code sharing.
12433 (XDrawLine): Define on MAC for code sharing.
12434 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
12435 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
12436 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12437 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12438 (x_reference_bitmap, x_create_bitmap_from_data)
12439 (x_create_bitmap_from_file, x_destroy_bitmap)
12440 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12441 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12442 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12443 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12444 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12445 (define_image_type, lookup_image_type, valid_image_p)
12446 (image_error, enum image_value_type, struct image_keyword)
12447 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12448 (make_image, free_image, prepare_image_for_display, image_ascent)
12449 (four_corners_best, image_background, image_background_transparent)
12450 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12451 (make_image_cache, free_image_cache, clear_image_cache)
12452 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12453 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12454 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12455 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
12456 (init_image_func_pointer, image_load_quartz2d)
12457 (struct ct_color, init_color_table, free_color_table)
12458 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12459 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12460 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12461 (x_disable_image, x_build_heuristic_mask)
12462 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12463 (TIFF support, GIF support, Ghostscript support): Consolidate image
12464 code from xfns.c, w32fns.c, and macfns.c.
12465 (syms_of_image): Consolidate image related symbol setup here.
12466 (init_image): Consolidate image related initializations here.
12467
12468 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
12469 and init_image. Remove call to init_xfns.
12470
12471 * macterm.h (struct mac_bitmap_record): Add file member.
12472 Not currently used, but simplifies code sharing.
12473
12474 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12475 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12476 (x_reference_bitmap, x_create_bitmap_from_data)
12477 (x_create_bitmap_from_file, x_destroy_bitmap)
12478 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12479 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12480 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12481 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12482 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12483 (define_image_type, lookup_image_type, valid_image_p)
12484 (image_error, enum image_value_type, struct image_keyword)
12485 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12486 (make_image, free_image, prepare_image_for_display, image_ascent)
12487 (four_corners_best, image_background, image_background_transparent)
12488 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12489 (make_image_cache, free_image_cache, clear_image_cache)
12490 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12491 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12492 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12493 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
12494 (init_image_func_pointer, image_load_quartz2d)
12495 (struct ct_color, init_color_table, free_color_table)
12496 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12497 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12498 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12499 (x_disable_image, x_build_heuristic_mask)
12500 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12501 (TIFF support, GIF support, Ghostscript support): Merge with image
12502 code from xfns.c and macfns.c into image.c.
12503 (syms_of_xfns): Move image related symbols to image.c.
12504 (init_external_image_libraries, init_xfns): Remove; initialization
12505 moved to init_image in image.c.
12506
12507 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12508 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12509 (x_reference_bitmap, x_create_bitmap_from_data)
12510 (x_create_bitmap_from_file, x_destroy_bitmap)
12511 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12512 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12513 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12514 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12515 (define_image_type, lookup_image_type, valid_image_p)
12516 (image_error, enum image_value_type, struct image_keyword)
12517 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12518 (make_image, free_image, prepare_image_for_display, image_ascent)
12519 (four_corners_best, image_background, image_background_transparent)
12520 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12521 (make_image_cache, free_image_cache, clear_image_cache)
12522 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12523 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12524 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12525 (struct ct_color, init_color_table, free_color_table)
12526 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12527 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12528 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12529 (x_disable_image, x_build_heuristic_mask)
12530 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12531 (TIFF support, GIF support, Ghostscript support): Merge with image
12532 code from xfns.c and macfns.c into image.c.
12533 (syms_of_xfns): Move image related symbols to image.c.
12534 (init_external_image_libraries, init_xfns): Remove; initialization
12535 moved to init_image in image.c.
12536
12537 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12538 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12539 (x_reference_bitmap, x_create_bitmap_from_data)
12540 (x_create_bitmap_from_file, x_destroy_bitmap)
12541 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12542 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12543 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12544 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12545 (define_image_type, lookup_image_type, valid_image_p)
12546 (image_error, enum image_value_type, struct image_keyword)
12547 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12548 (make_image, free_image, prepare_image_for_display, image_ascent)
12549 (four_corners_best, image_background, image_background_transparent)
12550 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12551 (make_image_cache, free_image_cache, clear_image_cache)
12552 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12553 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12554 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12555 (struct ct_color, init_color_table, free_color_table)
12556 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12557 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12558 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12559 (x_disable_image, x_build_heuristic_mask)
12560 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12561 (TIFF support, GIF support, Ghostscript support): Merge with
12562 w32fns.c and macfns.c image code into image.c.
12563 (syms_of_xfns): Move image related symbols to image.c.
12564 (init_xfns): Remove; initialization moved to init_image in image.c.
12565
12566 * lisp.h (syms_of_image, init_image): Add protoypes.
12567 (init_xfns): Remove prototype.
12568
12569 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12570 (x_reference_bitmap, x_create_bitmap_from_data)
12571 (x_create_bitmap_from_file, x_destroy_bitmap)
12572 (x_create_bitmap_mask): Move prototypes from dispextern.h.
12573 (gamma_correct) [MAC_OS]: Add prototype.
12574
12575 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12576 (x_reference_bitmap, x_create_bitmap_from_data)
12577 (x_create_bitmap_from_file, x_destroy_bitmap)
12578 (x_create_bitmap_mask): Move prototypes to dispextern.h.
12579
12580 2004-03-09 Kenichi Handa <handa@etlken2>
12581
12582 * coding.c (decode_coding_emacs_mule): Handle insufficent source
12583 correctly.
12584
12585 2004-03-04 Richard M. Stallman <rms@gnu.org>
12586
12587 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
12588
12589 * window.c (Fdisplay_buffer): Doc fix.
12590
12591 * buffer.c (Fpop_to_buffer): Doc fix.
12592
12593 2004-03-03 Kim F. Storm <storm@cua.dk>
12594
12595 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
12596
12597 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
12598
12599 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
12600
12601 2004-03-02 Richard M. Stallman <rms@gnu.org>
12602
12603 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
12604
12605 2004-03-02 Kenichi Handa <handa@m17n.org>
12606
12607 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
12608
12609 2004-03-02 Kim F. Storm <storm@cua.dk>
12610
12611 * window.h (struct window): New member overlay_arrow_bitmap.
12612
12613 * window.c (make_window): Initialize overlay_arrow_bitmap.
12614
12615 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
12616 implement and integrate multiple overlay arrows with redisplay.
12617 (syms_of_xdisp): DEFVAR_LISP and initialize it.
12618 (last_arrow_position, last_arrow_string): Replace by properties.
12619 (Qlast_arrow_position, Qlast_arrow_string)
12620 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
12621 (syms_of_xdisp): Intern and staticpro them.
12622 (overlay_arrow_string_or_property, update_overlay_arrows)
12623 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
12624 (overlay_arrow_at_row): New functions for multiple overlay arrows.
12625 (redisplay_internal): Use them instead of directly accessing
12626 Voverlay_arrow_position etc. for multiple overlay arrows.
12627 (mark_window_display_accurate): Use update_overlay_arrows.
12628 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
12629 (try_window_id): Use overlay_arrows_changed_p.
12630 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
12631 (display_line): Use overlay_arrow_at_row to check multiple
12632 overlay arrows, and get relevant overlay-arrow-string and
12633 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
12634 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
12635 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
12636
12637 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
12638 (update_window_fringes): Remove unused code.
12639
12640 2004-03-01 Jason Rumney <jasonr@gnu.org>
12641
12642 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
12643
12644 2004-03-01 Juanma Barranquero <lektu@terra.es>
12645
12646 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
12647
12648 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
12649
12650 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12651
12652 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
12653 how many colors can be displayed.
12654
12655 2004-03-01 Kenichi Handa <handa@m17n.org>
12656
12657 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
12658 correctly.
12659
12660 2004-02-28 Kim F. Storm <storm@cua.dk>
12661
12662 * dispnew.c (update_window): Update header line also if there are
12663 no other changes in window (move code after set_cursor label).
12664
12665 * lisp.h (mark_window_display_accurate): Remove prototype.
12666
12667 * window.c (window_loop, Fforce_window_update): Force mode line
12668 updates by setting prevent_redisplay_optimizations_p and
12669 update_mode_lines.
12670
12671 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12672
12673 * xfns.c (x_window): Fix indentation.
12674
12675 * xterm.c (x_calc_absolute_position): Call x_real_positions
12676 to get WM window sizes and use those to calculate position.
12677 (x_set_offset): Remove code commented out.
12678
12679 2004-02-28 Miles Bader <miles@gnu.org>
12680
12681 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
12682
12683 2004-02-28 Kim F. Storm <storm@cua.dk>
12684
12685 * keyboard.c (kbd_buffer_store_event_hold): New function to store
12686 an event into kbd fifo, but with special handling of quit event;
12687 a quit event is saved for later, and further events are discarded
12688 until the saved quit event has been processed.
12689 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
12690 (gen_help_event): Store help event in kbd fifo.
12691 (NREAD_INPUT_EVENTS): Remove.
12692 (read_avail_input): Adapt to new read_socket_hook interface.
12693 Remove allocation and initialization of local input_event buffer,
12694 as read_socket_hook stores events directly in fifo. Allocate and
12695 initialize local hold_quit event to handle postponed quit event
12696 (and store it if set by kbd_buffer_store_event_hold).
12697
12698 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
12699 (gen_help_event): Fix prototype.
12700
12701 * macterm.c (XTread_socket): Remove bufp_r and
12702 numcharsp args. Add hold_quit arg.
12703 Rework to use just one, local, inev input_event. Store inev
12704 directly in fifo using kbd_buffer_store_event_hold.
12705
12706 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
12707 (read_input_waiting): Adapt to new read_socket_hook interface.
12708 Remove allocation and initialization of local input_event buffer,
12709 as read_socket_hook stores events directly in fifo. Allocate and
12710 initialize local hold_quit event to handle postponed quit event
12711 (and store it if set by kbd_buffer_store_event_hold).
12712
12713 * term.c (read_socket_hook): Fix arg list.
12714
12715 * termhooks.h (read_socket_hook): Fix prototype.
12716
12717 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
12718 numcharsp args. Add hold_quit arg.
12719 Rework to use just one, local, inev input_event. Store inev
12720 directly in fifo using kbd_buffer_store_event_hold.
12721
12722 * w32inevt.h (w32_console_mouse_position): Fix prototype.
12723
12724 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
12725 Add hold_quit arg. Rework to use just one, local, inev
12726 input_event. Store inev directly in fifo using
12727 kbd_buffer_store_event_hold. Update count in one place.
12728 Postpone call to gen_help_event until inev is stored; use new
12729 local do_help for this.
12730 Remove local emacs_event in handing of ButtonPress event; just use
12731 inev instead (so no reason to copy it later).
12732
12733 * xsmfns.c (x_session_check_input): Remove numchars arg.
12734
12735 * xterm.c (x_focus_changed, x_detect_focus_change):
12736 Remove numchars arg. Always store event into bufp arg.
12737 Return nothing. Callers changed accordingly.
12738 (glyph_rect): Simplify.
12739 (STORE_KEYSYM_FOR_DEBUG): New macro.
12740 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
12741 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
12742 (current_hold_quit) [USE_GTK]: Add.
12743 (event_handler_gdk): Adapt to new handle_one_xevent.
12744 (handle_one_xevent): Remove bufp_r and numcharsp args.
12745 Add hold_quit arg. Rework to use just one, local, inev
12746 input_event. Store inev directly in fifo using
12747 kbd_buffer_store_event_hold. Update count in one place.
12748 Postpone call to gen_help_event until inev is stored; use new
12749 local do_help for this.
12750 Simplify handling of keysyms (consolidate common code). Fix bug
12751 where count was updated with nchars instead of nbytes.
12752 Remove local emacs_event in handing of ButtonPress event; just use
12753 inev instead (so no reason to copy it later).
12754 Remove `out' label. Rename label `ret' to `done'; add various
12755 `goto done' to clarify code flow in deeply nested blocks.
12756 (x_dispatch_event): Simplify as handle_one_xevent now calls
12757 kbd_buffer_store_event itself.
12758 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
12759 arg. Call handle_one_xevent with new arglist. Store event from
12760 x_session_check_input in fifo.
12761 [USE_GTK]: Setup current_hold_quit.
12762 Decrement handling_signal before unblocking input.
12763 (x_initialize) [USE_GTK]: Initialize current_count.
12764
12765 * xterm.h (x_session_check_input): Fix prototype.
12766
12767 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12768
12769 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
12770
12771 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
12772 macgui.h).
12773
12774 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
12775
12776 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
12777 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
12778 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
12779 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
12780 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
12781 (Bitmap): Remove typedef.
12782 (Pixmap): Change int to GWorldPtr.
12783
12784 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12785
12786 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12787 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
12788 New #define to extract 16-bit depth color components from unsigned
12789 long representation.
12790 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
12791 colors used for masks.
12792 (struct mac_display_info): Add color_p. Remove n_cbits.
12793
12794 * macfns.c: Include sys/types.h and sys/stat.h.
12795 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
12796 Include QuickTime/QuickTime.h.
12797 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12798 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
12799 functions defined in macterm.c.
12800 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
12801 (ZPixmap): New #define for compatibility with xfns.c.
12802 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12803 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12804 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
12805 New functions.
12806 (four_corners_best, x_create_x_image_and_pixmap)
12807 (x_destroy_x_image, unwind_create_frame, x_disable_image)
12808 (x_edge_detection, init_color_table, colors_in_color_table)
12809 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
12810 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
12811 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
12812 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
12813 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
12814 long mixup.
12815 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
12816 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
12817 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
12818 (x_set_cursor_type, Fxw_color_values, valid_image_p)
12819 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
12820 (x_alloc_image_color, clear_image_cache, lookup_image)
12821 (x_find_image_file, xbm_read_bitmap_file_data)
12822 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
12823 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
12824 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
12825 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
12826 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
12827 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
12828 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
12829 #if 0.
12830 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
12831 #if 0. Free white_relief.gc and black_relief.gc.
12832 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
12833 New functions (from xfns.c).
12834 (Fx_create_frame): Record unwind_create_frame.
12835 (Fxw_display_color_p): Use dpyinfo->color_p.
12836 (Fx_display_grayscale_p, Fx_display_planes): Don't use
12837 dpyinfo->n_cbits.
12838 (Fx_display_color_cells): Use dpyinfo->n_planes;
12839 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
12840 (Qheuristic, cross_disabled_images, emboss_matrix)
12841 (laplace_matrix): New variables (from xfns.c).
12842 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
12843 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
12844 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
12845 (image_background_transparent): New function (from xfns.c).
12846 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12847 (image_load_quicktime): Add declaration.
12848 [MAC_OSX] (image_load_quartz2d): Likewise.
12849 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
12850 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
12851 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
12852 (xbm_load_image_from_file, x_laplace_read_row)
12853 (x_laplace_write_row, pbm_read_file): Remove functions.
12854 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
12855 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
12856 (colors_in_color_table): Sync with xfns.c (although not used).
12857 (lookup_rgb_color): Don't lookup color table. Just do gamma
12858 correction.
12859 (COLOR_INTENSITY): New #define (from xfns.c).
12860 (x_disable_image): New function (from xfns.c).
12861 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12862 (x_build_heuristic_mask): Sync with xfns.c.
12863 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12864 (HAVE_PBM): Remove #ifdef.
12865 (pbm_load): Sync with xfns.c. Set img->width and img->height
12866 before IMAGE_BACKGROUND.
12867 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
12868 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
12869 Don't enclose with #if HAVE_PNG.
12870 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
12871 symbol _CGImageCreateWithPNGDataProvider is defined.
12872 Otherwise use image_load_quicktime.
12873 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
12874 [HAVE_PNG] (png_load): Sync with xfns.c.
12875 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12876 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
12877 HAVE_JPEG.
12878 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
12879 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
12880 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
12881 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
12882 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
12883 (tiff_image_p, tiff_load): Don't enclose declarations with #if
12884 HAVE_TIFF.
12885 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
12886 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
12887 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
12888 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
12889 New functions (from xfns.c).
12890 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
12891 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
12892 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
12893 Don't enclose with #if HAVE_GIF.
12894 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
12895 animated gif. Otherwise use image_load_quicktime.
12896 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
12897 gif_DrawText to avoid conflict with QuickdrawText.h.
12898 [HAVE_GIF] (gif_load): Sync with xfns.c.
12899 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
12900 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
12901 Ghostscript is not supported yet).
12902 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
12903 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
12904 cross_disabled_images (from xfns.c). Remove #if 0 for supported
12905 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12906 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
12907 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12908 HAVE_PNG. Call EnterMovies to support animated gifs.
12909 Call init_image_func_pointer to bind a symbol
12910 _CGImageCreateWithPNGDataProvider if it is defined.
12911
12912 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12913 (x_draw_bar_cursor): Sync declaration with xterm.c.
12914 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
12915 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
12916 graphics).
12917 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
12918 (mac_draw_line_to_pixmap, XCreatePixmap)
12919 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
12920 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
12921 New functions.
12922 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
12923 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12924 Cast bits to char *.
12925 (reflect_byte): New function (from w32fns.c).
12926 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
12927 due to byte alignment.
12928 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
12929 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12930 (XSetForeground): Remove static (now used in macfns.c).
12931 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
12932 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
12933 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
12934 (x_draw_glyph_string_box, x_draw_image_foreground)
12935 (x_draw_image_foreground_1, x_draw_image_glyph_string)
12936 (x_draw_stretch_glyph_string, x_draw_glyph_string)
12937 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
12938 Sync with xterm.c.
12939 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
12940 than the xterm.c version when a strictly horizontal or vertical
12941 line is drawn.
12942 (XTset_terminal_window): Add static.
12943 (x_make_frame_visible): Add UNBLOCK_INPUT.
12944 (x_free_frame_resources): New funcion (from xterm.c).
12945 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
12946 occurs in tool bar area.
12947 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
12948 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
12949 Initialize image cache.
12950 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
12951 Enclose unused functions with #if 0.
12952 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
12953 (decode_mac_font_name): New function to apply code conversions
12954 from a mac font name to an XLFD font name according to its script code.
12955 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
12956 font name to a mac font name according to REGISTRY and ENCODING fields.
12957 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
12958 whose name starts with `.'.
12959 (init_font_name_table): Use decode_mac_font_name. Add both
12960 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
12961 of a font is smJapanese.
12962 (mac_do_list_fonts): New function to list fonts that match a given
12963 pattern.
12964 (x_list_fonts, XLoadQueryFont): Use it.
12965 (XLoadQueryFont): Set rbearing field for each variable width
12966 character to avoid needless redraw.
12967 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
12968
12969 2004-02-26 Kim F. Storm <storm@cua.dk>
12970
12971 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
12972 as read_socket_hook handler on X aborts if buffer is too small
12973 and W32 handler doesn't always check buffer limit.
12974
12975 * xdisp.c (handle_single_display_prop): Handle left-fringe and
12976 right-fringe similar to a display margin image. Specifically,
12977 the characters having the fringe prop are no longer shown, and
12978 we use IT_IMAGE/next_element_from_image with image_id = -1 to
12979 do this. Set fringe bitmap face_id in it->face_id.
12980 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
12981 still realize it->face (i.e. the fringe bitmap face).
12982
12983 2004-02-25 Miles Bader <miles@gnu.org>
12984
12985 * xdisp.c (check_it): Check string/string_pos consistency.
12986 (init_iterator): Initialize string-related fields properly.
12987
12988 2004-02-11 Miles Bader <miles@gnu.org>
12989
12990 * xdisp.c (produce_image_glyph): Force negative descents to zero.
12991
12992 2004-02-10 Miles Bader <miles@gnu.org>
12993
12994 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
12995 BLOCK_INPUT can be nested, so it doesn't make much sense.
12996
12997 2004-02-24 Michael Mauger <mmaug@yahoo.com>
12998
12999 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
13000 (xbm_read_bitmap_data): Use unsigned char for image data.
13001
13002 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
13003
13004 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
13005
13006 2004-02-22 Jason Rumney <jasonr@gnu.org>
13007
13008 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
13009 correctly over other bitmaps.
13010
13011 2004-02-21 Eli Zaretskii <eliz@gnu.org>
13012
13013 * emacs.c (USAGE1): Split into two halves.
13014 (USAGE2): Second half of the old USAGE1.
13015 (USAGE3): Rename from USAGE2.
13016 (USAGE4): Rename from USAGE3.
13017
13018 2004-02-21 Juri Linkov <juri@jurta.org>
13019
13020 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
13021 Fix --multibyte. Move --help, --version to USAGE2. Add alias
13022 --file. Fix -f, -l. Sort options. Untabify.
13023 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
13024
13025 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
13026
13027 * category.c (Fdefine_category, Fcategory_docstring)
13028 (Fget_unused_category, Fset_category_table)
13029 (Fcategory_set_mnemonics): Doc fixes.
13030
13031 2004-02-20 Kim F. Storm <storm@cua.dk>
13032
13033 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
13034 The following changes are relative to the 2004-01-21 revision.
13035 (NREAD_INPUT_EVENTS): Define as max number of input events to read
13036 in one call to read_socket_hook. Value is 8.
13037 (read_avail_input): Separate and rework handling of read_socket_hook
13038 and non-read_socket_hook cases. Use smaller input_event buffer
13039 in read_socket_hook case, and repeat if full buffer is read.
13040 Use new local variable 'discard' to skip input after C-g.
13041 In non-read_socket_hook case, just use a single input_event, and
13042 call kbd_buffer_store_event on the fly for each character.
13043
13044 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13045
13046 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
13047 Remove unused `gu' alternative.
13048
13049 2004-02-19 Andreas Schwab <schwab@suse.de>
13050
13051 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
13052 warning.
13053
13054 2004-02-18 Kim F. Storm <storm@cua.dk>
13055
13056 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
13057 Fix last change.
13058
13059 2004-02-17 Kim F. Storm <storm@cua.dk>
13060
13061 * xdisp.c (fast_find_position): Fix return value of new version;
13062 it was inverted compared to the 21.1 version.
13063 (get_window_cursor_type): Don't look at glyph if NULL.
13064 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
13065
13066 * keyboard.c: Rework previous change; it didn't consider that the
13067 buf array was allocated on the stack.
13068 (prev_read): Remove variable.
13069 (read_avail_input_buf): New static event buffer array.
13070 (in_read_avail_input): New static variable to handle re-entrancy.
13071 (read_avail_input): Change buf to pinter to read_avail_input_buf.
13072 Use in_read_avail_input to handle re-entrance; when re-entered,
13073 fully initialize and use tmp_buf array instead of read_avail_input_buf.
13074 Do not initialize read_avail_input_buf in full here; instead assume it
13075 is always cleared on entry. To ensure that, we clear (just) the
13076 entries that were used before we return.
13077 (init_keyboard): Initialize read_avail_input_buf here.
13078
13079 2004-02-16 Jesper Harder <harder@ifa.au.dk>
13080
13081 * cmds.c (Fend_of_line): Doc fix.
13082
13083 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
13084
13085 * keyboard.c (prev_read): New static variable.
13086 (read_avail_input): Use it to zero out only those slots in buf[]
13087 that were used last time we were called.
13088
13089 2004-02-16 Eli Zaretskii <eliz@gnu.org>
13090
13091 * Makefile.in (obj): Move fringe.o from here...
13092 (XOBJ, MAC_OBJ): ...to here.
13093
13094 2004-02-16 Stephen Eglen <stephen@gnu.org>
13095
13096 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
13097
13098 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
13099
13100 * data.c (Fbyteorder):
13101 * fringe.c (Fdefine_fringe_bitmap):
13102 * xdisp.c (handle_single_display_prop):
13103 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
13104
13105 2004-02-16 Jason Rumney <jasonr@gnu.org>
13106
13107 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
13108
13109 2004-02-15 Steven Tamm <steventamm@mac.com>
13110
13111 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
13112 controlling emulation of a three button mouse with option and
13113 command keys.
13114 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
13115 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
13116
13117 2004-02-15 Kim F. Storm <storm@cua.dk>
13118
13119 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
13120
13121 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
13122 Perform byte-swapping.
13123
13124 2004-02-14 Kim F. Storm <storm@cua.dk>
13125
13126 * dispextern.h (struct draw_fringe_bitmap_params): Change member
13127 bits from char to short to facilitate wider bitmaps.
13128 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
13129 member.
13130
13131 * fringe.c (struct fringe_bitmap): Change member bits from char to
13132 short to facilitate 16 bits wide bitmaps. Modify all standard
13133 bitmaps accordingly.
13134 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
13135 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
13136 (draw_fringe_bitmap): Ditto.
13137 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
13138 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
13139 handle up to 16 bits wide bitmaps.
13140 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
13141 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
13142
13143 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
13144 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
13145 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
13146
13147 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
13148 so it is no longer necessary to expand them here.
13149
13150 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
13151
13152 2004-02-12 Kim F. Storm <storm@cua.dk>
13153
13154 * window.c (Fwindow_fringes): Doc fix.
13155
13156 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13157
13158 * xselect.c (x_get_foreign_selection): Add new optional parameter
13159 time_stamp.
13160 (Fx_get_selection_internal): Ditto, pass time_stamp to
13161 x_get_foreign_selection.
13162
13163 * data.c (Fbyteorder): New function.
13164
13165 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13166
13167 * atimer.c: Move include stdio.h to same place as in other files.
13168
13169 * region-cache.c: Ditto.
13170
13171 * sysdep.c: Ditto.
13172
13173 * xfaces.c: Ditto.
13174
13175 2004-02-09 Sam Steingold <sds@gnu.org>
13176
13177 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
13178
13179 2004-02-09 Kim F. Storm <storm@cua.dk>
13180
13181 * fringe.c: New file. Move original fringe related declarations
13182 and code from dispextern.h and xdisp.c here.
13183 Rework code to support user defined fringe bitmaps, redefining
13184 standard bitmaps, ability to overlay user defined bitmap with
13185 overlay arrow bitmap, and add faces to bitmaps.
13186 (Voverflow_newline_into_fringe): Declare here.
13187 (enum fringe_bitmap_align): New enum.
13188 (..._bits): All bitmaps are now defined without bitswapping; that
13189 is now done in init_fringe_once (if necessary).
13190 (standard_bitmaps): New array with specifications for the
13191 standard fringe bitmaps.
13192 (fringe_faces): New array.
13193 (valid_fringe_bitmap_id_p): New function.
13194 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
13195 (draw_fringe_bitmap): New function which draws fringe bitmap,
13196 possibly overlaying bitmap with cursor in right fringe or the
13197 overlay arrow in the left fringe.
13198 (update_window_fringes): Do not handle overlay arrow here.
13199 Compare and copy fringe bitmap faces.
13200 (init_fringe_bitmap): New function.
13201 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
13202 define and destroy user defined fringe bitmaps.
13203 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
13204 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
13205 (syms_of_fringe): New function. Defsubr new DEFUNs.
13206 DEFVAR_LISP Voverflow_newline_into_fringe.
13207 (init_fringe_once, init_fringe): New functions.
13208 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
13209
13210 * Makefile.in (obj): Add fringe.o.
13211 (fringe.o): New dependencies.
13212
13213 * dispextern.h (FRINGE_ID_BITS): New definition for number of
13214 bits allocated to hold a fringe number. Increase number of bits
13215 from 4 to 8 to allow user defined fringe bitmaps.
13216 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
13217 left_user_fringe_face_id, right_user_fringe_bitmap,
13218 right_user_fringe_face_id.
13219 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
13220 Move to new file fringe.c.
13221 (MAX_FRINGE_BITMAPS): Define here.
13222 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
13223 and overlay_p. Change member which to int.
13224 (struct redisplay_interface): New members define_fringe_bitmap
13225 and destroy_fringe_bitmap.
13226 (valid_fringe_bitmap_id_p): Add prototype.
13227 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
13228
13229 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
13230 arrows.
13231 (update_frame): Do flush_display if force_flush_display_p to
13232 ensure display (specifically fringes) are updated in a timely
13233 manner when resizing the frame by dragging the mouse.
13234 (update_window_line): Update row if overlay arrow changed.
13235 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
13236 or overlay arrow changed.
13237
13238 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
13239 syms_of_fringe, and init_fringe.
13240
13241 * frame.h (struct frame): New member force_flush_display_p.
13242
13243 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
13244 Add prototypes.
13245
13246 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
13247 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
13248 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
13249 Use cursor color for displaying cursor in fringe.
13250 (x_redisplay_interface): Add null handlers for
13251 define_fringe_bitmap and destroy_fringe_bitmap functions.
13252
13253 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
13254 xterm.c to handle overlayed fringe bitmaps and to use cursor color
13255 for displaying cursor in fringe.
13256 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
13257 specific functions to define and destroy fringe bitmaps in fringe_bmp.
13258 (w32_redisplay_interface): Add them to redisplay_interface.
13259 (w32_term_init): Call w32_init_fringe instead of explicitly
13260 defining fringe bitmaps in fringe_bmp array.
13261 (x_delete_display): Call w32_reset_fringes instead of explicitly
13262 destroying fringe bitmaps in fringe_bmp array.
13263
13264 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
13265 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
13266 (continued_bits, continuation_bits, ov_bits, first_line_bits)
13267 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
13268 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
13269 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
13270 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
13271 Move fringe handling vars and code to new file fringe.c.
13272 (handle_display_prop): Handle left-fringe and right-fringe
13273 display properties; store user fringe bitmaps in iterator.
13274 (move_it_in_display_line_to): Handle cursor in fringe at eob.
13275 (clear_garbaged_frames): Set force_flush_display_p if resized.
13276 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
13277 (display_line): Handle cursor in fringe at eob.
13278 (display_line): Set row user fringe bitmaps from iterator.
13279
13280 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
13281 Use cursor color for displaying cursor in fringe.
13282 (x_redisplay_interface): Add null handlers for
13283 define_fringe_bitmap and destroy_fringe_bitmap functions.
13284
13285 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13286
13287 * macfns.c (Fx_change_window_property): Make doc string and
13288 parameters same as for X version.
13289
13290 * w32fns.c (Fx_change_window_property): Ditto.
13291
13292 2004-02-07 Kim F. Storm <storm@cua.dk>
13293
13294 * xdisp.c (hscroll_window_tree): Position cursor near to right
13295 margin in hscrolled window when jumping to end of line (rather
13296 than centering cursor).
13297
13298 * process.c (wait_reading_process_input): Don't do adaptive read
13299 buffering if waiting for a specific process.
13300
13301 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
13302
13303 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
13304 (Fread_minibuffer, Feval_minibuffer)
13305 (Fread_string, Fread_no_blanks_input)
13306 (Fcompleting_read): Doc fixes.
13307 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
13308 completion-regexp-list. Define Qcase_fold_search and staticpro it.
13309 (read_minibuf): Fix initial comment.
13310 (Ftry_completion, Fall_completions, Ftest_completion): Bind
13311 case-fold-search to the value of completion-ignore-case when
13312 checking completion-regexp-list.
13313 (Fdisplay_completion_list): Make it handle arguments that are
13314 symbols. Doc fix.
13315
13316 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13317
13318 * xterm.h: Add declaration of free_frame_menubar.
13319
13320 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
13321 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
13322 (Fx_change_window_property): Add declaration of parameters type and
13323 format. Remove unused variable cons.
13324
13325 * xselect.c: Include stdio.h.
13326
13327 2004-02-05 Kenichi Handa <handa@m17n.org>
13328
13329 * fns.c (Fset_char_table_range): Fix previous change.
13330
13331 * buffer.c (Fset_buffer_multibyte): Fix docstring.
13332
13333 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
13334
13335 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
13336
13337 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * keymap.c (Vmouse_events): Rename from Vmenu_events.
13340 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
13341
13342 2004-02-04 Kenichi Handa <handa@m17n.org>
13343
13344 * fns.c (Fset_char_table_range): Handle charsets ascii,
13345 eight-bit-control, and eight-bit-graphic correctly.
13346
13347 2004-02-03 Jason Rumney <jasonr@gnu.org>
13348
13349 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
13350
13351 * w32fns.c (x_to_w32_font): Likewise.
13352
13353 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13354
13355 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
13356 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
13357
13358 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
13359 ClientMessages.
13360
13361 * xselect.c: Include termhooks.h and X11/Xproto.h
13362 (x_check_property_data, x_fill_property_data)
13363 (x_property_data_to_lisp, mouse_position_for_drop)
13364 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
13365 (Fx_send_client_event): Move here from xfns.c.
13366 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
13367
13368 * xfns.c (x-send-client-message): Move to xselect.c
13369 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
13370 OUTER_P.
13371 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
13372 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
13373 if vector_ret_p is true.
13374 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
13375
13376 2004-02-02 Eli Zaretskii <eliz@gnu.org>
13377
13378 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
13379 basename of FILE relative to it, not FILE itself.
13380
13381 2004-02-02 Kenichi Handa <handa@m17n.org>
13382
13383 * coding.c (coding_restore_composition): Check invalid
13384 composition data more rigidly.
13385
13386 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
13387
13388 * fileio.c (Fread_file_name_internal): Correctly handle the case
13389 where insert-default-directory is nil.
13390 (Fread_file_name): Always return an empty string if the user exits
13391 with an empty minibuffer. Adapt the docstring accordingly.
13392 (syms_of_fileio): Adapt the docstring of insert-default-directory
13393 to the change in Fread_file_name.
13394
13395 2004-01-29 Eli Zaretskii <eliz@gnu.org>
13396
13397 * alloca.c [!alloca]: Fix the prototype for xfree.
13398
13399 2004-01-29 Kenichi Handa <handa@m17n.org>
13400
13401 * fns.c (string_char_to_byte): Optimize for ASCII only string.
13402 (string_byte_to_char): Likewise.
13403
13404 2004-01-28 Peter Runestig <peter@runestig.com>
13405
13406 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
13407
13408 2004-01-27 Steven Tamm <steventamm@mac.com>
13409
13410 * unexmacosx.c (unexec_copy): Do not copy more than was
13411 requested to prevent overwriting during unexec.
13412
13413 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13414
13415 * process.c (sigchld_handler): Add comment about not calling malloc.
13416
13417 * process.h: Add extern to synch_process_termsig.
13418
13419 2004-01-27 Steven Tamm <steventamm@mac.com>
13420
13421 * macterm.c (make_mac_frame, make_mac_terminal_frame):
13422 Move setting of scroll bars from make_mac_frame to
13423 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
13424
13425 2004-01-26 Richard M. Stallman <rms@gnu.org>
13426
13427 * search.c (Freplace_match): Handle nonexistent
13428 back-references properly.
13429
13430 2004-01-03 Richard M. Stallman <rms@gnu.org>
13431
13432 * window.c (decode_any_window): New function.
13433 (Fwindow_height, Fwindow_width, Fwindow_edges)
13434 (Fwindow_pixel_edges, Fwindow_inside_edges)
13435 (Fwindow_inside_pixel_edges): Use decode_any_window.
13436
13437 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13438
13439 * process.h: synch_process_termsig new variable.
13440
13441 * callproc.c: Define synch_process_termsig.
13442 (Fcall_process): Initiate synch_process_termsig to zero and
13443 check if non-zero and get signal name after subprocess has ended.
13444
13445 * process.c (sigchld_handler): Set synch_process_termsig
13446 if terminated by a signal. synch_process_death setting removed.
13447
13448 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
13449
13450 2004-01-26 Andreas Schwab <schwab@suse.de>
13451
13452 * print.c (print_preprocess): Declare size as EMACS_INT to not
13453 lose bits.
13454 (print_object): Likewise.
13455 * alloc.c (Fpurecopy): Likewise.
13456
13457 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
13458
13459 * window.c (Fwindow_minibuffer_p): Doc fix.
13460
13461 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
13462
13463 * editfns.c (Fformat): Make both passes accept the same set of flags.
13464
13465 2004-01-23 Kenichi Handa <handa@m17n.org>
13466
13467 * fns.c (Fmd5): If OBJECT is a buffer different from the current
13468 one, set buffer to OBJECT temporarily.
13469
13470 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
13471
13472 * keyboard.c (kbd_buffer_gcpro): Remove.
13473 (kbd_buffer_store_event, clear_event, Fdiscard_input)
13474 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
13475 Don't initialize and/or maintain the variable any more. It was made
13476 redundant by my commit of 2003-06-15.
13477
13478 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
13479
13480 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13481
13482 * lisp.h: Add undef DECL_ALIGN.
13483
13484 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
13485
13486 * process.c (wait_reading_process_input) [SYNC_INPUT]:
13487 Check interrupt_input_pending explicitly.
13488
13489 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
13490
13491 * keyboard.c (handle_async_input): New fun,
13492 extracted from input_available_signal.
13493 (input_available_signal, reinvoke_input_signal): Use it.
13494
13495 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
13496
13497 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
13498
13499 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
13500 manipulation macros for when tags are in the lower bits.
13501 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
13502 (DECL_ALIGN): New macro.
13503 (DEFUN): Use it.
13504
13505 * lisp.h [ENABLE_CHECKING]: Don't force union type.
13506
13507 * s/darwin.h (__attribute__): Remove outdated workaround.
13508
13509 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
13510
13511 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
13512 Don't check range of malloc address.
13513 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
13514
13515 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
13516
13517 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
13518
13519 2004-01-19 Kenichi Handa <handa@m17n.org>
13520
13521 * fontset.c (fontset_font_pattern): Fix previous change.
13522
13523 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
13524
13525 * xdisp.c (Voverflow_newline_into_fringe)
13526 (move_it_in_display_line_to, redisplay_internal)
13527 (update_window_fringes, redisplay_window, display_line, window):
13528 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
13529 that it compiles without a window-system.
13530 * dispnew.c (direct_output_for_insert, update_window): Likewise.
13531
13532 2004-01-16 Kim F. Storm <storm@cua.dk>
13533
13534 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
13535
13536 * buffer.c (init_buffer_once): Set buffer_defaults and
13537 buffer_local_flags for indicate_buffer_boundaries.
13538 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
13539 default- variable for it.
13540
13541 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
13542 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
13543 New members exact_window_width_line_p and cursor_in_fringe_p for
13544 overflowing newlines into right fringe.
13545 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
13546 and indicate_bottom_line_p for buffer boundaries and scrolling.
13547 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
13548 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
13549 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
13550 and HOLLOW_SQUARE_BITMAP.
13551 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
13552 Add prototypes.
13553
13554 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
13555 instead of related indicator fields.
13556 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
13557 (direct_output_for_insert): Handle exact width lines like
13558 contined lines. Call update_window_fringes.
13559 (update_window): Call update_window_fringes.
13560 (scrolling_window): Don't skip desired rows with changed bitmaps.
13561 Check if fringe bitmaps changes when assigning scrolled rows.
13562
13563 * xdisp.c (Voverflow_newline_into_fringe): New variable.
13564 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
13565 (move_it_in_display_line_to): Overflow newline into fringe for
13566 rows that are exactly as wide as the window.
13567 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
13568 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
13569 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
13570 (fringe_bitmaps): Add new bitmaps.
13571 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
13572 Select proper bitmap for cursor in fringe when appropriate.
13573 Handle alignment of bitmap to top or bottom of row.
13574 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
13575 done by update_window_fringes.
13576 (update_window_fringes, draw_window_fringes): New functions.
13577 (redisplay_internal): Call update_window_fringes in case only
13578 cursor row is updated.
13579 (redisplay_window): Call update_window_fringes.
13580 Explicitly call draw_window_fringes if redisplay was done using
13581 the current matrix or the overlay arrow is in the window.
13582 (try_window_reusing_current_matrix): Mark scrolled rows for
13583 fringe update (to update buffer-boundaries / scrolling icons).
13584 (find_last_unchanged_at_beg_row): Handle exact width lines line
13585 continued lines.
13586 (display_line): Overflow newline into fringe for rows that are
13587 exactly as wide as the window. Don't append space for newline
13588 in this case.
13589 (notice_overwritten_cursor): Explicitly clear cursor bitmap
13590 in fringe as if it had been overwritten.
13591 (erase_phys_cursor): Erase cursor bitmap in fringe.
13592 (syms_of_xdisp): Mark show-trailing-whitespace and
13593 void-text-area-pointer as user options.
13594 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
13595
13596 * xterm.c (x_update_window_end): Call draw_window_fringes.
13597 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13598 in row instead of actually drawing fringe bitmaps.
13599 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13600 (x_draw_window_cursor): Draw cursor in fringe.
13601
13602 * w32term.c (x_update_window_end): Call draw_window_fringes.
13603 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13604 in row instead of actually drawing fringe bitmaps.
13605 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13606 (w32_draw_window_cursor): Draw cursor in fringe.
13607
13608 * macterm.c (x_update_window_end): Call draw_window_fringes.
13609 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13610 in row instead of actually drawing fringe bitmaps.
13611 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13612 (mac_draw_window_cursor): Draw cursor in fringe.
13613
13614 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13615
13616 * xterm.c (handle_one_xevent): Don't handle characters that are part
13617 of an old style (XLookupString) compose sequence.
13618
13619 2004-01-15 Kenichi Handa <handa@m17n.org>
13620
13621 * search.c (Freplace_match): Use make_multibyte_string or
13622 make_unibyte_string according to the buffer multibyteness.
13623
13624 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
13625
13626 * alloc.c (struct interval_block, struct string_block)
13627 (struct symbol_block, struct marker_block, live_string_p)
13628 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
13629 Better preserve alignment for objects in blocks.
13630 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
13631
13632 * lread.c (defvar_per_buffer): Remove dead declaration.
13633
13634 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
13635 space size.
13636
13637 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13638
13639 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
13640 if a key press should pop down. Only pop down if a key is pressed
13641 outside the menu/dialog.
13642 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
13643 popup_get_selection.
13644 (create_and_show_dialog): Pass 1 for down_on_keypress to
13645 popup_get_selection.
13646
13647 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13648
13649 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
13650 BLOCK/UNBLOCK_INPUT.
13651
13652 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13653
13654 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
13655 specified.
13656
13657 2004-01-08 Kenichi Handa <handa@m17n.org>
13658
13659 * editfns.c (Fformat): Fix '&' to '&&'.
13660
13661 2004-01-08 Andreas Schwab <schwab@suse.de>
13662
13663 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
13664 size if PSEUDOVECTOR_FLAG is set.
13665
13666 2004-01-07 Kenichi Handa <handa@m17n.org>
13667
13668 * charset.c (Fdeclare_equiv_charset): Fix docstring.
13669
13670 * fontset.c (fontset_ref_via_base): Fix previous change.
13671
13672 2004-01-07 Kim F. Storm <storm@cua.dk>
13673
13674 * process.c (read_process_output): Only activate adaptive
13675 buffering if we read less than 256 bytes at a time.
13676
13677 2004-01-06 Kim F. Storm <storm@cua.dk>
13678
13679 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
13680 object and image object. Return glyph width and height.
13681 (mode_line_string, marginal_area_string): Ditto.
13682
13683 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13684 (marginal_area_string): Fix prototypes.
13685
13686 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
13687 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
13688 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
13689
13690 * keyboard.c (make_lispy_position): Use modified mode_line_string,
13691 buffer_posn_from_coords, and marginal_area_string functions to
13692 include both string object and image object in the lispy position.
13693 Also add actual glyph width and height to position.
13694 (read_key_sequence): Use real buffer position from mouse
13695 event to find keymap property even when click is in marginal area.
13696
13697 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
13698 mode_line_string and marginal_area_string functions to handle
13699 both string object and image object properties.
13700
13701 2004-01-06 Andreas Schwab <schwab@suse.de>
13702
13703 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
13704 character.
13705
13706 2004-01-02 Andreas Schwab <schwab@suse.de>
13707
13708 * macterm.c (emacs_options, x_initialized, same_x_server):
13709 Remove unused (and duplicated) definitions.
13710
13711 2004-01-02 Kim F. Storm <storm@cua.dk>
13712
13713 * process.h (struct Lisp_Process): New members for adaptive read
13714 buffering: adaptive_read_buffering, read_output_delay, and
13715 read_output_skip.
13716
13717 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
13718 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
13719 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
13720 (process_output_delay_count, process_output_skip): New vars.
13721 (Vprocess_adaptive_read_buffering): New variable.
13722 (make_process): Initialize adaptive read buffering members.
13723 (Fstart_process): Set adaptive_read_buffering member.
13724 (deactivate_process): Cleanup adaptive read buffering.
13725 (wait_reading_process_input): Temporarily omit delayed
13726 subprocesses from the set of file descriptors to read from;
13727 adjust the select timeout if we skipped any subprocesses.
13728 (read_process_output): Increase adaptive read buffering delay if
13729 we read less than a full buffer; reduce delay when we read a
13730 full buffer.
13731 (send_process): Simplify using local Lisp_Process var.
13732 Reset adaptive read buffering delay after write.
13733 (init_process): Initialize process_output_delay_count and
13734 process_output_skip.
13735 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
13736
13737 2004-01-01 Jason Rumney <jasonr@gnu.org>
13738
13739 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
13740
13741 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
13742
13743 * print.c (Ferror_message_string): Add hyperlink in the docstring
13744 to the definition of `signal' in the Elisp manual.
13745 * eval.c (Fsignal): Ditto.
13746
13747 2003-12-29 James Clark <jjc@jclark.com>
13748
13749 * fns.c (internal_equal): Return t for two NaN arguments.
13750
13751 2003-12-29 Richard M. Stallman <rms@gnu.org>
13752
13753 * data.c (store_symval_forwarding): Handle setting
13754 default-fill-column, etc., by changing the value in
13755 buffers that use the default.
13756
13757 * minibuf.c (Fset_minibuffer_window): Doc fix.
13758
13759 * fileio.c (choose_write_coding_system): Ignore auto_saving
13760 if using the visited file for auto saves.
13761 (Fwrite_region): Don't update SAVE_MODIFF
13762 if auto-saving in visited file.
13763
13764 2003-12-29 Kenichi Handa <handa@m17n.org>
13765
13766 * dispextern.h (face_font_available_p): Extern it.
13767
13768 * fontset.c (Voverriding_fontspec_alist): New variable.
13769 (lookup_overriding_fontspec): New function.
13770 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
13771 (fontset_font_pattern): Likewise.
13772 (regulalize_fontname): New function.
13773 (Fset_fontset_font): Call regulalize_fontname.
13774 (Fset_overriding_fontspec_internal): New function.
13775 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
13776 Defsubr Sset_overriding_fontspec_internal.
13777
13778 * xfaces.c (face_font_available_p): New function.
13779
13780 2003-12-28 Richard M. Stallman <rms@gnu.org>
13781
13782 * buffer.c (Fother_buffer): Don't crash if BUF is nil
13783 or if its name is nil.
13784
13785 * buffer.c (Fkill_buffer): Don't delete auto-save file
13786 if it's the same as the visited file.
13787
13788 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
13789
13790 * coding.c (Fcheck_coding_system): Doc fix.
13791
13792 2003-12-28 Kim F. Storm <storm@cua.dk>
13793
13794 * Makefile.in (eval.o): Depend on dispextern.h.
13795
13796 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
13797 image glyph using image's ascent.
13798 (mode_line_string): Return image glyph as object clicked on.
13799 Adjust y0 for image glyph using image's ascent.
13800
13801 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
13802 (struct glyph): New members, ascent and descent. Used to save
13803 this glyph's ascent and descent, instead of having.
13804 (struct glyph): Declare member face_id using FACE_ID_BITS.
13805 (find_hot_spot): Add prototype.
13806
13807 * keyboard.c (Qimage): Remove extern (now in lisp.h).
13808 (QCmap): Declare extern.
13809 (make_lispy_position): When position is inside image hot-spot,
13810 use hot-spot element's id as posn element.
13811
13812 * lisp.h (IMAGEP): New macro to test for image object type.
13813 (Qimage): Declare extern.
13814
13815 * macfns.c (Qimage): Remove extern (now in lisp.h).
13816 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13817
13818 * macterm.c (Qface, Qmouse_face): Remove unused externs.
13819
13820 * w32fns.c (Qimage): Remove extern (now in lisp.h).
13821 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13822
13823 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
13824
13825 * w32term.c (Qface, Qmouse_face): Remove unused externs.
13826
13827 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
13828 pointer types.
13829 (Qrelative_width, Qalign_to): Remove unused variables.
13830 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
13831 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
13832 image maps.
13833 (x_y_to_hpos_vpos): Return glyph relative coordinates through
13834 new dx and dy args.
13835 Remove buffer_only_p arg (always 0). Simplify code accordingly.
13836 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
13837 than row's ascent and height, to get sensible height on tall rows.
13838 (build_desired_tool_bar_string): Remove Qimage extern.
13839 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
13840 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
13841 image glyph is alone on the last line.
13842 (append_glyph, append_composite_glyph, produce_image_glyph)
13843 (append_stretch_glyph): Set glyph's ascent and descent.
13844 (on_hot_spot_p): New function to check if position is inside an
13845 rectangular, circular, or polygon-shaped image hot-spot,
13846 (find_hot_spot): New function to search for image hot-spot.
13847 (Flookup_image_map): New defun to search for image hot-spot.
13848 (define_frame_cursor1): New aux function to determine frame pointer.
13849 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13850 Handle `pointer' text property and :pointer image property to
13851 control frame pointer shape. Detect image hot-spots for pointer
13852 and help_echo properties. Use define_frame_cursor1.
13853 (note_mouse_highlight): Use Vvoid_text_area_pointer.
13854 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
13855 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
13856
13857 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
13858
13859 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
13860 (Qimage): Remove extern (now in lisp.h).
13861 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13862
13863 * xmenu.c (show_help_event): Remove unused code.
13864
13865 * xterm.c (Qface, Qmouse_face): Remove unused externs.
13866 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
13867 row's ascent and descent, to get a sensible height on tall rows.
13868
13869 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
13870
13871 * minibuf.c (Fcompleting_read): Undo previous change.
13872
13873 2003-12-25 Lars Hansen <larsh@math.ku.dk>
13874
13875 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
13876 Arguments GCPRO'ed in call to file name handler.
13877
13878 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
13879
13880 * termcap.c (tgetst1): Scan for "%pN"; if all
13881 N are continuous in [1,9], remove all "%pN".
13882
13883 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13884
13885 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
13886
13887 * xfaces.c (lface_fully_specified_p): Take into account that
13888 MAC OS always have unspecified stipple.
13889
13890 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13891
13892 * tparam.c (tparam1): Add handling for `%pN', which
13893 means use param N for the next substitution.
13894
13895 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13896
13897 * xfaces.c (Fcolor_gray_p): Fix omission bug:
13898 In case `frame' is nil, consult the selected frame.
13899 (Fcolor_supported_p): Likewise.
13900
13901 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
13902
13903 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
13904 Doc fixes.
13905
13906 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
13907 and an integer. Adapt the introductory comment accordingly.
13908 (Fread_from_minibuffer): Delete code moved into read_minibuf.
13909 Doc fix.
13910 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
13911 read_minibuf.
13912 (Fcompleting_read): Delete code moved into read_minibuf.
13913 (Ftest_completion): Make it handle obarrays and hash tables correctly.
13914
13915 2003-12-03 Kenichi Handa <handa@m17n.org>
13916
13917 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
13918 encoding sequence.
13919
13920 2003-12-01 Kenichi Handa <handa@m17n.org>
13921
13922 * composite.c (syms_of_composite): Don't make the compostion hash
13923 table week.
13924
13925 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
13926
13927 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
13928 * textprop.c (Fget_char_property_and_overlay): New function.
13929 (syms_of_textprop): Defsubr it.
13930
13931 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13932
13933 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
13934 to compile on terminal configuration.
13935
13936 * fileio.c (Fread_file_name): Check use_file_dialog also before
13937 calling Fx_file_dialog.
13938
13939 * fns.c (use_file_dialog): New variable.
13940 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
13941
13942 2003-11-29 Kim F. Storm <storm@cua.dk>
13943
13944 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
13945 (syms_of_msdos): Don't intern and staticpro them.
13946
13947 2003-11-27 Kim F. Storm <storm@cua.dk>
13948
13949 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
13950 coordinates relative to glyph at posn. If glyph is an image,
13951 return that as object at posn. Callers changed.
13952 (mode_line_string, marginal_area_string): Calculate and return
13953 pixel coordinates relative to glyph. Callers changed.
13954
13955 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13956 (marginal_area_string): Fix prototypes.
13957 (window_box_left_offset, window_box_right_offset): Add prototypes.
13958
13959 * frame.h (get_specified_cursor_type, get_window_cursor_type):
13960 Remove prototypes.
13961
13962 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
13963
13964 * keyboard.c (make_lispy_position): Add x and y coordinates
13965 relative to the current glyph as 7th element of position.
13966 If glyph is an image, return it in the object element.
13967 (read_key_sequence): Skip checks for keymap property in cases
13968 where POSN_STRING is not a string (e.g. an image).
13969
13970 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
13971 (Vshow_text_cursor_in_void): New variable.
13972 (glyph_to_pixel_coords): Don't use negative hpos.
13973 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
13974 (append_stretch_glyph): Change ascent arg to be actual value
13975 in pixels rather than ratio to height. Callers changed.
13976 (calc_pixel_width_or_height): New aux function, implementing
13977 pixel based artihmetic for glyph widths and heights.
13978 (produce_stretch_glyph): Use calc_pixel_width_or_height for
13979 :width, :height, :align-to, and :ascent, thus allowing these to
13980 be specified in pixels as well as multiples of characters.
13981 Don't produce stretch glyphs with zero width or height.
13982 (get_specified_cursor_type): Declare static.
13983 (get_window_cursor_type): Declare static. Add glyph arg to be
13984 able to know when cursor is on an image; always substitute
13985 hollow-box cursor for filled-box cursor on images, to avoid
13986 negative images and flicker when blinking the cursor.
13987 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
13988 (note_mode_line_or_margin_highlight): Use non-text cursor rather
13989 than vertical scroll-bar cursor in display margins.
13990 (note_mouse_highlight): Use non-text cursor rather than text
13991 cursor in fringes and over images in the text area.
13992 Use non-text cursor when mouse pointer is outside editable text,
13993 i.e. in the void after end-of-line or end-of-buffer; this was
13994 already done for W32, but is now standard for all systems --
13995 user can toggle show-text-cursor-in-void to get old behaviour.
13996 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
13997 Vdisplay_pixels_per_inch.
13998
13999 2003-11-25 Andreas Schwab <schwab@suse.de>
14000
14001 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
14002 EMACS_INT to not lose bits.
14003 (Ffillarray): Don't set bits beyond the size of a bool vector.
14004
14005 2003-11-25 Kim F. Storm <storm@cua.dk>
14006
14007 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
14008 define this defun on systems that cannot use stderr as lvalue.
14009
14010 2003-11-24 Gerd Moellmann <gerd@gnu.org>
14011
14012 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
14013 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
14014 ld's default is incompatible with unexec.
14015
14016 2003-11-23 Kim F. Storm <storm@cua.dk>
14017
14018 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
14019 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
14020 (Fforce_window_update): New defun.
14021 (syms_of_window): Defsubr it.
14022 (Fset_window_margins, Fset_window_fringes): Doc fix.
14023
14024 * print.c (Fredirect_debugging_output): New defun.
14025 (syms_of_print): Defsubr it.
14026
14027 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
14028
14029 * fns.c (Fset_char_table_parent): Doc fix.
14030
14031 2003-11-22 Kim F. Storm <storm@cua.dk>
14032
14033 * dispnew.c (buffer_posn_from_coords): Return actual row/column
14034 for glyph clicked on, rather than (unused) pixel positions.
14035 (mode_line_string, marginal_area_string): Change X and Y args to
14036 pointers for returning actual row/column for glyph clicked on.
14037 Simplify and optimize loops.
14038
14039 * dispextern.h (mode_line_string, marginal_area_string):
14040 Update prototypes.
14041
14042 * keyboard.c (make_lispy_position): New function for generating
14043 mouse click positions from frame and pixel coordinates.
14044 Enhanced to return buffer position and actual row/column for
14045 events outside the text area using updated mode_line_string and
14046 marginal_area_string functions.
14047 Return left-fringe and right-fringe clicks as such, rather than
14048 clicks in text area.
14049 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
14050 pixel_to_glyph_coords, as we never use the results.
14051 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
14052 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
14053 Eliminate unused code in WHEEL_EVENT handling.
14054 (make_lispy_movement): Use make_lispy_position.
14055
14056 * window.c (coordinates_in_window): Remove redundant tests.
14057 Fix returned X pixel value for left-margin.
14058
14059 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
14060 mode_line_string and marginal_area_string parameters.
14061
14062 2003-11-22 Lars Hansen <larsh@math.ku.dk>
14063
14064 * w32.c (struct the_group, getgrgid): Add.
14065 * mac.c (struct my_group, getgrgid): Add.
14066
14067 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14068
14069 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
14070
14071 2003-11-21 Lars Hansen <larsh@math.ku.dk>
14072
14073 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
14074 include in call to file name handler. Optionally translate numeric
14075 UID and GID to strings. Update docstring.
14076 (directory_files_internal): Add parameter ID-FORMAT.
14077 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
14078 include in call to file name handler and call to
14079 directory_files_internal. Update Docstring.
14080 (Fdirectory_files): Add dummy parameter in call to
14081 directory_files_internal.
14082 * lisp.h (Qinteger): Add.
14083 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
14084 (Ffile_attributes): Add parameter.
14085 * data.c (Qinteger): Export.
14086
14087 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14088
14089 * fns.c (Freverse, Fnreverse): Doc fixes.
14090
14091 2003-11-19 Kim F. Storm <storm@cua.dk>
14092
14093 * xdisp.c (init_iterator): Initialize it->start to position
14094 before reseating (in case start position is invisible).
14095 (init_to_row_start): Set it->start to row-start.
14096 (redisplay_window): Accept optional_new_start if start position
14097 is invisible (in which case IT_CHARPOS overshoots PT).
14098 (display_line): Setup row->start from it->start (rather than
14099 it->current which is wrong if first char on line is invisible).
14100 When done, reseat it->start to it->current (= start of next row).
14101 (expose_area): Fix exposure of text area when first char (e.g. TAB)
14102 is only partially visible.
14103
14104 * dispextern.h (struct it): New member start.
14105
14106 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
14107
14108 * alloc.c (make_float, Fcons): Clear the markbit at init time.
14109 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
14110 of block_index outside of the macro call.
14111 (Fgarbage_collect): Remove null code.
14112
14113 * m/amdx86-64.h: Don't redefine XPNTR.
14114
14115 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
14116 of VALMASK.
14117
14118 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
14119 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
14120 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
14121
14122 * lisp.h (VALMASK): Only define for non-union type.
14123 (MARKBIT): Remove.
14124 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
14125 (XTYPE): Define unconditionally.
14126 (XSETTYPE): Remove one more remnant.
14127 (EQ): Define differently for the union and non-union cases.
14128 (INTMASK): New bit mask.
14129 (struct Lisp_Marker): Move down to prepare for upcoming patch.
14130 (GC_EQ): Delegate to EQ.
14131
14132 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
14133
14134 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14135
14136 * xterm.c (x_window_to_scroll_bar): Move check of display to
14137 where window_id is compared.
14138
14139 2003-11-17 Kim F. Storm <storm@cua.dk>
14140
14141 * dispextern.h (struct it): New member first_vpos.
14142
14143 * xdisp.c (start_display): Set it->first_vpos.
14144 (try_window_id): Use first_vpos to start display in first _text_
14145 line if no reusable lines at start of window with header line.
14146
14147 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14148
14149 * w32fns.c (XPutPixel):
14150 * w32bdf.c (w32_init_bdf_font):
14151 * sunfns.c (sel_read):
14152 * process.c (Fmake_network_process):
14153 * frame.c (store_frame_param):
14154 * fontset.c (Fset_fontset_font):
14155 * emacs.c (shut_down_emacs):
14156 * ccl.c (ccl_driver): Remove period at end of error message.
14157
14158 * config.in: Regenerate.
14159
14160 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14161 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14162 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
14163 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
14164 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
14165
14166 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
14167
14168 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
14169 (XTmouse_position, handle_one_xevent): Pass Display* to
14170 x_window_to_scroll_bar.
14171 (x_window_to_scroll_bar): Take a Display* argument.
14172 Check that display for frame is equal to Display* argument.
14173 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
14174 x_display_info_for_display instead. Use Display in xev instead
14175 of GDK_DISPLAY.
14176 (x_dispatch_event): Call x_display_info_for_display.
14177 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
14178 (x_connection_closed): Call xg_display_close for GTK.
14179 (x_term_init): Call xg_display_open for additional displays.
14180 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
14181 for GTK.
14182
14183 * xmenu.c (single_menu_item, mouse_position_for_popup)
14184 (x_activate_menubar): Formatting adjustments.
14185
14186 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
14187 adjustments.
14188
14189 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
14190 (xg_display_close, xg_create_default_cursor)
14191 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
14192 handling.
14193 (xg_left_ptr_cursor): Remove.
14194 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
14195 cursor here.
14196 (xg_win_to_widget): Take Display* argument, call
14197 gdk_xid_table_lookup_for_display.
14198 (xg_create_frame_widgets, xg_get_file_name, create_menus)
14199 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
14200 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
14201 in FRAME_X_DISPLAY_INFO.
14202 (xg_get_scroll_id_for_window): Take Display* argument.
14203 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
14204 (xg_initialize): Remove xg_left_ptr_cursor.
14205
14206 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
14207 Display* argument.
14208 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
14209
14210 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14211
14212 * xterm.c (x_detect_focus_change): Do not change focus frame for
14213 Enter/LeaveNotify if the current focus frame has explicit focus.
14214
14215 2003-11-14 Kim F. Storm <storm@cua.dk>
14216
14217 * dispnew.c (update_text_area): Fix redisplay error when hscroll
14218 is active and first glyph is only partially visible.
14219
14220 2003-11-13 Kenichi Handa <handa@m17n.org>
14221
14222 * xdisp.c (select_frame_for_redisplay): New function.
14223 (redisplay_internal): Record also selected_frame for
14224 unwind_redisplay. Call select_frame_for_redisplay before
14225 redrawing each frame.
14226 (unwind_redisplay): Argument changed to a cons.
14227
14228 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
14229
14230 * fns.c (Fstring_to_multibyte): Doc fix.
14231
14232 2003-11-11 Kenichi Handa <handa@m17n.org>
14233
14234 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14235
14236 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14237
14238 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
14239 program specified positions.
14240
14241 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14242
14243 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
14244
14245 2003-11-08 Kenichi Handa <handa@m17n.org>
14246
14247 * Makefile.in (lisp): Add kannada.el.
14248 (shortlisp): Likewise.
14249
14250 2003-11-07 Kenichi Handa <handa@m17n.org>
14251
14252 * coding.c (coding_allocate_composition_data):
14253 Reset coding->composing to COMPOSITION_NO.
14254 (coding_restore_composition): Detect invalid composition data.
14255 Give Fstring and Fvector a Lispy integer, not C int.
14256
14257 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
14258
14259 * floatfns.c (Flogb): Don't use VALMASK.
14260
14261 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
14262 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
14263
14264 * lisp.h (XINT): Move the cast to clarify what is going on.
14265 (GCTYPEMASK, XSETTYPE): Remove.
14266 (XGCTYPE): Make it an alias of XTYPE.
14267
14268 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14269
14270 * xterm.c (x_term_init): Fix formatting.
14271
14272 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14273
14274 * gtkutil.h (xg_have_tear_offs): Declare.
14275 (xg_keep_popup, xg_did_tearoff): Remove.
14276
14277 * gtkutil.c: Remove variable xg_did_tearoff.
14278 (xg_have_tear_offs): New function.
14279 (tearoff_remove): Just decrease xg_detached_menus.
14280 (tearoff_activate): Increase xg_detached_menus and call
14281 tearoff_remove when tearoff is removed.
14282 (xg_keep_popup): Remove function.
14283 (create_menus): Give add_tearoff_p as argument to recursive
14284 call to create_menus.
14285 (xg_create_widget): Use variables instead of multiple
14286 strcmp. Tell create_menus to create tear off only for
14287 menu bar menus.
14288 (xg_update_menubar): Change title for a detached menu also.
14289 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
14290 of deep_p.
14291 (xg_initialize): Initialize xg_detached_menus, remove
14292 initialization of xg_did_tearoff.
14293
14294 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
14295 xg_have_tear_offs returns non-zero.
14296 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
14297 call to xg_keep_popup.
14298
14299 2003-11-01 Andrew Choi <akochoi@shaw.ca>
14300
14301 * macterm.c (XTread_socket): Handle menubar selection and grow
14302 window only for mouseDown events.
14303
14304 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14305
14306 * xterm.c (x_term_init): For GTK part, increase x_initialized
14307 to check for more than one display. Use error instead of return 0.
14308
14309 2003-10-31 Andrew Choi <akochoi@shaw.ca>
14310
14311 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
14312 (copy_dysymtab): Call it.
14313
14314 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
14315
14316 * eval.c (Fdefvaralias): Doc fix.
14317
14318 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
14319
14320 * data.c (Fsetplist): Doc fix.
14321
14322 2003-10-14 Lute Kamstra <lute@gnu.org>
14323
14324 * window.c (Fset_window_fringes): Clarify docstring.
14325
14326 2003-10-14 Kim F. Storm <storm@cua.dk>
14327
14328 * window.c (Fset_window_margins): Simplify arg checking.
14329
14330 2003-10-13 Richard M. Stallman <rms@gnu.org>
14331
14332 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
14333 (print_partial_compiled_pattern): Replace assert with a printout.
14334 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
14335
14336 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
14337
14338 * window.c (Fset_window_margins): Allow only integers as args.
14339 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
14340 Doc fixes.
14341
14342 2003-10-13 Lute Kamstra <lute@gnu.org>
14343
14344 * window.c (Fset_window_fringes): Elaborate docstring.
14345
14346 2003-10-12 Andrew Choi <akochoi@shaw.ca>
14347
14348 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
14349
14350 * s/darwin.h (GC_MARK_STACK): Define.
14351
14352 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14353
14354 * window.c (shrink_windows): New function.
14355 (size_window): Call shrink_windows to calculate window sizes when
14356 shrinking frame with more than one window.
14357
14358 2003-10-12 Kim F. Storm <storm@cua.dk>
14359
14360 * xdisp.c (compute_fringe_widths): Doc fix.
14361
14362 2003-10-08 Kenichi Handa <handa@m17n.org>
14363
14364 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
14365
14366 2003-10-07 Kenichi Handa <handa@m17n.org>
14367
14368 * coding.c (Qcoding_system_define_form): New variable.
14369 (syms_of_coding): Intern and staticpro it.
14370 (Fcheck_coding_system): Try to autoload the definition of
14371 CODING-SYSTEM.
14372
14373 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
14374
14375 * fns.c (Frequire): Doc fix.
14376
14377 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14378
14379 * xfns.c (Fx_send_client_event): New function as a base for
14380 manipulating extended window manager hints.
14381 (Fx_send_client_event): Remove unused variable s.
14382
14383 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
14384 that function is removed.
14385
14386 * xterm.c (x_set_offset): Use move_offset_left/top instead of
14387 x/y_pixels_outer_diff.
14388 (x_check_expected_move): Calculate move_offset_left/top.
14389
14390 * xterm.h (struct x_output): New members: move_offset_top/left.
14391
14392 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
14393 call x_set_offset directly.
14394
14395 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
14396
14397 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
14398
14399 * xterm.c (x_delete_display): Free font names and font_encoder
14400 in dpyinfo->font_table.
14401
14402 * xfns.c (Fx_close_connection): Only call XFreeFont here.
14403 Move xfree of font names to x_delete_display.
14404
14405 * xterm.h (struct x_display_info): New member, wm_type.
14406 (struct x_output): New members, expected_top/left and
14407 check_expected_move.
14408
14409 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
14410 is received.
14411 (handle_one_xevent): Rename x_check_expected_move from
14412 x_check_fullscreen_move.
14413 (x_set_offset): Only add WM decoration sizes to modified_top/left
14414 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
14415 (x_check_expected_move): Rename from x_check_fullscreen_move.
14416 Removed fullscreen specific code. Use check_expected_move,
14417 expected_left/top instead. Also, set wm_type.
14418 (x_term_init): Initialize wm_type to unknown.
14419
14420 * frame.c (x_fullscreen_move): Remove addition of WM decoration
14421 sizes to move_x/y.
14422
14423 2003-10-03 Kenichi Handa <handa@m17n.org>
14424
14425 * macterm.c (x_load_font): Clear all members of FONTP before start
14426 filling them.
14427
14428 2003-10-02 Kenichi Handa <handa@m17n.org>
14429
14430 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
14431 before calling find_ccl_program_func. Call find_ccl_program_func
14432 only when fontp->font_encoder is not NULL.
14433
14434 * xterm.c (x_load_font): Clear all members of FONTP before start
14435 filling them.
14436
14437 2003-10-03 John Paul Wallington <jpw@gnu.org>
14438
14439 * keymap.c (map_keymap): Don't abort when binding is a vector.
14440
14441 2003-10-02 Jason Rumney <jasonr@gnu.org>
14442
14443 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
14444 Sync dependencies with Makefile.in.
14445 (alloca.o): Remove.
14446
14447 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
14448 filling them.
14449
14450 * w32bdf.c (w32_load_bdf_font): Likewise.
14451
14452 2003-09-30 Richard M. Stallman <rms@gnu.org>
14453
14454 * term.c (set_tty_color_mode): Calculate current_mode_spec
14455 regardless of value of VAL.
14456
14457 * intervals.c (graft_intervals_into_buffer):
14458 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
14459 Handle over_used when splitting UNDER.
14460
14461 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14462
14463 * regex.c (regex_compile): Free the stack when returning from function.
14464
14465 2003-09-28 Kenichi Handa <handa@m17n.org>
14466
14467 * fontset.c (Finternal_char_font): Change return value to
14468 cons (FONT-NAME . GLYPH-CODE).
14469
14470 2003-09-28 Eli Zaretskii <eliz@gnu.org>
14471
14472 * term.c (tty_setup_colors): Treat any negative argument as -1.
14473
14474 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
14475
14476 * process.c (send_process): Delete unused temp_buf.
14477
14478 2003-09-26 Dave Love <fx@gnu.org>
14479
14480 * xterm.c (x_bitmap_mask): Declare.
14481
14482 2003-09-25 Dave Love <fx@gnu.org>
14483
14484 * Makefile.in (fns.o): Depend on md5.h.
14485
14486 2003-09-25 Kim F. Storm <storm@cua.dk>
14487
14488 * window.c (set_window_buffer): Fix redisplay problems when
14489 switching between buffers with different display margin widths.
14490
14491 2003-09-23 Kim F. Storm <storm@cua.dk>
14492
14493 * process.c (set_socket_option): Fix :bindtodevice option.
14494 (Fset_network_process_option): Update process contact list when
14495 setting option succeeds.
14496 (Fmake_network_process): Doc fix.
14497
14498 2003-09-23 Dave Love <fx@gnu.org>
14499
14500 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
14501
14502 2003-09-22 Eli Zaretskii <eliz@gnu.org>
14503
14504 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
14505 color mode is an integer number (it could be -1).
14506
14507 2003-09-22 Richard M. Stallman <rms@gnu.org>
14508
14509 * intervals.c (graft_intervals_into_buffer): Correct the main loop
14510 in the case where OVER is longer than UNDER.
14511
14512 2003-09-22 Masatake YAMATO <jet@gyve.org>
14513
14514 * window.c (Fset_window_scroll_bars): Validate the value of
14515 `vertical_type'.
14516
14517 2003-09-21 Kim F. Storm <storm@cua.dk>
14518
14519 * frame.c (Vdefault_frame_scroll_bars): New variable.
14520 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
14521 (syms_of_frame): DEFVAR_LISP it, and initialize according to
14522 window-system default scroll bar position.
14523
14524 * window.c (Fwindow_scroll_bars): Doc fix.
14525
14526 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14527
14528 * xterm.c (x_set_offset): Take window manager decorations into account.
14529
14530 2003-09-19 Richard M. Stallman <rms@gnu.org>
14531
14532 * atimer.h: Don't include lisp.h.
14533 (P_): Define it here (as well as elsewhere).
14534
14535 * print.c (Fprin1_to_string): Move the PRINTPREPARE
14536 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
14537
14538 * data.c (Fvariable_binding_locus): New function.
14539 (syms_of_data): defsubr it.
14540 (Flocal_variable_p): Delete duplicate call to indirect_variable.
14541
14542 2003-09-18 Dave Love <fx@gnu.org>
14543
14544 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
14545
14546 * process.c (Fnetwork_interface_info): Fix type error.
14547 (Fnetwork_interface_list): Doc fix.
14548 (read_process_output, read_process_output): Delete unused var.
14549
14550 2003-09-17 Kim F. Storm <storm@cua.dk>
14551
14552 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
14553 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
14554 (Fnetwork_interface_info): Check that ifreq struct has required
14555 fields before accessing them; this requires that those fields are
14556 defined as macros, which may be too restrictive on some platforms,
14557 but it is better than failing on other platforms.
14558 (syms_of_process): Only defsubr above fns when included.
14559
14560 2003-09-17 Dave Love <fx@gnu.org>
14561
14562 * unexalpha.c: Don't include varargs.h.
14563
14564 2003-09-17 Kim F. Storm <storm@cua.dk>
14565
14566 * process.c (Fset_process_sentinel): Add sentinel to childp plist
14567 for network process.
14568 (socket_options): Add `:' prefix to option names. Add optbit field.
14569 (set_socket_option): Remove no_error arg and special handling of s < 0.
14570 Return 1<<optbit for known option, 0 for unknown.
14571 Do not interpret 0 as false for boolean option (only nil).
14572 Pass failed option and value to report_file_error.
14573 (Fset_network_process_options): Replace by Fset_network_process_option.
14574 (Fset_network_process_option): New function to set just one option.
14575 (Fmake_network_process): Allow :coding arg to be a cons.
14576 Allow :server arg to be an integer specifying backlog size.
14577 Remove :options arg, and allow options to be specified directly
14578 as :KEY, VALUE pairs. Parse these options before binding socket.
14579 As before, :reuseaddr t is default for a server process, but this
14580 can now be disabled by specifying :reuseaddr nil.
14581 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
14582 (init_process): Availability of network options is now checked with
14583 simpler syntax (featurep 'make-network-process :OPTION); use loop to
14584 setup features.
14585 (syms_of_process): Fix defsubr's for the replaced functions.
14586
14587 2003-09-16 Dave Love <fx@gnu.org>
14588
14589 * Makefile.in: Depend on coding.h.
14590
14591 2003-09-14 Kim F. Storm <storm@cua.dk>
14592
14593 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
14594 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
14595 (syms_of_process): Defsubr them.
14596
14597 * config.in: Regenerate.
14598
14599 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
14600
14601 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
14602 * m/news-r6.h (XUNMARK): Remove.
14603 * m/mips.h (XUNMARK): Remove.
14604 * m/mips-siemens.h (XUNMARK): Remove.
14605 * m/iris4d.h (XUNMARK): Remove.
14606 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
14607
14608 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
14609
14610 * lisp.h (VALBITS): Don't remove 1 for the markbit.
14611 (union Lisp_Object): Use unsigned int for types. Remove markbit.
14612 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
14613 (XTYPE): Use unsigned right-shift.
14614 (XMARKBIT, XMARK, XUNMARK): Remove.
14615
14616 * alloc.c (init_intervals, init_symbol, init_marker):
14617 Don't preallocate anything.
14618 (Fgarbage_collect, mark_object): Ignore the markbit.
14619
14620 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
14621
14622 2003-09-08 Lute Kamstra <lute@gnu.org>
14623
14624 * xdisp.c (pint2hrstr): New function.
14625 (decode_mode_spec): Add `%i' and `%I' specs.
14626 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
14627 for `mode-line-format'.
14628
14629 2003-09-07 Andreas Schwab <schwab@suse.de>
14630
14631 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
14632 avoid warning.
14633
14634 2003-09-07 Eli Zaretskii <eliz@gnu.org>
14635
14636 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
14637
14638 2003-09-03 Kim F. Storm <storm@cua.dk>
14639
14640 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
14641 change (superseded by 2002-08-30 change); the default blink-off
14642 cursor is now again "no cursor".
14643
14644 2003-09-01 Jason Rumney <jasonr@gnu.org>
14645
14646 * makefile.w32-in (alloca.o): Remove.
14647 (coding.o): Depend on intervals.h
14648 (emacs.o, bytecode.o): Depend on window.h
14649
14650 2003-09-01 Dave Love <fx@gnu.org>
14651
14652 * Makefile.in (alloca.o): Remove commands.
14653 (coding.o): Depend on intervals.h composite.h window.h.
14654 (emacs.o): Depend on window.h keyboard.h keymap.h.
14655 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
14656 (bytecode.o): Depend on window.h.
14657
14658 2003-08-31 Jason Rumney <jasonr@gnu.org>
14659
14660 * w32term.c (w32_per_char_metric): Allow cached metrics to be
14661 returned even when font_type is unknown.
14662
14663 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
14664
14665 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14666
14667 * xterm.c (x_term_init): Initialize new fields in x_display_info.
14668
14669 * xterm.h (struct x_display_info): Add red/green/blue_bits and
14670 *_offset.
14671
14672 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
14673 calculate pixel value.
14674
14675 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
14676
14677 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
14678 Don't tell redisplay display is accurate when it's actually been
14679 paused for pending input.
14680
14681 2003-08-29 Richard M. Stallman <rms@gnu.org>
14682
14683 * dispnew.c (adjust_glyph_matrix): Call window_box
14684 whenever W is nonzero.
14685
14686 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14687 (Fkill_local_variable, Fmake_variable_frame_local)
14688 (Flocal_variable_p, Flocal_variable_if_set_p):
14689 Use indirect_variable to trace thru variable aliases.
14690
14691 * config.in: Updated.
14692
14693 * callint.c (Fcall_interactively): Save and restore
14694 Vthis_command, Vthis_original_command, real_this_command,
14695 and current_kboard->Vlast_command.
14696
14697 * abbrev.c (Fexpand_abbrev): Insert before deleting.
14698
14699 2003-08-29 Gerd Moellmann <gerd@gnu.org>
14700
14701 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
14702
14703 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
14704
14705 * coding.c (decode_coding_iso2022): Initialize local variable c2.
14706 (decode_coding_sjis_big5): Likewise.
14707
14708 2003-08-27 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32.c (sys_pipe): Protect against file descriptor overflow.
14711
14712 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
14713
14714 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
14715
14716 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
14717
14718 * xfns.c (Vgtk_version_string): New variable.
14719 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
14720
14721 2003-08-24 Eli Zaretskii <eliz@gnu.org>
14722
14723 * term.c (term_init): Remove `const' from buffer_size's declaration.
14724
14725 * Makefile.in (msdos.o): Depend on intervals.h.
14726
14727 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
14728
14729 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14730
14731 * xterm.h (struct x_display_info): New fields: client_leader_window
14732 and Xatom_wm_client_leader.
14733
14734 * xterm.c (x_initialize): Move call to x_session_initialize to ...
14735 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
14736
14737 * xsmfns.c (create_client_leader_window): New function.
14738 (x_session_initialize): Call create_client_leader_window, take
14739 dpyinfo as argument.
14740
14741 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
14742
14743 * Makefile.in (xsmfns.o): Add more depenedencies.
14744
14745 2003-08-21 Dave Love <fx@gnu.org>
14746
14747 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
14748
14749 2003-08-21 Kenichi Handa <handa@m17n.org>
14750
14751 * term.c (term_init): Fix previous change; don't rely on the
14752 length of `buffer' if TERMINFO is defined.
14753
14754 2003-08-20 Dave Love <fx@gnu.org>
14755
14756 * atimer.h: Include lisp.h.
14757
14758 * lisp.h (EMACS_LISP_H): New.
14759 (popup_activated_flag): Don't declare.
14760
14761 * alloca.c: Some merging with gnulib. Change logic and doc
14762 concerning (x)malloc/(x)free -- no longer Emacs-specific.
14763 [DO_BLOCK_INPUT]: Don't include lisp.h.
14764 (xmalloc, xfree): Declare.
14765 (malloc): Don't declare.
14766
14767 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
14768 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
14769 atimer.h, blockinput.h.
14770
14771 * alloc.c (lisp_align_malloc): Change type of `aligned'.
14772
14773 * alloca.s: Remove.
14774
14775 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14776
14777 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
14778 use -lncurses.
14779
14780 * term.c (term_init): Use a buffer of size 4096 for tgetent since
14781 FreeBSD returns something longer than 2044. Abort if the end of
14782 the buffer is overwritten.
14783
14784 2003-08-19 Miles Bader <miles@gnu.org>
14785
14786 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
14787
14788 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14789
14790 * alloc.c (lisp_align_malloc): Check for memory full when
14791 allocating ablocks, which also avoids freeing a pointer into an
14792 ablocks structure.
14793
14794 * puresize.h (BASE_PURESIZE): Increase to 1100000.
14795
14796 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
14797
14798 2003-08-16 Richard M. Stallman <rms@gnu.org>
14799
14800 * editfns.c (Fencode_time): Doc fix.
14801
14802 2003-08-16 David Ponce <david@dponce.com>
14803
14804 * fileio.c (Fwrite_region): Fix conditional expression to issue
14805 the right message.
14806
14807 2003-08-16 Juri Linkov <juri@jurta.org>
14808
14809 * syntax.c (Fforward_word): Argument changed to optional.
14810 Set default value to 1.
14811
14812 2003-08-15 Kenichi Handa <handa@m17n.org>
14813
14814 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
14815 what autoscaled.
14816 (best_matching_font): Once we find a better scalable font, set
14817 non_scalable_has_exact_height_p to 1.
14818 (try_font_list): Call try_alternative_families to try any family
14819 with the given registry.
14820
14821 2003-08-09 Andreas Schwab <schwab@suse.de>
14822
14823 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
14824
14825 * print.c (print_string): Fix printing of multibyte string with
14826 nontrivial printcharfun.
14827
14828 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14829
14830 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
14831
14832 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
14833
14834 2003-07-31 Kenichi Handa <handa@m17n.org>
14835
14836 * process.c (read_process_output): Return the actually read bytes
14837 instead of the result of decoding.
14838
14839 2003-07-31 Kenichi Handa <handa@m17n.org>
14840
14841 * xterm.h (struct x_bitmap_record): New member have_mask.
14842
14843 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
14844 to 0.
14845 (x_create_bitmap_from_file): Likewise.
14846 (x_destroy_bitmap): Check have_mask member before freeing a mask.
14847 (x_destroy_all_bitmaps): Likewise.
14848 (x_create_bitmap_mask): Set have_mask member to 1.
14849
14850 2003-07-30 Richard M. Stallman <rms@gnu.org>
14851
14852 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
14853
14854 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14855
14856 * gtkutil.c (xg_mark_data): Update calls to mark_object.
14857
14858 2003-07-29 Richard M. Stallman <rms@gnu.org>
14859
14860 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
14861 Conditionalize XIM code on HAVE_XIM.
14862
14863 * fns.c (Fclear_string): New function.
14864 (syms_of_fns): defsubr it.
14865
14866 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14867
14868 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
14869
14870 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
14871
14872 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
14873
14874 * buffer.c (delete_all_overlays): New function.
14875 * buffer.h (delete_all_overlays): Declare.
14876 * coding.c (run_pre_post_conversion_on_str):
14877 * print.c (temp_output_buffer_setup):
14878 * fileio.c (Finsert_file_contents):
14879 * minibuf.c (get_minibuffer): Use it.
14880
14881 2003-07-22 Andrew Choi <akochoi@shaw.ca>
14882
14883 * unexmacosx.c (unexec_regions_sort_compare):
14884 (unexec_regions_merge): New functions. Sort and merge unexec
14885 regions before dumping them.
14886
14887 2003-07-22 Dave Love <fx@gnu.org>
14888
14889 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
14890
14891 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
14892
14893 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
14894 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
14895 MARKBIT as the gcmarkbit for strings.
14896
14897 2003-07-21 Richard M. Stallman <rms@gnu.org>
14898
14899 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
14900
14901 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
14902 (syms_of_fns): Corresponding change.
14903
14904 * alloc.c (syms_of_alloc): Doc fixes.
14905
14906 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
14907
14908 * s/netbsd.h: Use -Wl syntax.
14909
14910 2003-07-17 Richard M. Stallman <rms@gnu.org>
14911
14912 * xterm.c (xim_initialize): Redo 6/24 change.
14913
14914 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
14915
14916 * buffer.c (copy_overlays): Use EMACS_INT for positions.
14917 (Fswitch_to_buffer): Don't signal an error when switching to the same
14918 buffer in a dedicated window.
14919
14920 * alloc.c: Use bitmaps for cons, as was done for floats.
14921 (init_float, init_cons): Let the normal code allocate the first block.
14922 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
14923 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
14924 New macros.
14925 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
14926 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
14927 (live_cons_p): Check the pointer is not past the `conses' array.
14928 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
14929 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
14930 (survives_gc_p): Use CONS_MARKED_P and simplify.
14931 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
14932
14933 2003-07-13 Paul Eggert <eggert@twinsun.com>
14934
14935 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
14936 puts it into BSS instead, at least on Solaris 8 and 9.
14937 This is a valid optimization, and it may occur on other platforms,
14938 so Emacs should not assume that initializing a static variable to
14939 zero puts it into data.
14940 * alloc.c (pure, staticvec):
14941 Initialize these arrays to nonzero, so that they're not
14942 put into BSS by that optimization.
14943
14944 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
14945
14946 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
14947 (lisp_align_malloc): Use posix_memalign is available.
14948 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
14949 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
14950 for consistency. Update users.
14951
14952 2003-07-13 Richard M. Stallman <rms@gnu.org>
14953
14954 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
14955
14956 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
14957
14958 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
14959 and use the Gtk+ function gtk_window_icon_from_file if available.
14960
14961 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
14962 handle mask of bitmaps.
14963 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
14964 mask property.
14965 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
14966
14967 * xterm.h (xg_set_icon): New function.
14968
14969 2003-07-12 Paul Eggert <eggert@twinsun.com>
14970
14971 * unexelf.c (unexec): Consider a section to precede the .bss
14972 section if its addresses overlap that of .bss.
14973
14974 2003-07-12 Richard M. Stallman <rms@gnu.org>
14975
14976 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
14977
14978 * config.in (HAVE_CRTIN): Add #undef.
14979 (INLINE): Really inline only if OPTIMIZE is defined.
14980
14981 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
14982 END_FILES_1.
14983 (START_FILES_1, END_FILES_1): New macros (conditional).
14984 (LD_SWITCH_SYSTEM_TEMACS): Define.
14985
14986 * s/openbsd.h: Don't include bsd4-3.h.
14987 (TERMINFO): Define.
14988 (LIBS_TERMCAP): Define.
14989 (LD_SWITCH_SYSTEM): Define (two definitions).
14990
14991 * xfns.c: Include libpng/png.h instead of png.h.
14992
14993 2003-07-11 Andreas Schwab <schwab@suse.de>
14994
14995 * buffer.c (modify_overlay): Update prototype.
14996 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
14997 Likewise.
14998
14999 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15000
15001 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
15002 (struct interval): Move to intervals.h.
15003 (struct Lisp_Marker): Use EMACS_INT for position info.
15004 (forward_point): Remove prototype of defunct function.
15005 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
15006 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
15007 (syms_of_textprop, set_text_properties): Remove prototypes that are
15008 already in intervals.h.
15009
15010 * intervals.h (struct interval): Move from lisp.h.
15011 Use EMACS_INT for position and size info.
15012
15013 * coding.c: Include intervals.h for Fset_text_properties.
15014
15015 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15016 position and length information.
15017
15018 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15019
15020 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15021 position and length information.
15022
15023 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15024
15025 Change overlays_after and overlays_before so the overlays themselves
15026 are linked into lists, rather than using cons cells. After all each
15027 Lisp_Misc already occupies 5 words, so we can add a `next' field to
15028 Lisp_Overlay for free and save up one cons cell per overlay (not
15029 to mention one indirection when traversing the list of overlay).
15030
15031 * lisp.h (struct Lisp_Overlay): New field `next'.
15032
15033 * buffer.h (struct buffer): Change overlays_before and overlays_after
15034 from Lisp lists of overlays to pointers to overlays.
15035
15036 * buffer.c (overlay_strings, recenter_overlay_lists):
15037 Fix typo in eassert in last commit.
15038 (unchain_overlay): New function.
15039 (add_overlay_mod_hooklist): Use AREF.
15040 (copy_overlays, reset_buffer, overlays_at, overlays_in)
15041 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
15042 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
15043 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
15044 (report_overlay_modification, evaporate_overlays, init_buffer_once):
15045 Adjust to new type of overlays_(before|after).
15046
15047 * alloc.c (mark_object): Mark the new `next' field of overlays.
15048 (mark_buffer): Manually mark the overlays_(after|before) fields.
15049
15050 * coding.c (run_pre_post_conversion_on_str):
15051 * editfns.c (overlays_around):
15052 * xdisp.c (load_overlay_strings):
15053 * fileio.c (Finsert_file_contents):
15054 * indent.c (current_column):
15055 * insdel.c (signal_before_change, signal_after_change):
15056 * intervals.c (set_point_both):
15057 * print.c (temp_output_buffer_setup): Use new type for
15058 overlays_(before|after).
15059
15060 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
15061
15062 * buffer.c (report_overlay_modification): Don't run hooks while
15063 traversing the list of overlays.
15064
15065 * buffer.h (struct buffer): Use an int for overlay_center.
15066 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15067 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15068
15069 * buffer.c (reset_buffer, recenter_overlay_lists)
15070 (adjust_overlays_for_insert, adjust_overlays_for_delete)
15071 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
15072 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
15073 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15074 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15075
15076 * xdisp.c (fast_find_position): Remove unused var.
15077
15078 * cmds.c (Qexpand_abbrev): New sym.
15079 (syms_of_cmds): Initialize it.
15080 (internal_self_insert): Use it to call expand-abbrev.
15081
15082 2003-07-09 Kim F. Storm <storm@cua.dk>
15083
15084 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
15085 was configured with --without-xim.
15086 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
15087
15088 2003-07-07 Richard M. Stallman <rms@gnu.org>
15089
15090 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
15091
15092 * alloc.c (Fgarbage_collect): Doc fix.
15093
15094 2003-07-07 Nozomu Ando <nand@mac.com>
15095
15096 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
15097
15098 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15099
15100 * minibuf.c (read_minibuf): UNGCPRO before returning.
15101 (Ftry_completion, Fall_completions): Doc fix.
15102
15103 * alloc.c (live_float_p): Check that p is not past the `floats' array,
15104 now that `floats' is not the last element of the struct any more.
15105
15106 2003-07-06 Jason Rumney <jasonr@gnu.org>
15107
15108 * w32term.h (ClipboardSequence_Proc): New type.
15109
15110 * w32fns.c (clipboard_sequence_fn): New variable.
15111 (globals_of_w32fns): Initialize it.
15112
15113 * w32select.c (last_clipboard_sequence_number): New variable.
15114 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
15115 number if possible.
15116
15117 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15118
15119 * m/amdx86-64.h (MARKBIT):
15120 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
15121 MARKBIT and ARRAY_MARK_FLAG any more.
15122
15123 * m/hp800.h (XSETMARKBIT):
15124 * m/sr2k.h (XSETMARKBIT):
15125 * lisp.h (XSETMARKBIT): Remove unused macro.
15126
15127 * lisp.h (mark_object): Change prototype.
15128
15129 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
15130 (last_marked): Change accordingly.
15131 (mark_interval, mark_maybe_object, mark_maybe_pointer)
15132 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
15133 (mark_buffer): Update calls to mark_object.
15134
15135 * bytecode.c (mark_byte_stack):
15136 * fns.c (sweep_weak_table):
15137 * keyboard.c (mark_kboards): Update calls to mark_object.
15138
15139 2003-07-06 Jason Rumney <jasonr@gnu.org>
15140
15141 * alloc.c (struct ablock): Only include padding when there is some.
15142
15143 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
15144
15145 * alloc.c (ALIGN): Add casts to simplify usage.
15146 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
15147 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
15148 (struct ablock, struct ablocks): New types.
15149 (free_ablock): New global var.
15150 (lisp_align_malloc, lisp_align_free): New functions.
15151 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
15152 (struct float_block): Reorder and add gcmarkbits.
15153 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
15154 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
15155 (init_float, make_float): Use lisp_align_malloc.
15156 (free_float, live_float_p): Don't use `type' any more.
15157 (make_float): Use FLOAT_UNMARK to access to mark bit.
15158 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
15159 Use FLOAT_MARKED_P to access the mark bit.
15160 (pure_alloc): Simplify use of ALIGN.
15161 (mark_object): Use FLOAT_MARK to access the mark bit.
15162 (gc_sweep): Use new macros to access the float's mark bit.
15163 (init_alloc_once): Init free_ablock.
15164
15165 * lisp.h (struct Lisp_Float): Remove unused field `type'.
15166
15167 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
15168
15169 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
15170 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
15171 (allocate_buffer): Move.
15172 (string_bytes): Don't mask markbit of `size_byte'.
15173 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15174 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
15175 Use the `size' field of buffers (rather than the `name' field) for
15176 the mark bit, as is done for all other vectorlike objects.
15177 Use the new macros to access the mark bit of vectorlike objects.
15178
15179 2003-06-26 Richard M. Stallman <rms@gnu.org>
15180
15181 * puresize.h (BASE_PURESIZE): Increment base size.
15182
15183 * xdisp.c (fast_find_position): Enable Gerd's new definition.
15184
15185 * xterm.c (xim_initialize): Undo previous change.
15186
15187 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
15188
15189 * alloc.c (survives_gc_p): Simplify.
15190
15191 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
15192
15193 * window.c (Fset_window_dedicated_p): Simplify.
15194 (display_buffer_1): Don't raise the win from which minibuf was entered.
15195 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
15196 (Fminibuffer_selected_window): Simplify.
15197
15198 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
15199
15200 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
15201 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
15202
15203 * insdel.c (check_markers, adjust_markers_for_delete)
15204 (adjust_markers_for_insert, adjust_markers_for_replace)
15205 (prepare_to_modify_buffer, RESTORE_VALUE):
15206 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
15207 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
15208 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
15209 * alloc.c (Fmake_marker, free_marker, gc_sweep):
15210 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
15211 * editfns.c (save_excursion_restore, transpose_markers):
15212 * window.c (delete_window):
15213 * xdisp.c (message_dolog): Update for new types.
15214
15215 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15216
15217 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
15218 (realize_default_face): Use default_face_done_p for the force_p
15219 argument to set_lface_from_font_name. Set default_face_done_p to one.
15220
15221 * frame.c (make_frame): Initialize default_face_done_p.
15222
15223 * frame.h (struct frame): Add default_face_done_p.
15224
15225 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
15226 will be defined.
15227
15228 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
15229
15230 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
15231 Initialize the new field `gcmarkbit'.
15232 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
15233 (mark_interval_tree): Don't mark the tree separately from the nodes.
15234 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
15235 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15236 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
15237
15238 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
15239 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
15240 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
15241 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
15242 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
15243
15244 2003-06-24 Dave Love <fx@gnu.org>
15245
15246 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
15247
15248 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
15249 from gnulib.
15250
15251 2003-06-21 Richard M. Stallman <rms@gnu.org>
15252
15253 * fileio.c (Fwrite_region): Alternate messages
15254 for append and partial write.
15255
15256 * keyboard.c (read_key_sequence): When converting upcase fn key to
15257 downcase, update fkey and keytran so `backspace' gets translated.
15258
15259 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
15260
15261 * process.c (wait_reading_process_input): Don't signal SIGIO
15262 in batch mode.
15263
15264 2003-06-17 Kenichi Handa <handa@m17n.org>
15265
15266 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
15267 composite.h.
15268
15269 * xselect.c: Don't include charset.h, coding.h, composite.h.
15270 (Qforeign_selection): New variable.
15271 (syms_of_xselect): Intern and static it.
15272 (selection_data_to_lisp_data): Return a unibyte string made from
15273 data with `foreign-selection' text property.
15274
15275 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
15276
15277 * termhooks.h (EVENT_INIT): New macro.
15278
15279 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
15280
15281 * alloc.c (mark_kboards): Move to keyboard.c.
15282
15283 * keyboard.c (record_asynch_buffer_change, read_avail_input):
15284 * xterm.c (x_dispatch_event):
15285 * xmenu.c (find_and_call_menu_selection):
15286 * xdisp.c (handle_tool_bar_click):
15287 * w32menu.c (menubar_selection_callback):
15288 * sysdep.c (kbd_input_ast, read_input_waiting):
15289 * msdos.c (dos_rawgetc):
15290 * macterm.c (mac_check_for_quit_char):
15291 * macmenu.c (menubar_selection_callback):
15292 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
15293 data to kbd_buffer_store_event.
15294
15295 2003-06-15 Kim F. Storm <storm@cua.dk>
15296
15297 * xdisp.c (x_fix_overlapping_area): Always use area relative X
15298 to fix redisplay problem with tall characters (such as \e,AC\e(B).
15299
15300 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15301
15302 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
15303
15304 2003-06-12 Kenichi Handa <handa@m17n.org>
15305
15306 * fileio.c (Fwrite_region): Save and restore restriction.
15307
15308 2003-06-12 Dave Love <fx@gnu.org>
15309
15310 * alloca.c (alloca): Declare arg as size_t.
15311
15312 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
15313 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
15314
15315 2003-06-11 Dave Love <fx@gnu.org>
15316
15317 * search.c (shrink_regexp_cache): Use xrealloc.
15318 (syms_of_search): Use xmalloc.
15319
15320 2003-06-10 Kim F. Storm <storm@cua.dk>
15321
15322 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
15323 Adjust phys_cursor.x to be relative to window box, rather than
15324 text area before checking -- to ensure cursor is redrawn when
15325 exposing window.
15326 Note: This also fixes a similar (older) bug if display margins
15327 are present.
15328
15329 2003-06-06 Kenichi Handa <handa@m17n.org>
15330
15331 * coding.c (encoding_buffer_size): If coding->type is
15332 coding_type_ccl, double magnification on CRLF encoding.
15333
15334 2003-06-06 Jason Rumney <jasonr@gnu.org>
15335
15336 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
15337 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
15338
15339 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
15340 Mac too.
15341
15342 2003-06-05 Dave Love <fx@gnu.org>
15343
15344 * strftime.c: Merge changes from gnulib.
15345
15346 * mktime.c (__mktime_internal): Merge changes from gnulib
15347 involving year 69 and dst2.
15348
15349 Changes to merge with gnulib version and be consistent with the
15350 autoconf test:
15351
15352 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
15353 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
15354 [HAVE_LOCALE_H]: Include locale.h.
15355 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
15356
15357 2003-06-05 Kim F. Storm <storm@cua.dk>
15358
15359 * window.c (coordinates_in_window): Convert X and Y to window
15360 relative coordinates inside mode-line and header-line parts.
15361 Convert X and Y to margin area relative coordinates inside left
15362 and right display margin parts.
15363
15364 2003-06-05 Jason Rumney <jasonr@gnu.org>
15365
15366 * w32fns.c (add_system_logical_colors_to_map): New function.
15367 (Fx_open_connection): Use it.
15368
15369 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
15370
15371 * process.c (allocate_pty): Revert part of the previous patch.
15372 (Faccept_process_output): Simplify.
15373
15374 2003-06-04 Jason Rumney <jasonr@gnu.org>
15375
15376 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
15377
15378 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
15379 (lispy_mouse_wheel_names): Remove.
15380 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
15381 Always define drag_and_drop_syms.
15382
15383 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
15384 WHEEL_EVENT events.
15385
15386 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
15387
15388 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
15389
15390 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
15391
15392 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15393
15394 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
15395 menu item label.
15396
15397 2003-06-03 Richard M. Stallman <rms@gnu.org>
15398
15399 * window.c (Fwindow_edges): Doc fix.
15400 (Fwindow_pixel_edges, Fwindow_inside_edges)
15401 (Fwindow_inside_pixel_edges): New functions.
15402 (syms_of_window): defsubr them.
15403
15404 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
15405 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
15406
15407 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
15408
15409 * dispnew.c (Fsit_for): Don't lie about the number of args.
15410
15411 2003-06-02 Dave Love <fx@gnu.org>
15412
15413 * callproc.c: Use HAVE_FCNTL_H, not USG5.
15414 (syms_of_callproc) <process-environment>: Doc fix.
15415
15416 * doc.c: Use HAVE_FCNTL_H, not USG5.
15417
15418 * xfaces.c (font_rescale_ratio): Fix for K&R.
15419
15420 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
15421
15422 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
15423
15424 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
15425
15426 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
15427 (xg_create_frame_widgets): Use ENCODE_UTF_8.
15428
15429 * xterm.c (Qutf_8): Move to coding.c
15430
15431 * xmenu.c (ENCODE_MENU_STRING): New.
15432 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
15433 Use it.
15434
15435 * coding.h (ENCODE_UTF_8): New.
15436 (Qutf_8): Declare.
15437
15438 * coding.c (Qutf_8): New.
15439 (syms_of_coding): Intern it.
15440
15441 * fns.c: Doc fixes.
15442
15443 2003-06-02 Kenichi Handa <handa@m17n.org>
15444
15445 * buffer.c (Fset_buffer_multibyte): Fix previous change.
15446
15447 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
15448
15449 * lread.c (openp): Make sure STR is a string.
15450
15451 2003-06-01 David Ponce <david@dponce.com>
15452
15453 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
15454 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
15455
15456 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
15457 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
15458 (discard_mouse_events): Discard WHEEL_EVENT events too.
15459 (lispy_wheel_names, wheel_syms): New.
15460 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
15461 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
15462 (make_lispy_event): Add WHEEL_EVENT handler.
15463
15464 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
15465 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
15466 WHEEL_EVENT events.
15467
15468 2003-05-31 John Paul Wallington <jpw@gnu.org>
15469
15470 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
15471 timer are in lisp/emacs-lisp.
15472
15473 2003-05-31 Kenichi Handa <handa@m17n.org>
15474
15475 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
15476 region when a buffer is changed to unibyte.
15477
15478 * charset.h (VALID_LEADING_CODE_P): New macro.
15479 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
15480
15481 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
15482 is nonzero, accept multibyte form of eight-bit-control chars.
15483 (decode_composition_emacs_mule): Likewise.
15484 (decode_coding_emacs_mule): Likewise.
15485 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
15486 multibyte form of eight-bit-control chars.
15487
15488 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
15489 (Finsert_file_contents): If coding-system-for-read is bound to
15490 Qauto_save_coding, use the coding system emacs-mule with special
15491 setting for recovering a file.
15492 (choose_write_coding_system): On auto saving, use the coding
15493 system emacs-mule with special setting for auto saving.
15494 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
15495
15496 2003-05-30 Kenichi Handa <handa@m17n.org>
15497
15498 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
15499 properly before calling ccl_driver.
15500
15501 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
15502
15503 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
15504 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
15505 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
15506
15507 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
15508
15509 * xfaces.c (realize_default_face): Do not abort if lface is
15510 non-existent - reverts change from 2003-05-19.
15511
15512 2003-05-29 Kenichi Handa <handa@m17n.org>
15513
15514 * coding.c (decode_coding_iso2022): Pay attention to the byte
15515 sequence of CTEXT extended segment, and retain those bytes as is.
15516
15517 2003-05-28 Kenichi Handa <handa@m17n.org>
15518
15519 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
15520 of CODING_REPLACEMENT_CHARACTER.
15521 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
15522 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
15523 check this flag on encoding.
15524 (encode_coding_sjis_big5):
15525 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
15526 (Fset_terminal_coding_system_internal):
15527 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
15528 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
15529
15530 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
15531 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15532 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
15533
15534 2003-05-28 Richard M. Stallman <rms@gnu.org>
15535
15536 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
15537
15538 * eval.c (unbind_to): Move init of this_binding to separate statement.
15539
15540 2003-05-28 Kim F. Storm <storm@cua.dk>
15541
15542 * xdisp.c (expose_window): Fix error in calculation of
15543 window relative coordinates of area to redisplay.
15544
15545 2003-05-27 Jason Rumney <jasonr@gnu.org>
15546
15547 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
15548
15549 2003-05-27 David Ponce <david@dponce.com>
15550
15551 Handle W32 mouse wheel events as mouse click events, like in X.
15552
15553 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
15554 MOUSE_WHEEL_EVENT anymore.
15555
15556 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
15557 Scrolling down/up the mouse wheel is respectively mapped to mouse
15558 button 4 and 5.
15559 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
15560 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
15561 WM_MOUSEWHEEL events.
15562
15563 2003-05-27 Andreas Schwab <schwab@suse.de>
15564
15565 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
15566
15567 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
15568 partially visible line.
15569
15570 * alloc.c (Fgarbage_collect): Fix last change.
15571
15572 2003-05-26 John Paul Wallington <jpw@gnu.org>
15573
15574 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
15575
15576 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
15577
15578 * window.c (Fset_window_buffer): Add type of `keep_margins'.
15579 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
15580
15581 * window.h (window_box_text_cols): Declare.
15582
15583 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
15584 (x_draw_vertical_border): Remove unused var `f'.
15585
15586 * xfaces.c (build_scalable_font_name): Remove `unused var
15587 pixel_size' warning.
15588
15589 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
15590
15591 * unexelf.c (unexec): Remove `unused var n' warning.
15592
15593 * strftime.c (my_strftime_localtime_r): Remove `defined but
15594 unused' warning.
15595
15596 * process.c (allocate_pty): Remove `unused var stb' and
15597 `cp might be used uninitialized' warnings.
15598
15599 * dispnew.c (mode_line_string): Remove unused var `f'.
15600
15601 * coding.c (find_safe_codings): Remove unused var `i'.
15602
15603 * bytecode.c (Fbyte_code): Remove `unused val' warning.
15604
15605 * buffer.c (Fkill_buffer): Remove unused var `list'.
15606
15607 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
15608
15609 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15610
15611 * frame.c (make_frame): Condition want_fullscreen with
15612 HAVE_WINDOW_SYSTEM.
15613
15614 2003-05-25 Juanma Barranquero <lektu@terra.es>
15615
15616 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
15617 (Fwindow_scroll_bars): Fix typo in docstring.
15618
15619 2003-05-24 Kim F. Storm <storm@cua.dk>
15620
15621 The following changes serve several purposes:
15622
15623 1) Swap the position of fringes and display margins in windows, i.e.
15624 the fringes are now displayed between the margins and the text area
15625 (by default).
15626
15627 2) Allow fringe and scroll bar parameters to be set per-buffer and
15628 per-window (like display margins). Such settings are now stored
15629 in window configurations, preserved when frames are resized, and
15630 copied when windows are split vertically or horizontally.
15631 Several bugs related to display margins have been fixed.
15632
15633 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
15634
15635 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
15636 rather than FRAME_WIDTH (FRAME_FONT (f)).
15637
15638 5) Introduce a consistent naming of variables, members and macros
15639 depending on whether their value is measured in pixels or in
15640 canonical columns/lines. Pixel dimensions are named *_width and
15641 *_height, while canonical columns/lines are named *_cols and
15642 *_lines. Pixel positions are named *_x and *_y, while column/line
15643 positions are named *_col and *_line.
15644
15645 6) Consolidate more of the X, W32, and MAC gui code by moving
15646 common data into struct frame, and generalize it for the non-gui
15647 case by using suitable defaults.
15648
15649 7) Cleanup and consolidate the macros controlling frame and window
15650 layout into frame.h and window.h, and generalize the use of the
15651 various window_box_* functions (enhanced to handle the new fringe
15652 position and the per-window fringe and scroll bar settings).
15653
15654 * frame.h (struct frame): Rename members height to text_lines,
15655 width to text_cols, window_height to total_lines, window_width to
15656 total_cols, new_height to new_text_lines, new_width to
15657 new_text_cols. All uses changed.
15658 (struct frame): New members which consolidate common members of
15659 x_output, w32_output, and mac_output structures: left_pos,
15660 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
15661 win_gravity, size_hint_flags, border_width, internal_border_width,
15662 line_height, fringe_cols, left_fringe_width, right_fringe_width,
15663 want_fullscreen. All uses changed.
15664 (struct frame): New member column_width contaning the canonical
15665 column width, analogue to line_height. All uses changed.
15666 (struct frame): Rename members scroll_bar_pixel_width to
15667 config_scroll_bar_width, and scroll_bar_cols to
15668 config_scroll_bar_cols. All uses changed.
15669 (struct frame): New member scroll_bar_actual_width which
15670 consolidates and renames the vertical_scroll_bar_extra member of
15671 x_output, w32_output, and mac_output structures. All uses changed.
15672 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
15673 from x/w32/macterm.h files. All uses changed. Also change code
15674 which referred to f->output_data...->pixel_height.
15675 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
15676 from x/w32/macterm.h files. All uses changed. Also change code
15677 which referred to f->output_data...->pixel_width.
15678 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
15679 Also change code which referred to f->height.
15680 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
15681 Also change code which referred to f->width.
15682 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
15683 to update new_text_lines and new_text_cols members directly.
15684 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
15685 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
15686 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
15687 FRAME_SCROLL_BAR_COLS. All uses changed.
15688 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
15689 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
15690 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
15691 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
15692 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
15693 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
15694 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
15695 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
15696 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
15697 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
15698 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
15699 Unconditionally return line_height member (it now has proper value
15700 also for non-window frames).
15701 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
15702 return new column_width member (rather than the default font width).
15703 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
15704 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
15705 from x/w32/macterm.h files. Unconditionally return corresponding
15706 member of frame structure (they now have proper values also for
15707 non-window frames).
15708 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
15709 Calculate return value from left and right widths.
15710 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
15711 internal_border_width member (has proper value for non-window frame).
15712 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
15713 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
15714 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
15715 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
15716 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
15717 consolidated from xterm.h, macterm.h, and w32term.h.
15718 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
15719 consolidated from xterm.h, macterm.h, and w32term.h.
15720 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
15721 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
15722 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
15723 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
15724 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
15725 consolidated from x/mac/w32term.h.
15726 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
15727 consolidated from x/mac/w32term.h.
15728 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
15729 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
15730 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
15731 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
15732
15733 * window.h (struct window): Rename members left to left_col,
15734 top to top_line, height to total_lines, width to total_cols,
15735 left_margin_width to left_margin_cols, right_margin_width to
15736 right_margin_cols, orig_height to orig_total_lines, orig_top to
15737 orig_top_line. All uses changed.
15738 (struct window): New members left_fringe_width, right_fringe_width,
15739 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
15740 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
15741 New macros primarily used to simplify other macros.
15742 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
15743 referred to XINT (w->width).
15744 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
15745 referred to XINT (w->height).
15746 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
15747 referred to XINT (w->width) * canon_x_unit.
15748 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
15749 referred to XINT (w->height) * canon_y_unit.
15750 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
15751 referred to XINT (w->left).
15752 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
15753 all uses and code that referred to XINT (w->left) + XINT (w->width).
15754 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
15755 referred to XINT (w->top).
15756 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
15757 referred to XINT (w->top) + XINT (w->height).
15758 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
15759 referred to XINT (w->left) * canon_x_unit.
15760 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
15761 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
15762 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
15763 referred to XINT (w->top) * canon_y_unit.
15764 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
15765 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
15766 (WINDOW_LEFTMOST_P): New macro.
15767 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
15768 All uses changed.
15769 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
15770 All uses changed.
15771 (WINDOW_BOX_LEFT_EDGE_X): Rename from
15772 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
15773 Do not exclude left fringe width.
15774 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
15775 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
15776 Do not exclude fringe widths.
15777 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
15778 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
15779 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
15780 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
15781 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
15782 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
15783 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
15784 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
15785 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
15786 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
15787 New macros. Change code which referenced corresponding
15788 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
15789 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
15790 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
15791 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
15792 allow per-window scroll-bar settings.
15793 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
15794 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
15795 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
15796 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
15797 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
15798 FRAME_SCROLL_BAR_WIDTH.
15799 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
15800 (WINDOW_SCROLL_BAR_AREA_X): New macros.
15801 (WINDOW_HEADER_LINE_HEIGHT): Rename from
15802 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
15803 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
15804 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
15805 (WINDOW_BOX_TEXT_HEIGHT): Rename from
15806 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
15807 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15808 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15809 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
15810 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
15811 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15812 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
15813 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15814 (window_from_coordinates): Update prototype.
15815 (Fset_window_buffer): Update EXFUN.
15816 (set_window_buffer): Update prototype.
15817
15818 * dispextern.h (struct glyph_matrix): Rename members window_left_x
15819 to window_left_col, window_top_y to window_top_line. All uses
15820 changed.
15821 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
15822 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
15823 internal_border_width is now set to 0 for non-window frames.
15824 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
15825 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
15826 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
15827 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
15828 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
15829 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15830 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15831 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
15832 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
15833 Move to window.h and renamed [see window.h changes].
15834 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
15835 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
15836 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
15837 Use WINDOW_TOTAL_LINES.
15838 (frame_update_line_height): Remove prototype.
15839
15840 * buffer.h (struct buffer): Rename members measured in columns:
15841 left_margin_width to left_margin_cols, right_margin_width to
15842 right_margin_cols. All uses changed.
15843 New members left_fringe_width, right_fringe_width,
15844 fringes_outside_margins for per-buffer fringe settings.
15845 New members scroll_bar_width and vertical_scroll_bar_type for
15846 per-buffer scroll bar settings.
15847
15848 * buffer.c (init_buffer_once): Set buffer_defaults and
15849 buffer_local_flags for new buffer-local variables
15850 left_fringe_width, right_fringe_width, fringes_outside_margins,
15851 scroll_bar_width, and vertical_scroll_bar_type.
15852 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
15853 default-* variables for them.
15854
15855 * dispnew.c: Make (many) trivial substitutions for renamed and
15856 new macros in dispextern.h, frame.h and window.h.
15857 (mode_line_string): No need to adjust width for mode lines, as it
15858 is already adjusted by the caller.
15859 (marginal_area_string): Handle fringes inside/outside margins.
15860
15861 * frame.c: Make (many) trivial substitutions for renamed and
15862 new macros in dispextern.h, frame.h and window.h.
15863 (make_frame): Initialize left_fringe_width, right_fringe_width,
15864 fringe_cols, scroll_bar_actual_width, border_width,
15865 internal_border_width, column_width, line_height, x_pixels_diff,
15866 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
15867 members with values suitable for a non-window frames.
15868
15869 * gtkutil.c: Make (many) trivial substitutions for renamed and
15870 new macros in dispextern.h, frame.h and window.h.
15871
15872 * indent.c: Make (few) trivial substitutions for renamed and
15873 new macros in dispextern.h, frame.h and window.h.
15874
15875 * keyboard.c: Make (many) trivial substitutions for renamed and
15876 new macros in dispextern.h, frame.h and window.h.
15877 (make_lispy_event): Use window positions returned from
15878 window_from_coordinates when constructing the lisp event for
15879 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
15880 (incorrect) values locally.
15881 (make_lispy_movement): Use window positions returned from
15882 window_from_coordinates when constructing the lisp event, rather
15883 than calculating (incorrect) values locally.
15884
15885 * scroll.c: Make (some) trivial substitutions for renamed and
15886 new macros in dispextern.h, frame.h and window.h.
15887
15888 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
15889 scroll-bars.
15890
15891 * sysdep.c: Make (few) trivial substitutions for renamed and
15892 new macros in dispextern.h, frame.h and window.h.
15893
15894 * term.c: Make (some) trivial substitutions for renamed and
15895 new macros in dispextern.h, frame.h and window.h.
15896
15897 * widget.c: Make (few) trivial substitutions for renamed and
15898 new macros in dispextern.h, frame.h and window.h.
15899
15900 * window.c: Make (many) trivial substitutions for renamed and
15901 new macros in dispextern.h, frame.h and window.h.
15902 (make_window): Initialize new members
15903 left_margin_cols, right_margin_cols, left_fringe_width,
15904 right_fringe_width, fringes_outside_margins, scroll_bar_width,
15905 and vertical_scroll_bar_type.
15906 (coordinates_in_window): Adapt to new fringe/margin positions
15907 and per-window fringes and scroll-bars.
15908 Fix bug related to incorrectly adjusting coordinates by
15909 frame's internal_border_width (the effect normally negible since
15910 the internal_border_width is typically 0 or 1 pixel, but very
15911 noticeable for an internal_border_width of e.g. 25 pixels).
15912 Upon successful return (other than ON_NOTHING), the coordinates
15913 are now always properly converted to window relative for the
15914 given display element.
15915 (window_from_coordinates): Add new parameters wx and wy to
15916 return the window relative x and y position in the returned
15917 window and part. A null arg means, don't return the position.
15918 All callers changed.
15919 (adjust_window_margins): New function which may reduce the width
15920 of the display margins if a window's text area is too small after
15921 resizing or splitting windows.
15922 (size_window): Fix bug that did not account for display margin
15923 widths when checking the minimum width of a window; use
15924 adjust_window_margins.
15925 (set_window_buffer): Call Fset_window_fringes and
15926 Fset_window_scroll_bars to setup per-window elements.
15927 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
15928 existing display margin, fringe widths, and scroll bar settings
15929 (e.g. after splitting a window or resizing the frame).
15930 All callers changed.
15931 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
15932 (Fsplit_window): Duplicate original window's display margin,
15933 fringe, and scroll-bar settings; then call Fset_window_buffer with
15934 KEEP_MARGINS non-nil. This fixes a bug which caused a split
15935 window to only preserve the display margins in one of the windows.
15936 When splitting horizontally, call adjust_window_margins on both
15937 windows to ensure that the text area of the new windows is non too
15938 narrow. This fixes a bug which could cause Emacs to trap if the
15939 width of the split window was less than the width of the display
15940 margins.
15941 (window_box_text_cols): Rename from window_internal_width.
15942 All uses changed. Adapt to per-window fringes and scroll bars.
15943 Fix bug that caused vertical separator to be subtracted also on
15944 window frames. Fix another bug that did not reduce the returned
15945 value by the columns used for display margins.
15946 (window_scroll_line_based): Fix bug related to scrolling too much
15947 when display margins are present (implicitly fixed by the fix to
15948 window_box_text_cols).
15949 (scroll_left, scroll_right): Fix bug related to scrolling too far
15950 by default when display margins are present (implicitly fixed by
15951 the fix to window_box_text_cols).
15952 (struct saved_window): Rename members left to left_col, top to
15953 top_line, width to total_cols, height to total_lines, orig_top to
15954 orig_top_line, orig_height to orig_total_lines. All uses changed.
15955 New members left_margin_cols, right_margin_cols,
15956 left_fringe_width, right_fringe_width, fringes_outside_margins,
15957 scroll_bar_width, and vertical_scroll_bar_type for saving
15958 per-window display elements.
15959 (Fset_window_configuration): Restore display margins, fringes,
15960 and scroll bar settings. This fixes a bug which caused display
15961 margins to be discarded when saving and restoring a window
15962 configuration.
15963 (save_window_save): Save display margins, fringes, and scroll bar
15964 settings. This fixes a bug which caused display margins to be
15965 discarded when saving and restoring a window configuration.
15966 (Fset_window_margins): Do nothing if display margins are not
15967 really changed. Otherwise, call adjust_window_margins to ensure
15968 the text area doesn't get too narrow. This fixes a bug which
15969 could cause Emacs to trap if setting display margins wider than
15970 the width of the window.
15971 (Fset_window_fringes): New defun to allow user to specifically set
15972 this window's fringe widths and position vs. display margins.
15973 (Fwindow_fringes): New defun to return window's actual fringe settings.
15974 (Fset_window_scroll_bars): New defun to allow user to specifically
15975 set this window's scroll bar width and position.
15976 (Fwindow_scroll_bars): New defun to return window's actual scroll
15977 bar settings.
15978 (compare_window_configurations): Also compare display margins,
15979 fringes, and scroll bar settings.
15980 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
15981
15982 * xdisp.c: Make (many) trivial substitutions for renamed and
15983 new macros in dispextern.h, frame.h and window.h.
15984 (window_box_width): Adapt to per-window fringes and scroll bars,
15985 and new fringe vs. display margin position. Note that returned
15986 value is no longer guaranteed to be a whole multiple of the frame
15987 column width, since per-window fringes may now be any width.
15988 (window_box_left_offset): New function like window_box_left, but
15989 value is relative to left border of window (rather than frame).
15990 (window_box_right_offset): New function like window_box_right,
15991 but value is relative to left border of window.
15992 (window_box_left): Adapt to per-window fringes and scroll bars,
15993 and new fringe vs. display margin position. Simplify by using
15994 WINDOW_LEFT_EDGE_X and window_box_left_offset.
15995 (window_box): Allow null args for unnecessary return values;
15996 change/simplify relevant callers.
15997 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
15998 and new fringe vs. display margin position.
15999 Use window_box_left_offset and window_box_right_offset
16000 (get_glyph_string_clip_rect): Adapt to per-window fringes and
16001 scroll bars, and new fringe vs. display margin position.
16002 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
16003 (draw_fringe_bitmap): Rework to handle per-window fringes and new
16004 fringe vs. display margin position.
16005 (hscroll_window_tree): Use window_box_width instead of window_box.
16006 (redisplay_window): Adapt to per-window scroll bars.
16007 (draw_glyphs): Rework to handle per-window fringes and scroll
16008 bars, and new fringe vs. display margin position.
16009 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
16010 (x_clear_end_of_line): Adapt to per-window fringes and scroll
16011 bars, and new fringe vs. display margin position. Fix bug which
16012 increased total width of full_width rows by width of scroll bars
16013 although window's total width already includes that.
16014 (x_fix_overlapping_area): Simplify using window_box_left_offset.
16015 (expose_area): Simplify using window_box_left_offset.
16016 (x_draw_vertical_border): Handle per-window scroll bar settings,
16017 mixing windows with left, right and no scroll bars.
16018
16019 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
16020 where it's used in x_list_fonts (for clarity).
16021 (frame_update_line_height): Remove unused function; functionality
16022 is now done directly when setting the default font in x_set_font.
16023
16024 * xfns.c: Make (many) trivial substitutions for renamed and
16025 new macros in dispextern.h, frame.h and window.h.
16026
16027 * xmenu.c: Make (some) trivial substitutions for renamed and
16028 new macros in dispextern.h, frame.h and window.h.
16029
16030 * xterm.h (struct x_output): Move members left_pos, top_pos,
16031 border_width, pixel_height, pixel_width, line_height,
16032 internal_border_width, vertical_scroll_bar_extra,
16033 left_fringe_width, right_fringe_width, fringe_cols,
16034 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16035 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16036 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16037 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16038 (PIXEL_WIDTH, PIXEL_HEIGHT)
16039 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16040 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16041 frame.h and renamed [see frame.h changes].
16042 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16043 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16044 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16045 and renamed [see frame.h changes].
16046
16047 * xterm.c: Make (several) trivial substitutions for renamed and
16048 new macros in dispextern.h, frame.h and window.h.
16049 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16050 (scroll_run): Adapt to new fringe position.
16051 (glyph_rect): Use window coordinates returned from
16052 window_from_coordinates rather than frame_to_window_pixel_xy.
16053 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16054 scroll-bars.
16055 (handle_one_xevent): Simplify a USE_GTK conditional.
16056 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16057 (fringes are now inside margins, i.e. always in the clipping area).
16058 All callers changed.
16059 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16060 directly, then call compute_fringe_widths. Don't call
16061 frame_update_line_height.
16062
16063 * w32term.h (struct w32_output): Move members left_pos, top_pos,
16064 border_width, pixel_height, pixel_width, line_height,
16065 internal_border_width, vertical_scroll_bar_extra,
16066 left_fringe_width, right_fringe_width, fringe_cols,
16067 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16068 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16069 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16070 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16071 (PIXEL_WIDTH, PIXEL_HEIGHT)
16072 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16073 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16074 frame.h and renamed [see frame.h changes].
16075 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16076 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16077 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16078 and renamed [see frame.h changes].
16079
16080 * w32term.c: Make (several) trivial substitutions for renamed and
16081 new macros in dispextern.h, frame.h and window.h.
16082 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16083 (glyph_rect): Use window coordinates returned from
16084 window_from_coordinates rather than frame_to_window_pixel_xy.
16085 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16086 scroll-bars.
16087 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
16088 (fringes are now inside margins, i.e. always in the clipping area).
16089 All callers changed.
16090 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16091 directly, then call compute_fringe_widths. Don't call
16092 frame_update_line_height.
16093
16094 * w32console.c: Make (few) trivial substitutions for renamed and
16095 new macros in dispextern.h, frame.h and window.h.
16096
16097 * w32fns.c: Make (many) trivial substitutions for renamed and
16098 new macros in dispextern.h, frame.h and window.h.
16099
16100 * w32menu.c: Make (few) trivial substitutions for renamed and
16101 new macros in dispextern.h, frame.h and window.h.
16102
16103 * macterm.h (struct mac_output): Move members left_pos, top_pos,
16104 border_width, pixel_height, pixel_width, line_height,
16105 internal_border_width, vertical_scroll_bar_extra,
16106 left_fringe_width, right_fringe_width, fringe_cols,
16107 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16108 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
16109 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16110 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16111 (PIXEL_WIDTH, PIXEL_HEIGHT)
16112 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16113 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16114 frame.h and renamed [see frame.h changes].
16115 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16116 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16117 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16118 and renamed [see frame.h changes].
16119
16120 * macterm.c: Make (several) trivial substitutions for renamed and
16121 new macros in dispextern.h, frame.h and window.h.
16122 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16123 (glyph_rect): Use window coordinates returned from
16124 window_from_coordinates rather than frame_to_window_pixel_xy.
16125 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16126 scroll-bars.
16127 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16128 (fringes are now inside margins, i.e. always in the clipping area).
16129 All callers changed.
16130 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16131 directly, then call compute_fringe_widths. Don't call
16132 frame_update_line_height.
16133
16134 * macfns.c: Make (several) trivial substitutions for renamed and
16135 new macros in dispextern.h, frame.h and window.h.
16136 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
16137
16138 * macmenu.c: Make (few) trivial substitutions for renamed and
16139 new macros in dispextern.h, frame.h and window.h.
16140
16141 * msdos.h (struct x_output): Remove members left_pos, top_pos,
16142 and line_height, and use corresponding new members in struct
16143 frame. All uses changed.
16144 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
16145 superseeded by corresponding macros in frame.h.
16146
16147 * msdos.c: Make (several) trivial substitutions for renamed and
16148 new macros in dispextern.h, frame.h and window.h.
16149 (IT_note_mouse_highlight): Use updated window coordinates returned
16150 by window_from_coordinates, rather than adjusting them locally.
16151 (internal_terminal_init): No need to initialize line_height here;
16152 it now defaults to 1.
16153
16154 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
16155
16156 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
16157 dropping `down' events.
16158
16159 2003-05-24 Andreas Schwab <schwab@suse.de>
16160
16161 * coding.c (find_safe_codings): Fix last change.
16162
16163 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
16164
16165 * xfns.c (x_window): Fix typo from 2003-05-21 change.
16166
16167 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
16168
16169 * xdisp.c (display_mode_element): Increase max depth.
16170 Simplify the error handling code. Use a different error string
16171 for the case where we hit the depth limit.
16172
16173 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
16174
16175 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
16176
16177 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
16178
16179 * intervals.c (get_local_map): Don't get char-property of previous
16180 point any more: get_pos_property already does it and better.
16181
16182 2003-05-21 Dave Love <fx@gnu.org>
16183
16184 [Merged from unicode branch.]
16185
16186 * xfns.c (x_window, x_window): Use use_xim.
16187
16188 * xterm.c (use_xim): Initialize.
16189 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16190 (x_term_init): Maybe set use_xim.
16191
16192 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16193
16194 2003-05-21 Jason Rumney <jasonr@gnu.org>
16195
16196 * unexw32.c (_start): Remove _fmode initialization.
16197
16198 * emacs.c (main) [WINDOWSNT]: Move it here.
16199
16200 2003-05-20 Dave Love <fx@gnu.org>
16201
16202 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
16203
16204 2003-05-19 Richard M. Stallman <rms@gnu.org>
16205
16206 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
16207 as value for QCfont attribute.
16208 (realize_default_face): lface should already exist; crash if not.
16209 Specify 0 for FORCE_P when calling set_lface_from_font_name.
16210
16211 * frame.c (Fignore_event): Doc fix.
16212
16213 2003-05-19 Kenichi Handa <handa@m17n.org>
16214
16215 * coding.c (decode_coding_string): Handle post-read-conversion
16216 even if the coding doesn't require decoding.
16217
16218 2003-05-18 Richard M. Stallman <rms@gnu.org>
16219
16220 * callproc.c (Fcall_process_region): Doc fix.
16221
16222 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16223
16224 * lread.c (Fload): Print a message if package is obsolete.
16225
16226 * window.c (Fselect_window): Add optional `norecord' arg.
16227 (select_window_1): Fold into Fselect_window.
16228 (select_window_norecord): New function.
16229 (temp_output_buffer_show): Use it. Preserve current buffer.
16230
16231 * window.h (Fselect_window): Update declaration.
16232
16233 * window.c (delete_window, Fother_window, Fset_window_configuration):
16234 * minibuf.c (read_minibuf):
16235 * macterm.c (x_new_focus_frame):
16236 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
16237 * callint.c (Fcall_interactively):
16238 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
16239
16240 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
16241
16242 2003-05-17 David Kastrup <dak@gnu.org>
16243
16244 * process.c (read_process_output): Back out change from 2003-03-09.
16245
16246 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16247
16248 * editfns.c (get_pos_property): Don't assume that `object' = nil.
16249
16250 * textprop.c (text_property_stickiness): New arg `buffer'.
16251
16252 * intervals.h (text_property_stickiness): New arg `buffer'.
16253 (get_pos_property): Declare.
16254
16255 * intervals.c (get_local_map): Use get_pos_property, to obey
16256 stickiness and empty overlays.
16257 (create_root_interval, graft_intervals_into_buffer): Use BEG.
16258 (merge_properties, intervals_equal, merge_properties_sticky):
16259 Use XCAR, XCDR.
16260 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
16261
16262 2003-05-17 Richard M. Stallman <rms@gnu.org>
16263
16264 * minibuf.c (read_minibuf): If buffer is empty, record the default
16265 in the history.
16266 (Fminibuffer_complete_word): When deleting the overlap, take account
16267 of its real position.
16268
16269 * fns.c (map_char_table): Fix previous change.
16270
16271 * syntax.c (find_defun_start):
16272 When open_paren_in_column_0_is_defun_start,
16273 return beginning of buffer.
16274
16275 * lisp.h (map_char_table): Declare added arg.
16276
16277 * fns.c (map_char_table): New arg TABLE gets the master table.
16278 All calls changed.
16279 Process default and inheritance, resorting to Faref if necessary.
16280
16281 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16282 (Faccessible_keymaps): Pass new arg to map_char_table.
16283
16284 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
16285
16286 * casetab.c (set_case_table): Pass new arg to map_char_table.
16287
16288 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
16289
16290 * lisp.h (specbinding_func): New typedef.
16291 (struct specbinding): Use specbinding_func, to put the `volatile'
16292 in the right place.
16293
16294 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
16295 to avoid GCC warning.
16296
16297 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
16298
16299 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
16300
16301 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
16302
16303 * keyboard.c (apply_modifiers): Don't fill the other cache.
16304
16305 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
16306
16307 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
16308
16309 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
16310 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
16311 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
16312 (Fset_window_configuration, Fcurrent_window_configuration)
16313 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
16314 (Fpos_visible_in_window_p, mark_window_cursors_off)
16315 (window_internal_height, window_internal_width, Frecenter)
16316 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
16317 (replace_buffer_in_all_windows, init_window_once, init_window)
16318 (syms_of_window, keys_of_window): Move from lisp.h.
16319 * lisp.h: Move window.c declarations to window.h.
16320
16321 * bytecode.c: Include window.h.
16322 * emacs.c: Include window.h.
16323
16324 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
16325 (keyremap): Add `parent' field.
16326 (keyremap_step): Use it. Remove `parent' argument.
16327 (read_key_sequence): Setup and use the new `parent' field.
16328
16329 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
16330
16331 * keyboard.c (adjust_point_for_property): Ensure termination.
16332
16333 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
16334
16335 * keyboard.c (follow_key): Remove dead variable `did_meta'.
16336 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
16337 duplicated handling of function-key-map and key-translation-map
16338 in read_key_sequence.
16339 (read_key_sequence): Use them.
16340
16341 * keyboard.c (adjust_point_for_property): Try harder to move point
16342 to the non-sticky end of an invisible property.
16343
16344 * xdisp.c (single_display_prop_intangible_p): Make `space' display
16345 property intangible as well.
16346
16347 2003-05-10 Andreas Schwab <schwab@suse.de>
16348
16349 * xmenu.c (single_menu_item): Change last parameter to void* to
16350 avoid warning.
16351
16352 2003-05-09 Richard M. Stallman <rms@gnu.org>
16353
16354 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
16355 Bind Qinhibit_modification_hooks to t so there will be no GC.
16356 Rename local `tem' to `save_deactivate_mark'.
16357
16358 * eval.c (specpdl_ptr): Declare volatile.
16359 (unbind_to): Copy the whole binding and decrement specpdl_ptr
16360 before doing the work of unbinding it.
16361
16362 * lisp.h (struct specbinding): Declare elements volatile.
16363 (specpdl_ptr): Declare volatile.
16364
16365 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
16366
16367 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
16368 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
16369
16370 2003-05-08 Dave Love <fx@gnu.org>
16371
16372 * coding.c (Vlast_coding_system_used): Doc fix.
16373
16374 2003-05-07 Jason Rumney <jasonr@gnu.org>
16375
16376 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
16377 when system does not support them.
16378
16379 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
16380
16381 * fileio.c (Qwrite_region_annotate_functions): New var.
16382 (build_annotations): Use it to process the global part of the hook.
16383 (syms_of_fileio): Init and staticpro it.
16384
16385 * keyboard.c (safe_run_hooks_error): Display a message instead of
16386 silently ignoring the error.
16387
16388 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
16389
16390 * keyboard.c (input_available_signal): Mark static.
16391 (menu_bar_items): Use map_keymap.
16392 (menu_bar_one_keymap): Remove.
16393 (menu_bar_item): Adjust arglist (for use in map_keymap).
16394 Properly hide a second binding when not both are keymaps.
16395
16396 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
16397 (single_keymap_panes): Use it and map_keymap.
16398 (single_menu_item): Use skp as well.
16399
16400 * keymap.h (map_keymap_function_t): New type.
16401 (map_keymap): Declare.
16402
16403 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
16404 (map_keymap_call, Fmap_keymap): New functions.
16405 (syms_of_keymap): Defsubr map-keymap.
16406
16407 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16408
16409 * gtkutil.c (create_dialog, make_widget_for_menu_item)
16410 (make_menu_item, create_menus, xg_update_menu_item): Don't call
16411 ..._with_mnemonic functions for menu items.
16412
16413 2003-05-01 Kenichi Handa <handa@m17n.org>
16414
16415 * coding.c (coding_system_accept_latin_extra_p): Delete this
16416 function.
16417 (find_safe_codings): Pay attention to
16418 the property tranlsation-table-for-encode of each codings.
16419 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
16420
16421 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
16422
16423 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
16424
16425 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
16426
16427 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
16428
16429 * lisp.h (CHECK): Wrap args in parenthesis.
16430 (specbind): Fix doc: symbol = Qnil is not supported any more.
16431
16432 * bytecode.c (Fbyte_code) <unwind-protect>:
16433 Use Fprogn rather than 0 and Qnil.
16434
16435 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
16436 `double', and `triple' modifiers as well.
16437
16438 2003-04-30 Richard M. Stallman <rms@gnu.org>
16439
16440 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
16441
16442 * alloc.c (abort_on_gc): New variable.
16443 (Fgarbage_collect): Abort if abort_on_gc is set.
16444
16445 * lisp.h (abort_on_gc): Add decl.
16446
16447 * eval.c (Fsignal): Clear abort_on_gc.
16448
16449 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
16450 Reinit FORMAT_START and END before second scan.
16451
16452 * xdisp.c (move_it_vertically_backward): Do the final big else
16453 even if nlines is 0.
16454
16455 * xdisp.c (redisplay_internal): Finish the per-frame loop
16456 even if redisplay is suspended by input.
16457
16458 2003-04-24 Andrew Choi <akochoi@shaw.ca>
16459
16460 * macterm.c (x_list_fonts): Return all fonts that match if
16461 maxnames = -1.
16462
16463 2003-04-25 Kenichi Handa <handa@m17n.org>
16464
16465 * syntax.c (skip_chars): Fix previous change.
16466
16467 2003-04-24 Kenichi Handa <handa@m17n.org>
16468
16469 * syntax.c (skip_chars): Make the code faster by using the common
16470 technique of *p, *stop, and *endp.
16471
16472 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16473
16474 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
16475 tool_bar_items so GTK tool bar expose callback does not access items
16476 being updated.
16477
16478 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
16479
16480 * eval.c (Fapply): Undo last change and add a comment about why.
16481
16482 2003-04-18 Miles Bader <miles@gnu.org>
16483
16484 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
16485 pickier PARSE_MULTIBYTE_SEQ.
16486
16487 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
16488
16489 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
16490 Use XCDR, XCAR, CONSP.
16491 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
16492 (Fapply): Remove unnecessary GCPRO.
16493
16494 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
16495
16496 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
16497
16498 * buffer.h: Don't hardcode BEG==1.
16499
16500 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
16501
16502 2003-04-16 Richard M. Stallman <rms@gnu.org>
16503
16504 * xdisp.c (try_window, try_window_reusing_current_matrix):
16505 When at end of window, set window_end_pos to Z-ZV.
16506
16507 * buffer.c (Foverlay_recenter): Doc fix.
16508
16509 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
16510
16511 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
16512
16513 2003-04-14 Andrew Choi <akochoi@shaw.ca>
16514
16515 * macterm.c (mac_check_for_quit_char): Don't check more often than
16516 once a second.
16517
16518 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
16519
16520 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
16521 specially, so that they can't hide an implicit switch-frame event.
16522 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
16523 (head_table): Use switch-frame as event_kind for select-window.
16524 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
16525
16526 * editfns.c (Fformat): Lisp_Object/int mixup.
16527 (format2): Remove unused var numargs.
16528
16529 2003-04-11 Kenichi Handa <handa@m17n.org>
16530
16531 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
16532 (Qafter_insert_file_set_coding): New variable.
16533 (syms_of_fileio): Initialize and staticpro it. Delete declaration
16534 for after-insert-file-adjust-coding-function.
16535 (Finsert_file_contents): Call Qafter_insert_file_set_coding
16536 instead of Vafter_insert_file_adjust_coding_function.
16537
16538 2003-04-11 Kenichi Handa <handa@m17n.org>
16539
16540 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
16541
16542 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
16543 string. Callers changed.
16544
16545 2003-04-10 Kenichi Handa <handa@m17n.org>
16546
16547 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
16548 (syms_of_fileio): Declare it as a lisp variable.
16549 (Finsert_file_contents):
16550 Call Vafter_insert_file_adjust_coding_function before calling
16551 decode-format.
16552
16553 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16554
16555 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
16556 get GtkAdjustment as widget now is a GtkRange.
16557
16558 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
16559 GtkRange to avoid memory leak.
16560
16561 2003-04-09 Kenichi Handa <handa@m17n.org>
16562
16563 * xfaces.c (Vface_font_rescale_alist): New variable.
16564 (struct font_name): New member rescale_ratio.
16565 (font_rescale_ratio): New function.
16566 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
16567 (better_font_p): On comparing point sized, pay attention to
16568 recale_ratio member of fonts.
16569 (build_scalable_font_name): Reflect font->rescale_ratio in the
16570 font name.
16571 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16572
16573 * lread.c (read1): Before calling index, check if the 2nd
16574 arguemnt is in ASCII range.
16575
16576 2003-04-08 Richard M. Stallman <rms@gnu.org>
16577
16578 * fileio.c (Ffile_symlink_p): Doc fix.
16579
16580 * editfns.c (Fformat): Translate positions of text properties
16581 in the format string to apply them to the result.
16582
16583 * fileio.c (Finsert_file_contents): Doc fix.
16584 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
16585
16586 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
16587
16588 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
16589
16590 2003-04-08 Steven Tamm <steventamm@mac.com>
16591
16592 * mac.c (init_mac_osx_environment): Switch libexec and bin so
16593 that self-contained application finds libexec files.
16594
16595 2003-04-08 Kenichi Handa <handa@m17n.org>
16596
16597 * coding.c (code_convert_region_unwind):
16598 Set Vlast_coding_system_used to the argument.
16599 (code_convert_region): If post-read-conversion function changed
16600 the value of last-coding-sytem, keep the new value in
16601 coding->symbol so that it won't be overridden.
16602 (run_pre_post_conversion_on_str): Likewise.
16603 (coding_system_accept_latin_extra_p): New function.
16604 (find_safe_codings): Pay attention to characters registered in
16605 latin-extra-code-table.
16606
16607 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
16608
16609 * Makefile.in (md5.o): Add missing dependency info.
16610
16611 2003-04-06 Richard M. Stallman <rms@gnu.org>
16612
16613 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
16614
16615 * marker.c (verify_bytepos): New function.
16616
16617 * intervals.c (set_intervals_multibyte_1): When becoming
16618 multibyte, adjust right and left child sizes to a whole set of
16619 characters. If an interval gets zero total-length, delete it.
16620 If an interval consists of just its children, delete one of them.
16621
16622 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
16623 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
16624
16625 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
16626 All calls deleted.
16627 (lisp_malloc): Do the work here directly.
16628
16629 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
16630
16631 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
16632 char tables.
16633
16634 2003-04-04 Kenichi Handa <handa@m17n.org>
16635
16636 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
16637 destructively change "%S" to "%s".
16638
16639 2003-04-03 Miles Bader <miles@gnu.org>
16640
16641 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
16642 always set.
16643
16644 2003-04-01 Dave Love <fx@gnu.org>
16645
16646 * xfns.c (xpm_lookup_color): Grok "opaque".
16647
16648 2003-03-31 Andrew Choi <akochoi@shaw.ca>
16649
16650 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
16651 parent window ID.
16652
16653 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
16654
16655 * macterm.h (struct mac_output): Define x_pixels_diff and
16656 y_pixels_diff.
16657
16658 2003-03-31 Juanma Barranquero <lektu@terra.es>
16659
16660 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
16661 blockinput.h and files included from it.
16662
16663 2003-03-31 Kim F. Storm <storm@cua.dk>
16664
16665 The following changes consolidates the common code related to
16666 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
16667 files into frame.c.
16668
16669 * frame.c: Include blockinput.h.
16670 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
16671 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
16672 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
16673 related vars here.
16674 (struct frame_parm_table, frame_parms): New table for describing
16675 frame parameters and their associated Q-variable.
16676 The order of the parameters corresponds to the sequence of the
16677 frame_parm_handlers table in redisplay_interface.
16678 (x_fullscreen_move, x_set_frame_parameters)
16679 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
16680 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
16681 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16682 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
16683 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
16684 Generic functions for processing of frame parameters.
16685 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
16686 (display_x_get_resource, x_get_resource_string): Functions for
16687 generic access to X resources.
16688 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
16689 (x_default_parameter, Fx_parse_geometry): Functions for generic
16690 access to frame parameters.
16691 (x_figure_window_size): Generic calculation of frame size.
16692 Fixed to add space needed for tool bar. Also setup size_hint_flags.
16693 (syms_of_frame): Intern and staticpro frame parameter variables.
16694 Defvar_lisp Vx_resource_class and Vx_resource_name here.
16695 Defsubr Sx_get_resource and Sx_parse_geometry.
16696
16697 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
16698 parameter related vars defined in frame.c.
16699 (EMACS_CLASS): Define here.
16700 (enum FULLSCREEN_*): Define here.
16701 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
16702 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
16703 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
16704 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
16705 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
16706 (x_set_visibility, x_set_autoraise, x_set_autolower)
16707 (x_set_unsplittable, x_set_vertical_scroll_bars)
16708 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
16709 (x_figure_window_size): Add prototypes.
16710
16711 * dispextern.h (frame_parm_handler): New typedef.
16712 (struct redisplay_interface): New member frame_parm_handlers.
16713 (enum resource_types): Move declaration here.
16714 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
16715 (x_default_parameter): Add prototypes.
16716
16717 * window.c: Remove extern decl for frame parameter vars.
16718 (change_window_heights): New generic function;
16719 replaces x_change_window_heights. All users changed.
16720
16721 * window.h (change_window_heights): Add prototype.
16722
16723 * xfaces.c: Remove extern decl for frame parameter vars.
16724
16725 * xterm.h (EMACS_CLASS): Remove. Use generic define.
16726 (struct w32_display_info): Fix type of xrdb member.
16727 (enum FULLSCREEN_*): Remove.
16728 Remove prototypes for generic functions (in frame.h).
16729
16730 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16731 parameters now defined in frame.h and frame.c.
16732 (Vx_resource_name): Remove. Use generic var.
16733 (enum x_frame_parms): Remove (bogus, unused enum).
16734 (check_x_display_info): Make non-static (for frame.c).
16735 (struct x_frame_parm_table, x_frame_parms): Remove.
16736 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16737 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16738 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16739 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16740 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16741 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16742 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16743 Remove. Use generic functions instead.
16744 (enum resource_types): Remove.
16745 (x_set_scroll_bar_default_width): New global function (for frame.c).
16746 (Fx_create_frame): Depend on x_figure_window_size to add space for
16747 toolbar and setup size_hint_flags.
16748 (x_frame_parm_handlers): New table for redisplay_interface.
16749 (syms_of_xfns): Don't intern/staticpro removed vars.
16750
16751 * xterm.c: Remove unnecessary extern declarations.
16752 (x_fullscreen_adjust): Remove. Use generic instead.
16753 (x_redisplay_interface): Add x_frame_parm_handlers member.
16754
16755 * w32gui.h (XrmDatabase): New (dummy) typedef.
16756
16757 * w32term.h (EMACS_CLASS): Remove. Use generic define.
16758 (struct w32_display_info): Fix type of xrdb member.
16759 (enum FULLSCREEN_*): Remove.
16760 (x_fullscreen_adjust): Remove prototype.
16761
16762 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16763 parameters now defined in frame.h and frame.c.
16764 (Vx_resource_name): Remove. Use generic var.
16765 (enum x_frame_parms): Remove (bogus, unused enum).
16766 (check_x_display_info): Make non-static (for frame.c).
16767 (struct x_frame_parm_table, x_frame_parms): Remove.
16768 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16769 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16770 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16771 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16772 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16773 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16774 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16775 Remove. Use generic functions instead.
16776 (enum resource_types): Remove.
16777 (x_set_scroll_bar_default_width): New global function (for frame.c).
16778 (Fx_create_frame): Depend on x_figure_window_size to add space for
16779 toolbar and setup size_hint_flags.
16780 (w32_frame_parm_handlers): New table for redisplay_interface.
16781 (syms_of_w32fns): Don't intern/staticpro removed vars.
16782
16783 * w32term.c: Remove unnecessary extern declarations.
16784 (x_fullscreen_adjust): Remove. Use generic instead.
16785 (x_redisplay_interface): Add w32_frame_parm_handlers member.
16786
16787 * w32reg.c (x_get_string_resource): Use XrmDatabase.
16788
16789 * macgui.h (XrmDatabase): New (dummy) typedef.
16790
16791 * macterm.h (EMACS_CLASS): Remove.
16792 (struct mac_display_info): Add xrdb member.
16793 (struct mac_output): Add want_fullscreen member.
16794
16795 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16796 parameters now defined in frame.h and frame.c.
16797 (Vx_resource_name): Remove. Use generic var.
16798 (check_x_display_info): Make non-static (for frame.c).
16799 (struct x_frame_parm_table, x_frame_parms): Remove.
16800 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16801 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16802 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16803 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16804 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16805 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16806 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16807 Remove. Use generic functions instead.
16808 (enum resource_types): Remove.
16809 (x_set_scroll_bar_default_width): New global function (for frame.c).
16810 (mac_frame_parm_handlers): New table for redisplay_interface.
16811 (syms_of_macfns): Don't intern/staticpro removed vars.
16812
16813 * macterm.c: Remove unnecessary extern declarations.
16814 (x_redisplay_interface): Add mac_frame_parm_handlers member.
16815
16816 * Makefile.in (frame.o): Add dependency on blockinput.h and files
16817 included from it (atimer.h and systime.h).
16818
16819 2003-03-30 Andreas Schwab <schwab@suse.de>
16820
16821 * xdisp.c (x_insert_glyphs): Fix swapped width and height
16822 parameters for shift_glyphs_for_insert.
16823
16824 * macterm.c (x_redisplay_interface): Add missing entry for
16825 draw_vertical_window_border.
16826
16827 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
16828
16829 * fileio.c (Fexpand_file_name): In the no-handler case, after
16830 expanding, look again for a handler and invoke it. This is needed
16831 for filenames like "/foo/../user@host:/bar/../baz" -- the first
16832 expansion produces "/user@host:/bar/../baz" which needs to be
16833 expanded again for the finame result "/user@host:/baz".
16834
16835 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16836
16837 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
16838 of area to be redrawn for better performance.
16839
16840 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
16841
16842 * xterm.c (take_vertical_position_into_account): Remove.
16843 (xt_action_hook): Call set_vertical_scroll_bar if needed.
16844 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
16845 (xm_scroll_callback, x_create_toolkit_scroll_bar)
16846 (x_set_toolkit_scroll_bar_thumb): Simplify.
16847 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
16848 (XTread_socket): Remove unused var.
16849 (x_make_frame_invisible): Replace goto with else.
16850
16851 * xdisp.c (set_vertical_scroll_bar): New fun.
16852 (redisplay_window): Use it.
16853
16854 2003-03-26 Richard M. Stallman <rms@gnu.org>
16855
16856 * xdisp.c (update_tool_bar): Recompute tool bar if
16857 update_mode_lines is set. Set w->update_mode_line
16858 only if the tool bar contents actually change.
16859 (update_menu_bar): Undo previous change.
16860
16861 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16862
16863 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
16864 (xg_frame_set_char_size): Calculate scroll bar width before frame
16865 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
16866 (xg_separator_p): Check for all documented separator types.
16867 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
16868 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
16869
16870 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
16871 so tool bar gets updated.
16872
16873 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
16874
16875 * data.c (store_symval_forwarding): Re-instate part of the code
16876 that was deleted with too much enthusiasm.
16877
16878 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
16879
16880 * data.c (store_symval_forwarding): Delete special read-only
16881 hack for type == -1, since we now use ->constant instead.
16882 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
16883
16884 * buffer.c (overlays_in): Declare static.
16885 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
16886 `constant' field rather than the variable's `type' field.
16887
16888 2003-03-24 Andrew Choi <akochoi@shaw.ca>
16889
16890 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
16891
16892 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
16893
16894 * fns.c [MAC_OSX]: Do not redefine vector.
16895
16896 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
16897
16898 * macgui.h: Remove definition of No_Cursor.
16899
16900 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
16901
16902 * xdisp.c: Define No_Cursor.
16903 (x_write_glyphs, notice_overwritten_cursor)
16904 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
16905 (note_mouse_highlight): Remove Mac-specific code.
16906 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
16907
16908 2003-03-24 John Paul Wallington <jpw@gnu.org>
16909
16910 * xdisp.c (redisplay_window): If mini window's buffer is not
16911 empty, then redisplay it like other windows.
16912
16913 2003-03-23 Kim F. Storm <storm@cua.dk>
16914
16915 * w32term.c (w32_draw_window_cursor): Fix last change.
16916
16917 2003-03-23 Kenichi Handa <handa@m17n.org>
16918
16919 * alloc.c (make_string_from_bytes, make_specified_string):
16920 Add `const' for the arg CONTENTS.
16921
16922 * lisp.h (make_string_from_bytes, make_specified_string):
16923 Prototypes adjusted.
16924
16925 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16926
16927 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
16928
16929 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
16930 (XG_SB_RANGE): New define.
16931
16932 * gtkutil.c (xg_fixed_handle_expose): New function.
16933 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
16934 expose events.
16935 (xg_update_scrollbar_pos): Take two more arguments, left and width
16936 of scroll bar including borders.
16937 Clear left and right part outside scroll bar separately as some
16938 themes have bars that are not an even number of pixels.
16939 Don't set reallocate_redraws, don't call
16940 gdk_window_process_all_updates.
16941 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
16942 so no need to change it. Calculate size and value with XG_SB_RANGE.
16943
16944 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
16945 Pass left and width of scroll bar including borders to
16946 xg_update_scrollbar_pos.
16947
16948 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
16949
16950 * Makefile.in: Make sure space precedes end-of-line backslashes.
16951
16952 2003-03-22 Kim F. Storm <storm@cua.dk>
16953
16954 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
16955 Add generic versions here. Remove system specific versions
16956 defined elsewhere.
16957
16958 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
16959 Add prototypes.
16960
16961 * xterm.h (STORE_NATIVE_RECT): New macro.
16962
16963 2003-03-21 Kim F. Storm <storm@cua.dk>
16964
16965 * xdisp.c (get_glyph_string_clip_rect):
16966 Use FRAME_INTERNAL_BORDER_WIDTH.
16967
16968 * dispextern.h (struct redisplay_interface): Add active_p
16969 argument to draw_window_cursor member. All uses changed.
16970
16971 2003-03-21 Kim F. Storm <storm@cua.dk>
16972
16973 The following changes consolidate code related to writing and
16974 inserting glyphs, exposing frame, the tool bar, the mouse face,
16975 the output cursor, and help echo from xterm.c, w32term.c and
16976 macterm.c into xdisp.c. It also generalizes the use of the
16977 window_part enum instead of using numeric values throughout.
16978
16979 * xdisp.c: Consolidate gui-independent code here.
16980 Include keymap.h.
16981 (Qhelp_echo): Import.
16982 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
16983 (help_echo_string, help_echo_window, help_echo_object)
16984 (previous_help_echo_string, help_echo_pos): Declare here.
16985 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
16986 (estimate_mode_line_height): Define here. Handle windowing
16987 systems directly (without using estimate_mode_line_height_hook).
16988 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
16989 (update_window_cursor, update_cursor_in_window_tree)
16990 (fast_find_position, fast_find_string_pos)
16991 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
16992 (expose_area, expose_line, expose_overlaps, expose_window)
16993 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
16994 declared static as they are only used locally in xdisp.c.
16995 (draw_glyphs): Rename from x_draw_glyphs and make static.
16996 (tool_bar_item_info, notice_overwritten_cursor): Make static.
16997 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16998 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
16999 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
17000 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17001 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
17002 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
17003 (note_mouse_highlight, x_clear_window_mouse_face)
17004 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
17005 (x_intersect_rectangles): New generic functions for use by xdisp.c
17006 and GUI front-ends.
17007 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
17008 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
17009
17010 * dispextern.h (Display_Info): Generic typedef for *_display_info.
17011 (NativeRectangle): Generic typedef for rectangle type.
17012 (enum window_part): Move here from window.c.
17013 (struct redisplay_interface): New members flush_display_optional,
17014 define_frame_cursor, clear_frame_area, draw_window_cursor,
17015 draw_vertical_window_border, shift_glyphs_for_insert.
17016 Rename member clear_mouse_face to clear_window_mouse_face.
17017 (estimate_mode_line_height_hook): Remove hook.
17018 (auto_raise_tool_bar_buttons_p): Don't declare extern.
17019 (tool_bar_item_info): Remove prototype.
17020 (help_echo_string, help_echo_window, help_echo_object)
17021 (previous_help_echo_string, help_echo_pos)
17022 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
17023 (x_stretch_cursor_p, output_cursor): Declare extern.
17024 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
17025 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
17026 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17027 (display_and_set_cursor, set_output_cursor, x_cursor_to)
17028 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
17029 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17030 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
17031 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
17032 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
17033 Add prototypes.
17034 (mode_line_string, marginal_area_string): Fix prototypes.
17035
17036 * window.c (enum window_part): Move to dispextern.h.
17037 (coordinates_in_window): Use enum window_part member names
17038 instead of numbers to describe return value.
17039 (struct check_window_data): Change part member to window_part.
17040 (check_window_containing): Return window_part unaltered.
17041 (window_from_coordinates): Change part arg from int to enum
17042 window_part. Allow part arg to be null. All users changed.
17043
17044 * window.h (window_from_coordinates): Fix prototype.
17045
17046 * term.c (estimate_mode_line_height): Move to xdisp.c.
17047
17048 * keyboard.c (make_lispy_event): Use enum window_part.
17049
17050 * dispnew.c (mode_line_string, marginal_area_string): Use enum
17051 window_part instead of int in arg list. Users changed.
17052
17053 * xterm.h (No_Cursor): Declare as None for X.
17054 (struct mac_output): Replace member cross_cursor by hand_cursor.
17055
17056 * xterm.c: Remove consolidated defines and code.
17057 (BETWEEN): Remove unused macro.
17058 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
17059 (x_define_frame_cursor, x_clear_frame_area)
17060 (x_draw_window_cursor): New X-specific functions for RIF.
17061 (x_redisplay_interface): Add new members.
17062
17063 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
17064
17065 * w32term.h (struct w32_output): Remove cross_cursor member.
17066
17067 * w32term.c: Remove consolidated defines and code.
17068 (BETWEEN): Remove unused macro.
17069 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
17070 (w32_define_frame_cursor, w32_clear_frame_area)
17071 (w32_draw_window_cursor): New W32-specific functions for RIF.
17072 (w32_redisplay_interface): Add new members.
17073
17074 * w32gui.h (No_Cursor): Define as 0 for W32.
17075 (XRectangle): Add X compatible rectangle type.
17076 (NativeRectangle): Declare as RECT for W32.
17077 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17078
17079 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
17080
17081 * w32console.c: Remove consolidated defines and code.
17082
17083 * msdos.h (Display_Info): Add generic typedef.
17084
17085 * msdos.c: Remove consolidated defines and code.
17086 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
17087
17088 * macterm.h (struct mac_output): Replace member cross_cursor by
17089 hand_cursor.
17090 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
17091
17092 * macterm.c: Remove consolidated defines and code.
17093 (BETWEEN): Remove unused macro.
17094 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
17095 (mac_define_frame_cursor, mac_clear_frame_area)
17096 (mac_draw_window_cursor): New Mac-specific functions for RIF.
17097 (x_redisplay_interface): Add new members.
17098
17099 * macgui.h (No_Cursor): Define as 0 for Mac.
17100 (XRectangle): Add X compatible rectangle type.
17101 (NativeRectangle): Declare as Rect for Mac.
17102 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17103
17104 * macfns.c (x_set_mouse_color): Setup hand_cursor.
17105 (x_set_cursor_color): Use x_display_and_set_cursor.
17106
17107 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
17108 included from it. Add dependency on keymap.h.
17109
17110 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
17111
17112 2003-03-21 Kenichi Handa <handa@m17n.org>
17113
17114 * fileio.c (Fexpand_file_name): Fix previous change.
17115
17116 2003-03-19 Kenichi Handa <handa@m17n.org>
17117
17118 * fileio.c (Ffile_name_directory): Reconstruct file name by
17119 make_specified_string.
17120 (Ffile_name_nondirectory, Ffile_name_as_directory)
17121 (Fdirectory_file_name, Fexpand_file_name)
17122 (Fsubstitute_in_file_name): Likewise.
17123 (Fread_file_name): Compare decoded homedir with DIR and
17124 DEFAULT_FILENAME.
17125
17126 * alloc.c (make_specified_string): If NCHARS is negative, count
17127 the number of characters.
17128
17129 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17130
17131 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
17132 all widgets.
17133
17134 * gtkutil.h: Removed xg_ignore_next_thumb.
17135
17136 2003-03-18 Kenichi Handa <handa@m17n.org>
17137
17138 * coding.c (Vchar_coding_system_table): Remove this variable.
17139 (Vcoding_system_safe_chars): New variable.
17140 (intersection): Remove this function.
17141 (find_safe_codings): Don't use Vchar_coding_system_table, but try
17142 all codings in SAFE_CODINGS.
17143 (Ffind_coding_systems_region_internal): Adjust for the change of
17144 find_safe_codings. Get generic coding systems from
17145 Vcoding_system_safe_chars.
17146 (Fdefine_coding_system_internal): New function.
17147 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
17148 Initialize and staticpro Vcoding_system_safe_chars.
17149
17150 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17151
17152 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
17153 equal old values before updating.
17154
17155 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
17156
17157 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
17158
17159 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17160
17161 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
17162 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
17163 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
17164 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
17165 (xg_create_scroll_bar): Pass bar to button event callback.
17166 (xg_find_top_left_in_fixed): New function.
17167 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
17168 whole scroll bar area. Get old position with
17169 xg_find_top_left_in_fixed, calculate and only clear needed areas.
17170 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
17171 dragging is in progress. Calculate whole as for Motif.
17172 Remove code that saved last values. Call gtk_range functions to
17173 set scroll bar sizes.
17174
17175 * gtkutil.h: Removed xg_ignore_next_thumb.
17176
17177 2003-03-17 Juanma Barranquero <lektu@terra.es>
17178
17179 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
17180 and files included from it.
17181
17182 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
17183
17184 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
17185 multiple occurrences of the same keymap under different prefixes.
17186 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
17187
17188 2003-03-16 Jason Rumney <jasonr@gnu.org>
17189
17190 * w32gui.h: Use HDC for Display.
17191
17192 * w32term.c (w32_encode_char): Prevent double-byte chars from
17193 crashing Emacs.
17194
17195 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
17196 as binary.
17197
17198 2003-03-16 Juanma Barranquero <lektu@terra.es>
17199
17200 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
17201
17202 2003-03-16 Kim F. Storm <storm@cua.dk>
17203
17204 The following changes consolidate some of the gui-independent
17205 parts of the processing and drawing of "glyph strings" from
17206 xterm.c, w32term.c, and macterm.c into xdisp.c.
17207
17208 * dispextern.h (struct glyph): Reduce face_id member from 22 to
17209 21 bits (this reduces number of faces from 4M to 2M).
17210 Replace W32 specific w32_font_type member (2 bits) by generic
17211 font_type member (3 bits) for portability.
17212 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
17213 (enum draw_glyphs_face): Define here.
17214 (struct glyph_string): Define here. Merge W32 and X versions.
17215 (struct redisplay_interface): New members per_char_metric,
17216 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
17217 (VCENTER_BASELINE_OFFSET): Define here.
17218 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
17219 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
17220
17221 * xdisp.c: Consolidate gui-independent "glyph string" code here.
17222 (dump_glyph_string): Moved here.
17223 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
17224 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
17225 (fill_composite_glyph_string, fill_glyph_string)
17226 (fill_image_glyph_string, fill_stretch_glyph_string)
17227 (left_overwritten, left_overwriting, right_overwritten)
17228 (right_overwriting, get_char_face_and_encoding)
17229 (set_glyph_string_background_width, compute_overhangs_and_x)
17230 (append_glyph, append_composite_glyph, produce_image_glyph)
17231 (take_vertical_position_into_account, append_stretch_glyph)
17232 (produce_stretch_glyph): New generic functions (based on X version).
17233 Call platform specific functions through rif.
17234 (INIT_GLYPH_STRING): New macro, hides W32 details.
17235 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
17236 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
17237 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
17238 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
17239 (notice_overwritten_cursor):
17240 Generic functions exported to platform modules. Users changed.
17241
17242 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
17243 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
17244 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
17245 New macros for consolidated code.
17246
17247 * xterm.c: Remove consolidated defines and code.
17248 (x_per_char_metric, x_encode_char)
17249 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
17250 (x_redisplay_interface): Add new members.
17251
17252 * w32gui.h (Display): Add dummy typedef for consolidation.
17253 (XChar2b): Define alias for wchar_t for consolidation.
17254 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17255
17256 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
17257 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
17258 New macros for consolidation.
17259
17260 * w32term.c: Remove consolidated defines and code.
17261 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
17262 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
17263 (w32_per_char_metric): Change font_type arg to int for RIF.
17264 (w32_encode_char): Return int according to RIF requirements.
17265 (w32_compute_glyph_string_overhangs): Adapt to RIF.
17266 (w32_get_glyph_overhangs): New function for RIF. Uses generic
17267 x_get_glyph_overhangs.
17268 (w32_redisplay_interface): Add new members.
17269
17270 * macgui.h (XChar2b): Move typedef here for consolidation.
17271 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17272
17273 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
17274 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
17275 consolidation.
17276
17277 * macterm.c: Remove consolidated defines and code.
17278 (mac_per_char_metric): New function for RIF.
17279 (mac_encode_char): Adapt to new RIF requirements.
17280 (mac_compute_glyph_string_overhangs): Adapt for RIF.
17281 (x_redisplay_interface): Add new members.
17282
17283 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
17284
17285 * keymap.c (Vmenu_events): New var.
17286 (syms_of_keymap): Initialize it.
17287 (where_is_internal): Check more carefully what is a menu event.
17288
17289 2003-03-14 Richard M. Stallman <rms@gnu.org>
17290
17291 * lread.c (read1): After #!, exit loop on eof.
17292
17293 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17294
17295 * gtkutil.h: Add declaration for xg_frame_cleared.
17296
17297 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
17298
17299 * gtkutil.c (struct xg_last_sb_pos): New structure.
17300 (handle_fixed_child): New function.
17301 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
17302 and force a redraw on them.
17303 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
17304 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
17305 so we can avoid unneeded redraws.
17306 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
17307 and force a redraw on the scroll bar.
17308 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
17309 if xg_last_sb_pos shows the positions are up to date.
17310 (xg_frame_cleared): New function.
17311
17312 2003-03-13 Kenichi Handa <handa@m17n.org>
17313
17314 * coding.c (Fdetect_coding_region): Fix docstring.
17315 (Fdetect_coding_string): Fix docstring.
17316
17317 2003-03-13 Andreas Schwab <schwab@suse.de>
17318
17319 * gtkutil.c: Add prototype for create_menus.
17320
17321 * data.c (long_to_cons): Fix type of top.
17322
17323 * xselect.c (selection_data_to_lisp_data): Use int instead of
17324 long for an integer of size 4.
17325
17326 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
17327 (xg_tool_bar_help_callback): Likewise.
17328
17329 2003-03-12 Andreas Schwab <schwab@suse.de>
17330
17331 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
17332
17333 2003-03-12 Kim F. Storm <storm@cua.dk>
17334
17335 The following changes consolidate the fringe handling from
17336 xterm.c, w32term.c, and macterm.c into xdisp.c.
17337
17338 * xdisp.c: Consolidate fringe handling code here.
17339 (left_bits, right_bits, continued_bits, continuation_bits)
17340 (ov_bits, zv_bits): Define fringe bitmaps.
17341 (fringe_bitmaps): New array holding fringe bitmaps.
17342 (draw_fringe_bitmap): Draw a specific bitmap; call display
17343 specific drawing routine via rif->draw_fringe_bitmap.
17344 (draw_row_fringe_bitmaps): Generic replacement for
17345 x_draw_row_fringe_bitmaps; all callers changed.
17346 (compute_fringe_widths): Generic replacement for
17347 x_compute_fringe_widths; all callers changed.
17348
17349 * dispextern.h (enum fringe_bitmap_type): Define here.
17350 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
17351 (fringe_bitmaps): Declare extern.
17352 (struct redisplay_interface): New member draw_fringe_bitmap.
17353 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
17354
17355 * xterm.c: Remove generic fringe code.
17356 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17357 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17358
17359 * w32term.c: Remove generic fringe code.
17360 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
17361 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
17362
17363 * macterm.c: Remove generic fringe code.
17364 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17365 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17366
17367 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
17368
17369 * print.c (Fprin1_to_string): Return unibyte string if possible.
17370
17371 2003-03-09 David Kastrup <dak@gnu.org>
17372
17373 * process.c (read_process_output): We have allocated enough space
17374 for readmax and carryover, so actually use the alloted space.
17375
17376 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17377
17378 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
17379 toolkit scrollbar click.
17380
17381 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
17382 for USE_GTK.
17383 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
17384 also.
17385 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
17386 scrollbar and control is pressed, call x_scroll_bar_handle_click.
17387
17388 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
17389
17390 * gtkutil.c (xg_get_scroll_id_for_window): New function.
17391 (xg_tool_bar_item_expose_callback): New function.
17392 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
17393 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
17394 on the tool bar widget.
17395 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
17396 to expose on the tool bar item widgets.
17397
17398 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17399
17400 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
17401 struct image* when deciding to update (struct image* may have been
17402 deleted from the image cache).
17403
17404 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
17405 the event isn't for a frame (i.e. for dialogs).
17406
17407 2003-03-07 Kenichi Handa <handa@m17n.org>
17408
17409 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
17410 composition components reaches the limit, terminate composing.
17411 (COMPOSITION_OK): New macro.
17412 (detect_coding_iso2022): Use it if an escape sequence for
17413 composition is found.
17414 (coding_restore_composition): Adjust the number of composition
17415 components if it is not sane.
17416
17417 2003-03-06 Juanma Barranquero <lektu@terra.es>
17418
17419 * w32term.h (struct w32_display_info): Add xrdb member to support
17420 passing resources via -xrm on Windows.
17421
17422 * w32term.c (w32_make_rdb): New function.
17423 (w32_term_init): Use it to initialize xrdb member of w32_display_info
17424 struct. Delete leftover code.
17425
17426 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
17427 for resources passed on the command line.
17428
17429 * w32reg.c (w32_get_rdb_resource): New function.
17430 (x_get_string_resource): Use it, so resources passed with -xrm
17431 supercede the ones in the registry.
17432
17433 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17434
17435 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
17436 instead of x_top_window_to_frame.
17437
17438 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17439
17440 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
17441 when restarting Emacs.
17442
17443 2003-03-03 Richard M. Stallman <rms@gnu.org>
17444
17445 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
17446 to run kill-buffer-query-functions.
17447 (Qkill_buffer_query_functions): New var.
17448 (syms_of_buffer): Init and staticpro it.
17449
17450 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17451
17452 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
17453
17454 2003-02-25 Kim F. Storm <storm@cua.dk>
17455
17456 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
17457 If centering point failed to make whole line visible and vscroll
17458 is non-zero, disable vscroll and try centering point again.
17459
17460 * lread.c (read1): Accept `single space' syntax like (? x).
17461
17462 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17463
17464 * keyboard.c (cancel_hourglass_unwind): Surround with
17465 #ifdef HAVE_X_WINDOWS
17466
17467 2003-02-25 Kenichi Handa <handa@m17n.org>
17468
17469 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
17470 process only when "subprocesses" is defined.
17471
17472 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
17473
17474 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
17475
17476 2003-02-24 Juanma Barranquero <lektu@terra.es>
17477
17478 * callint.c (fix_command): Declare as static void and move before
17479 Fcall_interactively.
17480
17481 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
17482 (syms_of_xdisp): Don't initialize Qwhen.
17483
17484 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17485
17486 * keyboard.c (cancel_hourglass_unwind): New function.
17487 (command_loop_1): Cancel hourglass with unwind-protect.
17488
17489 2003-02-23 Richard M. Stallman <rms@gnu.org>
17490
17491 * callint.c (fix_command): New subroutine, from Fcall_interactively.
17492 Detect (when ... (region-beginning)) etc.
17493 (Fcall_interactively): Call fix_command.
17494 (Qif, Qwhen): New variables.
17495 (syms_of_callint): Init and staticpro them.
17496
17497 * regex.c (print_partial_compiled_pattern): Output to stderr.
17498
17499 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
17500
17501 * dired.c (directory_files_internal): Don't expand directory.
17502 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
17503 instead. From Lars Hansen <larsh@math.ku.dk>.
17504
17505 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
17506
17507 * fns.c (string_to_multibyte): Remove unused var i.
17508 (Flanginfo): Fix int/Lisp_Object mixup.
17509 (void_call2): New fun.
17510 (Fmap_char_table): Use it in place of call2.
17511
17512 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
17513
17514 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
17515
17516 * keymap.c (copy_keymap_1): Make it static.
17517
17518 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
17519
17520 2003-02-22 David Ponce <david@dponce.com>
17521
17522 * lread.c (Fload): Don't check STRING_MULTIBYTE.
17523
17524 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17525
17526 * process.h: Removed subtty field from struct Lisp_Process.
17527
17528 * process.c (create_process): Remove setting of subtty.
17529 (emacs_get_tty_pgrp): New function.
17530 (Fprocess_running_child_p, process_send_signal):
17531 Call emacs_get_tty_pgrp instead of ioctl.
17532 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
17533
17534 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
17535
17536 * keymap.c (Fdefine_key): Doc fix.
17537
17538 2003-02-21 Juanma Barranquero <lektu@terra.es>
17539
17540 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
17541
17542 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
17543 POLLING_PROBLEM_IN_SELECT.
17544
17545 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
17546 Delete #undef of POLLING_PROBLEM_IN_SELECT.
17547
17548 * s/hpux10-20.h: New file.
17549
17550 * process.c (wait_reading_process_input):
17551 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
17552
17553 2003-02-20 Kenichi Handa <handa@m17n.org>
17554
17555 * fontset.c (check_fontset_name): If NAME is nil, return the
17556 default fontset.
17557 (override_font_info): New function.
17558 (Fset_fontset_font): Document that NAME nil means the default fontset.
17559 (Ffontset_info): If FONTSET is not the default fontset, merge
17560 FONTSET onto the copy of the default fontset, and work on that
17561 copy. Document that NAME nil means the default fontset.
17562 (Ffontset_font): Document that NAME nil means the default fontset.
17563
17564 * process.c (setup_process_coding_systems): If the process's
17565 in/out descriptor is -1, do nothing.
17566
17567 2003-02-19 Andreas Schwab <schwab@suse.de>
17568
17569 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
17570 Add prototypes.
17571
17572 2003-02-19 Kenichi Handa <handa@m17n.org>
17573
17574 * xfaces.c (try_alternative_families): Try all scalable fonts if
17575 Vscalable_fonts_allowed is not Qt.
17576
17577 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17578
17579 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
17580
17581 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17582
17583 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
17584 names.
17585
17586 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
17587 (sorted_font_list): Move allocation of struct font_name to
17588 x_face_list_fonts.
17589 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
17590 (Fx_list_fonts): Set maxnames to -1 to get all font names.
17591
17592 2003-02-18 Kim F. Storm <storm@cua.dk>
17593
17594 * lread.c (read1): Fix last change.
17595 "`" is not always special. Allow "?" after a character constant.
17596
17597 2003-02-18 Andrew Choi <akochoi@shaw.ca>
17598
17599 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
17600
17601 2003-02-18 Andreas Schwab <schwab@suse.de>
17602
17603 * window.c (window_scroll_pixel_based): Move outside a
17604 multi-glyph character before setting new window start.
17605
17606 * xdisp.c (in_display_vector_p): New function.
17607 * dispextern.h (in_display_vector_p): Declare.
17608
17609 2003-02-18 Kim F. Storm <storm@cua.dk>
17610
17611 * lread.c (read1): Fix and relax read syntax.
17612 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
17613 Only recognize "," after dotted-pair dot if inside backquote.
17614 Never include "`" or "," (inside backquote) in a symbol.
17615 Allow dotted-pair dot after a character constant.
17616 Allow "`" and "," (inside backquote) after a character constant.
17617
17618 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17619
17620 * gtkutil.c (xg_tool_bar_expose_callback): New function.
17621 (xg_create_tool_bar): Force style of tool bar to be horizontal with
17622 icons. Set name of tool bar to emacs-toolbar.
17623 (update_frame_tool_bar): Connect expose event to
17624 xg_tool_bar_expose_callback.
17625
17626 2003-02-17 Richard M. Stallman <rms@gnu.org>
17627
17628 * keyboard.c (this_command_key_count_reset): New variable.
17629 Initiatize to 0 where this_command_key_count is set.
17630 (read_char): Save and restore this_command_key_count_reset
17631 around input method code.
17632 (read_char): If this_command_key_count_reset, echo reread commands.
17633 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
17634
17635 2003-02-17 Kenichi Handa <handa@m17n.org>
17636
17637 * fns.c (string_to_multibyte): Always return a multibyte string.
17638
17639 2003-02-16 Jason Rumney <jasonr@gnu.org>
17640
17641 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
17642 Negative max_fonts parameter means list all.
17643
17644 2003-02-14 Dave Love <fx@gnu.org>
17645
17646 * fns.c (Flanginfo): Doc fix.
17647
17648 2003-02-13 Kim F. Storm <storm@cua.dk>
17649
17650 * lread.c (read_escape): Interpret \s as a SPACE character, except
17651 for \s-X in a character constant which still is the super modifier.
17652 (read1): Signal an `invalid read syntax' error if a character
17653 constant is immediately followed by a digit or symbol character.
17654
17655 * search.c (Fmatch_data): Doc fix. Explicitly state that
17656 match-data is undefined if last search failed.
17657
17658 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
17659 All uses changed.
17660
17661 2003-02-12 Juanma Barranquero <lektu@terra.es>
17662
17663 * eval.c (Fdefmacro): Fix typo.
17664
17665 2003-02-12 Kim F. Storm <storm@cua.dk>
17666
17667 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
17668 macro is a string, convert meta modifiers in string when copying
17669 the string into a vector.
17670
17671 2003-02-11 Kim F. Storm <storm@cua.dk>
17672
17673 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
17674
17675 2003-02-11 Kenichi Handa <handa@m17n.org>
17676
17677 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
17678
17679 2003-02-10 Kim F. Storm <storm@cua.dk>
17680
17681 * process.c: Doc fixes.
17682 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
17683
17684 2003-02-10 Kenichi Handa <handa@m17n.org>
17685
17686 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
17687
17688 * process.c (QCfilter_multibyte): New variable.
17689 (setup_process_coding_systems): New function.
17690 (Fset_process_buffer, Fset_process_filter):
17691 Call setup_process_coding_systems.
17692 (Fstart_process): Initialize the member `filter_multibyte' of
17693 struct Lisp_Process.
17694 (create_process): Call setup_process_coding_systems.
17695 (Fmake_network_process): New keyward `:filter-multibyte'.
17696 Initialize the member `filter_multibyte' of struct Lisp_Process.
17697 Call setup_process_coding_systems.
17698 (server_accept_connection): Call setup_process_coding_systems.
17699 (read_process_output): If the process has a filter, decide the
17700 multibyteness of a string to given to the filter by
17701 `filter_multibyte' member of the process. If the process doesn't
17702 have a filter and the result of conversion is unibyte, use
17703 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
17704 multibyte form.
17705 (Fset_process_coding_system): Call setup_process_coding_systems.
17706 (Fset_process_filter_multibyte): New function.
17707 (Fprocess_filter_multibyte_p): New function.
17708 (syms_of_process): Intern and staticpro QCfilter_multibyte.
17709 Defsubr Sset_process_filter_multibyte and
17710 Sprocess_filter_multibyte_p.
17711
17712 * process.h (struct Lisp_Process): New member filter_multibyte.
17713
17714 * lisp.h (setup_process_coding_systems): Add prototype.
17715
17716 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
17717 process, update coding systems for the process.
17718
17719 2003-02-09 Kenichi Handa <handa@m17n.org>
17720
17721 * fns.c (string_to_multibyte): New function.
17722 (Fstring_to_multibyte): New function.
17723 (syms_of_fns): Defsubr it.
17724
17725 2003-02-08 Andreas Schwab <schwab@suse.de>
17726
17727 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
17728 instead of the substitution.
17729
17730 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17731
17732 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
17733
17734 * xmenu.c (menu_position_func): Adjust menu popup position so that
17735 the menu is fully visible.
17736
17737 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17738
17739 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
17740 (x_make_frame_invisible, x_wm_set_icon_position):
17741 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
17742
17743 * xfns.c (x_set_name, x_set_title): Ditto.
17744
17745 2003-02-04 Richard M. Stallman <rms@gnu.org>
17746
17747 * keyboard.c (echo_now): Update before_command_echo_length.
17748 (Freset_this_command_lengths): Reset this_command_key_count etc.
17749 immediately rather than arranging to do it later.
17750 (before_command_key_count_1, before_command_echo_length_1)
17751 (before_command_restore_flag): Vars deleted.
17752 (add_command_key): Don't handle before_command_restore_flag.
17753 (read_char, record_menu_key): Don't update before_command_key_count or
17754 before_command_echo_length.
17755 (read_char): Don't handle before_command_restore_flag.
17756
17757 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
17758 in direct-output clauses if it wouldn't be called in the ordinary case.
17759
17760 2003-02-04 Kim F. Storm <storm@cua.dk>
17761
17762 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
17763
17764 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17765
17766 * gtkutil.c (remove_from_container): Copying list is not needed.
17767 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
17768 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
17769 on list returned from gtk_container_get_children to avoid memory leak.
17770
17771 2003-02-01 Jason Rumney <jasonr@gnu.org>
17772
17773 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
17774 local malloc.
17775 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
17776 definitions in xpm.h.
17777 (init_xpm_functions): New function.
17778 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
17779 (init_external_image_libraries): Try to load libXpm.dll.
17780
17781 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
17782 timestamp.
17783
17784 2003-01-31 Dave Love <fx@gnu.org>
17785
17786 * syntax.c (Fskip_chars_forward)
17787 (open-paren-in-column-0-is-defun-start): Doc fix.
17788
17789 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
17790
17791 * fileio.c: Support // at start of name for Cygwin (just added proper
17792 preprocessor tests).
17793
17794 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
17795
17796 * Makefile.in: Use @EXEEXT@ for Cygwin.
17797
17798 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
17799
17800 * s/cygwin.h: Added for Cygwin port.
17801
17802 2003-01-31 Juanma Barranquero <lektu@terra.es>
17803
17804 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
17805 when including gif_lib.h.
17806 (init_gif_functions, init_tiff_functions): New functions.
17807 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
17808 Windows. Disable color table lookups. Call library functions
17809 through pointers determined at runtime.
17810 (init_external_image_libraries): Try to load libungif.dll and
17811 libtiff.dll.
17812
17813 2003-01-31 Kenichi Handa <handa@m17n.org>
17814
17815 * xdisp.c (SKIP_GLYPHS): New macro.
17816 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
17817
17818 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17819
17820 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
17821
17822 2003-01-30 Dave Love <fx@gnu.org>
17823
17824 * alloc.c (Vgc_elapsed, gcs_done): New variables.
17825 (Fgarbage_collect): Use them.
17826 (init_alloc, syms_of_alloc): Set them up.
17827
17828 2003-01-30 Juanma Barranquero <lektu@terra.es>
17829
17830 * w32fns.c (init_external_image_libraries): Add missing operator.
17831
17832 2003-01-29 Jason Rumney <jasonr@gnu.org>
17833
17834 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
17835 an alternative name for jpeg.dll.
17836
17837 2003-01-29 Kenichi Handa <handa@m17n.org>
17838
17839 * xdisp.c (set_cursor_from_row): Pay attention to string display
17840 properties.
17841
17842 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
17843
17844 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
17845 <escape>.
17846 (keycode_to_xkeysym_table): Reformat and add more comments.
17847 (XTread_socket): Drop special case for backspace.
17848
17849 2003-01-28 Andrew Choi <akochoi@shaw.ca>
17850
17851 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
17852 values in old-style RGB specs.
17853
17854 2003-01-27 Juanma Barranquero <lektu@terra.es>
17855
17856 * w32fns.c (init_external_image_libraries): Try alternate names for the
17857 jpeg dll.
17858
17859 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17860
17861 * gtkutil.c (create_dialog, xg_separator_p)
17862 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
17863 before calling strcmp or strlen.
17864
17865 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17866
17867 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
17868 and handle image load failure.
17869
17870 2003-01-26 Jason Rumney <jasonr@gnu.org>
17871
17872 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
17873 New functions.
17874 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
17875 Disable color table lookups. Call jpeg library functions
17876 through pointers determined at runtime.
17877 (init_external_image_libraries): Try to load jpeg.dll.
17878
17879 2003-01-25 Richard M. Stallman <rms@gnu.org>
17880
17881 * lisp.h: Declare format2 instead of format1.
17882
17883 * fileio.c (barf_or_query_if_file_exists):
17884 Call format2 instead of format1.
17885
17886 * editfns.c (format2): New function, replaces format1
17887 but takes exactly two Lisp Objects as format args.
17888
17889 * buffer.c (Fkill_buffer): Call format2 instead of format1.
17890
17891 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17892
17893 * xterm.h: Change to return value of x_dispatch_event to int.
17894
17895 * xterm.c (x_filter_event): New function.
17896 (event_handler_gdk, XTread_socket): Call x_filter_event.
17897 (x_dispatch_event): Change to return value of finish.
17898 (event_handler_gdk): Use return value from x_dispatch_event.
17899
17900 * xfns.c (x_window): Call create_frame_xic for GTK version to
17901 initialize input methods.
17902
17903 * gtkutil.h: Add (void) prototypes.
17904
17905 * gtkutil.c (create_menus): Remove code that puts the help menu to
17906 the right.
17907
17908 2003-01-25 Jason Rumney <jasonr@gnu.org>
17909
17910 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
17911 [HAVE_PNG]: Sync with xfns.c version.
17912 (png_load): Adjust colors for Windows. Use Windows
17913 bitmaps. Disable color table lookups.
17914 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
17915 (init_png_functions): New function.
17916 (png_read_from_memory, png_load): Call png library functions
17917 through pointers determined at runtime.
17918 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
17919 (init_external_image_libraries): New function.
17920 (init_xfns): Call it.
17921
17922 2003-01-24 Andreas Schwab <schwab@suse.de>
17923
17924 * minibuf.c (Fminibuffer_message): Verify type of parameter.
17925
17926 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17927
17928 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
17929 of static initializer.
17930
17931 2003-01-24 Dave Love <fx@gnu.org>
17932
17933 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
17934 architectures.
17935
17936 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
17937 Use __alignof__.
17938
17939 2003-01-24 Kenichi Handa <handa@m17n.org>
17940
17941 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
17942 It it is nonzero, don't pretend that an invisible area doesn't exist.
17943 (command_loop_1): Call adjust_point_for_property with proper
17944 second arg.
17945
17946 2003-01-22 Jason Rumney <jasonr@gnu.org>
17947
17948 Sync changes with xterm.c and xfns.c.
17949
17950 * w32term.c (x_draw_glyph_string_foreground)
17951 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17952
17953 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
17954 phys_cursor's hpos is overwritten. This is still not completely
17955 correct, as it doesn't really make sense to use hpos at all to
17956 get the cursor glyph (as that is relative to the width of the
17957 characters on the line, which may have changed during the update).
17958
17959 * w32term.c (notice_overwritten_cursor): Handle the special case
17960 of the cursor being in the first blank non-text line at the
17961 end of a window.
17962
17963 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17964 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17965 Compute from the x position returned by x_draw_glyphs.
17966
17967 (x_display_and_set_cursor): Don't set phys_cursor_width here,
17968 except for NO_CURSOR and system caret, to make phys_cursor_width
17969 contain what its name suggests.
17970 (notice_overwritten_cursor): Consider the cursor image erased if
17971 the output area intersects the cursor image in y-direction.
17972
17973 * w32term.c (note_mode_line_or_margin_highlight): Rename from
17974 note_mode_line_highlight and extend.
17975
17976 * w32term.c (last_window): New variable.
17977 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
17978 (note_mouse_movement): Remove reimplemented code in #if 0.
17979
17980 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
17981 not update_mode_lines, and always set it to 1.
17982
17983 2003-01-21 Jason Rumney <jasonr@gnu.org>
17984
17985 * w32fns.c (IDC_HAND): Define it if system headers don't.
17986
17987 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17988
17989 * w32term.h (struct w32_output): New member hand_cursor.
17990 (WM_EMACS_SETCURSOR): New message definition.
17991
17992 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
17993 function w32_define_cursor.
17994 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
17995 position, change member name output_data.x to output_data.w32 and
17996 add function w32_define_cursor.
17997 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
17998 and change member name output_data.x to output_data.w32.
17999 (w32_initialize_display_info):
18000 Setup dpyinfo->vertical_scroll_bar_cursor.
18001
18002 * w32fns.c (Vx_hand_shape): New variable.
18003 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
18004 WM_EMACS_SETCURSOR.
18005 (x-create-frame): Setup Cursor types.
18006
18007 2003-01-21 David Ponce <david@dponce.com>
18008
18009 * w32term.c (w32_encode_char): For DIM=1 charset, set
18010 ccl->reg[2] to -1 before calling ccl_driver.
18011 (Sync. with xterm.c x_encode_char change by Kenichi Handa
18012 <handa@m17n.org> on 2002-09-30.)
18013 (w32_draw_relief_rect): Declare all args.
18014 (w32_define_cursor): New.
18015
18016 * w32fns.c (w32_load_cursor): New function.
18017 (w32_init_class): Use it.
18018 (x_put_x_image): Declare all args.
18019
18020 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
18021
18022 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
18023
18024 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18025
18026 * gtkutil.c: Must include stdio.h before termhooks.h
18027
18028 2003-01-21 Dave Love <fx@gnu.org>
18029
18030 * alloc.c (Fgc_status): Print zombie list.
18031 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18032 Fix assignment of zombies.
18033 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18034 Don't take car of non-cons.
18035
18036 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18037
18038 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18039
18040 2003-01-20 David Ponce <david@dponce.com>
18041
18042 * w32menu.c (digest_single_submenu): Declare all args.
18043
18044 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
18045 changes in xmenu.c:
18046
18047 (parse_single_submenu): Use individual keymap's prompt
18048 string as pane name, if there is one.
18049 (set_frame_menubar): Save menu_items_n_panes from each call to
18050 parse_single_submenu and use it when calling digest_single_submenu.
18051
18052 2003-01-20 Steven Tamm <steventamm@mac.com>
18053
18054 * macterm.c (XTread_socket): Check for valid, visible window
18055 before sending a scroll-wheel event.
18056
18057 2003-01-20 Richard M. Stallman <rms@gnu.org>
18058
18059 * xdisp.c (redisplay_window): If mini window's buffer is not
18060 a minibuffer, then redisplay it like other windows.
18061
18062 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18063
18064 * gtkutil.c (xg_create_frame_widgets): Check if there is an
18065 external tool bar before setting tool bar height.
18066
18067 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18068
18069 * xterm.c (handle_one_xevent): Surround popup_activated
18070 with #ifdef:s for non-toolkit version.
18071
18072 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
18073 (gtkutil.o): New file.
18074 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
18075 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
18076
18077 * gtkutil.c: New file for GTK version.
18078
18079 * gtkutil.h: New file for GTK version.
18080
18081 * xterm.h: Add xt_or_gtk_widget.
18082 Include gtk files for USE_GTK.
18083 (struct x_output): Add toolbar_height.
18084 (struct x_output): Add GTK widgets and Gdk size_hints.
18085 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
18086 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
18087 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
18088
18089 * xterm.c: Include gtkutil.h for USE_GTK.
18090 (free_frame_menubar): Declare extern void for USE_GTK.
18091 (note_mouse_highlight): Check popup_activated for USE_GTK.
18092 (xt_action_hook): Don't compile if USE_GTK.
18093 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
18094 (xg_scroll_callback): New function.
18095 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
18096 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
18097 for USE_GTK.
18098 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
18099 xg_show_scroll_bar for USE_GTK.
18100 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
18101 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
18102 (event_handler_gdk): New function for USE_GTK.
18103 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
18104 (handle_one_xevent): Make sure widget is mapped before
18105 calling x_real_positions for USE_GTK.
18106 (XTread_socket): Add GTK event loop for USE_GTK.
18107 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
18108 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
18109 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
18110 (x_iconify_frame): Add code for USE_GTK.
18111 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
18112 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
18113 is in gtkutil.c.
18114 (x_term_init): Add initialization for GTK.
18115 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
18116
18117 * xmenu.c: Include gtkutil.h for USE_GTK.
18118 (Fx_popup_menu): Use current position if x and y is NIL.
18119 (single_menu_item, single_menu_item, Fx_popup_dialog):
18120 Check for USE_GTK.
18121 (popup_widget_loop): New function for USE_GTK.
18122 (x_activate_menubar): Add code for USE_GTK.
18123 (popup_activate_callback, popup_deactivate_callback)
18124 (menu_highlight_callback, menubar_selection_callback):
18125 Add USE_GTK versions.
18126 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
18127 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
18128 (free_frame_menubar): Only compile if not USE_GTK. GTK version
18129 is in gtkutil.c.
18130 (popup_selection_callback): New version for USE_GTK.
18131 (create_and_show_popup_menu): New fuction, one USE_GTK version and
18132 one USE_X_TOOLKIT version.
18133 (xmenu_show): Call create_and_show_popup_menu.
18134 (dialog_selection_callback): New version for USE_GTK.
18135 (create_and_show_dialog): New fuction, one USE_GTK version and
18136 one USE_X_TOOLKIT version.
18137 (xdialog_show): Call create_and_show_dialog.
18138
18139 * xfns.c: Include gtkutil for USE_GTK.
18140 (x_window_to_frame, x_any_window_to_frame)
18141 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18142 (x_top_window_to_frame): Add code for USE_GTK.
18143 (x_set_background_color): Call xg_set_background_color for GTK.
18144 (x_set_menu_bar_lines): Check for USE_GTK.
18145 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
18146 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
18147 (x_window): Call xg_create_frame_widgets for USE_GTK.
18148 (Fx_create_frame): Check for USE_GTK
18149 (Fx_file_dialog): New implementation for USE_GTK.
18150
18151 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
18152 (update_menu_bar): Add check for USE_GTK.
18153 (update_tool_bar): Add check for USE_GTK and external tool bar.
18154 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
18155 (redisplay_internal): Add check for USE_GTK and popup_activated.
18156 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
18157 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
18158 (display_menu_bar): Add check for USE_GTK
18159
18160 * lisp.h (Vx_resource_name): Declare extern.
18161
18162 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
18163 for USE_GTK.
18164 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
18165
18166 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
18167 (FRAME_EXTERNAL_TOOL_BAR): New macro.
18168 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
18169
18170 * fileio.c (Fread_file_name): Add check for USE_GTK.
18171
18172 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
18173 Add check for USE_GTK.
18174
18175 * config.in: Added HAVE_GTK
18176
18177 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
18178
18179 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
18180
18181 * charset.h (Funibyte_char_to_multibyte): Export.
18182
18183 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18184
18185 * xmenu.c (mouse_position_for_popup): New function.
18186 (Fx_popup_menu): Call mouse_position_for_popup for X and
18187 mouse_position_hook for others.
18188
18189 2003-01-17 Kim F. Storm <storm@cua.dk>
18190
18191 * editfns.c (Finsert): Mention `string-make-multibyte' and
18192 `string-as-multibyte' in doc string.
18193
18194 2003-01-17 Kenichi Handa <handa@m17n.org>
18195
18196 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
18197
18198 * editfns.c (Fformat): Convert an unibyte char argument that is
18199 formatted by "%c" to multibyte if the total result must be a
18200 multibyte string.
18201
18202 2003-01-16 Kim F. Storm <storm@cua.dk>
18203
18204 * process.c (set-process-filter): Document unibyte/multibyte-ness
18205 of string argument.
18206
18207 2003-01-16 Kenichi Handa <handa@m17n.org>
18208
18209 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
18210
18211 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
18212 (re_search_2): Likewise.
18213
18214 2003-01-15 Kenichi Handa <handa@m17n.org>
18215
18216 * xdisp.c (message_dolog): Fix bug of the case that *Message*
18217 buffer is unibyte.
18218
18219 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
18220
18221 * fns.c (Fsubstring): Clarify doc string.
18222
18223 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
18224 (Fprevious_char_property_change)
18225 (Fnext_single_char_property_change)
18226 (Fprevious_single_char_property_change, Fnext_property_change)
18227 (Fnext_single_property_change, Fprevious_property_change)
18228 (Fprevious_single_property_change, Fadd_text_properties)
18229 (Fput_text_property, Fset_text_properties)
18230 (Fremove_text_properties, Fremove_list_of_text_properties)
18231 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
18232
18233 2003-01-14 Kim F. Storm <storm@cua.dk>
18234
18235 * process.h (struct Lisp_Process): New member plist replaces old
18236 member private_vars. All uses changed.
18237
18238 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
18239 (QCplist): Rename from QCvars. Change all uses.
18240 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
18241 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
18242 (syms_of_process): Intern, staticpro, defsubr these.
18243 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
18244
18245 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
18246
18247 * m/delta.h: Remove (obsolete).
18248
18249 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
18250
18251 * fileio.c (Fdelete_directory, Fdelete_file): Document the
18252 behaviour in front of symlinks.
18253 (Fdelete_file): Raise an error on directories.
18254
18255 2003-01-13 Dave Love <fx@gnu.org>
18256
18257 * fns.c (Freverse): Use QUIT.
18258
18259 2003-01-13 Richard M. Stallman <rms@gnu.org>
18260
18261 * minibuf.c (minibuffer_completion_contents):
18262 Error if point is inside prompt.
18263
18264 * keyboard.c (command_loop_1): Don't redisplay directly
18265 if there's a post-command-hook.
18266
18267 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
18268 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
18269
18270 2003-01-12 Kim F. Storm <storm@cua.dk>
18271
18272 * process.h (struct Lisp_Process): New member private_vars.
18273
18274 * process.c (QCvars): New variable.
18275 (syms_of_process): Intern and staticpro it.
18276 (Fset_process_contact): Removed function.
18277 (Fprocess_variable, Fset_process_variable): New functions.
18278 (syms_of_process): Defsubr them.
18279 (Fstart_process): Initialize private_vars plist to nil.
18280 (Fmake_network_process): New arg :vars to setup the private
18281 variables for new network process.
18282 (server_accept_connection): Copy server's private variables to
18283 client process.
18284
18285 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
18286 crashes). Code rewritten and simplified. Now directly aligns the
18287 pointer and recalculates pure_bytes_used, rather than aligning the
18288 size and adjusting the pointer.
18289
18290 2003-01-11 Kim F. Storm <storm@cua.dk>
18291
18292 * process.c (Fset_process_contact): New function.
18293 (syms_of_process): defsubr it.
18294 (make-network-process): Update doc.
18295
18296 2003-01-10 Andreas Schwab <schwab@suse.de>
18297
18298 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
18299 Reported by Berthold Gunreben <b.gunreben@web.de>.
18300
18301 2003-01-10 Dave Love <fx@gnu.org>
18302
18303 * composite.c (syms_of_composite): Make composition_hash_table weak.
18304
18305 2003-01-09 Kim F. Storm <storm@cua.dk>
18306
18307 * process.c (Fmake_network_process): Convert new port number
18308 to host byte order for `:service t' case. From Mario Lang.
18309
18310 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18311
18312 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
18313 instead of XtAppProcessEvent.
18314
18315 * xterm.c (handle_one_xevent): New function.
18316 (x_dispatch_event): New function.
18317 (XTread_socket): Call handle_one_xevent.
18318
18319 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
18320
18321 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
18322 call XQueryPointer to get coordinates.
18323 (popup_get_selection): Do not set popup_activated_flag to zero,
18324 let popup_deactivate_callback do that. Needed for Motif.
18325 Call x_dispatch_event instead of XtDispatchEvent.
18326 (xmenu_show): Calculate root coordinate from frame top/left position.
18327
18328 2003-01-08 Kim F. Storm <storm@cua.dk>
18329
18330 * process.c (server_accept_connection): Fix recording of new
18331 connection's local address in :local property of contact info.
18332 (Fmake_network_process): Record local network address for new
18333 client processes in :local property of contact info.
18334 (format-network-address): Add arg OMIT-PORT. Change callers.
18335
18336 2003-01-07 Dave Love <fx@gnu.org>
18337
18338 * Makefile.in (fns.o): Depend on coding.h.
18339
18340 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
18341
18342 * minibuf.c (Fread_variable): Doc fix.
18343
18344 * eval.c (Fuser_variable_p): Doc change. For custom variables,
18345 use the same test as for custom-variable-p.
18346
18347 2003-01-05 Richard M. Stallman <rms@gnu.org>
18348
18349 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
18350 Count LAST_LINE_MISFIT in scroll margin for end of window.
18351 Move label too_near_end before setting SCROLL_MARGIN_POS.
18352 Set LAST_LINE_MISFIT before jumping there.
18353
18354 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
18355 scroll_conservatively case. If scrolling that much doesn't change
18356 STARTP, move it down one line.
18357
18358 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
18359 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
18360
18361 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
18362 selected frame.
18363
18364 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
18365 (syms_of_keymap): Staticpro them.
18366 (Fapropos_internal): Initialize them and clear them out.
18367 Don't GCPRO them.
18368
18369 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
18370
18371 * lisp.h: New misc type Lisp_Save_Value.
18372 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
18373 (XSAVE_VALUE): New macro.
18374 (struct Lisp_Save_Value): New data type.
18375 (union Lisp_Misc): Add u_save_value alternative.
18376 (make_save_value): Declare.
18377
18378 * alloc.c (make_save_value): New function.
18379
18380 * xterm.c (x_catch_errors): Save dpy using make_save_value.
18381 (x_catch_errors_unwind): Call XSync.
18382
18383 2003-01-01 Richard M. Stallman <rms@gnu.org>
18384
18385 * window.c (window_scroll_pixel_based): Partially undo last change.
18386
18387 * keyboard.c (command_loop_1): Call adjust_point_for_property
18388 in direct action cases for Qforward_char and Qbackward_char.
18389 Set already_adjusted so it won't be done twice.
18390
18391 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
18392
18393 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
18394 type definition of size_t.
18395
18396 2003-01-02 Steven Tamm <steventamm@mac.com>
18397
18398 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
18399 distinguish Carbon GUI builds from X11 builds on darwin.
18400
18401 2002-12-30 Steven Tamm <steventamm@mac.com>
18402
18403 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
18404 to default to t.
18405
18406 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
18407
18408 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
18409
18410 2002-12-28 Steven Tamm <steventamm@mac.com>
18411
18412 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
18413 allow building in a different directory than source. Uses some
18414 GNU Make extensions, but there is no other make on Mac OS X.
18415
18416 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
18417
18418 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
18419 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
18420 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
18421 (Fstring_to_number): Mention the returned value in the doc strings.
18422
18423 2002-12-23 Richard M. Stallman <rms@gnu.org>
18424
18425 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
18426 <scroll-down-aggressively>: Doc fix.
18427
18428 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
18429 string as pane name, if there is one.
18430 (set_frame_menubar): Save menu_items_n_panes from each call to
18431 parse_single_submenu and use it when calling digest_single_submenu.
18432
18433 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
18434 Don't try to make last line fully visible if it is past end of window.
18435
18436 2002-12-22 Steven Tamm <steventamm@mac.com>
18437
18438 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
18439 (mac_menu_show): Add support for hierarchical popup menus.
18440 (add_menu_item): Remove indentation support.
18441 (fill_submenu, fill_menu): Create hierarchical menus
18442 instead of using indentation.
18443
18444 2002-12-22 Richard M. Stallman <rms@gnu.org>
18445
18446 * xdisp.c (try_cursor_movement): Don't call try_window here.
18447 (redisplay_window): Never redisplay minibuffer when inactive.
18448
18449 * window.c (select_window_1): Undo 9/21 change.
18450
18451 2002-12-22 Steven Tamm <steventamm@mac.com>
18452
18453 * macterm.c (XTread_socket): Call KeyTranslate for control and
18454 meta to deal correctly shifted non-alpha characters, like C-S-5
18455 being treated like C-%. Do not look for shift key to deal
18456 with masking off control-key with mac-reverse-ctrl-meta.
18457
18458 2002-12-21 Richard M. Stallman <rms@gnu.org>
18459
18460 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
18461 If it is non-nil, run timers. Use an unwind-protect to requeue
18462 the events that were read ahead.
18463 (popup_get_selection_unwind): New subroutine.
18464 (popup_get_selection_queue): File-scope variable now holds that queue.
18465 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
18466 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
18467 Use an unwind-protect to pop down the dialog box.
18468 (xdialog_show_unwind): New subroutine implements that.
18469
18470 * xdisp.c (row_containing_pos): Change exit test using last_y.
18471 (try_window_id): Abort if row_containing_pos returns null.
18472
18473 * lread.c (load_error_handler): New function.
18474 (Fload): Handle errors in Fsubstitute_in_file_name.
18475 Don't expect Fsignal to return.
18476
18477 * eval.c: Errors and throws work right with interrupt blocking.
18478 (struct catchtag): New elt interrupt_input_blocked.
18479 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
18480 (internal_catch, Fcondition_case, internal_condition_case)
18481 (internal_condition_case_1, internal_condition_case_2): Save it.
18482 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
18483
18484 * editfns.c (Fformat): Add parens.
18485
18486 * dired.c (file_name_completion): Fix that change.
18487 Delete special quit-handling code; just use QUIT.
18488
18489 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
18490
18491 * dired.c (file_name_completion): Close directory on error
18492 just as in directory_files_internal.
18493
18494 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
18495
18496 * window.c (Fset_window_configuration): Set old_point to correct
18497 value when new_current_buffer == current_buffer.
18498
18499 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
18500
18501 Revisited my earlier fix for the following entry in etc/PROBLEMS:
18502 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18503 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18504
18505 These changes were in part based upon suggestions made by Peter
18506 'Luna' Runestig [peter@runestig.com].
18507
18508 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
18509 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
18510 (g_b_init_get_sid_identifier_authority ): Add several static
18511 global variables.
18512
18513 * w32.c (globals_of_w32): New function. Used to initialize those
18514 global variables that must always be initialized on startup even
18515 when the global variable initialized is non zero. Its primary
18516 purpose at this time is to set the global variables
18517 g_b_init_is_windows_9x, g_b_init_open_process_token,
18518 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
18519 g_b_init_get_sid_identifier_authority to 0 on startup.
18520 Called from main.
18521
18522 * w32.c (is_windows_9x): Perform initialization only if
18523 g_b_init_is_windows_9x is equal to 0. On initialization set
18524 g_b_init_is_windows_9x equal to 1.
18525
18526 * w32.c (open_process_token): Perform initialization only if
18527 g_b_init_open_process_token is equal to 0. On initialization set
18528 g_b_init_open_process_token equal to 1.
18529
18530 * w32.c (get_token_information): Perform initialization only if
18531 g_b_init_get_token_information is equal to 0. On initialization
18532 set g_b_init_get_token_information equal to 1.
18533
18534 * w32.c (lookup_account_sid): Perform initialization only if
18535 g_b_init_lookup_account_sid is equal to 0. On initialization
18536 set g_b_init_lookup_account_sid equal to 1.
18537
18538 * w32.c (get_sid_identifier_authority): Perform initialization
18539 only if g_b_init_get_sid_identifier_authority is equal to 0.
18540 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
18541
18542 * w32fns.c (globals_of_w32fns): New function. Used to initialize
18543 those global variables that must always be initialized on startup
18544 even when the global variable initialized is non zero.
18545 Its primary purpose at this time is to initialize the global variable
18546 track_mouse_event_fn.
18547
18548 * w32fns.c (w32_wnd_proc): Remove initialization of
18549 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
18550
18551 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
18552
18553 * w32menu.c (globals_of_w32menu): New function. Used to
18554 initialize those global variables that must always be initialized
18555 on startup even when the global variable initialized is non zero.
18556 Its primary purpose at this time is to initialize the global
18557 variables get_menu_item_info and set_menu_item_info.
18558
18559 * w32menu.c (initialize_frame_menubar): Remove initialization of
18560 get_menu_item_info and set_menu_item_info.
18561
18562 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
18563
18564 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
18565 Declare them.
18566
18567 * emacs.c (main): Call globals_of_w32 prior to calling
18568 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
18569 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
18570 is defined.
18571
18572 * w32term.c (x_update_window_begin): Fix Windows API error
18573 detected by BoundsChecker. Test to determine if
18574 w32_system_caret_hwnd is NULL prior to attempting to use
18575 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
18576
18577 * w32term.c (x_update_window_end): Fix Windows API error
18578 detected by BoundsChecker. Test to determine if
18579 w32_system_caret_hwnd is NULL prior to attempting to use
18580 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
18581
18582 2002-12-17 Kenichi Handa <handa@m17n.org>
18583
18584 * coding.c (coding_system_require_warning): New variable.
18585 (syms_of_coding): DEFVAR it.
18586
18587 * coding.h (coding_system_require_warning): Extern it.
18588
18589 * fileio.c (choose_write_coding_system): Even if
18590 Vcoding_system_for_write is non-nil, if
18591 coding_system_require_warning is nonzero, call
18592 Vselect_safe_coding_system_function.
18593
18594 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
18595
18596 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
18597 (lisp): Add font-core.
18598
18599 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
18600
18601 * textprop.c (text_read_only): New arg `propval'.
18602 (get_char_property_and_overlay): Remove unused var `next_overlay'.
18603 (verify_interval_modification): Use text_read_only's new arg.
18604
18605 2002-12-13 Kenichi Handa <handa@m17n.org>
18606
18607 * coding.c (Funencodable_char_position): Set pend correctly.
18608
18609 2002-12-12 Jason Rumney <jasonr@gnu.org>
18610
18611 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
18612 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
18613 Be more careful about when help_events are generated.
18614
18615 2002-12-12 Steven Tamm <steventamm@mac.com>
18616
18617 * macterm.c (mac_check_for_quit_char): Correctly set the
18618 modifiers of the event to 0.
18619 * mac.c (sys_select): Duplicate rfds before calling select to
18620 ensure that rfds survive the while loop.
18621
18622 2002-12-11 Kim F. Storm <storm@cua.dk>
18623
18624 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
18625 row_containing_pos returned NULL.
18626
18627 2002-12-10 Steven Tamm <steventamm@mac.com>
18628
18629 * mac.c (sys_read): Fix sys_read to not call select if IO is
18630 non-blocking.
18631 (sys_select): Fix sys_select to not use a timeout larger than
18632 the one given.
18633
18634 2002-12-10 Juanma Barranquero <lektu@terra.es>
18635
18636 * editfns.c (Fformat): Use alloca, not _alloca.
18637
18638 2002-12-09 Richard M. Stallman <rms@gnu.org>
18639
18640 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
18641 as the last thing.
18642
18643 2002-12-09 Dave Love <fx@gnu.org>
18644
18645 * s/sol2-8.h: Removed. (Not necessary.)
18646
18647 2002-12-09 Matthew Swift <swift@alum.mit.edu>
18648
18649 * editfns.c (Fformat): Handle precision in string conversion
18650 specifiers like libc functions do (ie, print at most that many
18651 characters).
18652
18653 2002-12-08 Richard M. Stallman <rms@gnu.org>
18654
18655 * xdisp.c (row_containing_pos): Check more carefully
18656 whether charpos is really in the row before returning it.
18657
18658 2002-12-07 Steven Tamm <steventamm@mac.com>
18659
18660 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
18661
18662 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
18663 each stack frame. This may change as it could be time consuming.
18664
18665 * macterm.c (mac_check_for_quit_char, quit_char_comp)
18666 (init_quit_char_handler, mac_determine_quit_char_modifiers)
18667 (mac_initialize): Add code to check for pressing of quit_char
18668 in the OS event queue.
18669
18670 * mac.c (sys_select): Call mac_check_for_quit_char every second
18671 while blocking on select.
18672
18673 * mac.c (sys_read): Use sys_select to test for input first
18674 before calling read, to allow C-g to break.
18675
18676 2002-12-07 Richard M. Stallman <rms@gnu.org>
18677
18678 * minibuf.c (Fcompleting_read): Doc fix.
18679
18680 * lread.c (syms_of_lread) <load-history>: Doc fix.
18681
18682 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
18683
18684 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
18685 autoload.
18686
18687 * data.c (Fdefalias): Record in load-history redefining an autoload.
18688
18689 * alloca.c: Undo ifdef change accidentally made on 12-04.
18690
18691 2002-12-06 Francesco Potorti` <pot@gnu.org>
18692
18693 * xfns.c (png_load): Avoid double gamma correction for PNG images.
18694
18695 2002-12-04 Richard M. Stallman <rms@gnu.org>
18696
18697 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
18698
18699 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
18700
18701 * alloca.c: Don't use #error.
18702
18703 2002-12-03 Dave Love <fx@gnu.org>
18704
18705 * buffer.c (Qucs_set_table_for_input): New.
18706 (Fget_buffer_create): Use it.
18707 (Qset_buffer_major_mode_hook): Deleted.
18708 (Fset_buffer_major_mode): Revert previous change.
18709 (init_buffer_once): Intern ucs-set-table-for-input.
18710 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
18711 Add &Qucs_set_table_for_input.
18712
18713 2002-12-03 Andreas Schwab <schwab@suse.de>
18714
18715 * callint.c (Fcall_interactively): Use next_event only if less
18716 than key_count.
18717
18718 2002-12-02 Andrew Choi <akochoi@shaw.ca>
18719
18720 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
18721 names to 255 characters.
18722
18723 * macterm.c (XTread_socket): If all frames have been collapsed,
18724 expand the first one before handling drag-and-drop events.
18725
18726 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
18727 which is detected by autoconf.
18728
18729 2002-12-01 Steven Tamm <steventamm@mac.com>
18730
18731 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
18732 offset in two hints table to allow prebinding to be redone and
18733 allow the executable to be stripped.
18734
18735 2002-11-29 Dave Love <fx@gnu.org>
18736
18737 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
18738 already provided.
18739
18740 2002-11-29 Richard M. Stallman <rms@gnu.org>
18741
18742 * xdisp.c (start_display): Check more intelligently for
18743 whether the line is continued.
18744 (move_it_vertically_backward): Clear it->continuation_lines_width.
18745
18746 2002-11-28 Dave Love <fx@gnu.org>
18747
18748 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
18749 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
18750
18751 2002-11-27 Steven Tamm <steventamm@mac.com>
18752
18753 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
18754 more descriptive error output from lread.c:Fload upon most require
18755 cycles during boostrapping.
18756
18757 2002-11-27 Jason Rumney <jasonr@gnu.org>
18758
18759 * fileio.c (Finsert_file_contents): Give a more appropriate error
18760 for files bigger than 2Gb when off_t is 32 bit.
18761
18762 * dired.c (Ffile_attributes): Don't return negative file sizes for
18763 files bigger than 2Gb when off_t is 32 bit.
18764
18765 2002-11-27 Dave Love <fx@gnu.org>
18766
18767 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18768
18769 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
18770 Test GETPGRP_VOID instead.
18771 [BSD_TERMIOS]: Remove definitions (never used).
18772
18773 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
18774 Don't define.
18775 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18776
18777 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
18778
18779 2002-11-25 Jason Rumney <jasonr@gnu.org>
18780
18781 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
18782 supported.
18783
18784 2002-11-25 Dave Love <fx@gnu.org>
18785
18786 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
18787
18788 * Makefile.in (TEMACS_LDFLAGS): Update last change.
18789
18790 2002-11-25 Andreas Schwab <schwab@suse.de>
18791
18792 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
18793
18794 2002-11-24 Steven Tamm <steventamm@mac.com>
18795
18796 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
18797 determine the size of pointers alloced in unexed space instead
18798 of using possibly invalid emacs_zone pointers. This fixes the
18799 binary incompatibility problems caused by updates to libSystem.B.
18800
18801 2002-11-24 Richard M. Stallman <rms@gnu.org>
18802
18803 * search.c (Fstring_match): Doc fix.
18804
18805 * callint.c (Fcall_interactively): If a command fails because
18806 `*' detects a read-only buffer, but RECORD_FLAG is set,
18807 record it anyway if the args don't actually do tty input.
18808
18809 2002-11-22 Dave Love <fx@gnu.org>
18810
18811 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
18812
18813 * keyboard.c (interrupt_signal): Provide forward declaration.
18814 (kbd_buffer_store_event): Don't declare interrupt_signal.
18815
18816 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
18817
18818 2002-11-21 Richard M. Stallman <rms@gnu.org>
18819
18820 * eval.c (interactive_p): Skip any number of bytecode
18821 and special form frames, in any order.
18822
18823 2002-11-20 Jason Rumney <jasonr@gnu.org>
18824
18825 * w32fns.c (convert_mono_to_color_image): New function.
18826 (xbm_load, xbm_load_image): Use it when foreground or background
18827 is explicitly set.
18828
18829 2002-11-19 Dave Love <fx@gnu.org>
18830
18831 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
18832
18833 2002-11-18 Jason Rumney <jasonr@gnu.org>
18834
18835 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
18836 (XPutPixel): Swap blue and red.
18837 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
18838 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
18839 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
18840 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
18841
18842 2002-11-18 Dave Love <fx@gnu.org>
18843
18844 * m/orion105.h (HAVE_ALLOCA): Don't define.
18845
18846 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
18847
18848 * m/intel386.h: Don't include alloca.h or define alloca.
18849
18850 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
18851 malloc, realloc, calloc.
18852
18853 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
18854 (bcmp): Don't define.
18855
18856 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
18857
18858 * m/amdahl.h: Don't define LIB_STANDARD.
18859
18860 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
18861
18862 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
18863
18864 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
18865 Don't include alloca.h.
18866
18867 * s/aix3-2.h (HAVE_FSYNC): Don't define.
18868
18869 * regex.c (_GNU_SOURCE): Don't define.
18870
18871 * process.c (_GNU_SOURCE): Don't define.
18872
18873 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
18874
18875 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
18876
18877 * s/sol2-8.h: Include sol2-6.h.
18878
18879 2002-11-18 Miles Bader <miles@gnu.org>
18880
18881 * dispextern.h (struct face): Add `overstrike' field.
18882 * xterm.c (x_draw_glyph_string_foreground)
18883 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18884 * xfaces.c (load_face_font): Set `face->overstrike' based on
18885 result from choose_face_font.
18886 (best_matching_font, choose_face_font): Add `needs_overstrike'
18887 argument, and use it to return whether overstriking is desirable
18888 for this face/font combo.
18889 (set_font_frame_param: Pass new argument to choose_face_font.
18890
18891 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18892
18893 This change is my fix for the following entry in etc/PROBLEMS:
18894 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18895 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18896
18897 * w32.c: Added wrapper functions around the win32 API functions
18898 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
18899 GetSidIdentifierAuthority. These wrapper functions serve two
18900 purposes:
18901 1. They ensure that the wrapped function can never be called
18902 when Emacs is running on an operating system on which they are
18903 not supported (Microsoft Windows 95 / 98 / ME).
18904 2. They call the wrapped functions via function pointers rather
18905 than calling them directly. This avoids taking advantage of the
18906 undocumented fact that although these functions are not supported
18907 in the 9x branch of Microsoft Windows, the functions do exist in
18908 the version of advapi32.dll that is found in the 9x branch of
18909 Microsoft Windows.
18910
18911 * w32.c (init_user_info): Replace the calls to the win32 API
18912 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
18913 and GetSidIdentifierAuthority with calls to the newly added
18914 wrapper functions.
18915
18916 * w32.h: Added extern declarations for the following functions:
18917 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
18918 syms_of_w32menu, and void syms_of_fontset.
18919
18920 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
18921 function pointer track_mouse_event_fn in the handler for the
18922 WM_SETFOCUS message.
18923
18924 * w32menu.c (initialize_frame_menubar): Add code to
18925 reinitialize the function pointers set_menu_item_info and
18926 get_menu_item_info.
18927
18928 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18929
18930 * sound.c: Added a partial implementation of play-sound-internal
18931 for Microsoft Windows. Added various #ifdef / #else / #endif
18932 code blocks to separate the code that will compile under
18933 Microsoft Windows from the code that is specific to GNU/Linux.
18934 Moved several blocks of code around to make this separation of code
18935 into Windows compatible and GNU/Linux compatible code blocks easier.
18936
18937 * makefile.w32-in: Include sound.c and link with WinMM.lib.
18938
18939 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
18940 added support for play-sound-internal under Windows would be
18941 included in the build of Emacs.
18942
18943 2002-11-16 Jason Rumney <jasonr@gnu.org>
18944
18945 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
18946
18947 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
18948
18949 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
18950
18951 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
18952 (adjust_point_for_property): Move out of display and invisible even if
18953 we were already inside before (in case a property was added while
18954 we weren't looking). Be more careful when handling invisible props.
18955 Skip invisible text as if it really wasn't there at all.
18956
18957 2002-11-15 Jason Rumney <jasonr@gnu.org>
18958
18959 * w32term.c (x_draw_image_foreground)
18960 (w32_draw_image_foreground_1): Use standard copy and invert
18961 operations to draw images.
18962
18963 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
18964 depth of 1.
18965 (xbm_read_bitmap_data): Invert bits as xbm is read in.
18966 (XPutPixel): Don't invert bits here.
18967
18968 2002-11-15 Jason Rumney <jasonr@gnu.org>
18969
18970 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
18971 (w32_draw_image_foreground_1): Handle image masks.
18972 (x_draw_image_glyph_string): Don't BitBlt transparently.
18973
18974 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
18975 (x_from_xcolors): Adjust RGB values for W32.
18976 (image_background, image_background_transparent)
18977 (postprocess_image, x_to_xcolors, x_disable_image)
18978 (x_build_heuristic_mask): Adapt for W32 and enable.
18979 (x_create_x_image_and_pixmap): Mark images with palettes as such.
18980 (xbm_load): Remove unused variable.
18981
18982 2002-11-14 Richard M. Stallman <rms@gnu.org>
18983
18984 * buffer.c (syms_of_buffer): Doc fix.
18985
18986 2002-11-14 Dave Love <fx@gnu.org>
18987
18988 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
18989
18990 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
18991 * xmenu.c (unuse_menu_items, digest_single_submenu):
18992 * xfns.c (x_put_x_image):
18993 * xdisp.c (message2_nolog, set_message):
18994 * undo.c (record_point):
18995 * terminfo.c (tparam):
18996 * syntax.c (scan_sexps_forward):
18997 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18998 * composite.c (update_compositions):
18999 * cm.c (calccost, cmgoto):
19000 * charset.c (c_string_width): Declare all args (per C99).
19001
19002 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
19003
19004 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
19005 Don't declare.
19006
19007 * emacs.c (main) [!VMS]: Avoid third arg.
19008
19009 * fns.c (Fcopy_sequence): Doc fix.
19010 (Fmap_char_table): Cast `call2'.
19011
19012 2002-11-14 Francesco Potorti` <pot@gnu.org>
19013
19014 * s/sol2-8.h: New file.
19015
19016 2002-11-14 Kim F. Storm <storm@cua.dk>
19017
19018 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
19019 dependency on `risky-local-variable' and the :propertize form.
19020
19021 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
19022
19023 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
19024
19025 * syntax.c (scan_sexps_forward): Undo last patch.
19026 Use a more obvious fix: check eob before updating the syntax table.
19027
19028 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
19029
19030 * syntax.c (scan_sexps_forward): Update syntax table before reading
19031 a char rather than after so we don't update the table past eob.
19032
19033 2002-11-09 Dave Love <fx@gnu.org>
19034
19035 * buffer.c (Fset_buffer_major_mode): Fix last change.
19036
19037 * regex.c (regexec): Fix pmatch declaration.
19038
19039 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
19040
19041 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
19042 to self-inserting characters.
19043 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
19044
19045 * coding.c (Vtranslation_table_for_input): New.
19046 (syms_of_coding): DEFVAR it.
19047
19048 2002-11-08 Juanma Barranquero <lektu@terra.es>
19049
19050 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
19051 window.
19052
19053 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19054
19055 * process.c (Fformat_network_address): Remove unused locals p,
19056 cp, and i.
19057
19058 2002-11-06 Dave Love <fx@gnu.org>
19059
19060 * buffer.c (Qset_buffer_major_mode_hook): New.
19061 (Fset_buffer_major_mode): Use it.
19062
19063 2002-11-06 Richard M. Stallman <rms@gnu.org>
19064
19065 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
19066 and stop_polling.
19067
19068 * process.c (wait_reading_process_input):
19069 Test POLLING_PROBLEM_IN_SELECT, not hpux.
19070 Avoid initialization for auto Lisp_Object var.
19071
19072 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
19073
19074 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
19075
19076 2002-11-05 Richard M. Stallman <rms@gnu.org>
19077
19078 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
19079
19080 * callint.c (Fcall_interactively): New local filter_specs.
19081 (Fcall_interactively): Check for progn as well as let.
19082 Add a gcpro.
19083 (Qprogn): New variable.
19084 (syms_of_callint): Staticpro and init Qprogn.
19085
19086 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
19087
19088 * lread.c (Feval_buffer): Doc fix.
19089
19090 2002-11-04 Dave Love <fx@gnu.org>
19091
19092 * keyboard.c (read_char): Always translate iff
19093 Vkeyboard_translate_table is a char table and c is valid.
19094
19095 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19096 and fix C types.
19097
19098 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
19099
19100 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
19101
19102 * editfns.c (get_pos_property): Don't hardcode Qfield.
19103
19104 * keyboard.c (adjust_point_for_property): Handle `display' prop on
19105 overlays. Also handle `invisible' prop.
19106
19107 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
19108
19109 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
19110 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
19111
19112 2002-11-01 Andreas Schwab <schwab@suse.de>
19113
19114 * editfns.c (Fmessage): Revert last change to properly handle %%.
19115
19116 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
19117
19118 * xmenu.c (unuse_menu_items): New fun.
19119 (menu_items_inuse): New var.
19120 (syms_of_xmenu): Initialize it.
19121 (init_menu_items): Use it to detect re-entrance.
19122 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
19123 (Fx_popup_menu): Remove spurious XSETFRAME.
19124
19125 * editfns.c (find_field): Make an exception for nil fields.
19126
19127 2002-11-01 Dave Love <fx@gnu.org>
19128
19129 * m/gec63.h: Deleted.
19130
19131 2002-10-31 Dave Love <fx@gnu.org>
19132
19133 * xterm.c (XTread_socket): Fix last change.
19134 (xaw_scroll_callback): Cast call_data to long to avoid warning.
19135
19136 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
19137
19138 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
19139
19140 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
19141
19142 * editfns.c (overlays_around, get_pos_property): New funs.
19143 (find_field): Use them.
19144 Also be careful not to modify POS before its last use.
19145 (Fmessage): Don't Fformat if there's nothing to format.
19146
19147 2002-10-30 Dave Love <fx@gnu.org>
19148
19149 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
19150 [HAVE_PTY_H]; Include pty.h.
19151
19152 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
19153
19154 * xterm.c (Qeql): Declare.
19155 (Vx_keysym_table): New.
19156 (syms_of_xterm): Initialize it.
19157 (XTread_socket): Use it. Deal with ASCII keysyms.
19158 (XSetIMValues) [HAVE_X11R6]: Prototype.
19159
19160 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
19161 (lispy_kana_keys): Comment out.
19162 (make_lispy_event) [XK_kana_A]: Comment out.
19163 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
19164 Fix sprintf call.
19165
19166 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
19167 regexp.h change).
19168 (TERMINFO, LIBS_TERMCAP): Define.
19169
19170 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
19171 (bcmp): Define conditional on HAVE_BCMP.
19172 (NO_SIOCTL_H): Don't define.
19173 (TIOCSIGSEND): Don't make conditional on IRIX6.
19174
19175 * s/sol2-5.h: Don't include strings.h.
19176 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
19177
19178 * s/irix6-0.h (IRIX6): Don't define.
19179 (bcopy, bcmp, bzero): Don't undef.
19180
19181 * s/irix6-5.h: Don't include strings.h.
19182 (IRIX6): Don't define.
19183 (bcopy, bcmp, bzero): Don't undef.
19184
19185 * syntax.c (Fforward_comment): Doc fix.
19186
19187 2002-10-29 Kim F. Storm <storm@cua.dk>
19188
19189 * process.c (Fsignal_process): Allow PROCESS to be specified by
19190 name in addition to pid (as integer or string).
19191
19192 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
19193
19194 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
19195 environments.
19196
19197 2002-10-27 Kim F. Storm <storm@cua.dk>
19198
19199 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19200
19201 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
19202
19203 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
19204
19205 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19206
19207 2002-10-26 Richard M. Stallman <rms@gnu.org>
19208
19209 * editfns.c (Fformat): Detect invalid format letters for floats.
19210
19211 2002-10-25 Kenichi Handa <handa@m17n.org>
19212
19213 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
19214 (x_set_title): Likewise.
19215
19216 2002-10-25 Juanma Barranquero <lektu@terra.es>
19217
19218 * macgui.h:
19219 * w32gui.h: Remove definition of XColor.
19220
19221 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
19222
19223 2002-10-24 Kim F. Storm <storm@cua.dk>
19224
19225 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
19226 Callers changed (supply dummy arg).
19227
19228 * lisp.h (get_window_cursor_type): Update prototype.
19229
19230 * w32term.c (x_display_and_set_cursor): Get active_cursor from
19231 get_window_cursor_type to track system caret.
19232
19233 2002-10-24 Kim F. Storm <storm@cua.dk>
19234
19235 * process.c (Fformat_network_address): New function.
19236 (syms_of_process): Defsubr it.
19237 (list_processes_1): Use it to format :local/:remote address if
19238 service/host is not set; before Emacs would crash in that case.
19239 (Fmake_network_process): Don't use Ffind_operation_coding_system
19240 to setup coding system if host or service is not set.
19241
19242 2002-10-23 Juanma Barranquero <lektu@terra.es>
19243
19244 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
19245
19246 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
19247 COLORREF.
19248
19249 * macgui.h:
19250 * w32gui.h: Add definition of XColor.
19251
19252 * macfns.c:
19253 * w32fns.c:
19254 * xfaces.c: Remove definition of XColor.
19255
19256 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
19257
19258 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
19259
19260 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
19261 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
19262 window if it is dedicated.
19263 (Fshrink_window): Add preserve_before as was done for enlarge_window.
19264 (Vspecial_display_function): Update docstring.
19265
19266 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
19267 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
19268 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
19269
19270 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
19271
19272 * casefiddle.c (casify_region): Don't treat a prefix char as part
19273 of a word when at the beginning.
19274
19275 2002-10-17 Juanma Barranquero <lektu@terra.es>
19276
19277 * lread.c (syms_of_lread): Fix typos.
19278
19279 2002-10-17 Dave Love <fx@gnu.org>
19280
19281 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
19282
19283 2002-10-16 Richard M. Stallman <rms@gnu.org>
19284
19285 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
19286
19287 2002-10-14 Juanma Barranquero <lektu@terra.es>
19288
19289 * w16select.c (syms_of_win16select): Fix docstring for
19290 `selection-coding-system'.
19291
19292 * w32select.c (syms_of_w32select): Likewise.
19293
19294 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
19295
19296 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
19297 a backslash-quoted char.
19298 (scan_lists, scan_sexps_forward): Pacify the compiler.
19299
19300 2002-10-13 Richard M. Stallman <rms@gnu.org>
19301
19302 * window.c (window_scroll): Set immediate_quit.
19303
19304 * print.c (print): When backquote form is the car of a list,
19305 output in old style. Use old_backquote_output to output all
19306 comma forms inside it in old style too.
19307
19308 * buffer.h (struct buffer): Move `undo_list' down below `name'.
19309
19310 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
19311
19312 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
19313 batch mode).
19314
19315 * lread.c (Fload): Doc fix (load-suffixes).
19316
19317 2002-10-10 Steven Tamm <steventamm@mac.com>
19318
19319 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
19320 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
19321 Also switch the default to Qnil from Qt.
19322
19323 2002-10-08 Kenichi Handa <handa@m17n.org>
19324
19325 * coding.c (code_convert_region): When we need more GAP for
19326 conversion, pay attention to the case that coding->produced is not
19327 greater than coding->consumed.
19328
19329 2002-10-07 Richard M. Stallman <rms@gnu.org>
19330
19331 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
19332
19333 2002-10-06 Andrew Choi <akochoi@shaw.ca>
19334
19335 * macmenu.c (mac_menu_show): Add j to count menu items; match
19336 menu_item_selection to it to find selected item.
19337
19338 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19339
19340 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
19341 cases. The correct fix is to pass ReparentNotify to Xt.
19342 The shell widget interprets ConfigureNotify differently depending
19343 on if it has been reparented or not.
19344
19345 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
19346
19347 * editfns.c (Fformat_time_string): Doc fix.
19348
19349 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
19350
19351 * fns.c (Flength): Doc fix.
19352
19353 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
19354
19355 * keyboard.c (keyremap): New struct.
19356 (read_key_sequence): Use it: globally replace keytran_foo with
19357 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
19358 keytran_next and fkey_next to just `next'.
19359
19360 2002-10-04 Steven Tamm <steventamm@mac.com>
19361
19362 * macterm.c (keycode_to_xkeysym_table): Change return to be
19363 treated like an X keysym.
19364
19365 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19366
19367 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
19368 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
19369 This is to also handle x/y changes that occur because of a resize.
19370
19371 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
19372
19373 * frame.c (Vdelete_frame_functions): New variable.
19374 (syms_of_frame): Initialize and defvar it.
19375 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
19376 it when frame's `tooltip' parameter is non-nil.
19377
19378 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
19379
19380 * w32fns.c (x_create_tip_frame): Likewise.
19381
19382 * macfns.c (x_create_tip_frame): Likewise.
19383
19384 2002-09-30 Kenichi Handa <handa@m17n.org>
19385
19386 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
19387 -1 before calling ccl_driver.
19388
19389 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
19390 Only when it is non-nil, handle composition sequence.
19391 (setup_coding_system) <0>: Don't force composition handling.
19392
19393 * Makefile.in (lisp, shortlisp): Add utf-16.elc
19394
19395 2002-09-29 Richard M. Stallman <rms@gnu.org>
19396
19397 * search.c (Freplace_match): Adjust match data for the substitution
19398 just made in the buffer.
19399
19400 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
19401 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
19402
19403 2002-09-27 Richard M. Stallman <rms@gnu.org>
19404
19405 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
19406 (read_char): Use them. Do all exits thru the end of the function.
19407
19408 2002-09-27 Kenichi Handa <handa@etl.go.jp>
19409
19410 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
19411 is nil.
19412
19413 2002-09-26 Richard M. Stallman <rms@gnu.org>
19414
19415 * regex.h (__restrict_arr): Don't define if already defined.
19416
19417 * coding.c (run_pre_post_conversion_on_str):
19418 Save and restore Vdeactivate_mark.
19419
19420 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
19421
19422 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
19423
19424 2002-09-26 Kenichi Handa <handa@etl.go.jp>
19425
19426 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
19427 nonzero, try face's family at first. Otherwise try FAMILY at first.
19428 (choose_face_font): If C is a single byte char or latin-1, call
19429 try_font_list with PREFER_FACE_FAMILY 1.
19430
19431 2002-09-21 Richard M. Stallman <rms@gnu.org>
19432
19433 * window.c (select_window_1): Don't select frame.
19434 Set frame's selected window only when frame itself is selected.
19435 (Fselect_window): Doc fix.
19436
19437 2002-09-18 Kim F. Storm <storm@cua.dk>
19438
19439 * process.c (make-network-process): Doc fix (there is no
19440 network-server-log-function hook).
19441
19442 2002-09-18 Richard M. Stallman <rms@gnu.org>
19443
19444 * print.c (print): Clear out the unused parts of Vprint_number_table.
19445 (syms_of_print): Doc fix for `print-number-table'.
19446
19447 * unexelf.c (unexec): Undo previous change.
19448
19449 2002-09-17 Andreas Schwab <schwab@suse.de>
19450
19451 * m/alpha.h [LINUX]: Don't define DATA_START.
19452
19453 2002-09-16 Dave Love <fx@gnu.org>
19454
19455 * unexelf.c (unexec): Deal with .got, reinstating change from
19456 25-08-1999.
19457
19458 2002-09-13 Richard M. Stallman <rms@gnu.org>
19459
19460 * s/sol2-6.h (UNEXEC): Comment out definition.
19461
19462 * unexsol.c (unexec): Don't downcase first letter of error msg.
19463
19464 * xfaces.c (Fcolor_supported_p): Just one arg is required.
19465
19466 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
19467
19468 * unexsol.c: Include buffer.h, charset.h, coding.h.
19469
19470 2002-09-11 Richard M. Stallman <rms@gnu.org>
19471
19472 * unexsol.c: Don't use report_file_error; do it by hand
19473 using dlerror.
19474
19475 * process.c (wait_reading_process_input, both versions):
19476 Before calling turn_on_atimers, call stop_polling.
19477
19478 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
19479
19480 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
19481 we go to too_near_end, call clear_glyph_matrix.
19482 (redisplay_window): After make_cursor_line_fully_visible,
19483 call clear_glyph_matrix and bypass `goto done'.
19484
19485 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
19486 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
19487
19488 2002-09-10 Richard M. Stallman <rms@gnu.org>
19489
19490 * fileio.c (Fdo_auto_save): Catch error making directory.
19491 Only call push_message if we need to.
19492 At the same time, make an unwind-protect to pop it.
19493 Rename local message_p to old_message_p.
19494 (do_auto_save_make_dir, do_auto_save_eh): New functions.
19495 (do_auto_save_unwind): Don't call pop_message.
19496
19497 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
19498
19499 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
19500
19501 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
19502
19503 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
19504
19505 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
19506
19507 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
19508 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
19509 (re_match_2_internal): Be more careful with infinite loops.
19510
19511 2002-09-10 Kim F. Storm <storm@cua.dk>
19512
19513 * macros.c (end_kbd_macro): New function.
19514 (Fend_kbd_macro): Use it.
19515
19516 * macros.h (end_kbd_macro): Declare extern.
19517
19518 * keyboard.c (Fdiscard_input): If defining keyboard macro,
19519 end and save it instead of discarding it.
19520
19521 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
19522
19523 * s/sol2-6.h: Fix typo. Add comment.
19524
19525 2002-09-09 Richard M. Stallman <rms@gnu.org>
19526
19527 * regex.c (regnum_t): Use signed int, not unsigned int.
19528
19529 * s/sol2-6.h: New file.
19530
19531 * s/sol2-5.h (UNEXEC): Definition deleted.
19532
19533 2002-09-08 Kim F. Storm <storm@cua.dk>
19534
19535 * macros.c (executing_macro_index): Change type to EMACS_INT.
19536 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
19537
19538 * macros.h (executing_macro_index): Change type to EMACS_INT.
19539
19540 2002-09-06 Richard M. Stallman <rms@gnu.org>
19541
19542 * casetab.c (set_case_table): Make canon table point to eqv table.
19543
19544 2002-09-06 Juanma Barranquero <lektu@terra.es>
19545
19546 * coding.c (syms_of_coding): Fix spacing.
19547
19548 * composite.c (Fcompose_region_internal)
19549 (Fcompose_string_internal): Likewise.
19550
19551 * data.c (Flsh): Likewise.
19552
19553 * fontset.c (Fset_fontset_font): Likewise.
19554
19555 * macfns.c (Fx_server_max_request_size): Likewise.
19556
19557 * w16select.c (syms_of_win16select): Likewise.
19558
19559 * w32select.c (syms_of_w32select): Likewise.
19560
19561 * xselect.c (syms_of_xselect): Likewise.
19562
19563 2002-09-05 Richard M. Stallman <rms@gnu.org>
19564
19565 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
19566 call EXTEND_RANGE_TABLE and return a proper value.
19567 (set_image_of_range): Don't call set_image_of_range_1
19568 if no TRANSLATE or if range includes all of Latin-1.
19569 Only call it for the Latin-1 part of the range.
19570 For other cases, make two separate ranges,
19571 one for the original specified characters and one for
19572 their case-conversions.
19573
19574 2002-09-04 Richard M. Stallman <rms@gnu.org>
19575
19576 * s/sol2-5.h (UNEXEC): Use unexsol.o.
19577
19578 * window.c (displayed_window_lines): Correct for one-off bug
19579 in HEIGHT on non-window displays.
19580
19581 * regex.c (set_image_of_range_1): New function.
19582 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
19583 Return a value to indicate running out of memory.
19584 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
19585 (extend_range_table_work_area): New subroutine.
19586 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
19587 Different calling conventions, and used from set_image_of_range{,_1}.
19588 (IMMEDIATE_QUIT_CHECK): Definitions moved.
19589
19590 2002-09-04 Juanma Barranquero <lektu@terra.es>
19591
19592 * makefile.w32-in: All dependencies updated.
19593
19594 2002-09-01 Richard M. Stallman <rms@gnu.org>
19595
19596 * unexsol.c: New file.
19597
19598 * xfns.c (Qbox): Declare external, don't define.
19599
19600 * xdisp.c (redisplay_window) <force-start case>:
19601 If point is on semi-visible last line, reposition
19602 it at previous line.
19603
19604 * alloc.c (display_malloc_warning): Use display-warning.
19605 (malloc_warning_1): Function deleted.
19606
19607 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
19608
19609 * lread.c (read1): Handle #! by skipping the line.
19610
19611 2002-08-31 Richard M. Stallman <rms@gnu.org>
19612
19613 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
19614 Don't include LDFLAGS.
19615 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
19616
19617 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
19618
19619 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
19620 member of x_display_info unless we compile for some window system.
19621
19622 2002-08-31 Kim F. Storm <storm@cua.dk>
19623
19624 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
19625 (get_window_cursor_type): Don't use them.
19626 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
19627
19628 2002-08-30 Kenichi Handa <handa@etl.go.jp>
19629
19630 * xdisp.c (get_next_display_element): Fix previous change.
19631
19632 2002-08-30 Andrew Choi <akochoi@shaw.ca>
19633
19634 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
19635 (expose_window): Use it to fix the display of overlapping
19636 rows (merge code from xterm.c).
19637
19638 * macfns.c (Qbox): Add extern declaration.
19639
19640 2002-08-30 Juanma Barranquero <lektu@terra.es>
19641
19642 * w32fns.c (Qbox): Make extern.
19643 (syms_of_w32fns): Remove initialization of Qbox.
19644
19645 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
19646
19647 * xfns.c (Fx_open_connection): Fix error message.
19648
19649 2002-08-30 Kim F. Storm <storm@cua.dk>
19650
19651 The following changes consolidates the handling of the cursor
19652 type in xdisp.c, moving duplicate code and functionality from
19653 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
19654
19655 * frame.h (enum text_cursor_kinds): Consolidated here.
19656 Added DEFAULT_CURSOR value.
19657 (struct frame) <desired_cursor, cursor_width>
19658 <blink_off_cursor, blink_off_cursor_width>: New fields.
19659 Consolidated from output_x, output_w32 and output_mac structs.
19660 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19661 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
19662
19663 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
19664 Variables consolidated here.
19665 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
19666 (Vcursor_in_non_selected_windows): Renamed from
19667 cursor_in_non_selected_windows and changed to Lisp_Object.
19668 (syms_of_xdisp): Define and staticpro new and moved variables.
19669 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
19670 consolidated here. Recognize Qhollow setting.
19671 (set_frame_cursor_types): New function to set frame cursor types
19672 based on the frame parameters.
19673 (get_window_cursor_type): New function to calculate new cursor
19674 type and width for the specified window. Based on duplicated
19675 code consolidated here.
19676 Enhancements: cursor-in-non-selected-windows may be a cursor type,
19677 check buffer-local alternate-cursor-type and blink-cursor-alist
19678 before using built-in blink off methods.
19679
19680 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
19681
19682 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
19683 (get_specified_cursor_type, get_window_cursor_type)
19684 (set_frame_cursor_types): Added prototypes.
19685
19686 * macfns.c (x_specified_cursor_type): Removed.
19687 (x_set_cursor_type): Use set_frame_cursor_types.
19688 (Qbar, Qbox): Removed.
19689 (syms_of_macfns): Don't intern or staticpro them.
19690
19691 * macterm.c (x_specified_cursor_type): Remove prototype.
19692 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19693 (x_display_and_set_cursor): Use get_window_cursor_type.
19694 Remove unused local variables cursor_non_selected, active_cursor.
19695 Redraw cursor if hbar cursor width changes.
19696 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
19697
19698 * macterm.h (enum text_cursor_kinds): Removed.
19699 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
19700 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19701 (FRAME_DESIRED_CURSOR): Macro removed.
19702
19703 * w32fns.c (Vblink_cursor_alist): Removed.
19704 (Qbar, Qhbar, Qbox, Qhollow): Removed.
19705 (syms_of_w32fns): Don't intern, staticpro, or define them.
19706 (x_specified_cursor_type): Removed.
19707 (x_set_cursor_type): Use set_frame_cursor_types.
19708
19709 * w32term.c (x_specified_cursor_type): Remove prototype.
19710 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19711 (x_display_and_set_cursor): Use get_window_cursor_type.
19712 Remove unused local variables cursor_off_state.
19713 Redraw cursor if hbar cursor width changes.
19714 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
19715
19716 * w32term.h (enum text_cursor_kinds): Removed.
19717 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
19718 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19719 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19720 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
19721 (struct w32_display_info) <x_highlight_frame>: Renamed member from
19722 w32_highlight_frame.
19723
19724 * xfns.c (Vblink_cursor_alist): Removed.
19725 (Qbar, Qhbar, Qbox, Qhollow): Removed.
19726 (syms_of_xfns): Don't intern, staticpro, or define them.
19727 (x_specified_cursor_type): Removed.
19728 (x_set_cursor_type): Use set_frame_cursor_types.
19729
19730 * xterm.c (x_specified_cursor_type): Remove prototype.
19731 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19732 (x_display_and_set_cursor): Use get_window_cursor_type.
19733 Remove unused local variables cursor_off_state.
19734 Redraw cursor if hbar cursor width changes.
19735
19736 * xterm.h (enum text_cursor_kinds): Removed.
19737 (struct output_x) <current_cursor, desired_cursor, cursor_width>
19738 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19739 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19740 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
19741 (x_specified_cursor_type): Remove prototype.
19742
19743 2002-08-28 Richard M. Stallman <rms@gnu.org>
19744
19745 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19746 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19747 (Vblink_cursor_alist): New variable.
19748 (syms_of_w32fns): Initialize and defvar it.
19749 (x_specified_cursor_type): Recognize Qbox for filled box.
19750 Exceptions are hollow boxes.
19751 (Qbox, Qhollow): New variables.
19752 (syms_of_w32fns): Initialize and staticpro them.
19753
19754 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19755 New macros.
19756 (struct w32_output): New fields blink_off_cursor,
19757 blink_off_cursor_width.
19758 (FRAME_CURSOR_WIDTH): New macro.
19759
19760 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19761 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19762
19763 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19764 for bar cursor.
19765
19766 * w32term.c (expose_overlaps): New function.
19767 (expose_window): Use it to fix the display of overlapping rows.
19768
19769 2002-08-28 Simon Josefsson <jas@extundo.com>
19770
19771 * xfns.c (Fx_open_connection): Improve help when X connection
19772 fails, xhost is insecure and xauth is better.
19773
19774 2002-08-28 Juanma Barranquero <lektu@terra.es>
19775
19776 * makefile.w32-in: Add missing dependencies on w32term.h and
19777 composite.h.
19778
19779 * emacs.c (USAGE1): Add missing newline.
19780
19781 2002-08-27 Andrew Choi <akochoi@shaw.ca>
19782
19783 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
19784
19785 2002-08-27 Richard M. Stallman <rms@gnu.org>
19786
19787 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19788 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19789 (Vblink_cursor_alist): New variable.
19790 (syms_of_xfns): Initialize and defvar it.
19791 (x_specified_cursor_type): Recognize Qbox for filled box.
19792 Exceptions are hollow boxes.
19793 (Qbox, Qhollow): New variables.
19794 (syms_of_xfns): Initialize and staticpro them.
19795
19796 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19797 New macros.
19798 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
19799
19800 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19801 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19802
19803 * emacs.c (main): Handle --script.
19804 (USAGE1): Mention --script.
19805 (standard_args): Define sort order for --script.
19806
19807 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
19808
19809 * xdisp.c (redisplay_updating_p): Variable removed.
19810 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
19811 New variables.
19812 (init_iterator): Don't free realized faces if
19813 inhibit_free_realized_faces is set.
19814 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
19815 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
19816 initialize Qinhibit_free_realized_faces.
19817
19818 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
19819 when iterator is adding glyphs to a glyph matrix.
19820
19821 2002-08-27 Kenichi Handa <handa@etl.go.jp>
19822
19823 * xdisp.c (get_next_display_element): In unibyte case, don't use
19824 octal form for such eight-bit characters that can be converted to
19825 multibyte char.
19826
19827 2002-08-26 Kim F. Storm <storm@cua.dk>
19828
19829 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
19830 foreground and background colors. From Joe Buehler.
19831
19832 2002-08-26 Miles Bader <miles@gnu.org>
19833
19834 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
19835
19836 2002-08-25 Andrew Choi <akochoi@shaw.ca>
19837
19838 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
19839 defined instead of MAC_OSX.
19840
19841 * s/darwin.h (select): Define select to sys_select only if
19842 HAVE_CARBON is defined.
19843 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
19844 (DONT_REOPEN_PTY): #def it.
19845
19846 * macterm.c (XTread_socket): Remove code to call
19847 SendEventToEventTarget for keys with command modifiers when
19848 mac_command_key_is_meta is nil.
19849
19850 2002-08-24 Andreas Schwab <schwab@suse.de>
19851
19852 * eval.c (Fdefvar): Fix last change.
19853
19854 2002-08-23 Richard M. Stallman <rms@gnu.org>
19855
19856 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
19857 Record variables in load history as (defvar . VAR).
19858 (Fdefvar): Don't record in load history if no initial value.
19859 (Qdefvar): New variable.
19860 (syms_of_eval): Init and staticpro it.
19861
19862 * lread.c (syms_of_lread): Doc fix.
19863 (build_load_history): Use Fmember to see if a definition
19864 is already in the Vload_history element.
19865
19866 * process.c (Fstart_process): Remove /: from program name.
19867
19868 * emacs.c (decode_env_path): Don't add /: if file name handler
19869 has a `safe-magic' property.
19870
19871 * callproc.c (Fcall_process): Remove /: from program name.
19872
19873 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
19874
19875 * regex.c (PATFETCH): Remove the translating fetch.
19876 (PATFETCH_RAW): Rename to PATFETCH.
19877 (set_image_of_range): New fun.
19878 (SET_RANGE_TABLE_WORK_AREA): Use it.
19879 (regex_compile): Don't translate the pattern chars so eagerly.
19880 Only do it when inserting an `exactn' bytecode or when handling
19881 a char-range.
19882 (mutually_exclusive_p): Avoid empty statement.
19883
19884 2002-08-22 Kim F. Storm <storm@cua.dk>
19885
19886 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
19887 end up on a partially visible line; this reverts a specific part
19888 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
19889 display error which has been reported several times now.
19890 However it introduces the problem that changes was supposed to fix.
19891 See my comments in the source if you want to debug this further.
19892
19893 2002-08-20 Kenichi Handa <handa@etl.go.jp>
19894
19895 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19896
19897 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
19898
19899 * msdos.c (croak): Add `void' to definition.
19900
19901 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
19902 Don't define them, they are defined in msdos.c.
19903
19904 * mem-limits.h [MSDOS]: Declare etext.
19905
19906 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
19907 `const' since CORRECT_DIR_SEPS modifies its target.
19908
19909 2002-08-19 Kim F. Storm <storm@cua.dk>
19910
19911 * keyboard.c (Fclear_this_command_keys): Add optional arg
19912 KEEP-RECORD to avoid clearing lossage when we just want to clear
19913 the current key sequence (kmacro needs this).
19914
19915 2002-08-19 Kenichi Handa <handa@localhost>
19916
19917 * composite.c (run_composition_function): Call FUNC if it is fboundp.
19918
19919 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
19920 cons, return Qnil.
19921
19922 2002-08-17 Richard M. Stallman <rms@gnu.org>
19923
19924 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
19925
19926 * sysdep.c [!VMS]: Include sys/files.h.
19927
19928 * editfns.c (save_restriction_restore): Defend from unchained marker.
19929
19930 * buffer.c (overlays_at): Handle extending vec uniformly.
19931 (overlays_in): Handle extending vec from length 0 as in overlays_at.
19932
19933 2002-08-15 Andrew Choi <akochoi@shaw.ca>
19934
19935 * mac.c (init_mac_osx_environment): New function.
19936
19937 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
19938
19939 2002-08-14 Kim F. Storm <storm@cua.dk>
19940
19941 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
19942 executing macro before appending to it (when used from Lisp).
19943 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
19944 which is called prior to each iteration of macro (for kmacro.el).
19945 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
19946
19947 * lisp.h (Fexecute_kbd_macro): Update prototype.
19948
19949 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
19950
19951 2002-08-14 Kenichi Handa <handa@etl.go.jp>
19952
19953 * xselect.c (QUTF8_STRING): New variable.
19954 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
19955 (x_atom_to_symbol): Likewise.
19956 (x_get_local_selection): New argument local_request. If it is
19957 nonzero, call handler_fn with the second arg nil.
19958 (x_handle_selection_request): Call x_get_local_selection with
19959 local_request 0.
19960 (lisp_data_to_selection_data): Don't encode the string here.
19961 (Fx_get_selection_internal): Call x_get_local_selection with
19962 local_request 1.
19963 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
19964
19965 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
19966
19967 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
19968
19969 2002-08-13 Richard M. Stallman <rms@gnu.org>
19970
19971 * minibuf.c (Fminibufferp): New function.
19972 (syms_of_minibuf): Defsubr it.
19973 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
19974
19975 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
19976
19977 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
19978
19979 2002-08-12 Richard M. Stallman <rms@gnu.org>
19980
19981 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
19982 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
19983 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
19984 already.
19985
19986 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
19987
19988 2002-08-11 Andrew Choi <akochoi@shaw.ca>
19989
19990 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
19991 (Vmac_pass_command_to_system): New variable.
19992 (Vmac_pass_control_to_system): New variable.
19993 (do_mouse_moved): Check wp with is_emacs_window.
19994 (XTread_socket): Check window_ptr with is_emacs_window.
19995 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
19996 events back to Mac Toolbox for processing, depending on values of
19997 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
19998 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
19999 Vmac_pass_control_to_system.
20000
20001 2002-08-10 Kenichi Handa <handa@etl.go.jp>
20002
20003 * coding.c (unencodable_char_position): New function.
20004 (Funencodable_char_position): New function.
20005 (syms_of_coding): Defsubr Funencodable_char_position.
20006
20007 2002-08-10 Andrew Choi <akochoi@shaw.ca>
20008
20009 * mac.c (sys_select) [MAC_OSX]: New function.
20010
20011 * macterm.c (MakeMeTheFrontProcess): New function.
20012 (mac_initialize): Call MakeMeTheFrontProcess.
20013
20014 * s/darwin.h: Define select to sys_select.
20015
20016 2002-08-09 Richard M. Stallman <rms@gnu.org>
20017
20018 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
20019
20020 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
20021
20022 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
20023 end of the buffer.
20024
20025 2002-08-08 Ken Raeburn <raeburn@gnu.org>
20026
20027 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
20028
20029 * puresize.h (BASE_PURESIZE): Increase to 910000.
20030
20031 2002-08-08 Kenichi Handa <handa@etl.go.jp>
20032
20033 * coding.c (Ffind_operation_coding_system): For write-region, if
20034 VISIT is a filename, make it the target.
20035
20036 2002-08-07 Richard M. Stallman <rms@gnu.org>
20037
20038 * alloc.c (mark_object): Detect long lists for debugging.
20039 (mark_object_loop_halt): New variable.
20040
20041 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
20042
20043 * data.c (Fmake_variable_frame_local): Doc fix.
20044
20045 2002-08-01 David Ponce <david@dponce.com>
20046
20047 * w32menu.c (local_heap, local_alloc, local_free): New macros.
20048 (malloc_widget_value, free_widget_value)
20049 (w32_free_submenu_strings): Use them.
20050
20051 (push_submenu_start, push_submenu_end, push_left_right_boundary)
20052 (push_menu_pane, push_menu_item, single_keymap_panes)
20053 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
20054 (single_submenu, set_frame_menubar)
20055 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
20056
20057 (Fx_popup_menu): Don't show pop up menu until preceding one is
20058 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
20059
20060 * w32menu.c: Changes adapted from xmenu.c
20061 (set_frame_menubar): First parse all submenus,
20062 then make widget_value trees from them.
20063 Don't allocate any widget_value objects
20064 until we are done with the parsing.
20065 (parse_single_submenu): New function.
20066 (digest_single_submenu): New function.
20067 (single_submenu): Function deleted, replaced by those two.
20068
20069 2002-08-04 Andrew Choi <akochoi@shaw.ca>
20070
20071 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
20072 returns a valid window pointer before proceeding for keyDown and
20073 autoKey events.
20074
20075 2002-08-03 Andrew Choi <akochoi@shaw.ca>
20076
20077 * macterm.c (USE_CARBON_EVENTS): New macro.
20078 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
20079 (x_iconify_frame): Call CollapseWindow.
20080 (Vmac_reverse_ctrl_meta): New variable.
20081 (Vmac_wheel_button_is_mouse_2): New variable.
20082 (init_mac_drag_n_drop): New function.
20083 (mac_do_receive_drag): New function.
20084 (mac_handle_service_event): New function.
20085 (init_service_handler): New function.
20086 (mac_to_emacs_modifiers): New function.
20087 (mac_event_to_emacs_modifiers): New function.
20088 (mac_get_mouse_btn): New function.
20089 (mac_convert_event_ref): New function.
20090 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
20091 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
20092 mac_get_mouse_btn.
20093 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
20094
20095 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
20096 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
20097 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
20098 TOOL_BAR_EVENT for MAC_OS as well.
20099 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
20100 as for WINDOWS_NT.
20101 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
20102
20103 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
20104
20105 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
20106
20107 * xdisp.c (forward_to_next_line_start): Fix a condition that
20108 lead to a newline being skipped.
20109
20110 2002-08-02 Andrew Choi <akochoi@shaw.ca>
20111
20112 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
20113
20114 2002-08-01 Richard M. Stallman <rms@gnu.org>
20115
20116 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
20117
20118 2002-07-31 Andrew Choi <akochoi@shaw.ca>
20119
20120 * macfns.c: #undef init_process before #define-ing it.
20121
20122 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
20123 HAVE_CARBON is defined.
20124
20125 2002-07-31 Richard M. Stallman <rms@gnu.org>
20126
20127 * xmenu.c (set_frame_menubar): First parse all submenus,
20128 then make widget_value trees from them.
20129 Don't allocate any widget_value objects
20130 until we are done with the parsing.
20131 (parse_single_submenu): New function.
20132 (digest_single_submenu): New function.
20133 (single_submenu): Function deleted, replaced by those two.
20134
20135 2002-07-30 Juanma Barranquero <lektu@terra.es>
20136
20137 * w32proc.c (syms_of_ntproc): Fix docstring of
20138 `w32-get-true-file-attributes'.
20139
20140 2002-07-28 Richard M. Stallman <rms@gnu.org>
20141
20142 * s/hpux8.h (HPUX8): Define this before including hpux.h.
20143 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
20144
20145 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
20146
20147 * keyboard.c (make_lispy_event):
20148 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
20149 Explicitly clear up_modifier in event->modifiers.
20150
20151 2002-07-27 Richard M. Stallman <rms@gnu.org>
20152
20153 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
20154
20155 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20156 for bar cursor.
20157
20158 2002-07-26 Kenichi Handa <handa@etl.go.jp>
20159
20160 * coding.c (detect_coding_iso2022): While checking a byte sequence
20161 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
20162 it in the normal loop.
20163
20164 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
20165
20166 * xterm.c (expose_overlaps): New function.
20167 (expose_window): Use it to fix the display of overlapping rows.
20168
20169 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
20170
20171 2002-07-23 Ken Raeburn <raeburn@gnu.org>
20172
20173 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
20174 since it only depends on XUINT.
20175
20176 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
20177 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
20178 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
20179 Macros deleted.
20180
20181 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
20182 its value over other approaches.
20183 * sysdep.c (start_of_data): Don't define the function if a macro
20184 form has been defined.
20185
20186 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
20187
20188 * xdisp.c (redisplay_updating_p): New variable.
20189 (init_iterator): Don't free realized faces when
20190 redisplay_updating_p is set.
20191 (redisplay_internal): Set redisplay_updating_p while updating
20192 the display.
20193
20194 2002-07-23 Richard M. Stallman <rms@gnu.org>
20195
20196 * editfns.c (Fmessage): Treat "" like nil.
20197
20198 2002-07-23 Kenichi Handa <handa@etl.go.jp>
20199
20200 * xdisp.c (face_before_or_after_it_pos):
20201 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20202
20203 2002-07-22 Juanma Barranquero <lektu@terra.es>
20204
20205 * callproc.c (init_callproc) [DOS_NT]:
20206 Initialize Vshared_game_score_directory to nil.
20207 (syms_of_callproc) [DOS_NT]: Likewise.
20208
20209 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
20210
20211 * xdisp.c (display_line): Replace an abort with xassert.
20212
20213 2002-07-21 Richard M. Stallman <rms@gnu.org>
20214
20215 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
20216 and END_UNCHANGED when setting buffer_unchanged_p.
20217 Use current_matrix_up_to_date_p to decide whether to use
20218 try_cursor_movement.
20219
20220 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
20221
20222 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
20223
20224 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
20225 Set to nil if dir does not exist.
20226 (syms_of_callproc): Init unconditionally and simply.
20227
20228 * buffer.c (Fbuffer_list): Doc fix.
20229
20230 2002-07-21 Ken Raeburn <raeburn@gnu.org>
20231
20232 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
20233
20234 * buffer.c (mmap_realloc): When shrinking, make sure number of
20235 pages to unmap is rounded towards zero.
20236
20237 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
20238 (XSETINT): Deleted.
20239
20240 * m/att3b.h (XINT): Don't define.
20241 (VALBITS, VALMASK, XTYPE): Deleted.
20242 (DATA_SEG_BITS): Define.
20243 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
20244 ARRAY_MARK_FLAG): Deleted.
20245 (DATA_SEG_BITS): Define.
20246 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
20247 (DATA_SEG_BITS): Define.
20248
20249 2002-07-20 Richard M. Stallman <rms@gnu.org>
20250
20251 * print.c (print_error_message): New args CONTEXT and CALLER.
20252 Calls changed.
20253
20254 * lisp.h (print_error_message): Declare new args.
20255
20256 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
20257 and CONTEXT to print_error_message, don't print them here.
20258 For a Quit, don't use Vsignaling_function.
20259 Call message_log_maybe_newline.
20260
20261 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
20262
20263 2002-07-20 Kim F. Storm <storm@cua.dk>
20264
20265 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
20266
20267 2002-07-19 Ken Raeburn <raeburn@gnu.org>
20268
20269 * bytecode.c (struct byte_stack): Pointers into byte string now
20270 point to const.
20271 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
20272 const.
20273 * charset.h (BCOPY_SHORT): Source pointer now points to const.
20274 * coding.c (encode_eol, detect_coding, detect_eol):
20275 (decode_coding, encode_coding, detect_coding_system):
20276 Source strings now treated as const.
20277 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
20278 modify Lisp string contents.
20279 * coding.h (decode_coding, encode_coding, detect_coding,
20280 detect_eol): Declarations updated.
20281 * composite.c (compose_chars_in_text): Treat Lisp string contents
20282 as const.
20283 * dispnew.c (safe_bcopy): Source pointer now points to const.
20284 * lisp.h (STRING_COPYIN): New macro.
20285 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
20286 (internal_with_output_to_temp_buffer): Declarations updated.
20287 * print.c (temp_output_buffer_setup):
20288 (internal_with_output_to_temp_buffer): Buffer name argument is now
20289 pointer to const.
20290 * sound.c (struct sound_device): Function pointer field "write"
20291 buffer argument now points to const.
20292 (vox_write): Buffer argument points to const.
20293 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
20294 contents as const.
20295 * sysdep.c (emacs_write): Buffer pointer now const.
20296 * term.c (encode_terminal_code): Buffer pointer now const.
20297 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
20298 (x_face_list_fonts, x_update_menu_appearance):
20299 (hash_string_case_insensitive): Treat Lisp string contents as const.
20300
20301 2002-07-19 Juanma Barranquero <lektu@terra.es>
20302
20303 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
20304
20305 * fileio.c (syms_of_fileio): Likewise.
20306 (Ffile_name_as_directory): Fix argument name in docstring.
20307 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
20308
20309 2002-07-18 Richard M. Stallman <rms@gnu.org>
20310
20311 * data.c (Fdefalias): Doc fix.
20312
20313 2002-07-17 Dave Love <fx@gnu.org>
20314
20315 * intervals.h (text_property_stickiness): Use P_.
20316
20317 * ccl.c: Remove `emacs' conditionals.
20318 (ccl_backtrace_table): Fix size spec.
20319 (ccl_driver): Fix type errors.
20320
20321 2002-07-16 Ken Raeburn <raeburn@gnu.org>
20322
20323 * alloc.c (xstrdup, make_string, make_unibyte_string)
20324 (make_multibyte_string, build_string): String pointer args now
20325 point to const.
20326 * charset.c (find_charset_in_text, c_string_width):
20327 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
20328 * fileio.c (report_file_error):
20329 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
20330 (count_combining_before, count_combining_after, insert_1_both):
20331 (insert, insert_and_inherit, insert_string):
20332 (insert_before_markers, insert_before_markers_and_inherit):
20333 * lread.c (intern, oblookup, hash_string):
20334 * minibuf.c (temp_echo_area_glyphs):
20335 * search.c (fast_c_string_match_ignore_case):
20336 * sysdep.c (emacs_open, set_file_times):
20337 * xfaces.c (xstricmp):
20338 * xdisp.c (store_frame_title, string_char_and_length):
20339 (message_dolog, message2, message2_nolog, set_message): Likewise.
20340 (set_message_1): Cast message string argument to const pointer.
20341 * editfns.c (general_insert_function): Insertion function now
20342 takes pointer to const for input data.
20343 * charset.h (find_charset_in_text, c_string_width):
20344 (parse_str_as_multibyte): Declarations updated.
20345 * dispextern.h (xstricmp): Declaration updated.
20346 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
20347 (count_size_as_multibyte, count_combining_before):
20348 (count_combining_after, insert_1, insert_1_both, message_dolog):
20349 (insert, insert_and_inherit, insert_before_markers)
20350 (insert_before_markers_and_inherit, set_message, message2):
20351 (message2_dolog, build_string, make_string, make_unibyte_string):
20352 (make_multibyte_string, intern, oblookup, report_file_error):
20353 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
20354 (emacs_open, xstrdup): Declarations updated.
20355 * systime.h (set_file_times): Declaration updated.
20356
20357 * charset.c (find_charset_in_text, lisp_string_width): Use const
20358 for pointer to lisp string data.
20359 * charset.h (FETCH_STRING_CHAR_ADVANCE):
20360 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
20361 * coding.c (Ffind_coding_systems_region_interval):
20362 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
20363 (Fmake_directory_internal, Fdelete_directory):
20364 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
20365 * fontset.c (font_family_registry, fs_query_fontset):
20366 (list_fontsets):
20367 * frame.c (Fframe_parameter):
20368 * keyboard.c (cmd_error_internal):
20369 * keymap.c (Fdescribe_buffer_bindings):
20370 * lread.c (complete_filename_p, openp):
20371 * minibuf.c (Fminibuffer_complete_word):
20372 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
20373 (face_before_or_after_it_pos, next_element_from_string):
20374 (get_overlay_arrow_glyph_row, display_mode_element):
20375 (decode_mode_spec_coding):
20376 * xterm.c (same_x_server): Likewise.
20377
20378 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
20379 settings of non-existent fields.
20380
20381 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
20382 copy a lisp value.
20383
20384 * lread.c (Fintern_soft): Use string macros instead of
20385 Lisp_String fields.
20386 * keyboard.c (echo_char, parse_modifiers_uncached):
20387 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
20388 * textprop.c (validate_interval_range, interval_of): Likewise.
20389
20390 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
20391
20392 * charset.h (FETCH_STRING_CHAR_ADVANCE)
20393 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
20394 XSTRING()->size_byte.
20395
20396 * lisp.h (SDATA, SREF): Produce rvalue.
20397 (SSET): New macro.
20398 * alloc.c (make_event_array): Use SSET for storing into a string.
20399 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
20400 a string.
20401 * casefiddle.c (casify_object): Use SSET.
20402 * charset.h (FETCH_STRING_CHAR_ADVANCE)
20403 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
20404 address of string contents.
20405 * data.c (Faref): Use SDATA.
20406 (Faset): Use SDATA, SSET.
20407 * dired.c (directory_files_internal): Use SSET.
20408 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
20409 (Fread_file_name): Use SREF, SSET.
20410 * fns.c (concat): Use SSET.
20411 (concat, Fdelete): Use SDATA.
20412 * insdel.c (insert_from_string_1): Use SDATA.
20413 * keyboard.c (Fevent_convert_list): Use SREF.
20414 * lread.c (Fload): Use SDATA, SSET.
20415 * macfns.c (validate_x_resource_name): Use SSET.
20416 * process.c (status_message): Use SSET.
20417 * search.c (wordify): Use SDATA.
20418 (Freplace_match): Use SREF.
20419 * w32fns.c (validate_x_resource_name): Use SSET.
20420 * xfns.c (validate_x_resource_name): Use SSET.
20421 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
20422
20423 2002-07-16 Richard M. Stallman <rms@gnu.org>
20424
20425 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
20426
20427 * xdisp.c (reconsider_clip_changes):
20428 Don't test prevent_redisplay_optimizations_p.
20429 (redisplay_internal): Test prevent_redisplay_optimizations_p
20430 along with clip_changed in some cases.
20431 (try_window_id): Likewise.
20432 (redisplay_window): New local var buffer_unchanged_p.
20433
20434 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
20435
20436 * process.c (create_process): Test USG_SUBTTY_WORKS.
20437 (process_send_signal): Clean up handling of GID.
20438 Detect errors in ioctls meant to set GID.
20439
20440 * window.c (temp_output_buffer_show):
20441 Don't set prevent_redisplay_optimizations_p.
20442
20443 2002-07-15 Juanma Barranquero <lektu@terra.es>
20444
20445 * eval.c (Fdefvaralias): Add docstring argument.
20446
20447 2002-07-15 Ken Raeburn <raeburn@gnu.org>
20448
20449 * lisp.h (STRING_INTERVALS): Produce rvalue.
20450 (STRING_SET_INTERVALS): New macro.
20451 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
20452 * fns.c (Fstring_as_multibyte): Likewise.
20453 * intervals.c (balance_possible_root_interval, delete_interval)
20454 (create_root_interval, copy_intervals_to_string): Likewise.
20455 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
20456 instead of 0.
20457
20458 2002-07-14 Ken Raeburn <raeburn@gnu.org>
20459
20460 * lisp.h (STRING_SET_CHARS): New macro.
20461 (SCHARS, SBYTES): Produce rvalues.
20462 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
20463 * fns.c (concat): Likewise.
20464 * lread.c (read_vector): Likewise.
20465
20466 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
20467 (STRING_SET_UNIBYTE): New macro.
20468 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
20469 length of -1) changed to use STRING_SET_UNIBYTE.
20470 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20471 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
20472 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
20473 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
20474 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
20475 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
20476 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
20477 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
20478 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
20479 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
20480 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
20481 STRING_BYTES or indirection changed to SCHARS, SBYTES,
20482 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
20483 unchanged for now.
20484
20485 2002-07-13 Kim F. Storm <storm@cua.dk>
20486
20487 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
20488
20489 2002-07-12 Richard M. Stallman <rms@gnu.org>
20490
20491 * fileio.c (Fwrite_region): Doc fix.
20492
20493 * print.c (print_error_message): Don't handle Vsignaling_function here.
20494
20495 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
20496 (command_loop_1): Avoid certain actions after memory-full error.
20497
20498 * eval.c (Fsignal): Don't call cancel_hourglass.
20499 For a memory-full error, don't call Vsignal_hook_function
20500 and don't set Vsignaling_function.
20501
20502 * process.c (process_send_signal): Add abort call.
20503
20504 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
20505
20506 * keymap.c (Fkey_binding): Fix typo.
20507
20508 2002-07-11 Richard M. Stallman <rms@gnu.org>
20509
20510 * alloc.c (Vmemory_full): New variable.
20511 (Vmemory_signal_data): Rename from memory_signal_data.
20512 Uses changed.
20513 (syms_of_alloc): Defvar them.
20514 (memory_full, buffer_memory_full): Set Vmemory_full.
20515
20516 * lisp.h (Vmemory_full): Add declaration.
20517 (current_column, indented_beyond_p): Change declaration.
20518
20519 * indent.c (last_known_column): Declare as double, not float.
20520 (current_column, current_column_1, string_display_width)
20521 (position_indentation): Return `double'.
20522 (indented_beyond_p): Arg `column' is `double'. Callers changed.
20523
20524 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
20525 (back_to_previous_visible_line_start)
20526 (reseat_at_next_visible_line_start, next_element_from_buffer):
20527 Use `double', not `float', when calling indented_beyond_p.
20528
20529 * s/hpux11.h (BROKEN_SA_RESTART): Define.
20530
20531 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
20532
20533 2002-07-11 Juanma Barranquero <lektu@terra.es>
20534
20535 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
20536 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
20537 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
20538 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
20539 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
20540 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
20541
20542 2002-07-10 Juanma Barranquero <lektu@terra.es>
20543
20544 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
20545 All callers changed.
20546
20547 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
20548
20549 * data.c (Fdefalias): Add an optional `docstring' argument.
20550 (set_internal, Fsetq_default): Use XCAR/XCDR.
20551
20552 * composite.c (HASH_VALUE, HASH_KEY):
20553 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
20554
20555 2002-07-09 Kenichi Handa <handa@etl.go.jp>
20556
20557 * callproc.c (Fcall_process): Fix previous change.
20558
20559 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
20560
20561 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
20562 Add support for hash-tables.
20563 (Ftry_completion): Return t even if the string appears multiple times.
20564
20565 * fns.c (Fnconc): Use XCDR.
20566 (Fprovide): Use CONSP and XCDR.
20567 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
20568 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
20569 (Fmake_hash_table): Accept `:size nil'.
20570 (Fmakehash): Delete: moved to subr.el.
20571 (syms_of_fns): Don't defsubr makehash.
20572
20573 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
20574 (HASH_TABLE_SIZE): Move from fns.c.
20575
20576 2002-07-07 Richard M. Stallman <rms@gnu.org>
20577
20578 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
20579 Instead just return 0 when there is something to be done.
20580 (try_scrolling): If make_cursor_line_fully_visible returns 0,
20581 retry scrolling as if cursor were off the bottom.
20582 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
20583 return CURSOR_MOVEMENT_MUST_SCROLL.
20584 (redisplay_window): If make_cursor_line_fully_visible returns 0,
20585 go to try_to_scroll.
20586
20587 * buffer.c (Fbuffer_local_value): Store current value into its binding
20588 so we get the up-to-date value for the binding that is loaded.
20589
20590 * eval.c (Fdefmacro): Doc fix.
20591
20592 2002-07-05 Dave Love <fx@gnu.org>
20593
20594 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
20595 correctly.
20596
20597 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
20598 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
20599 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
20600 CCL_LookupCharConstTbl.
20601 (syms_of_ccl): Defvar translation-hash-table-vector.
20602
20603 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20604
20605 * xdisp.c: Remove unused variable `face'.
20606
20607 2002-07-04 Juanma Barranquero <lektu@terra.es>
20608
20609 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
20610 obsolescence information.
20611
20612 2002-07-03 Andrew Choi <akochoi@shaw.ca>
20613
20614 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
20615 pattern. Search cache first.
20616 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
20617 for Japanese font.
20618 (XLoadQueryFont): Use it.
20619
20620 2002-07-02 Richard M. Stallman <rms@gnu.org>
20621
20622 * keymap.c (Fdefine_key): Doc fix.
20623
20624 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
20625
20626 2002-07-02 Juanma Barranquero <lektu@terra.es>
20627
20628 * keymap.c (syms_of_keymap): Fix typo.
20629
20630 2002-07-01 Andrew Choi <akochoi@shaw.ca>
20631
20632 * s/darwin.h: Define POSIX_SIGNALS.
20633
20634 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
20635 and FSRefMakePath to convert FSSpec returned with Apple Event to
20636 Posix pathname.
20637 (mac_initialize) [TARGET_API_MAC_CARBON]:
20638 Call init_required_apple_events and disable the `Quit' menu item
20639 provided automatically by the Carbon Toolbox.
20640
20641 2002-07-01 Dave Love <fx@gnu.org>
20642
20643 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20644 for K&R.
20645
20646 * xterm.c: Fix prototype for K&R.
20647
20648 * term.c (costs_set): Declare static, non-initialized for pcc.
20649
20650 2002-07-01 Richard M. Stallman <rms@gnu.org>
20651
20652 * keyboard.c (timer_last_idleness_start_time): New variable.
20653 (timer_start_idle): Set that.
20654 (read_key_sequence): Use that to reset timer_idleness_start_time
20655 to previous value.
20656
20657 * window.c (Frecenter): With arg, set optional_new_start.
20658
20659 * xdisp.c (redisplay_internal): Make optional_new_start really work.
20660
20661 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
20662 buffer for completion.
20663
20664 2002-06-29 Ken Raeburn <raeburn@gnu.org>
20665
20666 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
20667
20668 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20669
20670 * keyboard.c (readable_filtered_events): New function that filters
20671 FOCUS_IN_EVENT depending on parameter.
20672 (readable_events): Calls readable_filtered_events, not filtering
20673 FOCUS_IN_EVENT.
20674 (get_filtered_input_pending): New function, filtering parameter passed
20675 to readable_filtered_events.
20676 (get_input_pending): Calls get_filtered_input_pending, not filtering
20677 FOCUS_IN_EVENT.
20678 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
20679 FOCUS_IN_EVENT.
20680
20681 * xterm.h (struct x_output): Add focus_state.
20682
20683 * xterm.c (x_focus_changed): New function.
20684 (x_detect_focus_change): New function.
20685 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
20686 EnterNotify and LeaveNotify to track X focus changes.
20687
20688 2002-06-28 Andreas Schwab <schwab@suse.de>
20689
20690 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
20691
20692 2002-06-27 Kim F. Storm <storm@cua.dk>
20693
20694 * xdisp.c (mode_line_string_list, mode_line_string_face)
20695 (mode_line_string_face_prop): New variables.
20696 (store_mode_line_string): New function.
20697 (display_mode_element): Use store_mode_line_string to
20698 add mode-line string elements to mode_line_string_list
20699 when mode_line_string_list is non-nil.
20700 (Fformat_mode_line): Now returns propertized string by
20701 default. New arg NO-PROPS to ignore properties.
20702 (decode_mode_spec): Only add two dashes for %- in propertized
20703 mode-line string.
20704 (syms_of_xdisp): Init and staticpro mode_line_string_list.
20705
20706 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
20707
20708 * minibuf.c (minibuffer_completion_contents): Add return type.
20709
20710 2002-06-27 Juanma Barranquero <lektu@terra.es>
20711
20712 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
20713
20714 2002-06-26 Juanma Barranquero <lektu@terra.es>
20715
20716 * fileio.c (read_file_name_cleanup): Add missing return.
20717
20718 2002-06-26 Richard M. Stallman <rms@gnu.org>
20719
20720 * window.c (Frecenter): Don't set force_start flag.
20721
20722 * minibuf.c (do_completion, Fminibuffer_complete_word)
20723 (Fminibuffer_completion_help): Complete just the text before point.
20724 (minibuffer_completion_contents): New function.
20725
20726 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
20727
20728 * frame.c (frames_bury_buffer): Function deleted.
20729
20730 2002-06-25 Miles Bader <miles@gnu.org>
20731
20732 * callint.c (Fcall_interactively): When checking to see if doprnt hit
20733 the end of callint_message, allow for a terminating '\0'.
20734
20735 2002-06-24 Juanma Barranquero <lektu@terra.es>
20736
20737 * w32select.c: Include composite.h.
20738
20739 * w16select.c: Likewise.
20740
20741 2002-06-24 Kenichi Handa <handa@etl.go.jp>
20742
20743 * callproc.c (Fcall_process): If code detection is necessary,
20744 call detect_coding directly here.
20745
20746 * coding.c (detect_eol): Preserve coding->cmp_data.
20747
20748 * w16select.c (Fw16_get_clipboard_data):
20749 * w32fns.c (w32_to_x_font):
20750 * w32select.c (Fw32_get_clipboard_data):
20751 * xselect.c (selection_data_to_lisp_data):
20752 * xterm.c (XTread_socket): Disable composition handling.
20753
20754 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
20755
20756 * print.c (temp_output_buffer_setup): Kill all local variables.
20757
20758 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
20759
20760 * lread.c (Fread): Remove redundant and imprecise declaration.
20761
20762 * xfns.c (check_x_display_info): Use check_x_frame.
20763
20764 * .gdbinit (xprintsym): Use the new `xname' field.
20765 (xsymbol): Use it.
20766
20767 2002-06-22 Jason Rumney <jasonr@gnu.org>
20768
20769 * w32fns.c (file_dialog_callback): New function.
20770 (Fx_file_dialog): Allow selecting directories as well as files.
20771
20772 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20773
20774 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
20775 OpenBSD. Add support for mipseb-*-netbsd* machines.
20776
20777 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20778
20779 * macterm.c (mac_scroll_area): Set foreground and backcolor to
20780 black and white before scrolling. Restore frame background and
20781 foreground color after scrolling.
20782 (do_window_update): Call XClearWindow before calling expose_frame.
20783 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
20784 FRAME_FOREGROUND_PIXEL of frame.
20785
20786 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20787 test Mac command key as <ALT> key.
20788
20789 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
20790
20791 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
20792
20793 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
20794 Lookup keys in function-key-map immediately so that key-translation-map
20795 can be applied earlier.
20796 Remove function_key_possible and key_translation_possible, replaced
20797 by checking `keytran_start < t'.
20798
20799 * .gdbinit (xsymbol): Use the new `xname' field.
20800
20801 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20802
20803 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20804 test Mac command key as <ALT> key.
20805
20806 * mac.c (do_applescript): Call initialize_applescript if necessary
20807 when first called. Dispose of result_desc only when there is no error.
20808 (Fdo_applescript): Use %d format specifier instead of %ld.
20809
20810 2002-06-16 Andrew Choi <akochoi@shaw.ca>
20811
20812 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
20813 of FrontWindow for cases keyDown and autoKey.
20814
20815 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
20816 Vdefault_fontset to Monaco with mac-roman coding.
20817
20818 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
20819 init_process before and after inclusion of Carbon/Carbon.h, resp.
20820
20821 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
20822 cursor_gc.
20823 (add_font_name_table_entry): New function.
20824 (init_font_name_table): Use add_font_name_table_entry; add italic,
20825 bold, and bold-italic entries for truetype fonts.
20826
20827 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
20828 for Mac too.
20829 (try_font_list) [MAC_OS]: If no font matches given registry, try
20830 fonts with any registry matching face_family.
20831 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
20832
20833 * s/darwin.h: If autoconf detects the Ncurses library, define
20834 LIBS_TERMCAP to -lncurses to use it.
20835
20836 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
20837
20838 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
20839
20840 2002-06-15 Richard M. Stallman <rms@gnu.org>
20841
20842 * window.c (Fset_window_configuration): Explicitly preserve
20843 the point value that new_current_buffer had at the start.
20844
20845 2002-06-14 Juanma Barranquero <lektu@terra.es>
20846
20847 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
20848 Fix typos.
20849
20850 2002-06-14 Kim F. Storm <storm@cua.dk>
20851
20852 * insdel.c (insert_1_both, insert_from_string_1)
20853 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
20854 insert happened in the end_unchanged region. Otherwise, the
20855 redisplay may be confused and duplicate the last line in the
20856 buffer [seen after save-buffer when require-final-newline==t].
20857
20858 2002-06-13 Jason Rumney <jasonr@gnu.org>
20859
20860 * w32.c (init_environment): Remove EMACSLOCKDIR.
20861 (stat): Swap _S_IFDIR and _S_IFREG.
20862
20863 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20864
20865 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
20866 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
20867 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
20868 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
20869 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
20870 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
20871 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
20872 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
20873 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
20874 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
20875 SELECTION_REQUEST_EVENT, selection_clear_event to
20876 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
20877 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
20878 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
20879 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
20880 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
20881 no_event to NO_EVENT.
20882
20883 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20884
20885 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
20886
20887 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
20888
20889 * intervals.c (textget): Don't forget to `return'.
20890 (lookup_char_property): Use XCAR/XCDR.
20891
20892 2002-06-12 Juanma Barranquero <lektu@terra.es>
20893
20894 * xdisp.c (Fformat_mode_line): Fix typo.
20895
20896 2002-06-12 Kim F. Storm <storm@cua.dk>
20897
20898 * xdisp.c (Fformat_mode_line): New function.
20899 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
20900 (store_frame_title_char, store_frame_title): Use unconditionally.
20901 (init_xdisp): Defsubr Fformat_mode_line.
20902 Initialize frame_title_buf etc. unconditionally.
20903
20904 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
20905
20906 * keyboard.c (read_key_sequence):
20907 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
20908 things through those maps after downcasing events.
20909 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
20910 applies after function-key-map.
20911 Make sure that keytran can be done in the middle in the sequence.
20912 Be careful not to throw away events past the one we downcase.
20913
20914 * lread.c (read_integer): Remove unused var `tem'.
20915 (read1): Fix int/Lisp_Object mixup.
20916
20917 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
20918
20919 2002-06-11 Richard M. Stallman <rms@gnu.org>
20920
20921 * keyboard.c (readable_events): Ignore any number of
20922 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
20923
20924 2002-06-09 Miles Bader <miles@gnu.org>
20925
20926 * xfaces.c (Ftty_supports_face_attributes_p): New function.
20927 (parse_rgb_list, tty_lookup_color): New functions.
20928 (tty_defined_color): Use `tty_lookup_color' to do all the work.
20929 (color_distance, Fcolor_distance): New functions.
20930 (TTY_SAME_COLOR_THRESHOLD): New macro.
20931 (Qtty_color_standard_values): New variable.
20932 (syms_of_xfaces): Initialize new vars & functions.
20933
20934 2002-06-08 Colin Walters <walters@verbum.org>
20935
20936 * textprop.c (Vchar_property_alias_alist): New variable.
20937 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
20938
20939 * intervals.c (lookup_char_property): New function for looking up
20940 overlay and text properties, created from textget.
20941 (textget): Use it.
20942
20943 * intervals.h (lookup_char_property): Declare.
20944 (Vchar_property_alias_alist): Declare.
20945
20946 * buffer.c (Foverlay_get): Use lookup_char_property.
20947
20948 2002-06-07 Sam Steingold <sds@gnu.org>
20949
20950 * xselect.c (lisp_data_to_selection_data): Fix last change:
20951 *data_ret is not a Lisp string, while unibyte_string is.
20952
20953 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
20954
20955 * xselect.c (lisp_data_to_selection_data): Fix last change:
20956 set size_ret.
20957
20958 2002-06-07 Andreas Schwab <schwab@suse.de>
20959
20960 * m/amdx86-64.h: New file.
20961
20962 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
20963
20964 * fns.c (Fstring_make_unibyte): Doc fix.
20965
20966 * xselect.c (lisp_data_to_selection_data): If the requested type
20967 is STRING, call string_make_unibyte to encode the selected text
20968 as a string.
20969
20970 * window.c (Fset_window_hscroll): Doc fix.
20971
20972 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20973
20974 * fileio.c (choose_write_coding_system):
20975 Call select-safe-coding-system properly.
20976
20977 2002-06-03 Richard M. Stallman <rms@gnu.org>
20978
20979 * xdisp.c (message_with_string): Error if STRING is not a string.
20980
20981 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
20982
20983 * fileio.c (choose_write_coding_system): Pass FILE arg to
20984 Vselect_safe_coding_system_function.
20985
20986 2002-06-03 Ken Raeburn <raeburn@gnu.org>
20987
20988 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
20989
20990 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
20991
20992 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
20993 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
20994 * keymap.c (describe_command): Likewise.
20995 * minibuf.c (read_minibuf): Likewise.
20996
20997 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
20998 Cast `current_column' return value to int.
20999 (back_to_previous_visible_line_start)
21000 (reseat_at_next_visible_line_start, next_element_from_buffer):
21001 Cast `indented_beyond_p' 3rd arg to float.
21002
21003 * indent.c (last_known_column): Now a float.
21004 (current_column_1, position_indentation, current_column)
21005 (string_display_width): Return float.
21006 (Fcurrent_column): Cast `current_column' return value to int.
21007 (Fcurrent_indentation): Cast `position_indentation' retval to int.
21008 (indented_beyond_p): Third arg now a float.
21009 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
21010
21011 * lisp.h (current_column): Now returns float.
21012 (indented_beyond_p): 3rd arg now a float.
21013
21014 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
21015
21016 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
21017 is Qcompound_text_with_extensions.
21018
21019 * xselect.c (lisp_data_to_selection_data): Always set selection
21020 type as string if x_encode_text returns streingp non-NULL.
21021
21022 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
21023
21024 2002-05-30 Richard M. Stallman <rms@gnu.org>
21025
21026 * window.c (Fset_window_configuration): Correct the handling
21027 of point in current buffer, to work with multiple windows.
21028
21029 2002-05-29 Colin Walters <walters@verbum.org>
21030
21031 * lread.c (Fread_from_string): Don't depend on order of evaluation
21032 for C function parameters.
21033
21034 2002-05-28 Richard M. Stallman <rms@gnu.org>
21035
21036 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
21037 way for blinked-off state and for a nonselected window.
21038
21039 * window.c (window_scroll_pixel_based): Don't call Fbolp;
21040 instead, see if the new start pos is at beginning of line.
21041
21042 * fileio.c (Fwrite_region): If START is a string, don't
21043 make any annotations.
21044
21045 * eval.c (syms_of_eval): Doc fix.
21046
21047 2002-05-28 Colin Walters <walters@debian.org>
21048
21049 * emacs.c (USAGE1): Add --no-splash.
21050 (standard_args): Ditto.
21051
21052 2002-05-28 Colin Walters <walters@gnu.org>
21053
21054 * lread.c (readchar_count): New variable.
21055 (readchar): Increment it.
21056 (unreadchar): Decrement it.
21057 (read_multibyte): Decrement it.
21058 (Vread_with_symbol_positions): New variable.
21059 (Vread_symbol_positions_list): New variable.
21060 (read_internal_start): New function, created from Fread and
21061 Fread_from_string. Handle Vread_symbol_positions_list and
21062 Vread_with_symbol_positions.
21063 (readevalloop, Fread, Fread_from_string): Use it.
21064 (read1): Use readchar_count to add symbol positions to
21065 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
21066 (syms_of_lread): DEFVAR_LISP and initialize them.
21067
21068 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
21069 (substitute_object_recurse, substitute_object_in_subtree)
21070 (substitute_in_interval): Prototype.
21071 (read_multibyte): Return c if it's less than zero.
21072
21073 2002-05-28 Kim F. Storm <storm@cua.dk>
21074
21075 * fileio.c (Fread_file_name_internal): Added brute-force
21076 speed up for using predicate file-directory-p.
21077
21078 2002-05-28 Kim F. Storm <storm@cua.dk>
21079
21080 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
21081 New variables.
21082 (syms_of_fileio): DEFVAR_LISP them.
21083 (read_file_name_cleanup): New unwind function.
21084 (Fread_file_name_internal): Only return completions satifying
21085 Vread_file_name_predicate. Temporarily unwind protect and rebind
21086 default-directory while checking completions against the predicate.
21087 (Fread_file_name): Added PREDICATE argument. Specbind it to
21088 Vread_file_name_predicate during completion.
21089 Call Vread_file_name_function to read the file name if non-nil.
21090
21091 * lisp.h (Fread_file_name): Now has 6 args.
21092
21093 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
21094 predicate for Fread_file_name when reading directory name.
21095 Supply Qnil for predicate in other calls to Fread_file_name.
21096
21097 2002-05-26 Miles Bader <miles@gnu.org>
21098
21099 * term.c (tty_capable_p): New function.
21100 * dispextern.h (tty_capable_p): New function declaration.
21101 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
21102 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
21103
21104 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
21105
21106 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
21107 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
21108 (Vwrite_region_annotate_functions): Docstring fix.
21109
21110 2002-05-23 Kim F. Storm <storm@cua.dk>
21111
21112 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
21113 phys_cursor's hpos is overwritten. This is still not completely
21114 correct, as it doesn't really make sense to use hpos at all to
21115 get the cursor glyph (as that is relative to the width of the
21116 characters on the line, which may have changed during the update).
21117
21118 2002-05-22 Jason Rumney <jasonr@gnu.org>
21119
21120 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
21121 Lisp_Object.
21122 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
21123 Use modified enumfont_t struct.
21124
21125 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
21126
21127 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
21128 Handle the `hbar' cursor type.
21129 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21130
21131 * w32fns.c (Qhbar): New variable.
21132 (x_specified_cursor_type): Use it.
21133
21134 2002-05-21 Ken Raeburn <raeburn@gnu.org>
21135
21136 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
21137 now, when the address is needed.
21138
21139 2002-05-21 Colin Walters <walters@gnu.org>
21140
21141 * Makefile.in (shortlisp): Add font-core.el.
21142
21143 2002-05-20 Richard M. Stallman <rms@gnu.org>
21144
21145 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
21146
21147 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
21148 equivalent key bindings here.
21149
21150 2002-05-20 Ken Raeburn <raeburn@gnu.org>
21151
21152 Change symbol structure to contain a lisp object for the symbol
21153 name:
21154 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
21155 object field named "xname".
21156 (SYMBOL_NAME): New macro.
21157 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
21158 name field.
21159 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
21160 (mark_object, gc_sweep): Use symbol xname field and XSTRING
21161 instead of name field.
21162 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
21163 SYMBOL_NAME instead of XSYMBOL and name field.
21164 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
21165 instead of XSYMBOL and name field.
21166 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
21167 and SYMBOL_NAME instead of XSYMBOL and name field.
21168 * coding.c (Fread_coding_system, code_convert_region1)
21169 (code_convert_string1, code_convert_string_norecord)
21170 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
21171 XSYMBOL and name field.
21172 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
21173 (Fmake_variable_buffer_local, Fmake_local_variable)
21174 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
21175 of XSYMBOL and name field.
21176 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
21177 XSYMBOL and name field.
21178 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
21179 instead of XSYMBOL and name field.
21180 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
21181 XSYMBOL and name field.
21182 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
21183 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21184 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
21185 instead of XSYMBOL and name field.
21186 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
21187 (parse_modifiers, apply_modifiers, Fevent_convert_list)
21188 (parse_solitary_modifier, Fexecute_extended_command):
21189 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21190 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
21191 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
21192 of XSYMBOL and name field.
21193 (describe_command, describe_translation): Use SYMBOL_NAME and
21194 assignment instead of XSYMBOL and name field and XSETSTRING.
21195 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
21196 instead of XSYMBOL and name field.
21197 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
21198 name field and XSETSTRING.
21199 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21200 of XSYMBOL and name field.
21201 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
21202 assignment instead of XSYMBOL and name field and XSETSTRING.
21203 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
21204 XSTRING instead of XSYMBOL and name field.
21205 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
21206 and XSTRING instead of XSYMBOL and name field.
21207 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
21208 and XSTRING instead of XSYMBOL and name field.
21209 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
21210 XSTRING instead of XSYMBOL and name field.
21211 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21212 of XSYMBOL and name field.
21213 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
21214 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21215
21216 2002-05-19 Ken Raeburn <raeburn@gnu.org>
21217
21218 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
21219 and XCDR real rvalues in most configurations.
21220
21221 * buffer.c (fix_overlays_in_range, fix_overlays_before):
21222 Don't take the address of the cdr part of a cons cell; instead, track
21223 the parent cell and call XSETCDR, or set the variable for the head
21224 of the list if we haven't started down the list yet.
21225
21226 2002-05-19 Richard M. Stallman <rms@gnu.org>
21227
21228 * doc.c (reread_doc_file): Don't ask for confirmation.
21229
21230 2002-05-18 Jason Rumney <jasonr@gnu.org>
21231
21232 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
21233 (xbm_load_image): Use it.
21234 (xbm_load): Ditto.
21235 (xbm_read_bitmap_data): Reverted to xfns.c version.
21236 From David Ponce <david@dponce.com>.
21237
21238 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
21239
21240 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
21241 2.02 and later.
21242
21243 2002-05-16 Juanma Barranquero <lektu@terra.es>
21244
21245 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
21246
21247 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
21248
21249 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
21250 meaningful test.
21251 (read_char_minibuf_menu_prompt): Fix typo.
21252
21253 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
21254
21255 * eval.c (Fcommandp): Doc fix.
21256
21257 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
21258
21259 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
21260 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
21261 (Fset_keymap_parent): Gcpro a bit more.
21262 (access_keymap): Gcpro around meta_map call and around the main loop.
21263 (get_keyelt): Gcpro when following indirect references.
21264 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
21265 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
21266 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
21267 Remove useless ad-hoc remap code.
21268
21269 2002-05-13 Richard M. Stallman <rms@gnu.org>
21270
21271 * search.c (search_buffer): Give up boyer moore search if inverse
21272 translation change charset_base.
21273
21274 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
21275
21276 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
21277 characters is carried over from the previous block of text, adjust
21278 coding->produced to account for the extra character.
21279
21280 2002-05-11 Andreas Schwab <schwab@suse.de>
21281
21282 * coding.c (intersection): Keep the elements of the returned list
21283 in the same order as in the first list.
21284
21285 2002-05-11 Kim F. Storm <storm@cua.dk>
21286
21287 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
21288 only update cmm_size if realloc actually succeeds.
21289 Testing with initial size of 2 elements revealed that using
21290 realloc on GNU/Linux would cause a random trap in xmalloc
21291 later on, so I rewrote the code to use malloc/bcopy/free instead
21292 of realloc.
21293
21294 2002-05-10 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
21297
21298 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
21299
21300 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
21301 parens, to ensure correct evaluation order.
21302
21303 2002-05-10 Kim F. Storm <storm@cua.dk>
21304
21305 * keymap.c (Vemulation_mode_map_alists): New variable.
21306 (syms_of_keymap): DEFVAR_LISP it.
21307 (current_minor_maps): Process keymap alists in that list before
21308 minor-mode-overriding-map-alist and minor-mode-map-alist.
21309
21310 2002-05-09 Richard M. Stallman <rms@gnu.org>
21311
21312 * search.c (Freplace_match): Doc fix.
21313
21314 2002-05-09 Kim F. Storm <storm@cua.dk>
21315
21316 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21317 Enlarge cursor rectangle drawn around image with non-zero relief.
21318
21319 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
21320 Enlarge cursor rectangle drawn around image with non-zero relief.
21321
21322 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21323 Enlarge cursor rectangle drawn around image with non-zero relief.
21324
21325 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
21326
21327 * xselect.c (lisp_data_to_selection_data): Don't set selection
21328 type if comes from the Lisp object's car. If the selection
21329 contains a pure ASCII text, always return QSTRING as its type.
21330
21331 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21332
21333 * mac.c (mac-cut-function): Doc fix.
21334
21335 2002-05-05 Richard M. Stallman <rms@gnu.org>
21336
21337 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
21338
21339 2002-05-04 Jason Rumney <jasonr@gnu.org>
21340
21341 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
21342 for event-click-count.
21343
21344 * process.c (init_process): Only add server subfeature if we can
21345 use non-blocking I/O.
21346
21347 2002-05-04 Andrew Choi <akochoi@shaw.ca>
21348
21349 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
21350 repeatedly.
21351
21352 2002-05-03 Jason Rumney <jasonr@gnu.org>
21353
21354 * process.c (Fmake_network_process): Only support server sockets
21355 when we can make them non-blocking.
21356
21357 * s/ms-w32.h (HAVE_SELECT): Define.
21358
21359 * w32.h (FILE_NDELAY): New flag.
21360
21361 * w32.c (sys_getpeername, fcntl): New functions.
21362 (_sys_read_ahead): Temporarily block on non-blocking sockets.
21363
21364 * w32proc.c: Include sys/file.h.
21365
21366 2002-05-03 Colin Walters <walters@verbum.org>
21367
21368 * callproc.c (Vgame_score_directory): Renamed to
21369 Vshared_game_score_directory.
21370
21371 2002-04-30 Richard M. Stallman <rms@gnu.org>
21372
21373 * s/gnu.h [emacs]: Include stdio.h.
21374 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
21375
21376 * eval.c (do_autoload): Error if called while preparing to dump.
21377
21378 * fns.c (Frequire): Error if need to load while preparing to dump.
21379
21380 2002-04-28 Colin Walters <walters@verbum.org>
21381
21382 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
21383 Default to "~/.emacs.d/games".
21384
21385 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
21386
21387 * lread.c (openp): Change arg exec_only to predicate.
21388 (build_load_history): Use XCAR/XCDR.
21389 (Flocate_file_internal): New fun.
21390 (syms_of_lread): Defsubr it.
21391 (Fload): Update call to openp.
21392
21393 * lisp.h (openp): Update prototype.
21394
21395 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
21396 * w32proc.c (sys_spawnve):
21397 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
21398 * w32.c (check_windows_init_file):
21399 * sound.c (Fplay_sound_internal):
21400 * process.c (Fstart_process):
21401 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
21402 * mac.c (run_mac_command):
21403 * emacs.c (init_cmdargs):
21404 * callproc.c (Fcall_process): Update call to openp.
21405
21406 * textprop.c (remove_properties): Don't use XCAR without CONSP.
21407
21408 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
21409
21410 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21411
21412 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
21413 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
21414
21415 2002-04-28 Richard M. Stallman <rms@gnu.org>
21416
21417 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
21418
21419 * eval.c (Fcommandp): New arg for_call_interactively.
21420 * lisp.h (Fcommandp): Declare new arg.
21421
21422 2002-04-28 Jason Rumney <jasonr@gnu.org>
21423
21424 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
21425
21426 * w32.c (stat, fstat): Use file index information to generate
21427 inodes for directories where available.
21428
21429 2002-04-26 Andrew Choi <akochoi@shaw.ca>
21430
21431 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
21432 [HAVE_CARBON]: Include Mac object files.
21433
21434 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
21435 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
21436 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
21437 MAC_OSX, and MAC_OS instead of macintosh.
21438
21439 * editfns.c [MAC_OS8]: Include stdio.h.
21440
21441 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
21442
21443 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
21444 Apple Monaco.
21445
21446 * process.c (QCfamily, QCfilte): Declare extern.
21447 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
21448 calling select.
21449
21450 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
21451
21452 * tparam.c [MAC_OSX]: Don't define BC and UP.
21453
21454 * config.in [HAVE_CARBON]: Add.
21455
21456 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
21457 Move here from mac/src and mac/inc.
21458
21459 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
21460
21461 2002-04-26 Gerd Moellmann <gerd@gnu.org>
21462
21463 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
21464 Compute phys_cursor_width from the x position returned
21465 by x_draw_glyhs, which is cheaper.
21466 (x_display_and_set_cursor): Compute the buffer-local value
21467 of `cursor-in-non-selected-windows' only when needed.
21468
21469 2002-04-25 Gerd Moellmann <gerd@gnu.org>
21470
21471 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
21472 cursor on a stretch glyph has a width that depends on
21473 x_stretch_cursor_p.
21474
21475 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21476
21477 * abbrev.c (abbrev-start-location): Doc fix.
21478
21479 * indent.c (Fvertical_motion): Fix last change.
21480
21481 2002-04-25 Gerd Moellmann <gerd@gnu.org>
21482
21483 * indent.c (Fvertical_motion): Move to the start of the line
21484 containing PT before moving up or down.
21485
21486 2002-04-24 Gerd Moellmann <gerd@gnu.org>
21487
21488 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
21489 case of writing a whole row, more or less analogous to the case of
21490 writing only parts of a row.
21491
21492 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
21493 0 for NO_CURSOR.
21494
21495 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
21496
21497 2002-04-23 Colin Walters <walters@verbum.org>
21498
21499 * buffer.c (syms_of_buffer): Doc fix.
21500
21501 2002-04-23 Gerd Moellmann <gerd@gnu.org>
21502
21503 * xterm.c (notice_overwritten_cursor): Handle the special case
21504 of the cursor being in the first blank non-text line at the
21505 end of a window.
21506
21507 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
21508 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
21509 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
21510 bar cursors only, to make phys_cursor_width contain what its name
21511 suggests.
21512 (notice_overwritten_cursor): Consider the cursor image erased if
21513 the output area intersects the cursor image in y-direction.
21514
21515 2002-04-23 Simon Marshall <simon@gnu.org>
21516
21517 * xfns.c (x_set_mouse_color): Change default for cross_cursor
21518 to XC_hand2.
21519
21520 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21521
21522 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
21523
21524 2002-04-22 Kim F. Storm <storm@cua.dk>
21525
21526 * textprop.c (remove_properties): Fixed trap for malformed plist.
21527
21528 2002-04-22 Richard M. Stallman <rms@gnu.org>
21529
21530 * cmds.c (Fend_of_line): Handle intangible text in mid line.
21531
21532 * window.c (make_window): Initialize height_fixed_p,
21533 last_cursor_off_p, and p->cursor_off_p slots.
21534
21535 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21536
21537 * fns.c (use-dialog-box): Doc fix.
21538
21539 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21540
21541 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
21542 variables `row', `i' and `area'.
21543 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
21544 toolkit library.
21545
21546 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
21547
21548 * xfaces.c (clear_font_table): Don't free the default font of
21549 a frame even if it's on another display.
21550 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
21551 that could be Qt.
21552
21553 2002-04-19 Juanma Barranquero <lektu@terra.es>
21554
21555 * indent.c (Fmove_to_column): Remove unused local variable
21556 `next_boundary_byte'.
21557 (current_column_1): Likewise.
21558
21559 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
21560
21561 * msdos.c (Qhbar): New variable.
21562 (syms_of_msdos): Intern and staticpro it.
21563 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
21564 cursor type.
21565
21566 2002-04-19 Dave Lambert <dlambert@acm.org>
21567
21568 Theses change implement an underscore-like (`hbar') cursor.
21569
21570 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
21571
21572 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
21573 Handle the `hbar' cursor type.
21574 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21575
21576 * xfns.c (Qhbar): New variable.
21577 (syms_of_xfns): Intern and staticpro it.
21578 (x_specified_cursor_type): Handle `hbar' cursor.
21579
21580 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
21581 not defined.
21582
21583 2002-04-18 Richard M. Stallman <rms@gnu.org>
21584
21585 * textprop.c (remove_properties): New arg LIST allows scanning
21586 either a list or a plist.
21587 (interval_has_some_properties_list): New function, like
21588 interval_has_some_properties using list instead of plist.
21589 All callers changed.
21590 (Fremove_list_of_text_properties): New function.
21591 (syms_of_textprop): Defsubr it.
21592
21593 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
21594
21595 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
21596
21597 2002-04-17 Juanma Barranquero <lektu@terra.es>
21598
21599 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
21600
21601 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
21602
21603 * window.c (coordinates_in_window): Don't report on margin area
21604 if its width is zero.
21605
21606 2002-04-16 Jason Rumney <jasonr@gnu.org>
21607
21608 * w32fns.c (Fx_file_dialog): Decode file name before using.
21609
21610 * w32term.c (construct_drag_n_drop): Likewise.
21611
21612 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
21613
21614 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
21615 store load-history in pure space.
21616
21617 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
21618
21619 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
21620
21621 * xterm.c (Qlatin_1, Qutf_8): New vars.
21622 (syms_of_xterm): Initialize them.
21623 (XTread_socket): Eliminate incorrect optimization that tried to avoid
21624 decoding the output of X*LookupString.
21625 Always use latin-1 to decode the output of XLookupString.
21626 Try Xutf8LookupString if XmbLookupString failed.
21627
21628 * region-cache.c (new_region_cache): Use BEG.
21629
21630 2002-04-16 Gerd Moellmann <gerd@gnu.org>
21631
21632 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
21633 configuration files.
21634 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
21635 returns 0.
21636
21637 2002-04-15 Andreas Schwab <schwab@suse.de>
21638
21639 * config.in: Regenerated using autoheader.
21640
21641 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
21642 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
21643 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
21644 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
21645 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
21646 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
21647 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
21648 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
21649 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
21650 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
21651 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
21652 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
21653 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
21654 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
21655 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
21656 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
21657 STACK_DIRECTION, now set by autoconf.
21658
21659 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21660
21661 * dispnew.c (marginal_area_string): Sort arguments.
21662
21663 * dispextern.h (marginal_area_string): Add prototype.
21664
21665 2002-04-13 Richard M. Stallman <rms@gnu.org>
21666
21667 * fileio.c (Finsert_file_contents):
21668 Don't call temp_output_buffer_setup--do just part, by hand.
21669
21670 * coding.c (run_pre_post_conversion_on_str):
21671 Don't call temp_output_buffer_setup--do just part, by hand.
21672
21673 * keyboard.c (command_loop_1): Don't call start_hourglass
21674 or cancel_hourglass when executing a macro.
21675
21676 * marker.c (count_markers): New function.
21677
21678 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
21679 grow without limit. Move recently used elements to the front.
21680
21681 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
21682
21683 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
21684
21685 2002-04-12 Gerd Moellmann <gerd@gnu.org>
21686
21687 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
21688 rows marginal areas.
21689 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
21690 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
21691
21692 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
21693
21694 2002-04-12 Dave Love <fx@gnu.org>
21695
21696 * dispnew.c (marginal_area_string): New.
21697
21698 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
21699 (Qleft_margin, Qright_margin): Declare.
21700 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
21701
21702 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
21703 note_mode_line_highlight and extended.
21704
21705 * keyboard.c (Qleft_margin, Qright_margin): Declare.
21706 (make_lispy_event): Deal with mouse events in margins.
21707
21708 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
21709
21710 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
21711
21712 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
21713 than deactivating the mark if tmm is set to `lambda'.
21714 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
21715 Use a single event for HELP_EVENT.
21716 (Fexecute_extended_command): Save last_point_position.
21717
21718 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21719
21720 * lisp.h (Fpropertize): Add prototype.
21721
21722 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
21723
21724 2002-04-10 Colin Walters <walters@verbum.org>
21725
21726 * config.in: Add HAVE_SHARED_GAME_DIR.
21727
21728 * callproc.c (Vgame_score_directory): New variable.
21729 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
21730
21731 2002-04-10 Richard M. Stallman <rms@gnu.org>
21732
21733 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
21734
21735 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
21736
21737 * minibuf.c (read_minibuf): Use empty_string.
21738 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
21739 Short-circuit the search as soon as it "failed".
21740 (Fall_completions): Allow lambda forms and lists of strings for alist.
21741 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
21742 when require_match is nil.
21743 (Ftest_completion): Rename from `test_completion' and export to elisp.
21744 Call the predicate also when alist is a list.
21745 Obey Vcompletion_regexp_list.
21746 (do_completion, Fminibuffer_complete_and_exit): Use it.
21747 (Fassoc_string): Rename from `assoc_for_completion'.
21748 Allow list of strings as well and export to elisp.
21749
21750 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
21751
21752 * puresize.h (BASE_PURESIZE): Increase to 900KB.
21753
21754 2002-04-08 Juanma Barranquero <lektu@terra.es>
21755
21756 * w32.c (sys_accept): Don't hide variable `s'.
21757
21758 2002-04-05 Gerd Moellmann <gerd@gnu.org>
21759
21760 * callint.c (Fcall_interactively): Use INTEGERP instead of
21761 NUMBERP for checking Vhistory_length.
21762
21763 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21764
21765 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
21766 Doc fix to reflect it.
21767
21768 2002-04-04 Richard M. Stallman <rms@gnu.org>
21769
21770 * xdisp.c (display_mode_element): New arg RISKY.
21771 Disregard text props found or specified within a variable
21772 that isn't marked risky-local-variable.
21773 (Qrisky_local_variable): New variable.
21774 (syms_of_xdisp): Init and staticpro it.
21775
21776 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
21777
21778 * undo.c (record_point): New fun.
21779 (record_delete, record_insert): Use it.
21780
21781 2002-04-03 Juanma Barranquero <lektu@terra.es>
21782
21783 * doc.c (Fdocumentation): Add missing parentheses.
21784 (Fdocumentation_property): Likewise.
21785
21786 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
21787
21788 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
21789 data is 0, just return nil.
21790
21791 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
21792
21793 * msdos.c (syms_of_msdos): Fix last change with
21794 mouse_autoselect_window.
21795
21796 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21797
21798 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
21799 mouse_autoselect_window.
21800
21801 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
21802
21803 * keyboard.c (make_lispy_event): Handle unknown keysyms together
21804 with system-specific keysyms. Use it also for unknown function keys.
21805
21806 * doc.c (reread_doc_file): Return whether reload was attempted.
21807 (Fdocumentation, Fdocumentation_property): Don't try to reload
21808 if the doc is 0 and only ask once.
21809
21810 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
21811
21812 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
21813
21814 * keyboard.c (read_char): If the event was Qselect_window,
21815 restore timer_idleness_start_time to its previous value.
21816
21817 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
21818
21819 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
21820
21821 * region-cache.c (new_region_cache): Use BEG.
21822
21823 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
21824 Use BEG and BEG_BYTE.
21825
21826 * doc.c (get_doc_string): Return nil if the location is wrong.
21827 (reread_doc_file): New fun.
21828 (Fdocumentation, Fdocumentation_property):
21829 Call it if get_doc_string fails.
21830 (Fsnarf_documentation): Make it work for a dumped Emacs.
21831
21832 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
21833 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
21834
21835 * charset.c (Fstring): Allow 0 arguments.
21836
21837 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
21838
21839 * process.c (DATAGRAM_CONN_P, list_processes_1)
21840 (Fprocess_datagram_address, Fset_process_datagram_address)
21841 (Fset_network_process_options, server_accept_connection):
21842 Fix some int/Lisp_Object confusions (thank you union types).
21843
21844 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21845
21846 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
21847
21848 * w32term.c: Likewise.
21849 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
21850
21851 * keyboard.c (Qselect_window): New symbol.
21852 (head_table): Use it.
21853 (keys_of_keyboard): Bound select-window event to handle-select-window.
21854 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
21855
21856 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
21857 (last_window): New variable.
21858 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
21859 (note_mouse_movement): Remove reimplemented code in #if 0.
21860 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
21861 Emacs windows.
21862
21863 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
21864
21865 2002-03-31 Gerd Moellmann <gerd@gnu.org>
21866
21867 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
21868 Callers changed.
21869
21870 2002-03-30 Richard M. Stallman <rms@gnu.org>
21871
21872 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
21873 loop whenever it stops making progress.
21874
21875 * widget.c (set_frame_size): Don't call change_frame_size.
21876
21877 2002-03-30 Gerd Moellmann <gerd@gnu.org>
21878
21879 * dispnew.c (direct_output_for_insert):
21880 Call mark_window_display_accurate.
21881
21882 2002-03-29 Jason Rumney <jasonr@gnu.org>
21883
21884 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
21885
21886 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
21887
21888 * Makefile.in (lread.o): Depend on coding.h.
21889
21890 * lread.c (openp, Fload): Encode the file name before passing it
21891 to `stat', `access', and `emacs_open'.
21892 (openp): GCPRO the encoded file name. Don't recompute Lisp
21893 strings unnecessarily.
21894
21895 2002-03-29 Kim F. Storm <storm@cua.dk>
21896
21897 * fns.c (Flax_plist_put): Doc fix.
21898
21899 2002-03-28 Miles Bader <miles@gnu.org>
21900
21901 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
21902
21903 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21904
21905 * process.c (set-network-process-options): Add usage.
21906 (make-network-process): Doc fix.
21907
21908 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
21909
21910 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
21911
21912 2002-03-26 Richard M. Stallman <rms@gnu.org>
21913
21914 * fns.c (Fsubstring_no_properties): New function.
21915 (Flax_plist_get, Flax_plist_put): New functions.
21916 (syms_of_fns): defsubr them.
21917
21918 * xdisp.c (update_menu_bar): Test only update_mode_lines;
21919 don't test or alter w->update_mode_line.
21920
21921 * window.c (Fdisplay_buffer): Doc fix.
21922
21923 2002-03-24 Richard M. Stallman <rms@gnu.org>
21924
21925 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
21926
21927 2002-03-24 Gerd Moellmann <gerd@gnu.org>
21928
21929 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
21930 (Fdefmacro): Handle `(declare ...)'.
21931 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
21932 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
21933
21934 2002-03-24 Jason Rumney <jasonr@gnu.org>
21935
21936 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
21937 (xbm_file_p): Add prototypes.
21938 (xbm_format, xbm_image_p): Sync with xfns.c.
21939 (reflect_byte): New function.
21940 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
21941 (xbm_load_image): Create bitmaps with a depth of 1.
21942 (init_xfns): Enable XBM images.
21943
21944 2002-03-23 Jason Rumney <jasonr@gnu.org>
21945
21946 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
21947 correctly. Do not pass up_modifier to keyboard buffer.
21948
21949 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
21950
21951 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
21952
21953 * Makefile.in (bootstrapclean): New target.
21954 (bootstrap-temacs, bootstrap-doc): Remove.
21955 (bootstrap-emacs): Use a bog-standard `temacs'.
21956 Don't bother to build a DOC file.
21957
21958 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
21959
21960 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
21961 in temacs even if !CANNOT_DUMP.
21962 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
21963
21964 * alloc.c (check_pure_size): Only output a warning.
21965
21966 2002-03-22 Jason Rumney <jasonr@gnu.org>
21967
21968 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
21969 supported.
21970
21971 * w32term.c (zv_bits): Declare as short, for word alignment.
21972 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
21973 (syms_of_w32term): Define x-use-underline-position-properties.
21974
21975 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
21976 (clear_image_cache): Block input, fix logic, clear matrices in
21977 all frames that share this cache.
21978
21979 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
21980
21981 * emacs.c (main): Update the Copyright year in the blurb printed
21982 by "emacs --version".
21983
21984 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
21985
21986 * xterm.c (XTread_socket): If XK_ISO_Lock and
21987 XK_ISO_Last_Group_Lock are defined, handle keysyms between
21988 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
21989
21990 2002-03-21 Kim F. Storm <storm@cua.dk>
21991
21992 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
21993 menu-bar bindings in keymap and local-map properties _are_ used.
21994 But try keymap property first in accordance with 2002-01-03 patch.
21995 Added comment describing why this is not always reliable.
21996 (tool_bar_items): Ditto for tool-bar.
21997
21998 2002-03-21 Jason Rumney <jasonr@gnu.org>
21999
22000 * w32fns.c (x_clear_image_1): Disable color table code.
22001
22002 2002-03-21 Kim F. Storm <storm@cua.dk>
22003
22004 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
22005 removed the wrong version of the DEFUN macro; fixed it.
22006
22007 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
22008 Fmember rather than Fmemq).
22009 (Fprovide): Check that subfeatures is a list.
22010
22011 * process.c (QCfeature, QCdatagram): Removed variables.
22012 (QCtype, Qdatagram): New variables.
22013 (network_process_featurep): Removed function.
22014 (Fmake_network_process): Removed :feature check.
22015 Use :type 'datagram instead of :datagram t to create a datagram
22016 socket. This allows us to add other connection types (e.g. raw
22017 sockets) later in a consistent manner.
22018 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
22019 supported subfeatures for feature make-network-process.
22020 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
22021 Intern and staticpro QCtype and Qdatagram.
22022 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
22023
22024 * xfns.c (QCtype): Remove duplicate declaration and
22025 initialization (is now declared in process.c).
22026
22027 * w32fns.c (QCtype): Remove duplicate declaration and
22028 initialization (is now declared in process.c).
22029
22030 2002-03-21 Richard M. Stallman <rms@gnu.org>
22031
22032 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
22033 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
22034 when jumping to `fail' to avoid undoing reg changes in the
22035 last iteration of the loop.
22036 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
22037
22038 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
22039 Depend on process.h.
22040
22041 2002-03-20 Jason Rumney <jasonr@gnu.org>
22042
22043 Most of the following changes are still conditional on HAVE_IMAGES
22044 which is not set by default on Windows.
22045
22046 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
22047
22048 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
22049 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
22050 (four_corners_best, x_clear_image_1, x_clear_image)
22051 (x_alloc_image_color, postprocess_image)
22052 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
22053 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
22054 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
22055
22056 * w32gui.h (struct XImage): Define.
22057
22058 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
22059 extract mouse co-ordinates.
22060
22061 2002-03-20 Jason Rumney <jasonr@gnu.org>
22062
22063 * w32.c (init_winsock): Dynamically load new server and UDP
22064 socket functions.
22065 (socket_to_fd): New function.
22066 (sys_socket): Use it.
22067 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
22068 (sys_recvfrom, sys_sendto): New wrapper functions.
22069
22070 * process.c (QCfamily, QCfilter): Remove duplicate declaration
22071 and initialization.
22072
22073 * makefile.w32-in (LIBS): Remove $(WSOCK32).
22074
22075 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
22076
22077 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
22078 Don't use "sun" as a variable, it's a predefined constant on Sun
22079 machines.
22080
22081 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22082
22083 * bytecode.c (Fbyte_code): Revert last change.
22084
22085 2002-03-19 Kim F. Storm <storm@cua.dk>
22086
22087 * makefile.w32-in (LIBS): Add $(WSOCK32).
22088 From David Ponce <dponce@voila.fr>.
22089
22090 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22091
22092 * process.c (wait_reading_process_input): Move variables `pname'
22093 and `pnamelen' down where they are used.
22094
22095 * bytecode.c (Fbyte_code): Discard unused computed value to
22096 prevent gcc warning.
22097
22098 * lisp.h (Fplist_member): Add prototype.
22099
22100 2002-03-18 Kim F. Storm <storm@cua.dk>
22101
22102 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
22103 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
22104
22105 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
22106 Remove explicit GNU_LINUX settings for datagram support.
22107
22108 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22109
22110 * process.c (Fmake_network_process): Remove unused variable `sa'.
22111 Doc fix. Add usage:.
22112 (set_socket_options): Remove unused variables `optnum' and `opttype'.
22113
22114 2002-03-17 Richard M. Stallman <rms@gnu.org>
22115
22116 * xdisp.c (cursor_type_changed): New variable.
22117 (redisplay_internal): Redisplay all windows if cursor_type_changed.
22118 Clear it when clearing windows_or_buffers_changed.
22119 (try_cursor_movement, redisplay_window, try_window_id)
22120 (try_window_reusing_current_matrix): Test cursor_type_changed
22121 along with windows_or_buffers_changed.
22122
22123 * window.h (cursor_type_changed): New variable.
22124
22125 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
22126 not update_mode_lines, and always set it to 1.
22127
22128 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
22129 if no frames needed redrawing.
22130
22131 2002-03-17 Kim F. Storm <storm@cua.dk>
22132
22133 The following changes add support for network server processes,
22134 datagram connections, and local (unix) sockets.
22135
22136 * process.h (struct Lisp_Process): New member log.
22137 Doc fix: Member command used to indicate stopped network process.
22138 Doc fix: Member childp contains plist for network process.
22139 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
22140
22141 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
22142 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
22143 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
22144 New variables.
22145 (NETCONN1_P): New macro.
22146 (DATAGRAM_SOCKETS): New conditional symbol.
22147 (datagram_address): New array.
22148 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
22149 (status_message): Use concat3.
22150 (Fprocess_status): Add `listen' status to doc string. Return `stop'
22151 for a stopped network process.
22152 (Fset_process_buffer): Update contact plist for network process.
22153 (Fset_process_filter): Ditto. Don't enable input for stopped
22154 network processes. Server must listen, even if filter is t.
22155 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
22156 New functions.
22157 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
22158 (Fprocess_contact): Added KEY argument. Handle datagrams.
22159 (list_processes_1): Optionally show only processes with the query
22160 on exit flag set. Dynamically adjust column widths. Omit tty
22161 column if not needed. Report stopped network processes.
22162 Identify server and datagram network processes.
22163 (Flist_processes): New optional arg `query-only'.
22164 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
22165 (conv_lisp_to_sockaddr, set_socket_options)
22166 (network_process_featurep, unwind_request_sigio): New helper functions.
22167 (Fprocess_datagram_address, Fset_process_datagram_address):
22168 (Fset_network_process_options): New lisp functions.
22169 (Fopen_network_stream): Removed. Now defined in simple.el.
22170 (Fmake_network_process): New lisp function. Code is based on previous
22171 Fopen_network_stream, but heavily reworked with new property list based
22172 argument list, support for datagrams, server processes, and local
22173 sockets in addition to old client-only functionality.
22174 (server_accept_connection): New function.
22175 (wait_reading_process_input): Use it to handle incoming connects.
22176 Do not enable input on a new connection if process is stopped.
22177 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
22178 (send_process): Handle datagram sockets.
22179 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
22180 network process is indicated by setting command field to t .
22181 (Fprocess_send_eof): No-op if datagram connection.
22182 (Fstatus_notify): Don't read input for a stream server socket or a
22183 stopped network process.
22184 (init_process): Initialize datagram_address array.
22185 (syms_of_process): Intern and staticpro new variables, defsubr new
22186 functions.
22187
22188 2002-03-16 Jason Rumney <jasonr@gnu.org>
22189
22190 * w32fns.c (w32_to_all_x_charsets): Return correct type in
22191 startup case.
22192
22193 2002-03-16 Richard M. Stallman <rms@gnu.org>
22194
22195 * xdisp.c (redisplay_internal, redisplay_windows):
22196 Use list_of_error to call internal_condition_case_1.
22197 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
22198 so as to catch all errors with no possibility of debugger redisplay.
22199 (list_of_error): New variable.
22200 (syms_of_xdisp): Init and staticpro it.
22201
22202 * print.c (print_object): Delete `\ ' from printed rep of frame.
22203
22204 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
22205
22206 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
22207 until its implementation is fixed.
22208
22209 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22210
22211 * xfns.c (png_load): Remove unused variable `gamma_str'.
22212
22213 2002-03-14 Richard M. Stallman <rms@gnu.org>
22214
22215 * xfns.c (x_real_positions): Handle failure in XQueryTree.
22216
22217 2002-03-14 Miles Bader <miles@gnu.org>
22218
22219 * intervals.c (adjust_for_invis_intang): New function.
22220 (set_point_both): Use `adjust_for_invis_intang' to do most of the
22221 work for dealing with invisible+intangible regions. Do so before
22222 and after both forward and backward movements, to handle both
22223 front-sticky and rear-sticky cases.
22224 * textprop.c (text_property_stickiness): Function moved here from
22225 `editfns.c'.
22226 * intervals.h (text_property_stickiness): New declaration.
22227 * editfns.c (char_property_eq): Function removed.
22228 (text_property_stickiness): Function moved to `textprop.c'.
22229
22230 2002-03-13 Jason Rumney <jasonr@gnu.org>
22231
22232 * config.in: Add STRFTIME_NO_POSIX2.
22233
22234 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
22235 and %OX when underlying strftime does not.
22236
22237 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
22238
22239 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
22240 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
22241 line) to avoid annoying flicker.
22242 (xm_scroll_callback): Get rid of the now unnecessary kludge.
22243 (XTread_socket): Mark it static.
22244
22245 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
22246
22247 2002-03-13 Kim F. Storm <storm@cua.dk>
22248
22249 * puresize.h (BASE_PURESIZE): Increase to 775000.
22250
22251 2002-03-12 Juanma Barranquero <lektu@terra.es>
22252
22253 * editfns.c (syms_of_editfns): Fix typo.
22254
22255 2002-03-12 Gerd Moellmann <gerd@gnu.org>
22256
22257 * xsmfns.c: Include stdio.h because termhooks.h needs it.
22258 Include termopt.h for interrupt_input.
22259
22260 2002-03-11 Andreas Schwab <schwab@suse.de>
22261
22262 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
22263
22264 2002-03-11 Gerd Moellmann <gerd@gnu.org>
22265
22266 * xterm.c (note_mouse_movement): Put code for
22267 x_autoselect_window_p in #if 0.
22268
22269 * lread.c (Fload): Don't assume that message_with_string uses the
22270 string it is given like a C string.
22271
22272 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22273
22274 * xterm.h (x_session_check_input, x_session_initialize): Declare.
22275
22276 * xterm.c (XTread_socket): Add call to x_session_check_input and
22277 x_session_have_connection.
22278 (x_initialize): Add call to x_session_initialize.
22279
22280 * termhooks.h (enum event_kind): Add save_session_event.
22281
22282 * keyboard.c: Add Emacs event save_session_event.
22283
22284 * emacs.c (main): Add call to syms_of_xsmfns.
22285
22286 * lisp.h (syms_of_xsmfns): Declare extern.
22287
22288 * config.in: Add HAVE_X_SM.
22289
22290 * Makefile.in (LIBXT): Add -lSM -lICE
22291 if HAVE_X_SM and not USE_X_TOOLKIT.
22292 (XOBJ): New file xsmfns.c added.
22293
22294 * xsmfns.c: New file for X session management.
22295
22296 2002-03-09 Jason Rumney <jasonr@gnu.org>
22297
22298 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
22299 read-only when setting modified time.
22300
22301 2002-03-08 Gerd Moellmann <gerd@gnu.org>
22302
22303 * xdisp.c (move_it_vertically_backward): At the end of the function,
22304 when moving forward by lines, treat terminal frames specially.
22305
22306 * keyboard.c (echo_char): Make sure to add a separator between
22307 keys even if echo_dash hasn't been called.
22308
22309 * xdisp.c: Use new string macros.
22310 (update_echo_area): Pass number of bytes to message3 instead of
22311 number of chars.
22312 (set_message_1): Don't access a string's size_byte directly.
22313 (decode_mode_spec_coding): Use number of bytes of eoltype string
22314 instead number of chars.
22315
22316 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
22317
22318 2002-03-08 Juanma Barranquero <lektu@terra.es>
22319
22320 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
22321 24-bit.
22322
22323 2002-03-06 Jason Rumney <jasonr@gnu.org>
22324
22325 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
22326
22327 2002-03-06 Gerd Moellmann <gerd@gnu.org>
22328
22329 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
22330 (cancel_echoing, echo_length, echo_truncate): Changed to
22331 work with new kboard definition.
22332 (echo_now): Use message3_nolog instead of message2_nolog.
22333
22334 * alloc.c (mark_kboards): Mark echo_string.
22335
22336 * keyboard.h (ECHOBUFSIZE): Removed.
22337 (struct kboard): Member echoptr removed, member echobuf renamed
22338 to echo_string.
22339
22340 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
22341 message3 instead of message2 to display the message using STRING's
22342 text properties.
22343
22344 2002-03-05 Andreas Schwab <schwab@suse.de>
22345
22346 * xdisp.c (hscroll_margin): Change to EMACS_INT.
22347
22348 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
22349
22350 * frame.c (default-frame-alist): Explain that setting it doesn't
22351 affect existing frames.
22352
22353 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
22354
22355 * indent.c (skip_invisible): Fix my brain fart.
22356
22357 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
22358
22359 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
22360
22361 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
22362 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
22363 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
22364 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
22365 and variables to use EMACS_INT instead of just int.
22366
22367 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
22368
22369 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
22370
22371 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
22372 environment, pass it down with corrected value.
22373
22374 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22375
22376 * lread.c (read_filtered_event): Do not call start_hourglass
22377 before returning.
22378
22379 2002-03-04 Juanma Barranquero <lektu@terra.es>
22380
22381 * w32term.c (x_display_and_set_cursor): Fix typo.
22382
22383 2002-03-03 Richard M. Stallman <rms@gnu.org>
22384
22385 * fileio.c (Fmake_temp_name): Doc fix.
22386
22387 2002-03-03 Gary Wong <gtw@gnu.org>
22388
22389 * termcap.c [!emacs]: Replace ospeed for building standalone
22390 libtermcap, for binary compatibility.
22391
22392 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
22393
22394 2002-03-03 Richard M. Stallman <rms@gnu.org>
22395
22396 * xrdb.c (file_p): Rename arg `path' to `filename'.
22397
22398 * abbrev.c (Fexpand_abbrev): Increment plist as use count
22399 only if it is an integer.
22400
22401 * xfns.c (png_load): Set screen_gamma based on f->gamma.
22402 If png_get_sRGB gives an answer, call png_set_gamma
22403 using the default image gamma value.
22404
22405 * lread.c (read1): When reading from a file, default string to
22406 multibyte only if it has some multibyte characters.
22407
22408 * print.c (print_object): Output multibyte chars 128...255
22409 using \x even if ! print_escape_multibyte.
22410
22411 * xdisp.c (display_mode_element): Move the places where
22412 bytepos, charpos, this, and lisp_string are set.
22413 Use lisp_string to set bytepos.
22414
22415 * xdisp.c (redisplay_internal):
22416 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
22417
22418 * xdisp.c (display_mode_element): Merge properties specified with
22419 :propertize onto those that come with the string.
22420
22421 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
22422
22423 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
22424 automatic-hscrolling. Users changed.
22425 <hscroll-margin>: Renamed from automatic-hscroll-margin.
22426 Users changed.
22427 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
22428
22429 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
22430
22431 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
22432
22433 2002-03-02 Kim F. Storm <storm@cua.dk>
22434
22435 * window.c (Fminibuffer_selected_window): New function.
22436 (syms_of_window): Defsubr it.
22437
22438 2002-03-01 Kim F. Storm <storm@cua.dk>
22439
22440 * window.h (struct window): New member phys_cursor_width.
22441
22442 * window.c (make_window, replace_window): Init phys_cursor_width.
22443
22444 * xterm.c (x_display_and_set_cursor): Blink box cursor using
22445 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
22446
22447 * w32term.c (x_display_and_set_cursor): Blink box cursor using
22448 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
22449
22450 * lisp.h (GCPRO6): New macro.
22451
22452 * process.c (Fopen_network_stream): Use GCPRO6.
22453
22454 2002-03-01 Kim F. Storm <storm@cua.dk>
22455
22456 * process.c (Qconnect, Qfailed): New variables.
22457 (syms_of_process): Intern and staticpro them.
22458 (Fprocess_status): Document connect and failed return values.
22459 [NON_BLOCKING_CONNECT]: New conditional.
22460 (connect_wait_mask, num_pending_connects): New variables.
22461 (status_message): Convert Qfailed status.
22462 (Fopen_network_stream): Added support for non-blocking connect.
22463 New optional args: filter, sentinel, non_blocking. Doc updated.
22464 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
22465 (deactivate_process): Handle pending non-blocking connect.
22466 (wait_reading_process_input): Poll for status of non-blocking
22467 connects. Exec sentinel directly when connect succeeds.
22468 (status_notify): Don't read process output if not yet connected.
22469
22470 2002-02-28 Kim F. Storm <storm@cua.dk>
22471
22472 * window.c (minibuf_selected_window): Renamed from
22473 Vminibuf_selected_window. Users changed.
22474 (syms_of_window): Staticpro it.
22475
22476 2002-02-26 Kim F. Storm <storm@cua.dk>
22477
22478 The following changes add a new Vminibuf_selected_window variable
22479 which is similar to Vminibuf_scroll_window, but which is only set
22480 on entry to the minibuffer (from a non-minibuffer window):
22481
22482 * window.c (Vminibuf_selected_window): New variable.
22483 (struct save_window_data): New member minibuf_selected_window.
22484 (Fset_window_configuration): Restore Vminibuf_selected_window.
22485 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
22486 Set minibuf_scroll_window member to nil if minibuf_level is 0.
22487 (compare_window_configurations): Compare minibuf_selected_window.
22488
22489 * window.h (Vminibuf_selected_window): Declare extern.
22490
22491 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
22492 entry to minibuffer or on entry from a non-minibuffer window.
22493
22494 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
22495 Vminibuf_selected_window instead of Vminibuf_scroll_window.
22496
22497 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
22498 instead of Vminibuf_scroll_window when deciding in which window
22499 the region should be highlighted. Consequently, the region remains
22500 highlighteded even when a completion buffer is also displayed.
22501
22502 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
22503
22504 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
22505
22506 * xselect.c (Qcompound_text_with_extensions): Renamed from
22507 Qcompound_text_no_extensions.
22508 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
22509
22510 2002-02-26 Juanma Barranquero <lektu@terra.es>
22511
22512 * w32proc.c (syms_of_ntproc): Doc fix.
22513
22514 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22515
22516 * intervals.h: Include "dispextern.h" unconditionally.
22517
22518 2002-02-24 Jason Rumney <jasonr@gnu.org>
22519
22520 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
22521 and disp-table.elc.
22522 (lisp): Add emacs-lisp/backquote.elc.
22523
22524 2002-02-24 Kim F. Storm <storm@cua.dk>
22525
22526 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
22527 The validation of the event type was too strict as it didn't
22528 allow string events; buffer names are used in bindings for
22529 menu-bar-select-buffer (see `menu-bar-update-buffers').
22530
22531 2002-02-23 Kim F. Storm <storm@cua.dk>
22532
22533 The following changes rework my patch of 2002-02-06 which
22534 added command remapping by entering the commands directly into
22535 the keymaps. Now, command remapping uses an explicit `remap'
22536 prefix in the keymaps, i.e. [remap COMMAND].
22537
22538 * keymap.c (Qremap, remap_command_vector): New variables.
22539 (is_command_symbol): Remove function.
22540 (Fdefine_key): No longer accept a symbol for KEY.
22541 Added validation of [remap COMMAND] argument for KEY.
22542 The DEF is no longer required to be a symbol when remapping a command.
22543 (Fremap_command): New function to remap command through keymaps.
22544 (Flookup_key): Perform command remapping initiated by
22545 Fremap_command directly for speed.
22546 (Fkey_binding): Use Fremap_command for command remapping.
22547 (where_is_internal): Handle new command remapping representation.
22548 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
22549 staticpro them. Defsubr Fremap_command.
22550
22551 * keymap.h (Fremap_command): Declare extern.
22552 (is_command_symbol): Remove extern.
22553
22554 * keyboard.c (command_loop_1): Use Fremap_command for command
22555 remapping; now try command remapping for all symbols.
22556
22557 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
22558
22559 * coding.h (run_pre_post_conversion_on_str): Add prototype.
22560
22561 2002-02-23 Jason Rumney <jasonr@gnu.org>
22562
22563 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
22564 on the string before encoding it.
22565 (Fw32_get_clipboard_data): Run post-read-conversion on the string
22566 after decoding it.
22567
22568 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
22569
22570 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22571
22572 * w32term.c (enter_timestamp): Remove unused static variable to
22573 prevent warning.
22574
22575 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
22576
22577 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
22578
22579 * w16select.c (Fw16_get_clipboard_data): Fix last change.
22580
22581 * xselect.c (selection_data_to_lisp_data): Fix last change.
22582
22583 2002-02-22 Jason Rumney <jasonr@gnu.org>
22584
22585 * w32term.h (struct w32_output): New member menu_command_in_progress.
22586
22587 * w32menu.c (menubar_selection_callback): Free the menu and
22588 clear the menu_command_in_progress flag.
22589
22590 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
22591 (menu_free_timer): New variable.
22592 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
22593 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
22594 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
22595 menu command is in progress.
22596 <WM_COMMAND>: Set the menu_command_in_progress flag.
22597 Kill any menu_free_timer that is running.
22598
22599 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
22600 Call ExtTextOutA rather than ExtTextOut.
22601
22602 2002-02-22 Eli Zaretskii <eliz@gnu.org>
22603
22604 * puresize.h (BASE_PURESIZE): Increase to 755000.
22605
22606 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
22607
22608 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
22609 on the string before encoding it.
22610 (Fw16_get_clipboard_data): Run post-read-conversion on the string
22611 after decoding it.
22612
22613 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
22614
22615 Support for ICCCM Extended Segments in X selections:
22616
22617 * xselect.c <Qcompound_text_no_extensions>: New variable.
22618 (syms_of_xselect): Intern and staticpro it.
22619 (selection_data_to_lisp_data): Run post-read-conversion on decoded
22620 selection text.
22621 (lisp_data_to_selection_data): If next-selection-coding-system is
22622 compound-text-no-extensions, set the type of selection to be
22623 compound-text.
22624
22625 * xterm.h (x_encode_text): Update prototype.
22626
22627 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
22628 callers changed. If SELECTIONP is non-zero, run the
22629 pre-write-conversion function before encoding the selection text.
22630
22631 2002-02-21 Kim F. Storm <storm@cua.dk>
22632
22633 * frame.c (syms_of_frame): Change mouse-highlight default to t.
22634
22635 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
22636 Correct composing of language-change event.
22637
22638 2002-02-20 Kim F. Storm <storm@cua.dk>
22639
22640 * keyboard.c (menu_bar_items): Don't include keymap or local-map
22641 bindings at PT when building menu (the menu is not updated often
22642 enough for this to work reliable).
22643 (tool_bar_items): Likewise.
22644 (current_active_maps): Removed unused (and buggy) function.
22645
22646 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22647
22648 * xfns.c (gif_load): Use correct width and height for GIF images.
22649
22650 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
22651
22652 * floatfns.c (Fatan): Accept an optional second arg and call
22653 atan2 if passed 2 args.
22654
22655 2002-02-18 Jason Rumney <jasonr@gnu.org>
22656
22657 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
22658
22659 2002-02-17 Jason Rumney <jasonr@gnu.org>
22660
22661 * w32term.c (x_autoselect_window_p): New variable.
22662 (syms_of_w32term): DEFVAR_BOOL and initialize it.
22663 (note_mouse_movement): Use it.
22664
22665 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
22666
22667 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
22668
22669 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22670 New variables.
22671 (syms_of_w32fns): Intern and staticpro them.
22672 (x_frame_parms) <"fullscreen">: New parameter.
22673 (x_fullscreen_move, x_set_fullscreen): New functions.
22674 (x_set_frame_parameters): Support Qfullscreen.
22675 (x_real_positions): Save x/y_pixels_diff frame params.
22676 (x_figure_window_size): Support full-screen frames.
22677 (Fx_create_frame): Default the fullscreen parameter.
22678
22679 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
22680 (x_fullscreen_adjust): New functions.
22681 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
22682 fullscreen. Call x_check_fullscreen_move, and set the
22683 want_fullscreen member of output_data.w32
22684 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
22685
22686 * w32term.h: New enum for FULLSCREEN_* constants.
22687 (struct w32_output): New members want_fullscreen, x_pixels_diff,
22688 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
22689 (x-fullscreen-adjust): New prototype.
22690
22691 2002-02-17 Kim F. Storm <storm@cua.dk>
22692
22693 * frame.c (Vmouse_highlight): New variable.
22694 (syms_of_frame): DEFVAR_LISP it.
22695
22696 * frame.h (Vmouse_highlight): Declare extern.
22697
22698 * xterm.h (struct x_display_info): Add mouse_face_hidden.
22699
22700 * xterm.c (disable_mouse_highlight): Removed variable.
22701 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
22702 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22703 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
22704 and on after keyboard input.
22705 (x_term_init): Initialize mouse_face_hidden.
22706
22707 * msdos.h (struct display_info): Add mouse_face_hidden.
22708
22709 * msdos.c (disable_mouse_highlight): Removed variable.
22710 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22711 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
22712 (internal_terminal_init): Initialize mouse_face_hidden.
22713 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
22714 and on after keyboard input.
22715
22716 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
22717
22718 * w32term.c (disable_mouse_highlight): Removed variable.
22719 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
22720 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22721 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
22722 and on after keyboard input.
22723 (w32_initialize_display_info): Initialize mouse_face_hidden.
22724
22725 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
22726
22727 * msdos.c (last_mouse_window): New variable.
22728 (dos_rawgetc): Fix last change--if the mouse is in the same window
22729 as recorded in last_mouse_window, don't select this window.
22730
22731 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
22732
22733 * msdos.c (x_autoselect_window_p): New variable.
22734 (syms_of_msdos): Defvar it.
22735 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
22736 which the last mouse movement occured, unless it is already selected.
22737
22738 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
22739 New variables.
22740 (syms_of_xdisp): DEVFAR them.
22741 (hscroll_window_tree): Use automatic_hscroll_margin and
22742 Vautomatic_hscroll_step to compute the amount of window scrolling.
22743
22744 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22745
22746 * xterm.c (x-autoselect-window): New variable.
22747 (note_mouse_movement): Use it.
22748
22749 * keyboard.c: Do not include "systime.h" twice.
22750
22751 2002-02-15 Andreas Schwab <schwab@suse.de>
22752
22753 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
22754
22755 * alloc.c (NSTATICS): Increase to 1280.
22756
22757 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
22758
22759 * alloc.c (NSTATICS): Bump to 1026.
22760
22761 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
22762 (Vx_super_keysym): New variables.
22763 (syms_of_xterm): DEFVAR_LISP them.
22764 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
22765 variables to determine which keys to use for the various modifiers.
22766
22767 2002-02-13 Kim F. Storm <storm@cua.dk>
22768
22769 * window.c (Vmode_line_in_non_selected_windows): Removed.
22770 (mode_line_in_non_selected_windows): New variable.
22771 (syms_of_window): DEFVAR_BOOL it.
22772
22773 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
22774 Use mode_line_in_non_selected_windows.
22775 (mode_line_in_non_selected_windows): Declare extern.
22776 (Vmode_line_in_non_selected_windows): Removed extern.
22777
22778 2002-02-13 Richard M. Stallman <rms@gnu.org>
22779
22780 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
22781 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
22782 (Fclear_this_command_keys): Doc fixes.
22783
22784 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
22785 (update_face_from_frame_parameter): Increment face_change_count
22786 and windows_or_buffers_changed to force redisplay using changed faces.
22787
22788 * xdisp.c (QCpropertize): New variable.
22789 (mode_line_proptrans_alist): New variable.
22790 (display_mode_element): New arg PROPS; all calls changed.
22791 Implement this, for strings.
22792 Handle literal output of strings by sharing the
22793 main-line code for strings, using local var `literal'.
22794 Handle :propertize feature.
22795 (syms_of_xdisp): Initialze and staticpro QCpropertize and
22796 mode_line_proptrans_alist.
22797
22798 2002-02-11 Kim F. Storm <storm@cua.dk>
22799
22800 * window.c (Vmode_line_in_non_selected_windows): New variable.
22801 (syms_of_window): DEFVAR_LISP it.
22802
22803 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
22804 (CURRENT_MODE_LINE_FACE_ID): Use it.
22805 (Vmode_line_in_non_selected_windows): Declare extern.
22806
22807 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
22808 to get mode line face.
22809
22810 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
22811
22812 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
22813 variables; cus-start.el doesn't need them anymore.
22814
22815 2002-02-09 Kim F. Storm <storm@cua.dk>
22816
22817 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
22818 reduction. This fixes a display problem where stray newlines were
22819 inserted in the window (corrected by C-l). Clarified code (IMHO).
22820
22821 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
22822
22823 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
22824
22825 * xdisp.c (display_mode_lines): Fix last change.
22826
22827 2002-02-09 Jason Rumney <jasonr@gnu.org>
22828
22829 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
22830 match each other.
22831 (w32_load_system_font): Prevent Cleartype fonts from loading.
22832 (Fx_show_tip): Ensure tip frames are above other topmost windows.
22833
22834 2002-02-09 Kim F. Storm <storm@cua.dk>
22835
22836 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
22837 (CURRENT_MODE_LINE_HEIGHT): Use it.
22838 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
22839
22840 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
22841 (pos_visible_p, handle_face_prop): Likewise.
22842 (display_mode_lines): Likewise, but for the real selected window.
22843 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
22844
22845 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
22846 in non-selected windows.
22847 (realize_basic_faces): Realize it.
22848 (syms_of_term): Intern and staticpro it.
22849
22850 2002-02-08 Kim F. Storm <storm@cua.dk>
22851
22852 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
22853 Changed mail addresses to emacs-devel@gnu.org.
22854
22855 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
22856
22857 * fileio.c (Fsubstitute_in_file_name): If the file name includes
22858 ~user, and there's no such user, don't discard everything before ~user.
22859
22860 * floatfns.c (Fround): Doc fix.
22861
22862 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22863
22864 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
22865
22866 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
22867
22868 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
22869
22870 2002-02-07 Kim F. Storm <storm@cua.dk>
22871
22872 * keymap.c (where_is_internal): Only check whether definition is
22873 remapped if it fulfills is_command_symbol.
22874
22875 2002-02-07 Andreas Schwab <schwab@suse.de>
22876
22877 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
22878
22879 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
22880
22881 2002-02-06 Kim F. Storm <storm@cua.dk>
22882
22883 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
22884 defining command remapping. Doc updated.
22885 (Flookup_key): Remap command through keymap if KEY is a symbol.
22886 (is_command_symbol): New function.
22887 (Fkey_binding): Use it. New optional argument NO-REMAP.
22888 Doc updated. Callers changed. Perform command remapping via
22889 recursive call unless that arg is non-nil.
22890 (where_is_internal): New argument no_remap. Callers changed.
22891 Call recursively to find original key bindings for a remapped
22892 comand unless that arg is non-nil.
22893 (Fwhere_is_internal): New optional argument NO-REMAP.
22894 Doc updated. Callers changed. Pass arg to where_is_internal.
22895
22896 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
22897 (is_command_symbol): Add prototype.
22898
22899 * keyboard.c (Vthis_original_command): New variable.
22900 (syms_of_keyboard): DEFVAR_LISP it.
22901 (command_loop_1): Set it, and perform command remapping.
22902
22903 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22904
22905 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
22906
22907 2002-02-06 Jason Rumney <jasonr@gnu.org>
22908
22909 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
22910
22911 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
22912
22913 * charset.c (get_charset_id): Use if-else instead of ?:.
22914
22915 2002-02-06 Richard M. Stallman <rms@gnu.org>
22916
22917 * filelock.c (S_ISLNK): Define if not defined.
22918
22919 2002-02-03 Richard M. Stallman <rms@gnu.org>
22920
22921 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
22922
22923 * lread.c (read1): Redesign strategy for force_multibyte and
22924 force_singlebyte. Now is_multibyte records whether read_buffer
22925 is multibyte. Encountering any multibyte character makes it so.
22926
22927 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
22928
22929 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
22930 with the same sequence, map that sequence to f10 rather than f0.
22931
22932 2002-02-03 Andreas Schwab <schwab@suse.de>
22933
22934 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
22935 latter never being defined on GNU/Linux.
22936
22937 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
22938
22939 * xfaces.c (realize_default_face): Don't set the weight and slant of
22940 the default face to Qnormal, unless these attributes are unspecified.
22941
22942 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22943
22944 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
22945 Call cancel_hourglass unconditionally.
22946
22947 * eval.c (Fsignal): Remove duplicated declaration of
22948 the variable `display_hourglass_p'.
22949
22950 2002-01-31 Richard M. Stallman <rms@gnu.org>
22951
22952 * editfns.c (region_limit): Nicer error message.
22953
22954 * coding.c (decode_composition_emacs_mule):
22955 Give up if NCOMPONENT gets too large to index `component'.
22956
22957 * callint.c (check_mark): New arg to specify clearer error message.
22958 Callers changed.
22959
22960 2002-01-27 Richard M. Stallman <rms@gnu.org>
22961
22962 * minibuf.c (Fcompleting_read): Doc fix.
22963
22964 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22965
22966 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
22967 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
22968 Fix doc-strings.
22969
22970 2002-01-26 Richard M. Stallman <rms@gnu.org>
22971
22972 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
22973
22974 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
22975 and scroll_up_aggressively.
22976
22977 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22978
22979 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
22980
22981 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
22982
22983 * textprop.c (Fnext_property_change, Fnext_single_property_change)
22984 (Fprevious_property_change, Fprevious_single_property_change):
22985 Stay within the narrowed-buffer boundaries.
22986
22987 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
22988
22989 * term.c (Ftty_display_color_cells): New function.
22990 (syms_of_term): Defsubr it.
22991 (Ftty_display_color_cells, Ftty_display_color_p): Change the
22992 argument name to DISPLAY. Doc fix.
22993
22994 * dispextern.h: Add prototype for set_tty_color_mode and
22995 tty_setup_colors.
22996
22997 2002-01-24 Jason Rumney <jasonr@gnu.org>
22998
22999 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
23000 If region left to draw is not what was expected, mark the frame as
23001 garbaged.
23002
23003 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
23004 Combine the regions returned by BeginPaint and GetUpdateRect.
23005
23006 2002-01-23 Jason Rumney <jasonr@gnu.org>
23007
23008 * w32term.c (x_update_window_begin): Only hide caret if
23009 w32_use_visible_system_caret is set.
23010 (x_update_window_end): Only show caret if
23011 w32_use_visible_system_caret is set.
23012 (syms_of_w32term): Handle SystemParametersInfo call failing.
23013
23014 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
23015
23016 2002-01-22 Richard M. Stallman <rms@gnu.org>
23017
23018 * unexelf.c (unexec): Define n so as to cause compilation error
23019 for the code where people have often written n instead of nn.
23020
23021 * .gdbinit (hookpost-run): Defined.
23022
23023 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23024
23025 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
23026
23027 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23028
23029 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
23030 if fullscreen is being set.
23031
23032 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23033
23034 * minibuf.c (Fminibuffer_contents)
23035 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
23036 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
23037
23038 2002-01-21 Richard M. Stallman <rms@gnu.org>
23039
23040 * window.c (check_frame_size): Fix minimum height calculation.
23041
23042 2002-01-20 Ken Raeburn <raeburn@gnu.org>
23043
23044 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
23045 height before comparison.
23046 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
23047
23048 2002-01-20 Jason Rumney <jasonr@gnu.org>
23049
23050 * w32term.c (w32_system_caret_width): Remove.
23051 (w32_use_visible_system_caret): New user flag.
23052 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
23053 Windows reports a screen reader running.
23054 (x_update_window_begin): Hide the system caret.
23055 (x_update_window_end): Show the system caret.
23056 (x_display_and_set_cursor): Don't draw a cursor when
23057 w32_use_visible_system_caret is set. Do not adjust width.
23058
23059 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
23060 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
23061 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
23062 the user requests it. Use system default width when creating.
23063 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
23064
23065 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
23066 New window messages.
23067
23068 2002-01-20 Richard M. Stallman <rms@gnu.org>
23069
23070 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
23071
23072 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23073
23074 * doprnt.c (doprnt1): Fix typos in error call.
23075
23076 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
23077
23078 * unexelf.c (unexec) [__sgi]: Support the .got sections.
23079
23080 2002-01-20 Jason Rumney <jasonr@gnu.org>
23081
23082 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
23083 that Windows returns. If a double check fails, try to guess how
23084 ExtTextOut is going to act.
23085
23086 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
23087 in place of stricmp.
23088 (w32_list_synthesized_fonts): Removed.
23089 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
23090 (struct enumfont_t): New element; list.
23091 (enum_font_cb2): List all style and charset variations of a font.
23092 (Fw32_select_font): New optional argument; include_proportional.
23093 Exclude vertical fonts. Exclude proportional fonts unless
23094 include_proportional is non-nil.
23095 (w32_enable_synthesized_fonts): Change to a boolean.
23096 (Fw32_send_sys_command): Doc fix.
23097
23098 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23099
23100 * dispnew.c (update_frame): Move the variable `tem' to the block
23101 where it is used.
23102
23103 2002-01-19 Jason Rumney <jasonr@gnu.org>
23104
23105 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
23106 call to face-set-after-frame-default.
23107
23108 2002-01-18 Richard M. Stallman <rms@gnu.org>
23109
23110 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
23111 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
23112
23113 2002-01-17 Richard M. Stallman <rms@gnu.org>
23114
23115 * window.c (enlarge_window): When exceeding size of parent,
23116 directly delete all the siblings instead of trying to resize it.
23117
23118 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23119
23120 * term.c (set_tty_color_mode): Remove unused variable `tem'.
23121
23122 2002-01-16 Henrik Enberg <henrik@enberg.org>
23123
23124 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
23125
23126 2002-01-16 Kim F. Storm <storm@cua.dk>
23127
23128 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
23129 is invisible. This can happen if cursor is on top line of a
23130 window, and we switch to a buffer with a header line.
23131
23132 * w32term.c (x_erase_phys_cursor): Ditto.
23133
23134 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23135
23136 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
23137 `dont_resize' only when used.
23138
23139 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
23140
23141 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
23142
23143 * xdisp.c (display_mode_element): When computing charpos, depend
23144 on multibyteness of elt, not the text in field.
23145
23146 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23147
23148 * buffer.c (Fkill_all_local_variables):
23149 Increment `update_mode_lines' only once.
23150
23151 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23152
23153 * lisp.h (adjust_after_replace_noundo)
23154 (Fupdate_coding_systems_internal): Add prototypes.
23155
23156 * sound.c (Fplay_sound): Initialize header_size also for :data case.
23157
23158 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
23159
23160 Support for the --color command-line argument and tty-color-mode
23161 frame parameter:
23162
23163 * term.c (tty_default_color_capabilities, tty_setup_colors)
23164 (set_tty_color_mode): New functions.
23165 (term_init): Call tty_default_color_capabilities.
23166 (Qtty_color_mode_alist): New variable.
23167 (syms_of_term): Intern and staticpro it.
23168
23169 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
23170 frames.
23171 (do_switch_frame): For termcap frames, switch the tty
23172 color mode as specified by the frame's parameters.
23173 (Qtty_color_mode): New variable.
23174 (syms_of_frame): Intern and staticpro it.
23175
23176 * emacs.c (USAGE2): Add the --color option.
23177 (standard_args): Ditto.
23178
23179 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23180
23181 * xterm.h (struct x_output): New members want_fullscreen,
23182 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
23183 y_pixels_outer_diff.
23184 New enum for FULLSCREEN_* constants.
23185 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
23186 is NULL.
23187 (x_fullscreen_adjust): Add prototype.
23188
23189 * emacs.c (USAGE2): Add the new full-screen arguments.
23190 (standard_args): Ditto.
23191
23192 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23193 New variables.
23194 (syms_of_xfns): Intern and staticpro them.
23195 (x_frame_parms) <"fullscreen">: New parameter.
23196 (x_fullscreen_move, x_set_fullscreen): New functions.
23197 (x_set_frame_parameters): Support for Qfullscreen.
23198 (x_real_positions): More accurate computation of the frame position.
23199 (x_figure_window_size): Support full-screen frames.
23200 (Fx_create_frame): Default the fullscreen parameter.
23201
23202 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
23203 (XTread_socket) <Expose>: Call x_check_fullscreen.
23204 <ConfigureNotify>: Don't resize to fullscreen.
23205 Call x_check_fullscreen_move, and set the want_fullscreen member of
23206 output_data.x.
23207
23208 2002-01-13 Jason Rumney <jasonr@gnu.org>
23209
23210 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
23211 for mice with more than 3 buttons.
23212
23213 * w32term.c (parse_button): New parameter xbutton. Callers changed.
23214 (w32_read_socket): Handle new "XBUTTON" messages.
23215
23216 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
23217 (syms_of_w32fns): DEFVAR_BOOL it.
23218 (w32_wnd_proc): Handle new "XBUTTON" messages.
23219
23220 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23221
23222 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
23223
23224 2002-01-13 Andreas Schwab <schwab@suse.de>
23225
23226 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
23227
23228 2002-01-12 Andreas Schwab <schwab@suse.de>
23229
23230 * .gdbinit (xbuffer): Remove address operator since data is now a
23231 pointer.
23232
23233 2002-01-11 Richard M. Stallman <rms@gnu.org>
23234
23235 * insdel.c (adjust_after_replace_noundo): New function.
23236
23237 * coding.c (code_convert_region): Don't copy old text if undo disabled.
23238
23239 2002-01-09 Jason Rumney <jasonr@gnu.org>
23240
23241 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
23242 when checking for multiple frames.
23243
23244 2002-01-08 Richard M. Stallman <rms@gnu.org>
23245
23246 * window.c (delete_window): Rewrite the code for changing the
23247 selected window to handle the case where WINDOW is not a leaf.
23248
23249 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
23250
23251 * process.c (send_process): Set src_multibyte to 1 after the call
23252 top setup_coding_system, not before the call.
23253
23254 2002-01-07 Jason Rumney <jasonr@gnu.org>
23255
23256 * xmenu.c (set_frame_menubar, xmenu_show):
23257 (xdialog_show): Initialize wv->help to Qnil.
23258
23259 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
23260 (w32_dialog_show): Initialize wv->help to Qnil.
23261
23262 2002-01-06 Jason Rumney <jasonr@gnu.org>
23263
23264 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
23265
23266 * w32menu.c (w32_menu_display_help): Revert last change.
23267
23268 * xmenu.c (menu_highlight_callback): Revert last change.
23269
23270 2002-01-06 Andreas Schwab <schwab@suse.de>
23271
23272 * insdel.c (make_gap_larger): Make sure buffer size does not
23273 overflow range of int.
23274
23275 2002-01-05 Jason Rumney <jasonr@gnu.org>
23276
23277 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23278 OVERLAPS_P.
23279
23280 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
23281
23282 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
23283 to the left or to the right of the pointer, put it against
23284 the left screen edge.
23285 (x_frame_parms): Add missing braces around initializer.
23286
23287 * w32term.c (x_setup_relief_colors): Don't compute an image's
23288 background color if it doesn't have a Pixmap.
23289 (notice_overwritten_cursor): Don't depend on
23290 output_cursor and updated_area. Compare pixel coordinates with
23291 window's cursor pixel coordinates.
23292 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23293 Call notice_overwritten_cursor with new arg list.
23294 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23295 unconditionally.
23296 (x_draw_image_relief): Use predefined macro instead of
23297 constant when the value of `tool_bar_button_relief' is negative.
23298
23299 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
23300
23301 2002-01-04 Richard M. Stallman <rms@gnu.org>
23302
23303 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
23304
23305 2002-01-03 Richard M. Stallman <rms@gnu.org>
23306
23307 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
23308 (Fkey_binding): Try the `keymap' property map first.
23309 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
23310 minor mode bindings.
23311
23312 2002-01-03 Kim F. Storm <storm@cua.dk>
23313
23314 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
23315
23316 2002-01-02 Richard M. Stallman <rms@gnu.org>
23317
23318 * keyboard.c (read_key_sequence): Handle the keymap property
23319 before minor mode maps.
23320
23321 * editfns.c (Fformat): Update thissize from field_width
23322 based on the actual width, in the string case.
23323
23324 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23325
23326 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
23327 when used as truth value to prevent gcc warnings.
23328
23329 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
23330 * w32proc.c: Include <config.h>.
23331
23332 2002-01-01 Andreas Schwab <schwab@suse.de>
23333
23334 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
23335 not EMACS_INT, to make them compatible with DEFVAR_INT.
23336 * lisp.h (max_specpdl_size): Adjust declaration.
23337
23338 2002-01-01 Richard M. Stallman <rms@gnu.org>
23339
23340 * print.c (print_object): Test print_escape_nonascii only for
23341 unibyte strings.
23342 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
23343 when outputting to a multibyte buffer.
23344
23345 2001-12-29 Richard M. Stallman <rms@gnu.org>
23346
23347 * print.c (print_object): In multibyte string, use hex escapes.
23348 Use octal only for unibyte strings.
23349 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
23350
23351 * lread.c (read_escape): New arg BYTEREP for reporting whether
23352 escape forces unibyte or multibyte.
23353 (read1): When reading a string, take note of that info.
23354
23355 2001-12-29 Ken Raeburn <raeburn@gnu.org>
23356
23357 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
23358 comparison to test lisp value returned by Fget.
23359
23360 2001-12-29 Richard M. Stallman <rms@gnu.org>
23361
23362 * lisp.h (max_specpdl_size): Add declaration.
23363
23364 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
23365
23366 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
23367 Handle modifier bits. Correct typo in error message.
23368
23369 2001-12-28 Richard M. Stallman <rms@gnu.org>
23370
23371 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
23372 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
23373 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23374 Update calls to Fdefine_abbrev.
23375 (write_abbrev): Update for changed data format.
23376 Don't list "system" abbrevs.
23377 (Fexpand_abbrev): Update use count with new data format.
23378 (describe_abbrev): Update for changed data format.
23379 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
23380
23381 * config.in (HAVE_MBSINIT): Add #undef.
23382
23383 * strftime.c (mbsinit): Define as no-op if not available.
23384
23385 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
23386 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
23387
23388 * keymap.c (Flookup_key): Error message if key has wrong data type.
23389 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
23390 (exclude_key): New variable.
23391
23392 2001-12-28 Gerd Moellmann <gerd@gnu.org>
23393
23394 * xterm.c (x_setup_relief_colors): Don't compute an image's
23395 background color if it doesn't have a Pixmap.
23396
23397 * xterm.c (notice_overwritten_cursor): Don't depend on
23398 output_cursor and updated_area. Compare pixel coordinates with
23399 window's cursor pixel coordinates.
23400 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23401 Call notice_overwritten_cursor with new arg list.
23402 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23403 unconditionally.
23404
23405 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
23406 height of the cursor line to the amount to scroll.
23407
23408 2001-12-27 Richard M. Stallman <rms@gnu.org>
23409
23410 * intervals.c (set_point_both): The position after an invisible,
23411 intangible character is not an acceptable stopping point.
23412
23413 2001-12-27 Ken Raeburn <raeburn@gnu.org>
23414
23415 * window.c (enlarge_window): In new preserve_before code, convert
23416 CURBEG from lisp object to integer before doing arithmetic.
23417
23418 2001-12-27 Richard M. Stallman <rms@gnu.org>
23419
23420 * bytecode.c (Fbyte_code): Undo previous change.
23421
23422 2001-12-26 Kim F. Storm <storm@cua.dk>
23423
23424 * keyboard.c (record_char): Ignore duplicate help-echo events only
23425 separated by mouse-movement. When tracking mouse, only record
23426 first and last mouse-movement event in same window.
23427 Don't record mouse-movement events in keyboard macros.
23428
23429 2001-12-25 Richard M. Stallman <rms@gnu.org>
23430
23431 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
23432 (Fenlarge_window): New arg PRESERVE_BEFORE.
23433
23434 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
23435 instead of Fstring_as_unibyte.
23436
23437 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23438
23439 The following changes remove mocklisp support:
23440
23441 * mocklisp.h, mocklisp.c: Files removed.
23442
23443 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
23444 `Qmocklisp' and `Qmocklisp_arguments'.
23445 Remove prototype of syms_of_mocklisp.
23446
23447 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
23448
23449 * callint.c: Do not include mocklisp.h.
23450 (Fcall_interactively): Do not test for mocklisp case.
23451
23452 * eval.c: Remove variables `Qmocklisp_arguments',
23453 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
23454 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
23455 Do not test for mocklisp case.
23456 (Fwhile): Remove unused variable `tem'.
23457 (syms_of_eval): Remove variable `moclisp-arguments'.
23458
23459 * data.c (wrong_type_argument): Remove mocklisp case.
23460
23461 * doc.c (Fdocumentation): Remove mocklisp case.
23462
23463 * emacs.c (main): Do not call syms_of_mocklisp.
23464
23465 2001-12-21 Richard M. Stallman <rms@gnu.org>
23466
23467 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
23468 to the left or to the right of the pointer, put it against
23469 the left screen edge.
23470
23471 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
23472
23473 * Makefile.in (distclean): Remove .gdbinit if we are building
23474 outside the source tree.
23475
23476 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
23477
23478 * w32.c (emacs_root_dir): New function.
23479
23480 * msdos.c (emacs_root_dir): New function.
23481
23482 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
23483 of the current drive as the fallback for default_directory.
23484
23485 * dired.c (file_name_completion): Run the elements of
23486 completion-ignored-extensions through ENCODE_FILE.
23487
23488 * lisp.h (scmp): Remove prototype, since it's now a static
23489 function private to dired.c.
23490
23491 2001-12-18 Richard M. Stallman <rms@gnu.org>
23492
23493 * dired.c (scmp): Function moved from minibuf.c.
23494 Delete multibyte handling--used only on encoded strings.
23495
23496 * minibuf.c (scmp): Function moved to dired.c.
23497
23498 * fns.c (merge): Add QUIT call.
23499
23500 2001-12-18 Dave Love <fx@gnu.org>
23501
23502 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
23503 language/georgian.el.
23504
23505 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
23506
23507 * Makefile.in (lisp, shortlisp): Synchronize with changes to
23508 lisp/Makefile.in:DONTCOMPILE.
23509
23510 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23511
23512 * xdisp.c (window_box_height): Do not return negative values.
23513 From Gerd Moellmann <gerd@gnu.org>.
23514
23515 * keyboard.c (head_table): Add missing braces around initializer.
23516
23517 * term.c (keys): Likewise.
23518
23519 * xfns.c (x_frame_parms, visual_classes): Likewise.
23520
23521 2001-12-17 Sam Steingold <sds@gnu.org>
23522
23523 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
23524 patch (COMPOSING_P, not COMPOSING).
23525
23526 2001-12-17 Richard M. Stallman <rms@gnu.org>
23527
23528 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
23529
23530 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
23531 before calling decode_coding.
23532
23533 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
23534
23535 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
23536 instead of only for COMPOSITION_DISABLED.
23537
23538 2001-12-16 Richard M. Stallman <rms@gnu.org>
23539
23540 * alloc.c (pure_alloc): After overflow, allocate just a small block.
23541
23542 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
23543
23544 * buffer.h (struct buffer): New field `display_error_modiff'.
23545 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
23546
23547 * window.c (Frecenter): Clear display_error_modiff field.
23548
23549 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
23550 Call redisplay_window, but not if display_error_modiff field says no.
23551 (redisplay_window_error): New function.
23552 (displayed_buffer): New variable.
23553 (redisplay_internal, redisplay_windows): Call the new functions
23554 instead of redisplay_window directly.
23555
23556 2001-12-15 Richard M. Stallman <rms@gnu.org>
23557
23558 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
23559
23560 2001-12-14 Andrew Innes <andrewi@gnu.org>
23561
23562 * makefile.w32-in (EMACSLOADPATH): Define.
23563 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
23564 (bootstrap-temacs): Remove dependency on bootstrap-clean.
23565
23566 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
23567
23568 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
23569 parameter have a numeric value all the time.
23570
23571 * w32fns.c (x_report_frame_params): Likewise.
23572
23573 2001-12-12 Richard M. Stallman <rms@gnu.org>
23574
23575 * fileio.c (Fwrite_region): Doc fix.
23576
23577 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
23578 (redisplay_internal): Call clear_image_cache only for window terminals.
23579
23580 2001-12-12 Gerd Moellmann <gerd@gnu.org>
23581
23582 * xdisp.c (move_it_vertically_backward): Change heuristic
23583 for the case that we didn't move far enough initially.
23584
23585 * window.c (Frecenter): Simplify computation in the case of window
23586 system frames and ARG < 0; use window_box_height.
23587
23588 2001-12-11 Richard M. Stallman <rms@gnu.org>
23589
23590 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
23591 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
23592
23593 2001-12-11 Andrew Innes <andrewi@gnu.org>
23594
23595 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
23596 arg is negative.
23597
23598 2001-12-11 Richard M. Stallman <rms@gnu.org>
23599
23600 * m/hp800.h: Split the __hpux conditional into the parts
23601 that are right for GNU/Linux too and the parts that are not.
23602 Use the former if GNU_LINUX.
23603 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
23604
23605 * s/gnu-linux.h (GNU_LINUX): Defined.
23606
23607 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23608
23609 * macros.c, msdos.c, w16select.c: Change doc-string comments to
23610 `new style' [w/`doc:' keyword].
23611
23612 2001-12-10 Jason Rumney <jasonr@gnu.org>
23613
23614 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
23615 before using.
23616
23617 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23618
23619 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
23620 keyword].
23621
23622 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
23623
23624 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
23625
23626 * s/hpux10.h (srand48): Don't undefine.
23627
23628 2001-12-09 Jason Rumney <jasonr@gnu.org>
23629
23630 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
23631 Add comment to explain where the struct came from.
23632 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
23633 (add_menu_item): Process pop-up menus first to avoid memory leak.
23634 (add_menu_item, w32_menu_display_help): Use `help' field as
23635 Lisp_Object.
23636 (w32_free_submenu_strings): Only free owner-drawn strings.
23637
23638 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23639
23640 * COPYING: Moved back.
23641
23642 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
23643 Add parentheses around && within ||.
23644
23645 * indent.c (compute_motion): Likewise.
23646
23647 * intervals.c (merge_properties_sticky): Likewise.
23648
23649 * coding.c (setup_coding_system, shrink_encoding_region)
23650 (Fdecode_sjis_char): Likewise.
23651
23652 2001-12-07 Andreas Schwab <schwab@suse.de>
23653
23654 * xdisp.c (display_mode_element): Don't read past end of string if
23655 it ends with '%'.
23656
23657 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
23658 can hold.
23659
23660 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
23661 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
23662 type changed to Lisp_Object.
23663 (syms_of_data): DEFVAR_LISP them.
23664
23665 2001-12-07 Richard M. Stallman <rms@gnu.org>
23666
23667 * callproc.c (init_callproc): Set Vdata_directory based on the source
23668 location whenever Emacs was run uninstalled.
23669
23670 2001-12-06 Paul Eggert <eggert@twinsun.com>
23671
23672 * config.in (HAVE_WORKING_VFORK): New #undefs.
23673 * process.c (create_process):
23674 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
23675 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
23676 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
23677 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
23678 * m/intel386.h (HAVE_VFORK): Likewise.
23679 * m/mips-siemens.h (HAVE_VFORK): Likewise.
23680 * m/mips.h (HAVE_VFORK): Likewise.
23681 * s/freebsd.h (vfork): Remove #define.
23682 * s/lynxos.h (HAVE_VFORK): Remove #undef.
23683 * s/usg5-4-2.h: Fix comment about vfork.
23684
23685 2001-12-06 Richard M. Stallman <rms@gnu.org>
23686
23687 * s/hpux10.h (random): Add undef.
23688 (HAVE_RANDOM): Define it just once.
23689
23690 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
23691
23692 * eval.c: Undo last change: the standard syntax is not wanted.
23693
23694 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
23695
23696 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
23697 scroll bars of the frame before deleting the frame itself. If the
23698 frame has a widget, delete the frame with XtDestroyWidget, and do
23699 not call XDestroyWindow before that.
23700
23701 2001-12-06 Kim F. Storm <storm@cua.dk>
23702
23703 * xfns.c (x_report_frame_params): Return actual fringe widths.
23704
23705 * w32fns.c (x_report_frame_params): Return actual fringe widths.
23706
23707 2001-12-05 Andrew Innes <andrewi@gnu.org>
23708
23709 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
23710 excessively large.
23711
23712 * insdel.c (make_gap_larger): New function.
23713 (make_gap_smaller): New function.
23714 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
23715 Call make_gap_smaller if arg is negative.
23716
23717 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
23718
23719 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
23720 Pass a dummy argument when calling interrupt_signal.
23721 (parse_menu_item): Mark disabled items before checking for empty def.
23722 (read_char_minibuf_menu_prompt): Make safety more visible.
23723 (read_key_sequence): Add a `first_unbound' variable.
23724 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
23725 unbound prefix as soon as we can detect it.
23726
23727 * doc.c (Fsnarf_documentation): Add prototype.
23728 (get_doc_string): Handle negative arguments.
23729 (Fdocumentation): Use AREF and ASIZE.
23730 Move the calls to get_doc_string to a single place.
23731 Don't confuse an interactive-spec for a docstring reference.
23732 (Fdocumentation_property): Take advantage of the fact that
23733 get_doc_string now ignores the sign of the docstring position.
23734
23735 * eval.c: Use standard syntax for usage in docstrings.
23736
23737 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23738
23739 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
23740
23741 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23742
23743 * xterm.c (x_draw_image_relief): Use predefined macro instead of
23744 constant when the value of `tool_bar_button_relief' is negative.
23745
23746 2001-12-02 Richard M. Stallman <rms@gnu.org>
23747
23748 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
23749 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
23750
23751 * fileio.c (read_non_regular): Delete Fsignal call.
23752
23753 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
23754
23755 * lisp.h (run_hook_list_with_args): Undo last change.
23756
23757 2001-12-01 Gerd Moellmann <gerd@gnu.org>
23758
23759 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
23760
23761 2001-12-01 Jason Rumney <jasonr@gnu.org>
23762
23763 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
23764
23765 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
23766 [!WM_MOUSELEAVE]: Define.
23767
23768 * w32menu.c (current_popup_menu, get_menu_item_info):
23769 (set_menu_item_info): New vars.
23770 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
23771 (w32_menu_show): Set current_popup_menu.
23772 (add_menu_item): Allocate new strings for owner-drawn menu items
23773 and help strings.
23774 Use owner-draw for disabled menu items again.
23775 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
23776 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
23777
23778 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
23779 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
23780 <WM_EXITMENULOOP>: Free menu strings.
23781 <WM_MOUSELEAVE>: Stop tracking mouse.
23782 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
23783
23784 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
23785 and mouse face.
23786
23787 2001-12-01 Kim F. Storm <storm@cua.dk>
23788
23789 The following changes add left-fringe and right-fringe
23790 frame parameters to adjust fringe widths, or remove one or
23791 both fringes.
23792
23793 * frame.h (struct frame): Remove trunc_area_pixel_width and
23794 trunc_area_cols fields.
23795 (Qleft_fringe, Qright_fringe): Declare.
23796 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
23797
23798 * frame.c (Qleft_fringe, Qright_fringe): New vars.
23799 (syms_of_frame): Initialize them.
23800
23801 * window.c (coordinates_in_window): Handle separate left and right
23802 fringe widths.
23803
23804 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
23805 and fringe_cols fields.
23806 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
23807 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
23808 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
23809 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
23810 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
23811 (x_compute_fringe_widths): Add prototype.
23812
23813 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
23814 fill fringe evenly with small dashes.
23815 (x_draw_fringe_bitmap): Clear background if necessary. Align and
23816 clip the new ZV bitmap to avoid jitter between rows.
23817 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
23818 background. Don't draw fringe bitmaps if fringe width is zero.
23819 (x_compute_fringe_widths): New function.
23820 (x_new_font, x_set_window_size_1): Use it.
23821
23822 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
23823 (x_set_frame_parameters): Process `font' parameter before other
23824 parameters as fringe widths depend on it.
23825 (x_set_fringe_width): New function.
23826 (x_figure_window_size): Use x_compute_fringe_widths.
23827 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
23828 parameters.
23829
23830 * widget.c (set_frame_size): Use x_compute_fringe_widths.
23831 (EmacsFrameSetCharSize): Ditto.
23832
23833 * w32term.h: Merged changes from xterm.h.
23834 * w32term.c: Merged changes from xterm.c.
23835 * w32fns.c: Merged changes from xfns.c.
23836
23837 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23838
23839 * COPYING: Removed.
23840
23841 2001-11-29 Dave Love <fx@gnu.org>
23842
23843 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
23844 extra extra slot.
23845 (detect_coding_mask): Fix call of detect_coding_iso2022.
23846
23847 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23848
23849 * fileio.c (file-name-coding-system)
23850 (default-file-name-coding-system): Doc fix (links to referenced
23851 variables added).
23852
23853 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23854
23855 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
23856 Add dummy uses of gcproN variables.
23857
23858 * category.c (describe_category, describe_category_1)
23859 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
23860 (syms_of_category): Don't defsubr Sdescribe_categories.
23861
23862 2001-11-28 Richard M. Stallman <rms@gnu.org>
23863
23864 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
23865
23866 * Makefile.in (lispdir): New variable, referring to build dir.
23867 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
23868
23869 2001-11-28 Andrew Innes <andrewi@gnu.org>
23870
23871 * w32menu.c (w32_menu_display_help): Actually add the new argument
23872 OWNER.
23873
23874 2001-11-28 Jason Rumney <jasonr@gnu.org>
23875
23876 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
23877 menu items. From David Ponce <dponce@wanadoo.fr>.
23878 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
23879 conditionally.
23880 (w32_menu_display_help): New argument OWNER. Rewritten to store a
23881 help event in the owner frame's keyboard buffer.
23882
23883 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
23884 (Fx_show_tip): Don't subtract last width from row width.
23885
23886 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
23887 (w32_read_socket): Use EQ to compare frames.
23888
23889 2001-11-28 Gerd Moellmann <gerd@gnu.org>
23890
23891 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23892 OVERLAPS_P.
23893
23894 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23895
23896 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
23897 `gcpro3' and `gcpro4'.
23898
23899 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
23900
23901 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23902
23903 * ccl.c: Use AREF and ASIZE.
23904
23905 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
23906
23907 * lisp.h (run_hook_list_with_args): Remove.
23908 (LIST_END_P): Fix call to wrong_type_argument.
23909 (make_fixnum_or_float): Use EMACS_INT rather than int.
23910
23911 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
23912
23913 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
23914 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
23915
23916 * eval.c: Use AREF and ASIZE.
23917 (Ffetch_bytecode): Add the file name to the error message.
23918
23919 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23920 which match the end of the file-name.
23921 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
23922 is not a valid env var, but leave it as is instead.
23923
23924 * keymap.c (access_keymap): Handle t bindings like nil bindings.
23925 Make nil bindings in char-tables transparent.
23926 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
23927
23928 2001-11-26 Richard M. Stallman <rms@gnu.org>
23929
23930 * textprop.c (set_text_properties_1): Allow START, END in either order.
23931 Do nothing if range is empty.
23932
23933 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
23934
23935 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
23936 (clean): Not here.
23937
23938 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23939
23940 * textprop.c (set_text_properties_1): Clearly mark that the
23941 interval should not be empty.
23942
23943 * intervals.c (graft_intervals_into_buffer):
23944 Don't call set_text_properties_1 on an empty interval.
23945
23946 2001-11-25 Richard M. Stallman <rms@gnu.org>
23947
23948 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
23949
23950 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
23951 don't lose the data in it.
23952
23953 2001-11-25 Juanma Barranquero <lektu@terra.es>
23954
23955 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
23956
23957 * buffer.c (Fkill_buffer): Likewise.
23958
23959 * print.c (temp_output_buffer_setup): Likewise.
23960
23961 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23962
23963 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
23964
23965 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
23966
23967 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
23968 Niemitalo <kon@iki.fi>.
23969
23970 2001-11-25 Jason Rumney <jasonr@gnu.org>
23971
23972 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
23973
23974 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
23975 (Fx_show_tip): Block input during frame creation.
23976 (Fx_show_tip, Fx_hide_tip): Enable.
23977
23978 2001-11-24 Richard M. Stallman <rms@gnu.org>
23979
23980 * lread.c (Fload): Detect recursive load error for more than 3
23981 nestings of the same file.
23982 (Vrecursive_load_depth_limit): Variable deleted.
23983 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
23984
23985 2001-11-24 Jason Rumney <jasonr@gnu.org>
23986
23987 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
23988 mouse position if either left or top is not specified.
23989
23990 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
23991 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
23992 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
23993 (my_create_tip_window): Assign tip_window.
23994 (x_create_tip_frame): Use same defaults as X.
23995 (compute_tip_xy): Remove unused variable. Use full screen width.
23996 (Fx_show_tip): Do not double height. Call ShowWindow directly.
23997
23998 * w32term.c (x_after_update_window_line): Doc fix.
23999 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
24000 frames.
24001 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
24002
24003 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
24004 for all Windowed systems.
24005
24006 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
24007
24008 * msdos.c (IT_clear_screen): If the frame's faces are not yet
24009 realized, use the initial screen colors to clear the screen.
24010
24011 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24012
24013 * textprop.c (Fset_text_properties): Remove unused variables
24014 `unchanged', `prev_changed', `s' and `len'.
24015
24016 * search.c (Freplace_match): Remove unused variable `inslen'.
24017
24018 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
24019
24020 2001-11-22 Jason Rumney <jasonr@gnu.org>
24021
24022 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
24023 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
24024 (my_create_tip_window): New function.
24025 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
24026 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
24027
24028 2001-11-20 Jason Rumney <jasonr@gnu.org>
24029
24030 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
24031 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
24032
24033 * w32fns.c (Vw32_system_coding_system): Remove.
24034 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
24035
24036 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
24037
24038 * fileio.c (Fwrite_region): Move choose_write_coding_system to
24039 after build_annotations.
24040
24041 * syntax.c (describe_syntax): Add dummy arg.
24042 (describe_syntax_1): Update call to describe_vector.
24043
24044 * category.c (describe_category): Add dummy arg.
24045 (describe_category_1): Update call to describe_vector.
24046
24047 * keymap.c (Fdescribe_vector): Add `describer' parameter.
24048 (describe_command, describe_translation): Add dummy second param.
24049 (describe_map): Call elt_describer with two arguments.
24050 (describe_vector_princ): Add `fun' parameter.
24051 Call it instead of the hardcoded `princ'.
24052 (describe_vector): Add arg `args'.
24053 Pass it as a new second argument to elt_describer.
24054
24055 * keymap.h (describe_vector): Update prototype.
24056
24057 * frame.c: Don't include keymap.h any more.
24058 (keys_of_frame): Remove.
24059
24060 * lisp.h (keys_of_frame): Remove declaration.
24061
24062 * emacs.c (main): Don't call `keys_of_frame' any more.
24063
24064 2001-11-14 Andreas Schwab <schwab@suse.de>
24065
24066 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
24067 if defined, 0 otherwise.
24068 (MAP_FAILED): Define if not defined and use it to test mmap failure.
24069 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
24070
24071 2001-11-19 Richard M. Stallman <rms@gnu.org>
24072
24073 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
24074
24075 2001-11-18 Jason Rumney <jasonr@gnu.org>
24076
24077 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
24078 (x_draw_bar_cursor): If the background color of the glyph under
24079 the cursor equals the frame's cursor color, use the glyph's
24080 foreground color for drawing the bar cursor.
24081 (x_after_update_window_line): Clear internal border in different
24082 circumstances.
24083 (w32_set_vertical_scroll_bar): Check for width and height > 0.
24084 (w32_draw_relief_rect): Correct relief by 1 pixel.
24085 (x_set_glyph_string_background_width):
24086 Set extends_to_end_of_line_p if the row's fill_line_p is set and
24087 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
24088 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
24089 if cursor_in_non_selected_windows is false.
24090 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
24091 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
24092 Notice if cursor gets overwritten.
24093 (notice_overwritten_cursor): Renamed from
24094 note_overwritten_text_cursor. Rewritten to take glyph widths
24095 into account, and to take X positions as parameters.
24096 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24097 around call to x_draw_glyphs.
24098 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24099 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24100 color to use for image glyph reliefs.
24101 (x_draw_image_relief): Accept zero tool_bar_button_relief.
24102 (glyph_rect): Remove unused variable `area'.
24103
24104 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
24105 some items.
24106 (x_set_internal_border_width): Set frame garbaged when window
24107 doesn't exist yet.
24108 (Fx_create_frame): Accept zero tool_bar_button_relief.
24109 (x_clear_image_1, four_corners_best, image_background)
24110 (image_background_transparent): New functions.
24111 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24112 (gs_format): Add `:background' entry.
24113 (lookup_image): Set IMG's background color if specified.
24114 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24115 when appropriate.
24116 (x_clear_image_1): Reset `background_valid' and
24117 `background_transparent_valid' fields.
24118 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24119 calculating it here. Set IMG's background_transparent field.
24120 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24121 (enum png_keyword_index): Add PNG_BACKGROUND.
24122 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24123 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24124 (enum gif_keyword_index): Add GIF_BACKGROUND.
24125 (enum gs_keyword_index): Add GS_BACKGROUND.
24126 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24127 Pre-calculate image background color where necessary.
24128 (x_create_x_image_and_pixmap, xbm_load, gs_load):
24129 Use display info's n_cbits entry for screen depth.
24130 (Fx_show_tip): Remove unused variables `buffer', `top',
24131 `left', `max_width' and `max_height'.
24132
24133 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
24134
24135 2001-11-18 Gerd Moellmann <gerd@gnu.org>
24136
24137 * puresize.h (BASE_PURESIZE): Increase to 750000.
24138
24139 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24140
24141 * frame.c (Fframe_live_p): Doc fix.
24142
24143 2001-11-18 Richard M. Stallman <rms@gnu.org>
24144
24145 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
24146 (message_dolog_marker3): New static variables hold three markers.
24147 (syms_of_xdisp): Initialize and staticpro them.
24148 (message_dolog): Use message_dolog_marker1..3 instead of
24149 allocating markers each time. Unchain them when done.
24150
24151 2001-11-17 Richard M. Stallman <rms@gnu.org>
24152
24153 * doc.c (Fsnarf_documentation): Doc fix.
24154
24155 2001-11-17 Andreas Schwab <schwab@suse.de>
24156
24157 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
24158
24159 2001-11-17 Richard M. Stallman <rms@gnu.org>
24160
24161 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
24162
24163 2001-11-17 Jason Rumney <jasonr@gnu.org>
24164
24165 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
24166
24167 2001-11-17 Gerd Moellmann <gerd@gnu.org>
24168
24169 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
24170 with invalid position.
24171
24172 2001-11-16 Richard M. Stallman <rms@gnu.org>
24173
24174 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
24175
24176 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
24177 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
24178 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
24179
24180 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
24181
24182 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24183
24184 * fileio.c (build_annotations): Split off the tail.
24185 (build_annotations_2): New fun. Extracted from build_annotations.
24186 (Fwrite_region): Split the call to build_annotations into two
24187 calls to build_annotations and build_annotations_2.
24188
24189 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24190
24191 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
24192 clear_waiting_for_input with argument.
24193
24194 * xterm.h (x_update_cursor): Remove duplicated prototype.
24195
24196 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
24197
24198 * xterm.c (waiting_for_input): Remove unnecessary declaration.
24199
24200 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
24201
24202 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24203
24204 * fileio.c (choose_write_coding_system): New fun, extracted
24205 from Fwrite_region.
24206 (Fwrite_region): Use it.
24207
24208 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
24209 (funcall_lambda, run_hook_with_args): Make static and add prototype.
24210 (ml_apply, find_handler_clause): Add prototype.
24211
24212 2001-11-16 Eli Zaretskii <eliz@gnu.org>
24213
24214 * config.in: Add #undef HAVE_COFF_H.
24215
24216 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
24217 Required for ISC 4.1.
24218
24219 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
24220
24221 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
24222 Andrew Wiseman <a.wiseman@btclick.com>.
24223
24224 2001-11-16 Kim F. Storm <storm@cua.dk>
24225
24226 The following changes are made to clean up the various internal
24227 references to the fringes to actually use the term `fringe' for
24228 them. Previously, they were called `flags areas', `bitmap areas',
24229 `left/right side of windows', or implicitly as `flags' or
24230 `bitmaps':
24231
24232 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
24233 Comments fixed. Use renamed symbols.
24234
24235 * dispnew.c: Comment fix. Use renamed symbols.
24236
24237 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
24238 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
24239 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
24240
24241 * msdos.c: Comment fix.
24242
24243 * w32fns.c: Use renamed symbols.
24244
24245 * w32term.c: Comment fixes. Use renamed symbols.
24246 (fringe_bitmap_type): Renamed from bitmap_type.
24247 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24248 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
24249 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24250
24251 * w32term.h: Comment fixes. Use renamed symbols.
24252 (fringes_extra): Renamed from flags_areas_extra.
24253 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24254 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24255 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24256 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24257 (FRAME_X_LEFT_FRINGE_WIDTH):
24258 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24259 (FRAME_X_RIGHT_FRINGE_WIDTH):
24260 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24261
24262 * widget.c: Use renamed symbols.
24263
24264 * window.c: Comment fixes. Use renamed symbols.
24265 (coordinates-in-window-p): Doc fix.
24266
24267 * xdisp.c: Comment fixes. Use renamed symbols.
24268
24269 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
24270
24271 * xfns.c: Use renamed symbols.
24272
24273 * xterm.c: Comment fixes. Use renamed symbols.
24274 (fringe_bitmap_type): Renamed from bitmap_type.
24275 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24276 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
24277 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24278
24279 * xterm.h: Comment fixes. Use renamed symbols.
24280 (fringes_extra): Renamed from flags_areas_extra.
24281 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24282 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24283 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24284 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24285 (FRAME_X_LEFT_FRINGE_WIDTH):
24286 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24287 (FRAME_X_RIGHT_FRINGE_WIDTH):
24288 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24289
24290 2001-11-15 Jason Rumney <jasonr@gnu.org>
24291
24292 * w32menu.c (add-menu-item): Make help_echo and radio buttons
24293 work for most menu items. From David Ponce
24294 <david.ponce@wanadoo.fr>.
24295
24296 2001-11-15 Gerd Moellmann <gerd@gnu.org>
24297
24298 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
24299 Some x_set_* function expect to be called even if old and new
24300 value are equal.
24301
24302 * xdisp.c (build_desired_tool_bar_string): Accept zero
24303 tool_bar_button_relief.
24304
24305 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
24306
24307 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
24308
24309 * xterm.c (x_draw_bar_cursor): If the background color of the
24310 glyph under the cursor equals the frame's cursor color, use
24311 the glyph's foreground color for drawing the bar cursor.
24312
24313 * dispnew.c (direct_output_forward_char): Fix character/byte
24314 position comparison.
24315
24316 2001-11-15 Miles Bader <miles@gnu.org>
24317
24318 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
24319 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
24320 Update arguments to find_field.
24321 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
24322 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
24323 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
24324 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
24325
24326 2001-11-14 Richard M. Stallman <rms@gnu.org>
24327
24328 * editfns.c (Fpropertize): Allow call with 1 arg.
24329
24330 * dispextern.h (image_background, image_background_transparent):
24331 Conditionalize on HAVE_X_WINDOWS.
24332
24333 2001-11-13 Richard M. Stallman <rms@gnu.org>
24334
24335 * print.c (Fprin1_to_string): Doc fix.
24336
24337 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
24338
24339 * floatfns.c (Fceiling, Ffloor): Doc fixes.
24340
24341 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
24342
24343 * fileio.c (Ffile_accessible_directory_p): Doc fix.
24344
24345 * eval.c (syms_of_eval): Doc fix.
24346
24347 * coding.c (syms_of_coding): Doc fix.
24348
24349 * doc.c (Fsnarf_documentation): Doc fix.
24350
24351 * dispnew.c (syms_of_display): Doc fix.
24352
24353 * category.c (Fget_unused_category): Doc fix.
24354
24355 * buffer.c (syms_of_buffer): Doc fixes.
24356
24357 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
24358
24359 * print.c (prin1, print): Doc fix.
24360
24361 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24362
24363 * fontset.h: Remove declarations of variables
24364 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
24365
24366 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
24367 `Vclip_large_size_font'.
24368
24369 2001-11-13 Jason Rumney <jasonr@gnu.org>
24370
24371 * w32fns.c: Doc fix.
24372
24373 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24374
24375 * xfaces.c (Fface_attributes_as_vector): Doc fix.
24376
24377 * fns.c: Doc fix.
24378
24379 * emacs.c: Doc fix.
24380
24381 * coding.c: Doc fix.
24382
24383 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
24384 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
24385 `new style' [w/`doc:' keyword].
24386
24387 2001-11-12 Richard M. Stallman <rms@gnu.org>
24388
24389 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
24390 LeaveNotify events. Only FocusIn and FocusOut do that now.
24391 (x_display_and_set_cursor): Do display hollow cursors in active
24392 minibuffer windows when they are not selected.
24393
24394 2001-11-12 Jason Rumney <jasonr@gnu.org>
24395
24396 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24397 * w32term.c: Change doc-string comments to `new style'
24398 [w/`doc:' keyword]. Doc fixes.
24399
24400 * w32fns.c: Don't define max.
24401 (Fx_open_connection): Only execute once.
24402
24403 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24404
24405 * ccl.c: Change macros to use do-while block instead of if-else.
24406 Use braces to follow GNU Coding Standards.
24407
24408 2001-11-11 Richard M. Stallman <rms@gnu.org>
24409
24410 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
24411
24412 * lread.c (read_escape): Use end_of_file_error for reporting eof.
24413
24414 * insdel.c (replace_range): Use adjust_markers_for_replace
24415 instead of adjust_markers_for_delete and adjust_markers_for_insert.
24416
24417 * intervals.h (set_text_properties, set_text_properties_1): Declare.
24418
24419 * textprop.c (set_text_properties_1): New subroutine
24420 broken out of set_text_properties.
24421 (set_text_properties): Use set_text_properties_1.
24422
24423 * intervals.c (graft_intervals_into_buffer):
24424 Use set_text_properties_1 to clear out properties.
24425
24426 * search.c (Freplace_match): Use replace_range to insert
24427 and delete. Don't request property inheritance from
24428 surrounding text.
24429
24430 2001-11-10 Jason Rumney <jasonr@gnu.org>
24431
24432 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
24433 vertical fonts. Allow them if face name is explicitly specified.
24434 Do not give up if we find a font that cannot be converted to an xlfd.
24435
24436 2001-11-10 Gerd Moellmann <gerd@gnu.org>
24437
24438 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
24439 instead of malloc/free.
24440
24441 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24442
24443 * xfaces.c (merge_face_vectors): Use braces to follow GNU
24444 Coding Standards.
24445 (Finternal_set_lisp_face_attribute): Likewise.
24446
24447 * buffer.c (Fbury_buffer): Likewise.
24448
24449 * indent.c (current_column_1): Remove unused variable `prev_col'.
24450
24451 * coding.c (encode_coding): Use precomputed value of `src'.
24452 (encode_coding): Remove unused variable `src_end'.
24453 (code_convert_region): Remove unused variables `count'.
24454
24455 2001-11-07 Jason Rumney <jasonr@gnu.org>
24456
24457 * w32term.c (x_display_and_set_cursor): Do not move system caret
24458 if cursor_glyph is NULL.
24459
24460 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24461
24462 * keymap.c (access_keymap): Fix compilation error.
24463
24464 2001-11-07 Miles Bader <miles@gnu.org>
24465
24466 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
24467
24468 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24469
24470 * intervals.c (graft_intervals_into_buffer):
24471 Remove #ifdef'd-out code.
24472 (graft_intervals_into_buffer): Remove unused variable `middle'.
24473
24474 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
24475 code (eval-current-buffer).
24476 Change doc-string comments to `new style' [w/`doc:' keyword].
24477
24478 2001-11-06 Richard M. Stallman <rms@gnu.org>
24479
24480 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
24481
24482 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
24483
24484 * lread.c (read1): Fix behavior with nested backquoting.
24485
24486 * keyboard.c (make_lispy_event): Check integerness and fix
24487 Lisp_Object/int mixup.
24488
24489 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24490
24491 * fns.c (copy_hash_table): Remove unused variable `v'.
24492
24493 * fontset.c (fontset_font_pattern): Remove unused variable
24494 `family_registry'.
24495
24496 * indent.c (current_column_1): Remove unused variable `prev_col'.
24497
24498 2001-11-05 Richard M. Stallman <rms@gnu.org>
24499
24500 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
24501
24502 * buffer.c (Fkill_buffer): Don't delete auto save file
24503 if buffer is modified.
24504
24505 2001-11-05 Andrew Innes <andrewi@gnu.org>
24506
24507 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
24508 CHECK_NUMBER_CDR.
24509
24510 2001-11-05 Richard M. Stallman <rms@gnu.org>
24511
24512 * unexelf.c (unexec): Minor changes; clean up comments.
24513
24514 2001-11-05 Sam Steingold <sds@gnu.org>
24515
24516 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
24517
24518 2001-11-05 Andreas Schwab <schwab@suse.de>
24519
24520 * sound.c (sound_perror): Save errno from being clobbered.
24521
24522 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
24523
24524 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
24525 the program image directly.
24526
24527 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24528
24529 * buffer.h (Fbuffer_local_value): Add prototype.
24530
24531 2001-11-04 Richard M. Stallman <rms@gnu.org>
24532
24533 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
24534 and CHECK_BUFFER.
24535
24536 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
24537 (record_char): Likewise.
24538
24539 * keyboard.c (make_lispy_event): Don't insist a drag event must
24540 move to a different buffer position. Instead, check for moving at
24541 least double_click_fuzz.
24542
24543 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
24544
24545 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
24546
24547 * indent.c (current_column_1, Fmove_to_column): Separate the code
24548 for display-table glyphs from the code for buffer text, to fix
24549 bugs in the former.
24550
24551 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
24552
24553 * buffer.c (Fbuffer_local_value): New function.
24554 (syms_of_buffer): Defsubr it.
24555
24556 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
24557 value of `cursor-in-non-selected-windows'.
24558
24559 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
24560 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
24561 (syms_of_xdisp): Initialize it.
24562
24563 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24564
24565 * xfns.c (Fx_create_frame): Doc fix.
24566
24567 * coding.c: Change doc-string comments to `new style' [w/`doc:'
24568 keyword].
24569
24570 * eval.c (top_level_value, top_level_set): Remove commented and
24571 #ifdef'd-out code.
24572 (Fdefvar): Fix usage in doc-string.
24573
24574 2001-11-03 Richard M. Stallman <rms@gnu.org>
24575
24576 * xfns.c: Include unistd.h, if it exists.
24577
24578 * editfns.c: Move the include of ctype.h after unistd.h.
24579
24580 * gmalloc.c: Test BROKEN_PROTOTYPES.
24581
24582 2001-11-03 Ken Raeburn <raeburn@gnu.org>
24583
24584 * lisp.h (CHECK_STRING_CAR): New macro.
24585 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
24586 treating XCAR and XCDR as lvalues.
24587 (openp): Use CHECK_STRING_CAR.
24588 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
24589
24590 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
24591
24592 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
24593 (SIGMASKTYPE): Define.
24594
24595 * syssignal.h (sigunblock): Don't define if already defined.
24596
24597 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24598
24599 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
24600 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
24601 Fix typos in comments.
24602
24603 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
24604 and #ifdef'd-out code.
24605 Fix and reindent comments.
24606
24607 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
24608
24609 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
24610 argument `i' in macros.
24611
24612 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
24613 `i' in macros.
24614
24615 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
24616 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
24617 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
24618 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
24619 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
24620 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
24621 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
24622 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
24623 in macros.
24624
24625 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
24626 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
24627 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
24628 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
24629 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
24630 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
24631 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
24632 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
24633 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
24634 (remove unused second argument).
24635
24636 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
24637
24638 * syntax.c (describe_syntax): New wrapper.
24639 (Finternal_describe_syntax_value): Rename from describe_syntax.
24640 Don't insert space at front and \n at the end.
24641 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
24642
24643 * regex.c (re_wctype): Try to fix some warnings.
24644 (regcomp, regexec): Don't forget the __restrict.
24645
24646 2001-11-02 Richard M. Stallman <rms@gnu.org>
24647
24648 * textprop.c (Fget_char_property): Doc fix.
24649
24650 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24651
24652 * process.c (Fstart_process): Add usage to doc-string.
24653
24654 * data.c (Fsetq_default): Ditto.
24655
24656 * callint.c (Finteractive): Ditto.
24657
24658 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
24659
24660 * macros.c: Don't include keymap.h any more.
24661
24662 2001-11-01 Richard M. Stallman <rms@gnu.org>
24663
24664 * data.c (Fmake_local_variable): Doc fix.
24665
24666 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
24667 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
24668
24669 * keymap.c (Fdescribe_buffer_bindings): Print character property
24670 bindings along with or instead of the buffer local map.
24671 Make the overriding maps override what they should.
24672
24673 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24674
24675 * window.c (grow_mini_window): Fix typo in comment.
24676
24677 2001-11-01 Gerd Moellmann <gerd@gnu.org>
24678
24679 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
24680 (XTset_vertical_scroll_bar): Likewise.
24681
24682 * xfns.c (x_build_heuristic_mask): Use four_corners_best
24683 instead of IMAGE_BACKGROUND.
24684
24685 * xfns.c (four_corners_best): Reindent.
24686
24687 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
24688 Handle :box so that it is possible to specify sexprs.
24689
24690 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
24691
24692 * s/hpux11.h: New file.
24693
24694 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24695
24696 * emacs.c (USAGE1): Show command line option --no-window-system
24697 instead of --no-windows in usage.
24698 (standard_args): Rename --no-windows to --no-window-system.
24699 (bug_reporting_address): Follow Emacs coding conventions.
24700
24701 * eval.c (Fcommandp): Doc fix.
24702 Change doc-string comments to `new style' [w/`doc:' keyword].
24703
24704 * frame.c (Fframe_live_p): Doc fix.
24705
24706 * buffer.c (selective-display-ellipses): Doc fix.
24707
24708 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24709
24710 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
24711
24712 * xfaces.c (realize_x_face): If C is not a single-byte character,
24713 set the face's colors_copied_bitwise_p instead of the defaulted_p
24714 members which have a different meaning.
24715 (free_face_colors): Do nothing for a face whose colors have been
24716 copied bitwise.
24717
24718 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
24719
24720 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24721
24722 * marker.c, mocklisp.c: Change doc-string comments to `new style'
24723 [w/`doc:' keyword].
24724
24725 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24726
24727 * fns.c (require_unwind): Return Lisp_Object.
24728
24729 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24730
24731 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
24732 (last-input-char): Revert doc-string to be the same as the
24733 doc-string of `last-input-event'.
24734
24735 * xdisp.c: Fix typos in comments.
24736
24737 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24738
24739 * window.c (grow_mini_window): Handle case that the root
24740 window is already smaller than the nominal mininum height.
24741
24742 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
24743
24744 * emacs.c (main): Don't call keys_of_macros any more.
24745
24746 * lisp.h (keys_of_macros): Remove.
24747
24748 * macros.c (keys_of_macros): Remove.
24749
24750 * xfaces.c (Fface_attribute_relative_p): Declare args.
24751
24752 2001-10-30 Jason Rumney <jasonr@gnu.org>
24753
24754 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
24755 (enum_font_cb2): Ignore fonts with vertical orientation.
24756
24757 2001-10-30 Richard M. Stallman <rms@gnu.org>
24758
24759 * keyboard.c (Finput_pending_p): Doc fix.
24760
24761 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24762
24763 * xterm.c (x_after_update_window_line): Don't run the code
24764 clearing in borders for rows whose visible height is 0.
24765
24766 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
24767 resized_p flag is set. If not set, use the much less flickering
24768 method previously used.
24769
24770 * dispnew.c (change_frame_size_1): Set frame's resized_p.
24771
24772 * frame.h (struct frame) <resized_p>: New member.
24773
24774 * lread.c (to_multibyte): Ensure read_buffer is at least twice
24775 as large as the number of bytes to convert.
24776
24777 * lread.c (to_multibyte): New function.
24778 (read1): Use it.
24779
24780 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
24781
24782 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
24783
24784 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24785
24786 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
24787 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
24788 if the row's fill_line_p is set and drawing the last glyph with
24789 DRAW_IMAGE_{RAISED,SUNKEN}.
24790
24791 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
24792
24793 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
24794
24795 * xmenu.c: Include coding.h and charset.h.
24796 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
24797 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
24798 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
24799 Explicitly set wv->help. Use `TRUE' rather than `True'.
24800 (menu_help_callback): Use empty_string.
24801
24802 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
24803 (Fx_popup_dialog): Explicitly init f.
24804 (w32_menu_display_help): Use empty_string.
24805
24806 2001-10-29 Richard M. Stallman <rms@gnu.org>
24807
24808 * fns.c (Frequire): Detect recursive try to require the same
24809 feature 3 or more levels deep, and get error.
24810 (require_unwind): New subroutine.
24811 (require_nesting_list): New variable.
24812 (syms_of_fns): Init and staticpro it.
24813
24814 * print.c (print_object): Clarify indication of insertion type.
24815
24816 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
24817
24818 * coding.c (syms_of_coding): Document that locale-coding-system is
24819 used for decoding input on X.
24820
24821 * window.c (Fscroll_left, Fscroll_right): Doc fix.
24822
24823 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24824
24825 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
24826 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
24827
24828 2001-10-29 Gerd Moellmann <gerd@gnu.org>
24829
24830 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
24831 use NO_CURSOR if cursor_in_non_selected_windows is false.
24832
24833 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
24834 the slant attribute if FRAME is t.
24835
24836 * xfns.c (x_set_internal_border_width): Set frame garbaged
24837 when X window doesn't exist yet.
24838
24839 * xterm.c (x_after_update_window_line): Clear internal border
24840 in different circumstances.
24841
24842 * xterm.c (XTread_socket) <KeyPress>: Don't use
24843 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
24844 <handa@etl.go.jp>.
24845
24846 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
24847
24848 * m/ibms390.h: New file. From Adam Thornton
24849 <athornton@sinenomine.net>.
24850
24851 2001-10-28 Gerd Moellmann <gerd@gnu.org>
24852
24853 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
24854
24855 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
24856 a loop counter.
24857
24858 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24859
24860 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
24861
24862 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
24863 keyword].
24864 Fix typos in comments.
24865
24866 * emacs.c (bug_reporting_address): New function.
24867 Use it when displaying usage message.
24868
24869 * minibuf.c (read_minibuf): Remove unused external declaration of
24870 variable `Qread_only'.
24871
24872 * keymap.c (access_keymap): Remove unused variable `charset'.
24873
24874 2001-10-28 Miles Bader <miles@gnu.org>
24875
24876 * xfaces.c (merge_face_heights): Handle TO being relative as well.
24877 Remove #ifdef'd-out code.
24878 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
24879 (syms_of_xfaces): Initialize them.
24880
24881 2001-10-27 Jason Rumney <jasonr@gnu.org>
24882
24883 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
24884 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
24885 position using the system caret.
24886
24887 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
24888 (w32_system_caret_height, w32_system_caret_x)
24889 (w32_system_caret_y): New variables for tracking system caret.
24890 (w32_initialize): Initialize them.
24891 (x_display_and_set_cursor): Make system caret follow the active cursor.
24892
24893 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
24894 New messages types.
24895
24896 * w32term.c (note_mouse_highlight): Clear old help_echo.
24897
24898 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24899
24900 * xterm.c: Fix typo in a comment.
24901
24902 * emacs.c: Fix typos in comments.
24903 Remove unnecessary spaces.
24904 Change doc-string comments to `new style' [w/`doc:' keyword].
24905 (USAGE2): Fix typos in usage string.
24906
24907 * xterm.c: Fix typo in a comment.
24908
24909 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
24910 emacs.c.
24911
24912 2001-10-27 Gerd Moellmann <gerd@gnu.org>
24913
24914 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
24915 instead of 1/2 line_height in the heuristic for skipping
24916 farther backward when target_y was not reached.
24917
24918 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
24919 Display errno only if non-zero.
24920 (sound_warning): New function.
24921 (vox_configure): Don't treat failing to set sample rate as error.
24922 (various places): Improve error messages.
24923
24924 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
24925
24926 * fileio.c (Faccess_file): Run the argument filename through
24927 Fexpand_file_name, before using it.
24928
24929 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
24930 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
24931
24932 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24933
24934 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
24935
24936 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24937 Fix clearing in the case of scroll bars on the right.
24938
24939 2001-10-26 Juanma Barranquero <lektu@terra.es>
24940
24941 * w32gui.h (XImage): Add a dummy typedef.
24942
24943 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24944
24945 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
24946
24947 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
24948
24949 * frame.c (Fframe_parameter): Fix last change.
24950
24951 * fileio.c: Revert last change (which removed old commented-out
24952 version of expand-file-name). Add a comment that explains why
24953 this old version should not be removed.
24954
24955 2001-10-25 Gerd Moellmann <gerd@gnu.org>
24956
24957 * frame.c (Fframe_parameter): Fix a bug whereby some
24958 ``artificial'' frame parameters, like `minibuffer' were not
24959 obtained by calling Fframe_parameters.
24960
24961 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
24962 cursor differently.
24963
24964 * xdisp.c (move_it_vertically_backward): Compute line height
24965 differently. Add heuristic to try to be more compatible to 20.x.
24966
24967 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
24968
24969 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
24970
24971 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
24972 boolean.
24973
24974 2001-10-25 Miles Bader <miles@gnu.org>
24975
24976 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
24977 BG is a pointer to a structure, not a structure.
24978 (gif_format, png_format): Add missing commas.
24979
24980 2001-10-24 Richard M. Stallman <rms@gnu.org>
24981
24982 * xfaces.c (Fface_attributes_as_vector): New function.
24983 (syms_of_xfaces): Defsubr it.
24984
24985 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24986
24987 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
24988 variable `area'.
24989
24990 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24991
24992 * search.c (scan_newline): Remove unused variable `selective_display'.
24993
24994 2001-10-25 Miles Bader <miles@gnu.org>
24995
24996 * dispextern.h (struct image): Add `background',
24997 `background_valid', and `background_transparent' fields.
24998 (image_background, image_background_transparent): New declarations.
24999 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
25000 * xfns.c (image_background, image_background_transparent)
25001 (four_corners_best): New functions.
25002 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25003 (gs_format): Add `:background' entry.
25004 (lookup_image): Set IMG's background color if specified.
25005 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25006 when appropriate.
25007 (x_clear_image_1): Reset `background_valid' and
25008 `background_transparent_valid' fields.
25009 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25010 calculating it here. Set IMG's background_transparent field.
25011 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25012 (enum png_keyword_index): Add PNG_BACKGROUND.
25013 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25014 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25015 (enum gif_keyword_index): Add GIF_BACKGROUND.
25016 (enum gs_keyword_index): Add GS_BACKGROUND.
25017 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25018 Pre-calculate image background color where necessary.
25019 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25020 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25021 color to use for image glyph reliefs.
25022
25023 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25024
25025 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
25026 in full-width rows.
25027
25028 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25029 Fix clearing of area not covered by scroll bar.
25030
25031 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25032
25033 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
25034 and `real_start'.
25035 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
25036 (glyph_rect): Remove unused variable `area'.
25037
25038 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25039
25040 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
25041
25042 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
25043 (row_containing_pos): Take additional argument DY.
25044 Treat rows ending in middle of char differently.
25045 (display_line): Handle tabs on window systems differently.
25046
25047 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
25048 with additional argument.
25049
25050 * dispextern.h (row_containing_pos): Adjust prototype.
25051
25052 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
25053 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
25054 (try_window_id, try_window_reusing_current_matrix)
25055 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
25056 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
25057
25058 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25059
25060 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
25061 gnuemacs).
25062 (HAVE_BOXES): Fix typo in comment.
25063 (push_menu_pane): Fix typo in comment.
25064
25065 * xdisp.c (display_prop_string_p): Remove unused local declaration
25066 of `Qwhen'.
25067 (single_display_prop_string_p): Remove unused local declarations
25068 of `Qwhen' and `Qmargin'.
25069 (string_buffer_position): Remove unused variable `around'.
25070 (store_frame_title): Remove unused variable `width'.
25071
25072 * window.c: Don't define max.
25073 (coordinates_in_window): Remove unused variable `uy'.
25074
25075 * widget.c: Don't define max.
25076
25077 * process.c: Don't define max.
25078 (create_process): Remove unused variable `buffer'.
25079
25080 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25081
25082 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
25083
25084 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
25085
25086 * xfaces.c (Finternal_set_lisp_face_attribute)
25087 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
25088 frame is on a windowed display.
25089
25090 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25091
25092 * dispnew.c (sync_window_with_frame_matrix_rows):
25093 Fix handling of windows which aren't full-width, fix handling
25094 of marginal areas.
25095
25096 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
25097
25098 2001-10-23 Andreas Schwab <schwab@suse.de>
25099
25100 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
25101 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
25102
25103 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25104
25105 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
25106 REAL_END. Notice if cursor gets overwritten.
25107 (notice_overwritten_cursor): Take X positions as parameters.
25108 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25109 around call to x_draw_glyphs.
25110
25111 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25112
25113 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
25114 instead of C) and usage.
25115
25116 * editfns.c (char-to-string): Fix argument names (use CHAR instead
25117 of C) and usage.
25118
25119 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
25120 `left', `max_width' and `max_height'.
25121
25122 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25123
25124 * xdisp.c (display_line): For a tab continued to the next line,
25125 set row's ends_in_middle_of_char_p.
25126
25127 2001-10-22 Gerd Moellmann <gerd@gnu.org>
25128
25129 * xdisp.c (display_line): Fix computation of continuation lines
25130 width for TABs.
25131
25132 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25133
25134 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
25135 `Qlaplace'.
25136
25137 * fileio.c: Remove unused code.
25138
25139 2001-10-22 Miles Bader <miles@gnu.org>
25140
25141 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
25142 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
25143 Remove `DOC_STRINGS_IN_COMMENTS' cases.
25144
25145 2001-10-21 Jason Rumney <jasonr@gnu.org>
25146
25147 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
25148
25149 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
25150
25151 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
25152 (Finsert_string): Avoid the multi-line string literals warning.
25153
25154 2001-10-22 Miles Bader <miles@gnu.org>
25155
25156 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
25157 (Fdocumentation): Don't use it.
25158 (syms_of_doc): Don't initialize it.
25159
25160 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
25161 * print.c (Fwith_output_to_temp_buffer): Likewise.
25162 * window.c (Fsave_window_excursion): Likewise.
25163 * editfns.c (Fsave_excursion, Fsave_current_buffer)
25164 (Fsave_restriction): Likewise.
25165 * eval.c (Frun_hooks, Frun_hook_with_args)
25166 (Frun_hook_with_args_until_failure)
25167 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
25168 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
25169 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
25170 (Funwind_protect, Fcondition_case): Likewise.
25171 * coding.c (Ffind_operation_coding_system): Likewise.
25172 * keyboard.c (Ftrack_mouse): Likewise.
25173
25174 2001-10-21 Miles Bader <miles@gnu.org>
25175
25176 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
25177 (Fmake_hash_table): Add usage: string to doc string.
25178 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
25179 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
25180 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
25181 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
25182 (Fml_prefix_argument_loop): Likewise.
25183
25184 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25185
25186 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
25187
25188 * sysdep.c (init_sys_modes): Change doc-string comments to `new
25189 style' [w/`doc:' keyword].
25190
25191 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
25192 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
25193 comments to `new style' [w/`doc:' keyword].
25194
25195 2001-10-21 Jason Rumney <jasonr@gnu.org>
25196
25197 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
25198
25199 * w32term.c (remember_mouse_glyph): New function.
25200 (w32_mouse_position): Use it.
25201 (note_mouse_movement): If the mouse moved off the glyph, remember
25202 its new position.
25203
25204 * w32term.h (struct w32_output): Correct spelling of x_compatible.
25205 (w32_display_info): Add mouse_face_overlay.
25206
25207 * w32term.c (notice_overwritten_cursor): Renamed from
25208 note_overwritten_text_cursor. Rewritten to take glyph widths into
25209 account.
25210 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
25211 (fast_find_string_pos): New function.
25212 (fast_find_position): Return the correct vpos. Add parameter
25213 STOP. In the final row, stop before glyphs having STOP as object.
25214 Don't consider glyphs that are not from a buffer.
25215 (fast_find_position) [0]: Add a presumably more correct version
25216 for after 21.1.
25217 (expose_window_tree, expose_frame): Don't compute intersections here.
25218 (expose_window): Do it here instead.
25219 (expose_window_tree, expose_window, expose_line): Return 1 when
25220 overwriting mouse-face.
25221 (expose_window): If W is the window currently being updated, mark
25222 the frame garbaged.
25223 (expose_frame): If mouse-face was overwritten, redo it.
25224 (x_use_underline_position_properties): New variable.
25225 (syms_of_xterm): DEFVAR_BOOL it.
25226 (x_draw_glyph_string): Add comment to use it in future.
25227 (x_draw_glyph_string): Restore clipping after drawing box.
25228 Fix a computation of the underline position.
25229 (w32_get_glyph_string_clip_rect): Minor cleanup.
25230 (x_fill_stretch_glyph_string): Remove an assertion.
25231 (x_produce_glyphs): Don't convert multibyte characters
25232 to unibyte characters in unibyte buffers.
25233 (cursor_in_mouse_face_p): New function.
25234 (x_draw_stretch_glyph_string): Use it to choose a different GC
25235 when drawing a cursor within highlighted text. Don't draw
25236 background again if it has already been drawn.
25237 (x_draw_glyph_string_box): Don't draw a full-width
25238 box just because the glyph row's full_width_p flag is set.
25239 (x_draw_glyphs): Fix computation of rightmost x for
25240 full-width rows.
25241 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
25242 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
25243 change bottom shadow accordingly. Some cleanup.
25244 (x_update_window_end): Handle overwritten mouse face
25245 also for tool bar windows.
25246 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
25247 DRAW is DRAW_IMAGE_RAISED.
25248 (clear_mouse_face): Return 1 if text with mouse face was
25249 actually redrawn. Make the function static.
25250 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
25251 optimize away highlighting if we pass over that same overlay again.
25252 (note_mouse_highlight): Call mouse_face_overlay_overlaps
25253 to detect a case where we have to highlight a different region
25254 despite not having left the currently highlighted region.
25255 Set mouse_face_overlay in the x_display_info. Avoid changing the
25256 mouse pointer shape when show_mouse_face has already done it, or
25257 there is no need. Handle mouse-face and help-echo in strings.
25258 (glyph_rect): New function.
25259 (w32_mouse_position): Use it to raise the threshold for mouse
25260 movement event generation.
25261 (w32_initialize_display_info): Initialize the x_display_info's
25262 mouse_face_overlay.
25263 (w32_set_vertical_scroll_bar): Don't clear a zero height
25264 or width area.
25265 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
25266 a widget to zero height.
25267
25268 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
25269 Protect unibyte strings created by replacing their multibyte
25270 equivalents in menu_items.
25271 (w32_menu_show): Don't overwrite an item's name with its key
25272 description in case the description is a multibyte string.
25273 (single_submenu): Some cleanup.
25274
25275 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
25276 (postprocess_image): New function.
25277 (lookup_image): Call it for all image types except PostScript.
25278 (x_kill_gs_process): Call postprocess_image.
25279 (tiff_error_handler, tiff_warning_handler): New functions.
25280 (tiff_load): Install them as handlers.
25281 (x_kill_gs_process): Recognize if someone has cleared the image
25282 cache under us.
25283 (valid_image_p): Protect better against invalid image
25284 specifications. Previous code could signal an error.
25285 (Fx_hide_tip, Fshow_tip): Doc fix.
25286 (Fv_max_tooltip_size): New variable.
25287 (syns_of_xfns): DEFVAR_LISP it.
25288 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
25289 window buffer to *tip* right after creating the frame. Set frame's
25290 window_width. Use a maximum tooltip size specified by
25291 Vx_max_tooltip_size, if that has valid contents.
25292 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
25293 Make sure the tooltip is completely visible.
25294 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
25295 (Fx_create_frame): Adjust the frame's height for presence
25296 of the tool bar before calling x_figure_window_size.
25297 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
25298 when the window gets smaller.
25299 (x_set_foreground_color): Set frame's cursor_pixel.
25300 (x_set_foreground_color, x_set_background_color): Cleaned up.
25301 (x_set_font): Handle case of x_new_fontset returning the same name
25302 as before, although there was a change in fontsets.
25303
25304 2001-10-21 Miles Bader <miles@gnu.org>
25305
25306 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
25307 (Flogxor): Add usage: string to doc string.
25308 * charset.c (Fstring): Likewise.
25309 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
25310 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
25311
25312 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25313
25314 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
25315
25316 * alloc.c: Reindent DEFUNs with doc: keywords.
25317
25318 * abbrev.c (Finsert_abbrev_table_description): Reindent.
25319
25320 * frame.c: Change doc-string comments to `new style' [w/`doc:'
25321 keyword].
25322
25323 See ChangeLog.9 for earlier changes.
25324
25325 ;; Local Variables:
25326 ;; coding: iso-2022-7bit
25327 ;; End:
25328
25329 Copyright (C) 2001, 2002, 2003, 2004, 2005,
25330 2006 Free Software Foundation, Inc.
25331 Copying and distribution of this file, with or without modification,
25332 are permitted provided the copyright notice and this notice are preserved.
25333
25334 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4