]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
[gnu-emacs] / src / ChangeLog
1 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
4 (Fkill_all_local_variables): Use it.
5 (syms_of_buffer): Defvar it.
6
7 2006-08-05 Eli Zaretskii <eliz@gnu.org>
8
9 * w32.c (w32_valid_pointer_p): New function.
10
11 * w32.h: Add prototype for w32_valid_pointer_p.
12
13 * alloc.c: Include w32.h.
14 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
15 the job.
16
17 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
18 is exactly equal to end_time, not only when it is past that.
19
20 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
21
22 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
23
24 * process.c: Reapply 2006-08-01 change.
25
26 2006-08-04 Eli Zaretskii <eliz@gnu.org>
27
28 * w32fns.c (w32_query_font): Fix last change: use stricmp.
29
30 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
31
32 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
33 the before-change-functions since they may have altered the buffer.
34
35 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
36
37 * w32fns.c (w32_createwindow): Handle -geometry command line option
38 and the geometry settings in the Registry.
39
40 2006-08-04 Kenichi Handa <handa@m17n.org>
41
42 * w32fns.c (w32_query_font): Compare names by ignoring case.
43
44 * xterm.c (x_query_font): Compare names by ignoring case.
45
46 2006-08-03 Jason Rumney <jasonr@gnu.org>
47
48 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
49 when no option selected.
50
51 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
52
53 * process.c: Revert last change.
54
55 2006-08-01 Kim F. Storm <storm@cua.dk>
56
57 * process.c (wait_reading_process_output_unwind): New function.
58 Restores waiting_for_user_input_p to saved value.
59 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
60 instead of save/restore old value on stack.
61
62 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
63
64 * editfns.c: Undo 2006-06-27 change.
65
66 2006-07-29 Eli Zaretskii <eliz@gnu.org>
67
68 * coding.c (Ffind_operation_coding_system): Revert the change from
69 2006-05-29.
70
71 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
72
73 2006-07-28 Richard Stallman <rms@gnu.org>
74
75 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
76 Add conditional aborts for clarity.
77
78 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
79 Used to avoid running the hooks over and over for each frame.
80 (prepare_menu_bars): Pass value from update_menu_bar
81 as HOOKS_RUN of next call.
82
83 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
84
85 2006-07-28 Kim F. Storm <storm@cua.dk>
86
87 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
88 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
89
90 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
91
92 * keyboard.c (read_char): New arg END_TIME specifying timeout.
93 All callers changed. Turn off echoing if END_TIME is non-NULL.
94 (kbd_buffer_get_event): New arg END_TIME.
95
96 * lread.c (read_filtered_event): New arg SECONDS to wait until.
97 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
98
99 * lisp.h: Update read-char, read-event, and read_filtered_event
100 prototypes.
101
102 * keyboard.h: Include systime.h. Update read_char prototype.
103
104 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
105
106 * alloc.c (find_string_data_in_pure): New function.
107 (make_pure_string): Use it to reuse existing string data if possible.
108
109 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
110
111 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
112
113 * keymap.c (Fdefine_key): If the key binding definition looks like an
114 XEmacs-style key sequence, convert it to Emacs's format.
115
116 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
117
118 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
119 parameters are bound to some values, use that instead of
120 CW_USEDEFAULT.
121
122 2006-07-21 Eli Zaretskii <eliz@gnu.org>
123
124 * w32.c (convert_time): Use explicit long double constants to
125 ensure long double arithmetics is used throughout.
126
127 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
128
129 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
130 (init_alloc_once): Initialize them.
131 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
132 without alignment.
133
134 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
135
136 2006-07-18 Francis Litterio <franl@world.std.com>
137
138 * w32term.c (x_calc_absolute_position): Fix frame positioning
139 with negative X/Y coordinates.
140
141 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
142
143 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
144
145 * textprop.c (text_read_only): Likewise.
146
147 * lread.c (end_of_file_error): Likewise.
148
149 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
150 Likewise.
151
152 * eval.c (unwind_to_catch): Likewise.
153
154 * buffer.h (buffer_slot_type_mismatch): Likewise.
155
156 2006-07-18 Kim F. Storm <storm@cua.dk>
157
158 Cleanup Fsignal calls that never returns; now only use it for Qquit.
159
160 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
161 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
162 (signal_error): New no-return function (from xfaces.c).
163 (Fthrow): Use xsignal2 instead of Fsignal + abort.
164 (error): Use xsignal1 instead of Fsignal + abort.
165 (FletX, Flet, grow_specpdl): Use signal_error.
166 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
167
168 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
169 (list1): New function.
170
171 * lisp.h (list1): Add EXFUN.
172 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
173 Add prototypes. Mark them as no-return.
174
175 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
176 Use xsignal1.
177
178 * callint.c (check_mark): Use xsignal0.
179
180 * casefiddle.c (casify_object): wrong_type_argument is no-return.
181
182 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
183
184 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
185 (Fdefine_coding_system_internal): Use xsignal1.
186
187 * data.c (circular_list_error): Use xsignal.
188 (wrong_type_argument): Use xsignal2. Don't care about return value.
189 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
190 Remove loop around Fsignal.
191 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
192 (indirect_function, Findirect_function, Fstring_to_number)
193 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
194 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
195 Use xsignal0.
196
197 * doc.c (Fdocumentation): Use xsignal1.
198
199 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
200
201 * fileio.c (report_file_error): Use xsignal.
202 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
203 (Finsert_file_contents): Use xsignal2.
204 (syms_of_fileio): Use list2, list3.
205
206 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
207 (range_error2, domain_error2): Use xsignal3.
208 (rounding_driver, fmod_float): Use xsignal0.
209 (float_error): Use xsignal1.
210 (matherr): Use xsignal.
211
212 * fns.c (Flength): wrong_type_argument is no-return.
213 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
214 (Fmd5): Use xsignal1.
215
216 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
217
218 * keyboard.c (recursive_edit_1): Use xsignal1.
219
220 * keymap.c (Fmap_keymap): Use xsignal1.
221
222 * lread.c (Fload): Use xsignal2, signal_error.
223 (end_of_file_error): Use xsignal0, xsignal1.
224 (read0): Use xsignal1.
225 (invalid_syntax): New error function marked no-return.
226 (read_integer, read1, read_list): Use it.
227
228 * macselect.c (x_get_local_selection): Use signal_error.
229
230 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
231
232 * search.c (compile_pattern_1): Use xsignal1.
233 (signal_failure): Remove (was only called once).
234 (search_command): Use xsignal1 instead of signal_failure.
235
236 * syntax.c (scan_lists): Use xsignal3.
237
238 * textprop.c (text_read_only): Use xsignal0, xsignal1.
239
240 * unexsol.c (unexec): Use xsignal.
241
242 * window.c (window_scroll_pixel_based, window_scroll_line_based):
243 Use xsignal0.
244
245 * xfaces.c (signal_error): Move to eval.c.
246 (resolve_face_name): Use xsignal1.
247
248 * xfns.c (x_decode_color): Use signal_error.
249
250 * xselect.c (x_get_local_selection, copy_multiple_data)
251 (x_get_window_property_as_lisp_data)
252 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
253 (Fx_get_cut_buffer_internal): Use signal_error.
254
255 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
256
257 * macterm.c (XTread_socket): Undo previous change.
258
259 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
260
261 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
262 directly lookup keycode_to_xkeysym_table.
263 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
264 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
265 (XTread_socket): Use character codes to construct keypad key events.
266 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
267 (x_delete_display): Apply 2006-07-04 change for xterm.c.
268
269 2006-07-17 Richard Stallman <rms@gnu.org>
270
271 * keyboard.c (Vcommand_error_function): New variable.
272 (syms_of_keyboard): Defvar it.
273 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
274
275 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
276
277 2006-07-17 Kim F. Storm <storm@cua.dk>
278
279 * xdisp.c (handle_single_display_spec): Ensure the right value of
280 it->position is saved by push_it.
281 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
282 (reseat_1): Don't setup it->object twice.
283 (set_iterator_to_next): No need to set it->object after pop_it.
284 (move_it_to): Explicitly check to see if last move reached to_charpos.
285
286 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
287
288 * xdisp.c (display_mode_line): Preserve match data.
289
290 2006-07-14 Kim F. Storm <storm@cua.dk>
291
292 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
293 (init_winsock): Load them. Use ws2_32.dll.
294 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
295 (sys_accept): Undo last change. Instead, set child status to
296 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
297 sys_select will wakeup the reader thread.
298 (_sys_wait_accept): New function used by reader thread to wait for
299 an incoming connection on a server socket.
300
301 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
302
303 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
304 server socket (FILE_LISTEN flag).
305
306 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
307
308 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
309
310 2006-07-14 Kim F. Storm <storm@cua.dk>
311
312 * w32.c: Fix high cpu load for server sockets.
313 (pfn_WSAEventSelect): New function ptr.
314 (init_winsock): Load it.
315 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
316 char_avail event object to FD_ACCEPT.
317 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
318 socket's char_avail event object to FD_READ|FD_CLOSE.
319
320 * w32.h (FILE_LISTEN): New filedesc flag value.
321
322 2006-07-13 Kim F. Storm <storm@cua.dk>
323
324 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
325 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
326 Simplify loops and use CAR for Bnth and Belt.
327
328 * data.c (Findirect_function): Optimize for no indirection.
329
330 * eval.c (Fthrow): Remove loop around Fsignal.
331 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
332 Use original function name in all signaled errors.
333 Simplify Fsignal calls (no return).
334 (funcall_lambda): Simplify Fsignal calls (no return).
335
336 2006-07-13 Andreas Schwab <schwab@suse.de>
337
338 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
339 out_charpos.
340
341 2006-07-13 Kenichi Handa <handa@m17n.org>
342
343 * editfns.c (Fformat): Fix calculation of text property positions
344 of format string.
345
346 2006-07-12 Kim F. Storm <storm@cua.dk>
347
348 * lisp.h (CHECK_TYPE): New macro for generic type checking.
349 (CAR_SAFE, CDR_SAFE): New macros.
350 (ARRAYP, CHECK_ARRAY): New macros.
351 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
352 (CHECK_WINDOW_CONFIGURATION): New macro.
353 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
354 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
355 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
356 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
357 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
358 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
359 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
360 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
361
362 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
363 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
364
365 * callint.c (Fcall_interactively):
366 * casefiddle.c (casify_object):
367 * editfns.c (general_insert_function):
368 * fns.c (Flength, Felt, Ffillarray):
369 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
370
371 * data.c (wrong_type_argument): Remove loop around Fsignal.
372 (Farrayp, Fsequencep): Use ARRAYP.
373 (Fcar): Use CAR.
374 (Fcar_safe): Use CAR_SAFE.
375 (Fcdr): Use CDR.
376 (Fcdr_safe): Use CDR_SAFE.
377 (Fsetcar, Fsetcdr): Use CHECK_CONS.
378 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
379 (Faset): Use CHECK_ARRAY.
380
381 * fns.c (Felt): Use CHECK_ARRAY.
382 (concat): Use CHECK_NUMBER.
383 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
384 (Fmemq): Use CHECK_LIST.
385 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
386 (assq_no_quit): Use CAR_SAFE.
387 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
388 Use CHECK_LIST_CONS.
389 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
390
391 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
392
393 * casetab.c (check_case_table):
394 * category.c (check_category_table):
395 * marker.c (Fcopy_marker):
396 * syntax.c (check_syntax_table):
397 * xfaces.c (load_pixmap): Use CHECK_TYPE.
398
399 * fns.c (Fcopy_sequence, concat):
400 * fringe.c (Fdefine_fringe_bitmap):
401 * lread.c (check_obarray): Cleanup wrong_type_argument use.
402
403 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
404
405 * keymap.c (Fdefine_key, Flookup_key):
406 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
407
408 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
409
410 * search.c (Fset_match_data): Use CHECK_LIST.
411
412 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
413
414 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
415 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
416
417 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
418
419 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
420
421 * dired.c: Include blockinput.h.
422 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
423
424 * editfns.c: Include blockinput.h.
425 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
426 getpwuid/getpwnam.
427
428 * fileio.c: Include blockinput.h.
429 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
430 around getpwnam.
431 (search_embedded_absfilename): Remove spurious xfree.
432
433 2006-07-11 Kim F. Storm <storm@cua.dk>
434
435 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
436 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
437 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
438 Signal error if TIMEOUT is not a number.
439 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
440 The rework of sit_for args also fixes several incorrect Qt args
441 which should have been 1.
442 (Fredisplay): Pass 1 instead of Qt to swallow_events and
443 detect_input_pending_run_timers.
444
445 * lisp.h (sit_for): Update prototype.
446 (Fredisplay): Add EXFUN.
447
448 * dispextern.h (sit_for): Remove prototype.
449
450 * callint.c (Fcall_interactively):
451 * minibuf.c (temp_echo_area_glyphs):
452 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
453 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
454
455 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
456
457 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
458
459 2006-07-11 Kim F. Storm <storm@cua.dk>
460
461 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
462 input is available. Fix test for redisplay_dont_pause non-nil.
463 Specbind redisplay-dont-pause to t if FORCE non-nil.
464
465 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
466
467 * puresize.h (BASE_PURESIZE): Increment to 1211000.
468
469 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
470 (Fsit_for): Function deleted.
471
472 * keyboard.c (command_loop_1, Fexecute_extended_command):
473 Call sit_for instead of Fsit_for.
474
475 * minibuf.c (temp_echo_area_glyphs): Likewise.
476
477 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
478
479 * syntax.c (Fforward_comment): Revert the reversion.
480 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
481
482 2006-07-09 John Paul Wallington <jpw@pobox.com>
483
484 * syntax.c (Fforward_comment): Revert previous change.
485
486 2006-07-09 Kim F. Storm <storm@cua.dk>
487
488 * window.c (Fforce_window_update): Doc fix.
489
490 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
491
492 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
493 directory unreadable for better user privacy.
494
495 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
496
497 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
498
499 * lread.c (read_filtered_event): Remove `register' qualifier because it
500 causes compilation problem with gcc-4.0.2-20051125 on amd64.
501 (readevalloop): Remove unused var `bpos'.
502 Yet another int/Lisp_Object mixup (YAILOM).
503
504 2006-07-07 Eli Zaretskii <eliz@gnu.org>
505
506 * keyboard.c (Fexecute_extended_command): Mention the argument
507 PREFIXARG in the doc string.
508
509 2006-07-07 Kim F. Storm <storm@cua.dk>
510
511 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
512
513 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
514
515 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
516 clash detection using the base buffer.
517
518 * puresize.h (BASE_PURESIZE): Increment to 1210500.
519
520 2006-07-04 Kim F. Storm <storm@cua.dk>
521
522 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
523
524 2006-07-04 Kenichi Handa <handa@m17n.org>
525
526 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
527 to update Voverriding_fontspec_alist.
528
529 2006-07-03 Richard Stallman <rms@gnu.org>
530
531 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
532
533 * xfaces.c (Fface_attribute_relative_p): Doc fix.
534
535 * textprop.c (Fget_char_property_and_overlay): Doc fix.
536
537 * eval.c (Fdefvaralias): Doc fix.
538
539 2006-07-03 Kim F. Storm <storm@cua.dk>
540
541 * dispnew.c (sit_for): Fix preempt condition.
542
543 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
544
545 * lread.c (read_filtered_event): Treat select-window just like
546 switch-frame.
547
548 2006-07-02 Kim F. Storm <storm@cua.dk>
549
550 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
551 to ever fit the tool-bar,
552 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
553 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
554 (redisplay_tool_bar): Only clear desired matrix if we actually
555 change the tool-bar window height. Only try to make the tool-bar
556 window bigger if there is actually room for it.
557
558 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
559
560 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
561 SPI_GETWORKAREA to find the dimensions of the screen work area,
562 and adjust vertical position of the frame in order to avoid being
563 covered by the task bar.
564
565 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
566 f->left_pos and SH_SHOW instead of f->top_pos in the call to
567 CreateWindow. Record the actual position in f->left_pos and
568 f->top_pos.
569
570 2006-06-30 John Paul Wallington <jpw@pobox.com>
571
572 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
573 Doc fix - default value has changed.
574
575 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
576
577 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
578
579 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
580
581 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
582
583 * macterm.c (Qeql): Add extern.
584 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
585 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
586 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
587 Change keys of Vmac_atsu_font_table from strings to numbers.
588 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
589 (init_font_name_table) [USE_ATSUI]: Use it.
590 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
591 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
592 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
593 only when saved_ts_script_language_on_focus coincides with
594 Vmac_ts_script_language_on_focus.
595 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
596 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
597 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
598 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
599
600 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
601
602 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
603 (Ffield_string_no_properties, Ffield_end): Mention
604 args-out-of-range error condition in docstring.
605
606 2006-06-27 Kim F. Storm <storm@cua.dk>
607
608 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
609
610 2006-06-25 Kim F. Storm <storm@cua.dk>
611
612 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
613 version 2.4 and later.
614
615 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
616
617 * xfns.c (Fx_create_frame): Set font parameter directly instead of
618 using x_default_parameter, since x_get_args clears the parm alist.
619
620 2006-06-24 Eli Zaretskii <eliz@gnu.org>
621
622 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
623 case-insensitively.
624
625 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
626
627 * lread.c (read_escape): When an unknown Unicode code point is
628 encountered as a string or character escape, signal an error.
629
630 2006-06-23 Kim F. Storm <storm@cua.dk>
631
632 * .gdbinit (pitx): Dump iterator stack.
633
634 * xdisp.c (handle_composition_prop): Push iterator on stack.
635 (set_iterator_to_next): Pop iterator at end of composition.
636
637 2006-06-23 Martin Rudalics <rudalics@gmx.at>
638
639 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
640 itself on DOS_NT platforms, if the old and new names are identical
641 but for the letter-case.
642
643 2006-06-21 Kim F. Storm <storm@cua.dk>
644
645 * dispextern.h (struct it): Add `position' member to iterator stack.
646 Rename `pos' member to `current'. Rearrange and add comments.
647
648 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
649 if we get any overlays.
650 (set_cursor_from_row): Don't clobber `end' if we rescan from
651 start_string.
652 (push_it, pop_it): Save it->position.
653
654 2006-06-19 Richard Stallman <rms@gnu.org>
655
656 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
657 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
658 for the case of a top-level window and the following minibuffer.
659 Don't exit because of no `next' when there is a parent.
660 Use the FIRST_ONLY feature when resizing following windows.
661
662 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
663
664 2006-06-17 Kim F. Storm <storm@cua.dk>
665
666 * dispnew.c (update_frame): Check for input pending on entry.
667 (update_window, update_frame_1): Break loop if input is detected.
668
669 2006-06-16 Francis Litterio <flitterio@gmail.com>
670
671 * xterm.c (x_check_expected_move, handle_one_xevent)
672 (x_set_offset, x_check_fullscreen): Extensive changes to make
673 frame positioning deterministic under X.
674
675 * xterm.h (x_output): Added members left_before_move and
676 top_before_move. Removed members expected_left and expected_top.
677
678 2006-06-16 Kim F. Storm <storm@cua.dk>
679
680 * dispextern.h (struct it): Add union to iterator stack to save
681 image, composition, and stretch specific paramters.
682
683 * xdisp.c (next_overlay_string): Fix assert.
684 (push_it, pop_it): Handle composition and stretch specific values.
685 Only handle it->slice in image (for now).
686 (back_to_previous_visible_line_start): Continue search if newline is
687 part of a compisition. Simplify.
688 (reseat_1): Set it->object to buffer.
689 (set_iterator_to_next): Set it->object to string or buffer, when
690 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
691 (next_element_from_composition): Set it->object to buffer if not
692 from string.
693 (set_cursor_from_row): Only save start of string if not already
694 done to handle multiple strings in a row.
695
696 * .gdbinit (pitx): Show composition parameters.
697 (pgx, pg): New commands to print a glyph structure.
698 (pgi, pgn): New commands to print specific/next glyph.
699 (pgrowx, pgrow): New commands to print all glyphs in a row.
700
701 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
702
703 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
704 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
705
706 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
707 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
708 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
709 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
710 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
711 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
712 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
713 Services functions to get size of main display in pixels.
714
715 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
716
717 * xdisp.c (back_to_previous_visible_line_start): Reset
718 it->continuation_lines_width.
719
720 2006-06-14 Richard Stallman <rms@gnu.org>
721
722 * eval.c (Fdefconst): Mark variable as risky.
723
724 * callproc.c (Fcall_process): Doc fix.
725
726 * window.c (adjust_window_trailing_edge): Don't break out of the loop
727 because there's no next window, if there are parallel windows.
728 Do break out when WINDOW is nil.
729
730 2006-06-14 Kim F. Storm <storm@cua.dk>
731
732 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
733 iterator stack (instead of hardcoded number). Increase from 2 to
734 4 to make room for propertized overlay strings before and after a
735 display string, image or composition.
736 (struct it): Add image_id and method members to iterator stack.
737
738 * xdisp.c (init_from_display_pos): Don't set it->method and
739 overlay_string_index after pop_it. Add asserts.
740 (handle_stop): Look for overlay strings around a display string,
741 image, or composition. Handle properties on those strings.
742 (next_overlay_string): Don't set string, pos or method after pop_it.
743 (get_overlay_strings_1): Split from get_overlay_strings; don't
744 modify it if no overlay strings are found.
745 (get_overlay_strings): Use get_overlay_strings_1. Always set
746 it->string and it->method.
747 (push_it): Push it->image_id and it->method. Push it->object
748 instead of it->string if method is GET_FROM_IMAGE.
749 (pop_it): Pop it->image_id and it->method. Ppo it->object
750 instead of it->string if method is GET_FROM_IMAGE.
751 Reset it->current.string_pos if popped it->string is nil.
752 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
753 whether a given change was correct; but the change is correct.
754 Clear it->string_from_display_prop_p.
755 (set_iterator_to_next): Rely on it->method and it->image_id from
756 iterator stack, instead of setting them explicitly after pop_it.
757
758 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
759 negative time forces redisplay even when input is available.
760 (Fsit_for): Doc fix.
761
762 2006-06-13 Kim F. Storm <storm@cua.dk>
763
764 * dispnew.c: Modify preemptive redisplay to be based on periodic
765 checks for input.
766 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
767 (Vredisplay_preemption_period): New variable.
768 (syms_of_display): DEFVAR_LISP and initialize it.
769 (preemption_period, preemption_next_check): New variables.
770 (update_frame, update_single_window): Initialize them based on
771 Vredisplay_preemption_period if !force_p.
772 (update_window, update_frame_1): Use them to determine when to
773 check for input.
774
775 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
776
777 * lread.c (read_escape): Provide a Unicode character escape
778 syntax; \u followed by exactly four or \U followed by exactly
779 eight hex digits in a comment or string is read as a Unicode
780 character with that code point.
781
782 2006-06-09 Eli Zaretskii <eliz@gnu.org>
783
784 * window.c (window_scroll_pixel_based): Signal "Beginning of
785 buffer" when scroll-down at the beginning of an empty buffer.
786
787 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
788
789 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event): Exclude
790 0x7f from ASCII range.
791
792 2006-06-05 Jason Rumney <jasonr@gnu.org>
793
794 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
795 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
796 (x_scroll_bar_report_motion): Remove workarounds for
797 versions of Windows NT < 3.51.
798 [!SIF_ALL]: Remove.
799 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
800 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
801
802 2006-06-04 David Kastrup <dak@gnu.org>
803
804 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
805 `sit-for'.
806
807 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
808
809 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
810
811 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
812
813 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
814 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
815 [USE_MAC_TSM]: Likewise.
816 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
817 (Qbefore_string) [USE_MAC_TSM]: Add extern.
818 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
819 ActivateTSMDocument/DeactivateTSMDocument.
820 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
821 (mac_handle_window_event) [USE_MAC_TSM]: Handle
822 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
823 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
824 (install_window_handler) [USE_MAC_TSM]: Install it. Register
825 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
826 (keycode_to_xkeysym_table): Add entry for f16.
827 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
828 before/after passing keystroke event to toolbox dispatcher.
829 (init_tsm) [USE_MAC_TSM]: New function.
830 (mac_initialize) [USE_MAC_TSM]: Call it.
831 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
832
833 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
834
835 2006-06-02 John Paul Wallington <jpw@gnu.org>
836
837 * xfns.c (x_set_name_internal): Set icon to `text', derived from
838 name, when frame's icon_name isn't a string rather than only when
839 it is nil.
840
841 2006-06-03 Eli Zaretskii <eliz@gnu.org>
842
843 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
844 and not nil.
845
846 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
847
848 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
849 string.
850
851 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
852
853 * xdisp.c (next_element_from_composition): Set it->object to
854 it->string if composition is coming from string.
855 (set_cursor_from_row): Don't return 0 unless row displays a
856 continued line.
857 (dump_glyph): Dump composite glyph.
858
859 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
860
861 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
862
863 2006-06-01 Richard Stallman <rms@gnu.org>
864
865 * window.c (Fsplit_window): Doc fix.
866
867 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
868
869 * process.c (deleted_pid_list): New variable to store the pids
870 of deleted processes. Declare it only if SIGCHLD is defined.
871 (init_process): Initialize it.
872 (syms_of_process): Staticpro it.
873 (Fdelete_process): Add pid of the deleted process to it. Check after
874 the addition and before the kill if the process is already stopped,
875 in which case it is deleted from the list and not killed.
876 (sigchld_handler): Define it only if SIGCHLD is. Search the process
877 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
878 Original idea by Stefan Monnier.
879
880 2006-06-01 Kim F. Storm <storm@cua.dk>
881
882 * dispnew.c (sit_for): Perform redisplay even if input is pending
883 when redisplay-dont-pause is non-nil.
884
885 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
886
887 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
888 (XTread_socket): Remove obsolete comment.
889
890 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
891
892 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
893 menu-bar-open.
894
895 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
896
897 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
898 menu-bar-open.
899
900 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
901
902 2006-05-31 Juri Linkov <juri@jurta.org>
903
904 * minibuf.c (Vhistory_add_new_input): New variable.
905 (read_minibuf): Use it.
906 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
907 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
908
909 2006-05-31 Kim F. Storm <storm@cua.dk>
910
911 * process.c (select_wrapper): Add wrapper around select to work around
912 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
913 select called from wait_reading_process_output.
914
915 2006-05-30 Andreas Schwab <schwab@suse.de>
916
917 * xmenu.c (Fmenu_bar_start): Return a value.
918
919 2006-05-30 Richard Stallman <rms@gnu.org>
920
921 * coding.c (Ffind_operation_coding_system): Doc fix.
922
923 2006-05-30 Eli Zaretskii <eliz@gnu.org>
924
925 * w32term.c (x_draw_hollow_cursor): Fix last change.
926
927 2006-05-29 Kim F. Storm <storm@cua.dk>
928
929 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
930
931 2006-05-29 Eli Zaretskii <eliz@gnu.org>
932
933 * coding.c (Ffind_operation_coding_system): Doc fix.
934
935 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
936
937 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
938 Call mac_set_font_info_for_selection if font panel is made visible.
939
940 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
941 (mac_font_panel_visible_p, mac_show_hide_font_panel)
942 [USE_MAC_FONT_PANEL]: New functions.
943 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
944 immediately if font panel is not visible.
945
946 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
947 Add externs.
948
949 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
950
951 * search.c (matcher_overflow): Mark as NO_RETURN.
952
953 * xterm.c (x_connection_closed): Likewise.
954
955 * sysdep.c (croak): Likewise.
956
957 * sound.c (sound_perror, alsa_sound_perror): Likewise.
958
959 * lisp.h (die, nsberror): Likewise.
960
961 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
962
963 * sound.c (alsa_open, alsa_configure, alsa_write): Move
964 assignment to err out of if-statement.
965
966 * gtkutil.c (menu_nav_ended): New function.
967 (create_menus): Connect menu_nav_ended to "selection-done" to fix
968 grabs.
969
970 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
971
972 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
973
974 * charset.h (invalid_character): Mark as NO_RETURN.
975
976 2006-05-29 Kenichi Handa <handa@m17n.org>
977
978 * coding.c (Ffind_operation_coding_system): Call a function by
979 safe_call1 instead of call1.
980
981 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
982
983 * window.c (struct saved_window): Add `dedicated'.
984 (Fset_window_configuration, save_window_save): Save/restore the
985 `dedicated' flag.
986
987 2006-05-28 Kim F. Storm <storm@cua.dk>
988
989 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
990 don't update w->cursor and return 0. Return 1 on success.
991 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
992 until it succeeds.
993
994 * dispextern.h (set_cursor_from_row): Update prototype.
995
996 2006-05-28 Kim F. Storm <storm@cua.dk>
997
998 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
999 parameters. Adjust x and width in case cursor in on a partially
1000 visible stretch glyph on the left edge.
1001 (erase_phys_cursor): Don't erase into left fringe/margin in case
1002 previous cursor glyph is a partially visible stretch glyph on left.
1003
1004 * dispextern.h (get_phys_cursor_geometry): Update prototype.
1005
1006 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
1007 cursor and erasing cursor on partially visible stretch glyph on left.
1008 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
1009
1010 * macterm.c: Likewise.
1011
1012 * w32term.c: Likewise.
1013
1014 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1015
1016 * macselect.c (mac_handle_apple_event):
1017 Return errAEEventNotHandled if key binding is not found.
1018
1019 2006-05-26 Eli Zaretskii <eliz@gnu.org>
1020
1021 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
1022 [__MINGW32__]: MinGW-specific declaration of `etext'.
1023
1024 * w32heap.c (etext, edata): Remove unused definitions.
1025
1026 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
1027
1028 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
1029 Incorporate the exclusive file-opening functionality into the behavior
1030 when OK-IF-ALREADY-EXISTS is nil.
1031 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
1032
1033 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1034
1035 * sound.c (alsa_configure): Move get period/buffer_size after
1036 setting hwparams.
1037
1038 2006-05-26 Kenichi Handa <handa@m17n.org>
1039
1040 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
1041 . BUFFER) in TARGET.
1042
1043 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
1044
1045 * image.c (png_load): Don't call fclose on NULL.
1046
1047 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
1048
1049 * fns.c (Fyes_or_no_p):
1050 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
1051 only seven args.
1052
1053 2006-05-25 Juri Linkov <juri@jurta.org>
1054
1055 * lisp.h (Fread_from_minibuffer): Decrement number of args.
1056
1057 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
1058 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
1059
1060 * buffer.c (mode-line-format): Fix docstring.
1061
1062 2006-05-25 Richard Stallman <rms@gnu.org>
1063
1064 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
1065
1066 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
1067
1068 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1069
1070 2006-05-24 Alan Mackenzie <acm@muc.de>
1071
1072 * lread.c (Vload_history): Enhance doc-string to say that the file
1073 is the absolute truename of the loaded file.
1074
1075 * lread.c (Vafter_load_alist): doc-string: state that an element
1076 now has a regexp to match file names, not a file name as such.
1077
1078 * lread.c (readevalloop): Call file-truename on the name for
1079 load-history, except at preloading time.
1080
1081 * lread.c (Fload): At preloading time, preserve the extension of
1082 the filename which goes into load-history. New var hist_file_name.
1083
1084 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
1085 function do-after-load-evaluation.
1086
1087 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1088
1089 * mac.c (ae_attr_table): New variable.
1090 (syms_of_mac): Intern and staticpro its elements.
1091 (mac_aelist_to_lisp): Also convert Apple event attributes.
1092 (mac_ae_put_lisp): New function.
1093 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
1094
1095 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
1096
1097 * macselect.c (Qemacs_suspension_id): New variable.
1098 (syms_of_macselect): Intern and staticpro it.
1099 (struct suspended_ae_info): New struct.
1100 (deferred_apple_events, defer_apple_events)
1101 (Fmac_process_deferred_apple_events): Use it.
1102 (suspended_apple_events): New variable.
1103 (mac_handle_apple_event_1): New function.
1104 (mac_handle_apple_event): Use it. Don't process previously
1105 suspended events.
1106 (cleanup_suspended_apple_events, get_suspension_id)
1107 (cleanup_all_suspended_apple_events): New functions.
1108 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
1109 at exit.
1110 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
1111 (Fmac_resume_apple_event): New defuns.
1112 (syms_of_macselect): Defsubr them.
1113
1114 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
1115 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
1116
1117 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
1118 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
1119 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
1120 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1121 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1122 Likewise.
1123 (typeUTF8Text, kEventParamWindowMouseLocation)
1124 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
1125 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
1126
1127 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1128
1129 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
1130 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
1131 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
1132 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
1133 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
1134 resource to backtranslate key with modifiers.
1135 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
1136
1137 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1138
1139 * xterm.c: Remove declarations already in xterm.h
1140
1141 * xterm.h: Add extern declarations for x_clear_errors,
1142 x_fully_uncatch_errors, x_catching_errors and
1143 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
1144
1145 2006-05-21 Richard Stallman <rms@gnu.org>
1146
1147 * xfaces.c (best_matching_font): Abort for best == NULL
1148 before we start to use it.
1149
1150 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
1151
1152 2006-05-20 Kim F. Storm <storm@cua.dk>
1153
1154 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
1155
1156 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1157
1158 * macterm.c (convert_fn_keycode): Fix last change.
1159
1160 2006-05-19 Eli Zaretskii <eliz@gnu.org>
1161
1162 * w32.c (init_environment): Perform the processing of environment
1163 variables on a copy of default variables and their values, not on
1164 the original. Simplify code that calls ExpandEnvironmentStrings
1165 and make buf1[] and buf2[] more visible for easier debugging.
1166
1167 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1168
1169 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
1170
1171 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
1172
1173 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
1174
1175 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
1176 Forward keyUp events to toolbox_dispatcher.
1177
1178 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
1179
1180 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1181
1182 * config.in: Regenerated (HAVE_ALSA).
1183
1184 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
1185 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
1186 (snd_error_quiet, alsa_init): New functions.
1187 (vox_init): Return 0 if unable to open device.
1188 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
1189 a fallback.
1190 (struct sound_device): Add period_size.
1191 (wav_play, au_play): Use period_size if set.
1192
1193 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
1194 (ALL_CFLAGS): Add CFLAGS_SOUND
1195
1196 2006-05-18 Kenichi Handa <handa@m17n.org>
1197
1198 * callproc.c (Fcall_process): Reject encoding arguments by
1199 ascii-incompatible coding systems (e.g. utf-16).
1200
1201 * coding.c (Qascii_incompatible): New variable.
1202 (syms_of_coding): Setup Qascii_incompatible.
1203 (setup_coding_system): Be sure to initialize coding->common_flags.
1204 Check `ascii-incompatible' property of the coding system.
1205
1206 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
1207
1208 2006-05-18 Kim F. Storm <storm@cua.dk>
1209
1210 * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
1211 backtracking in case last image doesn't fit on line.
1212
1213 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
1214
1215 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by more than
1216 height of one frame default line.
1217
1218 2006-05-17 Richard Stallman <rms@gnu.org>
1219
1220 * xfaces.c (better_font_p): Any font beats no font.
1221 (best_matching_font): Simplify based on above change.
1222
1223 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
1224
1225 2006-05-16 Kim F. Storm <storm@cua.dk>
1226
1227 * xterm.c (handle_one_xevent): Check that f is not NULL before
1228 calling x_kill_gs_process.
1229
1230 2006-05-14 Richard Stallman <rms@gnu.org>
1231
1232 * textprop.c (Fnext_single_char_property_change)
1233 (Fprevious_single_char_property_change): Don't allow returning
1234 value beyond LIMIT in any cases.
1235 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
1236
1237 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
1238
1239 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1240
1241 * xterm.c (handle_one_xevent): Check that f is not NULL before
1242 calling _XEditResCheckMessages.
1243
1244 2006-05-14 Kim F. Storm <storm@cua.dk>
1245
1246 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
1247
1248 2006-05-13 Eli Zaretskii <eliz@gnu.org>
1249
1250 * frame.c (x_set_border_width): Fix error message to say "frame",
1251 not "window".
1252
1253 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
1254
1255 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
1256
1257 * intervals.c (set_point_both): Fix mixup before before and after
1258 in variable names.
1259
1260 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
1261 while setting point temporarily.
1262
1263 2006-05-11 Richard Stallman <rms@gnu.org>
1264
1265 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
1266
1267 2006-05-11 Kim F. Storm <storm@cua.dk>
1268
1269 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
1270
1271 2006-05-11 Kenichi Handa <handa@m17n.org>
1272
1273 * fileio.c (Finsert_file_contents): Fix for the case of IO error
1274 while handling replace operation.
1275
1276 2006-05-10 Kenichi Handa <handa@m17n.org>
1277
1278 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
1279 chosen for the default face was different from the frame font,
1280 adjust the frame font.
1281
1282 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1283
1284 * image.c (Qduration) [MAC_OS]: Undo previous change.
1285 (syms_of_image) [MAC_OS]: Likewise.
1286 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
1287
1288 * macfns.c (x_to_mac_color): Fix shift amount change.
1289 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
1290 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
1291
1292 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
1293 Vmac_services_selection. All uses changed.
1294 (mac_store_service_event): Rename from mac_store_services_event in
1295 extern and calls.
1296
1297 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
1298 changed.
1299 [MAC_OSX] (mac_store_service_event): Rename from
1300 mac_store_services_event. All callers changed.
1301 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
1302 FACE_ID and C. All callers changed.
1303 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
1304 mac_set_font_info_for_selection when focus frame is destroyed.
1305 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
1306
1307 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
1308 args in extern.
1309
1310 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
1311
1312 * keymap.c (describe_map): Avoid generating duplicate entries if
1313 the shadowed binding has the same definition.
1314
1315 2006-05-09 Kenichi Handa <handa@m17n.org>
1316
1317 * keymap.c (push_key_description): Handle invalid character key.
1318
1319 2006-05-08 Kenichi Handa <handa@m17n.org>
1320
1321 * callproc.c (Fcall_process): Use system_eol_type for encoding
1322 arguments if eol_type is not yet decided.
1323
1324 * coding.h (system_eol_type): Extern it.
1325
1326 * coding.c (setup_coding_system): For invalid coding-system, set
1327 coding->eol_type to CODING_EOL_UNDECIDED.
1328 (encode_coding): Cancel previous change.
1329 (shrink_encoding_region): Likewise.
1330 (code_convert_region1): Likewise.
1331 (code_convert_string1): Likewise.
1332 (code_convert_string_norecord): Likewise.
1333
1334 * fileio.c (choose_write_coding_system): Use system_eol_type for
1335 encoding if eol_type is not yet decided.
1336
1337 * process.c (setup_process_coding_systems): Use system_eol_type
1338 for encoding if eol_type is not yet decided.
1339 (read_process_output): Likewise.
1340 (send_process): Likewise.
1341
1342 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
1343
1344 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
1345
1346 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1347
1348 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
1349 (syms_of_mac): Likewise for defsubr.
1350
1351 * macfns.c (mac_set_font): New function.
1352 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
1353 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
1354 kWindowToolbarButtonAttribute when creating window.
1355 (Fmac_clear_font_name_table): Move from macfns.c.
1356 (syms_of_macfns): Likewise for defsubr.
1357 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
1358 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
1359
1360 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
1361 and build is done on Mac OS X 10.2 and later.
1362
1363 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
1364 (mac_store_services_event): Change return type in extern.
1365
1366 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
1367 FMFontFamily value.
1368 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
1369 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
1370 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
1371 (QWindow) [MAC_OSX]: Likewise.
1372 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
1373 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
1374 (syms_of_macterm) [USE_ATSUI]: Defvar it.
1375 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
1376 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
1377 (syms_of_macterm): Intern and staticpro them.
1378 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
1379 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
1380 function.
1381 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
1382 [MAC_OSX] (mac_store_services_event): Likewise.
1383 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
1384 kEventWindowToolbarSwitchMode event.
1385 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
1386 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
1387 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
1388 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
1389 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
1390
1391 * macterm.h (mac_set_font_info_for_selection): Add extern.
1392
1393 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1394
1395 * image.c (Qduration) [MAC_OS]: New variable.
1396 (syms_of_image) [MAC_OS]: Intern and staticpro it.
1397 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
1398 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
1399 instead of cfstring_create_with_string.
1400
1401 2006-05-06 Kim F. Storm <storm@cua.dk>
1402
1403 * .gdbinit (xframe): Print frame name.
1404 (xlist): New command to print a list (max 10 elements).
1405 (xpr): Print lisp object of any type.
1406 (pitx): Print it->pixel_width.
1407
1408 2006-05-05 Kenichi Handa <handa@m17n.org>
1409
1410 * xdisp.c (handle_composition_prop): Fix for the case of empty
1411 composition component.
1412
1413 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1414
1415 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
1416 from event->arg.
1417
1418 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
1419 MAC_APPLE_EVENT.
1420
1421 * macterm.h (mac_make_lispy_event_code): Remove extern.
1422 (mac_post_mouse_moved_event): Add extern.
1423 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
1424 `const AEDesc *' in externs.
1425 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
1426
1427 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
1428 `const AEDesc *'.
1429 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
1430 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
1431 Use xrealloc instead of repeated xmalloc/xfree.
1432 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
1433 function.
1434
1435 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
1436
1437 * macselect.c: Update copyright year.
1438 (mac_store_apple_event): Change return type to void in extern.
1439 (mac_handle_apple_event): Don't get return value from
1440 mac_store_apple_event.
1441 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
1442 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
1443 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
1444 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
1445 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
1446 implementation using create_apple_event_from_drag_ref.
1447 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1448 (mac_do_receive_dragUPP): Move variables from macterm.c.
1449 (install_drag_handler, remove_drag_handler): New functions.
1450
1451 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
1452 path select also for proxy icon click.
1453 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
1454 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
1455 (xlfdpat_create): Remove unused label `error' and trailing sentences.
1456 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
1457 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
1458 macselect.c.
1459 (install_drag_handler, remove_drag_handler): Add extern.
1460 (mac_store_apple_event): Change return type to void. All uses changed.
1461 Create Lisp object from Apple event and store it into input event.
1462 (mac_make_lispy_event_code): Remove function.
1463 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
1464 (install_window_handler): Call install_drag_handler.
1465 (remove_window_handler): Call remove_drag_handler.
1466
1467 2006-05-03 Richard Stallman <rms@gnu.org>
1468
1469 * sound.c (Fplay_sound_internal): Dynamically allocate
1470 current_sound_device and current_sound.
1471 (sound_cleanup): Free them.
1472
1473 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
1474 when inside a keyboard macro.
1475
1476 2006-05-02 Andreas Schwab <schwab@suse.de>
1477
1478 * xmenu.c (restore_menu_items): Return a value.
1479
1480 2006-05-01 Martin Rudalics <rudalics@gmx.at>
1481
1482 * syntax.c (Fforward_comment): Detect generic comment at beginning of
1483 buffer when moving backwards.
1484
1485 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1486
1487 * dispnew.c (update_window): Don't set changed_p when mode/header
1488 line is updated.
1489
1490 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
1491 (get_glyph_face_and_encoding, get_char_face_and_encoding):
1492 Don't distinguish known faces from others.
1493
1494 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
1495 through typeFileURL failed.
1496
1497 * macfns.c (mac_update_title_bar): New function.
1498 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
1499 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
1500 Call mac_prepare_for_quickdraw.
1501
1502 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
1503 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
1504 (enum pcm_status): New enum.
1505 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
1506 (XCharStructRow): Remove. Now validity is represented by
1507 non-negativeness of sum of ascent and descent.
1508 (struct MacFontStruct): Change type of member `rows'.
1509 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
1510
1511 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
1512 Adjust endpoints of strictly horizontal/vertical lines.
1513 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
1514 (pcm_init, pcm_get_status): New functions.
1515 (x_per_char_metric, XLoadQueryFont): Use them instead of
1516 XCharStructRow and related macros.
1517 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
1518 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
1519 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
1520 and window path pop-up menu on title bar.
1521 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
1522
1523 * macterm.h (mac_update_title_bar): Add extern.
1524 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
1525 (FRAME_FILE_NAME): New macro.
1526
1527 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
1528
1529 2006-04-30 Richard Stallman <rms@gnu.org>
1530
1531 * keymap.c (Fdefine_key): Improve error message
1532 when KEY begins with a non-prefix key.
1533
1534 2006-04-30 Martin Rudalics <rudalics@gmx.at>
1535
1536 * syntax.c (Fforward_comment): Don't forget to break out of the loop
1537 when we skipped backward over a generic comment.
1538
1539 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
1540
1541 * .gdbinit (pp1, pv1): Only print value as expression is now
1542 printed out by gud-print.
1543 (pv1): Correct doc string.
1544
1545 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
1546
1547 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
1548 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
1549 keymap.c:895: error: address of register variable `def' requested.
1550
1551 2006-04-26 Jason Rumney <jasonr@gnu.org>
1552
1553 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
1554
1555 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
1556 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
1557 where we preempt mouse_button_timer.
1558
1559 2006-04-25 Miles Bader <miles@gnu.org>
1560
1561 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
1562
1563 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 * process.h: Include headers for pid_t.
1566
1567 2006-04-24 Kim F. Storm <storm@cua.dk>
1568
1569 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
1570 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
1571 (produce_stretch_glyph): Assume that face box height and width is
1572 already included in stretch glyph size so caller doesn't have to
1573 consider the extra space otherwise added (fixes problem in ses.el).
1574
1575 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
1576 matrices to force recalculation of tool-bar height after font change.
1577
1578 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
1579 Clear it when done, so we don't accidentally draw a second copy of
1580 the tool-bar after resetting f->n_tool_bar_rows.
1581 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
1582 we recalculate f->n_tool_bar_rows.
1583
1584 2006-04-23 Lars Hansen <larsh@soem.dk>
1585
1586 * editfns.c (find_field): Fix comment.
1587 (Ffield_beginning): Fix bug when POS is at field beginning.
1588
1589 2006-04-22 Eli Zaretskii <eliz@gnu.org>
1590
1591 * puresize.h (BASE_PURESIZE): Increase to 1205000.
1592
1593 2006-04-21 Kim F. Storm <storm@cua.dk>
1594
1595 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
1596 window start is at BEGV.
1597
1598 * dispextern.h (struct image): New member `corners'.
1599 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
1600
1601 * image.c (four_corners_best): New arg CORNERS specifies what pixels
1602 to look at in case image has margin.
1603 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
1604 (image_background, image_background_transparent)
1605 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
1606 (gif_load): Set img->corners according to image's margin spec.
1607 Use img->corners values directly where applicable.
1608 Save image extension data in img->data.lisp_val.
1609 (gif_clear_image): New function to free img->data.lisp_val.
1610 (gif_type): Use it instead of generic x_clear_image.
1611 (Fimage_extension_data): New defun.
1612 (syms_of_image): Defsubr it.
1613
1614 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
1615
1616 * window.c (Fdisplay_buffer): Doc fix.
1617
1618 2006-04-21 Eli Zaretskii <eliz@gnu.org>
1619
1620 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
1621
1622 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1623
1624 * image.c [MAC_OS] (xpm_load_image): Fill in background field
1625 while we have ximg handy.
1626
1627 * macmenu.c (restore_menu_items, save_menu_items): New functions
1628 from xmenu.c.
1629 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
1630 changes for xmenu.c.
1631
1632 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
1633 (add_mac_font_name): New function.
1634 (init_font_name_table): Use it. Adopt the first found font from
1635 those having the same family name.
1636
1637 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
1638
1639 * xdisp.c (note_mouse_highlight): Use build_string.
1640
1641 2006-04-20 Lars Hansen <larsh@soem.dk>
1642
1643 * textprop.c (Fremove_list_of_text_properties):
1644 Ensure modify_region is called only when buffer is modified and that
1645 signal_after_change is allways called in that case.
1646
1647 * print.c (PRINTFINISH): Call signal_after_change.
1648
1649 2006-04-20 Kim F. Storm <storm@cua.dk>
1650
1651 * xdisp.c (redisplay_window): Fix last change.
1652
1653 * xdisp.c (redisplay_window): If current window start is not at the
1654 beginning of a line, select a new window start if buffer is modified
1655 and window start is in the modified region, but the first change is
1656 before window start.
1657
1658 2006-04-18 Richard Stallman <rms@gnu.org>
1659
1660 * xmenu.c (restore_menu_items, save_menu_items): New fns.
1661 (set_frame_menubar): Use save_menu_items. Save updated vector in
1662 the frame before unwinding it. Don't use unuse_menu_items.
1663 Don't use discard_menu_items.
1664 (digest_single_submenu): Abort if an item is not in a pane.
1665 (init_menu_items): Put the error check at the top.
1666
1667 * keymap.c (describe_map): Make "shadowed" warning more verbose.
1668
1669 * window.c (adjust_window_trailing_edge): Correctly distinguish
1670 series vs parallel cases, even when window has no parent.
1671
1672 * abbrev.c (record_symbol): New function.
1673 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
1674
1675 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1676
1677 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
1678 value of xmalloc.
1679
1680 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1681 (create_apple_event_from_event_ref, xrm_get_preference_database)
1682 (cfstring_create_normalized): Don't check return value of xmalloc.
1683
1684 * macselect.c (get_scrap_target_type_list, defer_apple_events)
1685 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
1686 return value of xmalloc/xrealloc.
1687
1688 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
1689 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
1690 (XLoadQueryFont, mac_store_apple_event): Don't check return value
1691 of xmalloc.
1692
1693 2006-04-17 Kim F. Storm <storm@cua.dk>
1694
1695 * window.c (coordinates_in_window): On the vertical border,
1696 calculate the row number measured from the top of the window, not
1697 the top of the frame.
1698 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
1699 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
1700
1701 2006-04-16 Eli Zaretskii <eliz@gnu.org>
1702
1703 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
1704
1705 2006-04-16 Romain Francoise <romain@orebokech.com>
1706
1707 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
1708
1709 2006-04-16 Andreas Schwab <schwab@suse.de>
1710
1711 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
1712
1713 2006-04-15 Romain Francoise <romain@orebokech.com>
1714
1715 * puresize.h (BASE_PURESIZE): Increment to 1210000.
1716
1717 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1718
1719 * print.c (Fprin1_to_string): Mention in the `doc' that the
1720 behavior is modified by `print-level' and `print-length'.
1721
1722 2006-04-13 Kenichi Handa <handa@m17n.org>
1723
1724 * coding.c (setup_coding_system): If eol-type is not yet decided
1725 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
1726 If coding_system is nil, return 0.
1727 (code_convert_region1): Even if coding_system is nil, don't skip
1728 conversion if system_eol_type is not LF.
1729 (code_convert_string1): Likewise.
1730 (code_convert_string_norecord): Likewise.
1731
1732 2006-04-13 Kenichi Handa <handa@m17n.org>
1733
1734 * coding.c (setup_coding_system): Fix previous change.
1735 (encode_coding): If eol_type is not yet decided, use system_eol_type.
1736 (shrink_encoding_region): If eol_type is not yet decided and
1737 system_eol_type is not LF, don't shrink.
1738
1739 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
1740
1741 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
1742 line.
1743
1744 2006-04-12 Richard Stallman <rms@gnu.org>
1745
1746 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
1747
1748 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
1749 (Fprocess_send_eof): Abort if fail to open null device.
1750
1751 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1752
1753 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
1754
1755 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
1756 assignment used as truth value. Add explicit braces to avoid
1757 ambiguous `else'.
1758 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
1759
1760 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
1761 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
1762 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
1763 Put externs in #ifdef HAVE_X_WINDOWS.
1764 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
1765 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
1766 (init_mac_osx_environment) [MAC_OSX]: Add extern.
1767
1768 * mac.c (init_process): Remove undef.
1769 (select) [MAC_OSX]: Undefine before including sysselect.h.
1770 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
1771 Remove functions and prototypes.
1772 (parse_value): Add parentheses around + inside shift.
1773 (path_from_vol_dir_name): Make static.
1774 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
1775 [!MAC_OSX] (get_path_to_system_folder): Likewise.
1776 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
1777 variable `cCode'.
1778 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
1779 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
1780
1781 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
1782 (x_set_mouse_color): Remove unused variable `dpy'.
1783 (Fx_create_frame): Remove unused variable `x_frame_count'.
1784 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
1785 (x_sync): Move from macterm.c.
1786 (Fx_file_dialog): Remove unused variable `default_filter_index'.
1787
1788 * macmenu.c (min_menu_id): Make element type explicit.
1789
1790 * macselect.c (get_flavor_type_from_symbol): Remove unused
1791 variable `val'.
1792 (get_scrap_private_timestamp, x_get_foreign_selection)
1793 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
1794 (Fmac_process_deferred_apple_events): Remove unused variables
1795 `keyword', `reply', `apple_event', `count', and `err'.
1796
1797 * macterm.c: Don't include gnu.h.
1798 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
1799 (x_sync): Move to macfns.c.
1800 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
1801 variable `mask_bits'.
1802 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
1803 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
1804 (x_mac_to_emacs_modifiers): Remove function.
1805 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
1806 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
1807 Add explicit braces to avoid ambiguous `else'.
1808 (x_make_frame_visible): Remove unused variables `type',
1809 `original_top', and `original_left'.
1810 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
1811 (x_load_font): Remove unused variables `full_name', and `value'.
1812 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
1813 Remove functions.
1814 (do_zoom_window): Reorganize variables with respect to conditionals.
1815 (init_command_handler): Remove unused variable `err'.
1816 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
1817
1818 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
1819 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
1820 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
1821 (do_menu_choice, have_menus_p, x_real_positions)
1822 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
1823 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
1824 (free_frame_menubar): Add externs.
1825
1826 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
1827 (malloc, realloc, free): Add undefs.
1828 (read_load_commands): Remove unused variable `n' and `j'.
1829 (copy_data_segment): Remove unused variable `r'.
1830
1831 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
1832 within ||. Add explicit braces to avoid ambiguous `else'.
1833 (dump_glyph_row): Remove label for `inverse_p' from legend.
1834
1835 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
1836 Add explicit braces to avoid ambiguous `else'.
1837
1838 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1839
1840 * dispnew.c (init_display): Don't init X display if the user asked
1841 for a non-X display.
1842
1843 2006-04-12 Kenichi Handa <handa@m17n.org>
1844
1845 * coding.c (setup_coding_system): Use system_eol_type for default
1846 coding->eol_type.
1847
1848 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1849
1850 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
1851
1852 * data.c (wrong_type_argument): Try to avoid compiler warnings due
1853 to the fact the function is now marked as NO_RETURN.
1854
1855 2006-04-10 Eli Zaretskii <eliz@gnu.org>
1856
1857 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
1858
1859 2006-04-10 Romain Francoise <romain@orebokech.com>
1860
1861 * xrdb.c (gethomedir): Use xstrdup.
1862
1863 2006-04-10 Andreas Schwab <schwab@suse.de>
1864
1865 * xrdb.c (gethomedir): Make sure to always return a pointer that
1866 can be passed to free.
1867
1868 2006-04-09 Richard Stallman <rms@gnu.org>
1869
1870 * lisp.h (Fkill_emacs): Undo previous change.
1871
1872 2006-04-08 Richard Stallman <rms@gnu.org>
1873
1874 * search.c (boyer_moore): Test ch >= 0400, not >.
1875
1876 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
1877
1878 * puresize.h (pure_write_error): Mark as NO_RETURN.
1879
1880 * lisp.h (args_out_of_range, args_out_of_range_3)
1881
1882 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1883
1884 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
1885 if a menu is active on this frame.
1886
1887 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
1888
1889 * lisp.h (report_file_error): Mark as NO_RETURN.
1890
1891 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1892
1893 * alloc.c [STDC_HEADERS]: Include stddef.h.
1894
1895 * lisp.h (PSEUDOVECSIZE): Fix last change.
1896
1897 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1898
1899 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
1900 `raw_status_high', and `raw_status_low' with plain integers, and move
1901 them to the end of the structure.
1902
1903 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
1904 pseudovector's size field so only the Lisp_Object fields get GC'd.
1905
1906 * process.c (update_status, make_process, Fdelete_process)
1907 (Fprocess_status, list_processes_1, start_process_unwind)
1908 (create_process, Fmake_network_process, server_accept_connection)
1909 (wait_reading_process_output, send_process, Fprocess_running_child_p)
1910 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
1911 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
1912 `pid' and `raw_status'.
1913 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
1914 representing PIDs that are larger than most-positive-fixnum.
1915
1916 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
1917
1918 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
1919
1920 2006-04-08 Eli Zaretskii <eliz@gnu.org>
1921
1922 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
1923
1924 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
1925
1926 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
1927 ../lib-src/b2m.c and ../lib-src/editfns.c.
1928 (Fcurrent_time_string): Use it.
1929 Document that the year might not consume 4 columns if it's outside
1930 the range 1000-9999.
1931 Check for asctime failure.
1932 Don't assume that the output string length is always exactly 24.
1933
1934 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1935
1936 * macterm.c (XTread_socket): Initialize variable `f' before its use.
1937
1938 2006-04-03 Kenichi Handa <handa@m17n.org>
1939
1940 * image.c: Include "charset.h" and "coding.h".
1941 (x_find_image_file): Return an encoded file name.
1942
1943 2006-04-01 Eli Zaretskii <eliz@gnu.org>
1944
1945 * configure: Regenerated.
1946
1947 2006-03-31 Kenichi Handa <handa@m17n.org>
1948
1949 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
1950
1951 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1952
1953 * xdisp.c (syms_of_xdisp): Fix variable name.
1954
1955 2006-03-30 Kenichi Handa <handa@m17n.org>
1956
1957 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
1958
1959 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
1960
1961 * keyboard.c (process_tool_bar_item): Reorder dummy args.
1962
1963 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1964
1965 * keyboard.c (tool_bar_items): Use map_keymap.
1966 (process_tool_bar_item): Add dummy args to fit the required interface.
1967
1968 2006-03-25 Eli Zaretskii <eliz@gnu.org>
1969
1970 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
1971 to zero before calling debug_print or safe_debug_print.
1972
1973 * print.c (print_output_debug_flag): New global variable.
1974 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
1975 OutputDebugString if print_output_debug_flag is zero.
1976
1977 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
1978
1979 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
1980 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
1981 (Fdecode_time): Cast tm_year to EMACS_INT.
1982 (Fcurrent_time_string): Report an invalid time specification if
1983 the argument is invalid. Also, check for out-of-range time stamps.
1984
1985 2006-03-24 Kim F. Storm <storm@cua.dk>
1986
1987 * xterm.c (handle_one_xevent):
1988 * w32term.c (w32_read_socket):
1989 * macterm.c (XTread_socket): Don't let key-press clear mouse face
1990 on in toolbar window if mouse-highlight is an integer.
1991
1992 * fns.c (sxhash_list): Include last non-nil CDR in hash.
1993
1994 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1995
1996 * macmenu.c (enum mac_menu_kind): New enum.
1997 (min_menu_id): New variable.
1998 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
1999 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
2000 min_menu_id and enumerators in enum mac_menu_kind.
2001 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
2002 All uses changed. Add range check for menu ID.
2003 (fill_menubar): Add range check for menu ID.
2004 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
2005 GetEventParameter.
2006 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
2007 for each menu kind.
2008
2009 2006-03-22 Kim F. Storm <storm@cua.dk>
2010
2011 * xdisp.c: Undo 2006-03-21 change.
2012
2013 * term.c: Define aliases for append_glyph and produce_stretch_glyph
2014 when `static' is defined to avoid name clash with those in xdisp.c.
2015
2016 * process.c (Faccept_process_output): Fix to comply with lisp reference.
2017 Change arg "timeout" to "seconds" and allow both integer and float value.
2018 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
2019 rather than microseconds. Fix doc string accordingly.
2020
2021 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
2022
2023 * xdisp.c (store_next_glyph): Rename from append_glyph.
2024 (generate_stretch_glyph): Rename from produce_stretch_glyph.
2025 All callers changed accordingly.
2026
2027 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2028
2029 * xterm.c: x_session_initialized new variable.
2030 (x_term_init): Use x_session_initialized to check if
2031 x_session_initialize should be called.
2032 (x_initialize): Initialize x_session_initialized.
2033
2034 2006-03-21 Kim F. Storm <storm@cua.dk>
2035
2036 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
2037 bitmap here, but ...
2038 (update_window_fringes): ... here, so we can test if it has changed.
2039
2040 2006-03-20 Andreas Schwab <schwab@suse.de>
2041
2042 * dispnew.c (init_display): Check DISPLAY here.
2043
2044 * emacs.c (main): Don't check here.
2045
2046 * xterm.c (x_display_ok): Don't use DISPLAY env var.
2047
2048 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2049
2050 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
2051 mixup (YAILOM).
2052
2053 2006-03-20 Eli Zaretskii <eliz@gnu.org>
2054
2055 * emacs.c (main): Fix last change.
2056
2057 2006-03-20 Kenichi Handa <handa@m17n.org>
2058
2059 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
2060
2061 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
2062
2063 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
2064
2065 * xterm.c (x_term_init): Remove unnecessary GCPRO.
2066
2067 2006-03-19 Kim F. Storm <storm@cua.dk>
2068
2069 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
2070 so it doesn't associate overlay string with following glyph by default.
2071 Allow integer property value to specify explicit number of buffer
2072 positions associate with overlay string.
2073
2074 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
2075
2076 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
2077
2078 2006-03-18 Nozomu Ando <nand@mac.com>
2079
2080 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
2081 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
2082 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
2083 Don't redefine.
2084
2085 * m/mips.h: Don't use unexmips on NetBSD.
2086 (LIBS_MACHINE): Move definition lower, so it doesn't use
2087 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
2088 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
2089
2090 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
2091 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
2092 option is broken (e.g., MIPS/NetBSD).
2093
2094 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
2095
2096 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
2097 Remove the HAVE_X_WINDOWS conditional.
2098
2099 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
2100
2101 * emacs.c (main): If user asks for a display that is unavailable,
2102 simulate -nw.
2103
2104 * xterm.c (x_display_ok): New function.
2105
2106 * xterm.h: Add prototype for x_display_ok.
2107
2108 2006-03-18 Eli Zaretskii <eliz@gnu.org>
2109
2110 * w32fns.c (Fw32_select_font): Doc fix.
2111
2112 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2113
2114 * image.c [MAC_OS] (XPutPixel, XGetPixel)
2115 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
2116 version when depth is 32.
2117 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
2118 New function.
2119 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
2120 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
2121
2122 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
2123 Create GWorld in ARGB pixel format.
2124 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
2125 Remove functions.
2126 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
2127 instead of mac_copy_area/mac_copy_area_with_mask.
2128
2129 2006-03-15 Kim F. Storm <storm@cua.dk>
2130
2131 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
2132 empty row. Fixes memory corruption revealed by 2006-03-02 change.
2133 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
2134 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
2135 width is exactly the same as the window width. Don't count a final
2136 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
2137
2138 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
2139
2140 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
2141 conditional on HAVE_NTGUI, not WINDOWS_NT.
2142
2143 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2144
2145 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
2146
2147 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
2148
2149 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
2150 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
2151 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
2152 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
2153 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
2154 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
2155 instead of mac_draw_bitmap.
2156 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
2157 define_fringe_bitmap and destroy_fringe_bitmap.
2158
2159 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
2160
2161 * xterm.c (x_uncatch_errors): Block input for entire function.
2162
2163 2006-03-12 Jason Rumney <jasonr@gnu.org>
2164
2165 * w32fns.c (Fx_create_frame): Remove call to
2166 Qface_set_after_frame_default (from xfns.c 2003-05-26).
2167
2168 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
2169 finished with the menu.
2170
2171 * w32term.c: Sync 2005-10-24 xterm.c changes.
2172 (last_mouse_glyph_frame): New var.
2173 (note_mouse_movement): Say mouse moved if current frame differs
2174 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2175 (w32_mouse_position): Set last_mouse_glyph_frame.
2176 Remove OLD_REDISPLAY_CODE block.
2177
2178 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2179
2180 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
2181
2182 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
2183 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
2184
2185 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2186
2187 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
2188
2189 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
2190 (x_draw_composite_glyph_string_foreground)
2191 (x_draw_image_foreground): Undo previous changes.
2192 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
2193 argument of mac_draw_rectangle.
2194 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
2195 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
2196 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
2197 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
2198 [USE_CG_DRAWING]: New functions.
2199 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
2200 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
2201 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
2202 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
2203 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
2204 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
2205 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2206
2207 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2208
2209 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
2210
2211 2006-03-11 Jason Rumney <jasonr@gnu.org>
2212
2213 * w32fns.c (signal_user_input): New function.
2214 (post_character_message): Use it for keyboard input.
2215 (w32_msg_pump): Use it for mouse input.
2216
2217 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
2218
2219 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
2220 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
2221
2222 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2223
2224 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
2225 if a menu is already active (the menubar_active flag is on).
2226
2227 2006-03-11 David Ponce <david@dponce.com>
2228
2229 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
2230
2231 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2232
2233 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
2234 the list of unused display error handling functions.
2235
2236 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
2237 HAVE_X_WINDOWS.
2238 (internal_condition_case, internal_condition_case_1)
2239 (internal_condition_case_2): Call x_catching_errors only if
2240 HAVE_X_WINDOWS.
2241
2242 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
2243 Don't include sys/resource.h unless defined.
2244
2245 2006-03-11 Richard Stallman <rms@gnu.org>
2246
2247 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
2248
2249 * vm-limit.c (get_lim_data, lim_data, data_space_start):
2250 Move from mem-limits.h.
2251 (enum warnlevel): New data type.
2252 (check_memory_limits): Rewrite the logic about warnings.
2253 Use standard `struct rlimit'. Check return values for nonsense.
2254 (memory_warnings): Always clear lim_data.
2255
2256 * mem-limits.h (get_lim_data, lim_data, data_space_start):
2257 Move to vm-limit.c.
2258
2259 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
2260
2261 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
2262 (internal_condition_case_1, internal_condition_case_2):
2263 Abort if within unclosed x_catch_errors.
2264
2265 2006-03-11 Romain Francoise <romain@orebokech.com>
2266
2267 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
2268
2269 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2270
2271 * lisp.h: Remove duplicate prototypes. Make the prototype of
2272 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
2273
2274 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2275
2276 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
2277 argument of XDrawRectangle.
2278
2279 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
2280
2281 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
2282 (x_draw_glyph_string_foreground)
2283 (x_draw_composite_glyph_string_foreground)
2284 (x_draw_image_foreground): Don't subtract 1 from width and height
2285 arguments to mac_draw_rectangle.
2286 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
2287
2288 2006-03-10 Kim F. Storm <storm@cua.dk>
2289
2290 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
2291
2292 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
2293
2294 * alloc.c (USE_POSIX_MEMALIGN): New macro.
2295 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
2296
2297 2006-03-09 Kenichi Handa <handa@m17n.org>
2298
2299 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
2300 ASCII component of a composition.
2301
2302 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
2303
2304 * window.c: Declare preserve_y as a static global variable.
2305 (window_scroll_pixel_based): No longer declare preserve_y;
2306 it is global now.
2307 (syms_of_window): Set preserve_y to -1.
2308
2309 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2310
2311 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
2312 depth is 32.
2313 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
2314 depth is 32.
2315
2316 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
2317
2318 * xdisp.c (handle_invisible_prop): Don't update it->position with
2319 a buffer position if we're in a display string.
2320
2321 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2322
2323 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
2324 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
2325
2326 * macfns.c (x_default_scroll_bar_color_parameter)
2327 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
2328 Remove unnecessary prototypes.
2329 (x_set_scroll_bar_default_width):
2330 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
2331 (mac_set_scroll_bar_width): New function.
2332 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
2333
2334 * macterm.c (get_control_part_bounds): Fix type of return value.
2335 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
2336 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
2337 scroll bar if it is not tall enough to display scroll bar thumb.
2338 [USE_CARBON_EVENTS] (mac_convert_event_ref)
2339 (mac_handle_command_event, mac_handle_window_event)
2340 (mac_handle_mouse_event): Check error code of GetEventParameter.
2341 (convert_fn_keycode) [MAC_OSX]: Likewise.
2342
2343 2006-03-05 Andreas Schwab <schwab@suse.de>
2344
2345 * xselect.c (x_catch_errors_unwind): Fix missing return value.
2346
2347 2006-03-02 Kim F. Storm <storm@cua.dk>
2348
2349 * frame.h (struct frame): New member n_tool_bar_rows.
2350
2351 * xdisp.c: Minimize the unpleasent visual impact of the requirement
2352 that non-toolkit tool-bars must occupy an integral number of screen
2353 lines, by distributing the rows evenly over the tool-bar screen area.
2354 (Vtool_bar_border): New variable.
2355 (syms_of_xdisp): DEFVAR_LISP it.
2356 (display_tool_bar_line): Add HEIGHT arg for desired row height.
2357 Make tool-bar row the desired height. Use default face for border
2358 below tool-bar.
2359 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
2360 actual tool-bar rows.
2361 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
2362 Adjust the height of the tool-bar rows to fill tool-bar screen area.
2363 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
2364 is resized.
2365
2366 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
2367
2368 * search.c (Fregexp_quote): Do not precede a literal `]' with two
2369 backslashes to try to make clear that it has a literal meaning; it
2370 does not do that. (It could close a character alternative
2371 containing a backslash.)
2372
2373 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * xselect.c (x_catch_errors_unwind): New function.
2376 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
2377 (Fx_get_atom_name): Call x_uncatch_errors earlier.
2378
2379 * window.c (Qscroll_up, Qscroll_down): New syms.
2380 (window_scroll_pixel_based): Make preserve_y static to avoid
2381 getting point stuck when scrolling 1 line.
2382
2383 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
2384
2385 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
2386
2387 * xterm.c (x_load_font, x_term_init, XTmouse_position)
2388 (handle_one_xevent, x_connection_closed, x_list_fonts):
2389 No arg for x_uncatch_errors.
2390
2391 * xselect.c (x_own_selection, x_decline_selection_request)
2392 (x_reply_selection_request, x_get_foreign_selection)
2393 (Fx_get_atom_name, Fx_send_client_event): Likewise.
2394
2395 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
2396 Likewise.
2397
2398 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
2399
2400 * lread.c: Declare Vload_file_rep_suffixes instead of
2401 deleted variable default_suffixes.
2402 (Fget_load_suffixes): New function.
2403 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
2404 No longer use deleted variable default_suffixes. Update docstring.
2405 (syms_of_lread): defsubr Sget_load_suffixes.
2406 Expand `load-suffixes' docstring.
2407 Delete default_suffixes and DEFVAR_LISP the new variable
2408 `load-file-rep-suffixes'.
2409
2410 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
2411 of Vload_suffixes.
2412
2413 * lisp.h: EXFUN Fget_load_suffixes.
2414 Extern Vload_file_rep_suffixes.
2415
2416 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
2417 with lisp.h.
2418
2419 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2420
2421 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
2422 qualifier which was trying to avoid the bug that was fixed by
2423 yesterday's changes to xterm.c.
2424
2425 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
2426
2427 * xterm.h (x_catch_errors) Return value changed to void.
2428 (x_uncatch_errors): Delete unused count argument.
2429
2430 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
2431 it can be called in a signal handler.
2432 (x_catch_errors_unwind): Function deleted.
2433 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
2434 (x_check_errors): Call x_uncatch_errors before signalling error.
2435
2436 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
2437 (x_connection_closed, x_list_fonts): Use new versions of
2438 x_catch_errors and x_uncatch_errors.
2439
2440 * xselect.c (x_own_selection, x_decline_selection_request)
2441 (x_reply_selection_request, x_get_foreign_selection)
2442 (Fx_get_atom_name, Fx_send_client_event): Likewise.
2443
2444 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
2445 Likewise.
2446
2447 * eval.c (record_unwind_protect): Add an assertion.
2448
2449 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2450
2451 * process.c (Fmake_network_process): Init the process's mark.
2452
2453 2006-02-25 Kim F. Storm <storm@cua.dk>
2454
2455 * buffer.c (modify_overlay): Force redisplay if we modify an
2456 overlay at the end of the buffer.
2457
2458 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2459
2460 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
2461 nil the image file has been removed, in that case use the (cached)
2462 pixmap.
2463
2464 2006-02-24 Kenichi Handa <handa@m17n.org>
2465
2466 * fileio.c (Finsert_file_contents): When a text is replaced
2467 partially, be sure to set point before the inserted characters.
2468
2469 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
2470
2471 * xfns.c (Fx_file_dialog): Return a decoded file name.
2472
2473 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2474
2475 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
2476 glyph whose face is extended to the text area end.
2477
2478 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
2479 values if control is not visible or values are not changed.
2480
2481 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2482
2483 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
2484 The default `window' should not be "on a different frame".
2485
2486 2006-02-22 Kim F. Storm <storm@cua.dk>
2487
2488 * indent.c (Fvertical_motion): Only try to move back if we can.
2489
2490 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2491
2492 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
2493 n_clip_rects.
2494
2495 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
2496 xmenu.c.
2497
2498 * macterm.c (GC_CLIP_REGION): Remove macro.
2499 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
2500 All uses changed. Don't do clipping if n_clip_rects is zero.
2501 (mac_set_clip_rectangles): Use xassert instead of abort.
2502 Set n_clip_rects. Don't make clip_region empty when number of
2503 clipping rectangles is zero.
2504 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
2505 calling mac_set_clip_rectangles.
2506 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
2507 avoid multiple redraws.
2508
2509 2006-02-22 Kim F. Storm <storm@cua.dk>
2510
2511 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
2512
2513 2006-02-21 Kim F. Storm <storm@cua.dk>
2514
2515 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
2516
2517 2006-02-21 Zhang Wei <brep@newsmth.org>
2518
2519 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
2520 returning it.
2521
2522 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2523
2524 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
2525 (standard_bitmaps): Use it.
2526
2527 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2528
2529 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
2530 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
2531 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
2532 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
2533 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
2534 Draw background if BG_WIDTH is not zero. Use float constants as
2535 divisors instead of double. Use alloca instead of xmalloc/xfree.
2536 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2537 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
2538 mac_draw_image_string* functions.
2539 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
2540 some fonts when srcCopy text transfer mode might be used.
2541 (mac_begin_clip, mac_end_clip): Check if region is empty.
2542 (mac_set_clip_rectangles): When resetting clip region, make it
2543 empty instead of disposing of it.
2544
2545 2006-02-20 Kim F. Storm <storm@cua.dk>
2546
2547 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
2548
2549 * buffer.h (struct buffer): New members fringe_indicator_alist and
2550 fringe_cursor_alist.
2551
2552 * buffer.c (init_buffer_once): Set dummy default values for
2553 fringe-indicator-alist and fringe-cursor-alist. The proper
2554 default values are set by pre-loading fringe.el.
2555 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
2556 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
2557 corresponding default- variables.
2558
2559 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
2560 to use `int'.
2561 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
2562 Define explicitly.
2563 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
2564 (Qhollow_small): New variables.
2565 (syms_of_fringe): Intern and staticpro them.
2566 (question_mark_bits): Rename from unknown_bits.
2567 (left_curly_arrow_bits): Rename from continuation_bits.
2568 (right_curly_arrow_bits): Rename from continued_bits.
2569 (left_triangle_bits): Rename from ov_bits.
2570 (right_triangle_bits): Add.
2571 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
2572 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
2573 (filled_square_bits): Add.
2574 (vertical_bar_bits): Rename from bar_cursor_bits.
2575 (horizontal_bar_bits): Rename from hbar_cursor_bits.
2576 (empty_line_bits): Rename from zv_bits.
2577 (standard_bitmaps): Update to use new names.
2578 (draw_fringe_bitmap_1): Make static.
2579 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
2580 to map from logical cursors and indicators to physical bitmaps.
2581 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
2582 bitmaps using symbol names instead of bitmap numbers.
2583 (update_window_fringes): Use logical indicator symbol names
2584 instead of bitmap numbers for logical. Add bitmap cache.
2585 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
2586
2587 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
2588
2589 * regex.c: Revert 2006-02-19 change.
2590 (xmalloc, xrealloc): Define these when not linked to Emacs.
2591 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
2592
2593 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
2594
2595 * regex.c (extend_range_table_work_area): Fix typo.
2596
2597 2006-02-19 Richard M. Stallman <rms@gnu.org>
2598
2599 * xterm.c (x_catch_errors): Use xmalloc.
2600
2601 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
2602 (regex_compile): Likewise.
2603 (regcomp): Use xmalloc.
2604
2605 * gtkutil.c (malloc_widget_value): Use xmalloc.
2606
2607 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
2608 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
2609
2610 * xmenu.c (digest_single_submenu): When pane_string is empty,
2611 do initialize save_wv.
2612
2613 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2614
2615 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
2616 w->update_mode_line if arg F is not the selected frame.
2617
2618 * macmenu.c (popup_activated_flag, submenu_id)
2619 (next_menubar_widget_id): Remove variables.
2620 (initialize_frame_menubar): Remove function.
2621 (pop_down_menu, mac_menu_show): Simplify save value.
2622 (dispose_menus): New function.
2623 (pop_down_menu, fill_menubar): Use it.
2624 (fill_submenu): Remove function. All uses changed to fill_menu.
2625 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
2626 POS. Don't call SetMenuItemHierarchicalID here.
2627 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
2628 used next. Call SetMenuItemHierarchicalID here.
2629 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
2630 objects if needed. Reuse existing menu bar titles if possible.
2631 (set_frame_menubar): Don't clean up menu objects here.
2632
2633 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
2634
2635 * window.c (window_min_size_1): Ensure room for the scroll bar and
2636 fringes.
2637
2638 2006-02-17 Romain Francoise <romain@orebokech.com>
2639
2640 * puresize.h (BASE_PURESIZE): Increment to 1200000.
2641
2642 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
2645 addition of the BLOCK_INPUTs.
2646
2647 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
2648
2649 * window.c (Fset_window_scroll_bars): Doc fix.
2650
2651 2006-02-17 Kenichi Handa <handa@m17n.org>
2652
2653 * xdisp.c (display_mode_element): Call display_string with correct
2654 PREC arg (which must be a number of characters, not column width).
2655
2656 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2657
2658 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
2659
2660 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
2661
2662 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
2663
2664 2006-02-14 Richard M. Stallman <rms@gnu.org>
2665
2666 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
2667
2668 * m/ibms390x.h: New file.
2669
2670 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2671
2672 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
2673 value of x-gtk-whole-detached-tool-bar.
2674 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
2675
2676 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
2677
2678 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2679
2680 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
2681
2682 * xterm.h: Declare x_x_to_emacs_modifiers.
2683
2684 * gtkutil.c (xg_tool_bar_button_cb): New function.
2685 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
2686 store modifiers in event.
2687 (update_frame_tool_bar): Connect button-release-event to
2688 xg_tool_bar_button_cb.
2689
2690 2006-02-13 Richard M. Stallman <rms@gnu.org>
2691
2692 * .gdbinit (xwindow): Update the code to show the window box.
2693
2694 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2695
2696 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
2697
2698 2006-02-12 Richard M. Stallman <rms@gnu.org>
2699
2700 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
2701
2702 2006-02-11 Eli Zaretskii <eliz@gnu.org>
2703
2704 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
2705 (syms_of_keyboard): DEVFAR_LISP and initialize it.
2706 (parse_tool_bar_item, parse_menu_item): If that variable is
2707 non-nil, don't disable menu items and tool-bar buttons.
2708
2709 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
2710
2711 * doc.c (Fsubstitute_command_keys): Doc fix.
2712
2713 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
2714
2715 * data.c (Findirect_function): Rewrite docstring.
2716 Fix omission bug: Declare new arg NOERROR.
2717
2718 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2719
2720 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
2721 if window_desc is not set yet.
2722 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
2723 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
2724 parameter `visibility' is `icon'.
2725 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
2726 instead of "fontset-mac".
2727 (Fx_focus_frame): New defun.
2728 (syms_of_macfns): Defsubr it.
2729
2730 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
2731 for unfocused frame.
2732 (x_raise_frame): Call BringToFront instead of SelectWindow.
2733 (x_lower_frame): Use NULL instead of nil.
2734 (x_make_frame_visible): Don't call SelectWindow.
2735 (XTread_socket): Increment handling_signal at the start, decrement
2736 it at the end.
2737 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
2738 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
2739
2740 2006-02-10 Kim F. Storm <storm@cua.dk>
2741
2742 * data.c (Findirect_function): Add NOERROR arg. All callers changed
2743 to pass Qnil for NOERROR.
2744
2745 * keymap.c (current_minor_maps_error): Remove.
2746 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
2747 instead of using internal_condition_case_1+current_minor_maps_error.
2748
2749 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2750
2751 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
2752 frames for GTK, in that case it is the tool bar. This is so that
2753 highlighted text get reset properly.
2754
2755 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
2756
2757 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
2758
2759 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2760
2761 * window.c (adjust_window_trailing_edge): Check that shrinking
2762 does not set a window to size zero or less.
2763
2764 2006-02-08 Miles Bader <miles@gnu.org>
2765
2766 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
2767 of Fget_text_property (other field functions work with overlays as
2768 well as text-properties).
2769
2770 2006-02-07 Kenichi Handa <handa@m17n.org>
2771
2772 * dispextern.h (unibyte_display_via_language_environment): Extern it.
2773
2774 * xterm.h (unibyte_display_via_language_environment):
2775 * w32term.h (unibyte_display_via_language_environment):
2776 * macterm.h (unibyte_display_via_language_environment): Delete extern.
2777
2778 2006-02-07 Kenichi Handa <handa@m17n.org>
2779
2780 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
2781 (produce_glyphs): Set the character to print in
2782 it->char_to_display. Handle unibyte-display-via-language-environment.
2783 (produce_stretch_glyph): Set character to print in it->char_to_display.
2784
2785 2006-02-06 Kenichi Handa <handa@m17n.org>
2786
2787 * lread.c (openp): Initialize encoded_fn before GCPRO it.
2788
2789 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
2790
2791 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
2792
2793 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
2794 Cast bitfield value to EMACS_INT, to suppress gcc warning.
2795
2796 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
2797 defining.
2798
2799 2006-02-03 Kim F. Storm <storm@cua.dk>
2800
2801 * xdisp.c: Cache last merged escape glyph face.
2802 (last_escape_glyph_frame, last_escape_glyph_face_id)
2803 (last_escape_glyph_merged_face_id): New variables.
2804 (get_next_display_element): Use/update them.
2805 (redisplay_internal): Reset them before redisplay.
2806
2807 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
2808 Only recheck faces after displaying ellipsis.
2809
2810 2006-02-02 Kenichi Handa <handa@m17n.org>
2811
2812 * coding.c (decode_composition_emacs_mule): Fix handling of
2813 incorrect format data.
2814
2815 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2816
2817 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
2818 (gtk_toolbar_insert) so we can have tool bars of different sizes.
2819
2820 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
2821
2822 * data.c (Flistp): Doc fix.
2823
2824 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
2825
2826 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
2827 Fix typos in docstrings.
2828
2829 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
2830
2831 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
2832
2833 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
2834
2835 * alloc.c (make_interval, allocate_string)
2836 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
2837 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
2838 global variables.
2839
2840 2006-01-27 Eli Zaretskii <eliz@gnu.org>
2841
2842 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
2843 the MSDOS definition.
2844
2845 2006-01-26 Richard M. Stallman <rms@gnu.org>
2846
2847 * alloc.c (check_pure_size): Make overflow message an "error message".
2848
2849 * keymap.c (Fmap_keymap): Doc fix.
2850
2851 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
2852 unless they were cleared out.
2853
2854 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
2855
2856 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2857
2858 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
2859 (find_field): Set before_field to after_field when pos is at BEGV.
2860 (Fline_beginning_position, Fline_end_position):
2861 Clarify confusing doc string.
2862
2863 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
2864 string.
2865
2866 2006-01-26 Kenichi Handa <handa@m17n.org>
2867
2868 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
2869 current_dir, and error_file. On reporting an error, decode them
2870 back.
2871
2872 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2873
2874 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
2875 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
2876 Don't check for quit, since any loop will go through fail or jump.
2877
2878 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
2879
2880 * alloc.c (allocate_string_data): Update next_free immediately, to
2881 reduce risk of memory clobberage.
2882
2883 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2884
2885 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
2886 display when point moves across an ellipsis. If there are
2887 adjacent invisible texts, don't lose the second one's ellipsis.
2888 (x_produce_glyphs): Doc fix.
2889
2890 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
2891
2892 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
2893
2894 2006-01-23 Kim F. Storm <storm@cua.dk>
2895
2896 * xdisp.c (handle_single_display_spec): Fix handling of space
2897 property on char from string: set *position rather than
2898 it->current.pos.
2899 (produce_stretch_glyph): Reduce width of stretch glyphs so they
2900 don't get wider than the window (unless truncate-lines is on).
2901
2902 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2903
2904 * xterm.c: Avoid allocating Lisp data from a signal handler.
2905 (x_error_message): New var to replace x_error_message_string.
2906 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
2907 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
2908 (syms_of_xterm): Use it instead of x_error_message_string.
2909
2910 * alloc.c (lisp_align_free): Add an assertion.
2911 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
2912 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
2913 a signal handler.
2914
2915 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
2916
2917 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
2918
2919 2006-01-21 Romain Francoise <romain@orebokech.com>
2920
2921 * xdisp.c (get_window_cursor_type): Fix last change.
2922 Update copyright year.
2923
2924 2006-01-20 Eli Zaretskii <eliz@gnu.org>
2925
2926 * lread.c (Fload): Don't leak the file descriptor returned by
2927 openp if we are going to signal an error.
2928
2929 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
2930 directly to _close.
2931 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
2932 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
2933 to _read.
2934 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
2935 directly to _write.
2936
2937 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
2938 if it is NULL.
2939
2940 2006-01-20 Kenichi Handa <handa@m17n.org>
2941
2942 * puresize.h (BASE_PURESIZE): Increment to 1190000.
2943
2944 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
2945
2946 * xdisp.c (get_window_cursor_type): Use cursor type specified by
2947 the selected buffer for the echo area too.
2948
2949 2006-01-19 Richard M. Stallman <rms@gnu.org>
2950
2951 * keymap.c (Fmap_keymap): Doc fix.
2952
2953 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
2954
2955 * keyboard.c (echo_char): Don't omit the space between first two
2956 echoed chars.
2957
2958 * minibuf.c (read_minibuf): Fix previous change.
2959
2960 2006-01-19 Kenichi Handa <handa@m17n.org>
2961
2962 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2963
2964 2006-01-17 Richard M. Stallman <rms@gnu.org>
2965
2966 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
2967 value in f->param_alist.
2968
2969 2006-01-15 Andreas Schwab <schwab@suse.de>
2970
2971 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
2972
2973 2006-01-13 Richard M. Stallman <rms@gnu.org>
2974
2975 * Makefile.in: Define new macro WINDOW_SUPPORT.
2976 (lisp): Use it.
2977 (SOME_MACHINE_LISP): Add conditionally loaded files.
2978
2979 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2980
2981 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2982 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2983 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
2984 decomposed form.
2985
2986 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
2987 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
2988 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
2989 macro. Also try member ifr_addr when getting netmask.
2990
2991 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
2992
2993 * fileio.c (Fexpand_file_name): Remove redundant tests.
2994 Fix elimination of // so that it doesn't prevent elimination of an
2995 immediately following /. or /..
2996
2997 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2998
2999 * gtkutil.c (xg_toggle_notify_cb): New function.
3000 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
3001 xg_toggle_notify_cb.
3002 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
3003 parameter value changes so the toggle button gets updated.
3004
3005 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
3006
3007 * .gdbinit: Fix typo.
3008
3009 2006-01-05 Eli Zaretskii <eliz@gnu.org>
3010
3011 * .gdbinit: Fix last change.
3012
3013 2006-01-05 Kim F. Storm <storm@cua.dk>
3014
3015 * process.c (Fmake_network_process): Use AF_INET instead of
3016 AF_UNSPEC when AF_INET6 is not defined.
3017
3018 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3019
3020 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
3021 Don't check that the other type is known file-related one.
3022
3023 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
3024 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
3025 OS X 10.4 and later.
3026
3027 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3028
3029 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
3030 let GTK do all image processing. Importing Emacs own pixmaps to GTK
3031 looks bad for inactive tool bar items with some Gnome themes.
3032
3033 2006-01-04 Eli Zaretskii <eliz@gnu.org>
3034
3035 * .gdbinit: Avoid a warning message when x_error_quitter is not
3036 compiled in.
3037
3038 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
3039 for w32.
3040
3041 2006-01-04 Kim F. Storm <storm@cua.dk>
3042
3043 * process.c: Add IPv6 support.
3044 (Qipv4, Qipv6): New vars.
3045 (syms_of_process): Intern and staticpro them.
3046 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
3047 with or without port number. Handle 4 element vector as IPv4 address
3048 without port number.
3049 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3050 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
3051 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
3052 request that address family only. :family nil or omitted means to
3053 determine address family from the specified :host and :service.
3054 (ifflag_table): Add missing OpenBSD IFF_ flags.
3055 (server_accept_connection): Handle IPv6 addresses.
3056 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
3057
3058 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
3059 determine which breakpoints to set.
3060
3061 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
3062
3063 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
3064
3065 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
3066
3067 2006-01-03 Romain Francoise <romain@orebokech.com>
3068
3069 * emacs.c (main): Update copyright year.
3070
3071 2006-01-03 Ken Raeburn <raeburn@gnu.org>
3072
3073 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
3074 nil for the call to internal_delete_file.
3075
3076 2006-01-01 Ken Raeburn <raeburn@gnu.org>
3077
3078 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
3079 to nil for the call to Fwrite_region.
3080
3081 2005-12-31 Richard M. Stallman <rms@gnu.org>
3082
3083 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
3084
3085 2005-12-31 Eli Zaretskii <eliz@gnu.org>
3086
3087 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
3088
3089 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
3090
3091 * textprop.c (set_text_properties): Reword description of return value.
3092 Return Qnil if caller wants to remove all text properties from a
3093 string and the string already has no intervals.
3094
3095 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
3096
3097 * term.c (visible_cursor): New boolean var.
3098 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
3099 visible_cursor.
3100 (syms_of_term): Export the new var as "visible-cursor".
3101
3102 2005-12-30 Eli Zaretskii <eliz@gnu.org>
3103
3104 * .gdbinit: Tell users not to worry about GDB warnings that some
3105 functions do not exist in the binary.
3106
3107 2005-12-30 Andreas Schwab <schwab@suse.de>
3108
3109 * process.c (Fnetwork_interface_info): Correctly terminate the
3110 loop over ifflag_table.
3111
3112 2005-12-29 Richard M. Stallman <rms@gnu.org>
3113
3114 * lread.c (readevalloop): Test for reading a whole buffer
3115 before actually reading anything. Handle all cases, including
3116 START = END = nil and an already-narrowed buffer.
3117 Convert END to a marker if it is a number.
3118
3119 * keymap.c (describe_map): Put sparse map elements into an array,
3120 sort them, then output a sequence of identical bindings on one line.
3121 (struct describe_map_elt): New data type.
3122 (describe_map_compare): New function.
3123
3124 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3125
3126 * gtkutil.c (xg_get_file_with_chooser): Change message shown
3127 in file chooser.
3128
3129 2005-12-27 Richard M. Stallman <rms@gnu.org>
3130
3131 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
3132 not the current one.
3133
3134 * minibuf.c (Fminibuffer_message): Doc fix.
3135 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
3136
3137 * eval.c (do_autoload): Ignore elements of Vautoload_queue
3138 where car is not symbol.
3139
3140 2005-12-27 Kenichi Handa <handa@m17n.org>
3141
3142 * charset.c (lisp_string_width): Check multibyteness of STRING.
3143
3144 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3145
3146 * xfns.c: x_show_hidden_files, new variable.
3147 (syms_of_xfns): Defvar it.
3148
3149 * gtkutil.c (xg_toggle_visibility_cb): New function.
3150 (xg_get_file_with_chooser): Add toggle hidden files and a message
3151 to the new file chooser dialog. Show hidden files if
3152 x_show_hidden_files is non-zero.
3153
3154 2005-12-26 Richard M. Stallman <rms@gnu.org>
3155
3156 * keyboard.h: Undo previous change.
3157
3158 * Makefile.in (undo.o): Undo previous change.
3159
3160 * undo.c: Undo previous change.
3161
3162 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
3163
3164 * keyboard.h: extern last_point_position_window.
3165
3166 * undo.c: include keyboard.h.
3167
3168 * Makefile.in (undo.o): Depend on keyboard.h.
3169
3170 2005-12-26 Richard M. Stallman <rms@gnu.org>
3171
3172 * commands.h (last_point_position_window): Declare.
3173
3174 * undo.c: Depend on window.h.
3175 (record_point): Save old point from the correct window.
3176
3177 * keyboard.c (last_point_position_window): New variable.
3178 (command_loop_1): Set last_point_position_window.
3179 (syms_of_keyboard): Init it.
3180
3181 * Makefile.in (undo.o): Depend on window.h.
3182
3183 2005-12-25 Richard M. Stallman <rms@gnu.org>
3184
3185 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
3186 to undo a `provide'.
3187
3188 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
3189
3190 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
3191
3192 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
3193 define for FreeBSD on this platform.
3194
3195 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3196
3197 * macterm.h (TYPE_FILE_NAME): New define.
3198 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
3199
3200 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
3201 Add prototypes. Make static.
3202 (mac_aedesc_to_lisp): Initialize err to noErr.
3203 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3204 (init_coercion_handler): New functions.
3205 (Fmac_coerce_ae_data): Use coercion of Apple event data for
3206 translation from/to file names.
3207
3208 * macterm.c: Don't include sys/param.h.
3209 (init_coercion_handler): Add extern.
3210 [MAC_OS8] (main): Call init_coercion_handler.
3211 (mac_initialize) [MAC_OSX]: Likewise.
3212 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
3213 Apple event data for translation from/to file names.
3214
3215 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3216
3217 * image.c [MAC_OS] (find_image_fsspec): Likewise.
3218
3219 2005-12-23 Martin Rudalics <rudalics@gmx.at>
3220
3221 * insdel.c (insert, insert_and_inherit, insert_before_markers)
3222 (insert_before_markers_and_inherit): Make sure FROM is correct
3223 when `after-change-functions' are called.
3224
3225 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3226
3227 * xfns.c (Fx_uses_old_gtk_dialog): New function.
3228
3229 * gtkutil.c (xg_uses_old_file_dialog): New function.
3230 (xg_get_file_name): Use xg_uses_old_file_dialog.
3231
3232 * gtkutil.h: Declare xg_uses_old_file_dialog.
3233
3234 2005-12-22 Richard M. Stallman <rms@gnu.org>
3235
3236 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
3237
3238 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3239
3240 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
3241
3242 * macgui.h (XCharStruct): Remove member `valid_p'.
3243 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
3244 (XCharStructRow): New typedef.
3245 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
3246 New macros.
3247 (struct MacFontStruct): Add member `bounds'. Remove member
3248 `per_char'. All uses for QuichDraw Text fonts are changed to
3249 `bounds.per_char'. ATSUI font bounds are represented as an array
3250 `bounds.rows' of XCharStructRow's, each of which consists of a
3251 bitmap of valid entries and an array of char bounds.
3252
3253 * macterm.c (mac_per_char_metric): Add prototype.
3254 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
3255 (mac_query_char_extents): New function.
3256 (x_per_char_metric): Use it.
3257 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
3258 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
3259 Use mac_per_char_metric instead of x_per_char_metric.
3260 (mac_text_extents_16): New function.
3261 (mac_compute_glyph_string_overhangs): Use it.
3262 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
3263
3264 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3265
3266 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
3267 (Fminibuffer_completion_help): Remove duplicates before display.
3268
3269 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3270
3271 * print.c (print_preprocess): Don't lose print_depth levels while
3272 iterating.
3273
3274 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3275
3276 * macmenu.c (Qmac_apple_event): Add extern.
3277 (set_frame_menubar, mac_menu_show keymp_panes)
3278 (single_keymap_panes, list_of_panes, list_of_item)
3279 (single_menu_item): Add argument types to prototypes.
3280 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
3281 (struct skp): New struct (from xmenu.c).
3282 (single_keymap_panes, single_menu_item, list_of_panes)
3283 (list_of_item): Sync with xmenu.c.
3284 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
3285 POSITION if it is mac-apple-event event.
3286 (menubar_selection_callback): Don't use menu_command_in_progress.
3287 (set_frame_menubar): First parse all submenus, then make
3288 widget_value trees from them. Don't allocate any widget_value
3289 objects until we are done with the parsing.
3290 (parse_single_submenu, digest_single_submenu): New functions.
3291 (single_submenu): Function deleted, replaced by those two.
3292 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
3293 create or dispose of EventHandlerUPP. Install hander to all submenus.
3294 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
3295 instead of ENCODE_SYSTEM.
3296 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
3297 integer values.
3298 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
3299 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
3300 format menu item string. Don't use NULL for integer value.
3301
3302 * macterm.h (struct mac_output): Remove unused member
3303 menu_command_in_progress.
3304
3305 2005-12-20 Juri Linkov <juri@jurta.org>
3306
3307 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
3308 position is non-nil, else set it to nil.
3309
3310 * macmenu.c (Fx_popup_menu): Add `else' to set
3311 Vmenu_updating_frame to nil only if position is nil.
3312
3313 * w32menu.c (Fx_popup_menu): Add `else' to set
3314 Vmenu_updating_frame to nil only if position is nil.
3315
3316 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3317
3318 * keyboard.c (make_lispy_event): Drag-and-drop items are now
3319 stored in member `args' of struct input_event.
3320
3321 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
3322
3323 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
3324 stored in member `args' of struct input_event.
3325
3326 * w32term.c (construct_drag_n_drop): Likewise.
3327
3328 * macterm.c (mac_do_receive_drag): Likewise.
3329 (x_use_underline_position_properties): Undo 2005-07-13 change.
3330 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
3331 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
3332 (mac_pass_command_to_system, mac_pass_control_to_system):
3333 New boolean variables renamed from Lisp_Object ones
3334 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
3335 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
3336 All uses changed.
3337 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
3338 Make them user options.
3339 (mac_handle_command_event, mac_store_services_event):
3340 Call create_apple_event_from_event_ref without 5th argument.
3341 (backtranslate_modified_keycode): Mask off modifier keys that are
3342 mapped to some Emacs modifiers before passing it to KeyTranslate.
3343 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
3344 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
3345 Fix docstrings of `mac-*-modifier'.
3346
3347 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
3348 (do_applescript): Change argument types to Lisp_Object.
3349 All uses changed.
3350
3351 * macterm.h (create_apple_event_from_event_ref): Remove 5th
3352 argument from extern.
3353
3354 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3355
3356 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
3357 the answer, return `lambda', not nil.
3358
3359 2005-12-17 Eli Zaretskii <eliz@gnu.org>
3360
3361 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
3362 enclosed in $(ARGQUOTE)s should not be split between two lines, as
3363 that will break with GNU Make >3.80, when sh.exe is used and
3364 arg quoting is with '..'.
3365
3366 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
3367
3368 * print.c (print_preprocess): Just signal an error if print_depth
3369 is exceeded.
3370
3371 2005-12-17 Eli Zaretskii <eliz@gnu.org>
3372
3373 * .gdbinit: Set a breakpoint on w32_abort.
3374
3375 2005-12-16 Juri Linkov <juri@jurta.org>
3376
3377 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
3378 created from minibuffer_completion_contents.
3379 (minibuffer_completion_contents): Remove.
3380 (do_completion, Fminibuffer_complete_word)
3381 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
3382 with Fminibuffer_completion_contents.
3383 (syms_of_minibuf): Add Sminibuffer_completion_contents.
3384 (Fdisplay_completion_list): Doc fix.
3385 (display_completion_list_1): Use `nil' for second arg of
3386 `Fdisplay_completion_list'.
3387
3388 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3389
3390 * xfns.c (compute_tip_xy): Handle negative dx and dy.
3391
3392 * w32fns.c (compute_tip_xy): Ditto.
3393
3394 * macfns.c (compute_tip_xy): Ditto.
3395
3396 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * print.c (print_preprocess): Go to a deeper print_depth to avoid
3399 print_object loop.
3400
3401 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
3402
3403 * coding.c (code_convert_region_unwind): GCPRO arg.
3404
3405 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3406
3407 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
3408 i.e. dy is offset from top of frame instead of bottom.
3409
3410 * macfns.c (compute_tip_xy): Ditto.
3411
3412 * w32fns.c (compute_tip_xy): Ditto.
3413
3414 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
3415 (xg_get_image_for_pixmap, xg_create_frame_widgets)
3416 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
3417
3418 * xmenu.c (menubar_selection_callback): Do nothing if the callback
3419 is for an unselected radio menu item.
3420
3421 2005-12-11 Richard M. Stallman <rms@gnu.org>
3422
3423 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
3424
3425 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
3426
3427 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
3428 (Flookup_key): Doc fix.
3429 (syms_of_keymap) <function-key-map>: Doc fix.
3430
3431 * fns.c (Frequire): Treat evaluating from a source file
3432 like loading the file.
3433
3434 * floatfns.c (Flog): Doc fix.
3435
3436 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
3437 when we change the buffer.
3438
3439 2005-12-11 Juri Linkov <juri@jurta.org>
3440
3441 * minibuf.c (display_completion_list_1):
3442 Call `minibuffer_completion_contents' instead of using `nil' as
3443 second arg of `Fdisplay_completion_list'.
3444 (keys_of_minibuf): Unbind SPC in
3445 Vminibuffer_local_filename_completion_map (see also related
3446 change on 2005-12-06).
3447
3448 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3449
3450 * emacs.c (main) [MAC_OS8]: Undo previous change.
3451
3452 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
3453 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
3454
3455 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3456
3457 * Makefile.in (macselect.o): Depend on keymap.h.
3458
3459 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
3460 syms_of_macselect.
3461
3462 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
3463 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
3464
3465 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
3466 (syms_of_keyboard) [MAC_OS]: Initialize it.
3467 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
3468
3469 * mac.c (Qundecoded_file_name): New variable.
3470 (syms_of_mac): Initialize it.
3471 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
3472 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
3473 (Fmac_coerce_ae_data): New defun.
3474 (syms_of_mac): Defsubr it.
3475
3476 * macselect.c: Include keymap.h.
3477 (mac_ready_for_apple_events): New variable.
3478 (Vmac_apple_event_map, Qmac_apple_event_class)
3479 (Qmac_apple_event_id): New variables.
3480 (syms_of_macselect): Initialize them.
3481 (Qundefined, mac_store_apple_event): Add externs.
3482 (struct apple_event_binding): New struct.
3483 (find_event_binding_fun, find_event_binding)
3484 (mac_find_apple_event_spec, defer_apple_events)
3485 (mac_handle_apple_event, init_apple_event_handler)
3486 (copy_scrap_flavor_data): New functions.
3487 (Fmac_process_deferred_apple_events): New defun.
3488 (syms_of_macselect): Defsubr it.
3489 (mac_store_services_event): Fix extern.
3490 (mac_handle_service_event): Don't allocate Lisp objects during
3491 asynchronous input processing. Use mac_store_services_event
3492 instead of mac_store_application_menu_event.
3493
3494 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
3495 (Qpreferences): Remove variables.
3496 (syms_of_macterm) : Don't initialize them.
3497 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
3498 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
3499 (init_required_apple_events, do_ae_open_application)
3500 (do_ae_print_documents, do_ae_open_documents)
3501 (do_ae_quit_application): Remove functions and prototypes.
3502 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
3503 (mac_find_apple_event_spec): Add externs.
3504 (mac_store_application_menu_event): Remove function.
3505 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
3506 (mac_handle_command_event): Create Apple event from Carbon event.
3507 Use mac_store_apple_event instead of mac_store_application_menu_event.
3508 [MAC_OSX] (mac_store_services_event): Likewise.
3509 (struct SelectionRange, SelectionRange): Remove struct and typedef.
3510 [MAC_OS8] (main): Call init_apple_event_handler instead of
3511 init_required_apple_events.
3512 (mac_initialize) [MAC_OSX]: Likewise.
3513 [!USE_CARBON_EVENTS] (mac_wait_next_event):
3514 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
3515
3516 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
3517 Add externs.
3518 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
3519 (Fmac_get_preference): Add EXFUN.
3520
3521 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
3522 event.
3523
3524 2005-12-09 Richard M. Stallman <rms@gnu.org>
3525
3526 * xfns.c (Fx_create_frame): Reinstate previous change.
3527
3528 2005-12-09 Eli Zaretskii <eliz@gnu.org>
3529
3530 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
3531 GDB to the abort dialog.
3532
3533 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
3534
3535 * indent.c (Fvertical_motion): Force move if starting on
3536 stretch glyph.
3537
3538 2005-12-08 Richard M. Stallman <rms@gnu.org>
3539
3540 * lread.c (read_escape) <\s>: Don't treat strings specially.
3541
3542 * xfns.c (Fx_create_frame): Comment out previous change.
3543
3544 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3545
3546 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
3547 when needed.
3548
3549 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3550
3551 * minibuf.c (keys_of_minibuf): Just unbind SPC in
3552 Vminibuffer_local_filename_completion_map rather than forcing it
3553 explicitly to the same binding as the global map.
3554
3555 2005-12-06 Ken Raeburn <raeburn@gnu.org>
3556
3557 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
3558 * bytecode.c (Fbyte_code): Likewise.
3559 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
3560 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
3561 * undo.c (truncate_undo_list): Likewise.
3562
3563 2005-12-05 Richard M. Stallman <rms@gnu.org>
3564
3565 * window.c (enlarge_window): Eliminate arg preserve_before.
3566 Assume it is 0. All callers changed.
3567 (Fenlarge_window, Fshrink_window): Likewise.
3568
3569 2005-12-02 Eli Zaretskii <eliz@gnu.org>
3570
3571 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
3572 fit below.
3573
3574 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3575
3576 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
3577
3578 * xfns.c (x_real_positions): int ign => unsigned int.
3579 (xg_set_icon_from_xpm_data): Remove unused variable err.
3580 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
3581 to remove compiler warning.
3582 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
3583
3584 2005-12-02 David Reitter <david.reitter@gmail.com>
3585
3586 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
3587 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
3588 and Vminibuffer_local_must_match_filename_map keymaps.
3589 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
3590
3591 * keymap.c (Vminibuffer_local_filename_completion_map)
3592 (Vminibuffer_local_must_match_filename_map): New variables.
3593 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
3594 parent to be Vminibuffer_local_completion_map and
3595 Vminibuffer_local_must_match_map, respectively.
3596
3597 * commands.h (Vminibuffer_local_filename_completion_map)
3598 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
3599
3600 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
3601
3602 * window.c (Fset_window_configuration): Don't accidentally copy the
3603 window-point of one window to another.
3604
3605 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3606
3607 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
3608
3609 2005-11-30 Kim F. Storm <storm@cua.dk>
3610
3611 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
3612 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
3613 passing it to `emacs_write'.
3614
3615 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
3616
3617 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
3618
3619 2005-11-27 Richard M. Stallman <rms@gnu.org>
3620
3621 * window.c (adjust_window_trailing_edge): New function.
3622 (Fadjust_window_trailing_edge): New function.
3623 (syms_of_window): Defsubr it.
3624 (window_deletion_count): New variable.
3625 (delete_window): Update window_deletion_count.
3626
3627 2005-11-26 Eli Zaretskii <eliz@gnu.org>
3628
3629 * minibuf.c (syms_of_minibuf): Mention the extension of
3630 `completion-auto-help's meaning by complete.el.
3631
3632 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
3633
3634 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3635 Handle :inherit property as a lisp expression.
3636
3637 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3638
3639 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
3640 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
3641 Qsuper, and Qmodifier_value.
3642 (Vmac_control_modifier, Vmac_option_modifier)
3643 (Vmac_command_modifier, Vmac_function_modifier)
3644 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
3645 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
3646 (Vmac_charset_info_alist): Doc fixes.
3647
3648 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3649
3650 * emacs.c (main) [MAC_OSX]: Change working directory to home
3651 directory if `-psn_*' option is specified.
3652
3653 * mac.c (DECODE_UTF_8): Remove macro.
3654 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
3655 created from cfstring_to_lisp.
3656 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
3657 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
3658
3659 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
3660 Add prototype.
3661
3662 2005-11-21 Ken Raeburn <raeburn@gnu.org>
3663
3664 * keymap.c (shadow_lookup): Use make_number to pass a number to
3665 Fsubstring.
3666
3667 2005-11-21 Juri Linkov <juri@jurta.org>
3668
3669 * puresize.h (BASE_PURESIZE): Increment to 1180000.
3670
3671 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
3672
3673 * xfaces.c (Finternal_set_lisp_face_attribute):
3674 Use :ignore-defface for new frame defaults when `unspecified' is
3675 supplied.
3676 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
3677 (merge_face_vectors): Don't do :ignore-defface overwriting here.
3678 (Finternal_merge_in_global_face): Do it here.
3679
3680 2005-11-20 Juri Linkov <juri@jurta.org>
3681
3682 * charset.c (invalid_character): Use Lisp-readable syntax
3683 for octal and hex. Reorder decimal, octal and hex values.
3684
3685 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
3686
3687 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
3688 this type is recognised when debugging.
3689
3690 2005-11-19 Andreas Schwab <schwab@suse.de>
3691
3692 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
3693 Lisp_Cons and Lisp_Float.
3694
3695 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3696
3697 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
3698 New variable.
3699 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
3700 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
3701 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
3702 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
3703
3704 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
3705
3706 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
3707
3708 * xfaces.c (Qignore_defface): New variable.
3709 (syms_of_xfaces): Provide `:ignore-defface'.
3710 (IGNORE_DEFFACE_P): New macro.
3711 (check_lface_attrs, lface_fully_specified_p)
3712 (Finternal_set_lisp_face_attribute)
3713 (Fface_attribute_relative_p, Fmerge_face_attribute):
3714 Handle Qignore_defface as a possible value.
3715 (merge_face_vectors): The merged face is `unspecified' if the
3716 mergee specifies `:ignore-defface'.
3717
3718 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3719
3720 * lread.c (readevalloop): Add missing GCPROs.
3721
3722 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
3723
3724 * xfns.c (xg_set_icon_from_xpm_data): New function.
3725
3726 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
3727 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
3728
3729 * xterm.c (x_bitmap_icon): Use the xpm if available.
3730
3731 * image.c (x_create_bitmap_from_xpm_data): New function.
3732 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
3733
3734 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
3735
3736 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
3737
3738 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
3739
3740 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
3741
3742 2005-11-15 Andreas Schwab <schwab@suse.de>
3743
3744 * lisp.h (struct Lisp_Cons): Make cdr a union.
3745 (XCDR_AS_LVALUE): Adjust.
3746 (struct Lisp_Float): Make data a union.
3747 (XFLOAT_DATA): Adjust.
3748
3749 * alloc.c (free_float): Make free list chaining aliasing-safe.
3750 (make_float): Likewise.
3751 (free_cons): Likewise.
3752 (Fcons): Likewise.
3753 (check_cons_list): Likewise.
3754 (Fmake_symbol): Likewise.
3755 (allocate_misc): Likewise.
3756 (free_misc): Likewise.
3757 (gc_sweep): Likewise.
3758
3759 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3760
3761 * mac.c (HASHKEY_QUERY_CACHE): New define.
3762 (xrm_create_database, xrm_q_put_resource): Empty query cache.
3763 (xrm_get_resource): Use query cache.
3764
3765 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
3766 inhibit_window_system is set.
3767
3768 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3769
3770 * macgui.h (USE_CG_TEXT_DRAWING): New define.
3771 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
3772 and cg_glyphs.
3773
3774 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
3775 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
3776 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
3777 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
3778 not used and font substitution never occurs for ASCII and Latin-1
3779 characters.
3780 (XLoadQueryFont): Maximum and minimum metrics are now those among
3781 ASCII characters.
3782 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
3783 height adjustments for Courier, Helvetica, and Times.
3784
3785 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
3786
3787 2005-11-11 David Reitter <david.reitter@gmail.com>
3788
3789 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
3790 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
3791 Vmac_control_modifier / mac-control-modifier,
3792 Vmac_option_modifier / mac-option-modifier,
3793 Vmac_command_modifier / mac-command-modifier.
3794 (mac_to_emacs_modifiers): Use the new style modifier
3795 variables. Return UInt32 (modifiers are longs now.)
3796 (backtranslate_modified_keycode): New function (refactoring).
3797 (XTread_socket): Use new modifier variables and refactored function.
3798 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
3799 no dedicated meta key. Not in use anyway.)
3800 (convert_fn_keycode): Map Fn-keys to their original keycode
3801 using a table (english keyboard only).
3802
3803 2005-11-11 Kim F. Storm <storm@cua.dk>
3804
3805 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
3806 Add post hook to "backtrace" to always dump lisp call stack to
3807 increase chance of people sending it to us when reporting bugs.
3808
3809 * doc.c (Fsubstitute_command_keys): Doc fix.
3810
3811 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
3812
3813 * xdisp.c (handle_stop): Skip overlay string handling if
3814 ignore_overlay_strings_at_pos_p is set.
3815 (set_iterator_to_next): At end of display vector, set
3816 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
3817 string, so we skip those overlay strings at current pos.
3818
3819 2005-11-10 Lars Hansen <larsh@soem.dk>
3820
3821 * fileio.c (file-regular-p): Doc fix.
3822
3823 2005-11-10 Kim F. Storm <storm@cua.dk>
3824
3825 * alloc.c (valid_lisp_object_p): New function to validate that
3826 an object is really a valid Lisp_Object.
3827
3828 * lisp.h (valid_lisp_object_p): Add prototype.
3829
3830 * print.c (safe_debug_print): New function to be called from gdb
3831 to print Lisp objects; use valid_lisp_object_p to avoid crashing
3832 if user tries to print something which is not a Lisp object.
3833
3834 * .gdbinit (pp, pp1): Use safe_debug_print.
3835 (pv, pv1): New commands to print value of a lisp variable.
3836
3837 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
3838
3839 * .gdbinit (pp1): New user-defined function.
3840
3841 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3842
3843 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
3844
3845 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
3846 related variables for dumped executable.
3847
3848 * unexmacosx.c (unexec_write_zero): New function.
3849 (copy_data_segment): Clear uninitialized local variables in
3850 statically linked libraries.
3851
3852 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
3853
3854 2005-11-09 Juri Linkov <juri@jurta.org>
3855
3856 * keymap.c (shadow_lookup): If Flookup_key returns a number,
3857 call it again with a sub-key-sequence, and if its return value
3858 is non-nil (sub-key is bound), return nil.
3859
3860 2005-11-08 Kim F. Storm <storm@cua.dk>
3861
3862 * process.c (Fsignal_process): Recognize signal names with and
3863 without SIG prefix, e.g. SIGHUP and HUP.
3864
3865 * search.c (search_buffer): No need to initialize base_pat.
3866
3867 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
3868
3869 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
3870 Don't abuse the `mini' arg. Use the `obj' arg instead.
3871
3872 2005-11-04 Kim F. Storm <storm@cua.dk>
3873
3874 * xdisp.c (show_mouse_face): Clear mouse face to eol.
3875
3876 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
3879 font-lock.elc and jit-lock.elc.
3880
3881 2005-11-03 Richard M. Stallman <rms@gnu.org>
3882
3883 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
3884 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
3885 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
3886
3887 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
3888
3889 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
3890
3891 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * window.c (Fdisplay_buffer): Fix last change to not use
3894 a dedicated window.
3895
3896 2005-11-01 Kim F. Storm <storm@cua.dk>
3897
3898 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
3899 Instead, rotate the bottom angle bitmap 180 degrees to indicate
3900 that the bottom row does not end in a newline.
3901
3902 2005-11-01 Andreas Schwab <schwab@suse.de>
3903
3904 * unexelf.c (unexec): Handle .plt section in BSS segment.
3905
3906 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
3909
3910 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
3911 determine whether to consider dedicated windows as well.
3912 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
3913 (Fdisplay_buffer): Do consider dedicated windows in those cases where
3914 we will split the window rather than reuse it.
3915 Don't try to use windows on other displays.
3916
3917 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
3918
3919 * puresize.h (BASE_PURESIZE): Increment to 1170000.
3920
3921 2005-10-31 Romain Francoise <romain@orebokech.com>
3922
3923 * macfns.c: Update copyright year.
3924 * m/gould.h: Likewise.
3925
3926 2005-10-30 Kim F. Storm <storm@cua.dk>
3927
3928 * xdisp.c (display_line): Restore it->current_x and call
3929 extend_face_to_end_of_line when last glyph doesn't fit on line.
3930 (set_glyph_string_background_width): Remove specific tests here
3931 to see if face background should extend to end of line. Simplify.
3932
3933 2005-10-30 Richard M. Stallman <rms@gnu.org>
3934
3935 * alloc.c (BYTES_USED): Use uordblks, not arena.
3936 (bytes_used_when_reconsidered): New variable.
3937 (emacs_blocked_free): Set that.
3938
3939 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
3940
3941 * alloc.c (emacs_blocked_free): Fix typo.
3942
3943 2005-10-29 Richard M. Stallman <rms@gnu.org>
3944
3945 * data.c (Fmake_variable_frame_local): Doc fix.
3946
3947 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
3948 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
3949 controls whether to save and restore mode_line_proptrans_alist.
3950 Callers changed.
3951 (unwind_format_mode_line): Work with that feature.
3952 (redisplay_internal): Don't call prepare_menu_bars if memory full.
3953 (move_elt_to_front): New function.
3954 (display_mode_element): Use move_elt_to_front.
3955 Don't bother munging text props on a null string.
3956 Delete obsolete elts from mode_line_proptrans_alist.
3957 (decode_mode_spec): Test Vmemory_full, not spare_memory.
3958 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
3959
3960 * lisp.h (memory_full_cons_threshold): Declare.
3961 (internal_lisp_condition_case): Declare.
3962
3963 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
3964 (Fmemory_full_p): Function deleted.
3965 (syms_of_alloc): Don't defsubr it.
3966 (memory_full_cons_threshold): New variable.
3967 (spare_memory): Now a vector of 7 elts.
3968 (buffer_memory_full): Don't set Vmemory_full here.
3969 (xfree): Don't try to refill here.
3970 (emacs_blocked_free): Record BYTES_USED in local var.
3971 (memory_full): Now free all the slots in spare_memory.
3972 (refill_memory_reserve): Allocate each slot in spare_memory.
3973 (init_alloc_once): Call refill_memory_reserve.
3974
3975 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
3976
3977 * eval.c (internal_lisp_condition_case): New function.
3978 (Fcondition_case): Use internal_lisp_condition_case.
3979 (Feval): Test Vmemory_full and memory_full_cons_threshold.
3980 (Ffuncall): Likewise.
3981
3982 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
3983
3984 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
3985
3986 * syntax.c (Fparse_partial_sexp): Fix docstring.
3987
3988 2005-10-28 Romain Francoise <romain@orebokech.com>
3989
3990 * puresize.h (BASE_PURESIZE): Increment to 1130000.
3991
3992 2005-10-28 Richard M. Stallman <rms@gnu.org>
3993
3994 * xfns.c (syms_of_xfns): Provide `x' as feature.
3995
3996 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
3997
3998 * editfns.c (Fformat): Don't include string padding
3999 between info[n].start and info[n].end.
4000
4001 * alloc.c (spare_memory): No longer static.
4002 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
4003
4004 * puresize.h (BASE_PURESIZE): Increment to 1120000.
4005
4006 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
4007
4008 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
4009
4010 * fringe.c (update_window_fringes): Handle case where buffer ends
4011 with a newline.
4012
4013 2005-10-27 Kenichi Handa <handa@m17n.org>
4014
4015 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
4016
4017 2005-10-24 Kenichi Handa <handa@m17n.org>
4018
4019 * charset.h (charset_mule_unicode_0100_24ff)
4020 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4021 Extern them.
4022
4023 * charset.c (charset_mule_unicode_0100_24ff)
4024 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4025 New variables.
4026 (Fsetup_special_charsets): Initialize them.
4027
4028 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4029 supported Unicode characters.
4030
4031 2005-10-25 Jason Rumney <jasonr@gnu.org>
4032
4033 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
4034
4035 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4036
4037 * image.c [MAC_OS] (image_load_qt_1): Check image size.
4038 Use GraphicsImportGetImageDescription instead of
4039 GraphicsImportGetNaturalBounds.
4040 [MAC_OSX] (image_load_quartz2d): Check image size.
4041 [MAC_OS] (xpm_load_image): Likewise.
4042
4043 * macterm.c (last_mouse_glyph_frame): New var.
4044 (note_mouse_movement): Say mouse moved if current frame differs
4045 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4046 (XTmouse_position): Set last_mouse_glyph_frame.
4047 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
4048 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
4049 Use EndianU16_BtoN.
4050 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
4051 (x_per_char_metric, XLoadQueryFont)
4052 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
4053 glyph bounds.
4054 (mac_to_x_fontname, mac_do_list_fonts)
4055 (mac_initialize_display_info): Change screen resolutions to 72dpi.
4056
4057 2005-10-25 Masatake YAMATO <jet@gyve.org>
4058
4059 * minibuf.c (Fdisplay_completion_list): Small doc fix.
4060
4061 2005-10-24 Kim F. Storm <storm@cua.dk>
4062
4063 * xterm.c: Undo 2005-10-23 change.
4064 (last_mouse_glyph_frame): New var.
4065 (note_mouse_movement): Say mouse moved if current frame differs
4066 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4067 (XTmouse_position): Set last_mouse_glyph_frame.
4068 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
4069 last_mouse_glyph] on mouse up/down event.
4070
4071 * editfns.c (Fcompare_buffer_substrings): Fix last change.
4072
4073 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4074
4075 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
4076
4077 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4078
4079 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4080 so tool tips don't interfere with press on tool bar button.
4081
4082 2005-10-23 Richard M. Stallman <rms@gnu.org>
4083
4084 * casetab.c (Fset_case_table): Doc fix.
4085
4086 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
4087 (readevalloop): Compute ENTIRE properly.
4088 (syms_of_lread) <load-history>: Doc fix.
4089
4090 2005-10-21 Richard M. Stallman <rms@gnu.org>
4091
4092 * lread.c (Fload): Simplify gcpro structure.
4093 Gcpro FOUND as well as FILE, but not EFOUND.
4094 Unless preloading, record FOUND instead of FILE in Vload_history.
4095 Rename repeat local FILE to MSG_FILE.
4096 (syms_of_lread) <load-history>: Doc fix.
4097
4098 2005-10-21 Kenichi Handa <handa@m17n.org>
4099
4100 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
4101
4102 2005-10-20 Kim F. Storm <storm@cua.dk>
4103
4104 * buffer.c (clone_per_buffer_values): Remove unused var tem.
4105 (init_buffer): Remove unused vars dotstat, pwdstat.
4106
4107 * ccl.c (check_ccl_update): Remove unused var vp.
4108
4109 * fileio.c (auto_save_error): Call SAFE_FREE.
4110
4111 * fns.c (Fchar_table_range): Remove unused var i.
4112
4113 * minibuf.c (display_completion_list_1): New wrapper function
4114 for Fdisplay_completion_list.
4115 (Fminibuffer_completion_help): Use it.
4116
4117 * term.c (encode_terminal_code): Remove unused var src_start.
4118
4119 * window.c (Fwindow_tree): Remove unused var alist.
4120
4121 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
4122
4123 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
4124
4125 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
4126
4127 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
4128
4129 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
4130
4131 2005-10-20 Andreas Schwab <schwab@suse.de>
4132
4133 * minibuf.c (Fdisplay_completion_list): Doc fix.
4134
4135 2005-10-19 Kim F. Storm <storm@cua.dk>
4136
4137 * image.c (check_image_size): Handle integer Vmax_image_size value
4138 directly as max pixel value. Use default frame size for null frame.
4139 (syms_of_image) <max-image-size>: Describe integer value.
4140
4141 2005-10-19 Romain Francoise <romain@orebokech.com>
4142
4143 * emacs.c (main): Update copyright year.
4144
4145 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * image.c (Vmax_image_size): New variable.
4148 (check_image_size): New function.
4149 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
4150 (gif_load, gs_load): Use it.
4151 (lookup_image): Try loading again if previous load failed.
4152 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
4153 to display in, NULL if none.
4154 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
4155 argument.
4156
4157 2005-10-18 Richard M. Stallman <rms@gnu.org>
4158
4159 * search.c (Fstring_match): Doc fix.
4160
4161 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4162
4163 * macterm.c (note_mouse_movement): Use PtInRect.
4164 (XTread_socket): Also ignore mouse motion just before a button
4165 release event. Don't process button release event when mouse is
4166 not grabbed.
4167
4168 2005-10-16 Masatake YAMATO <jet@gyve.org>
4169
4170 * minibuf.c (Fdisplay_completion_list): Add new optional
4171 argument COMMON_SUBSTRING. Bind `completion-common-substring'
4172 to the optional argument during running `completion-setup-hook'.
4173
4174 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4175
4176 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
4177 Allow nil as argument.
4178 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
4179 for encoding arguments as UTF-16 in native byte order, no BOM.
4180
4181 * macfns.c (Fx_create_frame): Add debugging code.
4182 (Fx_show_tip): Set frame pixel width and height.
4183
4184 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
4185 (FRAME_NORMAL_GC): New macro.
4186 (mac_draw_line, mac_clear_area, mac_clear_window)
4187 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
4188 (mac_draw_image_string, mac_draw_image_string_16): Rename from
4189 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
4190 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
4191 All uses changed.
4192 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
4193 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
4194 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
4195 (mac_draw_string_16, mac_draw_image_string)
4196 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
4197 (mac_scroll_area): Drawing functions now take frame as destination.
4198 All uses changed.
4199 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
4200 (x_draw_fringe_bitmap): Set clipping area in face->gc.
4201
4202 * macterm.h (mac_clear_area): Add extern.
4203
4204 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4205
4206 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
4207 changes for xterm.c.
4208
4209 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
4210
4211 2005-10-14 Kenichi Handa <handa@m17n.org>
4212
4213 * search.c (search_buffer): Give up BM search on case-fold-search
4214 if one of a target character has a case-equivalence of different
4215 charset even if that target charcter is an ASCII.
4216
4217 * casefiddle.c (casify_object): Fix for the case that case
4218 conversion change the byte length.
4219
4220 2005-10-14 Kim F. Storm <storm@cua.dk>
4221
4222 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
4223 (handle_one_xevent): Only clear help_echo_string; restore it if
4224 note_mouse_movement didn't record any mouse movement.
4225
4226 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
4227 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
4228
4229 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
4230 (Fposn_at_x_y): Fix calculation of x coordinate.
4231 (Fposn_at_point): Return nil if point is hscrolled out of view.
4232
4233 2005-10-13 Andreas Schwab <schwab@suse.de>
4234
4235 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
4236 non-interactive mode.
4237
4238 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4239
4240 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
4241
4242 2005-10-12 Kim F. Storm <storm@cua.dk>
4243
4244 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
4245
4246 2005-10-12 Romain Francoise <romain@orebokech.com>
4247
4248 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
4249
4250 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4251
4252 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
4253 get end of text rows. Obtain header-line/mode-line rows directly.
4254
4255 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
4256 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
4257
4258 2005-10-12 Kim F. Storm <storm@cua.dk>
4259
4260 * xdisp.c (remember_mouse_glyph): New generic version based on
4261 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
4262 properly handle all different window areas.
4263
4264 * dispextern.h (remember_mouse_glyph): Add prototype.
4265
4266 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
4267 (note_mouse_movement, XTmouse_position): Use generic
4268 remember_mouse_glyph, add last_mouse_glyph arg.
4269
4270 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
4271 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
4272 (note_mouse_movement, w32_mouse_position): Use generic
4273 remember_mouse_glyph, add last_mouse_glyph arg.
4274
4275 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
4276 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
4277 (XTmouse_position): Adapt to use generic remember_mouse_glyph
4278 instead of pixel_to_glyph_coords.
4279
4280 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
4281 Fix x position for ON_TEXT when left margin width > 0.
4282
4283 2005-10-11 Kim F. Storm <storm@cua.dk>
4284
4285 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
4286
4287 * keyboard.c (make_lispy_position): Fix buffer calculations for
4288 mouse click or movement in right fringe and the margins.
4289
4290 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
4291
4292 * image.c (fn_jpeg_stdio_src): Don't define it.
4293 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
4294 (our_common_init_source): Rename from `our_init_source'.
4295 (our_common_term_source): Rename from `our_term_source'.
4296 (our_memory_fill_input_buffer): Rename from
4297 `our_fill_input_buffer'.
4298 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
4299 (jpeg_memory_src): Use the new names.
4300 (struct jpeg_stdio_mgr): New struct.
4301 (JPEG_STDIO_BUFFER_SIZE): New constant.
4302 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
4303 (jpeg_file_src): New functions.
4304 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
4305
4306 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4307
4308 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
4309 (fm_font_family_alist): New variable.
4310 (syms_of_macterm): Initialize and staticpro it.
4311 (decode_mac_font_name): Replace '-' in family name with '_' if it
4312 occurs just once. Lower family name.
4313 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
4314 All uses changed. Remove argument MF and code conversion for it.
4315 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
4316 to CHARSET. Parse font size. Lower family name. Return integer
4317 value for status of parsing.
4318 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
4319 Don't use Fdowncase because family name is already lowered by
4320 decode_mac_font_name.
4321 (init_font_name_table): Always call decode_mac_font_name.
4322 Add pair of family name and its reference to fm_font_family_alist.
4323 (mac_clear_font_name_table): Clear fm_font_family_alist.
4324 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
4325 Lookup fm_font_family_alist to get font family reference.
4326 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
4327 name is already lowered by parse_x_font_name.
4328
4329 2005-10-11 Kim F. Storm <storm@cua.dk>
4330
4331 * xterm.c (glyph_rect): Return 0 if position is outside text area.
4332
4333 * keyboard.c (make_lispy_position): Fix buffer position calculation for
4334 mouse click or movement in fringe.
4335
4336 2005-10-10 Jason Rumney <jasonr@gnu.org>
4337
4338 * xterm.c (remember_mouse_glyph): New function.
4339 (note_mouse_movement): Use it to remember the current glyph if changed.
4340 (XTmouse_position): Fix calculation of fake glyph under mouse.
4341 Move code to calculate glyph under mouse into remember_mouse_glyph.
4342
4343 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4344
4345 * emacs.c (USAGE3, standard_args): -nb => -nbi.
4346
4347 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
4348
4349 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
4350 (next_frame, prev_frame, set_term_frame_name): Make static.
4351
4352 * window.c (Fwindow_tree): Fix spelling.
4353
4354 2005-10-09 Romain Francoise <romain@orebokech.com>
4355
4356 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
4357
4358 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4359
4360 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
4361 Add options -nb, --no-bitmap-icon.
4362
4363 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
4364
4365 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4366
4367 * macgui.h (MAX_CLIP_RECTS): New define.
4368 (struct _XGC): New member clip_region.
4369 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
4370 clip_rects.
4371
4372 * macterm.c (GC_CLIP_REGION): New macro.
4373 (saved_port_clip_region): New variable.
4374 (mac_begin_clip, mac_end_clip): New functions.
4375 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
4376 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
4377 (mac_copy_area_with_mask, mac_scroll_area): Use them.
4378 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
4379 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
4380 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
4381 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
4382 rectangles stored in gc.
4383 (XFreeGC): Dispose of clipping region.
4384 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
4385 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
4386 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
4387 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
4388 (x_draw_bar_cursor): Use them.
4389 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
4390 get multiple clipping rectangles.
4391
4392 * macterm.h (mac_term_init): Add types to extern.
4393 (struct mac_output): Remove members mWP and pending_menu_activation.
4394 Put members scroll_bar_foreground_pixel and
4395 scroll_bar_background_pixel in #if 0.
4396 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
4397
4398 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
4399 Add debugging code.
4400
4401 2005-10-08 Kim F. Storm <storm@cua.dk>
4402
4403 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
4404
4405 2005-10-07 Kim F. Storm <storm@cua.dk>
4406
4407 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
4408 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
4409 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
4410
4411 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4412
4413 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
4414 to for_overlaps. Now occupy 3 bits.
4415 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
4416 (OVERLAPS_ERASED_CURSOR): New defines.
4417 (struct redisplay_interface): Add new OVERLAPS arg to member
4418 fix_overlapping_area.
4419 (x_fix_overlapping_area): Add new OVERLAPS arg.
4420 (get_glyph_string_clip_rects): Add extern.
4421
4422 * dispnew.c (redraw_overlapping_rows):
4423 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
4424
4425 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
4426 for_overlaps.
4427 (get_glyph_string_clip_rects): New function created from
4428 get_glyph_string_clip_rect. Set clipping rectangles according to the
4429 value of for_overlaps. Enable to store multiple clipping rectangles.
4430 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
4431 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
4432 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
4433 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
4434 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
4435 calculating clipping rectangles later. Call x_fix_overlapping_area
4436 with new OVERLAPS arg to draw only erased cursor area.
4437 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
4438 to draw overlaps in both preceding and succeeding rows.
4439
4440 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
4441 struct glyph_string to for_overlaps.
4442
4443 2005-10-04 Richard M. Stallman <rms@gnu.org>
4444
4445 * alloc.c (refill_memory_reserve): Conditionalize the body,
4446 not the function's existence.
4447
4448 2005-10-04 Kim F. Storm <storm@cua.dk>
4449
4450 * window.c (window_split_tree): New function.
4451 (Fwindow_split_tree): New defun.
4452 (syms_of_window): Defsubr it.
4453
4454 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4455
4456 * macterm.c (mac_invert_rectangle): New function.
4457 (XTflash): Use it.
4458
4459 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
4460
4461 * regex.h (re_char): Don't expose it in the interface.
4462 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
4463
4464 * regex.c (re_char): Move it back here.
4465 (re_set_whitespace_regexp): Change the arg's type to not use it.
4466
4467 * keyboard.c (make_lispy_event): If point has moved between down and up
4468 event, make it a drag, not a click, to mirror what
4469 mouse-drag-region expects.
4470
4471 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4472
4473 * lisp.h (fatal): Undo previous change.
4474 * term.c (fatal): Undo previous change.
4475
4476 2005-10-01 Richard M. Stallman <rms@gnu.org>
4477
4478 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
4479
4480 2005-10-01 Kim F. Storm <storm@cua.dk>
4481
4482 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
4483
4484 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4485
4486 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
4487
4488 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
4489 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4490 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
4491 Try ATSUI-compatible 12pt Monaco font first.
4492
4493 * macgui.h (struct _XCharStruct): New member valid_p.
4494 (STORE_XCHARSTRUCT): Set valid_p.
4495 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
4496
4497 * macterm.c (mac_draw_string_common, x_per_char_metric)
4498 (mac_compute_glyph_string_overhangs, init_font_name_table)
4499 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
4500 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
4501 (x_draw_glyph_string_background)
4502 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
4503 XDrawImageString. Always draw background and foreground separately.
4504 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
4505 functions for one-byte chars when using ATSUI-compatible fonts.
4506 (atsu_font_id_hash) [USE_ATSUI]: New variable.
4507 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
4508 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
4509 max_char_or_byte2 more in detail.
4510 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
4511
4512 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4513
4514 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
4515 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
4516
4517 * unexelf.c (fatal): Fix prototype.
4518
4519 * term.c (fatal): Implement using varargs.
4520
4521 * regex.c (re_char): Move typedef ...
4522 * regex.h (re_char): ... here.
4523 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
4524
4525 * emacs.c (malloc_set_state): Fix return type.
4526 (endif): Fix type.
4527
4528 * lisp.h (fatal): Add argument types.
4529
4530 * dispextern.h (fatal): Delete prototype.
4531
4532 * systime.h (make_time): Prototype moved from ...
4533 * editfns.c (make_time): ... here.
4534
4535 * editfns.c: Move systime.h include after lisp.h.
4536 * dired.c:
4537 * xsmfns.c:
4538 * process.c: Likewise.
4539
4540 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
4541 Add parameter types.
4542 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
4543 (emacs_blocked_free): Change definition to match __free_hook.
4544 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4545 (emacs_blocked_realloc): Change definition to match __realloc_hook.
4546
4547 2005-09-30 Romain Francoise <romain@orebokech.com>
4548
4549 * minibuf.c (Fread_buffer): Follow convention for reading from the
4550 minibuffer with a default value. Doc fix.
4551
4552 2005-09-29 Juri Linkov <juri@jurta.org>
4553
4554 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
4555 Rename argument name `string' to `format-string'.
4556 (Fformat): Doc fix.
4557
4558 2005-09-28 Kim F. Storm <storm@cua.dk>
4559
4560 * image.c (gif_load): Fix size of allocated image buffer
4561 for images where a sub-image may be larger than the image's
4562 total height/width specifications.
4563
4564 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4565
4566 * macgui.h (struct _XCharStruct): Each member now takes short value.
4567
4568 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
4569
4570 * xfaces.c (lookup_derived_face): Add parameter type.
4571
4572 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
4573
4574 * marker.c (verify_bytepos): Add parameter type.
4575
4576 * process.c (get_operating_system_release): Move prototype ...
4577
4578 * systime.h (get_operating_system_release): ... here.
4579
4580 * xterm.c (handle_one_xevent): Refer to union field to match the
4581 type required by the function definition.
4582 (set_vertical_scroll_bar): Move prototype ...
4583
4584 * xterm.h: ... here.
4585
4586 * fns.c (internal_equal, seed_random): Fix prototypes.
4587 (internal_equal): Add missing parameter.
4588
4589 2005-09-25 Richard M. Stallman <rms@gnu.org>
4590
4591 * keyboard.c (update_menu_bindings): Variable deleted.
4592 (syms_of_keyboard): Don't defvar it.
4593 (parse_menu_item): Don't test it.
4594
4595 2005-09-23 Richard M. Stallman <rms@gnu.org>
4596
4597 * editfns.c (Fformat): Explicitly test for end of format string
4598 and don't use `index'.
4599
4600 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
4601
4602 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
4603 Define BROKEN_GET_CURRENT_DIR_NAME.
4604
4605 * sysdep.c (get_current_dir_name): Also define if
4606 BROKEN_GET_CURRENT_DIR_NAME.
4607
4608 * m/ibmrs6000.h: Test for USG5, not USG5_4.
4609
4610 2005-09-22 Kim F. Storm <storm@cua.dk>
4611
4612 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
4613 (message2): Fix commentary. Ok to use alloca'ed memory.
4614 Still not ok to use Lisp string data (because of GC).
4615 (set_message): Add comment why GC cannot happen.
4616
4617 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4618
4619 * macterm.c (xlfdpat_block_match_1): Fix assertion.
4620 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
4621 variants for a scalable font multiple times.
4622
4623 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4624
4625 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
4626 Setup slave tty options before forking.
4627
4628 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4629
4630 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
4631 positions have been set for the frame (as is done for frames in
4632 special-display-buffer-names).
4633
4634 2005-09-19 Kim F. Storm <storm@cua.dk>
4635
4636 * editfns.c (Fformat): Don't scan past end of format string that
4637 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
4638
4639 2005-09-18 Andreas Schwab <schwab@suse.de>
4640
4641 * window.h (struct window): Remove height_fixed_p, no longer set.
4642
4643 * window.c (make_window): Don't initialize height_fixed_p.
4644 (window_fixed_size_p): Don't use it.
4645
4646 2005-09-18 John Paul Wallington <jpw@pobox.com>
4647
4648 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
4649
4650 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4651
4652 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
4653
4654 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4655 New variables.
4656 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
4657 file selection.
4658
4659 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
4660
4661 2005-09-17 Eli Zaretskii <eliz@gnu.org>
4662
4663 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
4664 (obj): Use XMENU_OBJ, not a literal xmenu.o.
4665
4666 2005-09-16 Romain Francoise <romain@orebokech.com>
4667
4668 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
4669
4670 2005-09-15 Richard M. Stallman <rms@gnu.org>
4671
4672 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
4673 (display_mode_element): Instead of `lisp_string' and `this',
4674 record `offset' and increment that.
4675 `last_offset' replaces `last'.
4676
4677 * Makefile.in (XMENU_OBJ): Variable deleted.
4678 (obj): Use xmenu.o unconditionally.
4679 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
4680
4681 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
4682
4683 2005-09-15 Kim F. Storm <storm@cua.dk>
4684
4685 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
4686 (reseat_at_next_visible_line_start): Likewise (in xassert).
4687
4688 2005-09-14 Romain Francoise <romain@orebokech.com>
4689
4690 * fileio.c (write_region_inhibit_fsync): New variable.
4691 (Fwrite_region): Use it to skip call to fsync.
4692 (syms_of_fileio): Initialize it.
4693
4694 2005-09-14 Kenichi Handa <handa@m17n.org>
4695
4696 * coding.c (code_convert_region_unwind): Argument format changed.
4697 (run_pre_post_conversion_on_str): If pre-write-conversion function
4698 changed the current buffer, delete the new buffer.
4699 (run_pre_write_conversin_on_c_str): Likewise.
4700
4701 * fileio.c (Fexpand_file_name): Check multibyteness of
4702 default_directory.
4703
4704 2005-09-13 Kenichi Handa <handa@m17n.org>
4705
4706 * composite.c (compose_chars_in_text): Delete it.
4707
4708 * composite.h (compose_chars_in_text): Delete extern.
4709
4710 2005-09-13 Kim F. Storm <storm@cua.dk>
4711
4712 * print.c (print_error_message): Fix last change.
4713
4714 2005-09-12 Kim F. Storm <storm@cua.dk>
4715
4716 * composite.c (compose_chars_in_text): Fix setup of `pend'.
4717 Unconditionally reload `ptr' and `pend' after eval.
4718
4719 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
4720
4721 * print.c (print_error_message): Pass copy of caller name to
4722 message_dolog.
4723
4724 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
4725
4726 2005-09-12 Kenichi Handa <handa@m17n.org>
4727
4728 * xdisp.c (display_mode_element): Be sure to make variables THIS
4729 and LISP_STRING point into a string data of ELT.
4730
4731 2005-09-12 Kim F. Storm <storm@cua.dk>
4732
4733 * editfns.c (Ftranslate_region_internal): Reload `tt' after
4734 signal_after_change that may have GC'ed.
4735 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
4736
4737 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
4738 after insert while runs signal_after_change.
4739
4740 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
4741 declaration to where it is used.
4742
4743 * w32.c (check_windows_init_file): Fix allocation of error buffer.
4744
4745 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
4746 (x_set_name_internal): Call x_encode_text with new FREEP arg to
4747 know if xfree is needed instead of guessing.
4748
4749 * xterm.h (x_encode_text): Remove prototype.
4750
4751 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
4752
4753 * w32term.c (x_bitmap_icon): Load small icons too.
4754
4755 2005-09-10 Romain Francoise <romain@orebokech.com>
4756
4757 * buffer.c (init_buffer): Grow buffer to add directory separator
4758 and terminal zero. Fix typos.
4759
4760 2005-09-10 Eli Zaretskii <eliz@gnu.org>
4761
4762 * buffer.c (init_buffer): Fix error message for failed call to
4763 get_current_dir_name.
4764 (get_current_dir_name): Remove prototype.
4765
4766 * xsmfns.c (get_current_dir_name): Remove prototype.
4767
4768 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4769 Add prototype.
4770
4771 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
4772 Don't #undef NULL after including blockinput.h.
4773
4774 * config.in: Regenerated.
4775
4776 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
4777
4778 Remove the MAXPATHLEN limitations:
4779
4780 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
4781 New function.
4782
4783 * buffer.c (init_buffer): Use it.
4784
4785 * xsmfns.c (smc_save_yourself_CB): Ditto.
4786
4787 2005-09-09 Kim F. Storm <storm@cua.dk>
4788
4789 * doc.c (Fsubstitute_command_keys): Lookup key binding for
4790 commands that are remapped from some other command.
4791
4792 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
4793 flag in disabled rows below the window.
4794
4795 * frame.h (struct frame): New member updated_p.
4796
4797 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
4798 member. Remove local `updated' array and associated variables.
4799
4800 2005-09-07 Kim F. Storm <storm@cua.dk>
4801
4802 * xdisp.c (handle_display_prop): Respect overlay window property.
4803
4804 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
4805 Fixes crash reported by YAMAMOTO Mitsuharu.
4806
4807 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4808
4809 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
4810 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
4811 (xlfdpat_block_match_1, xlfdpat_match): New functions.
4812 (xlfdpat_block_match): New macro.
4813 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
4814 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
4815 (add_font_name_table_entry): Increase font_name_table_size more
4816 rapidly.
4817 (mac_c_string_match): Remove function.
4818 (mac_do_list_fonts): Use XLFD pattern match instead of regular
4819 expression match.
4820
4821 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
4822
4823 2005-09-03 Richard M. Stallman <rms@gnu.org>
4824
4825 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
4826 (move_it_in_display_line_to): Stop after last char on line even
4827 on a windowing terminal, if that's the specified stop position.
4828
4829 * fns.c (Fsort): Doc fix.
4830
4831 * editfns.c (Fpropertize): Don't insist that properties be symbols.
4832
4833 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
4834
4835 * dired.c (directory_files_internal_unwind, directory_files_internal)
4836 (file_name_completion): Use a Save_Value object rather than a cons of
4837 two 16bit ints to store the DIR*.
4838 (directory_files_internal, file_name_completion): Handle both EINTR and
4839 EAGAIN consistently after `readdir'.
4840
4841 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
4842
4843 * intervals.c (update_interval): Add position info in error.
4844
4845 * dispnew.c (window_to_frame_hpos, update_window):
4846 Avoid gcc warning about unused variable `f'.
4847
4848 2005-08-31 Jason Rumney <jasonr@gnu.org>
4849
4850 * w32menu.c (add_menu_item): If unicode_append_menu returns an
4851 error, revert to using AppendMenu.
4852
4853 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4854
4855 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
4856 All uses changed.
4857 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
4858 cases.
4859 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
4860 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
4861 Use posix_pathname_to_fsspec.
4862 [MAC_OS] (xpm_load_image): Fill in background_transparent field
4863 while we have mask.
4864
4865 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
4866
4867 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
4868
4869 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4870
4871 * syntax.c (update_syntax_table): Properly reproduce the special +1
4872 setting of e_property at the end of the buffer when bumping into the
4873 INTERVALS_AT_ONCE limit.
4874
4875 2005-08-27 Eli Zaretskii <eliz@gnu.org>
4876
4877 * emacs.c (USAGE1): Fix the description of the -Q option.
4878
4879 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
4880
4881 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
4882
4883 2005-08-26 Kim F. Storm <storm@cua.dk>
4884
4885 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
4886 Don't move PT to new window start.
4887
4888 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4889
4890 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
4891 ICONIFY/DEICONIFY_EVENT.
4892
4893 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
4894 Restore background color.
4895 (mac_handle_visibility_change): New function.
4896 (x_make_frame_invisible, x_iconify_frame)
4897 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
4898 [USE_CARBON_EVENTS] (mac_handle_window_event)
4899 (install_window_handler): Handle visibility change events.
4900 (x_make_frame_visible): Don't reposition window if it is iconified
4901 or asked for visible before. Select and uncollapse window when it
4902 is made visible.
4903 (x_make_frame_invisible): Don't reset x_highlight_frame.
4904 (x_iconify_frame): Likewise. Make invisible frame visible before
4905 it is iconified.
4906 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
4907 (do_window_update): Don't change visibility of invisible frame.
4908
4909 2005-08-22 Juri Linkov <juri@jurta.org>
4910
4911 * term.c (turn_on_face): Check for TS_set_foreground and
4912 TS_set_background depending on standout_mode. Simplify.
4913
4914 2005-08-21 Kim F. Storm <storm@cua.dk>
4915
4916 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
4917 bitmaps on fully visible rows.
4918
4919 * fringe.c (update_window_fringes): Replace FORCE_P arg with
4920 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
4921 and return 0.
4922
4923 * xdisp.c (redisplay_window): Call update_window_fringes with
4924 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
4925
4926 2005-08-20 Richard M. Stallman <rms@gnu.org>
4927
4928 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
4929 (resize_mini_window): Set w->start, and PT, so as to display the tail
4930 end of the buffer, if it doesn't all fit.
4931
4932 2005-08-18 Kim F. Storm <storm@cua.dk>
4933
4934 * xdisp.c (calc_pixel_width_or_height): Use actual display
4935 resolution when available instead of Vdisplay_pixels_per_inch.
4936
4937 2005-08-17 Kim F. Storm <storm@cua.dk>
4938
4939 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
4940
4941 * dispnew.c (buffer_posn_from_coords): Check that target row is
4942 within matrix.
4943
4944 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4945
4946 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
4947 xg_set_frame_icon and call it.
4948
4949 * gtkutil.c (xg_set_frame_icon): New function.
4950
4951 * gtkutil.h (xg_set_frame_icon): Declare it.
4952
4953 2005-08-16 Kim F. Storm <storm@cua.dk>
4954
4955 * dispnew.c (increment_row_positions): Skip non-enabled rows.
4956
4957 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
4958 (Fcurrent_window_configuration): Use VECSIZE macro instead.
4959
4960 2005-08-15 Richard M. Stallman <rms@gnu.org>
4961
4962 * xdisp.c (message3_nolog): Clear echo_message_buffer.
4963
4964 2005-08-15 Kim F. Storm <storm@cua.dk>
4965
4966 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
4967
4968 * process.c (deactivate_process, status_notify, read_process_output)
4969 (update_status, status_convert, decode_status, allocate_pty)
4970 (make_process, remove_process, list_processes_1)
4971 (create_process_1, unwind_request_sigio, read_process_output)
4972 (send_process, keyboard_bit_set): Declare static.
4973 (Fdelete_process): Simplify. Pass process to status_notify, so we
4974 don't try to read output from it.
4975 (status_notify): New arg deleting_process--don't try to read
4976 output from that process.
4977
4978 * lisp.h (deactivate_process, status_notify, read_process_output):
4979 Remove prototypes.
4980
4981 2005-08-14 Richard M. Stallman <rms@gnu.org>
4982
4983 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
4984 define_image_type.
4985
4986 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4987
4988 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
4989 (xg_get_image_for_pixmap): Move some code to
4990 xg_get_pixbuf_from_pix_and_mask, and call it.
4991
4992 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
4993
4994 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
4995 to get an GTK icon and set it with GTK functions to avoid having GTK
4996 override an icon set with just X functions.
4997
4998 2005-08-11 Richard M. Stallman <rms@gnu.org>
4999
5000 * image.c (syms_of_image): Init image_types here, and call
5001 define_image_type.
5002 (init_image): Not here.
5003
5004 2005-08-09 Richard M. Stallman <rms@gnu.org>
5005
5006 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
5007
5008 * lisp.h (QUIT): Throw t to Vthrow_on_input.
5009
5010 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
5011
5012 * floatfns.c (Fexpt): Use floats for negative exponent.
5013
5014 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5015
5016 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
5017 should not be there, causing menu display errors with GTK 2.6.9.
5018
5019 2005-08-07 Richard M. Stallman <rms@gnu.org>
5020
5021 * floatfns.c (Fexpt): Undo previous change.
5022
5023 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
5024 so it can be used with various state vectors.
5025
5026 * emacs.c (endif): Convert -script into -scriptload.
5027 (standard_args): Add -scriptload. Allow -basic-display with one dash.
5028
5029 * fns.c (syms_of_fns): Add `emacs' to features.
5030
5031 * term.c (set_terminal_modes): If no TS_termcap_modes string,
5032 output newlines to scroll the old screen contents off the screen.
5033
5034 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
5035
5036 * floatfns.c (Fexpt): Use floats for negative exponent.
5037 Reported by D Goel.
5038
5039 2005-08-02 Richard M. Stallman <rms@gnu.org>
5040
5041 * frame.c (Fframe_char_width): Doc fix.
5042
5043 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
5044
5045 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
5046 Defvar it.
5047
5048 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
5049
5050 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
5051 (my_create_window, my_create_tip_window): Make static.
5052
5053 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
5054 (my_set_foreground_window, my_destroy_window): Make static.
5055
5056 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
5057
5058 Merge gnulib getopt implementation into Emacs.
5059
5060 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
5061 now part of lib-src.
5062
5063 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
5066
5067 2005-07-25 Jason Rumney <jasonr@gnu.org>
5068
5069 * w32menu.c (w32_menu_display_help): Suppress tooltip when
5070 navigating menus with the keyboard.
5071
5072 2005-07-23 Richard M. Stallman <rms@gnu.org>
5073
5074 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
5075
5076 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
5077 gc_relative_threshold, one by one.
5078
5079 * keyboard.c (read_char): Test gc_cons_threshold.
5080 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
5081
5082 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
5083 gc_relative_threshold, one by one.
5084
5085 * alloc.c (gc_cons_threshold): Not static.
5086 (gc_cons_combined_threshold): Var deleted.
5087 (gc_relative_threshold): New variable.
5088 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
5089 instead of gc_cons_combined_threshold.
5090
5091 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
5092 (gc_cons_combined_threshold): Declaration deleted.
5093
5094 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5095
5096 * mac.c: Don't include stdlib.h or string.h.
5097 (Fdo_applescript, Fmac_file_name_to_posix)
5098 (Fmac_file_name_to_posix): Doc fixes.
5099 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
5100 (Fmac_code_convert_string): Likewise.
5101 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
5102 if the executable is not contained in a bundle.
5103
5104 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
5105 (gray_width, gray_height): Remove defines.
5106 (gray_bits, gray_bitmap_width, gray_bitmap_height)
5107 (gray_bitmap_bits): Remove variables.
5108 (lispy_function_keys): Remove extern.
5109 (free_frame_menubar): Add extern.
5110 (x_window_to_frame): Remove function.
5111 (unwind_create_tip_frame): Add declaration.
5112 (x_set_name_internal): New function.
5113 (x_set_name, x_set_title): Use it.
5114 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
5115 (Fx_display_pixel_height, Fx_display_planes)
5116 (Fx_display_color_cells, Fx_server_max_request_size)
5117 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5118 (Fx_display_mm_height, Fx_display_mm_width)
5119 (Fx_display_backing_store, Fx_display_visual_class)
5120 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
5121
5122 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5123
5124 * macselect.c (Fx_own_selection_internal): Follow error conventions.
5125 (Fx_get_selection_internal, Fx_selection_owner_p)
5126 (Fx_selection_exists_p): Doc fixes.
5127 (syms_of_macselect) <selection-converter-alist>: Likewise.
5128
5129 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
5130
5131 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5132
5133 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
5134 (Fccl_execute_on_string): Likewise; add usage info.
5135
5136 * composite.c (Fcompose_region_internal)
5137 (Fcompose_string_internal):
5138 Improve argument/docstring consistency.
5139
5140 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
5141 Fix typos in docstrings.
5142
5143 * textprop.c (Fnext_char_property_change)
5144 (Fprevious_char_property_change): Doc fixes.
5145
5146 * window.c (Fset_window_margins, Fset_window_fringes):
5147 Improve argument/docstring consistency.
5148
5149 * xfaces.c (Finternal_lisp_face_p): Doc fix.
5150
5151 2005-07-21 Andreas Schwab <schwab@suse.de>
5152
5153 * eval.c (restore_stack_limits): Return a value.
5154
5155 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
5156
5157 * eval.c (Fdefvar): Doc fix.
5158
5159 2005-07-20 Kim F. Storm <storm@cua.dk>
5160
5161 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
5162 Use make_save_value to unwind protect stream.
5163
5164 * lread.c (Fload, load_unwind):
5165 Use make_save_value to unwind protect stream.
5166
5167 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
5168
5169 * eval.c (Fprog2, Fcalled_interactively_p),
5170 (syms_of_eval) <debug-on-quit>: Doc fixes.
5171 (syms_of_eval) <max-specpdl-size>:
5172 (Finteractive_p): Fix typos in docstrings.
5173
5174 2005-07-19 Kim F. Storm <storm@cua.dk>
5175
5176 * w32fns.c (Vx_hand_shape): Variable removed.
5177 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
5178
5179 2005-07-19 Kenichi Handa <handa@m17n.org>
5180
5181 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
5182
5183 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
5184
5185 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
5186
5187 2005-07-18 Kim F. Storm <storm@cua.dk>
5188
5189 * frame.h (struct frame): New member already_hscrolled_p.
5190
5191 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
5192 to avoid redisplay looping hscrolling back and forth ad infinitum.
5193
5194 2005-07-18 Juri Linkov <juri@jurta.org>
5195
5196 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
5197 * keymap.c (Fminor_mode_key_binding):
5198 * macterm.c (mac-emulate-three-button-mouse):
5199 Delete duplicate duplicate words.
5200
5201 2005-07-18 Ken Raeburn <raeburn@gnu.org>
5202
5203 * minibuf.c (Ftest_completion): Fix odd syntax in test.
5204
5205 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5206
5207 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
5208
5209 * macgui.h (struct _XGC): New struct.
5210 (GC): Use it.
5211 (GCForeground, GCBackground, GCFont): Use X11 mask values.
5212 (XCreateGC, XParseGeometry): Move externs to macterm.h.
5213
5214 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
5215 (XSetFont): Add declaration.
5216 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
5217 Remove functions.
5218 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
5219 New defines.
5220 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
5221 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
5222 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
5223 Use them.
5224 (mac_erase_rectangle): New function.
5225 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
5226 (x_draw_stretch_glyph_string): Use it.
5227 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
5228 (XSetBackground, XSetFont): Adjust for new GC implementation.
5229 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
5230 (XTset_vertical_scroll_bar): Clear area under scroll bar.
5231
5232 * macterm.h (struct mac_display_info): Change types of
5233 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
5234 (XCreateGC, XParseGeometry): Move externs from macgui.h.
5235
5236 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
5237
5238 2005-07-16 Richard M. Stallman <rms@gnu.org>
5239
5240 * buffer.c (Fmake_overlay): Doc fix.
5241
5242 2005-07-16 Eli Zaretskii <eliz@gnu.org>
5243
5244 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
5245 Vw32_valid_locale_ids, and Vw32_valid_codepages.
5246
5247 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5248
5249 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
5250 Use Fstring_as_unibyte instead of string_make_unibyte.
5251
5252 2005-07-15 Richard M. Stallman <rms@gnu.org>
5253
5254 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
5255
5256 2005-07-15 Kim F. Storm <storm@cua.dk>
5257
5258 * xdisp.c: Fix redisplay loop in last change.
5259 (IT_POS_VALID_AFTER_MOVE_P): New macro.
5260 (move_it_vertically_backward, move_it_by_lines): Use it.
5261
5262 2005-07-14 Jason Rumney <jasonr@gnu.org>
5263
5264 * w32.c (init_environment): Default HOME directory to user's
5265 appdata directory if possible.
5266
5267 2005-07-14 Kim F. Storm <storm@cua.dk>
5268
5269 * .gdbinit (pitx): Fix output format. Print string charpos.
5270
5271 * lread.c (syms_of_lread): Initialize seen_list.
5272
5273 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
5274
5275 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
5276 Staticpro re_match_object.
5277
5278 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5279
5280 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
5281 dereference.
5282
5283 * macterm.c (mac_window_to_frame): Remove duplicate define.
5284
5285 2005-07-14 Kenichi Handa <handa@m17n.org>
5286
5287 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
5288 (code_convert_region): Adjust for the above change.
5289 (set_conversion_work_buffer): If the work buffer is already in
5290 use, generate a new buffer and return it. Otherwise return Qnil.
5291 (run_pre_post_conversion_on_str): Adjust for the above change.
5292 (run_pre_write_conversin_on_c_str): Likewise.
5293
5294 2005-07-13 Kim F. Storm <storm@cua.dk>
5295
5296 * xdisp.c (start_display): Don't reseat to next visible line start
5297 if current start position is in a string or image.
5298 (move_it_vertically_backward): Be sure to move out of strings and
5299 images when moving it2 forward.
5300 (move_it_by_lines): When moving forward, move to next buffer
5301 position if we end up in a string or image. When moving backward,
5302 count rows moved over when moving to start of current row in case
5303 row starts in middle of a string or image. Also move further
5304 backward if we end up in a string or image.
5305 (try_cursor_movement): If overlay string spans multiple lines,
5306 move backward to set cursor on start of an overlay string.
5307 (cursor_row_p): Row is ok if cursor is at newline from string, but
5308 string starts on this line (so we always position cursor at start
5309 of string).
5310
5311 * indent.c (Fvertical_motion): If start position is on an image,
5312 don't move back if we move too far (that's almost certain to happen).
5313
5314 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
5315 row in minibuffer windows.
5316 (try_window): Don't check margins in minibuffer windows.
5317
5318 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * macterm.c: Don't include stdlib.h or composite.h.
5321 (x_use_underline_position_properties, last_mouse_press_frame)
5322 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
5323 (syms_of_macterm, mac_initialize): Don't initialize them.
5324 (waiting_for_input, initial_argv, initial_argc)
5325 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
5326 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
5327 (extra_keyboard_modifiers): Fix type in extern.
5328 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
5329 (x_scroll_bar_report_motion): Add argument types to declaration.
5330 (mac_compute_glyph_string_overhangs): Add declaration.
5331 (disable_mouse_highlight): Remove unused variable.
5332 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
5333 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
5334 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
5335 All callers changed.
5336 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
5337 timestamp.
5338 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
5339 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
5340 only when its width is less than the height.
5341 (XTredeem_scroll_bar): Sync with xterm.c.
5342 (font_name_table, font_name_table_size, font_name_count):
5343 Make static.
5344 (drag_and_drop_file_list): Remove variable. Previous use is now
5345 local to function.
5346 (do_ae_open_documents): Move DRAG_N_DROP event construction part
5347 from XTread_socket.
5348 (XTread_socket): Consolidate setting of event timestamp.
5349 Move DRAG_N_DROP event construction part to do_ae_open_documents.
5350 Support extra_keyboard_modifiers.
5351
5352 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
5353 beginning with that for ASCII.
5354
5355 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
5358 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
5359 (syms_of_alloc): Declare gc-cons-percentage.
5360
5361 * eval.c (Feval, Ffuncall):
5362 * keyboard.c (read_char):
5363 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
5364
5365 * lisp.h (gc_cons_combined_threshold): Declare.
5366
5367 2005-07-12 Kim F. Storm <storm@cua.dk>
5368
5369 * coding.c (Qprocess_argument):
5370 * coding.h (Qprocess_argument): Remove unused var.
5371
5372 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
5373
5374 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5375
5376 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
5377 Endian.h.
5378 [!MAC_OSX] (fchmod, fchown): New functions.
5379 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
5380 Use SBYTES and EndianU32_BtoN.
5381 (mac_get_object_from_code): Return 4 byte string even if argument
5382 is 0. Use make_unibyte_string and EndianU32_NtoB.
5383 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
5384 (Fmac_set_file_type): Fix documents and argument declarations.
5385 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
5386
5387 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
5388
5389 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
5390
5391 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5392
5393 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
5394 Lucid if X_I18N, font otherwise.
5395
5396 2005-07-10 Steven Tamm <steventamm@mac.com>
5397
5398 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
5399 (Fmac_set_file_type, Fmac_set_file_creator): Add.
5400 (mac_get_object_from_code, mac_get_code_from_arg): Add.
5401
5402 2005-07-10 Richard M. Stallman <rms@gnu.org>
5403
5404 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
5405 (syms_of_lread): Set up eval-buffer-list.
5406 (Feval_buffer, Feval_region): Bind eval-buffer-list.
5407
5408 2005-07-08 Richard M. Stallman <rms@gnu.org>
5409
5410 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
5411
5412 2005-07-08 Kim F. Storm <storm@cua.dk>
5413
5414 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
5415 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
5416
5417 2005-07-07 Kim F. Storm <storm@cua.dk>
5418
5419 * window.c (Frecenter): Fix last change (set iarg before use).
5420
5421 2005-07-06 Richard M. Stallman <rms@gnu.org>
5422
5423 * window.c (Frecenter): When arg is inside the scroll margin,
5424 move it out of the margin.
5425
5426 2005-07-06 Jason Rumney <jasonr@gnu.org>
5427
5428 * w32console.c (initialize_w32_display): Detect when the console
5429 dimensions are insane, and default to 80x25 instead.
5430 (w32_use_full_screen_buffer): Default to NIL.
5431
5432 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5433
5434 * macterm.c (mac_draw_vertical_window_border): Use foreground of
5435 VERTICAL_BORDER_FACE_ID for vertical border line.
5436 (mac_encode_char): Call check_ccl_update in advance.
5437 (mac_to_x_fontname, x_font_name_to_mac_font_name)
5438 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
5439 Don't assume that font family length is less than 32.
5440 (x_compute_min_glyph_bounds): Make static.
5441 (x_load_font): Never set fonts_changed_p to zero.
5442
5443 2005-07-04 Lute Kamstra <lute@gnu.org>
5444
5445 * Update FSF's address in GPL notices.
5446
5447 2005-07-03 Richard M. Stallman <rms@gnu.org>
5448
5449 * xdisp.c (try_window): Fix previous change in how it handles
5450 a partially-visible line or one only partly past the margin.
5451
5452 * window.c (window_scroll_pixel_based): Take account
5453 of this_scroll_margin when finding point when scrolling up.
5454
5455 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
5456
5457 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5458 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
5459 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5460
5461 2005-07-02 Juri Linkov <juri@jurta.org>
5462
5463 * w32term.c (w32_draw_vertical_window_border): Use foreground of
5464 VERTICAL_BORDER_FACE_ID for vertical border line.
5465
5466 2005-07-02 Eli Zaretskii <eliz@gnu.org>
5467
5468 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
5469 fchmod so that chmod doesn't get called on MSDOS before the file
5470 is closed.
5471
5472 2005-07-01 Jason Rumney <jasonr@gnu.org>
5473
5474 * w32term.c (cleartype_active): New flag for enabling sub-pixel
5475 workaround.
5476 (w32_initialize): Initialize it.
5477 (w32_native_per_char_metric): Allow a couple of extra pixels when
5478 Cleartype is active.
5479
5480 * w32term.c (w32_initialize): Move check for screen reader here
5481 from syms_of_w32term.
5482
5483 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5484
5485 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
5486 is not zero.
5487
5488 2005-07-01 Masatake YAMATO <jet@gyve.org>
5489
5490 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
5491
5492 2005-06-30 Juri Linkov <juri@jurta.org>
5493
5494 * xdisp.c (x_draw_vertical_border): If left fringe is not present
5495 decrease x coord of vertical border by 1 pixel to not occupy text
5496 area of the right window.
5497
5498 * xterm.c (x_draw_vertical_window_border): Use foreground of
5499 VERTICAL_BORDER_FACE_ID for vertical border line.
5500
5501 * term.c (turn_on_face): In standout mode apply specified
5502 fg to bg, and specified bg to fg (this makes the logic of
5503 inversion on terminal consistent with X).
5504
5505 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
5506
5507 * eval.c (user_variable_p_eh): New function.
5508 (Fuser_variable_p): Use it. Clarify docstring.
5509 Return t for aliases of user options, nil for alias loops.
5510
5511 2005-06-27 Richard M. Stallman <rms@gnu.org>
5512
5513 * eval.c (Fdefvar): Improve error message.
5514
5515 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5516
5517 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
5518 change.
5519
5520 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
5521
5522 * eval.c (Fdefvar): Don't try to set constant symbols.
5523
5524 2005-06-25 Richard M. Stallman <rms@gnu.org>
5525
5526 * macfns.c (Fx_show_tip): Pass new arg to try_window.
5527
5528 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
5529
5530 * xfns.c (Fx_show_tip): Pass new arg to try_window.
5531
5532 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
5533 (redisplay_window): Handle try_window reporting point in scroll margin.
5534
5535 * dispextern.h (try_window): Declare new arg.
5536
5537 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
5538 Use fchmod to copy the file modes.
5539 (Frename_file): Don't copy UID and GID here;
5540 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
5541
5542 * eval.c (call_debugger): Take full care of extending stack limits
5543 to make space for the debugger, and restore the change afterward.
5544 Bind debug-on-error to nil.
5545 (restore_stack_limits): New subroutine.
5546 (Fsignal): Extend specpdl bound along with eval depth bound,
5547 for calling edebug. Don't do either one, for calling debugger.
5548 (find_handler_clause): Don't bind debug-on-error here.
5549 Don't unbind anything either.
5550 Temporarily advance max_specpdl_size for calling
5551 internal_with_output_to_temp_buffer.
5552 (grow_specpdl): Don't alter max_specpdl_size before signaling
5553 an error.
5554 (syms_of_eval) <max-specpdl-size>: Doc fix.
5555
5556 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
5557
5558 2005-06-24 Eli Zaretskii <eliz@gnu.org>
5559
5560 * fileio.c (Frename_file): Undo last change: no need to ifdef away
5561 chown on DOS_NT platforms.
5562
5563 * w32.c (sys_chown): New function.
5564
5565 * s/ms-w32.h (chown): New; define to sys_chown.
5566
5567 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
5568
5569 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
5570 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
5571
5572 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
5573
5574 2005-06-23 Richard M. Stallman <rms@gnu.org>
5575
5576 * xdisp.c (get_next_display_element): Finish reversing the tests of
5577 Vnobreak_char_display.
5578
5579 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
5580 All uses changed.
5581 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
5582 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
5583
5584 * fileio.c (Frename_file): Preserve owner and group, if possible,
5585 when copying.
5586
5587 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
5588
5589 * abbrev.c (Funexpand_abbrev):
5590 * category.c (Fmake_category_set):
5591 * dispnew.c (Fsleep_for, Fsit_for):
5592 * editfns.c (Fsubst_char_in_region):
5593 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
5594 * frame.c (make_frame_without_minibuffer):
5595 * lread.c (read_vector):
5596 * macfns.c (check_x_frame):
5597 * process.c (Fstop_process, Fcontinue_process):
5598 * search.c (Freplace_match):
5599 * syntax.c (Fstring_to_syntax):
5600 * w32fns.c (check_x_frame, check_x_display_info):
5601 * xfaces.c (x_supports_face_attributes_p):
5602 * xselect.c (Fx_own_selection_internal): Follow error conventions.
5603
5604 * image.c (fn_png_init_io): Don't define it.
5605 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
5606 (png_read_from_file): New function, based on png_read_from_memory.
5607 (png_load): Use it, instead of fn_png_init_io.
5608
5609 2005-06-23 Kim F. Storm <storm@cua.dk>
5610
5611 * search.c (Fmatch_data): Remove evaporate option.
5612 (Fset_match_data): Do not mention evaporate option in doc string.
5613 Add commentary explaining evaporate arg (for internal use only).
5614 (unwind_set_match_data): Add comment on evaporate use.
5615
5616 2005-06-22 Miles Bader <miles@gnu.org>
5617
5618 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
5619 (realize_basic_faces, syms_of_xfaces): Update references to it.
5620 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
5621 to `VERTICAL_BORDER_FACE_ID'.
5622 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
5623
5624 2005-06-21 Juri Linkov <juri@jurta.org>
5625
5626 * dispextern.h: Add extern Qframe_set_background_mode.
5627
5628 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
5629 Qframe_set_background_mode.
5630
5631 * frame.c (Fmodify_frame_parameters):
5632 Call frame-set-background-mode after changing the background color
5633 on non-window non-dos branch.
5634
5635 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
5636
5637 * fns.c (Fchar_table_range):
5638 * process.c (Fmake_network_process): Fix spellings.
5639
5640 2005-06-20 Kim F. Storm <storm@cua.dk>
5641
5642 * fns.c (Fsort): Doc fix.
5643
5644 2005-06-20 Miles Bader <miles@gnu.org>
5645
5646 * xfaces.c (Qvertical_divider): New variable.
5647 (realize_basic_faces): Realize its face.
5648 (syms_of_xfaces): Initialize it.
5649
5650 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
5651
5652 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
5653 window-separator on ttys using `vertical-divider' face by default.
5654
5655 2005-06-17 Richard M. Stallman <rms@gnu.org>
5656
5657 * xdisp.c (get_next_display_element):
5658 Reverse test of Vshow_nonbreak_escape.
5659
5660 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
5661 (Ftty_no_underline): New function.
5662 (syms_of_term): defsubr it.
5663
5664 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
5665
5666 * dispnew.c (spec_glyph_lookup_face): New function.
5667 (build_frame_matrix_from_leaf_window): Use it.
5668
5669 * dispextern.h (spec_glyph_lookup_face): Add declaration.
5670
5671 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5672
5673 2005-06-12 Richard M. Stallman <rms@gnu.org>
5674
5675 * keyboard.c (read_char): After catching a longjmp,
5676 call restore_getcjmp.
5677
5678 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
5679
5680 * xselect.c (lisp_data_to_selection_data): Fix spelling.
5681
5682 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5683
5684 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
5685 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
5686 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
5687 events.
5688 (XTread_socket): Don't pass keyboard events with the option
5689 modifier to the system when Vmac_command_key_is_meta is nil or
5690 Vmac_option_modifier is non-nil.
5691 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
5692 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
5693 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
5694 handler function.
5695 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
5696 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
5697 handler part to mac_handle_mouse_event.
5698
5699 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
5700
5701 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
5702 NEW-ALIAS and BASE-VARIABLE, respectively.
5703
5704 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5705
5706 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5707 (get_phys_cursor_geometry, format_mode_line_unwind_data)
5708 (get_line_height_property, x_produce_glyphs): Remove unused vars.
5709
5710 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
5711
5712 2005-06-13 Eli Zaretskii <eliz@gnu.org>
5713
5714 * w32term.c (x_use_underline_position_properties): New variable.
5715 (x_draw_glyph_string): Remind in a comment to change doc string of
5716 x-use-underline-position-properties if/when underline positioning
5717 is implemented.
5718 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
5719 and initialize it to nil.
5720
5721 2005-06-12 Jason Rumney <jasonr@gnu.org>
5722
5723 * w32fns.c (NEWOPENFILENAME): New struct.
5724 (Fx_file_dialog): Use it to trick the system into giving us up to
5725 date dialogs on systems that are documented to support it.
5726 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
5727
5728 2005-06-12 Eli Zaretskii <eliz@gnu.org>
5729
5730 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
5731 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
5732
5733 2005-06-11 Eli Zaretskii <eliz@gnu.org>
5734
5735 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
5736 to CreateDIBSection to avoid a compiler warning.
5737 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
5738 warning.
5739 (png_load): Cast return values of fn_png_create_read_struct and
5740 fn_png_create_info_struct, to avoid compiler warnings on W32.
5741 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
5742 to avoid compiler warnings.
5743 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
5744 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
5745 avoid a compiler warning.
5746 (tiff_load): Cast return values of fn_TIFFOpen and
5747 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
5748 to IMAGE_BACKGROUND to avoid a compiler warning.
5749 (gif_load): Cast return values of fn_DGifOpenFileName and
5750 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
5751 IMAGE_BACKGROUND to avoid a compiler warning.
5752 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
5753 before redefining.
5754
5755 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
5756 the call to CreateDIBSection, to avoid a compiler warning.
5757
5758 2005-06-11 Jason Rumney <jasonr@gnu.org>
5759
5760 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
5761 minibuffer.
5762 * macfns.c (Fx_file_dialog): Likewise.
5763
5764 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5765
5766 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
5767
5768 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5769
5770 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
5771 * w32fns.c (syms_of_w32fns): Fix spellings.
5772
5773 2005-06-10 Eli Zaretskii <eliz@gnu.org>
5774
5775 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5776 `verbose'; print diagnostic messages only if it is non-zero.
5777 All callers changed to pass a zero value unless DEBUG_DUMP is defined
5778 in the environment.
5779 (copy_executable_and_dump_data): Print section names with %.8s.
5780
5781 2005-06-10 Masatake YAMATO <jet@gyve.org>
5782
5783 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
5784 when mouse_face is not given.
5785
5786 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
5787
5788 * window.c (Fselect_window): Adapt call to Fselect_frame.
5789
5790 * lisp.h: Update EXFUN of Fselect_frame.
5791
5792 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
5793
5794 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
5795 no_enter.
5796 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
5797 Adapt to above change.
5798
5799 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
5800
5801 * fns.c (Fmemq, Fmaphash): Doc fixes.
5802
5803 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
5804
5805 * xfaces.c (Fdisplay_supports_face_attributes_p):
5806 Fix typo in docstring.
5807
5808 2005-06-08 Steven Tamm <steventamm@mac.com>
5809
5810 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
5811 used by gcc4 on intel mac.
5812
5813 2005-06-09 Kim F. Storm <storm@cua.dk>
5814
5815 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
5816 in REUSE list if non-nil; free them if equal to evaporate.
5817 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
5818 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
5819 (restore_search_regs): Rename from restore_match_data. Uses changed.
5820 (unwind_set_match_data): New function.
5821 (record_unwind_save_match_data): New function like save-match-data.
5822
5823 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
5824 (record_unwind_save_match_data): Add prototype.
5825 (restore_search_regs): Rename from restore_match_data.
5826
5827 * composite.c (compose_chars_in_text):
5828 * eval.c (do_autoload):
5829 * macmenu.c (set_frame_menubar):
5830 * process.c (read_process_output, exec_sentinel):
5831 * xmenu.c (set_frame_menubar):
5832 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
5833 * w32menu.c (set_frame_menubar):
5834 Use record_unwind_save_match_data.
5835
5836 2005-06-08 Richard M. Stallman <rms@gnu.org>
5837
5838 * xdisp.c (get_next_display_element): Alter previous change:
5839 Distinguish Vshow_nonbreak_escape = t or not t.
5840 For t, use escape_glyph once again, as before previous change.
5841 Use space or hyphen for display, instead of the non-ASCII char.
5842 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
5843
5844 * process.c (Fstart_process): Don't touch command_channel_p slot.
5845
5846 * process.h (struct process): Delete command_channel_p.
5847
5848 2005-06-07 Masatake YAMATO <jet@gyve.org>
5849
5850 * xdisp.c (note_mode_line_or_margin_highlight):
5851 Check the overlapping of re-rendering area to avoid flickering.
5852 (note_mouse_highlight): Call clear_mouse_face if PART
5853 is not ON_MODE_LINE nor ON_HEADER_LINE.
5854
5855 2005-06-07 Kim F. Storm <storm@cua.dk>
5856
5857 * process.c: Improve commentary for adaptive read buffering.
5858
5859 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
5860
5861 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
5862 if available.
5863
5864 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5865
5866 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
5867 New functions for popping down menus on C-g.
5868 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
5869
5870 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
5871 non-static.
5872
5873 * config.in: Add HAVE_CANCELMENUTRACKING.
5874
5875 2005-06-06 Eli Zaretskii <eliz@gnu.org>
5876
5877 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
5878
5879 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
5880
5881 * w32proc.c (RVA_TO_PTR): New macro.
5882
5883 * w32heap.c (RVA_TO_PTR): No need to #undef now.
5884
5885 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
5886 Depend on w32heap.h.
5887
5888 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
5889
5890 * keyboard.c (command_loop_1): Update Vthis_original_command.
5891
5892 2005-06-06 Richard M. Stallman <rms@gnu.org>
5893
5894 * xmenu.c (popup_get_selection): Undo previous change.
5895
5896 2005-06-06 Juri Linkov <juri@jurta.org>
5897
5898 * xdisp.c (Qno_break_space): New variable.
5899 (syms_of_xdisp): Initialize it.
5900 (get_next_display_element): Add no-break space and soft hypen
5901 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
5902 Use `no-break-space' face for no-break spaces.
5903
5904 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5905
5906 * window.c (delete_window): Handle the case where a h/vchild has
5907 a h/vchild.
5908
5909 2005-06-05 Eli Zaretskii <eliz@gnu.org>
5910
5911 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
5912 call to pfn_setsockopt, cast optval to `const char *'.
5913
5914 2005-06-04 Eli Zaretskii <eliz@gnu.org>
5915
5916 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
5917 (open_unc_volume): Cast return value of map_w32_filename, to avoid
5918 compiler warnings.
5919
5920 * s/ms-w32.h (fileno): Don't define if already defined.
5921
5922 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
5923
5924 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
5925
5926 2005-06-04 Richard M. Stallman <rms@gnu.org>
5927
5928 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
5929
5930 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5931
5932 * macmenu.c (cleanup_popup_menu): New function.
5933 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
5934 mac_menu_show Quit:s.
5935 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
5936 a dialog).
5937
5938 2005-06-04 Kim F. Storm <storm@cua.dk>
5939
5940 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
5941
5942 * callproc.c (Fcall_process): Don't use alloca to gradually
5943 increase size of buf, as it effectively uses twice the necessary
5944 space on the stack. Instead, pre-allocate buf of full size, and
5945 gradually increase the read size.
5946
5947 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
5948
5949 * eval.c (unbind_to): Preserve value of Vquit_flag.
5950
5951 * xterm.c (handle_one_xevent): Also ignore mouse motion just
5952 before a button release event.
5953
5954 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * xfaces.c (Finternal_lisp_face_equal_p): Really report
5957 on faces in a frame, if the argument FRAME is non-nil.
5958 Improve argument/docstring consistency.
5959
5960 2005-06-02 Kim F. Storm <storm@cua.dk>
5961
5962 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
5963 (x_consider_frame_title, Fformat_mode_line): Save offset into
5964 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
5965
5966 2005-06-01 Kim F. Storm <storm@cua.dk>
5967
5968 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
5969
5970 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5971
5972 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
5973 resolution fields for scalable fonts to 0.
5974
5975 * xfaces.c (build_scalable_font_name): Round pixel size to the
5976 nearest integer.
5977
5978 2005-06-01 Kim F. Storm <storm@cua.dk>
5979
5980 * xdisp.c (display_mode_line): Support nested calls to redisplay
5981 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
5982
5983 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
5984
5985 * fileio.c (Finsert_file_contents):
5986 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
5987
5988 2005-05-31 Kim F. Storm <storm@cua.dk>
5989
5990 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
5991 (mode_line_noprop_ptr): Rename from frame_title_*.
5992 (store_mode_line_noprop_char): Rename from store_frame_title_char.
5993 (store_mode_line_noprop): Rename from store_frame_title.
5994 (mode_line_target): New enum to specify current output target
5995 for mode line formatting.
5996 (display_mode_element): Test it rather than frame_title_ptr and
5997 mode_line_string_list to determine where output should go.
5998 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
5999 (Vmode_line_unwind_vector): New variable.
6000 (format_mode_line_unwind_data, unwind_format_mode_line):
6001 New functions for unwind protection in mode line formatting.
6002 (x_consider_frame_title): Use them and new local var 'title_start'
6003 to support nested calls to format-mode-line and redisplay.
6004 Set mode_line_target to MODE_LINE_TITLE.
6005 (Fformat_mode_line): Use them and new local var 'string_start' to
6006 support nested calls to format-mode-line and redisplay.
6007 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
6008 Don't trim trailing dashes.
6009 (decode_mode_spec): Don't make infinite number of trailing dashes
6010 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
6011 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
6012 mode_line_string_face_prop, and Vmode_line_unwind_vector.
6013 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
6014 Initialize mode_line_target to MODE_LINE_DISPLAY.
6015
6016 2005-05-29 Richard M. Stallman <rms@gnu.org>
6017
6018 * buffer.c (Fbuffer_local_value): Call indirect_variable.
6019
6020 2005-05-28 Masatake YAMATO <jet@gyve.org>
6021
6022 * xdisp.c (note_mode_line_or_margin_highlight): Change the
6023 pointer to a hand cursor when hoovering over a mouse-face.
6024
6025 2005-05-27 Kenichi Handa <handa@m17n.org>
6026
6027 * xterm.c (x_encode_char): Call check_ccl_update in advance.
6028
6029 * ccl.c: Now an element of Vccl_program_table is a vector of
6030 length 4, not 3.
6031 (ccl_get_compiled_code): New arg idx. Caller changed.
6032 Adjust for the change of Vccl_program_table.
6033 (setup_ccl_program): Adjust for the change of Vccl_program_table.
6034 (check_ccl_update): New function.
6035 (Fregister_ccl_program): Use ASET to set an element of a vector.
6036 Adjusted for the change of Vccl_program_table.
6037
6038 * ccl.h (struct ccl_program): New member idx.
6039 (check_ccl_update): Extern it.
6040
6041 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
6042
6043 * image.c (Vimage_library_alist): Move from image.el.
6044 (syms_of_image): Defvar it.
6045 (lookup_image_type): Use it.
6046
6047 * buffer.c (Fbuffer_local_value): Make argument name match its use
6048 in docstring.
6049
6050 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
6051
6052 * keyboard.c (Frecursive_edit): Fix typo in docstring.
6053 (Fposn_at_x_y): Make argument name match its use in docstring.
6054
6055 2005-05-26 Lute Kamstra <lute@gnu.org>
6056
6057 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
6058
6059 2005-05-24 Masatake YAMATO <jet@gyve.org>
6060
6061 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
6062 as loop sentinels.
6063
6064 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
6065
6066 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
6067 select frame title ("Question"/"Information").
6068 (xdialog_show): Use it.
6069
6070 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
6071
6072 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
6073
6074 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
6075 a third argument (Qnil).
6076
6077 * lisp.h: x-popup-dialog can have three arguments.
6078
6079 * editfns.c (Fmessage_box): Use "Information" for frame title.
6080
6081 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
6082
6083 * termcap.c [VMS]: Include <starlet.h>.
6084
6085 2005-05-23 Masatake YAMATO <jet@gyve.org>
6086
6087 * xdisp.c (note_mode_line_or_margin_highlight): Add code
6088 for mouse-face. Change the type of the first argument from `window'
6089 to `Lisp_Object'.
6090 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
6091 window instead of w.
6092
6093 2005-05-22 Andreas Schwab <schwab@suse.de>
6094
6095 * process.c (send_process): Move misplaced volatile.
6096
6097 2005-05-21 Richard M. Stallman <rms@gnu.org>
6098
6099 * xdisp.c (display_mode_element): If we're processing a list and
6100 padding is specified, put it after the last element.
6101
6102 2005-05-21 Eli Zaretskii <eliz@gnu.org>
6103
6104 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
6105 "superroot" on DOS_NT systems.
6106
6107 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
6108
6109 * process.c (send_process): Restore the SIGPIPE handler if we
6110 catch a SIGPIPE.
6111
6112 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
6113
6114 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
6115 misleading comments).
6116 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
6117
6118 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6119
6120 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
6121 Correct the right value.
6122
6123 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
6124
6125 * keyboard.c (syms_of_keyboard): Remove Lisp variables
6126 post-command-idle-hook and post-command-idle-delay.
6127 (command_loop_1): Don't try to execute post-command-idle-hook.
6128
6129 2005-05-16 Kim F. Storm <storm@cua.dk>
6130
6131 * xdisp.c (handle_display_prop): Handle empty replacement.
6132 (handle_single_display_spec): Return -1 for empty replacement.
6133
6134 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
6135
6136 * .gdbinit (pitx): Print more info about iterator.
6137
6138 2005-05-16 Andreas Schwab <schwab@suse.de>
6139
6140 * unexmacosx.c (unexec_realloc): Move declarations before statements.
6141
6142 2005-05-14 Richard M. Stallman <rms@gnu.org>
6143
6144 * xdisp.c (message3): Call cancel_echoing.
6145
6146 * alloc.c (Fmemory_full_p): New function.
6147 (syms_of_alloc): defsubr it.
6148
6149 * process.c (send_process_trap): Unblock SIGPIPE.
6150 (send_process): Reset SIGPIPE handler before reporting error.
6151
6152 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
6153
6154 * emacs.c (syms_of_emacs): Fix doc string for system-type.
6155
6156 2005-05-13 Richard M. Stallman <rms@gnu.org>
6157
6158 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
6159 (Finsert_file_contents): If we read 0 bytes from a special file,
6160 unlock the visited file if we locked it.
6161 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
6162 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
6163
6164 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6165
6166 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
6167
6168 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
6169 Regard toolkit scroll bar thumb drag events as squeezable and prevent
6170 redisplay from being paused by them.
6171
6172 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
6173 [!MAC_OSX] (target_ticks): Remove variable.
6174 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
6175 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
6176 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
6177 event occurs before timeout, behave as if the function were interrupted.
6178 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
6179 handling using Time Manager routines.
6180 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
6181 New variables.
6182 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
6183 (setitimer): New functions.
6184
6185 * macfns.c, macmenu.c: Don't include signal.h.
6186
6187 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
6188 Rename from get_control_part_bound. All callers changed.
6189 (x_scroll_bar_clear): New function.
6190 (x_clear_frame): Use it.
6191 (XTset_vertical_scroll_bar): Don't call Draw1Control.
6192 (x_scroll_bar_handle_click): Change type of second argument from
6193 int to ControlPartCode.
6194 (check_alarm): Remove declaration.
6195 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
6196 (XTread_socket): Use ControlPartCode instead of SInt16.
6197
6198 2005-05-13 Nozomu Ando <nand@mac.com>
6199
6200 * unexmacosx.c: Include assert.h.
6201 (MACOSX_MALLOC_MULT16): New define.
6202 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
6203 ptr is in unexec regions by checking it is multiple of 16.
6204 (unexec_malloc_header_t): New typedef.
6205 (unexec_malloc, unexec_realloc, unexec_free): Store and use
6206 allocated size information in unexec_malloc_header.
6207
6208 2005-05-10 Richard M. Stallman <rms@gnu.org>
6209
6210 * xterm.c (noinclude): Add #undef.
6211
6212 * image.c, xfns.c, xmenu.c: Don't include signal.h.
6213
6214 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
6215
6216 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
6217 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
6218 Doc fixes.
6219
6220 * dired.c (Ffile_name_completion): Make argument name
6221 match its use in docstring.
6222
6223 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
6224
6225 * eval.c (Fdefvaralias): Remove any pre-existing
6226 variable-documentation property of the alias.
6227
6228 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
6229
6230 * xfns.c (start_hourglass): Do nothing when running on a tty.
6231
6232 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
6233
6234 * fns.c (Fchar_table_range): Fix typos in docstring.
6235
6236 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6237
6238 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
6239
6240 2005-05-06 Eli Zaretskii <eliz@gnu.org>
6241
6242 * lread.c (Flocate_file_internal): Doc fix.
6243
6244 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
6245
6246 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6247
6248 * macselect.c (x_own_selection): Accept Lisp string as result of
6249 selection converter function.
6250 (x_clear_frame_selections): Don't call x-lost-selection-functions
6251 if Emacs is not owner of the selection.
6252 (Vmac_services_selection): Put variable and initialization in
6253 #ifdef MAC_OSX.
6254 (syms_of_macselect) [MAC_OSX]: Set default value of
6255 Vmac_services_selection to PRIMARY.
6256
6257 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
6258 (mac_handle_tool_bar_click): Remove unused function and declaration.
6259 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
6260 (install_scroll_bar_timer, set_scroll_bar_timer)
6261 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
6262 (get_control_part_bound, x_scroll_bar_handle_press)
6263 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
6264 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
6265 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
6266 (scroll_bar_timer_event_posted_p): New variables.
6267 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
6268 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
6269 (x_scroll_bar_create): Set control reference with NewControl.
6270 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
6271 Initialize track_top and track_height to nil.
6272 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
6273 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
6274 (XTset_vertical_scroll_bar): Don't make space between scroll bar
6275 and associated window.
6276 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
6277 from window config.
6278 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6279 Set track_top and track_height to nil when scroll bar size is changed.
6280 Recalculate them if they are nil.
6281 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
6282 clicked control is a scroll bar.
6283 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
6284 event handler functions. Don't add modifiers to scroll bar click
6285 events. Call scroll bar release handler when window is deactivated.
6286 (mac_initialize): Remove unused code for X toolkit.
6287 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
6288 Initialize Vx_toolkit_scroll_bars to nil.
6289
6290 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6291 New members track_top and track_height.
6292
6293 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
6294 init_process when including sys/select.h.
6295
6296 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
6297
6298 * eval.c (Fdefvaralias): Doc fix.
6299
6300 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
6301
6302 2005-05-05 Kim F. Storm <storm@cua.dk>
6303
6304 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
6305 default value.
6306 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
6307 Fix type of cursor-in-non-selected-windows.
6308
6309 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6310
6311 * mac.c: #undef init_process so not to conflict with system headers.
6312
6313 2005-05-02 Richard M. Stallman <rms@gnu.org>
6314
6315 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
6316
6317 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
6318
6319 * xdisp.c (Vcursor_in_non_selected_windows)
6320 (Qcursor_in_non_selected_windows): Vars deleted.
6321 (syms_of_xdisp): Don't initialize them.
6322 (get_window_cursor_type): Use cursor_in_non_selected_windows
6323 buffer slot.
6324
6325 2005-05-02 Kim F. Storm <storm@cua.dk>
6326
6327 * macros.c (executing_kbd_macro_index): Rename from
6328 executing_macro_index. All uses changed.
6329 (executing_kbd_macro_iterations): Rename from
6330 executing_macro_iterations. All uses changed.
6331 (executing_kbd_macro): Rename from executing_macro.
6332 All uses changed.
6333 (syms_of_macros): Rename Lisp var executing-macro-index to
6334 executing-kbd-macro-index.
6335
6336 * xdisp.c (move_it_in_display_line_to): Fix last change.
6337
6338 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
6339
6340 * xmenu.c (Fx_popup_menu): Doc fix.
6341
6342 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
6343
6344 2005-05-02 Jason Rumney <jasonr@gnu.org>
6345
6346 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
6347
6348 2005-05-02 Nozomu Ando <nand@mac.com>
6349
6350 * sysselect.h: Fix typo.
6351
6352 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
6353
6354 * charset.c (Fchars_in_region): Remove as obsolete.
6355
6356 2005-05-01 Kim F. Storm <storm@cua.dk>
6357
6358 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
6359 TO_CHARPOS. This may happen if last glyphs was an image or stretch
6360 glyph.
6361
6362 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
6363
6364 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
6365
6366 2005-05-01 Richard M. Stallman <rms@gnu.org>
6367
6368 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
6369 If user cancels the menu, quit unless FOR_CLICK.
6370
6371 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
6372 All uses changed.
6373 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
6374 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
6375 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
6376 * commands.h (Vexecuting_kbd_macro): Likewise.
6377
6378 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
6379
6380 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
6381
6382 2005-04-30 Richard M. Stallman <rms@gnu.org>
6383
6384 * fileio.c (Ffind_file_name_handler): Handle the `operations'
6385 property of the file name handler.
6386 (Qoperations): New variable.
6387 (syms_of_fileio): Initialize and staticpro it.
6388
6389 * xdisp.c (set_message_1): Delete xassert.
6390
6391 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6392
6393 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
6394
6395 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
6396
6397 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
6398 before/after including Carbon.h if there is a working mktime.
6399
6400 2005-04-28 Kim F. Storm <storm@cua.dk>
6401
6402 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
6403 Fix cyclic alias check. If alias loop is detected, signal
6404 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
6405
6406 2005-04-28 Lute Kamstra <lute@gnu.org>
6407
6408 * eval.c (do_autoload): Record only autoloads in the autoload
6409 property of symbols.
6410
6411 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
6412
6413 * emacs.c (USAGE1): Add --basic-display and --quick options.
6414
6415 2005-04-27 Kim F. Storm <storm@cua.dk>
6416
6417 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
6418
6419 2005-04-26 Richard M. Stallman <rms@gnu.org>
6420
6421 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
6422 (syms_of_window): Doc fixes.
6423
6424 * indent.c (Fvertical_motion): Undo previous change.
6425
6426 2005-04-26 Kenichi Handa <handa@m17n.org>
6427
6428 * fns.c (char_table_range): New function.
6429 (Fchar_table_range): Signal an error if characters in the range
6430 have inconsistent values. Don't check the parent.
6431
6432 2005-04-25 Kenichi Handa <handa@m17n.org>
6433
6434 * fontset.c (fontset_set): Fix previous change.
6435
6436 2005-04-24 Richard M. Stallman <rms@gnu.org>
6437
6438 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
6439
6440 2005-04-24 Eli Zaretskii <eliz@gnu.org>
6441
6442 * regex.c (re_search_2, re_match_2_internal): Convert second arg
6443 of RE_TRANSLATE to int, to shut up GCC warnings.
6444
6445 * fileio.c (Fcopy_file): Doc fix.
6446 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
6447 not needed.
6448
6449 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6450
6451 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
6452 (SOME_MACHINE_OBJECTS): Likewise.
6453 (mac.o): Depend on ccl.h.
6454 (macselect.o): New target.
6455
6456 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
6457 Call syms_of_macselect.
6458
6459 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
6460
6461 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
6462 (QCLIPBOARD): Remove variable.
6463 (syms_of_mac): Don't initialize it.
6464 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
6465 Remove functions.
6466 (syms_of_mac): Don't defsubr them.
6467 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
6468 (QHFS_plus_D, QHFS_plus_C): New variables.
6469 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
6470 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
6471 (cfstring_create_normalized): New functions.
6472 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
6473 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
6474
6475 * macterm.c (handling_window_update, terminate_flag):
6476 Remove variables.
6477 (do_window_update, do_ae_quit_application, XTread_socket):
6478 Don't use them.
6479 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
6480 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
6481 (init_service_handler): Move to macselect.c. Remove declarations.
6482 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
6483 (Qapplication, Qabout): New variables.
6484 (syms_of_mac): Initialize them.
6485 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
6486 (Qperform): New variables.
6487 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
6488 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
6489 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
6490 (mac_store_application_menu_event, init_menu_bar): New functions.
6491 [USE_CARBON_EVENTS] (mac_handle_command_event)
6492 (init_command_handler): New functions.
6493 (mac_handle_window_event): Return noErr on window update event.
6494 (do_ae_quit_application): Call mac_store_application_menu_event.
6495 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
6496 and init_menu_bar.
6497
6498 * macterm.h (x_clear_frame_selections): Add extern.
6499
6500 * macselect.c: New file for selection processing on Mac OS.
6501
6502 2005-04-23 Richard M. Stallman <rms@gnu.org>
6503
6504 * fileio.c (Fcopy_file): New arg MUSTBENEW.
6505 (Frename_file): Pass new arg to Fcopy_file.
6506
6507 * window.c (window_size_fixed): Variable deleted.
6508 (syms_of_window): Initialize window-size-fixed to nil.
6509 But don't DEFVAR window_size_fixed.
6510
6511 2005-04-23 Andreas Schwab <schwab@suse.de>
6512
6513 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
6514 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
6515 use lib64 instead of lib.
6516 (_LP64) [_ARCH_PPC64]: Define if not defined.
6517
6518 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
6519
6520 * s/ms-w32.h (HAVE_PWD_H): Define.
6521
6522 2005-04-22 Kenichi Handa <handa@m17n.org>
6523
6524 * fns.c (copy_sub_char_table): Explicitly copy the default value
6525 of the sub-chartable.
6526
6527 * fontset.c (fontset_set): When a sub-chartable is created,
6528 explicitly sets the defalt value.
6529
6530 2005-04-22 Kim F. Storm <storm@cua.dk>
6531
6532 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
6533 (Fsafe_plist_get): Rename to Fplist_get.
6534 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
6535 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
6536
6537 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
6538
6539 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
6540 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6541 Use Fplist_get instead of Fsafe_plist_get.
6542
6543 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
6544
6545 2005-04-21 Miles Bader <miles@gnu.org>
6546
6547 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
6548
6549 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
6550
6551 * sysdep.c: Remove reference to defunct vms-pwd.h.
6552 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
6553 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
6554
6555 * config.in: Regenerate.
6556
6557 2005-04-20 Kenichi Handa <handa@m17n.org>
6558
6559 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
6560 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
6561 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
6562
6563 * alloc.c (make_sub_char_table): Argument changed to initial
6564 value of the slots.
6565
6566 * data.c (Faref): Handle special slots used as default values of
6567 ascii, eight-bit-control, eight-bit-control. Don't ignore a
6568 default value set for a group of characters.
6569 (Faset): Signal an error if IDXVAL is not a valid character code.
6570 Make a sub-chartable with correct initial value.
6571
6572 * fns.c (Fset_char_table_range): Don't set slots used as default
6573 values for ascii, eight-bit-control, eight-bit-graphic.
6574 Don't call Faref with charset-id.
6575 (Fset_char_table_default): Document how to treat normal character
6576 argument. Handle special slots used as default values of ascii,
6577 eight-bit-control, eight-bit-control. Make a sub chartable if
6578 necessary.
6579
6580 2005-04-20 Kenichi Handa <handa@m17n.org>
6581
6582 * search.c (boyer_moore): Fix previous change.
6583
6584 2005-04-19 Kim F. Storm <storm@cua.dk>
6585
6586 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
6587 face unless last visible char and first invisible char have the
6588 same face. Also use default face if saved_face_id is undefined.
6589
6590 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6591
6592 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
6593 `full_name'.
6594 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
6595 mac_scriptcode member.
6596
6597 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
6598 (syms_of_mac): Don't initialize them.
6599 (Vmac_charset_info_alist): New variable.
6600 (syms_of_mac): Defvar it.
6601 (create_text_encoding_info_alist): New function.
6602 (decode_mac_font_name, mac_to_x_fontname)
6603 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
6604 code the correspondence among XLFD charsets, Mac script codes, and
6605 Emacs coding systems. Use Vmac_charset_info_alist and result of
6606 create_text_encoding_info_alist instead.
6607 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
6608 routines also on Mac OS Classic.
6609 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
6610 Use add_font_name_table_entry.
6611 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
6612 specified. Derive unspecified scalable fields from specified one.
6613 (x_list_fonts): Consider Valternate_fontname_alist.
6614 (kDefaultFontSize): Change value from 9 to 12.
6615 (XLoadQueryFont): Get decoded font family, font face, and charset
6616 from x_font_name_to_mac_font_name. Set full name of loaded font.
6617 (mac_unload_font): Free `full_name' member.
6618 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
6619 NULL. Copy full_name member of struct MacFontStruct to that of
6620 struct font_info.
6621
6622 2005-04-19 Kim F. Storm <storm@cua.dk>
6623
6624 * xdisp.c (handle_stop): Set saved_face_id to current face if
6625 selective_display_ellipsis_p so ellipsis will be shown in same
6626 face as preceding text.
6627 (setup_for_ellipsis): Don't set saved_face_id here.
6628 (next_element_from_display_vector): Default to saved_face_id.
6629
6630 * fns.c (Fsafe_get): New function.
6631 (syms_of_fns): Defsubr it.
6632
6633 * lisp.h (Fsafe_get): EXFUN it.
6634
6635 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
6636 loops in case of bad face property lists. Limit number of face
6637 alias lookups to 10 (in case of face alias loops).
6638
6639 2005-04-18 Kim F. Storm <storm@cua.dk>
6640
6641 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
6642 It replaces the corresponding member from struct window, as a
6643 window may now show multiple overlay arrows.
6644 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
6645
6646 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
6647 Compare overlay_arrow_bitmap than overlay_arrow_p members.
6648
6649 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
6650 rather than from window.
6651 (update_window_fringes): Compare overlay_arrow_bitmap rather than
6652 overlay_arrow_p members.
6653 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
6654 if not default.
6655
6656 * window.h (struct window): Remove member overlay_arrow_bitmap.
6657
6658 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
6659
6660 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
6661 Calls changed. Don't check for overlay-arrow-bitmap property here.
6662 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
6663 fringe is present, return Lisp integer for bitmap (or -1 for default).
6664 Fix value of overlay-arrow-bitmap property to be a symbol, use
6665 lookup_fringe_bitmap to parse it.
6666 (display_line): Change call to overlay_arrow_at_row. Store integer
6667 return value as overlay bitmap in row rather than window.
6668 Only show overlay arrow if row displays text, or if no other overlay
6669 arrow is seen in window (if overlay marker is at point-max).
6670
6671 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6672
6673 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
6674
6675 2005-04-18 Lute Kamstra <lute@gnu.org>
6676
6677 * lread.c (Vloads_in_progress): Static.
6678 * fns.c (Vloads_in_progress): Remove extern.
6679 (load_in_progress): Add extern.
6680 (Frequire): Use load_in_progress instead of Vloads_in_progress.
6681
6682 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
6683
6684 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
6685
6686 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6687
6688 * macterm.c (XTread_socket): Don't beep on keyboard input even if
6689 no frame is visible.
6690
6691 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6692
6693 * term.c (struct keys): Add support for shifted keys.
6694
6695 2005-04-16 Richard M. Stallman <rms@gnu.org>
6696
6697 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
6698 (set_message): Call with_echo_area_buffer with WHICH = 0.
6699 (set_message_1): Erase the echo area buffer first thing.
6700 (echo_area_display): Don't clear echo_message_buffer.
6701
6702 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6703
6704 * Makefile.in (mac.o): Depend on charset.h and coding.h.
6705
6706 * mac.c: Include charset.h and coding.h.
6707 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
6708 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
6709 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
6710
6711 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6712
6713 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
6714
6715 * macterm.c (x_autoselect_window_p): Remove variable.
6716 (last_window): New variable.
6717 (XTreassert_line_highlight, x_change_line_highlight):
6718 Remove declarations.
6719 (mac_focus_changed, x_detect_focus_change): New functions and
6720 declarations.
6721 (XTextExtents16, front_emacs_window): Remove function.
6722 (mac_focus_frame): New function.
6723 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
6724 (mac_check_for_quit_char): Use it instead of front_emacs_window.
6725 (x_scroll_bar_report_motion): Obtain window from control owner.
6726 (x_make_frame_invisible): Set window manager size hint.
6727 (do_mouse_moved): Remove function.
6728 (XTread_socket): Move its contents here. Generate select-window
6729 event on mouse movement if needed. Use x_detect_focus_change on
6730 activate/deactivate events. Don't deiconify frame or invalidate
6731 window rectangle when dnd items are dropped.
6732 Don't activate/deactivate root control.
6733 (frame_highlight, frame_unhighlight): Activate/deactivate root
6734 control here.
6735 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
6736
6737 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
6738 New extern.
6739
6740 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
6741
6742 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
6743 (lisp): Use it.
6744 (SOME_MACHINE_LISP): Add tooltip.
6745
6746 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6747
6748 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
6749 Don't include TextEncodingConverter.h.
6750 (mac_system_script_code, Vmac_system_locale): New variables.
6751 (syms_of_mac): Defvar them.
6752 (mac_get_system_locale): New function.
6753
6754 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
6755 Use ENCODE_SYSTEM to encode title bar string.
6756 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
6757 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
6758 Use CFStringGetSystemEncoding to get system default string encoding.
6759
6760 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
6761 TextEncodingConverter.h.
6762
6763 2005-04-13 Steven Tamm <steventamm@mac.com>
6764
6765 * macterm.c (syms_of_macterm): Remove redundant definition of
6766 mac-pass-control-to-system.
6767
6768 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6769
6770 * window.c (Fset_window_configuration): Be careful when you choose
6771 among several possible points for the new_current_buffer.
6772
6773 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6774
6775 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
6776 poll_for_input_1. Set interrupt_input_pending to 1 instead.
6777 (Qlanguage_change) [MAC_OS]: New variable.
6778 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
6779 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
6780
6781 * macterm.c (mac_keyboard_text_encoding)
6782 (current_mac_keyboard_text_encoding): Remove variables.
6783 (XTread_socket): Store language-change event if keyboard script change
6784 is detected. Don't convert input to `mac_keyboard_text_encoding'.
6785 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
6786
6787 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
6788
6789 2005-04-10 Richard M. Stallman <rms@gnu.org>
6790
6791 * emacs.c (standard_args): Rename --bare-bones to --quick.
6792 Add -D aka --basic-display.
6793
6794 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
6795
6796 2005-04-09 Richard M. Stallman <rms@gnu.org>
6797
6798 * keymap.c (where_is_internal): Convert a string used as event type
6799 into "(any string)".
6800
6801 * lread.c (Vloads_in_progress): Not static.
6802 * fns.c (Vloads_in_progress): Add extern.
6803 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
6804
6805 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
6806
6807 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
6808
6809 2005-04-09 Lute Kamstra <lute@gnu.org>
6810
6811 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
6812 within the accessible part of the buffer.
6813
6814 2005-04-09 Kim F. Storm <storm@cua.dk>
6815
6816 * lread.c (readevalloop): Add args START and END as region in
6817 current buffer to read. Callers changed.
6818 When specified, narrow to this region only when reading,
6819 not during eval. Track next point to read from during eval.
6820 Also restore point to "real" buffer position before eval.
6821 (Feval_region): Don't save excursion and restriction here, and
6822 don't narrow to region. Just pass region to readevalloop.
6823 Note: Point is now preserved even when PRINTFLAG is nil.
6824
6825 2005-04-08 Kim F. Storm <storm@cua.dk>
6826
6827 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
6828
6829 2005-04-06 Kim F. Storm <storm@cua.dk>
6830
6831 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
6832
6833 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6834
6835 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
6836 (Fmac_get_preference): Doc fix.
6837
6838 * macfns.c (Fx_create_frame, x_create_tip_frame):
6839 Add "fontset-mac" to fallback font/fontsets.
6840
6841 2005-04-04 Kim F. Storm <storm@cua.dk>
6842
6843 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
6844
6845 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
6846 Call it again after autoload.
6847
6848 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6849
6850 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
6851 mallopt.
6852
6853 * ralloc.c (r_alloc_init): Ditto.
6854
6855 2005-04-01 Kenichi Handa <handa@m17n.org>
6856
6857 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
6858 (Vascii_eqv_table): Extern them.
6859
6860 * casetab.c (set_case_table): If standard is nonzero, setup
6861 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
6862
6863 * search.c (looking_at_1): Use current_buffer->case_canon_table,
6864 not DOWNCASE_TABLE.
6865 (string_match_1): Likewise.
6866 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
6867 Vascii_downcase_table.
6868 (fast_string_match_ignore_case): Likewise.
6869 (search_buffer): Fix checking of boyer-moore usability.
6870 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
6871 No need of tranlating characters in PAT. Fix calculation of
6872 simple_translate.
6873
6874 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6875
6876 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
6877 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
6878 Use XtNtopShadowPixel and XtNbottomShadowPixel.
6879 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
6880 really work and that breaks with some versions of Xaw3d.
6881
6882 2005-03-31 Kenichi Handa <handa@m17n.org>
6883
6884 * coding.c (syms_of_coding): Fix previous change.
6885
6886 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
6887
6888 * fileio.c (search_embedded_absfilename): Fix last change.
6889
6890 2005-03-25 Kenichi Handa <handa@m17n.org>
6891
6892 * coding.c (syms_of_coding): Suggest to use set-coding-category in
6893 the docstring of coding-category-list.
6894
6895 2005-03-31 Kim F. Storm <storm@cua.dk>
6896
6897 * keyboard.c (Qmouse_fixup_help_message): New var.
6898 (syms_of_keyboard): Intern and staticpro it.
6899 (show_help_echo): Apply mouse-fixup-help-message to help string.
6900
6901 2005-03-30 Kim F. Storm <storm@cua.dk>
6902
6903 * xdisp.c (display_line): Allow multiple overlay arrows in window.
6904
6905 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6906
6907 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
6908 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
6909 (Ffile_name_absolute_p): Use it.
6910 (search_embedded_absfilename): New fun, extracted from
6911 Fsubstitute_in_file_name. Use file_name_absolute_p.
6912 Free the pw data after use.
6913 (Fsubstitute_in_file_name): Use it.
6914 After cutting a prefix, re-check file-name-handler.
6915
6916 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
6917
6918 * w32term.h (x_output): Add focus_state.
6919
6920 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
6921 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
6922
6923 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6924
6925 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
6926 Use Fexit_minibuffer.
6927 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
6928
6929 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6930
6931 * dired.c (Ffile_attributes): Add a missing gcpro.
6932
6933 * alloc.c (make_number): The arg can be bigger than `int'.
6934 * lisp.h (make_number): Make prototype more precise.
6935
6936 * process.c, dired.c (Vfile_name_coding_system)
6937 (Vdefault_file_name_coding_system):
6938 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
6939 (Vdefault_file_name_coding_system): Remove unused declarations.
6940
6941 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6942
6943 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
6944 if it failed to pop up (Gnome "show pointer on ctrl" option makes
6945 menus fail to pop up).
6946
6947 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6948
6949 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
6950 Just prepend a backslash without replacing the NBSP by an SPC.
6951
6952 2005-03-22 Kim F. Storm <storm@cua.dk>
6953
6954 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
6955 * dispextern.h (lookup_derived_face): Fix prototype.
6956 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
6957
6958 * xdisp.c (handle_single_display_spec): Derive left-fringe and
6959 right-fringe face from fringe face.
6960
6961 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
6962 Derive face from fringe face.
6963
6964 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6965
6966 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
6967
6968 2005-03-22 David Kastrup <dak@gnu.org>
6969
6970 * textprop.c (Fnext_char_property_change)
6971 (Fprevious_char_property_change): Allow marker as limit.
6972 (Fnext_single_char_property_change)
6973 (Fprevious_single_char_property_change): Check that limit is a
6974 number in strings.
6975 (Fnext_single_char_property_change): Coerce position to integer.
6976 (Fprevious_single_char_property_change): Same here.
6977
6978 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
6979
6980 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
6981
6982 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6983
6984 * frame.c (Fignore_event): Remove.
6985 (syms_of_frame): Don't defsubr it.
6986
6987 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
6988 redundant `ignore-event'.
6989
6990 2005-03-19 Eli Zaretskii <eliz@gnu.org>
6991
6992 * unexec.c (write_segment, unexec): Move these functions to avoid
6993 forward references (which cause errors with "gcc -gcoff").
6994
6995 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6996
6997 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
6998 that it doesn't become "tooltip". The specbind is enough.
6999
7000 * xrdb.c (x_load_resources): Use different char *helv when I18N
7001 is present.
7002
7003 2005-03-17 Kenichi Handa <handa@m17n.org>
7004
7005 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
7006
7007 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7008
7009 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
7010 Use xic_create_fontsetname even for non-Motif menus.
7011 Don't forget to free the fontsetname.
7012
7013 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
7014
7015 2005-03-17 Richard M. Stallman <rms@gnu.org>
7016
7017 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
7018
7019 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
7020 (Fmake_symbolic_link): Use G to read the new file name.
7021
7022 * callint.c (Finteractive): Document G option.
7023 (Fcall_interactively): Implement G option.
7024
7025 * buffer.c (buffer_lisp_local_variables): New function,
7026 broken out from Fbuffer_local_variables.
7027 (clone_per_buffer_values): Use buffer_lisp_local_variables.
7028
7029 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7030
7031 * xfns.c (xic_create_fontsetname): Add `motif' argument.
7032 Always return a freshly allocated string.
7033 (xic_create_xfontset): Adjust call.
7034
7035 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
7036 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
7037 (dump_realized_face): Fix warning.
7038
7039 * emacs.c (Fkill_emacs): YAILOM.
7040
7041 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
7042
7043 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7044
7045 * mac.c (HASHKEY_TERMINAL): Remove.
7046 (HASHKEY_MAX_NID): New macro.
7047 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
7048 argument.
7049 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
7050 (xrm_create_database, xrm_q_put_resource)
7051 (xrm_merge_string_database, xrm_q_get_resource_1)
7052 (xrm_q_get_resource): Change resource database representation so
7053 that it may not use multiple hash tables for a single database.
7054 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
7055
7056 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
7057
7058 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
7059
7060 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
7061 locale-coding-system, as was already done for WINDOWSNT.
7062
7063 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
7064 translation for chars in the 0-255 range.
7065
7066 2005-03-16 Lute Kamstra <lute@gnu.org>
7067
7068 * floatfns.c (Ffloor): Doc fix.
7069
7070 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7071
7072 * mac.c: Include macterm.h instead of directly including Carbon.h.
7073 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
7074 (Qarray, Qdictionary): New variables.
7075 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7076 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
7077 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
7078 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
7079 in callback for CFDictionaryApplyFunction.
7080 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7081 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7082 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
7083 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
7084 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
7085 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7086 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
7087 (skip_white_space, parse_comment, parse_include_file)
7088 (parse_binding, parse_component, parse_resource_name, parse_value)
7089 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
7090 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
7091 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
7092 New functions.
7093
7094 * macfns.c (mac_get_rdb_resource): Remove function.
7095 (x_get_string_resource): Use xrm_get_resource.
7096
7097 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
7098
7099 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
7100 name_list_element.
7101 (mac_make_rdb): Create resource database from preferences and
7102 argument string.
7103 (mac_term_init): Save resource database to cddr part of
7104 name_list_element.
7105
7106 * macterm.h (xrm_merge_string_database, xrm_get_resource)
7107 (xrm_get_preference_database): Add externs.
7108 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7109 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7110 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
7111
7112 * process.c (init_process): Change `#ifdef DARWIN' to `#if
7113 defined (DARWIN) || defined (MAC_OSX)'
7114
7115 * s/darwin.h (DARWIN): Don't define.
7116
7117 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7118
7119 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
7120 Remove unused variables.
7121 (syms_of_macfns): Don't initialize them. Likewise for
7122 Qface_set_after_frame_default. Defvar and initialize
7123 Vx_window_horizontal_drag_shape.
7124 (x_set_mouse_color): Change mouse pointer shape.
7125 (mac_window) [!MAC_OSX]: Create root control.
7126 (Fx_create_frame): Remove initializations of mouse pointer shapes.
7127 (hourglass_started): New function (from xfns.c).
7128 (start_hourglass, cancel_hourglass): Put function body in #ifdef
7129 MAC_OSX.
7130 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
7131 indicator for each non-tooltip frame if needed, and show it.
7132 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
7133
7134 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
7135 Controls.h. Use ThemeCursor instead of CursHandle.
7136
7137 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
7138 Remove functions and declarations.
7139 (mac_set_colors): Take argument for saving background color.
7140 All callers changed.
7141 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
7142 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
7143 background color.
7144 (x_update_end, mac_do_track_drag): Don't reset background color.
7145 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
7146 Use SetThemeCursor.
7147 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
7148 indicator control to the upper-right corner of the window.
7149 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
7150 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
7151 (do_window_update): Update controls after updating content area.
7152 (mac_handle_window_event): Remove unused extern.
7153 (XTread_socket): Check both control handle and control part code
7154 to determine whether a scroll bar is clicked. Activate/deactivate
7155 root control instead of contained scroll bar controls.
7156 (make_mac_terminal_frame): Use ThemeCursor constants.
7157
7158 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
7159 New member hourglass_control.
7160 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
7161 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
7162
7163 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7164
7165 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
7166 coincides with that in Apple X11 except `clear', `enter' on
7167 laptops, and fn + `enter' on laptops.
7168
7169 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7170
7171 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
7172 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
7173 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
7174
7175 * xfns.c (xic_defaut_fontset): New constant.
7176 (xic_create_fontsetname): New function.
7177 Extracted from create_frame_xic. Try to generate a slightly
7178 better fontset.
7179 (xic_create_xfontset): Use it.
7180 (create_frame_xic): Simplify.
7181
7182 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
7183
7184 * fileio.c (Fmake_symbolic_link): Fix last change.
7185
7186 2005-03-11 Richard M. Stallman <rms@gnu.org>
7187
7188 * fileio.c (Frename_file, Fadd_name_to_file)
7189 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
7190 expand the basename of FILE relative to it.
7191
7192 2005-03-11 Kenichi Handa <handa@m17n.org>
7193
7194 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
7195 before calling setup_coding_system so that autoloading of a coding
7196 system work.
7197
7198 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7199
7200 * xfns.c (hourglass_started): New function.
7201
7202 * dispextern.h: Declare hourglass_started.
7203
7204 * keyboard.c (Fexecute_extended_command): Restart hourglass
7205 after call to Fcompleting_read if already started.
7206
7207 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
7208 GTK main loop is entered in xterm.c, thus doing the redraw.
7209
7210 2005-03-10 Kim F. Storm <storm@cua.dk>
7211
7212 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
7213
7214 2005-03-08 Kenichi Handa <handa@m17n.org>
7215
7216 * frame.c (x_set_font): Call set_default_ascii_font if an
7217 available font is found.
7218
7219 * fontset.c (set_default_ascii_font): New function.
7220 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
7221
7222 * fontset.h (set_default_ascii_font): Extern it.
7223
7224 2005-03-07 Kim F. Storm <storm@cua.dk>
7225
7226 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
7227 (clear_image_cache_count): New var.
7228 (redisplay_internal): Don't clear face and image caches in the
7229 middle of redisplay; do it afterwards.
7230
7231 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
7232
7233 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
7234 is valid. If not, clear phys_cursor_on_p and return.
7235
7236 2005-03-07 Andreas Schwab <schwab@suse.de>
7237
7238 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
7239
7240 2005-03-06 Richard M. Stallman <rms@gnu.org>
7241
7242 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
7243
7244 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
7245 (Feval, Ffuncall): Use CHECK_CONS_LIST.
7246
7247 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
7248
7249 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
7250 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
7251
7252 2005-03-05 Juri Linkov <juri@jurta.org>
7253
7254 * emacs.c (USAGE1): Replace Info node name "command arguments"
7255 with "emacs invocation".
7256 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
7257 allow arguments `--color' and `MODE' to be separated by space.
7258 Add --no-blinking-cursor, -nbc.
7259 (standard_args): Add -nbc, --no-blinking-cursor.
7260
7261 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7262
7263 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
7264 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
7265 * fileio.c (Fexpand_file_name) [VMS]:
7266 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
7267 * doc.c (munge_doc_file_name) [VMS]: Likewise.
7268 (Fsnarf_documentation): Call munge_doc_file_name.
7269
7270 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7271
7272 * s/vms.h (FILE_SYSTEM_CASE): New macro.
7273 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
7274 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
7275
7276 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7277
7278 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
7279 defined (MAC_OSX) && defined (HAVE_CARBON)'.
7280
7281 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
7282
7283 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
7284 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
7285 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
7286 (mac_clear_font_name_table): Move extern to macterm.h.
7287
7288 * macfns.c (install_window_handler): Move extern to macterm.h.
7289 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
7290 valid. Don't check !NILP (dir) because it is already checked with
7291 CHECK_STRING.
7292 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
7293 specifying the default location and obtaining the selected filename.
7294
7295 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
7296
7297 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
7298 are included via Carbon.h.
7299
7300 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
7301 Define USE_CARBON_EVENTS to 1.
7302 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
7303 (x_free_frame_resources): Call remove_window_handler for
7304 non-tooltip windows.
7305 [TARGET_API_MAC_CARBON]: Don't include headers that are included
7306 via Carbon.h.
7307 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
7308 (mac_do_receive_dragUPP): New variables.
7309 (mac_handle_service_event, init_service_handler): Put declarations
7310 and definitions in #ifdef MAC_OSX.
7311 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
7312 drag-and-drop handler functions and register them.
7313 (remove_window_handler): New function.
7314 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
7315 Use fsspec_to_posix_pathname.
7316 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
7317 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
7318 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
7319 Set default cursors.
7320 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
7321 init_service_handler or init_quit_char_handler.
7322 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
7323
7324 * macterm.h (install_window_handler, remove_window_handler)
7325 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
7326 (mac_clear_font_name_table): New externs.
7327
7328 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
7329
7330 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
7331 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
7332 (Fexpand_file_name): Likewise.
7333
7334 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
7335
7336 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
7337 no longer special-case VMS. Add bogus return value.
7338
7339 2005-03-02 Kim F. Storm <storm@cua.dk>
7340
7341 * dispextern.h (XASSERTS): Define to 0 if not already defined.
7342 (xassert) [!XASSERTS]: Define dummy version.
7343
7344 2005-03-02 Kim F. Storm <storm@cua.dk>
7345
7346 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
7347 Reported by David Kastrup.
7348
7349 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
7350
7351 * xdisp.c (get_next_display_element): Fix control and escape
7352 glyph from display vector.
7353
7354 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
7357
7358 2005-02-27 Richard M. Stallman <rms@gnu.org>
7359
7360 * xdisp.c (fast_find_position): Rename END to BEG.
7361 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
7362
7363 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7364
7365 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
7366 gtk_window_resize and x_wm_set_size_hint.
7367
7368 2005-02-25 Kim F. Storm <storm@cua.dk>
7369
7370 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
7371
7372 * xdisp.c (init_from_display_pos): Don't read past end of
7373 it->overlay_strings array.
7374
7375 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
7376
7377 * buffer.c (syms_of_buffer): Fix typo.
7378
7379 2005-02-23 Lute Kamstra <lute@gnu.org>
7380
7381 * buffer.c (Foverlay_buffer): Doc fix.
7382
7383 2005-02-22 Kim F. Storm <storm@cua.dk>
7384
7385 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
7386 and symbol keys in alists and hash tables.
7387
7388 * xdisp.c (fast_find_position): Fix search for start of overlay.
7389
7390 2005-02-21 Kim F. Storm <storm@cua.dk>
7391
7392 * window.c (window_scroll_pixel_based): When scrolling backwards,
7393 handle partial visible line at end of window even when we hit PT.
7394
7395 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
7396
7397 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
7398
7399 2005-02-21 Kim F. Storm <storm@cua.dk>
7400
7401 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
7402 I think those asserts are bogus if buffer contains invisible text
7403 or images.
7404
7405 2005-02-21 David Kastrup <dak@gnu.org>
7406
7407 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
7408
7409 2005-02-20 Kim F. Storm <storm@cua.dk>
7410
7411 * xdisp.c (pos_visible_p): Be sure to move to the specified
7412 position. Always get the full ascent / descent of the
7413 corresponding row, to return reliable rtop and rbot values.
7414 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
7415 Must look one character back, as back_to_previous_line_start
7416 returns position after the newline.
7417 (move_it_vertically_backward): Fix heuristic for when to move further
7418 back in case line_height * 2/3 is larger than window height.
7419 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
7420 as it does not do anything anymore. Add arg current_matrix_p to
7421 use current matrix rather than desired matrix when set.
7422 (try_cursor_movement): Don't scroll to make cursor row fully
7423 visible if cursor didn't move. This avoids unexpected recentering
7424 in case of blinking cursor or accepting process output.
7425 Use current matrix to check cursor row visibility.
7426 (redisplay_window): Fix whether to recenter or move to top in case
7427 cursor line is taller than window height.
7428 (find_first_unchanged_at_end_row): Stop search if we reach a row
7429 which not enabled (instead of abort).
7430
7431 2005-02-18 Kim F. Storm <storm@cua.dk>
7432
7433 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
7434 to be nil in a :box attribute value list; customize prints that
7435 as lisp value when no box color is specified.
7436
7437 * .gdbinit (pitx, pit): Pretty print display iterator.
7438 (prowx, prow): Pretty print glyph row.
7439 (pcursorx, pcursor): Pretty print a window cursor.
7440 (pwinx, pwin): Pretty print struct window.
7441
7442 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7443
7444 * alloc.c (BLOCK_BYTES): Harmless typo.
7445
7446 2005-02-17 Andreas Schwab <schwab@suse.de>
7447
7448 * xfns.c (hack_wm_protocols): Use correct type for last parameter
7449 of XGetWindowProperty to avoid aliasing issues.
7450 (Fx_window_property): Likewise.
7451
7452 * xselect.c (Fx_disown_selection_internal): Use union of struct
7453 input_event and struct selection_input_event to avoid aliasing issues.
7454
7455 * xterm.c (handle_one_xevent): Use union of struct input_event and
7456 struct selection_input_event to avoid aliasing issues.
7457 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
7458
7459 2005-02-17 Kim F. Storm <storm@cua.dk>
7460
7461 * dispextern.h (enum it_method): New enum.
7462 (GET_FROM_*): Its members.
7463 (struct it): Change member method from function pointer to enum.
7464
7465 * xdisp.c (check_it, init_from_display_pos, handle_stop)
7466 (setup_for_ellipsis, handle_single_display_spec)
7467 (handle_composition_prop, next_overlay_string)
7468 (get_overlay_strings, reseat_1, reseat_to_string)
7469 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
7470 (in_display_vector_p, display_line, get_next_display_element):
7471 Change it->method from function pointer to enum.
7472 (get_next_element): New array to map it->method to function.
7473 (get_next_display_element): Use it.
7474 (set_iterator_to_next): Use switch instead of if/else chain.
7475
7476 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7477
7478 * w32select.c: Summary: Thorough rework to implement Unicode
7479 clipboard operations and delayed rendering.
7480
7481 Drop last_clipboard_text and related code, keep track of
7482 ownership via clipboard_owner instead. Drop old #if0 sections.
7483
7484 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
7485 (clipboard_owner, modifying_clipboard, cfg_coding_system)
7486 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
7487 (current_coding_system, current_requires_encoding)
7488 (current_num_nls, current_clipboard_type, current_lcid):
7489 New static variables.
7490
7491 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
7492 (render, render_all, run_protected, lisp_error_handler)
7493 (owner_callback, create_owner, setup_config)
7494 (enum_locale_callback, cp_from_locale, coding_from_cp):
7495 New local functions.
7496
7497 (term_w32select, globals_of_w32select): New global functions.
7498
7499 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
7500 clipboard_owner instead. Use delayed rendering and provide
7501 all text formats. Provide CF_LOCALE if necessary.
7502
7503 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
7504 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
7505 available. Force DOS line-ends for decoding.
7506
7507 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
7508
7509 (syms_of_w32select): Init and register new variables.
7510
7511 * w32.h: Add prototypes for globals_of_w32select and
7512 term_w32select. Make the neighboring K&R declarations into
7513 prototypes, too.
7514
7515 * emacs.c: Include w32.h to get function prototypes.
7516 (main): Call globals_of_w32select.
7517
7518 * w32.c (term_ntproc): Call term_w32select.
7519
7520 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
7521
7522 2005-02-16 Kim F. Storm <storm@cua.dk>
7523
7524 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
7525 at end of display vector.
7526
7527 2005-02-15 Richard M. Stallman <rms@gnu.org>
7528
7529 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
7530 for mode and header lines.
7531
7532 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
7533
7534 * keymap.h (describe_map_tree): Change decl.
7535
7536 * keyboard.c (command_loop_1): Always use safe_run_hooks
7537 to run Qdeferred_action_function.
7538
7539 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
7540 (describe_map, describe_vector): Likewise. When it's 1,
7541 don't omit shadowed bindings, instead mark them as shadowed.
7542
7543 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
7544 for describe_map_tree. Pass 1 for MENTION_SHADOW.
7545
7546 * data.c (Fsetq_default): Allow no arg case.
7547
7548 2005-02-14 Kenichi Handa <handa@m17n.org>
7549
7550 * coding.c (encode_coding_string): Always return a unibyte string.
7551 If NOCOPY is nonzero and there's no need of encoding, make STR
7552 unibyte directly.
7553
7554 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
7555 multibyte string, signal an error instead of aborting.
7556
7557 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
7558
7559 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
7560
7561 2005-02-12 Kim F. Storm <storm@cua.dk>
7562
7563 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
7564
7565 2005-02-10 Kim F. Storm <storm@cua.dk>
7566
7567 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
7568 if it moves outside window or it doesn't display text.
7569
7570 2005-02-09 Kim F. Storm <storm@cua.dk>
7571
7572 * undo.c (Fprimitive_undo): Check that undo function does not
7573 switch buffer.
7574
7575 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7576
7577 * xselect.c (selection_data_to_lisp_data): For the special case
7578 type == XA_ATOM, data contains array of int, not array of Atom.
7579 (x_property_data_to_lisp, selection_data_to_lisp_data):
7580 Comment update: data must be array of int for format == 32.
7581
7582 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
7583
7584 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
7585
7586 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7587
7588 * xfns.c (Fx_change_window_property): Use long array when format is 32.
7589 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
7590 convert long array returned from XGetWindowProperty to an int array.
7591 (x_set_tool_bar_lines): Check that width and height is greater than
7592 zero before clearing area.
7593
7594 * xselect.c (x_reply_selection_request): Pass long array to
7595 XChangeProperty so that 64 bit longs are handeled correctly.
7596 (x_get_window_property): If format is 32 and long is bigger than 32
7597 bits convert data from XGetWindowProperty from long array to int array.
7598 (lisp_data_to_selection_data): When the input is a vector and the
7599 format is 32, allocate a long array even if long is bigger than 32 bits.
7600 (x_fill_property_data): Use char, short and long as the man page
7601 for XChangeProperty specifies. This way the data returned is OK for
7602 both 32 and 64 bit machines.
7603 (x_handle_dnd_message): Calculate size correctly even for 64 bit
7604 machines.
7605 (Fx_send_client_event): Undo change from 2005-02-05,
7606 x_fill_property_data now handles that case.
7607
7608 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
7609 reason for the approach in the code.
7610
7611 2005-02-07 Kim F. Storm <storm@cua.dk>
7612
7613 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
7614
7615 2005-02-06 Richard M. Stallman <rms@gnu.org>
7616
7617 * eval.c (Frun_hook_with_args)
7618 (Frun_hook_with_args_until_success)
7619 (Frun_hook_with_args_until_failure): Doc fixes.
7620
7621 2005-02-05 Andreas Schwab <schwab@suse.de>
7622
7623 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
7624
7625 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7626
7627 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
7628 the longs in a XClientMessageEvent correctly when long is 64 bits.
7629
7630 2005-02-05 Eli Zaretskii <eliz@gnu.org>
7631
7632 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
7633 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
7634
7635 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7636
7637 * xmenu.c (menubar_selection_callback): Force out GTK buffered
7638 events so the menu event comes after them. This is to prevent sit-for
7639 from exiting on buffered events directly after a menu selection,
7640 lisp code for Help => About Emacs uses sit-for.
7641
7642 * gtkutil.c (create_menus): Connect selection-done event instead of
7643 the deactivate event to deactivate_cb. This will make the last
7644 leave event come before the call to deactivate_cb, so the leave
7645 event does not make sit-for exit after a menu selection.
7646
7647 2005-02-03 Kim F. Storm <storm@cua.dk>
7648
7649 * dispnew.c (build_frame_matrix_from_leaf_window)
7650 [!GLYPH_DEBUG]: Fix xassert.
7651
7652 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
7653
7654 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7655
7656 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7657
7658 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
7659 the compiling OS version.
7660
7661 * macfns.c (x_create_tip_frame): Likewise.
7662
7663 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
7664
7665 2005-02-03 Richard M. Stallman <rms@gnu.org>
7666
7667 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
7668
7669 * xdisp.c (echo_area_display): Clear echo_message_buffer.
7670
7671 * buffer.c (Fbury_buffer): Doc fix.
7672
7673 2005-02-02 Steven Tamm <steventamm@mac.com>
7674
7675 * macfns.c (unwind_create_frame): Fix compile error due to
7676 xassert being uncondition, but predicate is.
7677 * dispnew.c (update_window): Fix compile error due to
7678 xassert being uncondition, but predicate is.
7679
7680 2005-02-02 Miles Bader <miles@gnu.org>
7681
7682 * dispextern.h (xassert): Enable unconditionally.
7683
7684 2005-02-02 Kim F. Storm <storm@cua.dk>
7685
7686 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
7687
7688 2005-02-02 Kenichi Handa <handa@m17n.org>
7689
7690 * casefiddle.c (casify_object): Enable changing characters of
7691 different byte length.
7692 (casify_region): Fix loop condition, args to replace_range_2, and
7693 update opoint_byte.
7694
7695 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
7696
7697 2005-02-01 Kim F. Storm <storm@cua.dk>
7698
7699 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
7700 stack before calling handle_display_prop.
7701
7702 2005-01-31 Kim F. Storm <storm@cua.dk>
7703
7704 * undo.c (Qapply): New lisp var.
7705 (syms_of_undo): Intern and staticpro it.
7706 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
7707 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
7708
7709 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7710
7711 2005-01-30 Jesper Harder <harder@phys.au.dk>
7712
7713 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
7714 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7715
7716 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
7717
7718 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
7719 Increase value to 3 Meg.
7720
7721 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7722
7723 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
7724 button events are not received otherwise.
7725
7726 2005-01-29 Richard M. Stallman <rms@gnu.org>
7727
7728 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
7729
7730 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
7731
7732 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7733
7734 * keymap.c (access_keymap): YAILOM.
7735
7736 2005-01-27 Kim F. Storm <storm@cua.dk>
7737
7738 * xdisp.c (get_phys_cursor_geometry): New function to calculate
7739 phys cursor position and size for hollow cursor. Position is
7740 aligned with get_glyph_string_clip_rect and ensures that a hollow
7741 cursor is shown, even when the actual glyph is not visible.
7742
7743 * dispextern.h (get_phys_cursor_geometry): Add prototype.
7744
7745 * xterm.c (x_clip_to_row): Ensure y >= 0.
7746 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7747
7748 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7749
7750 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
7751
7752 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
7753
7754 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
7755
7756 2005-01-27 Kim F. Storm <storm@cua.dk>
7757
7758 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
7759 glyph, even when row is only partially visible and actual cursor
7760 position is not visible.
7761
7762 2005-01-24 Richard M. Stallman <rms@gnu.org>
7763
7764 * xterm.c (x_error_quitter): No longer static, and moved after
7765 x_error_handler.
7766
7767 2005-01-24 Kim F. Storm <storm@cua.dk>
7768
7769 * xdisp.c (move_it_by_lines): If we move forward after going too
7770 far back, cancel move if end position is same as start position.
7771
7772 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7773
7774 * dispextern.h (struct glyph_string): New members clip_head and
7775 clip_tail.
7776
7777 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
7778 region to the area between clip_head and clip_tail.
7779 (draw_glyphs): Record the area that need to be actually redrawn to
7780 the new variables clip_head and clip_tail when there are
7781 overhangs. Set values of these variables to the corresponding
7782 members in struct glyph_string. Refine x coordinates for
7783 notice_overwritten_cursor using clip_head and clip_tail.
7784
7785 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
7786
7787 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
7788 QDTextBounds.
7789 (x_draw_glyph_string): Don't fill the background of the successor
7790 of a glyph with a right overhang if the successor will draw a cursor.
7791 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
7792 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
7793
7794 2005-01-24 Kim F. Storm <storm@cua.dk>
7795
7796 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
7797 direction if window height was smaller than next-screen-context-lines.
7798 Now always scroll at least one line in the requested direction.
7799 Ensure that we actually do scroll backwards when requested to do so.
7800
7801 * xdisp.c (redisplay_window): Only try to make cursor line fully
7802 visible once (to avoid redisplay loop).
7803
7804 2005-01-23 Kim F. Storm <storm@cua.dk>
7805
7806 * window.c (Fpos_visible_in_window_p): Simplify return value for
7807 partially visible rows.
7808 (window_scroll_pixel_based): Adapt to that change.
7809
7810 * window.c (window_scroll_pixel_based): Force moving to next line
7811 if scrolling doesn't move start point, e.g. if looking at tall image.
7812
7813 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
7814 Clear last_height before calling line_bottom_y to get real height.
7815 Fix calculation of y.
7816
7817 2005-01-22 Steven Tamm <steventamm@mac.com>
7818
7819 * s/darwin.h: Removed PTY_ITERATION from here.
7820 (DARWIN): Define.
7821
7822 * process.c (init_process): Default process-connection-type to
7823 nil on darwin 6 or less, t if it is 7 or higher. This way the
7824 broken pty behavior is still allowed on darwin 6 for interactive
7825 processes for people that know what they are doing.
7826
7827 2005-01-22 Kim F. Storm <storm@cua.dk>
7828
7829 * window.c (auto_window_vscroll_p): New boolean.
7830 (syms_of_window): DEFVAR_BOOL it.
7831 (Fpos_visible_in_window_p): Extend return value to include RTOP
7832 and RBOT values if FULLY is nil.
7833 (window_scroll_pixel_based): Adjust vscroll for partially visible
7834 rows if auto_window_vscroll_p is set.
7835 (Fset_window_vscroll): Do nothing if vscroll is not modified.
7836
7837 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
7838 to return number of partially invisible pixels at top and bottom
7839 of the dislay row at POS.
7840
7841 * lisp.h (pos_visible_p): Fix prototype.
7842
7843 2005-01-21 Richard M. Stallman <rms@gnu.org>
7844
7845 * fileio.c (Fcopy_file): Doc fix.
7846
7847 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7848
7849 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
7850 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
7851 start of function for older compilers.
7852
7853 2005-01-20 Richard M. Stallman <rms@gnu.org>
7854
7855 * editfns.c (Fmessage): If arg is "", return "" (as before).
7856
7857 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
7858
7859 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
7860 variable.
7861
7862 2005-01-20 Steven Tamm <steventamm@mac.com>
7863
7864 * editfns.c (Voperating_system_release): Add.
7865 (init_editfns): Assign new variable operating-system-release
7866 based on call to uname if available.
7867 (get_operating_system_release): Add function to
7868 allow c-level access to operating system release.
7869
7870 * config.h: Regenerated.
7871
7872 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
7873 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
7874 using ptys as '7'.
7875
7876 2005-01-20 Kim F. Storm <storm@cua.dk>
7877
7878 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
7879
7880 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
7881 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
7882
7883 * macterm.c (x_draw_glyph_string_box): Likewise.
7884
7885 * w32term.c (x_draw_glyph_string_box): Likewise.
7886
7887 * indent.c (Fvertical_motion): Temporarily disable selective display.
7888
7889 2005-01-19 Kim F. Storm <storm@cua.dk>
7890
7891 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
7892 image property.
7893
7894 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
7895
7896 2005-01-18 Kim F. Storm <storm@cua.dk>
7897
7898 * xdisp.c (fast_find_position): Backtrack to find first row if
7899 charpos is inside a display overlay that spans multiple lines.
7900
7901 2005-01-18 Kenichi Handa <handa@m17n.org>
7902
7903 * coding.c (decode_coding_iso2022): Translate invalid codes if
7904 translation-table is specified.
7905
7906 2005-01-18 Kim F. Storm <storm@cua.dk>
7907
7908 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
7909 change. If handle_display_prop indicates newline is replaced by
7910 image or text, move back to start of relevant overlay or interval
7911 and continue scan from there. Simplify.
7912
7913 2005-01-17 Kim F. Storm <storm@cua.dk>
7914
7915 * dispnew.c (mode_line_string, marginal_area_string):
7916 Fix off-by-one error in search for glyph.
7917
7918 2005-01-16 Kim F. Storm <storm@cua.dk>
7919
7920 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
7921
7922 2005-01-16 Steven Tamm <steventamm@mac.com>
7923
7924 * macterm.c (mac_to_x_fontname): Remove spurious argument.
7925
7926 2005-01-16 Andreas Schwab <schwab@suse.de>
7927
7928 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
7929
7930 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7931
7932 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
7933 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
7934
7935 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7936
7937 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
7938 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
7939 New flags for readable_events.
7940 (get_filtered_input_pending, readable_filtered_events): Remove.
7941 (tracking_off): Call readable_events and get_input_pending with
7942 flag READABLE_EVENTS_DO_TIMERS_NOW.
7943 (readable_events): Move code from old readable_filtered_events here,
7944 but check new READABLE_EVENTS_* in argument flags instead of previous
7945 two boolean arguments do_timers_now and filter_events.
7946 If we are doing mouse tracking and the mouse moved, return only if
7947 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
7948 (swallow_events): Call get_input_pending with flag
7949 READABLE_EVENTS_DO_TIMERS_NOW.
7950 (get_input_pending): Move code from old get_filtered_input_pending
7951 here. Replace boolean arguments do_timers_now, filter_events with
7952 flags, and pass flags to readable_events. Document new
7953 READABLE_EVENTS_* flags.
7954 (detect_input_pending_ignore_squeezables): New function.
7955 (detect_input_pending_run_timers): Call get_input_pending with flag
7956 READABLE_EVENTS_DO_TIMERS_NOW.
7957 (Finput_pending_p): Call get_input_pending with flags
7958 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
7959
7960 * dispnew.c (update_window, update_frame_1): Replace calls to
7961 detect_input_pending with detect_input_pending_ignore_squeezables
7962 so that redisplay is not paused if the event queue contains only
7963 mouse movements.
7964
7965 * lisp.h: Declare detect_input_pending_ignore_squeezables.
7966
7967 2005-01-15 Steven Tamm <steventamm@mac.com>
7968
7969 * macterm.c (Vmac_use_core_graphics): Declare variable for
7970 mac-allow-anti-aliasing.
7971 (syms_of_macterm): DEFVAR_LISP and initialize it.
7972 (mac_draw_string_common): Use core graphics text rendering if
7973 mac-allow-anti-aliasing is enabled.
7974
7975 * macfns.c (Fx_file_dialog): Save As dialog includes only the
7976 file name in the text box.
7977
7978 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7979
7980 * macfns.c (x_set_foreground_color, x_set_background_color):
7981 Sync with xfns.c.
7982 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
7983 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
7984 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
7985
7986 2005-01-14 Kim F. Storm <storm@cua.dk>
7987
7988 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
7989
7990 2005-01-13 Richard M. Stallman <rms@gnu.org>
7991
7992 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
7993 if Voverriding_terminal_local_map is non-nil.
7994
7995 * keyboard.c (syms_of_keyboard): Doc fix.
7996
7997 2005-01-13 Kim F. Storm <storm@cua.dk>
7998
7999 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
8000 (specify 0 for FACE instead). Reorder arg list. Doc fix.
8001
8002 2005-01-12 Richard M. Stallman <rms@gnu.org>
8003
8004 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
8005 face property for characters that don't specify one.
8006
8007 * fns.c (Frequire): Record in load-history unconditionally.
8008
8009 2005-01-10 Kim F. Storm <storm@cua.dk>
8010
8011 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
8012
8013 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
8014 Callers changed.
8015 Add support to merge with lisp face id too (if face_name is t).
8016
8017 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8018 Don't lookup lface_id from display table glyphs here; instead use
8019 merge_faces to merge the lisp face id into current face.
8020
8021 2005-01-09 Kim F. Storm <storm@cua.dk>
8022
8023 * dispextern.h (struct it): New member dpvec_face_id.
8024 (merge_into_realized_face): Add prototype.
8025
8026 * xfaces.c (merge_into_realized_face): New function. Used to
8027 merge escape-glyph face or face from display table into current face.
8028
8029 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
8030 (syms_of_xdisp): DEFVAR_LISP it.
8031 (escape_glyph_face): Remove var.
8032 (redisplay_window): Don't initialize it.
8033 (setup_for_ellipsis, get_next_display_element):
8034 Set it->dpvec_face_id to -1.
8035 (get_next_display_element): Test Vshow_nonbreak_escape.
8036 Do not setup escape_glyph_face.
8037 Properly merge escape-glyph face or face from display table with
8038 current face for escape and control characters.
8039 Set it->dpvec_face_id to relevant face id instead of adding it to each
8040 element of display vector.
8041 (next_element_from_display_vector): If it->dpvec_face_id is set,
8042 use that instead of lface_id from glyph itself.
8043
8044 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8045
8046 * xterm.h (struct x_output): New member, toolbar_detached.
8047
8048 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
8049 38.
8050 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
8051 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
8052 (xg_create_tool_bar): Initialize toolbar_detached.
8053 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
8054 toolbar_detached is zero.
8055
8056 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8057
8058 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
8059 gtk_menu_popup if not for_click, so callbacks for the menu are called.
8060
8061 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
8062 (xg_tool_bar_callback, xg_tool_bar_help_callback)
8063 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
8064
8065 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8066 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
8067 XFLOAT_DATA to get extract number from Lisp object.
8068
8069 2005-01-07 Kim F. Storm <storm@cua.dk>
8070
8071 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
8072 Set stop_charpos to current charpos instead of 0.
8073
8074 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
8075
8076 * xdisp.c (Fformat_mode_line): First arg now required.
8077
8078 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8079
8080 * macterm.c (XLoadQueryFont): Correctly handle 0 size
8081 font widths that are returned from some Japanese fonts.
8082
8083 2005-01-06 Kim F. Storm <storm@cua.dk>
8084
8085 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
8086 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
8087 (destroy_fringe_bitmap): Set fringe_faces element to nil.
8088 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
8089 fringe_faces array and init elements to nil.
8090 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
8091 non-persistent face id.
8092 (mark_fringe_data): New function for GC.
8093
8094 * alloc.c (mark_fringe_data): Declare extern.
8095 (Fgarbage_collect): Call mark_fringe_data.
8096
8097 * alloc.c (overrun_check_free): Invalidate freed memory if
8098 XMALLOC_CLEAR_FREE_MEMORY is defined.
8099
8100 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8101
8102 * macfns.c: Include sys/param.h.
8103 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
8104 and function.
8105 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
8106 of filename string. Set event callback function when creating
8107 dialog boxes. Add code conversions for filenames. Don't dispose
8108 of apple event descriptor record if failed to create it.
8109
8110 * macterm.c: Include sys/param.h.
8111 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
8112 kEventWindowUpdate.
8113 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
8114 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
8115 of FSSpec from apple event descriptor record.
8116 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
8117 size of filename string.
8118 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
8119 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
8120 file dialog is in action.
8121 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
8122 Reject only when there are no filename items. Set background color
8123 before (un)highlighting the window below the dragged items.
8124 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
8125
8126 2005-01-05 Romain Francoise <romain@orebokech.com>
8127
8128 * term.c (encode_terminal_code): Fix buffer size computation.
8129
8130 2005-01-04 Richard M. Stallman <rms@gnu.org>
8131
8132 * xdisp.c (Fformat_mode_line): Doc fix.
8133
8134 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8135
8136 * alloc.c (refill_memory_reserve): Move.
8137 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
8138 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
8139
8140 2005-01-03 Richard M. Stallman <rms@gnu.org>
8141
8142 * window.c (window_scroll_pixel_based): Don't correct preserve_y
8143 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
8144
8145 2005-01-03 Jason Rumney <jasonr@gnu.org>
8146
8147 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
8148 fontp->space_width to FONT_WIDTH so they are valid.
8149
8150 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
8151 average width. Set fontp->average_width and fontp->space_width to
8152 their appropriate values.
8153
8154 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8155 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8156 fontp->space_width.
8157
8158 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8159
8160 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
8161 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
8162 metrics for max and min bounds.
8163 (x_load_font): Correctly calculate average font width metrics.
8164
8165 2005-01-02 Richard M. Stallman <rms@gnu.org>
8166
8167 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
8168
8169 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8170
8171 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
8172
8173 2004-12-31 Richard M. Stallman <rms@gnu.org>
8174
8175 * xdisp.c (setup_for_ellipsis, get_next_display_element):
8176 Set it->ellipsis_p to 1 or 0.
8177 (display_line): Record whether row ends in mid-ellipsis.
8178 (set_cursor_from_row): If ends in ellipsis, find start of it.
8179 (cursor_row_p): If PT's at the end of the ellipsis the row
8180 ends within, don't display cursor on this row.
8181
8182 * dispextern.h (struct it): New element ellipsis_p.
8183 (struct glyph_row): New element ends_in_ellipsis_p.
8184
8185 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
8186 position if we're reading from something other than the buffer.
8187
8188 * window.c (window_scroll_pixel_based): Only look at
8189 Vscroll_preserve_screen_position if the old PT can't be kept.
8190 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8191
8192 2004-12-30 Kim F. Storm <storm@cua.dk>
8193
8194 * xdisp.c (get_line_height_property): New function extracted from
8195 original calc_line_height_property.
8196 (calc_line_height_property): Rework. Handle t and (nil . ratio).
8197 (x_produce_glyphs): Use them to handle line-height and
8198 line-spacing according to new height spec.
8199 (Qtotal): Remove.
8200 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
8201
8202 2004-12-30 Kenichi Handa <handa@m17n.org>
8203
8204 * fileio.c (Finsert_file_contents): Don't use
8205 current_buffer->buffer_file_coding_system even if REPLACE is
8206 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
8207
8208 * fontset.h (struct font_info): New members space_width and
8209 average_width.
8210
8211 * frame.h (struct frame): New member space_width.
8212 (FRAME_SPACE_WIDTH): New macro.
8213
8214 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
8215
8216 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8217 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8218 fontp->space_width.
8219 (x_load_font): Calculate fontp->space_width and fontp->average_width.
8220 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
8221
8222 * xdisp.c (x_produce_glyphs): Calculate tab width by
8223 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
8224
8225 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
8226
8227 * macterm.c (SelectionRange): Add Xcode position apple event struct.
8228 (do_ae_open_documents): Handle Xcode-style file position open events.
8229
8230 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
8231
8232 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
8233
8234 2004-12-29 Richard M. Stallman <rms@gnu.org>
8235
8236 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
8237
8238 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8239
8240 * macfns.c (install_window_handler): Modify extern to return OSErr
8241 value.
8242 (mac_window): Handle return value of install_window_handler.
8243
8244 * macterm.c (reflect_byte): Remove function.
8245 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
8246 Lookup table instead.
8247 (mac_do_font_lists): Simplify calculation of the longest
8248 nonspecial string.
8249 (init_mac_drag_n_drop): Remove function and declaration.
8250 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
8251 init_mac_drag_n_drop.
8252 (mac_do_track_drag): New function and declaration.
8253 (install_window_handler): Return OSErr value.
8254 (install_window_handler) [TARGET_API_MAC_CARBON]:
8255 Register handlers for tracking/receiving drag-and-drop items.
8256 (do_ae_open_documents): Generate unibyte strings for filenames.
8257 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
8258 Reject only non-filename items. Set event modifiers, and return value.
8259
8260 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8261
8262 * coding.c (decode_coding): Fix previous change.
8263
8264 2004-12-28 Richard M. Stallman <rms@gnu.org>
8265
8266 * xdisp.c (back_to_previous_visible_line_start):
8267 Don't call handle_display_prop.
8268
8269 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8270
8271 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
8272 (decode_coding_emacs_mule, encode_coding_emacs_mule)
8273 (decode_coding_iso2022, encode_designation_at_bol)
8274 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
8275 (decode_coding): Constify arguments and local vars.
8276
8277 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8278
8279 * xmenu.c (popup_get_selection): Only pop down dialogs
8280 on C-g and Escape.
8281 (popup_get_selection): Remove parameter down_on_keypress.
8282 (create_and_show_popup_menu, create_and_show_dialog):
8283 Remove parameter down_on_keypress to popup_get_selection.
8284
8285 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8286
8287 * dispextern.h: Change HAVE_CARBON to MAC_OS.
8288 (struct glyph_string): Likewise.
8289
8290 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
8291 mac_initialize.
8292
8293 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
8294 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
8295
8296 * fns.c (vector): Change MAC_OSX to MAC_OS.
8297
8298 * frame.c (x_set_frame_parameters, x_report_frame_params)
8299 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
8300 (x_set_border_width, Vdefault_frame_scroll_bars):
8301 Change HAVE_CARBON to MAC_OS.
8302
8303 * image.c [MAC_OS]: Include sys/stat.h.
8304 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
8305 QuickTimeComponents.h.
8306
8307 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
8308 [!MAC_OSX] (select): Use mac_wait_next_event.
8309 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
8310 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
8311 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
8312 (mac_clear_font_name_table): Add extern.
8313 (Fmac_clear_font_name_table): New defun.
8314 (syms_of_mac): Defsubr it.
8315 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
8316 [MAC_OSX] (select_and_poll_event): New function.
8317 [MAC_OSX] (sys_select): Use it.
8318 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
8319 [MAC_OSX && SELECT_USE_CFSOCKET]
8320 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
8321 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
8322 RunLoop for simultaneously monitoring two kinds of inputs, window
8323 events and process outputs, without periodically polling.
8324
8325 * macfns.c (mac_initialized): Remove extern.
8326 (stricmp): Put in #if 0. All callers changed to use xstricmp in
8327 xfaces.c.
8328 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
8329 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
8330 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
8331 (mac_get_rdb_resource): New function (from w32reg.c).
8332 (x_get_string_resource): Use it.
8333 (install_window_handler): Add extern.
8334 (mac_window): New function.
8335 (Fx_create_frame): Use it instead of make_mac_frame.
8336 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
8337 (Fx_open_connection, Fx_close_connection): New defuns.
8338 (syms_of_macfns): Defsubr them.
8339 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
8340 Add kWindowNoUpdatesAttribute to the window attribute.
8341 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
8342 (x_create_tip_frame): Don't call ShowWindow.
8343 (Fx_show_tip): Call ShowWindow.
8344 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
8345 TARGET_API_MAC_CARBON'.
8346 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
8347 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
8348
8349 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
8350 (Window): Typedef to WindowPtr and move outside `#if
8351 TARGET_API_MAC_CARBON'.
8352 (XSizeHints): New struct.
8353
8354 * macterm.c (x_update_begin, x_update_end)
8355 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
8356 frame.
8357 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8358 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
8359 (construct_mouse_click): Put in #if 0.
8360 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
8361 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
8362 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
8363 (activate_scroll_bars, deactivate_scroll_bars)
8364 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
8365 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
8366 if the position is neither user-specified nor program-specified.
8367 (x_free_frame_resources): Free size_hints.
8368 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
8369 (mac_clear_font_name_table): New function.
8370 (mac_do_list_fonts): Initialize font_name_table if needed.
8371 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
8372 around mac_do_list_fonts.
8373 (mac_unload_font): New function.
8374 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
8375 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
8376 and definitions with #if TARGET_API_MAC_CARBON.
8377 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
8378 (install_window_handler): Add decl.
8379 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
8380 window. Use UpdateControls. Get the rectangle that should be
8381 updated and restrict the target of expose_frame to it.
8382 (do_grow_window): Set minimum height/width according to size_hints.
8383 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
8384 (do_zoom_window): Don't use x_set_window_size.
8385 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
8386 (install_window_handler): New function.
8387 [!USE_CARBON_EVENTS] (mouse_region): New variable.
8388 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
8389 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
8390 GetEventDispatcherTarget inside BLOCK_INPUT.
8391 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
8392 Update mouse_region when mouse is moved.
8393 (make_mac_frame): Remove.
8394 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
8395 Initialize mouse pointer shapes. Change values of f->left_pos and
8396 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
8397 Don't call ShowWindow.
8398 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
8399 Vinvocation_name and Vsystem_name.
8400 (mac_make_rdb): New function (from w32term.c).
8401 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
8402 already been opened. Don't pass argument to
8403 mac_initialize_display_info. Don't set dpyinfo->height/width.
8404 Add entries to x_display_list and x_display_name_list.
8405 (x_delete_display): New function.
8406 (mac_initialize): Don't call mac_initialize_display_info.
8407 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
8408
8409 * macterm.h (check_mac): Add extern.
8410 (struct mac_output): New member size_hints.
8411 (FRAME_SIZE_HINTS): New macro.
8412 (mac_unload_font): Add extern.
8413
8414 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
8415
8416 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
8417
8418 2004-12-27 Richard M. Stallman <rms@gnu.org>
8419
8420 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
8421 (syms_of_buffer): Don't defsubr it.
8422
8423 * process.c (list_processes_1): Set undo_list instead
8424 of calling Fbuffer_disable_undo.
8425
8426 * xdisp.c (single_display_spec_string_p): Rename from
8427 single_display_prop_string_p.
8428 (single_display_spec_intangible_p): Rename from
8429 single_display_prop_intangible_p.
8430 (handle_single_display_spec): Rename from handle_single_display_prop.
8431 Rewritten to be easier to understand.
8432
8433 Change in load-history format. Functions now get (defun . NAME),
8434 and variables get just NAME.
8435
8436 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
8437
8438 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
8439 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
8440 (Qdefvar): Var deleted.
8441 (syms_of_eval): Don't initialze it.
8442
8443 * lread.c (syms_of_lread) <load-history>: Doc fix.
8444
8445 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8446
8447 * xmenu.c (popup_get_selection): Pop down on C-g.
8448 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
8449 pops down menu on C-g.
8450 (xdialog_show): If dialog popped down and no button in the dialog was
8451 pushed, call Fsignal to quit.
8452 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
8453 Fsignal to quit.
8454
8455 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
8456
8457 * gtkutil.c (xg_initialize): Install bindings for C-g so that
8458 dialogs and menus pop down.
8459
8460 2004-12-27 Kenichi Handa <handa@m17n.org>
8461
8462 * coding.c (code_convert_region): Fix calculation of `ratio'.
8463
8464 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8465
8466 * gtkutil.c (update_frame_tool_bar): Make the value of
8467 tool-bar-button-margin control margins of images in tool bar.
8468
8469 * alloc.c (check_depth): New variable.
8470 (overrun_check_malloc, overrun_check_realloc): Only add
8471 overhead and write check pattern if check_depth is 1 (to handle
8472 recursive calls). Increase/decrease check_depth in entry/exit.
8473 (overrun_check_free): Only check for overhead if check_depth is 1.
8474 Increase/decrease check_depth in entry/exit.
8475
8476 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8477
8478 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
8479 before touching input_available_clear_time, to avoid accessing it
8480 from multiple threads.
8481
8482 2004-12-23 Jason Rumney <jasonr@gnu.org>
8483
8484 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
8485 of JPEG library.
8486
8487 2004-12-22 Richard M. Stallman <rms@gnu.org>
8488
8489 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
8490
8491 * lisp.h (Vundo_outer_limit): Fix decl.
8492
8493 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
8494 Uses changed.
8495 (syms_of_undo): Initialize appropriately.
8496 (truncate_undo_list): If it's nil, there's no limit.
8497
8498 2004-12-22 Kenichi Handa <handa@m17n.org>
8499
8500 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
8501
8502 2004-12-21 Richard M. Stallman <rms@gnu.org>
8503
8504 * eval.c (unwind_to_catch): Clear immediate_quit.
8505
8506 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
8507 specially as `\ ' and `\-'.
8508
8509 * keyboard.c (kbd_buffer_store_event_hold):
8510 In the code for while-no-input, handle immediate_quit.
8511
8512 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
8513 Call that at the very start.
8514 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
8515 (syms_of_alloc): Don't define undo-limit,
8516 undo-strong-limit and undo-outer-limit here.
8517
8518 * undo.c (truncate_undo_list): Return void.
8519 Take just one argument, the buffer.
8520 Make it current, and inhibit recursive GC.
8521 Access and update the undo list directly; return void.
8522 Refer to the undo...limit variables directly.
8523 Test undo_outer_limit only after counting the whole current command.
8524 When it's exceeded, call the function in undo-outer-limit-function.
8525 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
8526 (Vundo_outer_limit_function): New variable.
8527 (syms_of_undo): Define undo-limit, undo-strong-limit
8528 and undo-outer-limit here, and undo-outer-limit-function.
8529 Doc fixes.
8530
8531 * lisp.h (truncate_undo_list): Update decl.
8532
8533 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
8534
8535 * fileio.c (Fread_file_name): Delete duplicates in
8536 file-name-history when history_delete_duplicates is true.
8537
8538 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8539
8540 * macterm.c (mac_do_list_fonts): Fix memory leak
8541
8542 2004-12-20 Richard M. Stallman <rms@gnu.org>
8543
8544 * regex.c (re_match_2_internal) <symend, wordend>:
8545 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
8546
8547 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8548
8549 * macterm.c (endif, x_font_name_to_mac_font_name):
8550 Use maccentraleurroman instead of maccentraleuropean
8551 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
8552 quickly finding a specific font without needing regexps.
8553
8554 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8555
8556 * syssignal.h: Declare main_thread.
8557 (SIGNAL_THREAD_CHECK): New macro.
8558
8559 * keyboard.c (input_available_signal): Move thread checking code
8560 to macro SIGNAL_THREAD_CHECK and call that macro.
8561 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
8562
8563 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
8564
8565 * emacs.c: Define main_thread.
8566 (main): Initialize main_thread.
8567 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
8568 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
8569
8570 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
8571
8572 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
8573
8574 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
8575
8576 * process.c (send_process_trap, sigchld_handler):
8577 Call SIGNAL_THREAD_CHECK.
8578
8579 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
8580
8581 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
8582
8583 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
8584 returning when xg_ignore_gtk_scrollbar is true.
8585
8586 2004-12-14 Kim F. Storm <storm@cua.dk>
8587
8588 * keyboard.c (read_char): Save and restore echo_string when
8589 handling input method.
8590
8591 2004-12-13 Richard M. Stallman <rms@gnu.org>
8592
8593 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
8594
8595 * keyboard.c (Vthrow_on_input): New variable.
8596 (syms_of_keyboard): Defvar and initialize it.
8597 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
8598
8599 * lisp.h (QUIT): Check for Vthrow_on_input.
8600 (Vthrow_on_input): Declare it.
8601
8602 2004-12-13 Kim F. Storm <storm@cua.dk>
8603
8604 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
8605 vector.
8606
8607 2004-12-12 Richard M. Stallman <rms@gnu.org>
8608
8609 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
8610
8611 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
8612 (Ftry_completion): Really use outer `zero'; eliminate inner one.
8613
8614 2004-12-12 Kenichi Handa <handa@m17n.org>
8615
8616 * term.c (encode_terminal_code): Fix previous change.
8617
8618 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * keyboard.c (handle_async_input): Remove pthread mutex handling.
8621 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
8622
8623 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
8624 in macro arguments.
8625
8626 * minibuf.c (Ftry_completion, Fall_completions): Don't use
8627 XFASTINT blindly.
8628
8629 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
8630
8631 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8632
8633 * w32term.c (x_calc_absolute_position): Remove calculation of
8634 difference between inner and outer window. Don't subtract difference
8635 for left and top calculations.
8636
8637 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
8638 for left and top calculations. Remove call to x_real_positions.
8639 [Bug report by Drew Adams in November]
8640 (x_check_expected_move): Do not set change_gravity to 1 when calling
8641 x_set_offset.
8642
8643 2004-12-08 Richard M. Stallman <rms@gnu.org>
8644
8645 * xdisp.c (get_next_display_element): Use `escape-glyph' for
8646 control chars and escaped octal codes.
8647 (Qescape_glyph): New variable.
8648 (syms_of_xdisp): Initialize it.
8649 (escape_glyph_face): New variable.
8650 (redisplay_window): Initialize it.
8651
8652 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
8653
8654 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
8655 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
8656
8657 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8658
8659 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
8660 reset_malloc_hooks.
8661
8662 * keyboard.c (handle_async_input, input_available_signal):
8663 Add ! defined (SYSTEM_MALLOC) around thread code.
8664
8665 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
8666
8667 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
8668
8669 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
8670
8671 * config.in: Regenerate.
8672
8673 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8674
8675 * xmenu.c (Fx_popup_menu): Correct documentation about position.
8676 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
8677 if not given by a mouse click to correspond with x-popup-menu
8678 documentation.
8679
8680 * config.in: Regenerate.
8681
8682 * gtkutil.c: Include signal.h and syssignal.h.
8683 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
8684
8685 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
8686 new variables main_thread and alloc_mutex,
8687 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
8688 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
8689 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
8690 (UN)BLOCK_INPUT.
8691 (emacs_blocked_free, emacs_blocked_malloc)
8692 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
8693 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
8694 (reset_malloc_hooks): New function.
8695
8696 * lisp.h: Declare reset_malloc_hooks.
8697
8698 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
8699
8700 * keyboard.c: Conditionally include pthread.h
8701 (handle_async_input, input_available_signalt): If not in the main
8702 thread, block signal, send signal to main thread and return.
8703
8704 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
8705 Set current folder in file chooser if default_filename is a directory.
8706
8707 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
8708
8709 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
8710 Remove redundant correctness checks.
8711 (regex_compile): Fix up error codes for \{..\} expressions.
8712
8713 2004-12-05 Richard M. Stallman <rms@gnu.org>
8714
8715 * regex.c (regex_compile): Fix end-of-pattern case for space.
8716
8717 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8718
8719 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
8720 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
8721 crashes with invalid characters.
8722 * macmenu.c (add_menu_item): Use it.
8723 * image.c (image_load_quartz2d): Likewise.
8724 * macfns.c (x_set_name, x_set_title): Likewise.
8725 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
8726 creating them each time for labels.
8727
8728 2004-12-02 Richard M. Stallman <rms@gnu.org>
8729
8730 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
8731 don't use it here.
8732
8733 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
8734 (interactive_p): Skip Scalled_interactively_p frames
8735 like Sinteractive_p frames.
8736 (unwind_to_catch): Clear handling_signal.
8737
8738 * data.c (Fmake_variable_buffer_local): Doc fix.
8739 (Fmake_local_variable): Doc fix.
8740
8741 * insdel.c (insert_from_string_before_markers)
8742 (insert_from_string): Don't modify buffer on empty insertion.
8743
8744 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
8745
8746 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8747
8748 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
8749 menu text as UTF8 fails.
8750
8751 2004-12-01 Kim F. Storm <storm@cua.dk>
8752
8753 * alloc.c: Add commentary for last change.
8754 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
8755 sizeof(size_t) != 4.
8756 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
8757 Use them. Also clear header and trailer of freed memory.
8758 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
8759 (string_overrun_cookie): Rename from string_overrun_pattern.
8760 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
8761
8762 2004-12-01 Andreas Schwab <schwab@suse.de>
8763
8764 * lisp.h: Declare string_to_multibyte.
8765
8766 2004-12-01 Kenichi Handa <handa@m17n.org>
8767
8768 * w32console.c (w32con_write_glyphs): Decide coding here.
8769 Adjusted for the change of encode_terminal_code.
8770
8771 * term.c (encode_terminal_code): Don't make it "static".
8772
8773 2004-11-30 Kenichi Handa <handa@m17n.org>
8774
8775 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
8776 (encode_terminal_code): Argument changed. Encode all
8777 characters at once, and return a pointer to the result of encoding.
8778 (write_glyphs): Decide coding here. Adjusted for the above change.
8779 (insert_glyphs): Likewise.
8780 (term_init): Initialize encode_terminal_bufsize to 0.
8781
8782 * coding.c (Vcode_conversion_workbuf_name): New variable.
8783 (syms_of_coding): Initialize and staticpro it.
8784 (set_conversion_work_buffer): New function.
8785 (run_pre_post_conversion_on_str): Use it.
8786 (run_pre_write_conversin_on_c_str): New function.
8787
8788 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
8789
8790 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8791
8792 * keyboard.c: Don't undef SIGIO
8793 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
8794 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
8795 (macfns.o): Don't depend on ccl.h.
8796 * macfns.c (mac_frame_parm_handlers): Set handlers for
8797 Qleft_fringe and Qright_fringe.
8798 * macterm.c (mac_fill_rectangle_to_pixmap)
8799 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
8800 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
8801 Put in #if 0.
8802 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
8803 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
8804 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
8805 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
8806 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
8807 XDrawImageString. Always draw background and foreground separately.
8808 (x_draw_image_foreground): Use clipping instead of computing the
8809 intersection rectangle.
8810 (x_draw_image_glyph_string): Don't draw an image with mask to a
8811 pixmap.
8812 (x_redisplay_interface): Set flush_display_optional member to 0.
8813 (XTread_socket): Correctly reset the TEConverter
8814 object.
8815
8816 2004-11-30 Kim F. Storm <storm@cua.dk>
8817
8818 * lisp.h: New defines to enable buffer overrun checking.
8819 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
8820 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
8821
8822 * alloc.c: Add more checks for buffer overruns.
8823 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
8824 xmalloc_overrun_check_trailer, overrun_check_malloc)
8825 overrun_check_realloc, overrun_check_free): Add.
8826 (GC_STRING_EXTRA, string_overrun_pattern): Add.
8827 (check_sblock, allocate_string_data, compact_small_strings):
8828 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
8829 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
8830 (check_string_free_list): Add.
8831 (allocate_string, sweep_strings): Call check_string_free_list.
8832
8833 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
8834 XMALLOC_OVERRUN_CHECK to avoid crash during load.
8835
8836 2004-11-29 Kim F. Storm <storm@cua.dk>
8837
8838 * fns.c (concat): Use SAFE_ALLOCA.
8839
8840 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
8841
8842 * sysdep.c (emacs_write): Don't use QUIT.
8843
8844 2004-11-29 Kenichi Handa <handa@m17n.org>
8845
8846 * buffer.c (init_buffer): Set current_buffer->directory to a
8847 multibyte string made by string_to_multibyte.
8848
8849 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
8850
8851 2004-11-27 Andreas Schwab <schwab@suse.de>
8852
8853 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
8854
8855 * s/gnu-linux.h: Enable no-op gcpros on ia64.
8856 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
8857
8858 * filelock.c (lock_file_1): Call get_boot_time early.
8859 Increase buffer size.
8860
8861 2004-11-27 Eli Zaretskii <eliz@gnu.org>
8862
8863 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
8864 is not defined.
8865
8866 2004-11-27 Kim F. Storm <storm@cua.dk>
8867
8868 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
8869 marker out of doc string.
8870
8871 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
8872
8873 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
8874 which was not mentioned in the log.
8875
8876 2004-11-26 Kim F. Storm <storm@cua.dk>
8877
8878 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
8879 angle bitmaps at top/bottom line.
8880
8881 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
8882 set it when it->method is set to next_element_from_display_vector.
8883 (setup_for_ellipsis): Add LEN argument. Callers changed.
8884 Set it->saved_face_id.
8885 (get_next_display_element): Use loop instead of recursion.
8886 Set it->saved_face_id. Combine duplicate code for ctr chars.
8887 (next_element_from_display_vector): Do not set it->saved_face_id.
8888 (next_element_from_ellipsis): Use setup_for_ellipsis.
8889
8890 2004-11-26 Eli Zaretskii <eliz@gnu.org>
8891
8892 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
8893 prevent compiler warnings.
8894
8895 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
8896
8897 * keyboard.c (command_loop_1): Print a message describing the key
8898 the user just pressed when this key has no binding.
8899
8900 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
8901 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
8902
8903 * lread.c (readchar): Check QUIT when `getc' is interrupted.
8904
8905 2004-11-24 Richard M. Stallman <rms@gnu.org>
8906
8907 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
8908
8909 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
8910
8911 2004-11-24 Kim F. Storm <storm@cua.dk>
8912
8913 * xdisp.c (move_it_in_display_line_to, display_line):
8914 Restore saved_face_id also when truncate-lines or hscrolled.
8915
8916 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8917
8918 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
8919 x-use-old-gtk-file-dialog.
8920
8921 * xfns.c: Define x_use_old_gtk_file_dialog.
8922 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
8923 outside ifdef USE_GTK.
8924
8925 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
8926
8927 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
8928 Don't use XFASTINT blindly.
8929
8930 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
8931
8932 * indent.c (skip_invisible): Avoid non-idempotent side-effects
8933 in macro arguments.
8934
8935 * keymap.c (Flookup_key): Check INTEGERP before XINT.
8936
8937 * lread.c (oblookup): Don't use XFASTINT blindly.
8938
8939 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
8940 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
8941
8942 2004-11-23 Kim F. Storm <storm@cua.dk>
8943
8944 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
8945 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
8946
8947 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
8948 signal_p is zero and face name is unknown.
8949 (Fx_list_fonts): Don't signal error in lookup_named_face.
8950 (Fface_font): Signal error in lookup_named_face.
8951 (ascii_face_of_lisp_face): Likewise.
8952
8953 * dispextern.h (lookup_named_face): Fix prototype.
8954
8955 * xdisp.c (handle_single_display_prop): Don't signal error in
8956 lookup_named_face for unknown fringe face name.
8957 (highlight_trailing_whitespace): Don't signal error in
8958 lookup_named_face if trailing-whitespace face unknown.
8959 (calc_line_height_property): Don't signal error in
8960 lookup_named_face if specified face name is unknown.
8961
8962 * fringe.c (update_window_fringes): Show top row indicator if
8963 window has header-line. Don't show arrow at bob and eob
8964 if the boundary indicators are not used.
8965 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
8966
8967 * window.c (set_window_buffer): Clear display_error_modiff.
8968
8969 2004-11-22 Kim F. Storm <storm@cua.dk>
8970
8971 * fringe.c (update_window_fringes): Provide sensible fall-back
8972 value for non-nil indicate-buffer-boundaries setting.
8973
8974 2004-11-22 Markus Rost <rost@ias.edu>
8975
8976 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
8977
8978 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8979
8980 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
8981
8982 2004-11-21 Kim F. Storm <storm@cua.dk>
8983
8984 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
8985
8986 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
8987 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8988
8989 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
8990 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8991
8992 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
8993 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
8994
8995 * xdisp.c (move_it_in_display_line_to, display_line):
8996 Restore saved_face_id if overflow-newline-into-fringe is enabled and
8997 line is continued before or in middle of element from display vector.
8998
8999 * indent.c (Fvertical_motion): Fix last change. Use another
9000 method to detect if iterator moved too far ahead after reseat.
9001
9002 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
9003 expand matrix width for overflow in zero-width area.
9004 (append_glyph, append_composite_glyph, produce_image_glyph)
9005 (append_stretch_glyph): Use it to avoid loop in redisplay.
9006 (note_mode_line_or_margin_highlight): Don't let help-echo from
9007 string override help-echo from image map.
9008
9009 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
9010
9011 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
9012 * callint.c (Fcall_interactively): Ditto.
9013
9014 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9015
9016 * minibuf.c (Fminibuffer_complete_and_exit):
9017 Fixup the case of the completed value, for case-indep completion.
9018
9019 2004-11-20 Richard M. Stallman <rms@gnu.org>
9020
9021 * lisp.h (Fread_from_minibuffer): Add arg in decl.
9022
9023 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
9024 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9025
9026 * search.c (Vsearch_spaces_regexp):
9027 Rename from Vsearch_whitespace_regexp. All uses changed.
9028
9029 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
9030
9031 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
9032
9033 2004-11-19 Richard M. Stallman <rms@gnu.org>
9034
9035 * search.c (Vsearch_whitespace_regexp): New variable.
9036 (syms_of_search): Defvar it.
9037 (compile_pattern_1): Call re_set_whitespace_regexp with it.
9038 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
9039 is non-nil.
9040 (struct regexp_cache): New element whitespace_regexp.
9041 (syms_of_search): Initialize whitespace_regexp elements.
9042 (compile_pattern): Compare whitespace_regexp elements.
9043 (compile_pattern_1): Set whitespace_regexp elements.
9044
9045 * regex.c (regex_compile): Substitute whitespace_regexp
9046 for spaces, if it is nonzero.
9047 (whitespace_regexp): New variable.
9048 (re_set_whitespace_regexp): New function.
9049
9050 2004-11-19 Kim F. Storm <storm@cua.dk>
9051
9052 * indent.c (Fvertical_motion): Fix last change.
9053
9054 2004-11-18 Kim F. Storm <storm@cua.dk>
9055
9056 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
9057 Instead, move back again if reseating moves too far ahead.
9058
9059 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
9060
9061 * xdisp.c (message3): Call clear_message.
9062
9063 2004-11-17 Kim F. Storm <storm@cua.dk>
9064
9065 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
9066
9067 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9068
9069 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
9070
9071 * xmenu.c (x_menu_in_use): Remove.
9072 (x_menu_set_in_use): Also set popup_activated_flag.
9073
9074 * xfns.c (Fx_file_dialog): Call popup_activated instead of
9075 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
9076
9077 * xterm.h (x_menu_in_use): Remove.
9078
9079 2004-11-16 Richard M. Stallman <rms@gnu.org>
9080
9081 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
9082 Use map-keymap-internal to implement that.
9083
9084 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
9085
9086 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9087
9088 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
9089 a window before using XWINDOW.
9090
9091 * window.c (make_window, Fselect_window, make_dummy_parent)
9092 (save_window_save):
9093 * frame.c (make_frame):
9094 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
9095
9096 * lisp.h (NILP): Use EQ rather than XFASTINT.
9097
9098 2004-11-16 Kim F. Storm <storm@cua.dk>
9099
9100 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
9101
9102 * indent.c (Fvertical_motion): Fix last change. Only reseat when
9103 moving backwards.
9104
9105 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
9106
9107 * dispextern.h: Extern reseat_at_previous_visible_line_start.
9108
9109 2004-11-16 Kenichi Handa <handa@m17n.org>
9110
9111 * xdisp.c (display_mode_element): Fix previous change (calculate
9112 end position of substring to display correctly).
9113
9114 2004-11-16 Kim F. Storm <storm@cua.dk>
9115
9116 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
9117 Reported by Andrew M. Scott.
9118
9119 2004-11-15 Kim F. Storm <storm@cua.dk>
9120
9121 * fns.c (Fsafe_plist_get): New defun.
9122 (syms_of_fns): Defsubr it.
9123
9124 * lisp.h (Fsafe_plist_get): Add EXFUN.
9125
9126 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
9127 Use Fsafe_plist_get.
9128 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9129 Fix image map element parsing. Use Fsafe_plist_get.
9130
9131 2004-11-15 Richard M. Stallman <rms@gnu.org>
9132
9133 * xdisp.c (get_next_display_element): Fix previous change.
9134
9135 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9136
9137 * window.c (shrink_windows): Handle special case of one window left
9138 when trying to shrink the final reminder. Grow windows if
9139 total_removed is less than total_shrink.
9140
9141 * xmenu.c (pop_down_menu): Remove global variable current_menu,
9142 extract pointer from arg with XSAVE_VALUE.
9143 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
9144 Construct arg to record_unwind_protect with make_save_value.
9145
9146 2004-11-13 Richard M. Stallman <rms@gnu.org>
9147
9148 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
9149 (get_next_display_element): Fix previous change to apply only to \n.
9150
9151 * indent.c (Fvertical_motion): Scan to PT from start of line to
9152 make iterator consistent.
9153
9154 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9155
9156 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9157
9158 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
9159
9160 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
9161 Record unwind with clean_up_file_dialog.
9162
9163 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
9164 Declare.
9165
9166 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
9167
9168 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9169
9170 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
9171 (xg_file_sel_destroy): Remove.
9172 (xg_file_response_cb, pop_down_file_dialog)
9173 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
9174 New functions.
9175 (xg_get_file_with_chooser, xg_get_file_with_selection):
9176 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
9177 Move common code to xg_get_file_name. Return widget created.
9178 (xg_get_file_name): Set name, transient for, modal and destroy
9179 with parent here. Connect response signal to xg_file_response_cb,
9180 connect delete-event to gtk_true. Record pop_down_file_dialog
9181 for unwind. Do event loop and call x_menu_wait_for_event in loop.
9182 (xg_create_widget): Make dialogs modal.
9183
9184 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
9185 Lisp_Object.
9186 (popup_get_selection): Move unwind protect ...
9187 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9188 Move destroy of widget to pop_down_menu.
9189 (popup_widget_loop): Move unwind protect ...
9190 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9191 Move destroy of widget to pop_down_menu.
9192 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
9193 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
9194 x_mouse_leave and grabbed = 0 to pop_down_menu.
9195
9196 2004-11-13 Kim F. Storm <storm@cua.dk>
9197
9198 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
9199 (syms_of_xdisp): DEFVAR_BOOL it.
9200 (make_cursor_line_fully_visible, try_cursor_movement)
9201 (try_window_id): Use it.
9202
9203 2004-11-12 Kim F. Storm <storm@cua.dk>
9204
9205 * dispextern.h (struct glyph_row): New member extra_line_spacing.
9206 (struct it): New member max_extra_line_spacing.
9207 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
9208 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
9209 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
9210 part of last line is only extra line spacing (so the text on the
9211 line is fully visible). Use helper macros.
9212 Add W arg (to use them). All callers changed.
9213 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
9214 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
9215
9216 * window.c (window_scroll_pixel_based, Frecenter):
9217 Use move_it_vertically_backward directly.
9218 (Frecenter): Fix calculation of new start pos for negative arg.
9219 Before, the new start pos was sometimes chosen too far back, so
9220 the last line became only partially visible, and thus would be
9221 either only semi-visible or automatically scrolled to the middle
9222 of the window by redisplay.
9223
9224 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
9225 (move_it_vertically_backward): Don't recure to move further back.
9226 (move_it_vertically): Remove superfluous condition.
9227 (move_it_by_lines): Clear last_height when moved 0 lines.
9228 (resize_mini_window): Use it.max_extra_line_spacing.
9229 (display_tool_bar_line): Clear row->extra_line_spacing.
9230 (try_scrolling): Use move_it_vertically_backward directly.
9231 (redisplay_window): Likewise.
9232 (compute_line_metrics): Set row->extra_line_spacing.
9233 (display_line, display_string): Likewise.
9234 (x_produce_glyphs): Update it->max_extra_line_spacing.
9235
9236 * xmenu.c (pop_down_menu): Return nil.
9237
9238 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9239
9240 * xmenu.c (x_menu_wait_for_event): New function.
9241 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
9242 to handle timers.
9243 (popup_widget_loop): Add argument do_timers.
9244 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
9245 do_timers to popup_widget_loop.
9246 (xmenu_show): Call XMenuActivateSetWaitFunction so that
9247 x_menu_wait_for_event is called by XMenuActivate.
9248 (create_and_show_popup_menu): Pass 1 for do_timers to
9249 popup_get_selection.
9250 (pop_down_menu): New function.
9251 (popup_get_selection, popup_widget_loop): Unwind protect to
9252 pop_down_menu.
9253 (popup_widget_loop): Add argument widget.
9254 (create_and_show_popup_menu, create_and_show_dialog): Pass new
9255 argument widget to popup_widget_loop.
9256
9257 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9258
9259 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
9260
9261 2004-11-09 Kim F. Storm <storm@cua.dk>
9262
9263 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
9264 Fix various comments referring to XEvents instead of input events.
9265 (x_queue_event): Fix format strings.
9266 (x_stop_queuing_selection_requests): Likewise.
9267
9268 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
9269 (pint2hrstr): Add extra braces to silence compiler.
9270
9271 * print.c (print_object): Fix format string.
9272
9273 * lread.c (read1): Fix next_char matching.
9274
9275 * lisp.h (Fdelete): Add EXFUN.
9276 (replace_range_2): Add prototype.
9277
9278 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
9279
9280 * intervals.h (NULL_INTERVAL_P): Add separate version when
9281 ENABLE_CHECKING is not defined to silence compiler.
9282 (compare_string_intervals): Add prototype.
9283
9284 * fringe.c (destroy_fringe_bitmap): Fix return type.
9285 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
9286
9287 * emacs.c (Fdump_emacs): Fix format string.
9288
9289 * doc.c: Include <ctype.h>.
9290 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
9291
9292 * data.c (store_symval_forwarding): Remove unused variables.
9293
9294 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
9295
9296 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9297
9298 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
9299 to ${OLDXMENU}.
9300
9301 2004-11-09 Kim F. Storm <storm@cua.dk>
9302
9303 * process.c (Fmake_network_process): Remove kludge for interrupted
9304 connects on BSD. If connect is interrupted, just close socket and
9305 start over rather than sleeping and retry with same socket.
9306
9307 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9308
9309 * .cvsignore: Add buildobj.lst.
9310
9311 * doc.c: New variable Vbuild_files.
9312 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
9313 file names from buildobj.lst. Only attach docstrings from files
9314 that are in Vbuild_files.
9315 (syms_of_doc): Defvar Vbuild_files.
9316
9317 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
9318 and w32*.o.
9319 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
9320 (mostlyclean): Rm buildobj.lst
9321
9322 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
9323 is linked.
9324
9325 2004-11-09 Kim F. Storm <storm@cua.dk>
9326
9327 * fringe.c (update_window_fringes): Update fringe bitmaps if
9328 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
9329 also update previous row to get rid of misc. artifacts.
9330
9331 2004-11-08 Kim F. Storm <storm@cua.dk>
9332
9333 * xdisp.c (fast_find_position): Fix start pos if header line present.
9334 (note_mouse_highlight): Clear mouse face if we move out of text area.
9335
9336 2004-11-08 Eli Zaretskii <eliz@gnu.org>
9337
9338 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
9339 Don't include <sys/time.h> explicitly.
9340 Include <stdio.h> unconditionally, not just on MacOS.
9341
9342 2004-11-08 Kenichi Handa <handa@m17n.org>
9343
9344 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
9345 don't pay attention to '\' before '*'.
9346 (fontset_pattern_regexp): Change the meaning of the second arg.
9347 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
9348 (check_fontset_name): Try NAME as literal at first, and if it
9349 failes, try NAME as pattern.
9350
9351 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9352
9353 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
9354
9355 2004-11-07 Andreas Schwab <schwab@suse.de>
9356
9357 * lisp.h (Fmsdos_downcase_filename): Declare.
9358 * dired.c (Fmsdos_downcase_filename): Don't declare here.
9359 * fileio.c: Likewise.
9360
9361 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9362
9363 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
9364 comparisons with integers instead of Lisp_Object address.
9365 (Fmsdos_set_keyboard): Declare argument allkeys.
9366
9367 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
9368
9369 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
9370 int/Lisp_Object mixup.
9371
9372 * fileio.c: Ditto.
9373
9374 2004-11-06 Steven Tamm <steventamm@mac.com>
9375
9376 * editfns.c: Need to include sys/time.h before resource.h on darwin.
9377
9378 2004-11-06 Richard M. Stallman <rms@gnu.org>
9379
9380 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
9381
9382 * xfaces.c (merge_named_face): GCPRO the face_name in the
9383 named_merge_point struct that we make.
9384 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
9385
9386 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
9387 before deciding whether to inactivate mark.
9388
9389 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
9390
9391 * config.in: Regenerate (add HAVE_GETRUSAGE).
9392 * editfns.c (Fget_internal_run_time): New function.
9393 (syms_of_data): Defsubr it.
9394 * fns.c (sxhash): As far as possible, merge calculation of
9395 hash code for symbols and strings.
9396
9397 2004-11-06 Eli Zaretskii <eliz@gnu.org>
9398
9399 * frame.c (syms_of_frame): Fix the example in the doc string.
9400
9401 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9402
9403 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
9404
9405 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
9406 (create_and_show_dialog): Revert change from 2004-10-31.
9407
9408 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
9409
9410 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
9411
9412 2004-11-05 Kim F. Storm <storm@cua.dk>
9413
9414 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
9415
9416 * fileio.c (Ffile_modes): Doc fix.
9417 (auto_save_1): Check for Ffile_modes nil value.
9418
9419 2004-11-05 Kim F. Storm <storm@cua.dk>
9420
9421 * xselect.c (struct selection_event_queue, selection_queue)
9422 (x_queue_selection_requests, x_queue_event)
9423 (x_start_queuing_selection_requests)
9424 (x_stop_queuing_selection_requests): Add new queue for selection
9425 input events to replace previous XEvent queue in xterm.c.
9426 (queue_selection_requests_unwind): Adapt to new queue.
9427 (x_reply_selection_request): Adapt to new queue.
9428 Unexpect wait_object in case of x errors (memory leak).
9429 (x_handle_selection_request, x_handle_selection_clear): Make static.
9430 (x_handle_selection_event): New function. May queue selection events.
9431 (wait_for_property_change_unwind): Use save_value instead of cons.
9432 Clear property_change_reply_object.
9433 (wait_for_property_change): Abort if already waiting.
9434 Use save_value instead of cons for unwind data.
9435 (x_handle_property_notify): Skip events already arrived, but don't
9436 free them, as "arrived" field is checked by wait_for_property_change,
9437 and it will be freed by unwind or explicit unexpect_property_change.
9438 (x_get_foreign_selection): Add to new queue.
9439 (receive_incremental_selection): Don't unexpect wait_object when done
9440 as it has already been freed by previous wait_for_property_change.
9441
9442 * xterm.h (x_start_queuing_selection_requests)
9443 (x_stop_queuing_selection_requests, x_handle_selection_request)
9444 (x_handle_selection_clear): Remove prototypes.
9445 (x_handle_selection_event): Add prototype.
9446
9447 * xterm.c (handle_one_xevent): Don't queue X selection events
9448 here, it may be too late if we start queuing after we have already
9449 stored some selection events into the kbd buffer.
9450 (struct selection_event_queue, queue, x_queue_selection_requests)
9451 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
9452 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
9453 (x_catch_errors_unwind): Block input around final XSync.
9454
9455 * keyboard.h (kbd_buffer_unget_event): Add prototype.
9456
9457 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
9458 (kbd_buffer_unget_event): New function.
9459 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
9460 and use x_handle_selection_event.
9461 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
9462
9463 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9464
9465 * xselect.c (TRACE3): New debug macro.
9466 (x_reply_selection_request): Use it.
9467 (receive_incremental_selection): In call to TRACE0, the name of
9468 a symbol is in xname.
9469
9470 2004-11-05 Kim F. Storm <storm@cua.dk>
9471
9472 * fontset.c (fontset_pattern_regexp): Use unsigned char.
9473
9474 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9475
9476 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
9477
9478 * gtkutil.h (use_old_gtk_file_dialog): Declare.
9479
9480 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
9481 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
9482 * xfns.c (syms_of_xfns): ... to here.
9483
9484 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
9485 it doesn't start with /.
9486
9487 2004-11-04 Kenichi Handa <handa@m17n.org>
9488
9489 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
9490 treat it as a literal character.
9491
9492 2004-11-03 Kim F. Storm <storm@cua.dk>
9493
9494 * .gdbinit (ppt): New function.
9495
9496 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9497
9498 * xterm.c (x_window_to_scroll_bar): Only call
9499 xg_get_scroll_id_for_window if toolkit scroll bars are used.
9500
9501 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
9502 of save.
9503
9504 2004-11-02 Andreas Schwab <schwab@suse.de>
9505
9506 * window.c (Fscroll_right): Fix last change.
9507
9508 2004-11-02 Kim F. Storm <storm@cua.dk>
9509
9510 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
9511
9512 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9513
9514 * callproc.c (Fcall_process): Block input around vfork.
9515
9516 2004-11-02 Kim F. Storm <storm@cua.dk>
9517
9518 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
9519 (syms_of_eval): Defsubr it.
9520
9521 2004-11-02 Richard M. Stallman <rms@gnu.org>
9522
9523 * insdel.c (replace_range_2): New function.
9524
9525 * casefiddle.c (casify_region): Handle changes in byte-length
9526 using replace_range_2.
9527
9528 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
9529
9530 * xdisp.c (back_to_previous_visible_line_start):
9531 Subtract 1 from pos when checking previous newline for invisibility.
9532
9533 * window.c (window_scroll_pixel_based): Update preserve_y
9534 for header line if any.
9535 (Fscroll_left, Fscroll_right): Don't call interactive_p;
9536 use a new second argument instead.
9537
9538 * eval.c (Fcall_interactive_p): New function.
9539 (interactive_p): Don't test INTERACTIVE here.
9540 (Finteractive_p): Doc fix.
9541
9542 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
9543
9544 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9545
9546 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
9547 comparing font names.
9548
9549 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9550
9551 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
9552 Fx_file_dialog if only directories should be read.
9553
9554 * lisp.h: Fx_file_dialog takes 5 parameters.
9555
9556 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
9557 Add parameter only_dir_p.
9558 In Motif version, don't put DEFAULT_FILENAME in filter part of the
9559 dialog, just text field part. Do not add DEFAULT_FILENAME
9560 to list of files if it isn't there.
9561 In GTK version, pass only_dir_p parameter to xg_get_file_name.
9562
9563 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
9564 Check only_dir_p instead of comparing prompt to "Dired". When using
9565 a save dialog, add option kNavDontConfirmReplacement, change title
9566 to "Enter name", change text for save button to "Ok".
9567
9568 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
9569 Check only_dir_p instead of comparing prompt to "Dired".
9570
9571 * gtkutil.c (xg_get_file_with_chooser)
9572 (xg_get_file_with_selection): New functions, only defined ifdef
9573 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
9574 respectively.
9575 (xg_get_file_name): Add parameter only_dir_p.
9576 Call xg_get_file_with_chooser or xg_get_file_with_selection
9577 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
9578 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
9579
9580 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
9581
9582 * config.in: Rebuild (added HAVE_GTK_FILE_*).
9583
9584 2004-11-01 Kim F. Storm <storm@cua.dk>
9585
9586 * process.c (connect_wait_mask, num_pending_connects):
9587 Only declare and use them if NON_BLOCKING_CONNECT is defined.
9588 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
9589 (IF_NON_BLOCKING_CONNECT): New helper macro.
9590 (wait_reading_process_output): Only declare and use local vars
9591 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
9592
9593 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
9594
9595 * w32term.c (x_scroll_run): Delete region objects after use.
9596
9597 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9598
9599 * xmenu.c: Add prototypes for forward function declarations.
9600 (popup_get_selection): Remove parameter do_timers, remove call to
9601 timer_check.
9602 (create_and_show_popup_menu, create_and_show_dialog):
9603 Remove parameter do_timers from call to popup_get_selection.
9604
9605 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
9606 tool_bar_items and assign the result to f->tool_bar_items if
9607 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
9608 tool_bar_items to assignment of result.
9609
9610 * atimer.c (alarm_signal_handler): Do not call set_alarm if
9611 pending_atmers is non-zero.
9612
9613 2004-10-31 Kim F. Storm <storm@cua.dk>
9614
9615 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
9616
9617 2004-10-28 Will <will@glozer.net>
9618
9619 * macterm.c: Allow user to assign key modifiers to the Mac Option
9620 key via a 'mac-option-modifier' variable.
9621
9622 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9623
9624 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
9625 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
9626 (x_handle_selection_request, x_handle_selection_clear)
9627 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
9628
9629 2004-10-28 Richard M. Stallman <rms@gnu.org>
9630
9631 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9632
9633 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
9634
9635 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
9636
9637 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
9638 comment-starter over a 1-char one.
9639
9640 2004-10-27 Richard M. Stallman <rms@gnu.org>
9641
9642 * xdisp.c (get_next_display_element): In mode lines,
9643 treat newline and tab like other control characters.
9644
9645 * editfns.c (Fmessage): Doc fix.
9646
9647 * indent.c (vmotion): When moving up, check the newline before.
9648 Make prevline an int, not a Lisp_Object.
9649
9650 2004-10-27 Kim F. Storm <storm@cua.dk>
9651
9652 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
9653 Only allocate info and discarded tables once.
9654
9655 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
9656 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
9657 (SAFE_FREE): Test it to determine if we need to unwind to free.
9658 Remove size arg. All users changed.
9659 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
9660
9661 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9662
9663 * gtkutil.c: Put empty line between comment and function body.
9664 (xg_destroy_widgets): Rename from remove_from_container.
9665 Just destroy all widgets in list. Argument wcont removed.
9666 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
9667 instead of remove_from_container.
9668 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
9669 (free_frame_tool_bar): Add comment.
9670
9671 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
9672 is not NULL before strcmp.
9673
9674 2004-10-26 Kim F. Storm <storm@cua.dk>
9675
9676 * callint.c (Fcall_interactively): Add 'U' code to get the
9677 up-event discarded by a previous 'k' or 'K' argument.
9678
9679 2004-10-26 David Kastrup <dak@gnu.org>
9680
9681 * buffer.c (syms_of_buffer): Fix a few typos.
9682
9683 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9684
9685 * xsmfns.c: Put empty line between comment and function body.
9686 Use two spaces before comment end.
9687
9688 2004-10-25 Kenichi Handa <handa@m17n.org>
9689
9690 * fontset.c (fontset_pattern_regexp): Optimize for the case that
9691 PATTERN is full XLFD.
9692
9693 2004-10-24 Kenichi Handa <handa@m17n.org>
9694
9695 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
9696
9697 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
9698 (regex_compile): Return REG_ERANGEX if appropriate.
9699
9700 2004-10-22 Kenichi Handa <handa@m17n.org>
9701
9702 * editfns.c (Ftranslate_region_internal): New function.
9703 (syms_of_editfns): Defsubr it.
9704
9705 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9706
9707 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
9708
9709 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
9710
9711 * xterm.h (x_output): New member `xic_base_fontname'.
9712 (FRAME_XIC_BASE_FONTNAME): New macro.
9713 (xic_free_xfontset): Declare.
9714
9715 * xfns.c (xic_create_xfontset): Share fontsets between frames
9716 based on base_fontname.
9717 (xic_free_xfontset): New function.
9718 (free_frame_xic): Use it.
9719 (xic_set_xfontset): Ditto.
9720
9721 * xterm.c (xim_destroy_callback): Ditto.
9722
9723
9724 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
9725
9726 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
9727
9728 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9729
9730 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
9731 XSync.
9732
9733 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
9734 New variables and constant.
9735 (main): Calculate heap_bss_diff. If we are dumping and the
9736 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
9737 and exec ourself again.
9738 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
9739 print a warning.
9740
9741 * lastfile.c: Make my_endbss and my_endbss_static available on all
9742 platforms.
9743
9744 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
9745 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
9746
9747 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
9748
9749 * data.c (Flocal_variable_if_set_p): Doc fix.
9750
9751 2004-10-19 Jason Rumney <jasonr@gnu.org>
9752
9753 * w32.c (init_environment): Set emacs_dir correctly when running
9754 emacs from the build directory.
9755
9756 2004-10-19 Richard M. Stallman <rms@gnu.org>
9757
9758 * editfns.c (Fdelete_and_extract_region):
9759 If region is empty, return null string.
9760
9761 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9762
9763 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
9764 and canon_width.
9765 (xg_frame_cleared): Remove.
9766
9767 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
9768 (xg_find_top_left_in_fixed): Remove.
9769 (xg_create_scroll_bar): Put an event box widget between
9770 the scroll bar widget and the edit widget.
9771 (xg_show_scroll_bar): Show the parent widget (the event box).
9772 (xg_remove_scroll_bar): Destroy parent (the event box) also.
9773 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
9774 Move the parent (the event box) widget inside the fixed widget.
9775 Move window clear to xterm.c.
9776
9777 * gtkutil.h (xg_frame_cleared): Remove.
9778
9779 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
9780 (x_scroll_bar_create, XTset_vertical_scroll_bar):
9781 Remove arguments left and width to xg_update_scrollbar_pos.
9782 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
9783
9784 2004-10-19 Kenichi Handa <handa@m17n.org>
9785
9786 * xdisp.c (display_mode_element): Fix display of wide chars.
9787
9788 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9789
9790 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
9791 gdk_window_clear and move gdk_window_process_all_updates after
9792 clear so events are sent to the X server in correct order.
9793
9794 2004-10-18 Kenichi Handa <handa@m17n.org>
9795
9796 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
9797 comparing font names.
9798 (fs_query_fontset): Use fast_string_match for comparing fontset names.
9799 (list_fontsets): Likewise.
9800
9801 * search.c (fast_string_match_ignore_case): New function.
9802
9803 * lisp.h (fast_string_match_ignore_case): Extern it.
9804
9805 2004-10-17 Kim F. Storm <storm@cua.dk>
9806
9807 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
9808 than bitmap if there is not left fringe.
9809 (get_overlay_arrow_glyph_row): Also used on windows system.
9810 (display_line): Display overlay string if no left fringe.
9811
9812 2004-10-16 Jason Rumney <jasonr@gnu.org>
9813
9814 * w32fns.c (w32_font_match): Encode font name being matched.
9815
9816 2004-10-16 Richard M. Stallman <rms@gnu.org>
9817
9818 * window.c (Fspecial_display_p): Doc fix.
9819
9820 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
9821
9822 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
9823 Don't ignore menus, because where-is-internal already does it for us.
9824
9825 2004-10-15 Kim F. Storm <storm@cua.dk>
9826
9827 * xdisp.c (redisplay_window): Only update fringes and vertical
9828 border on window frames.
9829
9830 2004-10-14 Andreas Schwab <schwab@suse.de>
9831
9832 * m/ia64.h (DATA_SEG_BITS): Don't define.
9833
9834 2004-10-14 Kim F. Storm <storm@cua.dk>
9835
9836 * xterm.h: Include Xutil.h after keysym.h to work around bug
9837 in some X versions.
9838
9839 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9840
9841 * fns.c (map_char_table): Add missing gcpros.
9842
9843 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
9844
9845 * keymap.c (get_keymap): An autoload form is not a keymap.
9846
9847 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
9848
9849 2004-10-13 Kim F. Storm <storm@cua.dk>
9850
9851 * callproc.c (Fcall_process): Simplify handling of display arg.
9852 Resume `display_on_the_fly' once a coding system is determined.
9853
9854 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
9855
9856 2004-10-12 Kim F. Storm <storm@cua.dk>
9857
9858 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
9859 caller, such as call-process, is not going to poll for input.
9860 (calc_line_height_property): Handle case where it->object is nil.
9861
9862 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
9863
9864 2004-10-12 Kenichi Handa <handa@m17n.org>
9865
9866 * xdisp.c (get_next_display_element):
9867 If unibyte_display_via_language_environment is zero, display 8-bit
9868 chars in octal in unibyte buffer.
9869
9870 2004-10-12 Kim F. Storm <storm@cua.dk>
9871
9872 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
9873 are no ordinary bindings.
9874
9875 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9876
9877 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
9878
9879 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9880
9881 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
9882 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
9883 (make_mac_frame): Add BLOCK_INPUT around the making of a
9884 terminal frame.
9885 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
9886 * macgui.h (mktime): Use emacs_mktime.
9887 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
9888 Make a cancel file-open dialog be like C-g.
9889 * mac.c (mktime): Use emacs_mktime.
9890 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
9891 (Fmac_paste_function): Add better error handling for carbon cut/paste.
9892
9893 2004-10-10 Kim F. Storm <storm@cua.dk>
9894
9895 * keyboard.c (timer_resume_idle): New function to resume idle
9896 timer without resetting timers on the idle list.
9897 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9898 (timer_start_idle, timer_stop_idle): Declare static.
9899 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
9900
9901 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
9902
9903 2004-10-08 Steven Tamm <steventamm@mac.com>
9904
9905 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
9906 * macterm.c (mac_check_for_quit_char): Remove warning for using
9907 NULL where 0 should be used.
9908 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
9909 objc/malloc.h
9910 * mac.c: Include time.h for Tiger compatibility.
9911
9912 2004-10-07 Kim F. Storm <storm@cua.dk>
9913
9914 * xdisp.c (redisplay_window): Fix flicker on vertical line between
9915 windows. Update vertical line after drawing window fringes, but
9916 only if actually drawing any bitmaps--or there is no fringe.
9917
9918 * xterm.c (x_update_window_end): Likewise.
9919 * macterm.c (x_update_window_end): Likewise.
9920 * w32term.c (x_update_window_end): Likewise.
9921
9922 * fringe.c (draw_window_fringes): Return value now indicates if
9923 any fringe bitmaps were redrawn (or there are no fringes).
9924
9925 * dispextern.h (draw_window_fringes): Update prototype.
9926
9927 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9928
9929 * macfns.c (mac_get_window_bounds): Add extern.
9930 (x_real_positions): Use mac_get_window_bounds.
9931
9932 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
9933 xmenu.c (YAILOM).
9934
9935 * macterm.c [!MAC_OSX]: Include Windows.h.
9936 (front_emacs_window): Rename from mac_front_window. All uses
9937 changed. Return the frontmost non-tooltip emacs window.
9938 (mac_get_window_bounds): New function.
9939 (x_calc_absolute_position): Use the difference of width and height
9940 between the inner and outer window.
9941 (x_set_offset): Specify window position by the coordinae of the
9942 outer window. Adjust the position if the title bar is completely
9943 outside the screen.
9944 (app_is_suspended, app_sleep_time): Remove unused variables.
9945 (do_app_resume, do_app_suspend): Remove their contents because
9946 window-activate/deactivate events will do the job.
9947 (do_zoom_window): Remove unused variables. Make compliant to the
9948 standard way of zooming. Set f->left_pos and f->top_pos.
9949 (XTread_socket): Don't use argument `expected'. Don't use
9950 FrontWindow to determine the clicked window. Exclude unprocessed
9951 mouseUp cases in the early stage. Add parentheses to fix operator
9952 precedence.
9953 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
9954
9955 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
9956
9957 * config.in: Regenerate.
9958
9959 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
9960 HAVE_EXECSHIELD.
9961
9962 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9963
9964 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
9965 a row if Alt or Meta has been found for that row. Also stop scanning
9966 for Keysyms for that row.
9967
9968 2004-10-04 Kim F. Storm <storm@cua.dk>
9969
9970 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
9971 to list. Include overlay arrow bitmap in return value.
9972
9973 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
9974 bars with fractional column width. If scroll bar separates two
9975 windows, move it towards the window it belongs to. Only update
9976 the padding area below the scroll bar widget when necessary,
9977 i.e. when scroll bar widget is created, moved, or resized.
9978
9979 * xdisp.c (define_frame_cursor1): Do not change frame cursor
9980 while tracking/dragging mouse.
9981 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
9982
9983 * window.c (coordinates_in_window): Relax check for cursor
9984 on vertial border between mode lines.
9985 (Fset_window_fringes): Do not allow negative widths.
9986 (Fset_window_scroll_bars): Likewise.
9987
9988 * .gdbinit (pp): Shorthand for p ARG + pr.
9989 (ff): New command: flush frame updates (X only).
9990
9991 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
9992
9993 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
9994
9995 2004-09-30 Kenichi Handa <handa@m17n.org>
9996
9997 * process.c (send_process): Free composition data.
9998
9999 * fileio.c (Finsert_file_contents): Free composition data.
10000
10001 * coding.c (code_convert_region): Don't skip ASCIIs if there are
10002 compositions to encode.
10003 (encode_coding_string): Likewise. Free composition data.
10004
10005 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
10006
10007 * coding.c (code_convert_region): Free composition data.
10008
10009 2004-09-29 Kim F. Storm <storm@cua.dk>
10010
10011 * fringe.c: Remove limit on number of bitmaps.
10012 (fringe_bitmaps, fringe_faces): Change to pointers.
10013 (max_fringe_bitmaps): New var.
10014 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
10015 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
10016
10017 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
10018 (struct glyph_row): Reorder fringe_bitmap related fields.
10019 (struct it): Likewise.
10020
10021 * w32term.c (fringe_bmp): Change to pointer.
10022 (max_fringe_bmp): New var.
10023 (w32_define_fringe_bitmap): Expand fringe_bmp.
10024 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
10025 (w32_destroy_fringe_bitmap): Likewise.
10026
10027 2004-09-29 Kim F. Storm <storm@cua.dk>
10028
10029 * fringe.c: Simplify last change.
10030 (lookup_fringe_bitmap): New function.
10031 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
10032 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
10033 Keep standard bitmaps in Vfringe_bitmaps.
10034 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
10035 (Fset_fringe_bitmap_face): Likewise.
10036
10037 * dispextern.h (lookup_fringe_bitmap): Add prototype.
10038 (valid_fringe_bitmap_p): Remove prototype.
10039
10040 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
10041
10042 2004-09-29 Kim F. Storm <storm@cua.dk>
10043
10044 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
10045 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
10046
10047 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
10048
10049 * fringe.c (Vfringe_bitmaps): New variable.
10050 (syms_of_fringe): DEFVAR_LISP it.
10051 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
10052 Change arg to Lisp_Object and fail if not an integer.
10053 (get_fringe_bitmap_name, resolve_fringe_bitmap)
10054 (destroy_fringe_bitmap): New functions.
10055 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
10056 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
10057 clear its fringe property.
10058 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
10059 Fdestroy_fringe_bitmap.
10060 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
10061 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
10062 and set fringe property. Signal error if no free slots.
10063 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
10064 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
10065
10066 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
10067 symbols with a fringe property.
10068
10069 2004-09-27 Kim F. Storm <storm@cua.dk>
10070
10071 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
10072 Doc fix. Format may now be a symbol or alist, not a cons.
10073
10074 * fringe.c (update_window_fringes): Handle new formats of
10075 indicate-buffer-boundaries (symbol or alist). No longer
10076 allow a simple cons.
10077 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
10078
10079 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10080
10081 * config.in: Rebuild.
10082
10083 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10084
10085 * config.in: Rebuild.
10086
10087 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
10088
10089 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
10090
10091 * xterm.c (x_term_init): Work around a bug in some X servers.
10092
10093 2004-09-18 Richard M. Stallman <rms@gnu.org>
10094
10095 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
10096
10097 * xdisp.c (try_window_reusing_current_matrix):
10098 Handle the case where we reach the old displayed text,
10099 out of sync with the old line boundary.
10100
10101 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
10102
10103 * fileio.c (Finsert_file_contents): Fix case of replacement in a
10104 narrowed buffer.
10105
10106 2004-09-14 Kim F. Storm <storm@cua.dk>
10107
10108 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
10109
10110 * xfaces.c (Qface_no_inherit): New var.
10111 (syms_of_xfaces): Intern and staticpro it.
10112 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
10113 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
10114 Don't increment face_change_count when face has non-nil
10115 face-no-inherit property.
10116
10117 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
10118
10119 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
10120 (Fbyte_code): Remove dead code after `wrong_type_argument'.
10121
10122 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
10123 before doing the mark_stack_check_gcpros since they're not on the stack.
10124
10125 2004-09-12 Kim F. Storm <storm@cua.dk>
10126
10127 * editfns.c (Fformat): Handle format strings with multiple text
10128 properties. Reverse text property list from the format string,
10129 so the positions are in increasing order.
10130
10131 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10132
10133 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
10134 x_uncatch_errors so that possible protocol errors are delivered.
10135
10136 2004-09-10 Eli Zaretskii <eliz@gnu.org>
10137
10138 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
10139 blockinput.h.
10140 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
10141 charset.h, and coding.h
10142 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
10143 (term.o): Depend on window.h and keymap.h.
10144 (abbrev.o): Depend on syntax.h.
10145 (callint.o): Depend on keymap.h.
10146 (casefiddle.o): Depend on charset.h and keymap.h.
10147 (category.o): Depend on keymap.h.
10148 (coding.o): Depend on dispextern.h.
10149 (cmds.o): Depend on keyboard.h and keymap.h.
10150 (dispnew.o): Depend on indent.h and intervals.h.
10151 (doc.o): Depend on keymap.h.
10152 (editfns.o): Depend on frame.h.
10153 (emacs.o): Depend on dispextern.h.
10154 (fileio.o): Don't depend on ccl.h.
10155 (filelock.o): Depend on charset.h and coding.h.
10156 (frame.o): Depend on w32term.h and macterm.h.
10157 (insdel.o): Depend on region-cache.h.
10158 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
10159 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
10160 (search.o): Depend on $(INTERVALS_SRC).
10161 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
10162 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
10163 xterm.h, w32term.h, and macterm.h.
10164 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
10165 w32term.h, and macterm.h.
10166 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
10167 region-cache.h, xterm.h, w32term.h, and macterm.h.
10168 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
10169 (data.o): Depend on frame.h.
10170 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
10171 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
10172 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
10173 (intervals.o): Depend on keymap.h.
10174
10175 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
10176 Add debugging print-out to termscript.
10177
10178 2004-09-09 Richard M. Stallman <rms@gnu.org>
10179
10180 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
10181
10182 2004-09-08 Richard M. Stallman <rms@gnu.org>
10183
10184 * window.c (Fset_window_buffer): Doc fix.
10185
10186 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
10187
10188 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
10189
10190 * minibuf.c (history_delete_duplicates): New variable.
10191 (read_minibuf): Use it.
10192 (syms_of_minibuf): Create the corresponding lisp variable.
10193
10194 2004-09-08 Kim F. Storm <storm@cua.dk>
10195
10196 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
10197 overlay just before point.
10198
10199 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
10200
10201 * buffer.h (struct buffer): Add auto_save_file_format field.
10202 * buffer.c (reset_buffer, init_buffer_once):
10203 Handle auto_save_file_format field.
10204 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
10205 `buffer-auto-save-file-format'.
10206 * fileio.c: Delete declaration for removed Vauto_save_file_format.
10207 (build_annotations): Adapt to replacement of
10208 `auto-save-file-format' with the new buffer-local variable
10209 `buffer-auto-save-file-format'.
10210 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
10211
10212 2004-09-07 Jason Rumney <jasonr@gnu.org>
10213
10214 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
10215
10216 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
10217 Handle Unicode menu titles.
10218
10219 2004-09-07 Kim F. Storm <storm@cua.dk>
10220
10221 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
10222 property from text property or overlay strings at point.
10223
10224 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10225
10226 * xmenu.c (update_submenu_strings): YAILOM.
10227 (set_frame_menubar): Make sure last_i is initialized.
10228
10229 2004-09-03 Jason Rumney <jasonr@gnu.org>
10230
10231 * w32menu.c (_widget_value): Add lname and lkey.
10232 (digest_single_submenu): Set lname and lkey in widget_value
10233 instead of name and key.
10234 (update_submenu_strings): New function.
10235 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10236 call update_submenu_strings.
10237
10238 * w32menu.c (globals_of_w32menu): Check for Unicode API.
10239 (digest_single_submenu, w32_menu_show): Encode menu strings as
10240 UTF-8 if Unicode API is available.
10241 (utf8to16): New function.
10242 (add_menu_item): Use it when calling Unicode API.
10243
10244 2004-09-03 Kim F. Storm <storm@cua.dk>
10245
10246 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
10247 in overlay or text-property strings; set cursor on corresponding
10248 glyph rather than at end of the string.
10249
10250 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10251
10252 * macfns.c (x_real_positions): Save the current window port and
10253 set a new one before obtaining the global coordinate.
10254 Use FRAME_MAC_WINDOW.
10255 (x_set_name, x_set_title): Encode title to UTF8.
10256 Use SetWindowTitleWithCFString.
10257 (Fx_server_version): Get correct OS version.
10258
10259 * macmenu.c (add_menu_item): Remove unused variable `i'.
10260 Don't let separator items destroy refence constants of other menu items.
10261
10262 * macterm.c (x_update_end): Move SetPortWindowPort to inside
10263 BLOCK_INPUT.
10264 (x_set_offset): Use FRAME_MAC_WINDOW.
10265
10266 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
10267 nontext_cursor if it is on a scroll bar.
10268
10269 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
10270 Carbon support.
10271 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
10272 Use LIBS_CARBON.
10273
10274 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10275
10276 * xfns.c (x_set_name_internal): New function. Check if we shall call
10277 xfree before ENCODE_UTF_8.
10278 (x_set_name, x_set_title): Call x_set_name_internal.
10279
10280 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
10281
10282 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
10283 reload it.
10284
10285 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10286
10287 * macmenu.c (_widget_value): Add lname and lkey.
10288 (single_submenu): Set lname and lkey in widget_value
10289 instead of name and key.
10290 (update_submenu_strings): New function.
10291 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10292 call update_submenu_strings.
10293
10294 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
10295 instead of name and key.
10296 (update_submenu_strings): New function.
10297 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10298 call update_submenu_strings.
10299
10300 * gtkutil.h (_widget_value): Added lname and lkey.
10301
10302 2004-08-30 Steven Tamm <steventamm@mac.com>
10303
10304 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
10305 by using different names for inner loop variables.
10306
10307 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10308
10309 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
10310 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
10311
10312 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
10313 tool bar items is 0.
10314
10315 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10316
10317 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
10318 strings in menu items.
10319 (single_submenu): Use ENCODE_MENU_STRING
10320 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
10321 button release isn't passed to event loop
10322 (add_menu_item): Use SetMenuItemWithCFString
10323
10324 2004-08-26 Steven Tamm <steventamm@mac.com>
10325
10326 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
10327 tool-bar/menu click.
10328 * macfns.c (Fx_file_dialog): Implement using NavServices.
10329
10330 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10331
10332 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
10333
10334 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10335 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10336 (x_top_window_to_frame): Return 0 if wdesc is None.
10337
10338 2004-08-22 Richard M. Stallman <rms@gnu.org>
10339
10340 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
10341 HAVE_TERMIOS]: If there's no char for this signal, drop through
10342 and use system calls.
10343
10344 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
10345
10346 2004-08-20 Kim F. Storm <storm@cua.dk>
10347
10348 * process.c (wait_reading_process_output): Rename from
10349 wait_reading_process_input. All uses changed.
10350 (wait_reading_process_output_1): Rename from
10351 wait_reading_process_input_1. All uses changed.
10352
10353 * dispnew.c (Fsleep_for): Remove obsolete code.
10354
10355 2004-08-20 Kenichi Handa <handa@m17n.org>
10356
10357 * syntax.c (skip_chars): Fix for unibyte case.
10358
10359 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * syntax.c (char_quoted): Mixup byte/char pos.
10362 (back_comment): Fixup globals in all cases.
10363
10364 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10365
10366 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
10367 passing it to gtk_window_set_title.
10368
10369 2004-08-19 Kim F. Storm <storm@cua.dk>
10370
10371 * process.c (wait_reading_process_input): Clean up.
10372 Add wait_for_cell, wait_proc, and just_wait_proc args
10373 to avoid overloading `read_kbd' and `do_display' args.
10374 Change read_kbd arg to int. All callers changed.
10375
10376 * process.c (process_send_signal): Use CDISABLE.
10377
10378 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
10379
10380 2004-08-18 Kim F. Storm <storm@cua.dk>
10381
10382 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
10383 forward to wait_reading_process_input via DO_DISPLAY arg.
10384 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
10385 object, only process output from that process; also inhibit
10386 running timers if DO_DISPLAY==-2.
10387
10388 2004-08-17 Kim F. Storm <storm@cua.dk>
10389
10390 * process.c (process_send_signal): Fix last change--use
10391 _POSIX_VDISABLE instead of CVDISABLE when available.
10392
10393 2004-08-16 Richard M. Stallman <rms@gnu.org>
10394
10395 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
10396 Set VQUIT and VINTR chars to the standard ones if they are unset.
10397 [AIX]: Don't do that here. And don't force VINTR to standard
10398 when SIGNALS_VIA_CHARACTERS.
10399
10400 * process.c (process_send_signal)
10401 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
10402 Do nothing if the character is CVDISABLE.
10403
10404 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
10405
10406 * intervals.c (move_if_not_intangible):
10407 Force POSITION to be between BEGV and ZV.
10408
10409 2004-08-14 John Paul Wallington <jpw@gnu.org>
10410
10411 * buffer.c (Frestore_buffer_modified_p): Doc fix.
10412
10413 * fileio.c (Fread_file_name): Doc fix.
10414
10415 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
10416
10417 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
10418
10419 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
10420
10421 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
10422
10423 * keyboard.c: Declare Qdisabled_command_function instead of
10424 Qdisabled_command_hook.
10425 (Fcommand_execute): Use Qdisabled_command_function instead of
10426 Qdisabled_command_hook.
10427 (syms_of_keyboard): Ditto.
10428
10429 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
10430
10431 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
10432 (syms_of_keymap) <key-translation-map>: Doc fixes.
10433
10434 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
10435
10436 * window.c (window_list_1): YAILOM.
10437
10438 * fileio.c (make_temp_name): Handle multibyte prefixes.
10439
10440 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
10441
10442 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
10443 Doc fix.
10444
10445 2004-08-03 Kenichi Handa <handa@m17n.org>
10446
10447 * coding.c (decode_coding_string): Adjust coding->consumed, and
10448 etc. with shrinked_bytes.
10449
10450 2004-08-03 Kim F. Storm <storm@cua.dk>
10451
10452 * indent.c (compute_motion): Fix check for full width window
10453 in non-window case. Do not count left truncation glyph on
10454 window systems.
10455
10456 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
10457
10458 * data.c (Finteractive_form): Doc fix.
10459
10460 2004-08-02 Kim F. Storm <storm@cua.dk>
10461
10462 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
10463 properly accounting for continuation glyph on non-window systems.
10464 (Fcompute_motion): Use actual window width if WIDTH is nil, and
10465 actual window width/height if TOPOS is nil, properly accounting for
10466 continuation glyphs on non-window systems, and optional header lines.
10467 (vmotion): Let compute_motion calculate actual window width.
10468
10469 * window.c (window_scroll_line_based): Let compute_motion
10470 calculate actual window width.
10471
10472 2004-08-02 Kim F. Storm <storm@cua.dk>
10473
10474 * process.c (read_process_output): Use whole read buffer.
10475 Don't trigger adaptive read buffering on errors.
10476
10477 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
10478
10479 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
10480
10481 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
10482
10483 * callint.c (Fcall_interactively): Doc fix.
10484
10485 2004-07-30 Richard M. Stallman <rms@gnu.org>
10486
10487 * abbrev.c (Fexpand_abbrev): Undo previous change.
10488
10489 2004-07-30 Kim F. Storm <storm@cua.dk>
10490
10491 * editfns.c (Fformat): Allocate extra (dummy) element in info.
10492
10493 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
10494
10495 * eval.c (Fdefvar, Fdefconst): Doc fixes.
10496
10497 2004-07-27 Kim F. Storm <storm@cua.dk>
10498
10499 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
10500 we have ensured that the glyph fits on the current line (or returned
10501 MOVE_LINE_CONTINUED otherwise).
10502
10503 2004-07-26 Kim F. Storm <storm@cua.dk>
10504
10505 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
10506 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
10507 if target position is at end of display line but char is not a newline.
10508
10509 2004-07-25 Richard M. Stallman <rms@gnu.org>
10510
10511 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
10512 instead of ON_VERTICAL_BORDER, when on scroll bar.
10513 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
10514
10515 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
10516
10517 * window.c (Fcoordinates_in_window_p):
10518 Take account of FRAME_INTERNAL_BORDER_WIDTH.
10519
10520 * alloc.c (check_cons_list): New function (contents commented out).
10521
10522 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
10523
10524 * xfaces.c (Fcolor_supported_p): Doc fix.
10525
10526 * frame.c (Fselect_frame, Fset_frame_selected_window)
10527 (Fframe_visible_p, Fraise_frame): Doc fixes.
10528
10529 2004-07-24 Richard M. Stallman <rms@gnu.org>
10530
10531 * keyboard.h (not_single_kboard_state): Declare.
10532
10533 * fileio.c (Fwrite_region): Doc fix.
10534
10535 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
10536
10537 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
10538 only when a real abbrev is present.
10539
10540 * xfns.c (x_icon_verify): New function.
10541 (Fx_create_frame): Use it.
10542
10543 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
10544
10545 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
10546
10547 2004-07-21 Kim F. Storm <storm@cua.dk>
10548
10549 * window.h (struct glyph_matrix): New members nrows_scale_factor
10550 and ncols_scale_factor.
10551
10552 * window.c (make_window): Initialize nrows_scale_factor and
10553 ncols_scale_factor members.
10554
10555 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
10556 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
10557 (required_matrix_height): Apply nrows_scale_factor.
10558 (required_matrix_width): Apply ncols_scale_factor.
10559
10560 * xdisp.c (display_line): Increment nrows_scale_factor and set
10561 fonts_changed_p if past last allocated row.
10562 (append_glyph, append_composite_glyph, produce_image_glyph)
10563 (append_stretch_glyph): Increment ncols_scale_factor and set
10564 fonts_changed_p if current area is full.
10565
10566 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10567
10568 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
10569
10570 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
10571
10572 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
10573 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
10574 (Fset_window_start, Fscroll_up, Fscroll_down)
10575 (Fother_window_for_scrolling, Fscroll_other_window)
10576 (Fsave_window_excursion, Fset_window_vscroll)
10577 (syms_of_window) <window-size-fixed>: Doc fixes.
10578
10579 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10580
10581 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
10582 ENCODE_SYSTEM for filenames.
10583
10584 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10585
10586 * mac.c (sys_select): Block input around call to
10587 ReceiveNextEvent to prevent breakage. Correctly handle
10588 blocking on event queue only by calling ReceiveNextEvent
10589 instead of select (since GUI events aren't on an fd).
10590 (sys_read): Remove function
10591 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
10592
10593 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10594
10595 * mac.c (sys_select): Redo sys_select to use alarm-based
10596 polling instead of 1 sec timeouts (like solaris).
10597
10598 * macterm.c (x_make_frame_visible): Comment in polling on
10599 frame creation.
10600
10601 * keyboard.c: Undef SIGIO on Carbon
10602
10603 * atimer.c (alarm_signal_handler): Call alarm handlers after
10604 scheduling.
10605
10606 * eval.c (Feval): Remove quit_char test
10607
10608 * process.c (wait_reading_process_input): Remove clearing
10609 stdin for select call on process input.
10610
10611 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
10612
10613 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
10614 capitalization error in docstring.
10615
10616 2004-07-17 Juanma Barranquero <lektu@terra.es>
10617
10618 * keyboard.c (not_single_kboard_state): Do nothing unless
10619 MULTI_KBOARD is defined.
10620
10621 2004-07-17 Richard M. Stallman <rms@gnu.org>
10622
10623 * window.c (coordinates_in_window): Inside the window but outside
10624 its box to the L or R, return ON_VERTICAL_BORDER.
10625 (window_list_1): Rotate the list to start with WINDOW.
10626
10627 * print.c (print_preprocess): Test for print_depth at limit
10628 before entering in being_printed.
10629
10630 * keyboard.c (not_single_kboard_state): New function.
10631 (stuff_buffered_input): Now no-op only if no SIGTSTP.
10632
10633 * frame.c (Fdelete_frame): If we're in single_bboard_state on
10634 this kboard, and we delete its last frame, go to any_kboard_state.
10635
10636 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
10637
10638 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10639
10640 * w32fns.c (Fx_file_dialog): Encode strings in system coding
10641 system before passing them to OS functions for display.
10642
10643 2004-07-15 David Kastrup <dak@gnu.org>
10644
10645 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
10646 Apparently fixes an abort condition.
10647
10648 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
10649
10650 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
10651 instead of a cons.
10652
10653 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10654
10655 * keyboard.c (echo_dash): Do nothing if there already is a dash
10656 at the end of the echo string.
10657
10658 2004-07-12 Kim F. Storm <storm@cua.dk>
10659
10660 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
10661 if GC_MARK_STACK.
10662
10663 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
10664
10665 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
10666
10667 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
10668 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
10669 (Freplace_buffer_in_windows, Fset_window_buffer)
10670 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
10671 (syms_of_window): Expand docstring of `display-buffer-function'.
10672
10673 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
10674
10675 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
10676 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
10677 that time values of the type (HIGH . LOW) are considered obsolete.
10678
10679 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
10680
10681 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
10682 docstring.
10683
10684 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
10685
10686 2004-07-06 John Paul Wallington <jpw@gnu.org>
10687
10688 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
10689
10690 * fns.c (Fclear_string): Signal an error if STRING is not a string.
10691
10692 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10693
10694 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
10695 instead of CGMainDisplayID (only in OSX 10.2 and later).
10696
10697 2004-07-04 John Paul Wallington <jpw@gnu.org>
10698
10699 * fileio.c (read_file_name_completion_ignore_case): New variable.
10700 (syms_of_fileio): Declare and initialise it.
10701 (Fread_file_name): Bind `completion-ignore-case' to respect it.
10702
10703 2004-07-03 Eli Zaretskii <eliz@gnu.org>
10704
10705 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
10706 for event.x and event.y.
10707
10708 2004-07-01 Kenichi Handa <handa@m17n.org>
10709
10710 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
10711 after getting a new string by pre-write-conversion.
10712
10713 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
10716 (x_calc_absolute_position): Remove unused var `child'.
10717
10718 * xfaces.c (x_supports_face_attributes_p)
10719 (Fdisplay_supports_face_attributes_p): YAILOM.
10720 (tty_supports_face_attributes_p): Remove unused var `i'.
10721
10722 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
10723 back_unibyte_ok.
10724
10725 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
10726
10727 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
10728
10729 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
10730
10731 2004-06-30 Andreas Schwab <schwab@suse.de>
10732
10733 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
10734 (Finit_image_library): Pass LIBRARIES through to
10735 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
10736 (lookup_image_type): Pass Qnil as second argument to
10737 Finit_image_library.
10738
10739 * lisp.h (Finit_image_library): Declare.
10740
10741 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10742
10743 * macterm.c (do_window_activate, do_window_deactivate): Remove.
10744 (XTread_socket): Send mouse button events to the toolbox
10745 dispatcher even when the mouse is grabbed. Don't process window
10746 activate events for non-Emacs windows. Replace function calls to
10747 do_window_activate and do_window_deactivate with their contents.
10748 Reset mouse grabbing status when a window is deactivated.
10749
10750 2004-06-29 Steven Tamm <steventamm@mac.com>
10751
10752 * macterm.c (mac_get_emulated_btn)
10753 (mac_event_to_emacs_modifiers): Fix emulated mouse button
10754 support to correctly mask out modifiers.
10755
10756 2004-06-29 David Kastrup <dak@gnu.org>
10757
10758 * search.c (Fset_match_data): Allow buffer before end of list
10759 which can happen if set-match-data is using a pre-consed list.
10760
10761 2004-06-28 Steven Tamm <steventamm@mac.com>
10762
10763 * macterm.c (XTread_socket): Correctly set the frame position
10764 after the window is moved.
10765
10766 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10767
10768 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
10769 gpix and gmask just before return to avoid memory leak.
10770 (xg_get_image_for_pixmap): Add workaround for monochrome displays
10771 so insensitive and activated icons look ok.
10772
10773 2004-06-27 Jason Rumney <jasonr@gnu.org>
10774
10775 * w32fns.c (file_dialog_callback): Disable edit control if set
10776 to directories only on CDN_INITDONE message.
10777 (Fx_file_dialog): Default to directories only when prompt starts
10778 with "Dired".
10779
10780 2004-06-25 Kim F. Storm <storm@cua.dk>
10781
10782 * alloc.c (allocate_misc): Update total_free_markers.
10783 (free_misc): New function.
10784 (safe_alloca_unwind, free_marker): Use it.
10785
10786 * lisp.h (free_misc): Add prototype.
10787
10788 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
10789
10790 2004-06-24 Richard M. Stallman <rms@gnu.org>
10791
10792 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
10793 (syms_of_emacs): Lisp variables deleted.
10794
10795 2004-06-23 David Kastrup <dak@gnu.org>
10796
10797 * search.c (Freplace_match): Adjust the match-data more thoroughly
10798 when replacing strings in the buffer.
10799 (Fmatch_data): When INTEGERS is non-nil and the last match was in
10800 a buffer, add the buffer as last element to the match data.
10801 (Fset_match_data): If an additional element of the match-data is a
10802 buffer, restore it to last_thing_searched.
10803 (save_search_regs): Save last_thing_searched as part of the match data.
10804 (restore_match_data): Restore it again.
10805
10806 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
10807
10808 * keymap.c (Ftext_char_description): Doc fix.
10809 * doc.c (Fsnarf_documentation): Doc fix.
10810
10811 2004-06-22 Kim F. Storm <storm@cua.dk>
10812
10813 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
10814
10815 * lisp.h (struct Lisp_Save_Value): New member dogc.
10816 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
10817 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
10818 (SAFE_FREE_LISP): New macro.
10819
10820 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
10821 (make_save_value): Init new dogc member.
10822 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
10823
10824 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
10825 SAFE_FREE_LISP macros.
10826
10827 2004-06-22 Kim F. Storm <storm@cua.dk>
10828
10829 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
10830 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
10831 in that memory area are unknown to GC. Add comments.
10832
10833 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
10834
10835 2004-06-21 Kim F. Storm <storm@cua.dk>
10836
10837 * lisp.h (MAX_ALLOCA): Define here.
10838 (safe_alloca_unwind): Add prototype.
10839 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
10840
10841 * alloc.c (safe_alloca_unwind): New function.
10842
10843 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
10844
10845 * charset.c (Fstring): Use SAFE_ALLOCA.
10846
10847 * coding.c (MAX_ALLOCA): Remove define.
10848
10849 * data.c (MAX_ALLOCA): Remove define.
10850 (Faset): Use SAFE_ALLOCA.
10851
10852 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
10853
10854 * fns.c (string_make_multibyte, string_to_multibyte)
10855 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
10856 (MAX_ALLOCA): Remove define.
10857 (Fbase64_encode_region, Fbase64_encode_string)
10858 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
10859 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
10860 memory leak if encoding fails.
10861
10862 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
10863
10864 2004-06-21 Eli Zaretskii <eliz@gnu.org>
10865
10866 * print.c (Fwith_output_to_temp_buffer): Doc fix.
10867
10868 2004-06-20 Richard M. Stallman <rms@gnu.org>
10869
10870 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
10871
10872 * search.c (match_limit): Cleaner err msg when no match data available.
10873
10874 * window.c (syms_of_window): Doc fix.
10875
10876 * keyboard.c (command_loop_1): Handle values `only' and `identity'
10877 for Vtransient_mark_mode.
10878
10879 * buffer.c (syms_of_buffer): Doc fix.
10880
10881 2004-06-21 David Kastrup <dak@gnu.org>
10882
10883 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
10884 and unbinding of `case-fold-search' according to
10885 `completion-ignore-case' around calls of string-match and
10886 predicates, respectively. Should give satisfactory performance
10887 in all relevant cases.
10888
10889 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10890
10891 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
10892 clip_x/y_origin.
10893
10894 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
10895
10896 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
10897
10898 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
10899 on Mac OSX.
10900
10901 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
10902
10903 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
10904
10905 2004-06-16 Kim F. Storm <storm@cua.dk>
10906
10907 * dispextern.h (Vimage_types): Remove extern.
10908
10909 2004-06-16 Miles Bader <miles@gnu.org>
10910
10911 * image.c (lookup_image_type): Initialize image type if necessary.
10912
10913 2004-06-15 Kim F. Storm <storm@cua.dk>
10914
10915 * xdisp.c (try_cursor_movement): Exclude header line from scroll
10916 margin at top of window.
10917 (try_window_reusing_current_matrix): Calculate proper cursor position
10918 after scrolling up with non-zero scroll margin, as the old cursor
10919 position corresponds to value of PT before executing this command.
10920 (try_window_id): Consider scroll margin at bottom of window too;
10921 otherwise we fail to scroll when hl-line-mode is enabled.
10922
10923 * syntax.c (skip_chars): Only recognize [:class:] when it has the
10924 proper format and class is a lower-case word.
10925
10926 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10927
10928 * gtkutil.c (xg_get_image_for_pixmap): New function.
10929 (xg_get_gdk_pixmap_and_mask): Remove.
10930 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
10931 xg_get_gdk_pixmap_and_mask.
10932
10933 * xterm.h (struct x_display_info): Typo in comment fixed.
10934
10935 2004-06-14 Juanma Barranquero <lektu@terra.es>
10936
10937 * dispextern.h (Vimage_types): Make it conditional on
10938 HAVE_WINDOW_SYSTEM.
10939
10940 * image.c (Vimage_types): Move from xdisp.c.
10941 (Vimage_type_cache): New variable.
10942 (define_image_type): New argument indicating whether an image
10943 library was loaded; cache loaded status and return t on success,
10944 nil otherwise.
10945 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
10946 (w32_delayed_load): New function to load an image library from a
10947 list of possible filenames.
10948 (init_xpm_functions, init_png_functions, init_jpeg_functions)
10949 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
10950 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
10951 (Finit_image_library): New function, extracted from `init_image'.
10952 Try to initialize an image library on demand and cache whether we
10953 were successful or not.
10954 (syms_of_image): Initialize `Vimage_types' and
10955 `Vimage_type_cache'. Add recognized image types to Vimage_types.
10956 Export `init-image-library'.
10957 (init_image): Remove initialization of all image types, except xbm
10958 and pbm.
10959
10960 * xdisp.c (Vimage_types): Delete (moved to image.c).
10961
10962 2004-06-14 Andreas Schwab <schwab@suse.de>
10963
10964 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10965 Avoid calling specbind when completion-regexp-list is empty.
10966
10967 2004-06-13 Richard M. Stallman <rms@gnu.org>
10968
10969 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10970 (re_wctype, re_iswctype, re_wctype_to_bit):
10971 Non-function definitions moved here from regex.c.
10972
10973 * regex.c (re_wctype, re_iswctype): Function defs longer static.
10974 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
10975 (re_wctype, re_iswctype, re_wctype_to_bit):
10976 Non-function definitions moved to regex.h.
10977
10978 * window.c (Fselect_window): Doc fix.
10979
10980 * syntax.c: Include regex.h.
10981 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
10982 If requested, make a list of classes, then check the scanned
10983 chars for membership in them.
10984 (in_classes): New function.
10985 Doc fix.
10986
10987 * keyboard.c (cmd_error): Don't call any_kboard_state
10988 if inside a recursive edit level.
10989
10990 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10991
10992 * keyboard.c (command_loop): Call any_kboard_state before
10993 command_loop_2 when at top level.
10994
10995 2004-06-13 Andreas Schwab <schwab@suse.de>
10996
10997 * print.c (print_object): Always use %ld for printing EMACS_INT.
10998
10999 * keyboard.c (cancel_hourglass_unwind): Return a value.
11000 (modify_event_symbol): Always use %ld for printing EMACS_INT.
11001 (Fexecute_extended_command): Likewise.
11002
11003 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
11004 avoid clashes.
11005 (SYNTAX): Likewise.
11006 (SYNTAX_WITH_FLAGS): Likewise.
11007 (SYNTAX_MATCH): Likewise.
11008
11009 * syntax.c (char_quoted): Avoid warning about undefined operation.
11010 (find_defun_start): Likewise.
11011 (scan_lists): Likewise.
11012 (INC_FROM): Likewise.
11013 (scan_sexps_forward): Likewise.
11014
11015 * image.c: Include <ctype.h>.
11016
11017 * xfaces.c (face_attr_equal_p): Declare parameters.
11018
11019 2004-06-13 Kenichi Handa <handa@m17n.org>
11020
11021 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
11022
11023 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
11024
11025 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
11026
11027 2004-06-12 Kenichi Handa <handa@m17n.org>
11028
11029 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
11030 ccl_prog_stack_struct and update it.
11031 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
11032 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
11033 ccl->eof_ic on EOF.
11034 (ccl_debug_hook): New function.
11035 (struct ccl_prog_stack): New member eof_ic.
11036 (ccl_driver): Handle EOF in subrountine call correctly.
11037
11038 2004-06-11 Kenichi Handa <handa@m17n.org>
11039
11040 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
11041
11042 2004-06-11 Kim F. Storm <storm@cua.dk>
11043
11044 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
11045
11046 2004-06-11 Juanma Barranquero <lektu@terra.es>
11047
11048 * keyboard.c (Fposn_at_point): Doc fix.
11049
11050 2004-06-11 David Kastrup <dak@gnu.org>
11051
11052 * search.c (match_limit): Don't flag an error if match-data
11053 exceeding the allocated search_regs.num_regs gets requested, just
11054 return Qnil.
11055
11056 2004-06-08 Miles Bader <miles@gnu.org>
11057
11058 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
11059
11060 2004-06-07 Juanma Barranquero <lektu@terra.es>
11061
11062 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
11063 (Fcurrent_time_string, Fcurrent_time_zone)
11064 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
11065
11066 2004-06-07 Miles Bader <miles@gnu.org>
11067
11068 * xfaces.c (struct named_merge_point): New type.
11069 (push_named_merge_point): New function.
11070 (merge_named_face): New function.
11071 (merge_face_ref, face_at_buffer_position, face_at_string_position):
11072 Use `merge_named_face'.
11073 (merge_face_inheritance): Function removed.
11074 (merge_face_ref): Rename from `merge_face_vector_with_property'.
11075 Add new `err_msgs' and `named_merge_points' args. Return error
11076 status. Only print error messages if ERR_MSGS is true. Don't try to
11077 do :inherit attribute validation.
11078 (merge_face_heights): Handle `unspecified' in both directions.
11079 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
11080 Call `merge_face_ref' instead of `merge_face_inheritance'.
11081 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
11082 (compute_char_face, face_at_buffer_position)
11083 (face_at_string_position): Call `merge_face_ref' instead of
11084 `merge_face_vector_with_property'.
11085
11086 2004-06-07 Kenichi Handa <handa@m17n.org>
11087
11088 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
11089 the necessary places.
11090
11091 2004-06-07 Kim F. Storm <storm@cua.dk>
11092
11093 * process.c (Fdelete_process): Undo 2004-05-28 change.
11094 Instead, call status_notify also for network process.
11095 (status_message): Use process instead of status as arg.
11096 Give messages "deleted" or "connection broken by remote peer" for
11097 an exited network process.
11098 (status_notify): Change call to status_message.
11099 (read_process_output): Increase readmax to 4096. Do not increase
11100 buffer size for datagram channels (default is now large enough).
11101
11102 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11103
11104 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
11105 problem due to newly defined variable.
11106
11107 2004-06-06 Miles Bader <miles@gnu.org>
11108
11109 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
11110 immediately if non-interactive or not initialized.
11111
11112 2004-06-05 Richard M. Stallman <rms@gnu.org>
11113
11114 * minibuf.c (Fcompleting_read): Doc fix.
11115
11116 2004-06-05 Andreas Schwab <schwab@suse.de>
11117
11118 * macfns.c (x_create_tip_frame): Fix declaration after statement.
11119
11120 2004-06-05 Juanma Barranquero <lektu@terra.es>
11121
11122 * keymap.c (Fdescribe_vector): Fix docstring.
11123 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
11124
11125 2004-06-05 Miles Bader <miles@gnu.org>
11126
11127 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
11128 attributes have different values than the default face.
11129
11130 2004-06-04 Eli Zaretskii <eliz@gnu.org>
11131
11132 * xfaces.c (x_supports_face_attributes_p): Make this function
11133 conditional on HAVE_WINDOW_SYSTEM.
11134 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
11135 Don't call x_supports_face_attributes_p if it was not compiled in.
11136
11137 2004-06-04 Miles Bader <miles@gnu.org>
11138
11139 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
11140 from Ftty_supports_face_attributes_p.
11141 (x_supports_face_attributes_p): New function.
11142 (Ftty_supports_face_attributes_p): Function deleted.
11143 (Fdisplay_supports_face_attributes_p): New function.
11144 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
11145 (face_attr_equal_p): New function.
11146 (lface_equal_p): Use it.
11147
11148 2004-06-03 Juanma Barranquero <lektu@terra.es>
11149
11150 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
11151 (Vw32_color_map): Fix typo in docstring.
11152 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
11153 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
11154 Make argument names match their use in docstring.
11155
11156 2004-06-02 Juanma Barranquero <lektu@terra.es>
11157
11158 Work around bugs/problems with MinGW builds of graphics libraries
11159 called from MSVC builds of Emacs.
11160
11161 * image.c (lookup_image): Make pointer to img static.
11162 (png_read_from_memory): Disable "global" optimization.
11163
11164 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
11165
11166 * eval.c (Fcondition_case): Fix usage. Simplify.
11167
11168 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
11169
11170 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11171
11172 * macfns.c: Don't include ccl.h.
11173 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
11174 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
11175 TextUtils.h.
11176 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
11177 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
11178 display height/width.
11179 (compute_tip_xy, Vx_max_tooltip_size): Declare.
11180 (unwind_create_tip_frame, compute_tip_xy): New functions.
11181 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
11182 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
11183 and last_show_tip_args.
11184
11185 * macgui.h [!MAC_OSX]: Include Gestalt.h.
11186 (Cursor, No_Cursor): New defines.
11187 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
11188 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
11189
11190 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
11191
11192 * macterm.c: Don't include Gestalt.h.
11193 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
11194 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
11195 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
11196 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
11197 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
11198 (construct_mouse_click, XTmouse_position)
11199 (x_scroll_bar_report_motion, x_calc_absolute_position)
11200 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
11201 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
11202 (note_mouse_movement): Clear the mouse face and reset the pointer
11203 shape when the pointer goes outside the frame without grabbing.
11204 (mac_front_window): New function.
11205 (mac_window_to_frame): New macro.
11206 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
11207 (do_window_activate, do_window_deactivate, do_app_resume)
11208 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
11209 (do_zoom_window, mac_do_receive_drag, XTread_socket)
11210 (mac_check_for_quit_char): Use mac_front_window and/or
11211 mac_window_to_frame.
11212 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
11213 scroll-bar click event.
11214 (mac_define_frame_cursor): Change the pointer shape.
11215 (x_free_frame_resources): Reset tip_window to NULL when it is
11216 disposed of.
11217 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
11218 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
11219 (do_window_update): Don't do anything if the updated window is the
11220 tooltip window.
11221 (do_mouse_moved): Handle mouse movement events here (previously in
11222 XTread_socket). Clear the mouse face if
11223 dpyinfo->mouse_face_hidden is set.
11224 (do_os_event, do_events): Remove (now in XTread_socket).
11225 (XTread_socket): Immediately return if interrupt_input_blocked.
11226 Loop until all the events in the queue are processed.
11227 Rearrange codes for mouse grabbing. Add tooltip support. Include the
11228 contents of do_os_event and do_events. Remove mouse movement
11229 handling (now in do_mouse_moved). Add the case where
11230 Vmouse_highlight has an integer value.
11231 (NewMacWindow): Remove.
11232 (make_mac_frame): Do what NewMacWindow previously did. Don't do
11233 excess initializations.
11234 (make_mac_terminal_frame): Previous initializations in
11235 make_mac_frame are moved here.
11236 (mac_initialize_display_info):
11237 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
11238
11239 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
11240 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
11241
11242 2004-05-29 Richard M. Stallman <rms@gnu.org>
11243
11244 * lisp.h (truncate_undo_list): Update decl.
11245
11246 * alloc.c (undo_outer_limit): New variable.
11247 (syms_of_alloc): Defvar it.
11248 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
11249
11250 * undo.c (truncate_undo_list): New arg LIMITSIZE.
11251
11252 * alloc.c (lisp_align_malloc): Check for base == 0
11253 regardless of HAVE_POSIX_MEMALIGN.
11254 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
11255
11256 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11257
11258 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
11259 (marker_blocks_pending_free): Remove.
11260 (Fgarbage_collect): Sweep after cleaning up undo-lists.
11261 Mark the undo lists after claning them up.
11262 Don't free block in marker_blocks_pending_free.
11263 (mark_buffer): Don't mark undo_list.
11264 (gc_sweep): Sweep hash-tables and strings first.
11265 Do free marker blocks that are empty.
11266
11267 2004-05-28 Jim Blandy <jimb@redhat.com>
11268
11269 * regex.c (print_partial_compiled_pattern): Add missing 'break'
11270 after 'case wordend'. For symbeg and symend, print to stderr,
11271 like the other cases.
11272
11273 2004-05-28 Noah Friedman <friedman@splode.com>
11274
11275 * process.c (Fdelete_process): Do not call remove_process.
11276
11277 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * alloc.c (struct backtrace): Remove.
11280 (Fgarbage_collect): Use the new mark_backtrace.
11281
11282 * eval.c (mark_backtrace): New function.
11283
11284 * minibuf.c (run_exit_minibuf_hook): New function.
11285 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
11286 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
11287
11288 2004-05-27 Kim F. Storm <storm@cua.dk>
11289
11290 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
11291 over display properties, e.g. images, that replace buffer text.
11292
11293 2004-05-25 Kim F. Storm <storm@cua.dk>
11294
11295 * alloc.c (marker_blocks_pending_free): New var.
11296 (gc_sweep): Store free marker blocks on that list.
11297 (Fgarbage_collect): Free them after undo-list cleanup.
11298
11299 * process.c (wait_reading_process_input): Check connect_wait_mask
11300 before actually accepting connection in case it has already been
11301 accepted due to recursion.
11302
11303 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
11304
11305 * coding.c (Fset_safe_terminal_coding_system_internal):
11306 Set suppress_error in safe_terminal_coding, not terminal_coding.
11307
11308 2004-05-22 Richard M. Stallman <rms@gnu.org>
11309
11310 * alloc.c (Fmake_string): Doc fix.
11311
11312 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
11313 and the alist pairs too.
11314
11315 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
11316
11317 * emacs.c (main): Update copyright year.
11318
11319 * fileio.c (Fread_file_name): Expand DIR if not absolute.
11320
11321 * insdel.c (del_range_2, replace_range): Don't write an anchor
11322 if the gap is empty.
11323
11324 * xdisp.c (try_scrolling): If scroll-up-aggressively or
11325 scroll-down-aggressively is small but positive, put point
11326 near the screen edge.
11327
11328 2004-05-22 Juanma Barranquero <lektu@terra.es>
11329
11330 * keymap.c (Fdefine_key): Doc fix.
11331
11332 2004-05-22 Kim F. Storm <storm@cua.dk>
11333
11334 * alloc.c (struct backtrace): Add debug_on_exit member.
11335 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
11336 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
11337 the removed cons cells.
11338 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
11339 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
11340 any cons cells pointing to unallocated stings.
11341 Do not lisp_free any marker blocks, as there may still be pointers
11342 to them from buffer undo lists at this stage of GC.
11343
11344 * keyboard.c (struct backtrace): Add debug_on_exit member.
11345 (Fcommand_execute): Clear it.
11346
11347 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
11348
11349 * intervals.c (lookup_char_property): Do not prematurely return nil.
11350
11351 2004-05-19 Jim Blandy <jimb@redhat.com>
11352
11353 Add support for new '\_<' and '\_>' regexp operators, matching the
11354 beginning and end of symbols.
11355
11356 * regex.c (enum syntaxcode): Add Ssymbol.
11357 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
11358 (re_opcode_t): New opcodes `symbeg' and `symend'.
11359 (print_partial_compiled_pattern): Print the new opcodes properly.
11360 (regex_compile): Parse the new operators.
11361 (analyse_first): Skip sym(beg|end) (they match only the empty string).
11362 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
11363 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
11364 (re_match_2_internal): Match symbeg and symend.
11365
11366 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
11367
11368 2004-05-19 Kim F. Storm <storm@cua.dk>
11369
11370 * .gdbinit (xsymbol): Fix last change.
11371
11372 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * .gdbinit (xprintstr): New fun.
11375 (xstring, xprintsym): Use it.
11376
11377 * w32proc.c (create_child): Use INTMASK.
11378
11379 * alloc.c (Fgarbage_collect): Do all the marking before flushing
11380 unmarked elements of the undo list.
11381
11382 2004-05-18 David Ponce <david@dponce.com>
11383
11384 * print.c (print): Reset print_depth before to call print_object.
11385
11386 2004-05-18 Jason Rumney <jasonr@gnu.org>
11387
11388 * w32console.c: Prefix RIF functions with w32con_ to avoid
11389 namespace clash with functions in term.c and w32term.c.
11390
11391 * w32menu.c (add_menu_item, w32_menu_display_help)
11392 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
11393
11394 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
11395
11396 2004-05-18 Eli Zaretskii <eliz@gnu.org>
11397
11398 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
11399
11400 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
11401 with make_number.
11402 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
11403 with XINT.
11404
11405 2004-05-18 Kim F. Storm <storm@cua.dk>
11406
11407 * blockinput.h (INPUT_BLOCKED_P): New macros.
11408
11409 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
11410 (Ftop_level): Unblock input if blocked.
11411
11412 * buffer.h (GET_OVERLAYS_AT): New macro.
11413 * msdos.c (IT_note_mouse_highlight): Use it.
11414 * textprop.c (get_char_property_and_overlay): Use it.
11415 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
11416 * xfaces.c (face_at_buffer_position): Use it.
11417
11418 * print.c (print_object): Increase buf size.
11419
11420 2004-05-17 Jason Rumney <jasonr@gnu.org>
11421
11422 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
11423 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
11424 Lisp_Object using i member.
11425 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
11426 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
11427 consistently.
11428
11429 * w32proc.c (create_child): Use make_number instead of masking pid.
11430
11431 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
11432 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
11433 Use EQ to compare Lisp_Objects.
11434 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
11435
11436 * w32term.c (w32_num_mouse_buttons): Rename from
11437 Vw32_num_mouse_buttons and make it an int.
11438
11439 * w32.c (init_environment): Use it.
11440
11441 * w32fns.c (w32_wnd_proc): Likewise.
11442
11443 * w32proc.c (w32_pipe_read_delay): Rename from
11444 Vw32_pipe_read_delay and make it an int.
11445
11446 * w32.c (_sys_read_ahead): Use it.
11447
11448 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
11449
11450 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
11451
11452 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
11453 (key_event): Don't mix Lisp_Object and int.
11454
11455 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
11456
11457 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
11458 modifiers in language change event.
11459
11460 2004-05-17 Kim F. Storm <storm@cua.dk>
11461
11462 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
11463 Such objects may be freed markers which still exist on an undo list.
11464
11465 2004-05-16 Juanma Barranquero <lektu@terra.es>
11466
11467 * data.c (Fset_default): Make argument names match their use in
11468 docstring.
11469
11470 2004-05-15 Andreas Schwab <schwab@suse.de>
11471
11472 * emacs.c (gdb_array_mark_flag): Define.
11473 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
11474
11475 2004-05-15 Eli Zaretskii <eliz@gnu.org>
11476
11477 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
11478 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
11479 defined for the MS-DOS build.
11480
11481 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
11482
11483 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
11484
11485 2004-05-14 Kenichi Handa <handa@m17n.org>
11486
11487 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
11488
11489 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11490
11491 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
11492 section to frame.c section.
11493 (Fxw_display_color_p, Fx_file_dialog): Declare if
11494 HAVE_WINDOW_SYSTEM defined.
11495
11496 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
11497
11498 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
11499
11500 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
11501 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
11502 (XTread_socket): Fix int/Lisp_Object mixup.
11503 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
11504
11505 * macterm.h (struct frame, struct face, struct image)
11506 (display_x_get_resource, Fx_display_color_p)
11507 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
11508 Add prototypes.
11509
11510 2004-05-14 Kim F. Storm <storm@cua.dk>
11511
11512 * process.c (wait_reading_process_input): Make reentrant.
11513 Make Available and Connecting non-static. Save and restore value
11514 of waiting_for_user_input_p.
11515
11516 2004-05-13 Kim F. Storm <storm@cua.dk>
11517
11518 * keyboard.c (mark_kboards): Don't mark x and y members
11519 that are overloaded in selection request events.
11520
11521 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11522
11523 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
11524
11525 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
11526
11527 * window.c (Fdisplay_buffer, Fsplit_window)
11528 (split-height-threshold): Doc fix.
11529
11530 2004-05-13 Juanma Barranquero <lektu@terra.es>
11531
11532 * xfaces.c (Ftty_supports_face_attributes_p)
11533 (Finternal_copy_lisp_face): Fix typo in docstring.
11534 (Finternal_get_lisp_face_attribute): Fix docstring.
11535
11536 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11537
11538 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
11539
11540 2004-05-11 Steven Tamm <steventamm@mac.com>
11541
11542 * macfns.c (Fx_create_frame): Default to using tool-bar by
11543 setting tool-bar-lines to 1 in default-frame-alist.
11544
11545 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11546
11547 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
11548 (xpm_get_color_table_v, xpm_make_color_table_h)
11549 (xpm_put_color_table_h, xpm_get_color_table_h)
11550 (xpm_str_to_color_key, xpm_load_image, xpm_load)
11551 (syms_of_image): Support XPM on Carbon Emacs. Does not
11552 depend on libXpm, but only supports XPM version 3 without extensions.
11553
11554 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11555
11556 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
11557 instead of FRAME_X_P
11558
11559 2004-05-11 Kim F. Storm <storm@cua.dk>
11560
11561 * process.c (read_process_output): Grow decoding_buf when needed;
11562 this could cause a crash in allocate_string and compact_small_strings.
11563
11564 2004-04-29 Jim Blandy <jimb@redhat.com>
11565
11566 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
11567 against proper opcode.
11568
11569 2004-05-10 Juanma Barranquero <lektu@terra.es>
11570
11571 * process.c (Fstart_process): Fix docstring.
11572
11573 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
11574 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
11575 (Fsplit_char, Fchar_charset): Make argument names match their use
11576 in docstring.
11577
11578 2004-05-10 Richard M. Stallman <rms@gnu.org>
11579
11580 * print.c (print_preprocess): Use being_printed, loop_count and
11581 halftail to detect overdeep nesting and cyclic cdr chains.
11582
11583 2004-05-10 Andreas Schwab <schwab@suse.de>
11584
11585 * lisp.h (Fmake_symbolic_link): Declare.
11586
11587 * fileio.c (Frename_file): Remove extra argument in call to
11588 Fmake_symbolic_link.
11589
11590 2004-05-10 Kim F. Storm <storm@cua.dk>
11591
11592 * xdisp.c (calc_line_height_property): Use string position when
11593 object is a string.
11594
11595 2004-05-10 Kenichi Handa <handa@m17n.org>
11596
11597 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
11598 inhibit-modification-hooks to t temporarily before calling
11599 Ferase_buffer.
11600
11601 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
11602 inhibit-modification-hooks to t temporarily before calling
11603 Ferase_buffer.
11604
11605 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
11606 inhibit-modification-hooks to t temporarily before calling
11607 Ferase_buffer.
11608
11609 * fns.c (count_combining): Delete it.
11610 (concat): Don't check combining bytes.
11611
11612 2004-05-09 Jason Rumney <jasonr@gnu.org>
11613
11614 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
11615 (globals_of_w32fns): Set it.
11616
11617 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
11618
11619 * data.c (Fquo): Simplify.
11620
11621 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
11622
11623 * data.c (Fquo): If any argument is float, do the computation in
11624 floating point.
11625
11626 2004-05-08 Juanma Barranquero <lektu@terra.es>
11627
11628 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
11629 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
11630 Fix spelling of Emacs on docstring.
11631 (Fset_process_coding_system, Fprocess_coding_system)
11632 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
11633 Make argument names match their use in docstring.
11634 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
11635 Fix docstring.
11636
11637 * editfns.c (Finsert_buffer_substring): Make argument names match their
11638 use in docstring.
11639
11640 * syntax.c (Fmodify_syntax_entry): Fix docstring.
11641
11642 2004-05-07 Steven Tamm <steventamm@mac.com>
11643
11644 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
11645 around call to ReceiveEvent to avoid certain crashes.
11646
11647 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11648
11649 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
11650 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
11651 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
11652 Save/restore the current graphics port and device handle when
11653 drawing into an offscreen graphics world.
11654
11655 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
11656 (gif_load): Likewise.
11657
11658 2004-05-07 Juanma Barranquero <lektu@terra.es>
11659
11660 * window.c (Fset_window_buffer): Fix docstring.
11661
11662 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
11663
11664 * emacs.c (main) [VMS]: Fix var ref.
11665
11666 2004-05-06 Romain Francoise <romain@orebokech.com>
11667
11668 * data.c (Fsetq_default): Fix docstring.
11669
11670 2004-05-06 Jason Rumney <jasonr@gnu.org>
11671
11672 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
11673 to avoid name clash.
11674
11675 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11676
11677 * fileio.c (barf_or_query_if_file_exists): Use lstat.
11678 (Frename_file): Handle renaming of symlinks across file systems.
11679 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
11680
11681 2004-05-04 Kim F. Storm <storm@cua.dk>
11682
11683 * xdisp.c (Qtotal): New var.
11684 (syms_of_xdisp): Intern and staticpro it.
11685 (calc_line_height_property): New arg total. Set it if
11686 line-spacing property has format (total . VALUE).
11687 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
11688 Handle total line-spacing property.
11689
11690 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11691
11692 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
11693 "under" scroll bar when size/position changes.
11694
11695 2004-05-03 Jason Rumney <jasonr@gnu.org>
11696
11697 * makefile.nt: Remove.
11698
11699 2004-05-02 Eli Zaretskii <eliz@gnu.org>
11700
11701 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
11702 Avoid compiler warnings.
11703
11704 * Makefile.in (region-cache.o): Depend on config.h.
11705
11706 2004-05-02 Romain Francoise <romain@orebokech.com>
11707
11708 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
11709 with continuation lines, too.
11710
11711 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
11712
11713 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
11714
11715 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
11716
11717 * xdisp.c (calc_line_height_property): YAILOM (yet another
11718 int/Lisp_Object mixup).
11719
11720 2004-05-01 Eli Zaretskii <eliz@gnu.org>
11721
11722 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
11723 undo bad effect of pack(4) in some versions of system headers.
11724
11725 2004-05-01 Jason Rumney <jasonr@gnu.org>
11726
11727 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
11728
11729 2004-04-30 Kim F. Storm <storm@cua.dk>
11730
11731 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
11732 (syms_of_buffer) <cursor-type>: Doc fix.
11733
11734 * dispextern.h (struct it): Remove member use_default_face.
11735 Add members override_ascent, override_descent, override_boff.
11736
11737 * xdisp.c (init_iterator): Handle line-spacing float value.
11738 Initialize override_ascent member.
11739 (append_space_for_newline): Reset override_ascent.
11740 Remove use_default_face.
11741 (calc_line_height_property): New function to calculate value of
11742 line-height and line-spacing properties. Look at overlays, too.
11743 Set override_ascent, override_descent, override_boff members when
11744 using another face than the current face. Float values are now
11745 relative to the frame default font, by default; accept a cons
11746 of ratio and face name to specify value relative to a specific face.
11747 (x_produce_glyphs): Use calc_line_height_property.
11748 Use override_ascent etc. when set to handle different face heights.
11749 A negative line-spacing property value is interpreted as a total
11750 line height, rather than inter-line spacing.
11751 (note_mouse_highlight): Allocate room for 40 overlays initially.
11752
11753 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
11754
11755 * data.c (Fsubr_name): New fun.
11756 (syms_of_data): Defsubr it.
11757
11758 2004-04-29 Kim F. Storm <storm@cua.dk>
11759
11760 * xdisp.c (null_glyph_slice): New var.
11761 (append_glyph, append_composite_glyph, append_stretch_glyph):
11762 Use it to initialize glyph slice.
11763
11764 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
11765
11766 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
11767 (on_hot_spot_p): Make sure we always return a value.
11768 (Flookup_image_map): Remove unused var ix and iy.
11769 (note_mode_line_or_margin_highlight): Remove unused var `image'.
11770
11771 2004-04-27 Eli Zaretskii <eliz@gnu.org>
11772
11773 * msdos.c (init_environment): If one of the TMP... environment
11774 variables is set to a drive letter without a trailing slash,
11775 append a slash.
11776
11777 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
11778
11779 * editfns.c (lisp_time_argument): Provide externally.
11780
11781 * fileio.c (Fset_file_times): New function.
11782 (syms_of_fileio): Intern and staticpro it.
11783
11784 2004-04-27 Kim F. Storm <storm@cua.dk>
11785
11786 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
11787 header line strings.
11788
11789 * dispextern.h (struct it): New member use_default_face.
11790
11791 * xdisp.c (Qline_height): New variable.
11792 (syms_of_xdisp): Intern and staticpro it.
11793 (append_space_for_newline): Partially undo 2004-04-25 change;
11794 add default_face_p arg, and restore callers.
11795 Clear it->use_default_face after use.
11796 (x_produce_glyphs): Set default font for ascii char if
11797 it->use_default_font is set. Change line-spacing property to set
11798 just extra line spacing. Handle new line-height property.
11799
11800 2004-04-26 Andreas Schwab <schwab@suse.de>
11801
11802 * print.c (print_object): Print non-ascii characters in bool
11803 vector representation as octal escapes.
11804
11805 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
11806 * print.c (print_object): Use it instead of BITS_PER_CHAR for
11807 bool vectors.
11808 * lread.c (read1): Likewise.
11809 * alloc.c (Fmake_bool_vector): Likewise.
11810 * data.c (Faref, Faset): Likewise.
11811 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
11812 (mapcar1): Likewise.
11813
11814 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11815
11816 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
11817
11818 2004-04-26 Miles Bader <miles@gnu.org>
11819
11820 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
11821
11822 2004-04-26 Juanma Barranquero <lektu@terra.es>
11823
11824 * buffer.c (Fpop_to_buffer): Fix docstring.
11825
11826 2004-04-26 Steven Tamm <steventamm@mac.com>
11827
11828 * lread.c (init_lread): Don't display missing lisp directory
11829 warnings with Carbon Emacs because self-contained bundled Emacs
11830 may be built without correct installation path.
11831
11832 2004-04-25 Kim F. Storm <storm@cua.dk>
11833
11834 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11835
11836 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
11837
11838 * xdisp.c (append_space_for_newline): Rename from append_space.
11839 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
11840 (x_produce_glyphs): Handle line-spacing property on newline char.
11841 If value is t, adjust ascent and descent to fit current row height.
11842 If value is an integer or float, set extra_line_spacing to integer
11843 value, or to float value x current line height.
11844
11845 2004-04-23 Kenichi Handa <handa@m17n.org>
11846
11847 * fontset.c (Finternal_char_font): If POSITION is nil, return
11848 font for displaying CH with the default face.
11849
11850 2004-04-23 Juanma Barranquero <lektu@terra.es>
11851
11852 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
11853
11854 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11855
11856 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
11857 Don't make assumptions about the relative place of i and val.
11858 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
11859
11860 2004-04-21 Kim F. Storm <storm@cua.dk>
11861
11862 * dispextern.h (struct glyph_slice): New struct.
11863 (struct glyph): New member slice.
11864 (GLYPH_SLICE_EQUAL_P): New macro.
11865 (GLYPH_EQUAL_P): Use it.
11866 (struct glyph_string): New member slice.
11867 (struct it_slice): New struct.
11868 (struct it): New member slice, add member to stack too.
11869 New member constrain_row_ascent_descent_p.
11870 (image_ascent): Add prototype.
11871
11872 * dispnew.c (buffer_posn_from_coords): Return full image width
11873 and height even for image slices (posn is relative to full image).
11874 (marginal_area_string): Adjust x0,y0 for image slice.
11875
11876 * image.c (image_ascent): Add slice arg; calculate ascent for
11877 image slice (or full image).
11878
11879 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
11880 (syms_of_keyboard): Defsubr them.
11881
11882 * lisp.h (pos_visible_p): Fix prototype.
11883
11884 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11885 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11886 (x_draw_image_foreground, x_draw_image_relief)
11887 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11888 Draw sliced images.
11889
11890 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
11891 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11892 (x_draw_image_foreground, x_draw_image_relief)
11893 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
11894 Draw sliced images.
11895
11896 * w32term.h (image_ascent): Remove prototype.
11897
11898 * window.c (Fpos_visible_in_window_p): Return pixel position if
11899 PARTIALLY arg is non-nil. Simplify. Doc fix.
11900 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
11901 to return/set vscroll in pixels.
11902
11903 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
11904
11905 * xdisp.c (Qslice): New variable.
11906 (syms_of_xdisp): Intern and staticpro it.
11907 (pos_visible_p): Return pixel position in new x and y args.
11908 (init_iterator): Reset it->slice info.
11909 (handle_display_prop): Parse (slice ...) property.
11910 (push_it, pop_it): Save/restore slice info.
11911 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
11912 force repositioning of tall row if window is vscrolled, as that
11913 would reset vscroll.
11914 (append_space): Set it->constrain_row_ascent_descent_p to avoid
11915 increasing row height if row is non-empty.
11916 (fill_image_glyph_string): Copy slice info.
11917 (take_vertical_position_into_account): Simplify.
11918 (produce_image_glyph): Handle iterator slice info, setup glyph
11919 slice info. Do not force minimum line height.
11920 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
11921 do not increase height (ascent/descent) of non-empty row when
11922 adding normal character glyph; instead reduce glyph ascent/descent
11923 appropriately; if row is higher than current glyph, adjust glyph
11924 descent/ascent to reposition glyph within the existing row.
11925 Likewise, when char is newline, only set ascent/descent if row is
11926 currently empty.
11927 (note_mouse_highlight): Handle hotspots with sliced image.
11928
11929 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
11930 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
11931 (x_draw_image_foreground, x_draw_image_relief)
11932 (x_draw_image_foreground_1, x_draw_image_glyph_string):
11933 Draw sliced images.
11934
11935 * xterm.h (image_ascent): Remove prototype.
11936
11937 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
11940
11941 2004-04-20 John Paul Wallington <jpw@gnu.org>
11942
11943 * fns.c (Fassoc, Feql): Fix indentation.
11944
11945 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
11946
11947 2004-04-19 John Paul Wallington <jpw@gnu.org>
11948
11949 * fns.c (Feql): New function.
11950 (syms_of_fns): Defsubr it.
11951
11952 2004-04-18 Jason Rumney <jasonr@gnu.org>
11953
11954 * w32select.c (Fw32_set_clipboard_data): Get sequence number
11955 after closing the clipboard.
11956
11957 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
11958
11959 * buffer.c (Fbuffer_base_buffer): Doc fix.
11960
11961 2004-04-17 Kim F. Storm <storm@cua.dk>
11962
11963 * keymap.c (Fkey_description): Add optional PREFIX arg.
11964 Combine prefix with KEYS to make up the full key sequence to describe.
11965 Correlate meta_prefix_char and following (simple) key to describe
11966 as meta modifier. All callers changed.
11967 (describe_map): Rename arg `keys' to `prefix'. Remove local
11968 `elt_prefix' var. Use Fkey_description with prefix instead of
11969 elt_prefix combined with Fsingle_key_description.
11970 (describe_vector): Declare static. Replace arg `elt_prefix' with
11971 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
11972 if !KEYMAP_P. Use Fkey_description with prefix instead of
11973 Fsingle_key_description.
11974
11975 * keymap.h (Fkey_description): Fix prototype.
11976 (describe_vector): Remove prototype.
11977
11978 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
11979
11980 * image.c (PNG_BG_COLOR_SHIFT): Remove.
11981 (png_load): Fix calculation of transparent background color on X
11982 and W32 platforms.
11983
11984 2004-04-16 Juanma Barranquero <lektu@terra.es>
11985
11986 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
11987 not too large before computing how much to scroll.
11988
11989 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
11990
11991 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
11992
11993 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
11994
11995 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
11996 Add hyperlink to Elisp manual to the docstring.
11997
11998 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
11999
12000 * callint.c (fix_command): Use XDCR.
12001
12002 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
12003
12004 * window.c (Fget_lru_window): Doc fix.
12005
12006 2004-04-14 Kim F. Storm <storm@cua.dk>
12007
12008 * editfns.c (Fformat): Fix allocation size of precision array.
12009
12010 * dispnew.c (update_window): Only set changed_p if
12011 scrolling_window actually did scroll.
12012 (scrolling_window): Only return 1 if we actually did scroll.
12013
12014 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
12015 height to glyph height when cursor row is not fully visible.
12016 (make_cursor_line_fully_visible): Add FORCE_P arg to return
12017 failure in case row is higher than window. Callers changed.
12018 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
12019 Try to scroll partially visible, higher-than-window cursor row.
12020 (redisplay_window): Always try to scroll partially visible,
12021 higher-than-window cursor row - both initially and again with
12022 centering_position = 0.
12023 Clear desired matrix before retrying with centering_position = 0.
12024
12025 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12026
12027 * syntax.c (scan_lists): Simplify backward string scan.
12028 Fix off-by-one boundary check for string and comment fences.
12029
12030 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
12031
12032 * sheap.c, unexcw.c: New files.
12033
12034 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
12035
12036 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
12037 base buffer has been killed. Correct the error message if the
12038 base buffer does not exist.
12039
12040 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
12041
12042 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
12043 Cygwin itself. Add support for Xaw3d scrollbars.
12044
12045 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
12046
12047 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
12048
12049 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
12050 before Cygwin unexec.
12051
12052 * Makefile.in: Link changes for Cygwin unexec() support.
12053
12054 2004-04-12 Andreas Schwab <schwab@suse.de>
12055
12056 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
12057
12058 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
12059
12060 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
12061 IGNORE argument equals NAME. Doc fix.
12062
12063 2004-04-11 Masatake YAMATO <jet@gyve.org>
12064
12065 * buffer.c (fix_start_end_in_overlays): Make overlays
12066 empty if they are backwards.
12067
12068 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * xfaces.c (face_color_supported_p): Fix compilation without X11.
12071
12072 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
12073
12074 * doc.c (Fsnarf_documentation): Ignore new file name entries.
12075
12076 2004-04-06 Kim F. Storm <storm@cua.dk>
12077
12078 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12079 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
12080
12081 * w32term.c (w32_read_socket): Set mouse_face_hidden after
12082 clearing highlight.
12083
12084 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12085
12086 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
12087 clearing highlight.
12088
12089 * indent.c (vmotion): Do not reserve one column for continuation
12090 marks on window frames.
12091
12092 2004-04-04 Eli Zaretskii <eliz@gnu.org>
12093
12094 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
12095 from GCC.
12096
12097 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * .gdbinit-union: Remove.
12100
12101 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
12102 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
12103 ($nonvalbits): Remove.
12104 ($valmask): Set it by calling xreload to avoid redundancy.
12105
12106 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
12107 (gdb_emacs_intbits): Remove.
12108
12109 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12110
12111 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
12112
12113 2004-03-30 Kenichi Handa <handa@m17n.org>
12114
12115 * editfns.c (Fformat): Fix initialization of the array info.
12116
12117 2004-03-30 Kim F. Storm <storm@cua.dk>
12118
12119 * xterm.c (x_mouse_click_focus_ignore_position): New var.
12120 (syms_of_xterm): DEFVAR_BOOL it.
12121 (ignore_next_mouse_click_timeout): New var.
12122 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
12123 Use it to filter mouse clicks following focus event.
12124
12125 2004-03-29 David Ponce <david@dponce.com>
12126
12127 * callint.c (Fcall_interactively): Fix last change.
12128
12129 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12130
12131 * eval.c (Fcommandp): Simplify.
12132
12133 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
12134 Extend to handle all kinds of functions.
12135
12136 * lisp.h (Finteractive_form): Declare.
12137
12138 * callint.c (Fcall_interactively): Use it.
12139
12140 2004-03-26 Kim F. Storm <storm@cua.dk>
12141
12142 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
12143 to catch errors in calc_pixel_width_or_height during redisplay.
12144
12145 2004-03-26 Masatake YAMATO <jet@gyve.org>
12146
12147 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
12148
12149 * lisp.h (fix_start_end_in_overlays): Likewise.
12150
12151 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
12152
12153 * editfns.c (Ftranspose_regions): Likewise.
12154
12155 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12156
12157 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
12158
12159 2004-03-19 Richard M. Stallman <rms@gnu.org>
12160
12161 * s/sol2-6.h: Delete previous change.
12162
12163 2004-03-19 Kim F. Storm <storm@cua.dk>
12164
12165 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
12166 to_charpos corresponds to newline in right fringe. Use local
12167 BUFFER_POS_REACHED_P macro.
12168
12169 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12170
12171 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
12172 to compile on non-window system.
12173
12174 2004-03-19 Kim F. Storm <storm@cua.dk>
12175
12176 * dispextern.h (calc_pixel_width_or_height): Add prototype.
12177
12178 * image.c (Qcenter): Move to xdisp.c.
12179
12180 * xdisp.c (Qcenter): Declare here.
12181 (syms_of_xdisp): Intern and staticpro it.
12182 (handle_single_display_prop): Allow space display property on all
12183 platforms.
12184 (display_mode_line): Set mode_line_p before displaying line.
12185 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
12186 handling. Remove complex cases for fringes and scroll-bars.
12187 Add left, right, and center alignment positions. Add text (area)
12188 width/height. Return width or height for image specs.
12189 (produce_stretch_glyph): Improve handling of :align-to. Is now
12190 relative to left of text area by default, but other base offsets
12191 can be specified -- also for text lines.
12192
12193 * term.c (produce_glyphs): Handle IT_STRETCH.
12194 (produce_stretch_glyph): New function to handle space width and
12195 align-to display properties on non-window systems.
12196
12197 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12198
12199 * fileio.c (Fread_file_name): Set completion-ignore-case for
12200 case-insensitive systems.
12201
12202 2004-03-14 Masatake YAMATO <jet@gyve.org>
12203
12204 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
12205 when keymap and cursor are setup.
12206
12207 2004-03-14 Steven Tamm <steventamm@mac.com>
12208
12209 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
12210
12211 2004-03-14 Kim F. Storm <storm@cua.dk>
12212
12213 * dispextern.h (x_find_image_file): Add prototype.
12214
12215 * image.c (x_find_image_file): Make extern.
12216
12217 * xfns.c (x_find_image_file): Remove prototype.
12218
12219 2004-03-13 Eli Zaretskii <eliz@gnu.org>
12220
12221 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
12222
12223 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
12224
12225 2004-03-12 Richard M. Stallman <rms@gnu.org>
12226
12227 * fns.c (internal_equal): New arg PROPS controls comparing
12228 text properties. All callers changed.
12229 (Fequal_including_properties): New function.
12230 (syms_of_fns): defsubr it.
12231
12232 2004-03-12 Kim F. Storm <storm@cua.dk>
12233
12234 Fix image support on MAC. From YAMAMOTO Mitsuharu.
12235
12236 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
12237 (image_background, image_background_transparent): Fix prototypes.
12238
12239 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
12240
12241 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
12242 (x_query_font, x_find_ccl_program, x_set_window_size)
12243 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12244 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12245 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
12246
12247 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
12248 (x_query_font, x_find_ccl_program, x_set_window_size)
12249 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12250 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12251 (mac_draw_line_to_pixmap): Add prototypes.
12252
12253 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12254
12255 * macterm.c (XTread_socket): Fix mouse click on tool bar.
12256
12257 2004-03-11 Kim F. Storm <storm@cua.dk>
12258
12259 * dispextern.h: Move image related prototypes from xfns.c section
12260 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
12261 HAVE_X_WINDOWS.
12262
12263 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
12264 Move gtkutil.o to new GTK_OBJ list.
12265 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
12266 (GTK_OBJ) [USE_GTK]: New declaration.
12267 (obj): Add $(GTK_OBJ) to list.
12268
12269 2004-03-11 Steven Tamm <steventamm@mac.com>
12270
12271 * image.c [MAC_OSX]: Include sys/stat.h.
12272
12273 * macfns.c (syms_of_macfns): Remove definitions of things now
12274 defined in image.c.
12275
12276 2004-03-11 Kim F. Storm <storm@cua.dk>
12277
12278 The following changes consolidates the identical/similar image
12279 support code previously found in xfns.c, w32fns.c, and macfns.c
12280 into a new file image.c.
12281
12282 * makefile.w32-in (OBJ1): Add image.o.
12283 ($(BLD)/image.$(O)): Add dependencies.
12284
12285 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
12286 (image.o): Add dependencies.
12287
12288 * image.c: New file with consolidated image support code.
12289 (COLOR_TABLE_SUPPORT): New define to control whether
12290 color table support is available (X only).
12291 (Bitmap_Record): Common name for x_bitmap_record,
12292 w32_bitmap_record, and mac_bitmap_record.
12293 (XImagePtr): Common name for pointer to XImage or equivalent.
12294 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
12295 to XImagePtr on X+MAC, and to HDC on W32.
12296 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
12297 (NO_PIXMAP): Common name for "None" or equivalent.
12298 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
12299 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
12300 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
12301 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
12302 Define with suitable equivalents on W32 and MAC for code sharing.
12303 (XDrawLine): Define on MAC for code sharing.
12304 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
12305 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
12306 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12307 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12308 (x_reference_bitmap, x_create_bitmap_from_data)
12309 (x_create_bitmap_from_file, x_destroy_bitmap)
12310 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12311 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12312 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12313 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12314 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12315 (define_image_type, lookup_image_type, valid_image_p)
12316 (image_error, enum image_value_type, struct image_keyword)
12317 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12318 (make_image, free_image, prepare_image_for_display, image_ascent)
12319 (four_corners_best, image_background, image_background_transparent)
12320 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12321 (make_image_cache, free_image_cache, clear_image_cache)
12322 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12323 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12324 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12325 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
12326 (init_image_func_pointer, image_load_quartz2d)
12327 (struct ct_color, init_color_table, free_color_table)
12328 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12329 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12330 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12331 (x_disable_image, x_build_heuristic_mask)
12332 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12333 (TIFF support, GIF support, Ghostscript support): Consolidate image
12334 code from xfns.c, w32fns.c, and macfns.c.
12335 (syms_of_image): Consolidate image related symbol setup here.
12336 (init_image): Consolidate image related initializations here.
12337
12338 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
12339 and init_image. Remove call to init_xfns.
12340
12341 * macterm.h (struct mac_bitmap_record): Add file member.
12342 Not currently used, but simplifies code sharing.
12343
12344 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12345 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12346 (x_reference_bitmap, x_create_bitmap_from_data)
12347 (x_create_bitmap_from_file, x_destroy_bitmap)
12348 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12349 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12350 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12351 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12352 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12353 (define_image_type, lookup_image_type, valid_image_p)
12354 (image_error, enum image_value_type, struct image_keyword)
12355 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12356 (make_image, free_image, prepare_image_for_display, image_ascent)
12357 (four_corners_best, image_background, image_background_transparent)
12358 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12359 (make_image_cache, free_image_cache, clear_image_cache)
12360 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12361 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12362 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12363 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
12364 (init_image_func_pointer, image_load_quartz2d)
12365 (struct ct_color, init_color_table, free_color_table)
12366 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12367 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12368 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12369 (x_disable_image, x_build_heuristic_mask)
12370 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12371 (TIFF support, GIF support, Ghostscript support): Merge with image
12372 code from xfns.c and macfns.c into image.c.
12373 (syms_of_xfns): Move image related symbols to image.c.
12374 (init_external_image_libraries, init_xfns): Remove; initialization
12375 moved to init_image in image.c.
12376
12377 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12378 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12379 (x_reference_bitmap, x_create_bitmap_from_data)
12380 (x_create_bitmap_from_file, x_destroy_bitmap)
12381 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12382 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12383 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12384 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12385 (define_image_type, lookup_image_type, valid_image_p)
12386 (image_error, enum image_value_type, struct image_keyword)
12387 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12388 (make_image, free_image, prepare_image_for_display, image_ascent)
12389 (four_corners_best, image_background, image_background_transparent)
12390 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12391 (make_image_cache, free_image_cache, clear_image_cache)
12392 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12393 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12394 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12395 (struct ct_color, init_color_table, free_color_table)
12396 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12397 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12398 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12399 (x_disable_image, x_build_heuristic_mask)
12400 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12401 (TIFF support, GIF support, Ghostscript support): Merge with image
12402 code from xfns.c and macfns.c into image.c.
12403 (syms_of_xfns): Move image related symbols to image.c.
12404 (init_external_image_libraries, init_xfns): Remove; initialization
12405 moved to init_image in image.c.
12406
12407 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
12408 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12409 (x_reference_bitmap, x_create_bitmap_from_data)
12410 (x_create_bitmap_from_file, x_destroy_bitmap)
12411 (x_destroy_all_bitmaps, x_create_bitmap_mask)
12412 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
12413 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
12414 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
12415 (define_image_type, lookup_image_type, valid_image_p)
12416 (image_error, enum image_value_type, struct image_keyword)
12417 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
12418 (make_image, free_image, prepare_image_for_display, image_ascent)
12419 (four_corners_best, image_background, image_background_transparent)
12420 (x_clear_image_1, x_clear_image, x_alloc_image_color)
12421 (make_image_cache, free_image_cache, clear_image_cache)
12422 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
12423 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
12424 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
12425 (struct ct_color, init_color_table, free_color_table)
12426 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
12427 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
12428 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
12429 (x_disable_image, x_build_heuristic_mask)
12430 (XBM support, XPM support, PBM support, PNG support, JPEG support)
12431 (TIFF support, GIF support, Ghostscript support): Merge with
12432 w32fns.c and macfns.c image code into image.c.
12433 (syms_of_xfns): Move image related symbols to image.c.
12434 (init_xfns): Remove; initialization moved to init_image in image.c.
12435
12436 * lisp.h (syms_of_image, init_image): Add protoypes.
12437 (init_xfns): Remove prototype.
12438
12439 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12440 (x_reference_bitmap, x_create_bitmap_from_data)
12441 (x_create_bitmap_from_file, x_destroy_bitmap)
12442 (x_create_bitmap_mask): Move prototypes from dispextern.h.
12443 (gamma_correct) [MAC_OS]: Add prototype.
12444
12445 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
12446 (x_reference_bitmap, x_create_bitmap_from_data)
12447 (x_create_bitmap_from_file, x_destroy_bitmap)
12448 (x_create_bitmap_mask): Move prototypes to dispextern.h.
12449
12450 2004-03-09 Kenichi Handa <handa@etlken2>
12451
12452 * coding.c (decode_coding_emacs_mule): Handle insufficent source
12453 correctly.
12454
12455 2004-03-04 Richard M. Stallman <rms@gnu.org>
12456
12457 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
12458
12459 * window.c (Fdisplay_buffer): Doc fix.
12460
12461 * buffer.c (Fpop_to_buffer): Doc fix.
12462
12463 2004-03-03 Kim F. Storm <storm@cua.dk>
12464
12465 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
12466
12467 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
12470
12471 2004-03-02 Richard M. Stallman <rms@gnu.org>
12472
12473 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
12474
12475 2004-03-02 Kenichi Handa <handa@m17n.org>
12476
12477 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
12478
12479 2004-03-02 Kim F. Storm <storm@cua.dk>
12480
12481 * window.h (struct window): New member overlay_arrow_bitmap.
12482
12483 * window.c (make_window): Initialize overlay_arrow_bitmap.
12484
12485 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
12486 implement and integrate multiple overlay arrows with redisplay.
12487 (syms_of_xdisp): DEFVAR_LISP and initialize it.
12488 (last_arrow_position, last_arrow_string): Replace by properties.
12489 (Qlast_arrow_position, Qlast_arrow_string)
12490 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
12491 (syms_of_xdisp): Intern and staticpro them.
12492 (overlay_arrow_string_or_property, update_overlay_arrows)
12493 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
12494 (overlay_arrow_at_row): New functions for multiple overlay arrows.
12495 (redisplay_internal): Use them instead of directly accessing
12496 Voverlay_arrow_position etc. for multiple overlay arrows.
12497 (mark_window_display_accurate): Use update_overlay_arrows.
12498 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
12499 (try_window_id): Use overlay_arrows_changed_p.
12500 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
12501 (display_line): Use overlay_arrow_at_row to check multiple
12502 overlay arrows, and get relevant overlay-arrow-string and
12503 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
12504 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
12505 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
12506
12507 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
12508 (update_window_fringes): Remove unused code.
12509
12510 2004-03-01 Jason Rumney <jasonr@gnu.org>
12511
12512 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
12513
12514 2004-03-01 Juanma Barranquero <lektu@terra.es>
12515
12516 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
12517
12518 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
12519
12520 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12521
12522 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
12523 how many colors can be displayed.
12524
12525 2004-03-01 Kenichi Handa <handa@m17n.org>
12526
12527 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
12528 correctly.
12529
12530 2004-02-28 Kim F. Storm <storm@cua.dk>
12531
12532 * dispnew.c (update_window): Update header line also if there are
12533 no other changes in window (move code after set_cursor label).
12534
12535 * lisp.h (mark_window_display_accurate): Remove prototype.
12536
12537 * window.c (window_loop, Fforce_window_update): Force mode line
12538 updates by setting prevent_redisplay_optimizations_p and
12539 update_mode_lines.
12540
12541 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12542
12543 * xfns.c (x_window): Fix indentation.
12544
12545 * xterm.c (x_calc_absolute_position): Call x_real_positions
12546 to get WM window sizes and use those to calculate position.
12547 (x_set_offset): Remove code commented out.
12548
12549 2004-02-28 Miles Bader <miles@gnu.org>
12550
12551 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
12552
12553 2004-02-28 Kim F. Storm <storm@cua.dk>
12554
12555 * keyboard.c (kbd_buffer_store_event_hold): New function to store
12556 an event into kbd fifo, but with special handling of quit event;
12557 a quit event is saved for later, and further events are discarded
12558 until the saved quit event has been processed.
12559 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
12560 (gen_help_event): Store help event in kbd fifo.
12561 (NREAD_INPUT_EVENTS): Remove.
12562 (read_avail_input): Adapt to new read_socket_hook interface.
12563 Remove allocation and initialization of local input_event buffer,
12564 as read_socket_hook stores events directly in fifo. Allocate and
12565 initialize local hold_quit event to handle postponed quit event
12566 (and store it if set by kbd_buffer_store_event_hold).
12567
12568 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
12569 (gen_help_event): Fix prototype.
12570
12571 * macterm.c (XTread_socket): Remove bufp_r and
12572 numcharsp args. Add hold_quit arg.
12573 Rework to use just one, local, inev input_event. Store inev
12574 directly in fifo using kbd_buffer_store_event_hold.
12575
12576 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
12577 (read_input_waiting): Adapt to new read_socket_hook interface.
12578 Remove allocation and initialization of local input_event buffer,
12579 as read_socket_hook stores events directly in fifo. Allocate and
12580 initialize local hold_quit event to handle postponed quit event
12581 (and store it if set by kbd_buffer_store_event_hold).
12582
12583 * term.c (read_socket_hook): Fix arg list.
12584
12585 * termhooks.h (read_socket_hook): Fix prototype.
12586
12587 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
12588 numcharsp args. Add hold_quit arg.
12589 Rework to use just one, local, inev input_event. Store inev
12590 directly in fifo using kbd_buffer_store_event_hold.
12591
12592 * w32inevt.h (w32_console_mouse_position): Fix prototype.
12593
12594 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
12595 Add hold_quit arg. Rework to use just one, local, inev
12596 input_event. Store inev directly in fifo using
12597 kbd_buffer_store_event_hold. Update count in one place.
12598 Postpone call to gen_help_event until inev is stored; use new
12599 local do_help for this.
12600 Remove local emacs_event in handing of ButtonPress event; just use
12601 inev instead (so no reason to copy it later).
12602
12603 * xsmfns.c (x_session_check_input): Remove numchars arg.
12604
12605 * xterm.c (x_focus_changed, x_detect_focus_change):
12606 Remove numchars arg. Always store event into bufp arg.
12607 Return nothing. Callers changed accordingly.
12608 (glyph_rect): Simplify.
12609 (STORE_KEYSYM_FOR_DEBUG): New macro.
12610 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
12611 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
12612 (current_hold_quit) [USE_GTK]: Add.
12613 (event_handler_gdk): Adapt to new handle_one_xevent.
12614 (handle_one_xevent): Remove bufp_r and numcharsp args.
12615 Add hold_quit arg. Rework to use just one, local, inev
12616 input_event. Store inev directly in fifo using
12617 kbd_buffer_store_event_hold. Update count in one place.
12618 Postpone call to gen_help_event until inev is stored; use new
12619 local do_help for this.
12620 Simplify handling of keysyms (consolidate common code). Fix bug
12621 where count was updated with nchars instead of nbytes.
12622 Remove local emacs_event in handing of ButtonPress event; just use
12623 inev instead (so no reason to copy it later).
12624 Remove `out' label. Rename label `ret' to `done'; add various
12625 `goto done' to clarify code flow in deeply nested blocks.
12626 (x_dispatch_event): Simplify as handle_one_xevent now calls
12627 kbd_buffer_store_event itself.
12628 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
12629 arg. Call handle_one_xevent with new arglist. Store event from
12630 x_session_check_input in fifo.
12631 [USE_GTK]: Setup current_hold_quit.
12632 Decrement handling_signal before unblocking input.
12633 (x_initialize) [USE_GTK]: Initialize current_count.
12634
12635 * xterm.h (x_session_check_input): Fix prototype.
12636
12637 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12638
12639 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
12640
12641 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
12642 macgui.h).
12643
12644 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
12645
12646 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
12647 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
12648 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
12649 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
12650 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
12651 (Bitmap): Remove typedef.
12652 (Pixmap): Change int to GWorldPtr.
12653
12654 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12655
12656 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12657 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
12658 New #define to extract 16-bit depth color components from unsigned
12659 long representation.
12660 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
12661 colors used for masks.
12662 (struct mac_display_info): Add color_p. Remove n_cbits.
12663
12664 * macfns.c: Include sys/types.h and sys/stat.h.
12665 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
12666 Include QuickTime/QuickTime.h.
12667 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12668 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
12669 functions defined in macterm.c.
12670 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
12671 (ZPixmap): New #define for compatibility with xfns.c.
12672 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12673 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12674 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
12675 New functions.
12676 (four_corners_best, x_create_x_image_and_pixmap)
12677 (x_destroy_x_image, unwind_create_frame, x_disable_image)
12678 (x_edge_detection, init_color_table, colors_in_color_table)
12679 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
12680 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
12681 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
12682 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
12683 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
12684 long mixup.
12685 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
12686 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
12687 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
12688 (x_set_cursor_type, Fxw_color_values, valid_image_p)
12689 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
12690 (x_alloc_image_color, clear_image_cache, lookup_image)
12691 (x_find_image_file, xbm_read_bitmap_file_data)
12692 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
12693 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
12694 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
12695 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
12696 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
12697 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
12698 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
12699 #if 0.
12700 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
12701 #if 0. Free white_relief.gc and black_relief.gc.
12702 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
12703 New functions (from xfns.c).
12704 (Fx_create_frame): Record unwind_create_frame.
12705 (Fxw_display_color_p): Use dpyinfo->color_p.
12706 (Fx_display_grayscale_p, Fx_display_planes): Don't use
12707 dpyinfo->n_cbits.
12708 (Fx_display_color_cells): Use dpyinfo->n_planes;
12709 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
12710 (Qheuristic, cross_disabled_images, emboss_matrix)
12711 (laplace_matrix): New variables (from xfns.c).
12712 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
12713 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
12714 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
12715 (image_background_transparent): New function (from xfns.c).
12716 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12717 (image_load_quicktime): Add declaration.
12718 [MAC_OSX] (image_load_quartz2d): Likewise.
12719 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
12720 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
12721 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
12722 (xbm_load_image_from_file, x_laplace_read_row)
12723 (x_laplace_write_row, pbm_read_file): Remove functions.
12724 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
12725 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
12726 (colors_in_color_table): Sync with xfns.c (although not used).
12727 (lookup_rgb_color): Don't lookup color table. Just do gamma
12728 correction.
12729 (COLOR_INTENSITY): New #define (from xfns.c).
12730 (x_disable_image): New function (from xfns.c).
12731 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12732 (x_build_heuristic_mask): Sync with xfns.c.
12733 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12734 (HAVE_PBM): Remove #ifdef.
12735 (pbm_load): Sync with xfns.c. Set img->width and img->height
12736 before IMAGE_BACKGROUND.
12737 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
12738 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
12739 Don't enclose with #if HAVE_PNG.
12740 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
12741 symbol _CGImageCreateWithPNGDataProvider is defined.
12742 Otherwise use image_load_quicktime.
12743 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
12744 [HAVE_PNG] (png_load): Sync with xfns.c.
12745 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
12746 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
12747 HAVE_JPEG.
12748 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
12749 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
12750 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
12751 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
12752 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
12753 (tiff_image_p, tiff_load): Don't enclose declarations with #if
12754 HAVE_TIFF.
12755 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
12756 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
12757 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
12758 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
12759 New functions (from xfns.c).
12760 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
12761 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
12762 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
12763 Don't enclose with #if HAVE_GIF.
12764 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
12765 animated gif. Otherwise use image_load_quicktime.
12766 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
12767 gif_DrawText to avoid conflict with QuickdrawText.h.
12768 [HAVE_GIF] (gif_load): Sync with xfns.c.
12769 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
12770 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
12771 Ghostscript is not supported yet).
12772 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
12773 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
12774 cross_disabled_images (from xfns.c). Remove #if 0 for supported
12775 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12776 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
12777 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
12778 HAVE_PNG. Call EnterMovies to support animated gifs.
12779 Call init_image_func_pointer to bind a symbol
12780 _CGImageCreateWithPNGDataProvider if it is defined.
12781
12782 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
12783 (x_draw_bar_cursor): Sync declaration with xterm.c.
12784 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
12785 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
12786 graphics).
12787 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
12788 (mac_draw_line_to_pixmap, XCreatePixmap)
12789 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
12790 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
12791 New functions.
12792 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
12793 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12794 Cast bits to char *.
12795 (reflect_byte): New function (from w32fns.c).
12796 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
12797 due to byte alignment.
12798 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
12799 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
12800 (XSetForeground): Remove static (now used in macfns.c).
12801 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
12802 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
12803 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
12804 (x_draw_glyph_string_box, x_draw_image_foreground)
12805 (x_draw_image_foreground_1, x_draw_image_glyph_string)
12806 (x_draw_stretch_glyph_string, x_draw_glyph_string)
12807 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
12808 Sync with xterm.c.
12809 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
12810 than the xterm.c version when a strictly horizontal or vertical
12811 line is drawn.
12812 (XTset_terminal_window): Add static.
12813 (x_make_frame_visible): Add UNBLOCK_INPUT.
12814 (x_free_frame_resources): New funcion (from xterm.c).
12815 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
12816 occurs in tool bar area.
12817 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
12818 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
12819 Initialize image cache.
12820 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
12821 Enclose unused functions with #if 0.
12822 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
12823 (decode_mac_font_name): New function to apply code conversions
12824 from a mac font name to an XLFD font name according to its script code.
12825 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
12826 font name to a mac font name according to REGISTRY and ENCODING fields.
12827 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
12828 whose name starts with `.'.
12829 (init_font_name_table): Use decode_mac_font_name. Add both
12830 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
12831 of a font is smJapanese.
12832 (mac_do_list_fonts): New function to list fonts that match a given
12833 pattern.
12834 (x_list_fonts, XLoadQueryFont): Use it.
12835 (XLoadQueryFont): Set rbearing field for each variable width
12836 character to avoid needless redraw.
12837 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
12838
12839 2004-02-26 Kim F. Storm <storm@cua.dk>
12840
12841 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
12842 as read_socket_hook handler on X aborts if buffer is too small
12843 and W32 handler doesn't always check buffer limit.
12844
12845 * xdisp.c (handle_single_display_prop): Handle left-fringe and
12846 right-fringe similar to a display margin image. Specifically,
12847 the characters having the fringe prop are no longer shown, and
12848 we use IT_IMAGE/next_element_from_image with image_id = -1 to
12849 do this. Set fringe bitmap face_id in it->face_id.
12850 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
12851 still realize it->face (i.e. the fringe bitmap face).
12852
12853 2004-02-25 Miles Bader <miles@gnu.org>
12854
12855 * xdisp.c (check_it): Check string/string_pos consistency.
12856 (init_iterator): Initialize string-related fields properly.
12857
12858 2004-02-11 Miles Bader <miles@gnu.org>
12859
12860 * xdisp.c (produce_image_glyph): Force negative descents to zero.
12861
12862 2004-02-10 Miles Bader <miles@gnu.org>
12863
12864 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
12865 BLOCK_INPUT can be nested, so it doesn't make much sense.
12866
12867 2004-02-24 Michael Mauger <mmaug@yahoo.com>
12868
12869 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
12870 (xbm_read_bitmap_data): Use unsigned char for image data.
12871
12872 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
12873
12874 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
12875
12876 2004-02-22 Jason Rumney <jasonr@gnu.org>
12877
12878 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
12879 correctly over other bitmaps.
12880
12881 2004-02-21 Eli Zaretskii <eliz@gnu.org>
12882
12883 * emacs.c (USAGE1): Split into two halves.
12884 (USAGE2): Second half of the old USAGE1.
12885 (USAGE3): Rename from USAGE2.
12886 (USAGE4): Rename from USAGE3.
12887
12888 2004-02-21 Juri Linkov <juri@jurta.org>
12889
12890 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
12891 Fix --multibyte. Move --help, --version to USAGE2. Add alias
12892 --file. Fix -f, -l. Sort options. Untabify.
12893 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
12894
12895 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
12896
12897 * category.c (Fdefine_category, Fcategory_docstring)
12898 (Fget_unused_category, Fset_category_table)
12899 (Fcategory_set_mnemonics): Doc fixes.
12900
12901 2004-02-20 Kim F. Storm <storm@cua.dk>
12902
12903 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
12904 The following changes are relative to the 2004-01-21 revision.
12905 (NREAD_INPUT_EVENTS): Define as max number of input events to read
12906 in one call to read_socket_hook. Value is 8.
12907 (read_avail_input): Separate and rework handling of read_socket_hook
12908 and non-read_socket_hook cases. Use smaller input_event buffer
12909 in read_socket_hook case, and repeat if full buffer is read.
12910 Use new local variable 'discard' to skip input after C-g.
12911 In non-read_socket_hook case, just use a single input_event, and
12912 call kbd_buffer_store_event on the fly for each character.
12913
12914 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
12917 Remove unused `gu' alternative.
12918
12919 2004-02-19 Andreas Schwab <schwab@suse.de>
12920
12921 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
12922 warning.
12923
12924 2004-02-18 Kim F. Storm <storm@cua.dk>
12925
12926 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
12927 Fix last change.
12928
12929 2004-02-17 Kim F. Storm <storm@cua.dk>
12930
12931 * xdisp.c (fast_find_position): Fix return value of new version;
12932 it was inverted compared to the 21.1 version.
12933 (get_window_cursor_type): Don't look at glyph if NULL.
12934 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
12935
12936 * keyboard.c: Rework previous change; it didn't consider that the
12937 buf array was allocated on the stack.
12938 (prev_read): Remove variable.
12939 (read_avail_input_buf): New static event buffer array.
12940 (in_read_avail_input): New static variable to handle re-entrancy.
12941 (read_avail_input): Change buf to pinter to read_avail_input_buf.
12942 Use in_read_avail_input to handle re-entrance; when re-entered,
12943 fully initialize and use tmp_buf array instead of read_avail_input_buf.
12944 Do not initialize read_avail_input_buf in full here; instead assume it
12945 is always cleared on entry. To ensure that, we clear (just) the
12946 entries that were used before we return.
12947 (init_keyboard): Initialize read_avail_input_buf here.
12948
12949 2004-02-16 Jesper Harder <harder@ifa.au.dk>
12950
12951 * cmds.c (Fend_of_line): Doc fix.
12952
12953 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
12954
12955 * keyboard.c (prev_read): New static variable.
12956 (read_avail_input): Use it to zero out only those slots in buf[]
12957 that were used last time we were called.
12958
12959 2004-02-16 Eli Zaretskii <eliz@gnu.org>
12960
12961 * Makefile.in (obj): Move fringe.o from here...
12962 (XOBJ, MAC_OBJ): ...to here.
12963
12964 2004-02-16 Stephen Eglen <stephen@gnu.org>
12965
12966 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
12967
12968 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
12969
12970 * data.c (Fbyteorder):
12971 * fringe.c (Fdefine_fringe_bitmap):
12972 * xdisp.c (handle_single_display_prop):
12973 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
12974
12975 2004-02-16 Jason Rumney <jasonr@gnu.org>
12976
12977 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
12978
12979 2004-02-15 Steven Tamm <steventamm@mac.com>
12980
12981 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
12982 controlling emulation of a three button mouse with option and
12983 command keys.
12984 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
12985 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
12986
12987 2004-02-15 Kim F. Storm <storm@cua.dk>
12988
12989 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
12990
12991 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
12992 Perform byte-swapping.
12993
12994 2004-02-14 Kim F. Storm <storm@cua.dk>
12995
12996 * dispextern.h (struct draw_fringe_bitmap_params): Change member
12997 bits from char to short to facilitate wider bitmaps.
12998 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
12999 member.
13000
13001 * fringe.c (struct fringe_bitmap): Change member bits from char to
13002 short to facilitate 16 bits wide bitmaps. Modify all standard
13003 bitmaps accordingly.
13004 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
13005 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
13006 (draw_fringe_bitmap): Ditto.
13007 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
13008 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
13009 handle up to 16 bits wide bitmaps.
13010 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
13011 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
13012
13013 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
13014 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
13015 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
13016
13017 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
13018 so it is no longer necessary to expand them here.
13019
13020 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
13021
13022 2004-02-12 Kim F. Storm <storm@cua.dk>
13023
13024 * window.c (Fwindow_fringes): Doc fix.
13025
13026 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13027
13028 * xselect.c (x_get_foreign_selection): Add new optional parameter
13029 time_stamp.
13030 (Fx_get_selection_internal): Ditto, pass time_stamp to
13031 x_get_foreign_selection.
13032
13033 * data.c (Fbyteorder): New function.
13034
13035 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13036
13037 * atimer.c: Move include stdio.h to same place as in other files.
13038
13039 * region-cache.c: Ditto.
13040
13041 * sysdep.c: Ditto.
13042
13043 * xfaces.c: Ditto.
13044
13045 2004-02-09 Sam Steingold <sds@gnu.org>
13046
13047 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
13048
13049 2004-02-09 Kim F. Storm <storm@cua.dk>
13050
13051 * fringe.c: New file. Move original fringe related declarations
13052 and code from dispextern.h and xdisp.c here.
13053 Rework code to support user defined fringe bitmaps, redefining
13054 standard bitmaps, ability to overlay user defined bitmap with
13055 overlay arrow bitmap, and add faces to bitmaps.
13056 (Voverflow_newline_into_fringe): Declare here.
13057 (enum fringe_bitmap_align): New enum.
13058 (..._bits): All bitmaps are now defined without bitswapping; that
13059 is now done in init_fringe_once (if necessary).
13060 (standard_bitmaps): New array with specifications for the
13061 standard fringe bitmaps.
13062 (fringe_faces): New array.
13063 (valid_fringe_bitmap_id_p): New function.
13064 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
13065 (draw_fringe_bitmap): New function which draws fringe bitmap,
13066 possibly overlaying bitmap with cursor in right fringe or the
13067 overlay arrow in the left fringe.
13068 (update_window_fringes): Do not handle overlay arrow here.
13069 Compare and copy fringe bitmap faces.
13070 (init_fringe_bitmap): New function.
13071 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
13072 define and destroy user defined fringe bitmaps.
13073 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
13074 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
13075 (syms_of_fringe): New function. Defsubr new DEFUNs.
13076 DEFVAR_LISP Voverflow_newline_into_fringe.
13077 (init_fringe_once, init_fringe): New functions.
13078 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
13079
13080 * Makefile.in (obj): Add fringe.o.
13081 (fringe.o): New dependencies.
13082
13083 * dispextern.h (FRINGE_ID_BITS): New definition for number of
13084 bits allocated to hold a fringe number. Increase number of bits
13085 from 4 to 8 to allow user defined fringe bitmaps.
13086 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
13087 left_user_fringe_face_id, right_user_fringe_bitmap,
13088 right_user_fringe_face_id.
13089 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
13090 Move to new file fringe.c.
13091 (MAX_FRINGE_BITMAPS): Define here.
13092 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
13093 and overlay_p. Change member which to int.
13094 (struct redisplay_interface): New members define_fringe_bitmap
13095 and destroy_fringe_bitmap.
13096 (valid_fringe_bitmap_id_p): Add prototype.
13097 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
13098
13099 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
13100 arrows.
13101 (update_frame): Do flush_display if force_flush_display_p to
13102 ensure display (specifically fringes) are updated in a timely
13103 manner when resizing the frame by dragging the mouse.
13104 (update_window_line): Update row if overlay arrow changed.
13105 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
13106 or overlay arrow changed.
13107
13108 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
13109 syms_of_fringe, and init_fringe.
13110
13111 * frame.h (struct frame): New member force_flush_display_p.
13112
13113 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
13114 Add prototypes.
13115
13116 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
13117 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
13118 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
13119 Use cursor color for displaying cursor in fringe.
13120 (x_redisplay_interface): Add null handlers for
13121 define_fringe_bitmap and destroy_fringe_bitmap functions.
13122
13123 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
13124 xterm.c to handle overlayed fringe bitmaps and to use cursor color
13125 for displaying cursor in fringe.
13126 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
13127 specific functions to define and destroy fringe bitmaps in fringe_bmp.
13128 (w32_redisplay_interface): Add them to redisplay_interface.
13129 (w32_term_init): Call w32_init_fringe instead of explicitly
13130 defining fringe bitmaps in fringe_bmp array.
13131 (x_delete_display): Call w32_reset_fringes instead of explicitly
13132 destroying fringe bitmaps in fringe_bmp array.
13133
13134 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
13135 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
13136 (continued_bits, continuation_bits, ov_bits, first_line_bits)
13137 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
13138 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
13139 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
13140 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
13141 Move fringe handling vars and code to new file fringe.c.
13142 (handle_display_prop): Handle left-fringe and right-fringe
13143 display properties; store user fringe bitmaps in iterator.
13144 (move_it_in_display_line_to): Handle cursor in fringe at eob.
13145 (clear_garbaged_frames): Set force_flush_display_p if resized.
13146 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
13147 (display_line): Handle cursor in fringe at eob.
13148 (display_line): Set row user fringe bitmaps from iterator.
13149
13150 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
13151 Use cursor color for displaying cursor in fringe.
13152 (x_redisplay_interface): Add null handlers for
13153 define_fringe_bitmap and destroy_fringe_bitmap functions.
13154
13155 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13156
13157 * macfns.c (Fx_change_window_property): Make doc string and
13158 parameters same as for X version.
13159
13160 * w32fns.c (Fx_change_window_property): Ditto.
13161
13162 2004-02-07 Kim F. Storm <storm@cua.dk>
13163
13164 * xdisp.c (hscroll_window_tree): Position cursor near to right
13165 margin in hscrolled window when jumping to end of line (rather
13166 than centering cursor).
13167
13168 * process.c (wait_reading_process_input): Don't do adaptive read
13169 buffering if waiting for a specific process.
13170
13171 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
13172
13173 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
13174 (Fread_minibuffer, Feval_minibuffer)
13175 (Fread_string, Fread_no_blanks_input)
13176 (Fcompleting_read): Doc fixes.
13177 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
13178 completion-regexp-list. Define Qcase_fold_search and staticpro it.
13179 (read_minibuf): Fix initial comment.
13180 (Ftry_completion, Fall_completions, Ftest_completion): Bind
13181 case-fold-search to the value of completion-ignore-case when
13182 checking completion-regexp-list.
13183 (Fdisplay_completion_list): Make it handle arguments that are
13184 symbols. Doc fix.
13185
13186 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13187
13188 * xterm.h: Add declaration of free_frame_menubar.
13189
13190 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
13191 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
13192 (Fx_change_window_property): Add declaration of parameters type and
13193 format. Remove unused variable cons.
13194
13195 * xselect.c: Include stdio.h.
13196
13197 2004-02-05 Kenichi Handa <handa@m17n.org>
13198
13199 * fns.c (Fset_char_table_range): Fix previous change.
13200
13201 * buffer.c (Fset_buffer_multibyte): Fix docstring.
13202
13203 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
13204
13205 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
13206
13207 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
13208
13209 * keymap.c (Vmouse_events): Rename from Vmenu_events.
13210 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
13211
13212 2004-02-04 Kenichi Handa <handa@m17n.org>
13213
13214 * fns.c (Fset_char_table_range): Handle charsets ascii,
13215 eight-bit-control, and eight-bit-graphic correctly.
13216
13217 2004-02-03 Jason Rumney <jasonr@gnu.org>
13218
13219 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
13220
13221 * w32fns.c (x_to_w32_font): Likewise.
13222
13223 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13224
13225 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
13226 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
13227
13228 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
13229 ClientMessages.
13230
13231 * xselect.c: Include termhooks.h and X11/Xproto.h
13232 (x_check_property_data, x_fill_property_data)
13233 (x_property_data_to_lisp, mouse_position_for_drop)
13234 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
13235 (Fx_send_client_event): Move here from xfns.c.
13236 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
13237
13238 * xfns.c (x-send-client-message): Move to xselect.c
13239 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
13240 OUTER_P.
13241 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
13242 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
13243 if vector_ret_p is true.
13244 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
13245
13246 2004-02-02 Eli Zaretskii <eliz@gnu.org>
13247
13248 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
13249 basename of FILE relative to it, not FILE itself.
13250
13251 2004-02-02 Kenichi Handa <handa@m17n.org>
13252
13253 * coding.c (coding_restore_composition): Check invalid
13254 composition data more rigidly.
13255
13256 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
13257
13258 * fileio.c (Fread_file_name_internal): Correctly handle the case
13259 where insert-default-directory is nil.
13260 (Fread_file_name): Always return an empty string if the user exits
13261 with an empty minibuffer. Adapt the docstring accordingly.
13262 (syms_of_fileio): Adapt the docstring of insert-default-directory
13263 to the change in Fread_file_name.
13264
13265 2004-01-29 Eli Zaretskii <eliz@gnu.org>
13266
13267 * alloca.c [!alloca]: Fix the prototype for xfree.
13268
13269 2004-01-29 Kenichi Handa <handa@m17n.org>
13270
13271 * fns.c (string_char_to_byte): Optimize for ASCII only string.
13272 (string_byte_to_char): Likewise.
13273
13274 2004-01-28 Peter Runestig <peter@runestig.com>
13275
13276 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
13277
13278 2004-01-27 Steven Tamm <steventamm@mac.com>
13279
13280 * unexmacosx.c (unexec_copy): Do not copy more than was
13281 requested to prevent overwriting during unexec.
13282
13283 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13284
13285 * process.c (sigchld_handler): Add comment about not calling malloc.
13286
13287 * process.h: Add extern to synch_process_termsig.
13288
13289 2004-01-27 Steven Tamm <steventamm@mac.com>
13290
13291 * macterm.c (make_mac_frame, make_mac_terminal_frame):
13292 Move setting of scroll bars from make_mac_frame to
13293 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
13294
13295 2004-01-26 Richard M. Stallman <rms@gnu.org>
13296
13297 * search.c (Freplace_match): Handle nonexistent
13298 back-references properly.
13299
13300 2004-01-03 Richard M. Stallman <rms@gnu.org>
13301
13302 * window.c (decode_any_window): New function.
13303 (Fwindow_height, Fwindow_width, Fwindow_edges)
13304 (Fwindow_pixel_edges, Fwindow_inside_edges)
13305 (Fwindow_inside_pixel_edges): Use decode_any_window.
13306
13307 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13308
13309 * process.h: synch_process_termsig new variable.
13310
13311 * callproc.c: Define synch_process_termsig.
13312 (Fcall_process): Initiate synch_process_termsig to zero and
13313 check if non-zero and get signal name after subprocess has ended.
13314
13315 * process.c (sigchld_handler): Set synch_process_termsig
13316 if terminated by a signal. synch_process_death setting removed.
13317
13318 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
13319
13320 2004-01-26 Andreas Schwab <schwab@suse.de>
13321
13322 * print.c (print_preprocess): Declare size as EMACS_INT to not
13323 lose bits.
13324 (print_object): Likewise.
13325 * alloc.c (Fpurecopy): Likewise.
13326
13327 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
13328
13329 * window.c (Fwindow_minibuffer_p): Doc fix.
13330
13331 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
13332
13333 * editfns.c (Fformat): Make both passes accept the same set of flags.
13334
13335 2004-01-23 Kenichi Handa <handa@m17n.org>
13336
13337 * fns.c (Fmd5): If OBJECT is a buffer different from the current
13338 one, set buffer to OBJECT temporarily.
13339
13340 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
13341
13342 * keyboard.c (kbd_buffer_gcpro): Remove.
13343 (kbd_buffer_store_event, clear_event, Fdiscard_input)
13344 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
13345 Don't initialize and/or maintain the variable any more. It was made
13346 redundant by my commit of 2003-06-15.
13347
13348 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
13349
13350 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13351
13352 * lisp.h: Add undef DECL_ALIGN.
13353
13354 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
13355
13356 * process.c (wait_reading_process_input) [SYNC_INPUT]:
13357 Check interrupt_input_pending explicitly.
13358
13359 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
13360
13361 * keyboard.c (handle_async_input): New fun,
13362 extracted from input_available_signal.
13363 (input_available_signal, reinvoke_input_signal): Use it.
13364
13365 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
13366
13367 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
13368
13369 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
13370 manipulation macros for when tags are in the lower bits.
13371 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
13372 (DECL_ALIGN): New macro.
13373 (DEFUN): Use it.
13374
13375 * lisp.h [ENABLE_CHECKING]: Don't force union type.
13376
13377 * s/darwin.h (__attribute__): Remove outdated workaround.
13378
13379 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
13380
13381 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
13382 Don't check range of malloc address.
13383 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
13384
13385 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
13386
13387 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
13388
13389 2004-01-19 Kenichi Handa <handa@m17n.org>
13390
13391 * fontset.c (fontset_font_pattern): Fix previous change.
13392
13393 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
13394
13395 * xdisp.c (Voverflow_newline_into_fringe)
13396 (move_it_in_display_line_to, redisplay_internal)
13397 (update_window_fringes, redisplay_window, display_line, window):
13398 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
13399 that it compiles without a window-system.
13400 * dispnew.c (direct_output_for_insert, update_window): Likewise.
13401
13402 2004-01-16 Kim F. Storm <storm@cua.dk>
13403
13404 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
13405
13406 * buffer.c (init_buffer_once): Set buffer_defaults and
13407 buffer_local_flags for indicate_buffer_boundaries.
13408 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
13409 default- variable for it.
13410
13411 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
13412 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
13413 New members exact_window_width_line_p and cursor_in_fringe_p for
13414 overflowing newlines into right fringe.
13415 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
13416 and indicate_bottom_line_p for buffer boundaries and scrolling.
13417 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
13418 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
13419 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
13420 and HOLLOW_SQUARE_BITMAP.
13421 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
13422 Add prototypes.
13423
13424 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
13425 instead of related indicator fields.
13426 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
13427 (direct_output_for_insert): Handle exact width lines like
13428 contined lines. Call update_window_fringes.
13429 (update_window): Call update_window_fringes.
13430 (scrolling_window): Don't skip desired rows with changed bitmaps.
13431 Check if fringe bitmaps changes when assigning scrolled rows.
13432
13433 * xdisp.c (Voverflow_newline_into_fringe): New variable.
13434 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
13435 (move_it_in_display_line_to): Overflow newline into fringe for
13436 rows that are exactly as wide as the window.
13437 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
13438 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
13439 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
13440 (fringe_bitmaps): Add new bitmaps.
13441 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
13442 Select proper bitmap for cursor in fringe when appropriate.
13443 Handle alignment of bitmap to top or bottom of row.
13444 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
13445 done by update_window_fringes.
13446 (update_window_fringes, draw_window_fringes): New functions.
13447 (redisplay_internal): Call update_window_fringes in case only
13448 cursor row is updated.
13449 (redisplay_window): Call update_window_fringes.
13450 Explicitly call draw_window_fringes if redisplay was done using
13451 the current matrix or the overlay arrow is in the window.
13452 (try_window_reusing_current_matrix): Mark scrolled rows for
13453 fringe update (to update buffer-boundaries / scrolling icons).
13454 (find_last_unchanged_at_beg_row): Handle exact width lines line
13455 continued lines.
13456 (display_line): Overflow newline into fringe for rows that are
13457 exactly as wide as the window. Don't append space for newline
13458 in this case.
13459 (notice_overwritten_cursor): Explicitly clear cursor bitmap
13460 in fringe as if it had been overwritten.
13461 (erase_phys_cursor): Erase cursor bitmap in fringe.
13462 (syms_of_xdisp): Mark show-trailing-whitespace and
13463 void-text-area-pointer as user options.
13464 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
13465
13466 * xterm.c (x_update_window_end): Call draw_window_fringes.
13467 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13468 in row instead of actually drawing fringe bitmaps.
13469 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13470 (x_draw_window_cursor): Draw cursor in fringe.
13471
13472 * w32term.c (x_update_window_end): Call draw_window_fringes.
13473 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13474 in row instead of actually drawing fringe bitmaps.
13475 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13476 (w32_draw_window_cursor): Draw cursor in fringe.
13477
13478 * macterm.c (x_update_window_end): Call draw_window_fringes.
13479 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
13480 in row instead of actually drawing fringe bitmaps.
13481 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
13482 (mac_draw_window_cursor): Draw cursor in fringe.
13483
13484 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13485
13486 * xterm.c (handle_one_xevent): Don't handle characters that are part
13487 of an old style (XLookupString) compose sequence.
13488
13489 2004-01-15 Kenichi Handa <handa@m17n.org>
13490
13491 * search.c (Freplace_match): Use make_multibyte_string or
13492 make_unibyte_string according to the buffer multibyteness.
13493
13494 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
13495
13496 * alloc.c (struct interval_block, struct string_block)
13497 (struct symbol_block, struct marker_block, live_string_p)
13498 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
13499 Better preserve alignment for objects in blocks.
13500 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
13501
13502 * lread.c (defvar_per_buffer): Remove dead declaration.
13503
13504 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
13505 space size.
13506
13507 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13508
13509 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
13510 if a key press should pop down. Only pop down if a key is pressed
13511 outside the menu/dialog.
13512 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
13513 popup_get_selection.
13514 (create_and_show_dialog): Pass 1 for down_on_keypress to
13515 popup_get_selection.
13516
13517 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13518
13519 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
13520 BLOCK/UNBLOCK_INPUT.
13521
13522 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13523
13524 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
13525 specified.
13526
13527 2004-01-08 Kenichi Handa <handa@m17n.org>
13528
13529 * editfns.c (Fformat): Fix '&' to '&&'.
13530
13531 2004-01-08 Andreas Schwab <schwab@suse.de>
13532
13533 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
13534 size if PSEUDOVECTOR_FLAG is set.
13535
13536 2004-01-07 Kenichi Handa <handa@m17n.org>
13537
13538 * charset.c (Fdeclare_equiv_charset): Fix docstring.
13539
13540 * fontset.c (fontset_ref_via_base): Fix previous change.
13541
13542 2004-01-07 Kim F. Storm <storm@cua.dk>
13543
13544 * process.c (read_process_output): Only activate adaptive
13545 buffering if we read less than 256 bytes at a time.
13546
13547 2004-01-06 Kim F. Storm <storm@cua.dk>
13548
13549 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
13550 object and image object. Return glyph width and height.
13551 (mode_line_string, marginal_area_string): Ditto.
13552
13553 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13554 (marginal_area_string): Fix prototypes.
13555
13556 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
13557 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
13558 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
13559
13560 * keyboard.c (make_lispy_position): Use modified mode_line_string,
13561 buffer_posn_from_coords, and marginal_area_string functions to
13562 include both string object and image object in the lispy position.
13563 Also add actual glyph width and height to position.
13564 (read_key_sequence): Use real buffer position from mouse
13565 event to find keymap property even when click is in marginal area.
13566
13567 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
13568 mode_line_string and marginal_area_string functions to handle
13569 both string object and image object properties.
13570
13571 2004-01-06 Andreas Schwab <schwab@suse.de>
13572
13573 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
13574 character.
13575
13576 2004-01-02 Andreas Schwab <schwab@suse.de>
13577
13578 * macterm.c (emacs_options, x_initialized, same_x_server):
13579 Remove unused (and duplicated) definitions.
13580
13581 2004-01-02 Kim F. Storm <storm@cua.dk>
13582
13583 * process.h (struct Lisp_Process): New members for adaptive read
13584 buffering: adaptive_read_buffering, read_output_delay, and
13585 read_output_skip.
13586
13587 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
13588 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
13589 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
13590 (process_output_delay_count, process_output_skip): New vars.
13591 (Vprocess_adaptive_read_buffering): New variable.
13592 (make_process): Initialize adaptive read buffering members.
13593 (Fstart_process): Set adaptive_read_buffering member.
13594 (deactivate_process): Cleanup adaptive read buffering.
13595 (wait_reading_process_input): Temporarily omit delayed
13596 subprocesses from the set of file descriptors to read from;
13597 adjust the select timeout if we skipped any subprocesses.
13598 (read_process_output): Increase adaptive read buffering delay if
13599 we read less than a full buffer; reduce delay when we read a
13600 full buffer.
13601 (send_process): Simplify using local Lisp_Process var.
13602 Reset adaptive read buffering delay after write.
13603 (init_process): Initialize process_output_delay_count and
13604 process_output_skip.
13605 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
13606
13607 2004-01-01 Jason Rumney <jasonr@gnu.org>
13608
13609 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
13610
13611 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
13612
13613 * print.c (Ferror_message_string): Add hyperlink in the docstring
13614 to the definition of `signal' in the Elisp manual.
13615 * eval.c (Fsignal): Ditto.
13616
13617 2003-12-29 James Clark <jjc@jclark.com>
13618
13619 * fns.c (internal_equal): Return t for two NaN arguments.
13620
13621 2003-12-29 Richard M. Stallman <rms@gnu.org>
13622
13623 * data.c (store_symval_forwarding): Handle setting
13624 default-fill-column, etc., by changing the value in
13625 buffers that use the default.
13626
13627 * minibuf.c (Fset_minibuffer_window): Doc fix.
13628
13629 * fileio.c (choose_write_coding_system): Ignore auto_saving
13630 if using the visited file for auto saves.
13631 (Fwrite_region): Don't update SAVE_MODIFF
13632 if auto-saving in visited file.
13633
13634 2003-12-29 Kenichi Handa <handa@m17n.org>
13635
13636 * dispextern.h (face_font_available_p): Extern it.
13637
13638 * fontset.c (Voverriding_fontspec_alist): New variable.
13639 (lookup_overriding_fontspec): New function.
13640 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
13641 (fontset_font_pattern): Likewise.
13642 (regulalize_fontname): New function.
13643 (Fset_fontset_font): Call regulalize_fontname.
13644 (Fset_overriding_fontspec_internal): New function.
13645 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
13646 Defsubr Sset_overriding_fontspec_internal.
13647
13648 * xfaces.c (face_font_available_p): New function.
13649
13650 2003-12-28 Richard M. Stallman <rms@gnu.org>
13651
13652 * buffer.c (Fother_buffer): Don't crash if BUF is nil
13653 or if its name is nil.
13654
13655 * buffer.c (Fkill_buffer): Don't delete auto-save file
13656 if it's the same as the visited file.
13657
13658 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
13659
13660 * coding.c (Fcheck_coding_system): Doc fix.
13661
13662 2003-12-28 Kim F. Storm <storm@cua.dk>
13663
13664 * Makefile.in (eval.o): Depend on dispextern.h.
13665
13666 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
13667 image glyph using image's ascent.
13668 (mode_line_string): Return image glyph as object clicked on.
13669 Adjust y0 for image glyph using image's ascent.
13670
13671 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
13672 (struct glyph): New members, ascent and descent. Used to save
13673 this glyph's ascent and descent, instead of having.
13674 (struct glyph): Declare member face_id using FACE_ID_BITS.
13675 (find_hot_spot): Add prototype.
13676
13677 * keyboard.c (Qimage): Remove extern (now in lisp.h).
13678 (QCmap): Declare extern.
13679 (make_lispy_position): When position is inside image hot-spot,
13680 use hot-spot element's id as posn element.
13681
13682 * lisp.h (IMAGEP): New macro to test for image object type.
13683 (Qimage): Declare extern.
13684
13685 * macfns.c (Qimage): Remove extern (now in lisp.h).
13686 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13687
13688 * macterm.c (Qface, Qmouse_face): Remove unused externs.
13689
13690 * w32fns.c (Qimage): Remove extern (now in lisp.h).
13691 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13692
13693 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
13694
13695 * w32term.c (Qface, Qmouse_face): Remove unused externs.
13696
13697 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
13698 pointer types.
13699 (Qrelative_width, Qalign_to): Remove unused variables.
13700 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
13701 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
13702 image maps.
13703 (x_y_to_hpos_vpos): Return glyph relative coordinates through
13704 new dx and dy args.
13705 Remove buffer_only_p arg (always 0). Simplify code accordingly.
13706 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
13707 than row's ascent and height, to get sensible height on tall rows.
13708 (build_desired_tool_bar_string): Remove Qimage extern.
13709 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
13710 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
13711 image glyph is alone on the last line.
13712 (append_glyph, append_composite_glyph, produce_image_glyph)
13713 (append_stretch_glyph): Set glyph's ascent and descent.
13714 (on_hot_spot_p): New function to check if position is inside an
13715 rectangular, circular, or polygon-shaped image hot-spot,
13716 (find_hot_spot): New function to search for image hot-spot.
13717 (Flookup_image_map): New defun to search for image hot-spot.
13718 (define_frame_cursor1): New aux function to determine frame pointer.
13719 (note_mode_line_or_margin_highlight, note_mouse_highlight):
13720 Handle `pointer' text property and :pointer image property to
13721 control frame pointer shape. Detect image hot-spots for pointer
13722 and help_echo properties. Use define_frame_cursor1.
13723 (note_mouse_highlight): Use Vvoid_text_area_pointer.
13724 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
13725 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
13726
13727 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
13728
13729 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
13730 (Qimage): Remove extern (now in lisp.h).
13731 (valid_image_p, parse_image_spec): Use IMAGEP macro.
13732
13733 * xmenu.c (show_help_event): Remove unused code.
13734
13735 * xterm.c (Qface, Qmouse_face): Remove unused externs.
13736 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
13737 row's ascent and descent, to get a sensible height on tall rows.
13738
13739 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
13740
13741 * minibuf.c (Fcompleting_read): Undo previous change.
13742
13743 2003-12-25 Lars Hansen <larsh@math.ku.dk>
13744
13745 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
13746 Arguments GCPRO'ed in call to file name handler.
13747
13748 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
13749
13750 * termcap.c (tgetst1): Scan for "%pN"; if all
13751 N are continuous in [1,9], remove all "%pN".
13752
13753 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13754
13755 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
13756
13757 * xfaces.c (lface_fully_specified_p): Take into account that
13758 MAC OS always have unspecified stipple.
13759
13760 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13761
13762 * tparam.c (tparam1): Add handling for `%pN', which
13763 means use param N for the next substitution.
13764
13765 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
13766
13767 * xfaces.c (Fcolor_gray_p): Fix omission bug:
13768 In case `frame' is nil, consult the selected frame.
13769 (Fcolor_supported_p): Likewise.
13770
13771 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
13772
13773 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
13774 Doc fixes.
13775
13776 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
13777 and an integer. Adapt the introductory comment accordingly.
13778 (Fread_from_minibuffer): Delete code moved into read_minibuf.
13779 Doc fix.
13780 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
13781 read_minibuf.
13782 (Fcompleting_read): Delete code moved into read_minibuf.
13783 (Ftest_completion): Make it handle obarrays and hash tables correctly.
13784
13785 2003-12-03 Kenichi Handa <handa@m17n.org>
13786
13787 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
13788 encoding sequence.
13789
13790 2003-12-01 Kenichi Handa <handa@m17n.org>
13791
13792 * composite.c (syms_of_composite): Don't make the compostion hash
13793 table week.
13794
13795 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
13796
13797 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
13798 * textprop.c (Fget_char_property_and_overlay): New function.
13799 (syms_of_textprop): Defsubr it.
13800
13801 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13802
13803 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
13804 to compile on terminal configuration.
13805
13806 * fileio.c (Fread_file_name): Check use_file_dialog also before
13807 calling Fx_file_dialog.
13808
13809 * fns.c (use_file_dialog): New variable.
13810 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
13811
13812 2003-11-29 Kim F. Storm <storm@cua.dk>
13813
13814 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
13815 (syms_of_msdos): Don't intern and staticpro them.
13816
13817 2003-11-27 Kim F. Storm <storm@cua.dk>
13818
13819 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
13820 coordinates relative to glyph at posn. If glyph is an image,
13821 return that as object at posn. Callers changed.
13822 (mode_line_string, marginal_area_string): Calculate and return
13823 pixel coordinates relative to glyph. Callers changed.
13824
13825 * dispextern.h (buffer_posn_from_coords, mode_line_string)
13826 (marginal_area_string): Fix prototypes.
13827 (window_box_left_offset, window_box_right_offset): Add prototypes.
13828
13829 * frame.h (get_specified_cursor_type, get_window_cursor_type):
13830 Remove prototypes.
13831
13832 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
13833
13834 * keyboard.c (make_lispy_position): Add x and y coordinates
13835 relative to the current glyph as 7th element of position.
13836 If glyph is an image, return it in the object element.
13837 (read_key_sequence): Skip checks for keymap property in cases
13838 where POSN_STRING is not a string (e.g. an image).
13839
13840 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
13841 (Vshow_text_cursor_in_void): New variable.
13842 (glyph_to_pixel_coords): Don't use negative hpos.
13843 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
13844 (append_stretch_glyph): Change ascent arg to be actual value
13845 in pixels rather than ratio to height. Callers changed.
13846 (calc_pixel_width_or_height): New aux function, implementing
13847 pixel based artihmetic for glyph widths and heights.
13848 (produce_stretch_glyph): Use calc_pixel_width_or_height for
13849 :width, :height, :align-to, and :ascent, thus allowing these to
13850 be specified in pixels as well as multiples of characters.
13851 Don't produce stretch glyphs with zero width or height.
13852 (get_specified_cursor_type): Declare static.
13853 (get_window_cursor_type): Declare static. Add glyph arg to be
13854 able to know when cursor is on an image; always substitute
13855 hollow-box cursor for filled-box cursor on images, to avoid
13856 negative images and flicker when blinking the cursor.
13857 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
13858 (note_mode_line_or_margin_highlight): Use non-text cursor rather
13859 than vertical scroll-bar cursor in display margins.
13860 (note_mouse_highlight): Use non-text cursor rather than text
13861 cursor in fringes and over images in the text area.
13862 Use non-text cursor when mouse pointer is outside editable text,
13863 i.e. in the void after end-of-line or end-of-buffer; this was
13864 already done for W32, but is now standard for all systems --
13865 user can toggle show-text-cursor-in-void to get old behaviour.
13866 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
13867 Vdisplay_pixels_per_inch.
13868
13869 2003-11-25 Andreas Schwab <schwab@suse.de>
13870
13871 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
13872 EMACS_INT to not lose bits.
13873 (Ffillarray): Don't set bits beyond the size of a bool vector.
13874
13875 2003-11-25 Kim F. Storm <storm@cua.dk>
13876
13877 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
13878 define this defun on systems that cannot use stderr as lvalue.
13879
13880 2003-11-24 Gerd Moellmann <gerd@gnu.org>
13881
13882 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
13883 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
13884 ld's default is incompatible with unexec.
13885
13886 2003-11-23 Kim F. Storm <storm@cua.dk>
13887
13888 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
13889 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
13890 (Fforce_window_update): New defun.
13891 (syms_of_window): Defsubr it.
13892 (Fset_window_margins, Fset_window_fringes): Doc fix.
13893
13894 * print.c (Fredirect_debugging_output): New defun.
13895 (syms_of_print): Defsubr it.
13896
13897 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
13898
13899 * fns.c (Fset_char_table_parent): Doc fix.
13900
13901 2003-11-22 Kim F. Storm <storm@cua.dk>
13902
13903 * dispnew.c (buffer_posn_from_coords): Return actual row/column
13904 for glyph clicked on, rather than (unused) pixel positions.
13905 (mode_line_string, marginal_area_string): Change X and Y args to
13906 pointers for returning actual row/column for glyph clicked on.
13907 Simplify and optimize loops.
13908
13909 * dispextern.h (mode_line_string, marginal_area_string):
13910 Update prototypes.
13911
13912 * keyboard.c (make_lispy_position): New function for generating
13913 mouse click positions from frame and pixel coordinates.
13914 Enhanced to return buffer position and actual row/column for
13915 events outside the text area using updated mode_line_string and
13916 marginal_area_string functions.
13917 Return left-fringe and right-fringe clicks as such, rather than
13918 clicks in text area.
13919 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
13920 pixel_to_glyph_coords, as we never use the results.
13921 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
13922 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
13923 Eliminate unused code in WHEEL_EVENT handling.
13924 (make_lispy_movement): Use make_lispy_position.
13925
13926 * window.c (coordinates_in_window): Remove redundant tests.
13927 Fix returned X pixel value for left-margin.
13928
13929 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
13930 mode_line_string and marginal_area_string parameters.
13931
13932 2003-11-22 Lars Hansen <larsh@math.ku.dk>
13933
13934 * w32.c (struct the_group, getgrgid): Add.
13935 * mac.c (struct my_group, getgrgid): Add.
13936
13937 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13938
13939 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
13940
13941 2003-11-21 Lars Hansen <larsh@math.ku.dk>
13942
13943 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
13944 include in call to file name handler. Optionally translate numeric
13945 UID and GID to strings. Update docstring.
13946 (directory_files_internal): Add parameter ID-FORMAT.
13947 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
13948 include in call to file name handler and call to
13949 directory_files_internal. Update Docstring.
13950 (Fdirectory_files): Add dummy parameter in call to
13951 directory_files_internal.
13952 * lisp.h (Qinteger): Add.
13953 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
13954 (Ffile_attributes): Add parameter.
13955 * data.c (Qinteger): Export.
13956
13957 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
13958
13959 * fns.c (Freverse, Fnreverse): Doc fixes.
13960
13961 2003-11-19 Kim F. Storm <storm@cua.dk>
13962
13963 * xdisp.c (init_iterator): Initialize it->start to position
13964 before reseating (in case start position is invisible).
13965 (init_to_row_start): Set it->start to row-start.
13966 (redisplay_window): Accept optional_new_start if start position
13967 is invisible (in which case IT_CHARPOS overshoots PT).
13968 (display_line): Setup row->start from it->start (rather than
13969 it->current which is wrong if first char on line is invisible).
13970 When done, reseat it->start to it->current (= start of next row).
13971 (expose_area): Fix exposure of text area when first char (e.g. TAB)
13972 is only partially visible.
13973
13974 * dispextern.h (struct it): New member start.
13975
13976 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * alloc.c (make_float, Fcons): Clear the markbit at init time.
13979 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
13980 of block_index outside of the macro call.
13981 (Fgarbage_collect): Remove null code.
13982
13983 * m/amdx86-64.h: Don't redefine XPNTR.
13984
13985 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
13986 of VALMASK.
13987
13988 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
13989 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
13990 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
13991
13992 * lisp.h (VALMASK): Only define for non-union type.
13993 (MARKBIT): Remove.
13994 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
13995 (XTYPE): Define unconditionally.
13996 (XSETTYPE): Remove one more remnant.
13997 (EQ): Define differently for the union and non-union cases.
13998 (INTMASK): New bit mask.
13999 (struct Lisp_Marker): Move down to prepare for upcoming patch.
14000 (GC_EQ): Delegate to EQ.
14001
14002 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
14003
14004 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14005
14006 * xterm.c (x_window_to_scroll_bar): Move check of display to
14007 where window_id is compared.
14008
14009 2003-11-17 Kim F. Storm <storm@cua.dk>
14010
14011 * dispextern.h (struct it): New member first_vpos.
14012
14013 * xdisp.c (start_display): Set it->first_vpos.
14014 (try_window_id): Use first_vpos to start display in first _text_
14015 line if no reusable lines at start of window with header line.
14016
14017 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14018
14019 * w32fns.c (XPutPixel):
14020 * w32bdf.c (w32_init_bdf_font):
14021 * sunfns.c (sel_read):
14022 * process.c (Fmake_network_process):
14023 * frame.c (store_frame_param):
14024 * fontset.c (Fset_fontset_font):
14025 * emacs.c (shut_down_emacs):
14026 * ccl.c (ccl_driver): Remove period at end of error message.
14027
14028 * config.in: Regenerate.
14029
14030 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14031 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14032 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
14033 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
14034 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
14035
14036 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
14037
14038 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
14039 (XTmouse_position, handle_one_xevent): Pass Display* to
14040 x_window_to_scroll_bar.
14041 (x_window_to_scroll_bar): Take a Display* argument.
14042 Check that display for frame is equal to Display* argument.
14043 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
14044 x_display_info_for_display instead. Use Display in xev instead
14045 of GDK_DISPLAY.
14046 (x_dispatch_event): Call x_display_info_for_display.
14047 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
14048 (x_connection_closed): Call xg_display_close for GTK.
14049 (x_term_init): Call xg_display_open for additional displays.
14050 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
14051 for GTK.
14052
14053 * xmenu.c (single_menu_item, mouse_position_for_popup)
14054 (x_activate_menubar): Formatting adjustments.
14055
14056 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
14057 adjustments.
14058
14059 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
14060 (xg_display_close, xg_create_default_cursor)
14061 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
14062 handling.
14063 (xg_left_ptr_cursor): Remove.
14064 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
14065 cursor here.
14066 (xg_win_to_widget): Take Display* argument, call
14067 gdk_xid_table_lookup_for_display.
14068 (xg_create_frame_widgets, xg_get_file_name, create_menus)
14069 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
14070 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
14071 in FRAME_X_DISPLAY_INFO.
14072 (xg_get_scroll_id_for_window): Take Display* argument.
14073 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
14074 (xg_initialize): Remove xg_left_ptr_cursor.
14075
14076 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
14077 Display* argument.
14078 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
14079
14080 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14081
14082 * xterm.c (x_detect_focus_change): Do not change focus frame for
14083 Enter/LeaveNotify if the current focus frame has explicit focus.
14084
14085 2003-11-14 Kim F. Storm <storm@cua.dk>
14086
14087 * dispnew.c (update_text_area): Fix redisplay error when hscroll
14088 is active and first glyph is only partially visible.
14089
14090 2003-11-13 Kenichi Handa <handa@m17n.org>
14091
14092 * xdisp.c (select_frame_for_redisplay): New function.
14093 (redisplay_internal): Record also selected_frame for
14094 unwind_redisplay. Call select_frame_for_redisplay before
14095 redrawing each frame.
14096 (unwind_redisplay): Argument changed to a cons.
14097
14098 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
14099
14100 * fns.c (Fstring_to_multibyte): Doc fix.
14101
14102 2003-11-11 Kenichi Handa <handa@m17n.org>
14103
14104 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14105
14106 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14107
14108 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
14109 program specified positions.
14110
14111 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14112
14113 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
14114
14115 2003-11-08 Kenichi Handa <handa@m17n.org>
14116
14117 * Makefile.in (lisp): Add kannada.el.
14118 (shortlisp): Likewise.
14119
14120 2003-11-07 Kenichi Handa <handa@m17n.org>
14121
14122 * coding.c (coding_allocate_composition_data):
14123 Reset coding->composing to COMPOSITION_NO.
14124 (coding_restore_composition): Detect invalid composition data.
14125 Give Fstring and Fvector a Lispy integer, not C int.
14126
14127 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
14128
14129 * floatfns.c (Flogb): Don't use VALMASK.
14130
14131 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
14132 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
14133
14134 * lisp.h (XINT): Move the cast to clarify what is going on.
14135 (GCTYPEMASK, XSETTYPE): Remove.
14136 (XGCTYPE): Make it an alias of XTYPE.
14137
14138 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14139
14140 * xterm.c (x_term_init): Fix formatting.
14141
14142 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14143
14144 * gtkutil.h (xg_have_tear_offs): Declare.
14145 (xg_keep_popup, xg_did_tearoff): Remove.
14146
14147 * gtkutil.c: Remove variable xg_did_tearoff.
14148 (xg_have_tear_offs): New function.
14149 (tearoff_remove): Just decrease xg_detached_menus.
14150 (tearoff_activate): Increase xg_detached_menus and call
14151 tearoff_remove when tearoff is removed.
14152 (xg_keep_popup): Remove function.
14153 (create_menus): Give add_tearoff_p as argument to recursive
14154 call to create_menus.
14155 (xg_create_widget): Use variables instead of multiple
14156 strcmp. Tell create_menus to create tear off only for
14157 menu bar menus.
14158 (xg_update_menubar): Change title for a detached menu also.
14159 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
14160 of deep_p.
14161 (xg_initialize): Initialize xg_detached_menus, remove
14162 initialization of xg_did_tearoff.
14163
14164 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
14165 xg_have_tear_offs returns non-zero.
14166 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
14167 call to xg_keep_popup.
14168
14169 2003-11-01 Andrew Choi <akochoi@shaw.ca>
14170
14171 * macterm.c (XTread_socket): Handle menubar selection and grow
14172 window only for mouseDown events.
14173
14174 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14175
14176 * xterm.c (x_term_init): For GTK part, increase x_initialized
14177 to check for more than one display. Use error instead of return 0.
14178
14179 2003-10-31 Andrew Choi <akochoi@shaw.ca>
14180
14181 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
14182 (copy_dysymtab): Call it.
14183
14184 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
14185
14186 * eval.c (Fdefvaralias): Doc fix.
14187
14188 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
14189
14190 * data.c (Fsetplist): Doc fix.
14191
14192 2003-10-14 Lute Kamstra <lute@gnu.org>
14193
14194 * window.c (Fset_window_fringes): Clarify docstring.
14195
14196 2003-10-14 Kim F. Storm <storm@cua.dk>
14197
14198 * window.c (Fset_window_margins): Simplify arg checking.
14199
14200 2003-10-13 Richard M. Stallman <rms@gnu.org>
14201
14202 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
14203 (print_partial_compiled_pattern): Replace assert with a printout.
14204 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
14205
14206 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
14207
14208 * window.c (Fset_window_margins): Allow only integers as args.
14209 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
14210 Doc fixes.
14211
14212 2003-10-13 Lute Kamstra <lute@gnu.org>
14213
14214 * window.c (Fset_window_fringes): Elaborate docstring.
14215
14216 2003-10-12 Andrew Choi <akochoi@shaw.ca>
14217
14218 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
14219
14220 * s/darwin.h (GC_MARK_STACK): Define.
14221
14222 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14223
14224 * window.c (shrink_windows): New function.
14225 (size_window): Call shrink_windows to calculate window sizes when
14226 shrinking frame with more than one window.
14227
14228 2003-10-12 Kim F. Storm <storm@cua.dk>
14229
14230 * xdisp.c (compute_fringe_widths): Doc fix.
14231
14232 2003-10-08 Kenichi Handa <handa@m17n.org>
14233
14234 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
14235
14236 2003-10-07 Kenichi Handa <handa@m17n.org>
14237
14238 * coding.c (Qcoding_system_define_form): New variable.
14239 (syms_of_coding): Intern and staticpro it.
14240 (Fcheck_coding_system): Try to autoload the definition of
14241 CODING-SYSTEM.
14242
14243 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
14244
14245 * fns.c (Frequire): Doc fix.
14246
14247 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14248
14249 * xfns.c (Fx_send_client_event): New function as a base for
14250 manipulating extended window manager hints.
14251 (Fx_send_client_event): Remove unused variable s.
14252
14253 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
14254 that function is removed.
14255
14256 * xterm.c (x_set_offset): Use move_offset_left/top instead of
14257 x/y_pixels_outer_diff.
14258 (x_check_expected_move): Calculate move_offset_left/top.
14259
14260 * xterm.h (struct x_output): New members: move_offset_top/left.
14261
14262 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
14263 call x_set_offset directly.
14264
14265 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
14266
14267 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
14268
14269 * xterm.c (x_delete_display): Free font names and font_encoder
14270 in dpyinfo->font_table.
14271
14272 * xfns.c (Fx_close_connection): Only call XFreeFont here.
14273 Move xfree of font names to x_delete_display.
14274
14275 * xterm.h (struct x_display_info): New member, wm_type.
14276 (struct x_output): New members, expected_top/left and
14277 check_expected_move.
14278
14279 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
14280 is received.
14281 (handle_one_xevent): Rename x_check_expected_move from
14282 x_check_fullscreen_move.
14283 (x_set_offset): Only add WM decoration sizes to modified_top/left
14284 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
14285 (x_check_expected_move): Rename from x_check_fullscreen_move.
14286 Removed fullscreen specific code. Use check_expected_move,
14287 expected_left/top instead. Also, set wm_type.
14288 (x_term_init): Initialize wm_type to unknown.
14289
14290 * frame.c (x_fullscreen_move): Remove addition of WM decoration
14291 sizes to move_x/y.
14292
14293 2003-10-03 Kenichi Handa <handa@m17n.org>
14294
14295 * macterm.c (x_load_font): Clear all members of FONTP before start
14296 filling them.
14297
14298 2003-10-02 Kenichi Handa <handa@m17n.org>
14299
14300 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
14301 before calling find_ccl_program_func. Call find_ccl_program_func
14302 only when fontp->font_encoder is not NULL.
14303
14304 * xterm.c (x_load_font): Clear all members of FONTP before start
14305 filling them.
14306
14307 2003-10-03 John Paul Wallington <jpw@gnu.org>
14308
14309 * keymap.c (map_keymap): Don't abort when binding is a vector.
14310
14311 2003-10-02 Jason Rumney <jasonr@gnu.org>
14312
14313 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
14314 Sync dependencies with Makefile.in.
14315 (alloca.o): Remove.
14316
14317 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
14318 filling them.
14319
14320 * w32bdf.c (w32_load_bdf_font): Likewise.
14321
14322 2003-09-30 Richard M. Stallman <rms@gnu.org>
14323
14324 * term.c (set_tty_color_mode): Calculate current_mode_spec
14325 regardless of value of VAL.
14326
14327 * intervals.c (graft_intervals_into_buffer):
14328 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
14329 Handle over_used when splitting UNDER.
14330
14331 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14332
14333 * regex.c (regex_compile): Free the stack when returning from function.
14334
14335 2003-09-28 Kenichi Handa <handa@m17n.org>
14336
14337 * fontset.c (Finternal_char_font): Change return value to
14338 cons (FONT-NAME . GLYPH-CODE).
14339
14340 2003-09-28 Eli Zaretskii <eliz@gnu.org>
14341
14342 * term.c (tty_setup_colors): Treat any negative argument as -1.
14343
14344 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
14345
14346 * process.c (send_process): Delete unused temp_buf.
14347
14348 2003-09-26 Dave Love <fx@gnu.org>
14349
14350 * xterm.c (x_bitmap_mask): Declare.
14351
14352 2003-09-25 Dave Love <fx@gnu.org>
14353
14354 * Makefile.in (fns.o): Depend on md5.h.
14355
14356 2003-09-25 Kim F. Storm <storm@cua.dk>
14357
14358 * window.c (set_window_buffer): Fix redisplay problems when
14359 switching between buffers with different display margin widths.
14360
14361 2003-09-23 Kim F. Storm <storm@cua.dk>
14362
14363 * process.c (set_socket_option): Fix :bindtodevice option.
14364 (Fset_network_process_option): Update process contact list when
14365 setting option succeeds.
14366 (Fmake_network_process): Doc fix.
14367
14368 2003-09-23 Dave Love <fx@gnu.org>
14369
14370 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
14371
14372 2003-09-22 Eli Zaretskii <eliz@gnu.org>
14373
14374 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
14375 color mode is an integer number (it could be -1).
14376
14377 2003-09-22 Richard M. Stallman <rms@gnu.org>
14378
14379 * intervals.c (graft_intervals_into_buffer): Correct the main loop
14380 in the case where OVER is longer than UNDER.
14381
14382 2003-09-22 Masatake YAMATO <jet@gyve.org>
14383
14384 * window.c (Fset_window_scroll_bars): Validate the value of
14385 `vertical_type'.
14386
14387 2003-09-21 Kim F. Storm <storm@cua.dk>
14388
14389 * frame.c (Vdefault_frame_scroll_bars): New variable.
14390 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
14391 (syms_of_frame): DEFVAR_LISP it, and initialize according to
14392 window-system default scroll bar position.
14393
14394 * window.c (Fwindow_scroll_bars): Doc fix.
14395
14396 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14397
14398 * xterm.c (x_set_offset): Take window manager decorations into account.
14399
14400 2003-09-19 Richard M. Stallman <rms@gnu.org>
14401
14402 * atimer.h: Don't include lisp.h.
14403 (P_): Define it here (as well as elsewhere).
14404
14405 * print.c (Fprin1_to_string): Move the PRINTPREPARE
14406 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
14407
14408 * data.c (Fvariable_binding_locus): New function.
14409 (syms_of_data): defsubr it.
14410 (Flocal_variable_p): Delete duplicate call to indirect_variable.
14411
14412 2003-09-18 Dave Love <fx@gnu.org>
14413
14414 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
14415
14416 * process.c (Fnetwork_interface_info): Fix type error.
14417 (Fnetwork_interface_list): Doc fix.
14418 (read_process_output, read_process_output): Delete unused var.
14419
14420 2003-09-17 Kim F. Storm <storm@cua.dk>
14421
14422 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
14423 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
14424 (Fnetwork_interface_info): Check that ifreq struct has required
14425 fields before accessing them; this requires that those fields are
14426 defined as macros, which may be too restrictive on some platforms,
14427 but it is better than failing on other platforms.
14428 (syms_of_process): Only defsubr above fns when included.
14429
14430 2003-09-17 Dave Love <fx@gnu.org>
14431
14432 * unexalpha.c: Don't include varargs.h.
14433
14434 2003-09-17 Kim F. Storm <storm@cua.dk>
14435
14436 * process.c (Fset_process_sentinel): Add sentinel to childp plist
14437 for network process.
14438 (socket_options): Add `:' prefix to option names. Add optbit field.
14439 (set_socket_option): Remove no_error arg and special handling of s < 0.
14440 Return 1<<optbit for known option, 0 for unknown.
14441 Do not interpret 0 as false for boolean option (only nil).
14442 Pass failed option and value to report_file_error.
14443 (Fset_network_process_options): Replace by Fset_network_process_option.
14444 (Fset_network_process_option): New function to set just one option.
14445 (Fmake_network_process): Allow :coding arg to be a cons.
14446 Allow :server arg to be an integer specifying backlog size.
14447 Remove :options arg, and allow options to be specified directly
14448 as :KEY, VALUE pairs. Parse these options before binding socket.
14449 As before, :reuseaddr t is default for a server process, but this
14450 can now be disabled by specifying :reuseaddr nil.
14451 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
14452 (init_process): Availability of network options is now checked with
14453 simpler syntax (featurep 'make-network-process :OPTION); use loop to
14454 setup features.
14455 (syms_of_process): Fix defsubr's for the replaced functions.
14456
14457 2003-09-16 Dave Love <fx@gnu.org>
14458
14459 * Makefile.in: Depend on coding.h.
14460
14461 2003-09-14 Kim F. Storm <storm@cua.dk>
14462
14463 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
14464 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
14465 (syms_of_process): Defsubr them.
14466
14467 * config.in: Regenerate.
14468
14469 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
14470
14471 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
14472 * m/news-r6.h (XUNMARK): Remove.
14473 * m/mips.h (XUNMARK): Remove.
14474 * m/mips-siemens.h (XUNMARK): Remove.
14475 * m/iris4d.h (XUNMARK): Remove.
14476 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
14477
14478 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * lisp.h (VALBITS): Don't remove 1 for the markbit.
14481 (union Lisp_Object): Use unsigned int for types. Remove markbit.
14482 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
14483 (XTYPE): Use unsigned right-shift.
14484 (XMARKBIT, XMARK, XUNMARK): Remove.
14485
14486 * alloc.c (init_intervals, init_symbol, init_marker):
14487 Don't preallocate anything.
14488 (Fgarbage_collect, mark_object): Ignore the markbit.
14489
14490 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
14491
14492 2003-09-08 Lute Kamstra <lute@gnu.org>
14493
14494 * xdisp.c (pint2hrstr): New function.
14495 (decode_mode_spec): Add `%i' and `%I' specs.
14496 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
14497 for `mode-line-format'.
14498
14499 2003-09-07 Andreas Schwab <schwab@suse.de>
14500
14501 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
14502 avoid warning.
14503
14504 2003-09-07 Eli Zaretskii <eliz@gnu.org>
14505
14506 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
14507
14508 2003-09-03 Kim F. Storm <storm@cua.dk>
14509
14510 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
14511 change (superseded by 2002-08-30 change); the default blink-off
14512 cursor is now again "no cursor".
14513
14514 2003-09-01 Jason Rumney <jasonr@gnu.org>
14515
14516 * makefile.w32-in (alloca.o): Remove.
14517 (coding.o): Depend on intervals.h
14518 (emacs.o, bytecode.o): Depend on window.h
14519
14520 2003-09-01 Dave Love <fx@gnu.org>
14521
14522 * Makefile.in (alloca.o): Remove commands.
14523 (coding.o): Depend on intervals.h composite.h window.h.
14524 (emacs.o): Depend on window.h keyboard.h keymap.h.
14525 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
14526 (bytecode.o): Depend on window.h.
14527
14528 2003-08-31 Jason Rumney <jasonr@gnu.org>
14529
14530 * w32term.c (w32_per_char_metric): Allow cached metrics to be
14531 returned even when font_type is unknown.
14532
14533 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
14534
14535 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14536
14537 * xterm.c (x_term_init): Initialize new fields in x_display_info.
14538
14539 * xterm.h (struct x_display_info): Add red/green/blue_bits and
14540 *_offset.
14541
14542 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
14543 calculate pixel value.
14544
14545 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
14546
14547 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
14548 Don't tell redisplay display is accurate when it's actually been
14549 paused for pending input.
14550
14551 2003-08-29 Richard M. Stallman <rms@gnu.org>
14552
14553 * dispnew.c (adjust_glyph_matrix): Call window_box
14554 whenever W is nonzero.
14555
14556 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14557 (Fkill_local_variable, Fmake_variable_frame_local)
14558 (Flocal_variable_p, Flocal_variable_if_set_p):
14559 Use indirect_variable to trace thru variable aliases.
14560
14561 * config.in: Updated.
14562
14563 * callint.c (Fcall_interactively): Save and restore
14564 Vthis_command, Vthis_original_command, real_this_command,
14565 and current_kboard->Vlast_command.
14566
14567 * abbrev.c (Fexpand_abbrev): Insert before deleting.
14568
14569 2003-08-29 Gerd Moellmann <gerd@gnu.org>
14570
14571 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
14572
14573 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
14574
14575 * coding.c (decode_coding_iso2022): Initialize local variable c2.
14576 (decode_coding_sjis_big5): Likewise.
14577
14578 2003-08-27 Jason Rumney <jasonr@gnu.org>
14579
14580 * w32.c (sys_pipe): Protect against file descriptor overflow.
14581
14582 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
14583
14584 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
14585
14586 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
14587
14588 * xfns.c (Vgtk_version_string): New variable.
14589 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
14590
14591 2003-08-24 Eli Zaretskii <eliz@gnu.org>
14592
14593 * term.c (term_init): Remove `const' from buffer_size's declaration.
14594
14595 * Makefile.in (msdos.o): Depend on intervals.h.
14596
14597 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
14598
14599 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14600
14601 * xterm.h (struct x_display_info): New fields: client_leader_window
14602 and Xatom_wm_client_leader.
14603
14604 * xterm.c (x_initialize): Move call to x_session_initialize to ...
14605 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
14606
14607 * xsmfns.c (create_client_leader_window): New function.
14608 (x_session_initialize): Call create_client_leader_window, take
14609 dpyinfo as argument.
14610
14611 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
14612
14613 * Makefile.in (xsmfns.o): Add more depenedencies.
14614
14615 2003-08-21 Dave Love <fx@gnu.org>
14616
14617 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
14618
14619 2003-08-21 Kenichi Handa <handa@m17n.org>
14620
14621 * term.c (term_init): Fix previous change; don't rely on the
14622 length of `buffer' if TERMINFO is defined.
14623
14624 2003-08-20 Dave Love <fx@gnu.org>
14625
14626 * atimer.h: Include lisp.h.
14627
14628 * lisp.h (EMACS_LISP_H): New.
14629 (popup_activated_flag): Don't declare.
14630
14631 * alloca.c: Some merging with gnulib. Change logic and doc
14632 concerning (x)malloc/(x)free -- no longer Emacs-specific.
14633 [DO_BLOCK_INPUT]: Don't include lisp.h.
14634 (xmalloc, xfree): Declare.
14635 (malloc): Don't declare.
14636
14637 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
14638 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
14639 atimer.h, blockinput.h.
14640
14641 * alloc.c (lisp_align_malloc): Change type of `aligned'.
14642
14643 * alloca.s: Remove.
14644
14645 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14646
14647 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
14648 use -lncurses.
14649
14650 * term.c (term_init): Use a buffer of size 4096 for tgetent since
14651 FreeBSD returns something longer than 2044. Abort if the end of
14652 the buffer is overwritten.
14653
14654 2003-08-19 Miles Bader <miles@gnu.org>
14655
14656 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
14657
14658 2003-08-19 Gerd Moellmann <gerd@gnu.org>
14659
14660 * alloc.c (lisp_align_malloc): Check for memory full when
14661 allocating ablocks, which also avoids freeing a pointer into an
14662 ablocks structure.
14663
14664 * puresize.h (BASE_PURESIZE): Increase to 1100000.
14665
14666 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
14667
14668 2003-08-16 Richard M. Stallman <rms@gnu.org>
14669
14670 * editfns.c (Fencode_time): Doc fix.
14671
14672 2003-08-16 David Ponce <david@dponce.com>
14673
14674 * fileio.c (Fwrite_region): Fix conditional expression to issue
14675 the right message.
14676
14677 2003-08-16 Juri Linkov <juri@jurta.org>
14678
14679 * syntax.c (Fforward_word): Argument changed to optional.
14680 Set default value to 1.
14681
14682 2003-08-15 Kenichi Handa <handa@m17n.org>
14683
14684 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
14685 what autoscaled.
14686 (best_matching_font): Once we find a better scalable font, set
14687 non_scalable_has_exact_height_p to 1.
14688 (try_font_list): Call try_alternative_families to try any family
14689 with the given registry.
14690
14691 2003-08-09 Andreas Schwab <schwab@suse.de>
14692
14693 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
14694
14695 * print.c (print_string): Fix printing of multibyte string with
14696 nontrivial printcharfun.
14697
14698 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14699
14700 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
14701
14702 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
14703
14704 2003-07-31 Kenichi Handa <handa@m17n.org>
14705
14706 * process.c (read_process_output): Return the actually read bytes
14707 instead of the result of decoding.
14708
14709 2003-07-31 Kenichi Handa <handa@m17n.org>
14710
14711 * xterm.h (struct x_bitmap_record): New member have_mask.
14712
14713 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
14714 to 0.
14715 (x_create_bitmap_from_file): Likewise.
14716 (x_destroy_bitmap): Check have_mask member before freeing a mask.
14717 (x_destroy_all_bitmaps): Likewise.
14718 (x_create_bitmap_mask): Set have_mask member to 1.
14719
14720 2003-07-30 Richard M. Stallman <rms@gnu.org>
14721
14722 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
14723
14724 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14725
14726 * gtkutil.c (xg_mark_data): Update calls to mark_object.
14727
14728 2003-07-29 Richard M. Stallman <rms@gnu.org>
14729
14730 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
14731 Conditionalize XIM code on HAVE_XIM.
14732
14733 * fns.c (Fclear_string): New function.
14734 (syms_of_fns): defsubr it.
14735
14736 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14737
14738 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
14739
14740 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
14741
14742 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
14743
14744 * buffer.c (delete_all_overlays): New function.
14745 * buffer.h (delete_all_overlays): Declare.
14746 * coding.c (run_pre_post_conversion_on_str):
14747 * print.c (temp_output_buffer_setup):
14748 * fileio.c (Finsert_file_contents):
14749 * minibuf.c (get_minibuffer): Use it.
14750
14751 2003-07-22 Andrew Choi <akochoi@shaw.ca>
14752
14753 * unexmacosx.c (unexec_regions_sort_compare):
14754 (unexec_regions_merge): New functions. Sort and merge unexec
14755 regions before dumping them.
14756
14757 2003-07-22 Dave Love <fx@gnu.org>
14758
14759 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
14760
14761 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
14762
14763 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
14764 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
14765 MARKBIT as the gcmarkbit for strings.
14766
14767 2003-07-21 Richard M. Stallman <rms@gnu.org>
14768
14769 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
14770
14771 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
14772 (syms_of_fns): Corresponding change.
14773
14774 * alloc.c (syms_of_alloc): Doc fixes.
14775
14776 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
14777
14778 * s/netbsd.h: Use -Wl syntax.
14779
14780 2003-07-17 Richard M. Stallman <rms@gnu.org>
14781
14782 * xterm.c (xim_initialize): Redo 6/24 change.
14783
14784 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
14785
14786 * buffer.c (copy_overlays): Use EMACS_INT for positions.
14787 (Fswitch_to_buffer): Don't signal an error when switching to the same
14788 buffer in a dedicated window.
14789
14790 * alloc.c: Use bitmaps for cons, as was done for floats.
14791 (init_float, init_cons): Let the normal code allocate the first block.
14792 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
14793 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
14794 New macros.
14795 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
14796 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
14797 (live_cons_p): Check the pointer is not past the `conses' array.
14798 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
14799 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
14800 (survives_gc_p): Use CONS_MARKED_P and simplify.
14801 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
14802
14803 2003-07-13 Paul Eggert <eggert@twinsun.com>
14804
14805 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
14806 puts it into BSS instead, at least on Solaris 8 and 9.
14807 This is a valid optimization, and it may occur on other platforms,
14808 so Emacs should not assume that initializing a static variable to
14809 zero puts it into data.
14810 * alloc.c (pure, staticvec):
14811 Initialize these arrays to nonzero, so that they're not
14812 put into BSS by that optimization.
14813
14814 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
14815
14816 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
14817 (lisp_align_malloc): Use posix_memalign is available.
14818 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
14819 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
14820 for consistency. Update users.
14821
14822 2003-07-13 Richard M. Stallman <rms@gnu.org>
14823
14824 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
14825
14826 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
14827
14828 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
14829 and use the Gtk+ function gtk_window_icon_from_file if available.
14830
14831 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
14832 handle mask of bitmaps.
14833 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
14834 mask property.
14835 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
14836
14837 * xterm.h (xg_set_icon): New function.
14838
14839 2003-07-12 Paul Eggert <eggert@twinsun.com>
14840
14841 * unexelf.c (unexec): Consider a section to precede the .bss
14842 section if its addresses overlap that of .bss.
14843
14844 2003-07-12 Richard M. Stallman <rms@gnu.org>
14845
14846 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
14847
14848 * config.in (HAVE_CRTIN): Add #undef.
14849 (INLINE): Really inline only if OPTIMIZE is defined.
14850
14851 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
14852 END_FILES_1.
14853 (START_FILES_1, END_FILES_1): New macros (conditional).
14854 (LD_SWITCH_SYSTEM_TEMACS): Define.
14855
14856 * s/openbsd.h: Don't include bsd4-3.h.
14857 (TERMINFO): Define.
14858 (LIBS_TERMCAP): Define.
14859 (LD_SWITCH_SYSTEM): Define (two definitions).
14860
14861 * xfns.c: Include libpng/png.h instead of png.h.
14862
14863 2003-07-11 Andreas Schwab <schwab@suse.de>
14864
14865 * buffer.c (modify_overlay): Update prototype.
14866 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
14867 Likewise.
14868
14869 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14870
14871 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
14872 (struct interval): Move to intervals.h.
14873 (struct Lisp_Marker): Use EMACS_INT for position info.
14874 (forward_point): Remove prototype of defunct function.
14875 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
14876 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
14877 (syms_of_textprop, set_text_properties): Remove prototypes that are
14878 already in intervals.h.
14879
14880 * intervals.h (struct interval): Move from lisp.h.
14881 Use EMACS_INT for position and size info.
14882
14883 * coding.c: Include intervals.h for Fset_text_properties.
14884
14885 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14886 position and length information.
14887
14888 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14889
14890 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
14891 position and length information.
14892
14893 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
14894
14895 Change overlays_after and overlays_before so the overlays themselves
14896 are linked into lists, rather than using cons cells. After all each
14897 Lisp_Misc already occupies 5 words, so we can add a `next' field to
14898 Lisp_Overlay for free and save up one cons cell per overlay (not
14899 to mention one indirection when traversing the list of overlay).
14900
14901 * lisp.h (struct Lisp_Overlay): New field `next'.
14902
14903 * buffer.h (struct buffer): Change overlays_before and overlays_after
14904 from Lisp lists of overlays to pointers to overlays.
14905
14906 * buffer.c (overlay_strings, recenter_overlay_lists):
14907 Fix typo in eassert in last commit.
14908 (unchain_overlay): New function.
14909 (add_overlay_mod_hooklist): Use AREF.
14910 (copy_overlays, reset_buffer, overlays_at, overlays_in)
14911 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
14912 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
14913 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
14914 (report_overlay_modification, evaporate_overlays, init_buffer_once):
14915 Adjust to new type of overlays_(before|after).
14916
14917 * alloc.c (mark_object): Mark the new `next' field of overlays.
14918 (mark_buffer): Manually mark the overlays_(after|before) fields.
14919
14920 * coding.c (run_pre_post_conversion_on_str):
14921 * editfns.c (overlays_around):
14922 * xdisp.c (load_overlay_strings):
14923 * fileio.c (Finsert_file_contents):
14924 * indent.c (current_column):
14925 * insdel.c (signal_before_change, signal_after_change):
14926 * intervals.c (set_point_both):
14927 * print.c (temp_output_buffer_setup): Use new type for
14928 overlays_(before|after).
14929
14930 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
14931
14932 * buffer.c (report_overlay_modification): Don't run hooks while
14933 traversing the list of overlays.
14934
14935 * buffer.h (struct buffer): Use an int for overlay_center.
14936 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14937 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14938
14939 * buffer.c (reset_buffer, recenter_overlay_lists)
14940 (adjust_overlays_for_insert, adjust_overlays_for_delete)
14941 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
14942 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
14943 (overlays_at, evaporate_overlays, recenter_overlay_lists)
14944 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
14945
14946 * xdisp.c (fast_find_position): Remove unused var.
14947
14948 * cmds.c (Qexpand_abbrev): New sym.
14949 (syms_of_cmds): Initialize it.
14950 (internal_self_insert): Use it to call expand-abbrev.
14951
14952 2003-07-09 Kim F. Storm <storm@cua.dk>
14953
14954 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
14955 was configured with --without-xim.
14956 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
14957
14958 2003-07-07 Richard M. Stallman <rms@gnu.org>
14959
14960 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
14961
14962 * alloc.c (Fgarbage_collect): Doc fix.
14963
14964 2003-07-07 Nozomu Ando <nand@mac.com>
14965
14966 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
14967
14968 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14969
14970 * minibuf.c (read_minibuf): UNGCPRO before returning.
14971 (Ftry_completion, Fall_completions): Doc fix.
14972
14973 * alloc.c (live_float_p): Check that p is not past the `floats' array,
14974 now that `floats' is not the last element of the struct any more.
14975
14976 2003-07-06 Jason Rumney <jasonr@gnu.org>
14977
14978 * w32term.h (ClipboardSequence_Proc): New type.
14979
14980 * w32fns.c (clipboard_sequence_fn): New variable.
14981 (globals_of_w32fns): Initialize it.
14982
14983 * w32select.c (last_clipboard_sequence_number): New variable.
14984 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
14985 number if possible.
14986
14987 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
14988
14989 * m/amdx86-64.h (MARKBIT):
14990 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
14991 MARKBIT and ARRAY_MARK_FLAG any more.
14992
14993 * m/hp800.h (XSETMARKBIT):
14994 * m/sr2k.h (XSETMARKBIT):
14995 * lisp.h (XSETMARKBIT): Remove unused macro.
14996
14997 * lisp.h (mark_object): Change prototype.
14998
14999 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
15000 (last_marked): Change accordingly.
15001 (mark_interval, mark_maybe_object, mark_maybe_pointer)
15002 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
15003 (mark_buffer): Update calls to mark_object.
15004
15005 * bytecode.c (mark_byte_stack):
15006 * fns.c (sweep_weak_table):
15007 * keyboard.c (mark_kboards): Update calls to mark_object.
15008
15009 2003-07-06 Jason Rumney <jasonr@gnu.org>
15010
15011 * alloc.c (struct ablock): Only include padding when there is some.
15012
15013 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
15014
15015 * alloc.c (ALIGN): Add casts to simplify usage.
15016 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
15017 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
15018 (struct ablock, struct ablocks): New types.
15019 (free_ablock): New global var.
15020 (lisp_align_malloc, lisp_align_free): New functions.
15021 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
15022 (struct float_block): Reorder and add gcmarkbits.
15023 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
15024 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
15025 (init_float, make_float): Use lisp_align_malloc.
15026 (free_float, live_float_p): Don't use `type' any more.
15027 (make_float): Use FLOAT_UNMARK to access to mark bit.
15028 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
15029 Use FLOAT_MARKED_P to access the mark bit.
15030 (pure_alloc): Simplify use of ALIGN.
15031 (mark_object): Use FLOAT_MARK to access the mark bit.
15032 (gc_sweep): Use new macros to access the float's mark bit.
15033 (init_alloc_once): Init free_ablock.
15034
15035 * lisp.h (struct Lisp_Float): Remove unused field `type'.
15036
15037 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
15038
15039 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
15040 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
15041 (allocate_buffer): Move.
15042 (string_bytes): Don't mask markbit of `size_byte'.
15043 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15044 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
15045 Use the `size' field of buffers (rather than the `name' field) for
15046 the mark bit, as is done for all other vectorlike objects.
15047 Use the new macros to access the mark bit of vectorlike objects.
15048
15049 2003-06-26 Richard M. Stallman <rms@gnu.org>
15050
15051 * puresize.h (BASE_PURESIZE): Increment base size.
15052
15053 * xdisp.c (fast_find_position): Enable Gerd's new definition.
15054
15055 * xterm.c (xim_initialize): Undo previous change.
15056
15057 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
15058
15059 * alloc.c (survives_gc_p): Simplify.
15060
15061 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
15062
15063 * window.c (Fset_window_dedicated_p): Simplify.
15064 (display_buffer_1): Don't raise the win from which minibuf was entered.
15065 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
15066 (Fminibuffer_selected_window): Simplify.
15067
15068 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
15069
15070 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
15071 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
15072
15073 * insdel.c (check_markers, adjust_markers_for_delete)
15074 (adjust_markers_for_insert, adjust_markers_for_replace)
15075 (prepare_to_modify_buffer, RESTORE_VALUE):
15076 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
15077 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
15078 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
15079 * alloc.c (Fmake_marker, free_marker, gc_sweep):
15080 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
15081 * editfns.c (save_excursion_restore, transpose_markers):
15082 * window.c (delete_window):
15083 * xdisp.c (message_dolog): Update for new types.
15084
15085 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15086
15087 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
15088 (realize_default_face): Use default_face_done_p for the force_p
15089 argument to set_lface_from_font_name. Set default_face_done_p to one.
15090
15091 * frame.c (make_frame): Initialize default_face_done_p.
15092
15093 * frame.h (struct frame): Add default_face_done_p.
15094
15095 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
15096 will be defined.
15097
15098 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
15099
15100 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
15101 Initialize the new field `gcmarkbit'.
15102 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
15103 (mark_interval_tree): Don't mark the tree separately from the nodes.
15104 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
15105 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15106 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
15107
15108 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
15109 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
15110 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
15111 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
15112 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
15113
15114 2003-06-24 Dave Love <fx@gnu.org>
15115
15116 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
15117
15118 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
15119 from gnulib.
15120
15121 2003-06-21 Richard M. Stallman <rms@gnu.org>
15122
15123 * fileio.c (Fwrite_region): Alternate messages
15124 for append and partial write.
15125
15126 * keyboard.c (read_key_sequence): When converting upcase fn key to
15127 downcase, update fkey and keytran so `backspace' gets translated.
15128
15129 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
15130
15131 * process.c (wait_reading_process_input): Don't signal SIGIO
15132 in batch mode.
15133
15134 2003-06-17 Kenichi Handa <handa@m17n.org>
15135
15136 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
15137 composite.h.
15138
15139 * xselect.c: Don't include charset.h, coding.h, composite.h.
15140 (Qforeign_selection): New variable.
15141 (syms_of_xselect): Intern and static it.
15142 (selection_data_to_lisp_data): Return a unibyte string made from
15143 data with `foreign-selection' text property.
15144
15145 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
15146
15147 * termhooks.h (EVENT_INIT): New macro.
15148
15149 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
15150
15151 * alloc.c (mark_kboards): Move to keyboard.c.
15152
15153 * keyboard.c (record_asynch_buffer_change, read_avail_input):
15154 * xterm.c (x_dispatch_event):
15155 * xmenu.c (find_and_call_menu_selection):
15156 * xdisp.c (handle_tool_bar_click):
15157 * w32menu.c (menubar_selection_callback):
15158 * sysdep.c (kbd_input_ast, read_input_waiting):
15159 * msdos.c (dos_rawgetc):
15160 * macterm.c (mac_check_for_quit_char):
15161 * macmenu.c (menubar_selection_callback):
15162 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
15163 data to kbd_buffer_store_event.
15164
15165 2003-06-15 Kim F. Storm <storm@cua.dk>
15166
15167 * xdisp.c (x_fix_overlapping_area): Always use area relative X
15168 to fix redisplay problem with tall characters (such as \e,AC\e(B).
15169
15170 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15171
15172 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
15173
15174 2003-06-12 Kenichi Handa <handa@m17n.org>
15175
15176 * fileio.c (Fwrite_region): Save and restore restriction.
15177
15178 2003-06-12 Dave Love <fx@gnu.org>
15179
15180 * alloca.c (alloca): Declare arg as size_t.
15181
15182 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
15183 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
15184
15185 2003-06-11 Dave Love <fx@gnu.org>
15186
15187 * search.c (shrink_regexp_cache): Use xrealloc.
15188 (syms_of_search): Use xmalloc.
15189
15190 2003-06-10 Kim F. Storm <storm@cua.dk>
15191
15192 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
15193 Adjust phys_cursor.x to be relative to window box, rather than
15194 text area before checking -- to ensure cursor is redrawn when
15195 exposing window.
15196 Note: This also fixes a similar (older) bug if display margins
15197 are present.
15198
15199 2003-06-06 Kenichi Handa <handa@m17n.org>
15200
15201 * coding.c (encoding_buffer_size): If coding->type is
15202 coding_type_ccl, double magnification on CRLF encoding.
15203
15204 2003-06-06 Jason Rumney <jasonr@gnu.org>
15205
15206 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
15207 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
15208
15209 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
15210 Mac too.
15211
15212 2003-06-05 Dave Love <fx@gnu.org>
15213
15214 * strftime.c: Merge changes from gnulib.
15215
15216 * mktime.c (__mktime_internal): Merge changes from gnulib
15217 involving year 69 and dst2.
15218
15219 Changes to merge with gnulib version and be consistent with the
15220 autoconf test:
15221
15222 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
15223 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
15224 [HAVE_LOCALE_H]: Include locale.h.
15225 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
15226
15227 2003-06-05 Kim F. Storm <storm@cua.dk>
15228
15229 * window.c (coordinates_in_window): Convert X and Y to window
15230 relative coordinates inside mode-line and header-line parts.
15231 Convert X and Y to margin area relative coordinates inside left
15232 and right display margin parts.
15233
15234 2003-06-05 Jason Rumney <jasonr@gnu.org>
15235
15236 * w32fns.c (add_system_logical_colors_to_map): New function.
15237 (Fx_open_connection): Use it.
15238
15239 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
15240
15241 * process.c (allocate_pty): Revert part of the previous patch.
15242 (Faccept_process_output): Simplify.
15243
15244 2003-06-04 Jason Rumney <jasonr@gnu.org>
15245
15246 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
15247
15248 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
15249 (lispy_mouse_wheel_names): Remove.
15250 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
15251 Always define drag_and_drop_syms.
15252
15253 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
15254 WHEEL_EVENT events.
15255
15256 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
15257
15258 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
15259
15260 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
15261
15262 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15263
15264 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
15265 menu item label.
15266
15267 2003-06-03 Richard M. Stallman <rms@gnu.org>
15268
15269 * window.c (Fwindow_edges): Doc fix.
15270 (Fwindow_pixel_edges, Fwindow_inside_edges)
15271 (Fwindow_inside_pixel_edges): New functions.
15272 (syms_of_window): defsubr them.
15273
15274 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
15275 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
15276
15277 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
15278
15279 * dispnew.c (Fsit_for): Don't lie about the number of args.
15280
15281 2003-06-02 Dave Love <fx@gnu.org>
15282
15283 * callproc.c: Use HAVE_FCNTL_H, not USG5.
15284 (syms_of_callproc) <process-environment>: Doc fix.
15285
15286 * doc.c: Use HAVE_FCNTL_H, not USG5.
15287
15288 * xfaces.c (font_rescale_ratio): Fix for K&R.
15289
15290 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
15291
15292 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
15293
15294 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
15295
15296 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
15297 (xg_create_frame_widgets): Use ENCODE_UTF_8.
15298
15299 * xterm.c (Qutf_8): Move to coding.c
15300
15301 * xmenu.c (ENCODE_MENU_STRING): New.
15302 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
15303 Use it.
15304
15305 * coding.h (ENCODE_UTF_8): New.
15306 (Qutf_8): Declare.
15307
15308 * coding.c (Qutf_8): New.
15309 (syms_of_coding): Intern it.
15310
15311 * fns.c: Doc fixes.
15312
15313 2003-06-02 Kenichi Handa <handa@m17n.org>
15314
15315 * buffer.c (Fset_buffer_multibyte): Fix previous change.
15316
15317 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
15318
15319 * lread.c (openp): Make sure STR is a string.
15320
15321 2003-06-01 David Ponce <david@dponce.com>
15322
15323 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
15324 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
15325
15326 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
15327 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
15328 (discard_mouse_events): Discard WHEEL_EVENT events too.
15329 (lispy_wheel_names, wheel_syms): New.
15330 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
15331 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
15332 (make_lispy_event): Add WHEEL_EVENT handler.
15333
15334 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
15335 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
15336 WHEEL_EVENT events.
15337
15338 2003-05-31 John Paul Wallington <jpw@gnu.org>
15339
15340 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
15341 timer are in lisp/emacs-lisp.
15342
15343 2003-05-31 Kenichi Handa <handa@m17n.org>
15344
15345 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
15346 region when a buffer is changed to unibyte.
15347
15348 * charset.h (VALID_LEADING_CODE_P): New macro.
15349 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
15350
15351 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
15352 is nonzero, accept multibyte form of eight-bit-control chars.
15353 (decode_composition_emacs_mule): Likewise.
15354 (decode_coding_emacs_mule): Likewise.
15355 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
15356 multibyte form of eight-bit-control chars.
15357
15358 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
15359 (Finsert_file_contents): If coding-system-for-read is bound to
15360 Qauto_save_coding, use the coding system emacs-mule with special
15361 setting for recovering a file.
15362 (choose_write_coding_system): On auto saving, use the coding
15363 system emacs-mule with special setting for auto saving.
15364 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
15365
15366 2003-05-30 Kenichi Handa <handa@m17n.org>
15367
15368 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
15369 properly before calling ccl_driver.
15370
15371 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
15372
15373 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
15374 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
15375 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
15376
15377 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
15378
15379 * xfaces.c (realize_default_face): Do not abort if lface is
15380 non-existent - reverts change from 2003-05-19.
15381
15382 2003-05-29 Kenichi Handa <handa@m17n.org>
15383
15384 * coding.c (decode_coding_iso2022): Pay attention to the byte
15385 sequence of CTEXT extended segment, and retain those bytes as is.
15386
15387 2003-05-28 Kenichi Handa <handa@m17n.org>
15388
15389 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
15390 of CODING_REPLACEMENT_CHARACTER.
15391 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
15392 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
15393 check this flag on encoding.
15394 (encode_coding_sjis_big5):
15395 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
15396 (Fset_terminal_coding_system_internal):
15397 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
15398 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
15399
15400 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
15401 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15402 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
15403
15404 2003-05-28 Richard M. Stallman <rms@gnu.org>
15405
15406 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
15407
15408 * eval.c (unbind_to): Move init of this_binding to separate statement.
15409
15410 2003-05-28 Kim F. Storm <storm@cua.dk>
15411
15412 * xdisp.c (expose_window): Fix error in calculation of
15413 window relative coordinates of area to redisplay.
15414
15415 2003-05-27 Jason Rumney <jasonr@gnu.org>
15416
15417 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
15418
15419 2003-05-27 David Ponce <david@dponce.com>
15420
15421 Handle W32 mouse wheel events as mouse click events, like in X.
15422
15423 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
15424 MOUSE_WHEEL_EVENT anymore.
15425
15426 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
15427 Scrolling down/up the mouse wheel is respectively mapped to mouse
15428 button 4 and 5.
15429 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
15430 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
15431 WM_MOUSEWHEEL events.
15432
15433 2003-05-27 Andreas Schwab <schwab@suse.de>
15434
15435 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
15436
15437 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
15438 partially visible line.
15439
15440 * alloc.c (Fgarbage_collect): Fix last change.
15441
15442 2003-05-26 John Paul Wallington <jpw@gnu.org>
15443
15444 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
15445
15446 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
15447
15448 * window.c (Fset_window_buffer): Add type of `keep_margins'.
15449 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
15450
15451 * window.h (window_box_text_cols): Declare.
15452
15453 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
15454 (x_draw_vertical_border): Remove unused var `f'.
15455
15456 * xfaces.c (build_scalable_font_name): Remove `unused var
15457 pixel_size' warning.
15458
15459 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
15460
15461 * unexelf.c (unexec): Remove `unused var n' warning.
15462
15463 * strftime.c (my_strftime_localtime_r): Remove `defined but
15464 unused' warning.
15465
15466 * process.c (allocate_pty): Remove `unused var stb' and
15467 `cp might be used uninitialized' warnings.
15468
15469 * dispnew.c (mode_line_string): Remove unused var `f'.
15470
15471 * coding.c (find_safe_codings): Remove unused var `i'.
15472
15473 * bytecode.c (Fbyte_code): Remove `unused val' warning.
15474
15475 * buffer.c (Fkill_buffer): Remove unused var `list'.
15476
15477 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
15478
15479 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15480
15481 * frame.c (make_frame): Condition want_fullscreen with
15482 HAVE_WINDOW_SYSTEM.
15483
15484 2003-05-25 Juanma Barranquero <lektu@terra.es>
15485
15486 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
15487 (Fwindow_scroll_bars): Fix typo in docstring.
15488
15489 2003-05-24 Kim F. Storm <storm@cua.dk>
15490
15491 The following changes serve several purposes:
15492
15493 1) Swap the position of fringes and display margins in windows, i.e.
15494 the fringes are now displayed between the margins and the text area
15495 (by default).
15496
15497 2) Allow fringe and scroll bar parameters to be set per-buffer and
15498 per-window (like display margins). Such settings are now stored
15499 in window configurations, preserved when frames are resized, and
15500 copied when windows are split vertically or horizontally.
15501 Several bugs related to display margins have been fixed.
15502
15503 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
15504
15505 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
15506 rather than FRAME_WIDTH (FRAME_FONT (f)).
15507
15508 5) Introduce a consistent naming of variables, members and macros
15509 depending on whether their value is measured in pixels or in
15510 canonical columns/lines. Pixel dimensions are named *_width and
15511 *_height, while canonical columns/lines are named *_cols and
15512 *_lines. Pixel positions are named *_x and *_y, while column/line
15513 positions are named *_col and *_line.
15514
15515 6) Consolidate more of the X, W32, and MAC gui code by moving
15516 common data into struct frame, and generalize it for the non-gui
15517 case by using suitable defaults.
15518
15519 7) Cleanup and consolidate the macros controlling frame and window
15520 layout into frame.h and window.h, and generalize the use of the
15521 various window_box_* functions (enhanced to handle the new fringe
15522 position and the per-window fringe and scroll bar settings).
15523
15524 * frame.h (struct frame): Rename members height to text_lines,
15525 width to text_cols, window_height to total_lines, window_width to
15526 total_cols, new_height to new_text_lines, new_width to
15527 new_text_cols. All uses changed.
15528 (struct frame): New members which consolidate common members of
15529 x_output, w32_output, and mac_output structures: left_pos,
15530 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
15531 win_gravity, size_hint_flags, border_width, internal_border_width,
15532 line_height, fringe_cols, left_fringe_width, right_fringe_width,
15533 want_fullscreen. All uses changed.
15534 (struct frame): New member column_width contaning the canonical
15535 column width, analogue to line_height. All uses changed.
15536 (struct frame): Rename members scroll_bar_pixel_width to
15537 config_scroll_bar_width, and scroll_bar_cols to
15538 config_scroll_bar_cols. All uses changed.
15539 (struct frame): New member scroll_bar_actual_width which
15540 consolidates and renames the vertical_scroll_bar_extra member of
15541 x_output, w32_output, and mac_output structures. All uses changed.
15542 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
15543 from x/w32/macterm.h files. All uses changed. Also change code
15544 which referred to f->output_data...->pixel_height.
15545 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
15546 from x/w32/macterm.h files. All uses changed. Also change code
15547 which referred to f->output_data...->pixel_width.
15548 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
15549 Also change code which referred to f->height.
15550 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
15551 Also change code which referred to f->width.
15552 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
15553 to update new_text_lines and new_text_cols members directly.
15554 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
15555 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
15556 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
15557 FRAME_SCROLL_BAR_COLS. All uses changed.
15558 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
15559 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
15560 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
15561 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
15562 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
15563 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
15564 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
15565 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
15566 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
15567 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
15568 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
15569 Unconditionally return line_height member (it now has proper value
15570 also for non-window frames).
15571 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
15572 return new column_width member (rather than the default font width).
15573 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
15574 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
15575 from x/w32/macterm.h files. Unconditionally return corresponding
15576 member of frame structure (they now have proper values also for
15577 non-window frames).
15578 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
15579 Calculate return value from left and right widths.
15580 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
15581 internal_border_width member (has proper value for non-window frame).
15582 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
15583 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
15584 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
15585 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
15586 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
15587 consolidated from xterm.h, macterm.h, and w32term.h.
15588 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
15589 consolidated from xterm.h, macterm.h, and w32term.h.
15590 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
15591 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
15592 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
15593 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
15594 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
15595 consolidated from x/mac/w32term.h.
15596 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
15597 consolidated from x/mac/w32term.h.
15598 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
15599 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
15600 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
15601 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
15602
15603 * window.h (struct window): Rename members left to left_col,
15604 top to top_line, height to total_lines, width to total_cols,
15605 left_margin_width to left_margin_cols, right_margin_width to
15606 right_margin_cols, orig_height to orig_total_lines, orig_top to
15607 orig_top_line. All uses changed.
15608 (struct window): New members left_fringe_width, right_fringe_width,
15609 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
15610 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
15611 New macros primarily used to simplify other macros.
15612 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
15613 referred to XINT (w->width).
15614 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
15615 referred to XINT (w->height).
15616 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
15617 referred to XINT (w->width) * canon_x_unit.
15618 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
15619 referred to XINT (w->height) * canon_y_unit.
15620 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
15621 referred to XINT (w->left).
15622 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
15623 all uses and code that referred to XINT (w->left) + XINT (w->width).
15624 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
15625 referred to XINT (w->top).
15626 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
15627 referred to XINT (w->top) + XINT (w->height).
15628 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
15629 referred to XINT (w->left) * canon_x_unit.
15630 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
15631 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
15632 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
15633 referred to XINT (w->top) * canon_y_unit.
15634 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
15635 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
15636 (WINDOW_LEFTMOST_P): New macro.
15637 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
15638 All uses changed.
15639 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
15640 All uses changed.
15641 (WINDOW_BOX_LEFT_EDGE_X): Rename from
15642 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
15643 Do not exclude left fringe width.
15644 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
15645 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
15646 Do not exclude fringe widths.
15647 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
15648 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
15649 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
15650 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
15651 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
15652 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
15653 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
15654 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
15655 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
15656 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
15657 New macros. Change code which referenced corresponding
15658 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
15659 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
15660 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
15661 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
15662 allow per-window scroll-bar settings.
15663 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
15664 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
15665 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
15666 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
15667 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
15668 FRAME_SCROLL_BAR_WIDTH.
15669 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
15670 (WINDOW_SCROLL_BAR_AREA_X): New macros.
15671 (WINDOW_HEADER_LINE_HEIGHT): Rename from
15672 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
15673 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
15674 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
15675 (WINDOW_BOX_TEXT_HEIGHT): Rename from
15676 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
15677 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15678 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15679 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
15680 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
15681 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15682 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
15683 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
15684 (window_from_coordinates): Update prototype.
15685 (Fset_window_buffer): Update EXFUN.
15686 (set_window_buffer): Update prototype.
15687
15688 * dispextern.h (struct glyph_matrix): Rename members window_left_x
15689 to window_left_col, window_top_y to window_top_line. All uses
15690 changed.
15691 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
15692 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
15693 internal_border_width is now set to 0 for non-window frames.
15694 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
15695 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
15696 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
15697 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
15698 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
15699 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
15700 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
15701 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
15702 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
15703 Move to window.h and renamed [see window.h changes].
15704 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
15705 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
15706 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
15707 Use WINDOW_TOTAL_LINES.
15708 (frame_update_line_height): Remove prototype.
15709
15710 * buffer.h (struct buffer): Rename members measured in columns:
15711 left_margin_width to left_margin_cols, right_margin_width to
15712 right_margin_cols. All uses changed.
15713 New members left_fringe_width, right_fringe_width,
15714 fringes_outside_margins for per-buffer fringe settings.
15715 New members scroll_bar_width and vertical_scroll_bar_type for
15716 per-buffer scroll bar settings.
15717
15718 * buffer.c (init_buffer_once): Set buffer_defaults and
15719 buffer_local_flags for new buffer-local variables
15720 left_fringe_width, right_fringe_width, fringes_outside_margins,
15721 scroll_bar_width, and vertical_scroll_bar_type.
15722 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
15723 default-* variables for them.
15724
15725 * dispnew.c: Make (many) trivial substitutions for renamed and
15726 new macros in dispextern.h, frame.h and window.h.
15727 (mode_line_string): No need to adjust width for mode lines, as it
15728 is already adjusted by the caller.
15729 (marginal_area_string): Handle fringes inside/outside margins.
15730
15731 * frame.c: Make (many) trivial substitutions for renamed and
15732 new macros in dispextern.h, frame.h and window.h.
15733 (make_frame): Initialize left_fringe_width, right_fringe_width,
15734 fringe_cols, scroll_bar_actual_width, border_width,
15735 internal_border_width, column_width, line_height, x_pixels_diff,
15736 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
15737 members with values suitable for a non-window frames.
15738
15739 * gtkutil.c: Make (many) trivial substitutions for renamed and
15740 new macros in dispextern.h, frame.h and window.h.
15741
15742 * indent.c: Make (few) trivial substitutions for renamed and
15743 new macros in dispextern.h, frame.h and window.h.
15744
15745 * keyboard.c: Make (many) trivial substitutions for renamed and
15746 new macros in dispextern.h, frame.h and window.h.
15747 (make_lispy_event): Use window positions returned from
15748 window_from_coordinates when constructing the lisp event for
15749 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
15750 (incorrect) values locally.
15751 (make_lispy_movement): Use window positions returned from
15752 window_from_coordinates when constructing the lisp event, rather
15753 than calculating (incorrect) values locally.
15754
15755 * scroll.c: Make (some) trivial substitutions for renamed and
15756 new macros in dispextern.h, frame.h and window.h.
15757
15758 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
15759 scroll-bars.
15760
15761 * sysdep.c: Make (few) trivial substitutions for renamed and
15762 new macros in dispextern.h, frame.h and window.h.
15763
15764 * term.c: Make (some) trivial substitutions for renamed and
15765 new macros in dispextern.h, frame.h and window.h.
15766
15767 * widget.c: Make (few) trivial substitutions for renamed and
15768 new macros in dispextern.h, frame.h and window.h.
15769
15770 * window.c: Make (many) trivial substitutions for renamed and
15771 new macros in dispextern.h, frame.h and window.h.
15772 (make_window): Initialize new members
15773 left_margin_cols, right_margin_cols, left_fringe_width,
15774 right_fringe_width, fringes_outside_margins, scroll_bar_width,
15775 and vertical_scroll_bar_type.
15776 (coordinates_in_window): Adapt to new fringe/margin positions
15777 and per-window fringes and scroll-bars.
15778 Fix bug related to incorrectly adjusting coordinates by
15779 frame's internal_border_width (the effect normally negible since
15780 the internal_border_width is typically 0 or 1 pixel, but very
15781 noticeable for an internal_border_width of e.g. 25 pixels).
15782 Upon successful return (other than ON_NOTHING), the coordinates
15783 are now always properly converted to window relative for the
15784 given display element.
15785 (window_from_coordinates): Add new parameters wx and wy to
15786 return the window relative x and y position in the returned
15787 window and part. A null arg means, don't return the position.
15788 All callers changed.
15789 (adjust_window_margins): New function which may reduce the width
15790 of the display margins if a window's text area is too small after
15791 resizing or splitting windows.
15792 (size_window): Fix bug that did not account for display margin
15793 widths when checking the minimum width of a window; use
15794 adjust_window_margins.
15795 (set_window_buffer): Call Fset_window_fringes and
15796 Fset_window_scroll_bars to setup per-window elements.
15797 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
15798 existing display margin, fringe widths, and scroll bar settings
15799 (e.g. after splitting a window or resizing the frame).
15800 All callers changed.
15801 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
15802 (Fsplit_window): Duplicate original window's display margin,
15803 fringe, and scroll-bar settings; then call Fset_window_buffer with
15804 KEEP_MARGINS non-nil. This fixes a bug which caused a split
15805 window to only preserve the display margins in one of the windows.
15806 When splitting horizontally, call adjust_window_margins on both
15807 windows to ensure that the text area of the new windows is non too
15808 narrow. This fixes a bug which could cause Emacs to trap if the
15809 width of the split window was less than the width of the display
15810 margins.
15811 (window_box_text_cols): Rename from window_internal_width.
15812 All uses changed. Adapt to per-window fringes and scroll bars.
15813 Fix bug that caused vertical separator to be subtracted also on
15814 window frames. Fix another bug that did not reduce the returned
15815 value by the columns used for display margins.
15816 (window_scroll_line_based): Fix bug related to scrolling too much
15817 when display margins are present (implicitly fixed by the fix to
15818 window_box_text_cols).
15819 (scroll_left, scroll_right): Fix bug related to scrolling too far
15820 by default when display margins are present (implicitly fixed by
15821 the fix to window_box_text_cols).
15822 (struct saved_window): Rename members left to left_col, top to
15823 top_line, width to total_cols, height to total_lines, orig_top to
15824 orig_top_line, orig_height to orig_total_lines. All uses changed.
15825 New members left_margin_cols, right_margin_cols,
15826 left_fringe_width, right_fringe_width, fringes_outside_margins,
15827 scroll_bar_width, and vertical_scroll_bar_type for saving
15828 per-window display elements.
15829 (Fset_window_configuration): Restore display margins, fringes,
15830 and scroll bar settings. This fixes a bug which caused display
15831 margins to be discarded when saving and restoring a window
15832 configuration.
15833 (save_window_save): Save display margins, fringes, and scroll bar
15834 settings. This fixes a bug which caused display margins to be
15835 discarded when saving and restoring a window configuration.
15836 (Fset_window_margins): Do nothing if display margins are not
15837 really changed. Otherwise, call adjust_window_margins to ensure
15838 the text area doesn't get too narrow. This fixes a bug which
15839 could cause Emacs to trap if setting display margins wider than
15840 the width of the window.
15841 (Fset_window_fringes): New defun to allow user to specifically set
15842 this window's fringe widths and position vs. display margins.
15843 (Fwindow_fringes): New defun to return window's actual fringe settings.
15844 (Fset_window_scroll_bars): New defun to allow user to specifically
15845 set this window's scroll bar width and position.
15846 (Fwindow_scroll_bars): New defun to return window's actual scroll
15847 bar settings.
15848 (compare_window_configurations): Also compare display margins,
15849 fringes, and scroll bar settings.
15850 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
15851
15852 * xdisp.c: Make (many) trivial substitutions for renamed and
15853 new macros in dispextern.h, frame.h and window.h.
15854 (window_box_width): Adapt to per-window fringes and scroll bars,
15855 and new fringe vs. display margin position. Note that returned
15856 value is no longer guaranteed to be a whole multiple of the frame
15857 column width, since per-window fringes may now be any width.
15858 (window_box_left_offset): New function like window_box_left, but
15859 value is relative to left border of window (rather than frame).
15860 (window_box_right_offset): New function like window_box_right,
15861 but value is relative to left border of window.
15862 (window_box_left): Adapt to per-window fringes and scroll bars,
15863 and new fringe vs. display margin position. Simplify by using
15864 WINDOW_LEFT_EDGE_X and window_box_left_offset.
15865 (window_box): Allow null args for unnecessary return values;
15866 change/simplify relevant callers.
15867 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
15868 and new fringe vs. display margin position.
15869 Use window_box_left_offset and window_box_right_offset
15870 (get_glyph_string_clip_rect): Adapt to per-window fringes and
15871 scroll bars, and new fringe vs. display margin position.
15872 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
15873 (draw_fringe_bitmap): Rework to handle per-window fringes and new
15874 fringe vs. display margin position.
15875 (hscroll_window_tree): Use window_box_width instead of window_box.
15876 (redisplay_window): Adapt to per-window scroll bars.
15877 (draw_glyphs): Rework to handle per-window fringes and scroll
15878 bars, and new fringe vs. display margin position.
15879 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
15880 (x_clear_end_of_line): Adapt to per-window fringes and scroll
15881 bars, and new fringe vs. display margin position. Fix bug which
15882 increased total width of full_width rows by width of scroll bars
15883 although window's total width already includes that.
15884 (x_fix_overlapping_area): Simplify using window_box_left_offset.
15885 (expose_area): Simplify using window_box_left_offset.
15886 (x_draw_vertical_border): Handle per-window scroll bar settings,
15887 mixing windows with left, right and no scroll bars.
15888
15889 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
15890 where it's used in x_list_fonts (for clarity).
15891 (frame_update_line_height): Remove unused function; functionality
15892 is now done directly when setting the default font in x_set_font.
15893
15894 * xfns.c: Make (many) trivial substitutions for renamed and
15895 new macros in dispextern.h, frame.h and window.h.
15896
15897 * xmenu.c: Make (some) trivial substitutions for renamed and
15898 new macros in dispextern.h, frame.h and window.h.
15899
15900 * xterm.h (struct x_output): Move members left_pos, top_pos,
15901 border_width, pixel_height, pixel_width, line_height,
15902 internal_border_width, vertical_scroll_bar_extra,
15903 left_fringe_width, right_fringe_width, fringe_cols,
15904 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15905 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15906 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15907 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15908 (PIXEL_WIDTH, PIXEL_HEIGHT)
15909 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15910 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15911 frame.h and renamed [see frame.h changes].
15912 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15913 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15914 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15915 and renamed [see frame.h changes].
15916
15917 * xterm.c: Make (several) trivial substitutions for renamed and
15918 new macros in dispextern.h, frame.h and window.h.
15919 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15920 (scroll_run): Adapt to new fringe position.
15921 (glyph_rect): Use window coordinates returned from
15922 window_from_coordinates rather than frame_to_window_pixel_xy.
15923 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15924 scroll-bars.
15925 (handle_one_xevent): Simplify a USE_GTK conditional.
15926 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15927 (fringes are now inside margins, i.e. always in the clipping area).
15928 All callers changed.
15929 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15930 directly, then call compute_fringe_widths. Don't call
15931 frame_update_line_height.
15932
15933 * w32term.h (struct w32_output): Move members left_pos, top_pos,
15934 border_width, pixel_height, pixel_width, line_height,
15935 internal_border_width, vertical_scroll_bar_extra,
15936 left_fringe_width, right_fringe_width, fringe_cols,
15937 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15938 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
15939 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15940 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15941 (PIXEL_WIDTH, PIXEL_HEIGHT)
15942 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15943 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15944 frame.h and renamed [see frame.h changes].
15945 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15946 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15947 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15948 and renamed [see frame.h changes].
15949
15950 * w32term.c: Make (several) trivial substitutions for renamed and
15951 new macros in dispextern.h, frame.h and window.h.
15952 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15953 (glyph_rect): Use window coordinates returned from
15954 window_from_coordinates rather than frame_to_window_pixel_xy.
15955 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15956 scroll-bars.
15957 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
15958 (fringes are now inside margins, i.e. always in the clipping area).
15959 All callers changed.
15960 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
15961 directly, then call compute_fringe_widths. Don't call
15962 frame_update_line_height.
15963
15964 * w32console.c: Make (few) trivial substitutions for renamed and
15965 new macros in dispextern.h, frame.h and window.h.
15966
15967 * w32fns.c: Make (many) trivial substitutions for renamed and
15968 new macros in dispextern.h, frame.h and window.h.
15969
15970 * w32menu.c: Make (few) trivial substitutions for renamed and
15971 new macros in dispextern.h, frame.h and window.h.
15972
15973 * macterm.h (struct mac_output): Move members left_pos, top_pos,
15974 border_width, pixel_height, pixel_width, line_height,
15975 internal_border_width, vertical_scroll_bar_extra,
15976 left_fringe_width, right_fringe_width, fringe_cols,
15977 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
15978 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
15979 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
15980 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
15981 (PIXEL_WIDTH, PIXEL_HEIGHT)
15982 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
15983 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
15984 frame.h and renamed [see frame.h changes].
15985 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
15986 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
15987 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
15988 and renamed [see frame.h changes].
15989
15990 * macterm.c: Make (several) trivial substitutions for renamed and
15991 new macros in dispextern.h, frame.h and window.h.
15992 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
15993 (glyph_rect): Use window coordinates returned from
15994 window_from_coordinates rather than frame_to_window_pixel_xy.
15995 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
15996 scroll-bars.
15997 (x_clip_to_row): Remove superfluous whole_line_p arg and code
15998 (fringes are now inside margins, i.e. always in the clipping area).
15999 All callers changed.
16000 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16001 directly, then call compute_fringe_widths. Don't call
16002 frame_update_line_height.
16003
16004 * macfns.c: Make (several) trivial substitutions for renamed and
16005 new macros in dispextern.h, frame.h and window.h.
16006 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
16007
16008 * macmenu.c: Make (few) trivial substitutions for renamed and
16009 new macros in dispextern.h, frame.h and window.h.
16010
16011 * msdos.h (struct x_output): Remove members left_pos, top_pos,
16012 and line_height, and use corresponding new members in struct
16013 frame. All uses changed.
16014 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
16015 superseeded by corresponding macros in frame.h.
16016
16017 * msdos.c: Make (several) trivial substitutions for renamed and
16018 new macros in dispextern.h, frame.h and window.h.
16019 (IT_note_mouse_highlight): Use updated window coordinates returned
16020 by window_from_coordinates, rather than adjusting them locally.
16021 (internal_terminal_init): No need to initialize line_height here;
16022 it now defaults to 1.
16023
16024 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
16025
16026 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
16027 dropping `down' events.
16028
16029 2003-05-24 Andreas Schwab <schwab@suse.de>
16030
16031 * coding.c (find_safe_codings): Fix last change.
16032
16033 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
16034
16035 * xfns.c (x_window): Fix typo from 2003-05-21 change.
16036
16037 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
16038
16039 * xdisp.c (display_mode_element): Increase max depth.
16040 Simplify the error handling code. Use a different error string
16041 for the case where we hit the depth limit.
16042
16043 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
16044
16045 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
16046
16047 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
16048
16049 * intervals.c (get_local_map): Don't get char-property of previous
16050 point any more: get_pos_property already does it and better.
16051
16052 2003-05-21 Dave Love <fx@gnu.org>
16053
16054 [Merged from unicode branch.]
16055
16056 * xfns.c (x_window, x_window): Use use_xim.
16057
16058 * xterm.c (use_xim): Initialize.
16059 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16060 (x_term_init): Maybe set use_xim.
16061
16062 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16063
16064 2003-05-21 Jason Rumney <jasonr@gnu.org>
16065
16066 * unexw32.c (_start): Remove _fmode initialization.
16067
16068 * emacs.c (main) [WINDOWSNT]: Move it here.
16069
16070 2003-05-20 Dave Love <fx@gnu.org>
16071
16072 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
16073
16074 2003-05-19 Richard M. Stallman <rms@gnu.org>
16075
16076 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
16077 as value for QCfont attribute.
16078 (realize_default_face): lface should already exist; crash if not.
16079 Specify 0 for FORCE_P when calling set_lface_from_font_name.
16080
16081 * frame.c (Fignore_event): Doc fix.
16082
16083 2003-05-19 Kenichi Handa <handa@m17n.org>
16084
16085 * coding.c (decode_coding_string): Handle post-read-conversion
16086 even if the coding doesn't require decoding.
16087
16088 2003-05-18 Richard M. Stallman <rms@gnu.org>
16089
16090 * callproc.c (Fcall_process_region): Doc fix.
16091
16092 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16093
16094 * lread.c (Fload): Print a message if package is obsolete.
16095
16096 * window.c (Fselect_window): Add optional `norecord' arg.
16097 (select_window_1): Fold into Fselect_window.
16098 (select_window_norecord): New function.
16099 (temp_output_buffer_show): Use it. Preserve current buffer.
16100
16101 * window.h (Fselect_window): Update declaration.
16102
16103 * window.c (delete_window, Fother_window, Fset_window_configuration):
16104 * minibuf.c (read_minibuf):
16105 * macterm.c (x_new_focus_frame):
16106 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
16107 * callint.c (Fcall_interactively):
16108 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
16109
16110 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
16111
16112 2003-05-17 David Kastrup <dak@gnu.org>
16113
16114 * process.c (read_process_output): Back out change from 2003-03-09.
16115
16116 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16117
16118 * editfns.c (get_pos_property): Don't assume that `object' = nil.
16119
16120 * textprop.c (text_property_stickiness): New arg `buffer'.
16121
16122 * intervals.h (text_property_stickiness): New arg `buffer'.
16123 (get_pos_property): Declare.
16124
16125 * intervals.c (get_local_map): Use get_pos_property, to obey
16126 stickiness and empty overlays.
16127 (create_root_interval, graft_intervals_into_buffer): Use BEG.
16128 (merge_properties, intervals_equal, merge_properties_sticky):
16129 Use XCAR, XCDR.
16130 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
16131
16132 2003-05-17 Richard M. Stallman <rms@gnu.org>
16133
16134 * minibuf.c (read_minibuf): If buffer is empty, record the default
16135 in the history.
16136 (Fminibuffer_complete_word): When deleting the overlap, take account
16137 of its real position.
16138
16139 * fns.c (map_char_table): Fix previous change.
16140
16141 * syntax.c (find_defun_start):
16142 When open_paren_in_column_0_is_defun_start,
16143 return beginning of buffer.
16144
16145 * lisp.h (map_char_table): Declare added arg.
16146
16147 * fns.c (map_char_table): New arg TABLE gets the master table.
16148 All calls changed.
16149 Process default and inheritance, resorting to Faref if necessary.
16150
16151 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16152 (Faccessible_keymaps): Pass new arg to map_char_table.
16153
16154 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
16155
16156 * casetab.c (set_case_table): Pass new arg to map_char_table.
16157
16158 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
16159
16160 * lisp.h (specbinding_func): New typedef.
16161 (struct specbinding): Use specbinding_func, to put the `volatile'
16162 in the right place.
16163
16164 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
16165 to avoid GCC warning.
16166
16167 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
16168
16169 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
16170
16171 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
16172
16173 * keyboard.c (apply_modifiers): Don't fill the other cache.
16174
16175 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
16176
16177 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
16178
16179 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
16180 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
16181 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
16182 (Fset_window_configuration, Fcurrent_window_configuration)
16183 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
16184 (Fpos_visible_in_window_p, mark_window_cursors_off)
16185 (window_internal_height, window_internal_width, Frecenter)
16186 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
16187 (replace_buffer_in_all_windows, init_window_once, init_window)
16188 (syms_of_window, keys_of_window): Move from lisp.h.
16189 * lisp.h: Move window.c declarations to window.h.
16190
16191 * bytecode.c: Include window.h.
16192 * emacs.c: Include window.h.
16193
16194 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
16195 (keyremap): Add `parent' field.
16196 (keyremap_step): Use it. Remove `parent' argument.
16197 (read_key_sequence): Setup and use the new `parent' field.
16198
16199 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
16200
16201 * keyboard.c (adjust_point_for_property): Ensure termination.
16202
16203 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
16204
16205 * keyboard.c (follow_key): Remove dead variable `did_meta'.
16206 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
16207 duplicated handling of function-key-map and key-translation-map
16208 in read_key_sequence.
16209 (read_key_sequence): Use them.
16210
16211 * keyboard.c (adjust_point_for_property): Try harder to move point
16212 to the non-sticky end of an invisible property.
16213
16214 * xdisp.c (single_display_prop_intangible_p): Make `space' display
16215 property intangible as well.
16216
16217 2003-05-10 Andreas Schwab <schwab@suse.de>
16218
16219 * xmenu.c (single_menu_item): Change last parameter to void* to
16220 avoid warning.
16221
16222 2003-05-09 Richard M. Stallman <rms@gnu.org>
16223
16224 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
16225 Bind Qinhibit_modification_hooks to t so there will be no GC.
16226 Rename local `tem' to `save_deactivate_mark'.
16227
16228 * eval.c (specpdl_ptr): Declare volatile.
16229 (unbind_to): Copy the whole binding and decrement specpdl_ptr
16230 before doing the work of unbinding it.
16231
16232 * lisp.h (struct specbinding): Declare elements volatile.
16233 (specpdl_ptr): Declare volatile.
16234
16235 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
16236
16237 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
16238 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
16239
16240 2003-05-08 Dave Love <fx@gnu.org>
16241
16242 * coding.c (Vlast_coding_system_used): Doc fix.
16243
16244 2003-05-07 Jason Rumney <jasonr@gnu.org>
16245
16246 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
16247 when system does not support them.
16248
16249 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
16250
16251 * fileio.c (Qwrite_region_annotate_functions): New var.
16252 (build_annotations): Use it to process the global part of the hook.
16253 (syms_of_fileio): Init and staticpro it.
16254
16255 * keyboard.c (safe_run_hooks_error): Display a message instead of
16256 silently ignoring the error.
16257
16258 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
16259
16260 * keyboard.c (input_available_signal): Mark static.
16261 (menu_bar_items): Use map_keymap.
16262 (menu_bar_one_keymap): Remove.
16263 (menu_bar_item): Adjust arglist (for use in map_keymap).
16264 Properly hide a second binding when not both are keymaps.
16265
16266 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
16267 (single_keymap_panes): Use it and map_keymap.
16268 (single_menu_item): Use skp as well.
16269
16270 * keymap.h (map_keymap_function_t): New type.
16271 (map_keymap): Declare.
16272
16273 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
16274 (map_keymap_call, Fmap_keymap): New functions.
16275 (syms_of_keymap): Defsubr map-keymap.
16276
16277 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16278
16279 * gtkutil.c (create_dialog, make_widget_for_menu_item)
16280 (make_menu_item, create_menus, xg_update_menu_item): Don't call
16281 ..._with_mnemonic functions for menu items.
16282
16283 2003-05-01 Kenichi Handa <handa@m17n.org>
16284
16285 * coding.c (coding_system_accept_latin_extra_p): Delete this
16286 function.
16287 (find_safe_codings): Pay attention to
16288 the property tranlsation-table-for-encode of each codings.
16289 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
16290
16291 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
16292
16293 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
16294
16295 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
16296
16297 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
16298
16299 * lisp.h (CHECK): Wrap args in parenthesis.
16300 (specbind): Fix doc: symbol = Qnil is not supported any more.
16301
16302 * bytecode.c (Fbyte_code) <unwind-protect>:
16303 Use Fprogn rather than 0 and Qnil.
16304
16305 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
16306 `double', and `triple' modifiers as well.
16307
16308 2003-04-30 Richard M. Stallman <rms@gnu.org>
16309
16310 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
16311
16312 * alloc.c (abort_on_gc): New variable.
16313 (Fgarbage_collect): Abort if abort_on_gc is set.
16314
16315 * lisp.h (abort_on_gc): Add decl.
16316
16317 * eval.c (Fsignal): Clear abort_on_gc.
16318
16319 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
16320 Reinit FORMAT_START and END before second scan.
16321
16322 * xdisp.c (move_it_vertically_backward): Do the final big else
16323 even if nlines is 0.
16324
16325 * xdisp.c (redisplay_internal): Finish the per-frame loop
16326 even if redisplay is suspended by input.
16327
16328 2003-04-24 Andrew Choi <akochoi@shaw.ca>
16329
16330 * macterm.c (x_list_fonts): Return all fonts that match if
16331 maxnames = -1.
16332
16333 2003-04-25 Kenichi Handa <handa@m17n.org>
16334
16335 * syntax.c (skip_chars): Fix previous change.
16336
16337 2003-04-24 Kenichi Handa <handa@m17n.org>
16338
16339 * syntax.c (skip_chars): Make the code faster by using the common
16340 technique of *p, *stop, and *endp.
16341
16342 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16343
16344 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
16345 tool_bar_items so GTK tool bar expose callback does not access items
16346 being updated.
16347
16348 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
16349
16350 * eval.c (Fapply): Undo last change and add a comment about why.
16351
16352 2003-04-18 Miles Bader <miles@gnu.org>
16353
16354 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
16355 pickier PARSE_MULTIBYTE_SEQ.
16356
16357 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
16358
16359 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
16360 Use XCDR, XCAR, CONSP.
16361 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
16362 (Fapply): Remove unnecessary GCPRO.
16363
16364 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
16365
16366 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
16367
16368 * buffer.h: Don't hardcode BEG==1.
16369
16370 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
16371
16372 2003-04-16 Richard M. Stallman <rms@gnu.org>
16373
16374 * xdisp.c (try_window, try_window_reusing_current_matrix):
16375 When at end of window, set window_end_pos to Z-ZV.
16376
16377 * buffer.c (Foverlay_recenter): Doc fix.
16378
16379 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
16380
16381 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
16382
16383 2003-04-14 Andrew Choi <akochoi@shaw.ca>
16384
16385 * macterm.c (mac_check_for_quit_char): Don't check more often than
16386 once a second.
16387
16388 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
16389
16390 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
16391 specially, so that they can't hide an implicit switch-frame event.
16392 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
16393 (head_table): Use switch-frame as event_kind for select-window.
16394 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
16395
16396 * editfns.c (Fformat): Lisp_Object/int mixup.
16397 (format2): Remove unused var numargs.
16398
16399 2003-04-11 Kenichi Handa <handa@m17n.org>
16400
16401 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
16402 (Qafter_insert_file_set_coding): New variable.
16403 (syms_of_fileio): Initialize and staticpro it. Delete declaration
16404 for after-insert-file-adjust-coding-function.
16405 (Finsert_file_contents): Call Qafter_insert_file_set_coding
16406 instead of Vafter_insert_file_adjust_coding_function.
16407
16408 2003-04-11 Kenichi Handa <handa@m17n.org>
16409
16410 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
16411
16412 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
16413 string. Callers changed.
16414
16415 2003-04-10 Kenichi Handa <handa@m17n.org>
16416
16417 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
16418 (syms_of_fileio): Declare it as a lisp variable.
16419 (Finsert_file_contents):
16420 Call Vafter_insert_file_adjust_coding_function before calling
16421 decode-format.
16422
16423 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16424
16425 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
16426 get GtkAdjustment as widget now is a GtkRange.
16427
16428 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
16429 GtkRange to avoid memory leak.
16430
16431 2003-04-09 Kenichi Handa <handa@m17n.org>
16432
16433 * xfaces.c (Vface_font_rescale_alist): New variable.
16434 (struct font_name): New member rescale_ratio.
16435 (font_rescale_ratio): New function.
16436 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
16437 (better_font_p): On comparing point sized, pay attention to
16438 recale_ratio member of fonts.
16439 (build_scalable_font_name): Reflect font->rescale_ratio in the
16440 font name.
16441 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16442
16443 * lread.c (read1): Before calling index, check if the 2nd
16444 arguemnt is in ASCII range.
16445
16446 2003-04-08 Richard M. Stallman <rms@gnu.org>
16447
16448 * fileio.c (Ffile_symlink_p): Doc fix.
16449
16450 * editfns.c (Fformat): Translate positions of text properties
16451 in the format string to apply them to the result.
16452
16453 * fileio.c (Finsert_file_contents): Doc fix.
16454 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
16455
16456 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
16457
16458 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
16459
16460 2003-04-08 Steven Tamm <steventamm@mac.com>
16461
16462 * mac.c (init_mac_osx_environment): Switch libexec and bin so
16463 that self-contained application finds libexec files.
16464
16465 2003-04-08 Kenichi Handa <handa@m17n.org>
16466
16467 * coding.c (code_convert_region_unwind):
16468 Set Vlast_coding_system_used to the argument.
16469 (code_convert_region): If post-read-conversion function changed
16470 the value of last-coding-sytem, keep the new value in
16471 coding->symbol so that it won't be overridden.
16472 (run_pre_post_conversion_on_str): Likewise.
16473 (coding_system_accept_latin_extra_p): New function.
16474 (find_safe_codings): Pay attention to characters registered in
16475 latin-extra-code-table.
16476
16477 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
16478
16479 * Makefile.in (md5.o): Add missing dependency info.
16480
16481 2003-04-06 Richard M. Stallman <rms@gnu.org>
16482
16483 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
16484
16485 * marker.c (verify_bytepos): New function.
16486
16487 * intervals.c (set_intervals_multibyte_1): When becoming
16488 multibyte, adjust right and left child sizes to a whole set of
16489 characters. If an interval gets zero total-length, delete it.
16490 If an interval consists of just its children, delete one of them.
16491
16492 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
16493 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
16494
16495 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
16496 All calls deleted.
16497 (lisp_malloc): Do the work here directly.
16498
16499 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
16500
16501 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
16502 char tables.
16503
16504 2003-04-04 Kenichi Handa <handa@m17n.org>
16505
16506 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
16507 destructively change "%S" to "%s".
16508
16509 2003-04-03 Miles Bader <miles@gnu.org>
16510
16511 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
16512 always set.
16513
16514 2003-04-01 Dave Love <fx@gnu.org>
16515
16516 * xfns.c (xpm_lookup_color): Grok "opaque".
16517
16518 2003-03-31 Andrew Choi <akochoi@shaw.ca>
16519
16520 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
16521 parent window ID.
16522
16523 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
16524
16525 * macterm.h (struct mac_output): Define x_pixels_diff and
16526 y_pixels_diff.
16527
16528 2003-03-31 Juanma Barranquero <lektu@terra.es>
16529
16530 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
16531 blockinput.h and files included from it.
16532
16533 2003-03-31 Kim F. Storm <storm@cua.dk>
16534
16535 The following changes consolidates the common code related to
16536 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
16537 files into frame.c.
16538
16539 * frame.c: Include blockinput.h.
16540 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
16541 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
16542 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
16543 related vars here.
16544 (struct frame_parm_table, frame_parms): New table for describing
16545 frame parameters and their associated Q-variable.
16546 The order of the parameters corresponds to the sequence of the
16547 frame_parm_handlers table in redisplay_interface.
16548 (x_fullscreen_move, x_set_frame_parameters)
16549 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
16550 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
16551 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16552 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
16553 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
16554 Generic functions for processing of frame parameters.
16555 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
16556 (display_x_get_resource, x_get_resource_string): Functions for
16557 generic access to X resources.
16558 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
16559 (x_default_parameter, Fx_parse_geometry): Functions for generic
16560 access to frame parameters.
16561 (x_figure_window_size): Generic calculation of frame size.
16562 Fixed to add space needed for tool bar. Also setup size_hint_flags.
16563 (syms_of_frame): Intern and staticpro frame parameter variables.
16564 Defvar_lisp Vx_resource_class and Vx_resource_name here.
16565 Defsubr Sx_get_resource and Sx_parse_geometry.
16566
16567 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
16568 parameter related vars defined in frame.c.
16569 (EMACS_CLASS): Define here.
16570 (enum FULLSCREEN_*): Define here.
16571 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
16572 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
16573 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
16574 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
16575 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
16576 (x_set_visibility, x_set_autoraise, x_set_autolower)
16577 (x_set_unsplittable, x_set_vertical_scroll_bars)
16578 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
16579 (x_figure_window_size): Add prototypes.
16580
16581 * dispextern.h (frame_parm_handler): New typedef.
16582 (struct redisplay_interface): New member frame_parm_handlers.
16583 (enum resource_types): Move declaration here.
16584 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
16585 (x_default_parameter): Add prototypes.
16586
16587 * window.c: Remove extern decl for frame parameter vars.
16588 (change_window_heights): New generic function;
16589 replaces x_change_window_heights. All users changed.
16590
16591 * window.h (change_window_heights): Add prototype.
16592
16593 * xfaces.c: Remove extern decl for frame parameter vars.
16594
16595 * xterm.h (EMACS_CLASS): Remove. Use generic define.
16596 (struct w32_display_info): Fix type of xrdb member.
16597 (enum FULLSCREEN_*): Remove.
16598 Remove prototypes for generic functions (in frame.h).
16599
16600 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16601 parameters now defined in frame.h and frame.c.
16602 (Vx_resource_name): Remove. Use generic var.
16603 (enum x_frame_parms): Remove (bogus, unused enum).
16604 (check_x_display_info): Make non-static (for frame.c).
16605 (struct x_frame_parm_table, x_frame_parms): Remove.
16606 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16607 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16608 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16609 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16610 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16611 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16612 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16613 Remove. Use generic functions instead.
16614 (enum resource_types): Remove.
16615 (x_set_scroll_bar_default_width): New global function (for frame.c).
16616 (Fx_create_frame): Depend on x_figure_window_size to add space for
16617 toolbar and setup size_hint_flags.
16618 (x_frame_parm_handlers): New table for redisplay_interface.
16619 (syms_of_xfns): Don't intern/staticpro removed vars.
16620
16621 * xterm.c: Remove unnecessary extern declarations.
16622 (x_fullscreen_adjust): Remove. Use generic instead.
16623 (x_redisplay_interface): Add x_frame_parm_handlers member.
16624
16625 * w32gui.h (XrmDatabase): New (dummy) typedef.
16626
16627 * w32term.h (EMACS_CLASS): Remove. Use generic define.
16628 (struct w32_display_info): Fix type of xrdb member.
16629 (enum FULLSCREEN_*): Remove.
16630 (x_fullscreen_adjust): Remove prototype.
16631
16632 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16633 parameters now defined in frame.h and frame.c.
16634 (Vx_resource_name): Remove. Use generic var.
16635 (enum x_frame_parms): Remove (bogus, unused enum).
16636 (check_x_display_info): Make non-static (for frame.c).
16637 (struct x_frame_parm_table, x_frame_parms): Remove.
16638 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16639 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16640 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16641 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16642 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16643 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16644 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16645 Remove. Use generic functions instead.
16646 (enum resource_types): Remove.
16647 (x_set_scroll_bar_default_width): New global function (for frame.c).
16648 (Fx_create_frame): Depend on x_figure_window_size to add space for
16649 toolbar and setup size_hint_flags.
16650 (w32_frame_parm_handlers): New table for redisplay_interface.
16651 (syms_of_w32fns): Don't intern/staticpro removed vars.
16652
16653 * w32term.c: Remove unnecessary extern declarations.
16654 (x_fullscreen_adjust): Remove. Use generic instead.
16655 (x_redisplay_interface): Add w32_frame_parm_handlers member.
16656
16657 * w32reg.c (x_get_string_resource): Use XrmDatabase.
16658
16659 * macgui.h (XrmDatabase): New (dummy) typedef.
16660
16661 * macterm.h (EMACS_CLASS): Remove.
16662 (struct mac_display_info): Add xrdb member.
16663 (struct mac_output): Add want_fullscreen member.
16664
16665 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
16666 parameters now defined in frame.h and frame.c.
16667 (Vx_resource_name): Remove. Use generic var.
16668 (check_x_display_info): Make non-static (for frame.c).
16669 (struct x_frame_parm_table, x_frame_parms): Remove.
16670 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
16671 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
16672 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
16673 (x_change_window_heights, x_set_autoraise, x_set_autolower)
16674 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
16675 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
16676 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
16677 Remove. Use generic functions instead.
16678 (enum resource_types): Remove.
16679 (x_set_scroll_bar_default_width): New global function (for frame.c).
16680 (mac_frame_parm_handlers): New table for redisplay_interface.
16681 (syms_of_macfns): Don't intern/staticpro removed vars.
16682
16683 * macterm.c: Remove unnecessary extern declarations.
16684 (x_redisplay_interface): Add mac_frame_parm_handlers member.
16685
16686 * Makefile.in (frame.o): Add dependency on blockinput.h and files
16687 included from it (atimer.h and systime.h).
16688
16689 2003-03-30 Andreas Schwab <schwab@suse.de>
16690
16691 * xdisp.c (x_insert_glyphs): Fix swapped width and height
16692 parameters for shift_glyphs_for_insert.
16693
16694 * macterm.c (x_redisplay_interface): Add missing entry for
16695 draw_vertical_window_border.
16696
16697 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
16698
16699 * fileio.c (Fexpand_file_name): In the no-handler case, after
16700 expanding, look again for a handler and invoke it. This is needed
16701 for filenames like "/foo/../user@host:/bar/../baz" -- the first
16702 expansion produces "/user@host:/bar/../baz" which needs to be
16703 expanded again for the finame result "/user@host:/baz".
16704
16705 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16706
16707 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
16708 of area to be redrawn for better performance.
16709
16710 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
16711
16712 * xterm.c (take_vertical_position_into_account): Remove.
16713 (xt_action_hook): Call set_vertical_scroll_bar if needed.
16714 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
16715 (xm_scroll_callback, x_create_toolkit_scroll_bar)
16716 (x_set_toolkit_scroll_bar_thumb): Simplify.
16717 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
16718 (XTread_socket): Remove unused var.
16719 (x_make_frame_invisible): Replace goto with else.
16720
16721 * xdisp.c (set_vertical_scroll_bar): New fun.
16722 (redisplay_window): Use it.
16723
16724 2003-03-26 Richard M. Stallman <rms@gnu.org>
16725
16726 * xdisp.c (update_tool_bar): Recompute tool bar if
16727 update_mode_lines is set. Set w->update_mode_line
16728 only if the tool bar contents actually change.
16729 (update_menu_bar): Undo previous change.
16730
16731 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16732
16733 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
16734 (xg_frame_set_char_size): Calculate scroll bar width before frame
16735 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
16736 (xg_separator_p): Check for all documented separator types.
16737 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
16738 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
16739
16740 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
16741 so tool bar gets updated.
16742
16743 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
16744
16745 * data.c (store_symval_forwarding): Re-instate part of the code
16746 that was deleted with too much enthusiasm.
16747
16748 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
16749
16750 * data.c (store_symval_forwarding): Delete special read-only
16751 hack for type == -1, since we now use ->constant instead.
16752 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
16753
16754 * buffer.c (overlays_in): Declare static.
16755 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
16756 `constant' field rather than the variable's `type' field.
16757
16758 2003-03-24 Andrew Choi <akochoi@shaw.ca>
16759
16760 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
16761
16762 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
16763
16764 * fns.c [MAC_OSX]: Do not redefine vector.
16765
16766 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
16767
16768 * macgui.h: Remove definition of No_Cursor.
16769
16770 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
16771
16772 * xdisp.c: Define No_Cursor.
16773 (x_write_glyphs, notice_overwritten_cursor)
16774 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
16775 (note_mouse_highlight): Remove Mac-specific code.
16776 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
16777
16778 2003-03-24 John Paul Wallington <jpw@gnu.org>
16779
16780 * xdisp.c (redisplay_window): If mini window's buffer is not
16781 empty, then redisplay it like other windows.
16782
16783 2003-03-23 Kim F. Storm <storm@cua.dk>
16784
16785 * w32term.c (w32_draw_window_cursor): Fix last change.
16786
16787 2003-03-23 Kenichi Handa <handa@m17n.org>
16788
16789 * alloc.c (make_string_from_bytes, make_specified_string):
16790 Add `const' for the arg CONTENTS.
16791
16792 * lisp.h (make_string_from_bytes, make_specified_string):
16793 Prototypes adjusted.
16794
16795 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16796
16797 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
16798
16799 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
16800 (XG_SB_RANGE): New define.
16801
16802 * gtkutil.c (xg_fixed_handle_expose): New function.
16803 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
16804 expose events.
16805 (xg_update_scrollbar_pos): Take two more arguments, left and width
16806 of scroll bar including borders.
16807 Clear left and right part outside scroll bar separately as some
16808 themes have bars that are not an even number of pixels.
16809 Don't set reallocate_redraws, don't call
16810 gdk_window_process_all_updates.
16811 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
16812 so no need to change it. Calculate size and value with XG_SB_RANGE.
16813
16814 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
16815 Pass left and width of scroll bar including borders to
16816 xg_update_scrollbar_pos.
16817
16818 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
16819
16820 * Makefile.in: Make sure space precedes end-of-line backslashes.
16821
16822 2003-03-22 Kim F. Storm <storm@cua.dk>
16823
16824 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
16825 Add generic versions here. Remove system specific versions
16826 defined elsewhere.
16827
16828 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
16829 Add prototypes.
16830
16831 * xterm.h (STORE_NATIVE_RECT): New macro.
16832
16833 2003-03-21 Kim F. Storm <storm@cua.dk>
16834
16835 * xdisp.c (get_glyph_string_clip_rect):
16836 Use FRAME_INTERNAL_BORDER_WIDTH.
16837
16838 * dispextern.h (struct redisplay_interface): Add active_p
16839 argument to draw_window_cursor member. All uses changed.
16840
16841 2003-03-21 Kim F. Storm <storm@cua.dk>
16842
16843 The following changes consolidate code related to writing and
16844 inserting glyphs, exposing frame, the tool bar, the mouse face,
16845 the output cursor, and help echo from xterm.c, w32term.c and
16846 macterm.c into xdisp.c. It also generalizes the use of the
16847 window_part enum instead of using numeric values throughout.
16848
16849 * xdisp.c: Consolidate gui-independent code here.
16850 Include keymap.h.
16851 (Qhelp_echo): Import.
16852 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
16853 (help_echo_string, help_echo_window, help_echo_object)
16854 (previous_help_echo_string, help_echo_pos): Declare here.
16855 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
16856 (estimate_mode_line_height): Define here. Handle windowing
16857 systems directly (without using estimate_mode_line_height_hook).
16858 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
16859 (update_window_cursor, update_cursor_in_window_tree)
16860 (fast_find_position, fast_find_string_pos)
16861 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
16862 (expose_area, expose_line, expose_overlaps, expose_window)
16863 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
16864 declared static as they are only used locally in xdisp.c.
16865 (draw_glyphs): Rename from x_draw_glyphs and make static.
16866 (tool_bar_item_info, notice_overwritten_cursor): Make static.
16867 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16868 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
16869 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
16870 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16871 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
16872 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
16873 (note_mouse_highlight, x_clear_window_mouse_face)
16874 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
16875 (x_intersect_rectangles): New generic functions for use by xdisp.c
16876 and GUI front-ends.
16877 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
16878 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
16879
16880 * dispextern.h (Display_Info): Generic typedef for *_display_info.
16881 (NativeRectangle): Generic typedef for rectangle type.
16882 (enum window_part): Move here from window.c.
16883 (struct redisplay_interface): New members flush_display_optional,
16884 define_frame_cursor, clear_frame_area, draw_window_cursor,
16885 draw_vertical_window_border, shift_glyphs_for_insert.
16886 Rename member clear_mouse_face to clear_window_mouse_face.
16887 (estimate_mode_line_height_hook): Remove hook.
16888 (auto_raise_tool_bar_buttons_p): Don't declare extern.
16889 (tool_bar_item_info): Remove prototype.
16890 (help_echo_string, help_echo_window, help_echo_object)
16891 (previous_help_echo_string, help_echo_pos)
16892 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
16893 (x_stretch_cursor_p, output_cursor): Declare extern.
16894 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
16895 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
16896 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
16897 (display_and_set_cursor, set_output_cursor, x_cursor_to)
16898 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
16899 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
16900 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
16901 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
16902 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
16903 Add prototypes.
16904 (mode_line_string, marginal_area_string): Fix prototypes.
16905
16906 * window.c (enum window_part): Move to dispextern.h.
16907 (coordinates_in_window): Use enum window_part member names
16908 instead of numbers to describe return value.
16909 (struct check_window_data): Change part member to window_part.
16910 (check_window_containing): Return window_part unaltered.
16911 (window_from_coordinates): Change part arg from int to enum
16912 window_part. Allow part arg to be null. All users changed.
16913
16914 * window.h (window_from_coordinates): Fix prototype.
16915
16916 * term.c (estimate_mode_line_height): Move to xdisp.c.
16917
16918 * keyboard.c (make_lispy_event): Use enum window_part.
16919
16920 * dispnew.c (mode_line_string, marginal_area_string): Use enum
16921 window_part instead of int in arg list. Users changed.
16922
16923 * xterm.h (No_Cursor): Declare as None for X.
16924 (struct mac_output): Replace member cross_cursor by hand_cursor.
16925
16926 * xterm.c: Remove consolidated defines and code.
16927 (BETWEEN): Remove unused macro.
16928 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
16929 (x_define_frame_cursor, x_clear_frame_area)
16930 (x_draw_window_cursor): New X-specific functions for RIF.
16931 (x_redisplay_interface): Add new members.
16932
16933 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
16934
16935 * w32term.h (struct w32_output): Remove cross_cursor member.
16936
16937 * w32term.c: Remove consolidated defines and code.
16938 (BETWEEN): Remove unused macro.
16939 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
16940 (w32_define_frame_cursor, w32_clear_frame_area)
16941 (w32_draw_window_cursor): New W32-specific functions for RIF.
16942 (w32_redisplay_interface): Add new members.
16943
16944 * w32gui.h (No_Cursor): Define as 0 for W32.
16945 (XRectangle): Add X compatible rectangle type.
16946 (NativeRectangle): Declare as RECT for W32.
16947 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16948
16949 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
16950
16951 * w32console.c: Remove consolidated defines and code.
16952
16953 * msdos.h (Display_Info): Add generic typedef.
16954
16955 * msdos.c: Remove consolidated defines and code.
16956 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
16957
16958 * macterm.h (struct mac_output): Replace member cross_cursor by
16959 hand_cursor.
16960 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
16961
16962 * macterm.c: Remove consolidated defines and code.
16963 (BETWEEN): Remove unused macro.
16964 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
16965 (mac_define_frame_cursor, mac_clear_frame_area)
16966 (mac_draw_window_cursor): New Mac-specific functions for RIF.
16967 (x_redisplay_interface): Add new members.
16968
16969 * macgui.h (No_Cursor): Define as 0 for Mac.
16970 (XRectangle): Add X compatible rectangle type.
16971 (NativeRectangle): Declare as Rect for Mac.
16972 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
16973
16974 * macfns.c (x_set_mouse_color): Setup hand_cursor.
16975 (x_set_cursor_color): Use x_display_and_set_cursor.
16976
16977 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
16978 included from it. Add dependency on keymap.h.
16979
16980 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
16981
16982 2003-03-21 Kenichi Handa <handa@m17n.org>
16983
16984 * fileio.c (Fexpand_file_name): Fix previous change.
16985
16986 2003-03-19 Kenichi Handa <handa@m17n.org>
16987
16988 * fileio.c (Ffile_name_directory): Reconstruct file name by
16989 make_specified_string.
16990 (Ffile_name_nondirectory, Ffile_name_as_directory)
16991 (Fdirectory_file_name, Fexpand_file_name)
16992 (Fsubstitute_in_file_name): Likewise.
16993 (Fread_file_name): Compare decoded homedir with DIR and
16994 DEFAULT_FILENAME.
16995
16996 * alloc.c (make_specified_string): If NCHARS is negative, count
16997 the number of characters.
16998
16999 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17000
17001 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
17002 all widgets.
17003
17004 * gtkutil.h: Removed xg_ignore_next_thumb.
17005
17006 2003-03-18 Kenichi Handa <handa@m17n.org>
17007
17008 * coding.c (Vchar_coding_system_table): Remove this variable.
17009 (Vcoding_system_safe_chars): New variable.
17010 (intersection): Remove this function.
17011 (find_safe_codings): Don't use Vchar_coding_system_table, but try
17012 all codings in SAFE_CODINGS.
17013 (Ffind_coding_systems_region_internal): Adjust for the change of
17014 find_safe_codings. Get generic coding systems from
17015 Vcoding_system_safe_chars.
17016 (Fdefine_coding_system_internal): New function.
17017 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
17018 Initialize and staticpro Vcoding_system_safe_chars.
17019
17020 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17021
17022 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
17023 equal old values before updating.
17024
17025 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
17026
17027 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
17028
17029 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17030
17031 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
17032 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
17033 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
17034 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
17035 (xg_create_scroll_bar): Pass bar to button event callback.
17036 (xg_find_top_left_in_fixed): New function.
17037 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
17038 whole scroll bar area. Get old position with
17039 xg_find_top_left_in_fixed, calculate and only clear needed areas.
17040 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
17041 dragging is in progress. Calculate whole as for Motif.
17042 Remove code that saved last values. Call gtk_range functions to
17043 set scroll bar sizes.
17044
17045 * gtkutil.h: Removed xg_ignore_next_thumb.
17046
17047 2003-03-17 Juanma Barranquero <lektu@terra.es>
17048
17049 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
17050 and files included from it.
17051
17052 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
17053
17054 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
17055 multiple occurrences of the same keymap under different prefixes.
17056 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
17057
17058 2003-03-16 Jason Rumney <jasonr@gnu.org>
17059
17060 * w32gui.h: Use HDC for Display.
17061
17062 * w32term.c (w32_encode_char): Prevent double-byte chars from
17063 crashing Emacs.
17064
17065 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
17066 as binary.
17067
17068 2003-03-16 Juanma Barranquero <lektu@terra.es>
17069
17070 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
17071
17072 2003-03-16 Kim F. Storm <storm@cua.dk>
17073
17074 The following changes consolidate some of the gui-independent
17075 parts of the processing and drawing of "glyph strings" from
17076 xterm.c, w32term.c, and macterm.c into xdisp.c.
17077
17078 * dispextern.h (struct glyph): Reduce face_id member from 22 to
17079 21 bits (this reduces number of faces from 4M to 2M).
17080 Replace W32 specific w32_font_type member (2 bits) by generic
17081 font_type member (3 bits) for portability.
17082 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
17083 (enum draw_glyphs_face): Define here.
17084 (struct glyph_string): Define here. Merge W32 and X versions.
17085 (struct redisplay_interface): New members per_char_metric,
17086 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
17087 (VCENTER_BASELINE_OFFSET): Define here.
17088 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
17089 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
17090
17091 * xdisp.c: Consolidate gui-independent "glyph string" code here.
17092 (dump_glyph_string): Moved here.
17093 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
17094 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
17095 (fill_composite_glyph_string, fill_glyph_string)
17096 (fill_image_glyph_string, fill_stretch_glyph_string)
17097 (left_overwritten, left_overwriting, right_overwritten)
17098 (right_overwriting, get_char_face_and_encoding)
17099 (set_glyph_string_background_width, compute_overhangs_and_x)
17100 (append_glyph, append_composite_glyph, produce_image_glyph)
17101 (take_vertical_position_into_account, append_stretch_glyph)
17102 (produce_stretch_glyph): New generic functions (based on X version).
17103 Call platform specific functions through rif.
17104 (INIT_GLYPH_STRING): New macro, hides W32 details.
17105 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
17106 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
17107 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
17108 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
17109 (notice_overwritten_cursor):
17110 Generic functions exported to platform modules. Users changed.
17111
17112 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
17113 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
17114 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
17115 New macros for consolidated code.
17116
17117 * xterm.c: Remove consolidated defines and code.
17118 (x_per_char_metric, x_encode_char)
17119 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
17120 (x_redisplay_interface): Add new members.
17121
17122 * w32gui.h (Display): Add dummy typedef for consolidation.
17123 (XChar2b): Define alias for wchar_t for consolidation.
17124 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17125
17126 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
17127 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
17128 New macros for consolidation.
17129
17130 * w32term.c: Remove consolidated defines and code.
17131 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
17132 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
17133 (w32_per_char_metric): Change font_type arg to int for RIF.
17134 (w32_encode_char): Return int according to RIF requirements.
17135 (w32_compute_glyph_string_overhangs): Adapt to RIF.
17136 (w32_get_glyph_overhangs): New function for RIF. Uses generic
17137 x_get_glyph_overhangs.
17138 (w32_redisplay_interface): Add new members.
17139
17140 * macgui.h (XChar2b): Move typedef here for consolidation.
17141 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17142
17143 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
17144 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
17145 consolidation.
17146
17147 * macterm.c: Remove consolidated defines and code.
17148 (mac_per_char_metric): New function for RIF.
17149 (mac_encode_char): Adapt to new RIF requirements.
17150 (mac_compute_glyph_string_overhangs): Adapt for RIF.
17151 (x_redisplay_interface): Add new members.
17152
17153 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
17154
17155 * keymap.c (Vmenu_events): New var.
17156 (syms_of_keymap): Initialize it.
17157 (where_is_internal): Check more carefully what is a menu event.
17158
17159 2003-03-14 Richard M. Stallman <rms@gnu.org>
17160
17161 * lread.c (read1): After #!, exit loop on eof.
17162
17163 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17164
17165 * gtkutil.h: Add declaration for xg_frame_cleared.
17166
17167 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
17168
17169 * gtkutil.c (struct xg_last_sb_pos): New structure.
17170 (handle_fixed_child): New function.
17171 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
17172 and force a redraw on them.
17173 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
17174 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
17175 so we can avoid unneeded redraws.
17176 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
17177 and force a redraw on the scroll bar.
17178 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
17179 if xg_last_sb_pos shows the positions are up to date.
17180 (xg_frame_cleared): New function.
17181
17182 2003-03-13 Kenichi Handa <handa@m17n.org>
17183
17184 * coding.c (Fdetect_coding_region): Fix docstring.
17185 (Fdetect_coding_string): Fix docstring.
17186
17187 2003-03-13 Andreas Schwab <schwab@suse.de>
17188
17189 * gtkutil.c: Add prototype for create_menus.
17190
17191 * data.c (long_to_cons): Fix type of top.
17192
17193 * xselect.c (selection_data_to_lisp_data): Use int instead of
17194 long for an integer of size 4.
17195
17196 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
17197 (xg_tool_bar_help_callback): Likewise.
17198
17199 2003-03-12 Andreas Schwab <schwab@suse.de>
17200
17201 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
17202
17203 2003-03-12 Kim F. Storm <storm@cua.dk>
17204
17205 The following changes consolidate the fringe handling from
17206 xterm.c, w32term.c, and macterm.c into xdisp.c.
17207
17208 * xdisp.c: Consolidate fringe handling code here.
17209 (left_bits, right_bits, continued_bits, continuation_bits)
17210 (ov_bits, zv_bits): Define fringe bitmaps.
17211 (fringe_bitmaps): New array holding fringe bitmaps.
17212 (draw_fringe_bitmap): Draw a specific bitmap; call display
17213 specific drawing routine via rif->draw_fringe_bitmap.
17214 (draw_row_fringe_bitmaps): Generic replacement for
17215 x_draw_row_fringe_bitmaps; all callers changed.
17216 (compute_fringe_widths): Generic replacement for
17217 x_compute_fringe_widths; all callers changed.
17218
17219 * dispextern.h (enum fringe_bitmap_type): Define here.
17220 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
17221 (fringe_bitmaps): Declare extern.
17222 (struct redisplay_interface): New member draw_fringe_bitmap.
17223 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
17224
17225 * xterm.c: Remove generic fringe code.
17226 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17227 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17228
17229 * w32term.c: Remove generic fringe code.
17230 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
17231 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
17232
17233 * macterm.c: Remove generic fringe code.
17234 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17235 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17236
17237 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
17238
17239 * print.c (Fprin1_to_string): Return unibyte string if possible.
17240
17241 2003-03-09 David Kastrup <dak@gnu.org>
17242
17243 * process.c (read_process_output): We have allocated enough space
17244 for readmax and carryover, so actually use the alloted space.
17245
17246 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17247
17248 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
17249 toolkit scrollbar click.
17250
17251 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
17252 for USE_GTK.
17253 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
17254 also.
17255 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
17256 scrollbar and control is pressed, call x_scroll_bar_handle_click.
17257
17258 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
17259
17260 * gtkutil.c (xg_get_scroll_id_for_window): New function.
17261 (xg_tool_bar_item_expose_callback): New function.
17262 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
17263 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
17264 on the tool bar widget.
17265 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
17266 to expose on the tool bar item widgets.
17267
17268 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17269
17270 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
17271 struct image* when deciding to update (struct image* may have been
17272 deleted from the image cache).
17273
17274 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
17275 the event isn't for a frame (i.e. for dialogs).
17276
17277 2003-03-07 Kenichi Handa <handa@m17n.org>
17278
17279 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
17280 composition components reaches the limit, terminate composing.
17281 (COMPOSITION_OK): New macro.
17282 (detect_coding_iso2022): Use it if an escape sequence for
17283 composition is found.
17284 (coding_restore_composition): Adjust the number of composition
17285 components if it is not sane.
17286
17287 2003-03-06 Juanma Barranquero <lektu@terra.es>
17288
17289 * w32term.h (struct w32_display_info): Add xrdb member to support
17290 passing resources via -xrm on Windows.
17291
17292 * w32term.c (w32_make_rdb): New function.
17293 (w32_term_init): Use it to initialize xrdb member of w32_display_info
17294 struct. Delete leftover code.
17295
17296 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
17297 for resources passed on the command line.
17298
17299 * w32reg.c (w32_get_rdb_resource): New function.
17300 (x_get_string_resource): Use it, so resources passed with -xrm
17301 supercede the ones in the registry.
17302
17303 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17304
17305 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
17306 instead of x_top_window_to_frame.
17307
17308 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17309
17310 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
17311 when restarting Emacs.
17312
17313 2003-03-03 Richard M. Stallman <rms@gnu.org>
17314
17315 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
17316 to run kill-buffer-query-functions.
17317 (Qkill_buffer_query_functions): New var.
17318 (syms_of_buffer): Init and staticpro it.
17319
17320 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17321
17322 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
17323
17324 2003-02-25 Kim F. Storm <storm@cua.dk>
17325
17326 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
17327 If centering point failed to make whole line visible and vscroll
17328 is non-zero, disable vscroll and try centering point again.
17329
17330 * lread.c (read1): Accept `single space' syntax like (? x).
17331
17332 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17333
17334 * keyboard.c (cancel_hourglass_unwind): Surround with
17335 #ifdef HAVE_X_WINDOWS
17336
17337 2003-02-25 Kenichi Handa <handa@m17n.org>
17338
17339 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
17340 process only when "subprocesses" is defined.
17341
17342 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
17343
17344 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
17345
17346 2003-02-24 Juanma Barranquero <lektu@terra.es>
17347
17348 * callint.c (fix_command): Declare as static void and move before
17349 Fcall_interactively.
17350
17351 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
17352 (syms_of_xdisp): Don't initialize Qwhen.
17353
17354 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17355
17356 * keyboard.c (cancel_hourglass_unwind): New function.
17357 (command_loop_1): Cancel hourglass with unwind-protect.
17358
17359 2003-02-23 Richard M. Stallman <rms@gnu.org>
17360
17361 * callint.c (fix_command): New subroutine, from Fcall_interactively.
17362 Detect (when ... (region-beginning)) etc.
17363 (Fcall_interactively): Call fix_command.
17364 (Qif, Qwhen): New variables.
17365 (syms_of_callint): Init and staticpro them.
17366
17367 * regex.c (print_partial_compiled_pattern): Output to stderr.
17368
17369 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
17370
17371 * dired.c (directory_files_internal): Don't expand directory.
17372 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
17373 instead. From Lars Hansen <larsh@math.ku.dk>.
17374
17375 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
17376
17377 * fns.c (string_to_multibyte): Remove unused var i.
17378 (Flanginfo): Fix int/Lisp_Object mixup.
17379 (void_call2): New fun.
17380 (Fmap_char_table): Use it in place of call2.
17381
17382 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
17383
17384 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
17385
17386 * keymap.c (copy_keymap_1): Make it static.
17387
17388 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
17389
17390 2003-02-22 David Ponce <david@dponce.com>
17391
17392 * lread.c (Fload): Don't check STRING_MULTIBYTE.
17393
17394 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17395
17396 * process.h: Removed subtty field from struct Lisp_Process.
17397
17398 * process.c (create_process): Remove setting of subtty.
17399 (emacs_get_tty_pgrp): New function.
17400 (Fprocess_running_child_p, process_send_signal):
17401 Call emacs_get_tty_pgrp instead of ioctl.
17402 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
17403
17404 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
17405
17406 * keymap.c (Fdefine_key): Doc fix.
17407
17408 2003-02-21 Juanma Barranquero <lektu@terra.es>
17409
17410 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
17411
17412 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
17413 POLLING_PROBLEM_IN_SELECT.
17414
17415 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
17416 Delete #undef of POLLING_PROBLEM_IN_SELECT.
17417
17418 * s/hpux10-20.h: New file.
17419
17420 * process.c (wait_reading_process_input):
17421 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
17422
17423 2003-02-20 Kenichi Handa <handa@m17n.org>
17424
17425 * fontset.c (check_fontset_name): If NAME is nil, return the
17426 default fontset.
17427 (override_font_info): New function.
17428 (Fset_fontset_font): Document that NAME nil means the default fontset.
17429 (Ffontset_info): If FONTSET is not the default fontset, merge
17430 FONTSET onto the copy of the default fontset, and work on that
17431 copy. Document that NAME nil means the default fontset.
17432 (Ffontset_font): Document that NAME nil means the default fontset.
17433
17434 * process.c (setup_process_coding_systems): If the process's
17435 in/out descriptor is -1, do nothing.
17436
17437 2003-02-19 Andreas Schwab <schwab@suse.de>
17438
17439 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
17440 Add prototypes.
17441
17442 2003-02-19 Kenichi Handa <handa@m17n.org>
17443
17444 * xfaces.c (try_alternative_families): Try all scalable fonts if
17445 Vscalable_fonts_allowed is not Qt.
17446
17447 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17448
17449 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
17450
17451 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17452
17453 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
17454 names.
17455
17456 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
17457 (sorted_font_list): Move allocation of struct font_name to
17458 x_face_list_fonts.
17459 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
17460 (Fx_list_fonts): Set maxnames to -1 to get all font names.
17461
17462 2003-02-18 Kim F. Storm <storm@cua.dk>
17463
17464 * lread.c (read1): Fix last change.
17465 "`" is not always special. Allow "?" after a character constant.
17466
17467 2003-02-18 Andrew Choi <akochoi@shaw.ca>
17468
17469 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
17470
17471 2003-02-18 Andreas Schwab <schwab@suse.de>
17472
17473 * window.c (window_scroll_pixel_based): Move outside a
17474 multi-glyph character before setting new window start.
17475
17476 * xdisp.c (in_display_vector_p): New function.
17477 * dispextern.h (in_display_vector_p): Declare.
17478
17479 2003-02-18 Kim F. Storm <storm@cua.dk>
17480
17481 * lread.c (read1): Fix and relax read syntax.
17482 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
17483 Only recognize "," after dotted-pair dot if inside backquote.
17484 Never include "`" or "," (inside backquote) in a symbol.
17485 Allow dotted-pair dot after a character constant.
17486 Allow "`" and "," (inside backquote) after a character constant.
17487
17488 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17489
17490 * gtkutil.c (xg_tool_bar_expose_callback): New function.
17491 (xg_create_tool_bar): Force style of tool bar to be horizontal with
17492 icons. Set name of tool bar to emacs-toolbar.
17493 (update_frame_tool_bar): Connect expose event to
17494 xg_tool_bar_expose_callback.
17495
17496 2003-02-17 Richard M. Stallman <rms@gnu.org>
17497
17498 * keyboard.c (this_command_key_count_reset): New variable.
17499 Initiatize to 0 where this_command_key_count is set.
17500 (read_char): Save and restore this_command_key_count_reset
17501 around input method code.
17502 (read_char): If this_command_key_count_reset, echo reread commands.
17503 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
17504
17505 2003-02-17 Kenichi Handa <handa@m17n.org>
17506
17507 * fns.c (string_to_multibyte): Always return a multibyte string.
17508
17509 2003-02-16 Jason Rumney <jasonr@gnu.org>
17510
17511 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
17512 Negative max_fonts parameter means list all.
17513
17514 2003-02-14 Dave Love <fx@gnu.org>
17515
17516 * fns.c (Flanginfo): Doc fix.
17517
17518 2003-02-13 Kim F. Storm <storm@cua.dk>
17519
17520 * lread.c (read_escape): Interpret \s as a SPACE character, except
17521 for \s-X in a character constant which still is the super modifier.
17522 (read1): Signal an `invalid read syntax' error if a character
17523 constant is immediately followed by a digit or symbol character.
17524
17525 * search.c (Fmatch_data): Doc fix. Explicitly state that
17526 match-data is undefined if last search failed.
17527
17528 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
17529 All uses changed.
17530
17531 2003-02-12 Juanma Barranquero <lektu@terra.es>
17532
17533 * eval.c (Fdefmacro): Fix typo.
17534
17535 2003-02-12 Kim F. Storm <storm@cua.dk>
17536
17537 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
17538 macro is a string, convert meta modifiers in string when copying
17539 the string into a vector.
17540
17541 2003-02-11 Kim F. Storm <storm@cua.dk>
17542
17543 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
17544
17545 2003-02-11 Kenichi Handa <handa@m17n.org>
17546
17547 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
17548
17549 2003-02-10 Kim F. Storm <storm@cua.dk>
17550
17551 * process.c: Doc fixes.
17552 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
17553
17554 2003-02-10 Kenichi Handa <handa@m17n.org>
17555
17556 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
17557
17558 * process.c (QCfilter_multibyte): New variable.
17559 (setup_process_coding_systems): New function.
17560 (Fset_process_buffer, Fset_process_filter):
17561 Call setup_process_coding_systems.
17562 (Fstart_process): Initialize the member `filter_multibyte' of
17563 struct Lisp_Process.
17564 (create_process): Call setup_process_coding_systems.
17565 (Fmake_network_process): New keyward `:filter-multibyte'.
17566 Initialize the member `filter_multibyte' of struct Lisp_Process.
17567 Call setup_process_coding_systems.
17568 (server_accept_connection): Call setup_process_coding_systems.
17569 (read_process_output): If the process has a filter, decide the
17570 multibyteness of a string to given to the filter by
17571 `filter_multibyte' member of the process. If the process doesn't
17572 have a filter and the result of conversion is unibyte, use
17573 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
17574 multibyte form.
17575 (Fset_process_coding_system): Call setup_process_coding_systems.
17576 (Fset_process_filter_multibyte): New function.
17577 (Fprocess_filter_multibyte_p): New function.
17578 (syms_of_process): Intern and staticpro QCfilter_multibyte.
17579 Defsubr Sset_process_filter_multibyte and
17580 Sprocess_filter_multibyte_p.
17581
17582 * process.h (struct Lisp_Process): New member filter_multibyte.
17583
17584 * lisp.h (setup_process_coding_systems): Add prototype.
17585
17586 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
17587 process, update coding systems for the process.
17588
17589 2003-02-09 Kenichi Handa <handa@m17n.org>
17590
17591 * fns.c (string_to_multibyte): New function.
17592 (Fstring_to_multibyte): New function.
17593 (syms_of_fns): Defsubr it.
17594
17595 2003-02-08 Andreas Schwab <schwab@suse.de>
17596
17597 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
17598 instead of the substitution.
17599
17600 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17601
17602 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
17603
17604 * xmenu.c (menu_position_func): Adjust menu popup position so that
17605 the menu is fully visible.
17606
17607 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17608
17609 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
17610 (x_make_frame_invisible, x_wm_set_icon_position):
17611 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
17612
17613 * xfns.c (x_set_name, x_set_title): Ditto.
17614
17615 2003-02-04 Richard M. Stallman <rms@gnu.org>
17616
17617 * keyboard.c (echo_now): Update before_command_echo_length.
17618 (Freset_this_command_lengths): Reset this_command_key_count etc.
17619 immediately rather than arranging to do it later.
17620 (before_command_key_count_1, before_command_echo_length_1)
17621 (before_command_restore_flag): Vars deleted.
17622 (add_command_key): Don't handle before_command_restore_flag.
17623 (read_char, record_menu_key): Don't update before_command_key_count or
17624 before_command_echo_length.
17625 (read_char): Don't handle before_command_restore_flag.
17626
17627 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
17628 in direct-output clauses if it wouldn't be called in the ordinary case.
17629
17630 2003-02-04 Kim F. Storm <storm@cua.dk>
17631
17632 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
17633
17634 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17635
17636 * gtkutil.c (remove_from_container): Copying list is not needed.
17637 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
17638 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
17639 on list returned from gtk_container_get_children to avoid memory leak.
17640
17641 2003-02-01 Jason Rumney <jasonr@gnu.org>
17642
17643 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
17644 local malloc.
17645 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
17646 definitions in xpm.h.
17647 (init_xpm_functions): New function.
17648 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
17649 (init_external_image_libraries): Try to load libXpm.dll.
17650
17651 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
17652 timestamp.
17653
17654 2003-01-31 Dave Love <fx@gnu.org>
17655
17656 * syntax.c (Fskip_chars_forward)
17657 (open-paren-in-column-0-is-defun-start): Doc fix.
17658
17659 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
17660
17661 * fileio.c: Support // at start of name for Cygwin (just added proper
17662 preprocessor tests).
17663
17664 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
17665
17666 * Makefile.in: Use @EXEEXT@ for Cygwin.
17667
17668 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
17669
17670 * s/cygwin.h: Added for Cygwin port.
17671
17672 2003-01-31 Juanma Barranquero <lektu@terra.es>
17673
17674 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
17675 when including gif_lib.h.
17676 (init_gif_functions, init_tiff_functions): New functions.
17677 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
17678 Windows. Disable color table lookups. Call library functions
17679 through pointers determined at runtime.
17680 (init_external_image_libraries): Try to load libungif.dll and
17681 libtiff.dll.
17682
17683 2003-01-31 Kenichi Handa <handa@m17n.org>
17684
17685 * xdisp.c (SKIP_GLYPHS): New macro.
17686 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
17687
17688 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17689
17690 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
17691
17692 2003-01-30 Dave Love <fx@gnu.org>
17693
17694 * alloc.c (Vgc_elapsed, gcs_done): New variables.
17695 (Fgarbage_collect): Use them.
17696 (init_alloc, syms_of_alloc): Set them up.
17697
17698 2003-01-30 Juanma Barranquero <lektu@terra.es>
17699
17700 * w32fns.c (init_external_image_libraries): Add missing operator.
17701
17702 2003-01-29 Jason Rumney <jasonr@gnu.org>
17703
17704 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
17705 an alternative name for jpeg.dll.
17706
17707 2003-01-29 Kenichi Handa <handa@m17n.org>
17708
17709 * xdisp.c (set_cursor_from_row): Pay attention to string display
17710 properties.
17711
17712 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
17713
17714 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
17715 <escape>.
17716 (keycode_to_xkeysym_table): Reformat and add more comments.
17717 (XTread_socket): Drop special case for backspace.
17718
17719 2003-01-28 Andrew Choi <akochoi@shaw.ca>
17720
17721 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
17722 values in old-style RGB specs.
17723
17724 2003-01-27 Juanma Barranquero <lektu@terra.es>
17725
17726 * w32fns.c (init_external_image_libraries): Try alternate names for the
17727 jpeg dll.
17728
17729 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17730
17731 * gtkutil.c (create_dialog, xg_separator_p)
17732 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
17733 before calling strcmp or strlen.
17734
17735 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17736
17737 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
17738 and handle image load failure.
17739
17740 2003-01-26 Jason Rumney <jasonr@gnu.org>
17741
17742 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
17743 New functions.
17744 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
17745 Disable color table lookups. Call jpeg library functions
17746 through pointers determined at runtime.
17747 (init_external_image_libraries): Try to load jpeg.dll.
17748
17749 2003-01-25 Richard M. Stallman <rms@gnu.org>
17750
17751 * lisp.h: Declare format2 instead of format1.
17752
17753 * fileio.c (barf_or_query_if_file_exists):
17754 Call format2 instead of format1.
17755
17756 * editfns.c (format2): New function, replaces format1
17757 but takes exactly two Lisp Objects as format args.
17758
17759 * buffer.c (Fkill_buffer): Call format2 instead of format1.
17760
17761 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17762
17763 * xterm.h: Change to return value of x_dispatch_event to int.
17764
17765 * xterm.c (x_filter_event): New function.
17766 (event_handler_gdk, XTread_socket): Call x_filter_event.
17767 (x_dispatch_event): Change to return value of finish.
17768 (event_handler_gdk): Use return value from x_dispatch_event.
17769
17770 * xfns.c (x_window): Call create_frame_xic for GTK version to
17771 initialize input methods.
17772
17773 * gtkutil.h: Add (void) prototypes.
17774
17775 * gtkutil.c (create_menus): Remove code that puts the help menu to
17776 the right.
17777
17778 2003-01-25 Jason Rumney <jasonr@gnu.org>
17779
17780 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
17781 [HAVE_PNG]: Sync with xfns.c version.
17782 (png_load): Adjust colors for Windows. Use Windows
17783 bitmaps. Disable color table lookups.
17784 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
17785 (init_png_functions): New function.
17786 (png_read_from_memory, png_load): Call png library functions
17787 through pointers determined at runtime.
17788 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
17789 (init_external_image_libraries): New function.
17790 (init_xfns): Call it.
17791
17792 2003-01-24 Andreas Schwab <schwab@suse.de>
17793
17794 * minibuf.c (Fminibuffer_message): Verify type of parameter.
17795
17796 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17797
17798 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
17799 of static initializer.
17800
17801 2003-01-24 Dave Love <fx@gnu.org>
17802
17803 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
17804 architectures.
17805
17806 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
17807 Use __alignof__.
17808
17809 2003-01-24 Kenichi Handa <handa@m17n.org>
17810
17811 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
17812 It it is nonzero, don't pretend that an invisible area doesn't exist.
17813 (command_loop_1): Call adjust_point_for_property with proper
17814 second arg.
17815
17816 2003-01-22 Jason Rumney <jasonr@gnu.org>
17817
17818 Sync changes with xterm.c and xfns.c.
17819
17820 * w32term.c (x_draw_glyph_string_foreground)
17821 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17822
17823 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
17824 phys_cursor's hpos is overwritten. This is still not completely
17825 correct, as it doesn't really make sense to use hpos at all to
17826 get the cursor glyph (as that is relative to the width of the
17827 characters on the line, which may have changed during the update).
17828
17829 * w32term.c (notice_overwritten_cursor): Handle the special case
17830 of the cursor being in the first blank non-text line at the
17831 end of a window.
17832
17833 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
17834 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
17835 Compute from the x position returned by x_draw_glyphs.
17836
17837 (x_display_and_set_cursor): Don't set phys_cursor_width here,
17838 except for NO_CURSOR and system caret, to make phys_cursor_width
17839 contain what its name suggests.
17840 (notice_overwritten_cursor): Consider the cursor image erased if
17841 the output area intersects the cursor image in y-direction.
17842
17843 * w32term.c (note_mode_line_or_margin_highlight): Rename from
17844 note_mode_line_highlight and extend.
17845
17846 * w32term.c (last_window): New variable.
17847 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
17848 (note_mouse_movement): Remove reimplemented code in #if 0.
17849
17850 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
17851 not update_mode_lines, and always set it to 1.
17852
17853 2003-01-21 Jason Rumney <jasonr@gnu.org>
17854
17855 * w32fns.c (IDC_HAND): Define it if system headers don't.
17856
17857 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17858
17859 * w32term.h (struct w32_output): New member hand_cursor.
17860 (WM_EMACS_SETCURSOR): New message definition.
17861
17862 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
17863 function w32_define_cursor.
17864 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
17865 position, change member name output_data.x to output_data.w32 and
17866 add function w32_define_cursor.
17867 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
17868 and change member name output_data.x to output_data.w32.
17869 (w32_initialize_display_info):
17870 Setup dpyinfo->vertical_scroll_bar_cursor.
17871
17872 * w32fns.c (Vx_hand_shape): New variable.
17873 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
17874 WM_EMACS_SETCURSOR.
17875 (x-create-frame): Setup Cursor types.
17876
17877 2003-01-21 David Ponce <david@dponce.com>
17878
17879 * w32term.c (w32_encode_char): For DIM=1 charset, set
17880 ccl->reg[2] to -1 before calling ccl_driver.
17881 (Sync. with xterm.c x_encode_char change by Kenichi Handa
17882 <handa@m17n.org> on 2002-09-30.)
17883 (w32_draw_relief_rect): Declare all args.
17884 (w32_define_cursor): New.
17885
17886 * w32fns.c (w32_load_cursor): New function.
17887 (w32_init_class): Use it.
17888 (x_put_x_image): Declare all args.
17889
17890 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
17891
17892 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
17893
17894 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17895
17896 * gtkutil.c: Must include stdio.h before termhooks.h
17897
17898 2003-01-21 Dave Love <fx@gnu.org>
17899
17900 * alloc.c (Fgc_status): Print zombie list.
17901 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17902 Fix assignment of zombies.
17903 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
17904 Don't take car of non-cons.
17905
17906 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17907
17908 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17909
17910 2003-01-20 David Ponce <david@dponce.com>
17911
17912 * w32menu.c (digest_single_submenu): Declare all args.
17913
17914 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
17915 changes in xmenu.c:
17916
17917 (parse_single_submenu): Use individual keymap's prompt
17918 string as pane name, if there is one.
17919 (set_frame_menubar): Save menu_items_n_panes from each call to
17920 parse_single_submenu and use it when calling digest_single_submenu.
17921
17922 2003-01-20 Steven Tamm <steventamm@mac.com>
17923
17924 * macterm.c (XTread_socket): Check for valid, visible window
17925 before sending a scroll-wheel event.
17926
17927 2003-01-20 Richard M. Stallman <rms@gnu.org>
17928
17929 * xdisp.c (redisplay_window): If mini window's buffer is not
17930 a minibuffer, then redisplay it like other windows.
17931
17932 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17933
17934 * gtkutil.c (xg_create_frame_widgets): Check if there is an
17935 external tool bar before setting tool bar height.
17936
17937 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17938
17939 * xterm.c (handle_one_xevent): Surround popup_activated
17940 with #ifdef:s for non-toolkit version.
17941
17942 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
17943 (gtkutil.o): New file.
17944 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
17945 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
17946
17947 * gtkutil.c: New file for GTK version.
17948
17949 * gtkutil.h: New file for GTK version.
17950
17951 * xterm.h: Add xt_or_gtk_widget.
17952 Include gtk files for USE_GTK.
17953 (struct x_output): Add toolbar_height.
17954 (struct x_output): Add GTK widgets and Gdk size_hints.
17955 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
17956 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
17957 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
17958
17959 * xterm.c: Include gtkutil.h for USE_GTK.
17960 (free_frame_menubar): Declare extern void for USE_GTK.
17961 (note_mouse_highlight): Check popup_activated for USE_GTK.
17962 (xt_action_hook): Don't compile if USE_GTK.
17963 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
17964 (xg_scroll_callback): New function.
17965 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
17966 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
17967 for USE_GTK.
17968 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
17969 xg_show_scroll_bar for USE_GTK.
17970 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
17971 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
17972 (event_handler_gdk): New function for USE_GTK.
17973 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
17974 (handle_one_xevent): Make sure widget is mapped before
17975 calling x_real_positions for USE_GTK.
17976 (XTread_socket): Add GTK event loop for USE_GTK.
17977 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
17978 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
17979 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
17980 (x_iconify_frame): Add code for USE_GTK.
17981 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
17982 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
17983 is in gtkutil.c.
17984 (x_term_init): Add initialization for GTK.
17985 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
17986
17987 * xmenu.c: Include gtkutil.h for USE_GTK.
17988 (Fx_popup_menu): Use current position if x and y is NIL.
17989 (single_menu_item, single_menu_item, Fx_popup_dialog):
17990 Check for USE_GTK.
17991 (popup_widget_loop): New function for USE_GTK.
17992 (x_activate_menubar): Add code for USE_GTK.
17993 (popup_activate_callback, popup_deactivate_callback)
17994 (menu_highlight_callback, menubar_selection_callback):
17995 Add USE_GTK versions.
17996 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
17997 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
17998 (free_frame_menubar): Only compile if not USE_GTK. GTK version
17999 is in gtkutil.c.
18000 (popup_selection_callback): New version for USE_GTK.
18001 (create_and_show_popup_menu): New fuction, one USE_GTK version and
18002 one USE_X_TOOLKIT version.
18003 (xmenu_show): Call create_and_show_popup_menu.
18004 (dialog_selection_callback): New version for USE_GTK.
18005 (create_and_show_dialog): New fuction, one USE_GTK version and
18006 one USE_X_TOOLKIT version.
18007 (xdialog_show): Call create_and_show_dialog.
18008
18009 * xfns.c: Include gtkutil for USE_GTK.
18010 (x_window_to_frame, x_any_window_to_frame)
18011 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18012 (x_top_window_to_frame): Add code for USE_GTK.
18013 (x_set_background_color): Call xg_set_background_color for GTK.
18014 (x_set_menu_bar_lines): Check for USE_GTK.
18015 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
18016 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
18017 (x_window): Call xg_create_frame_widgets for USE_GTK.
18018 (Fx_create_frame): Check for USE_GTK
18019 (Fx_file_dialog): New implementation for USE_GTK.
18020
18021 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
18022 (update_menu_bar): Add check for USE_GTK.
18023 (update_tool_bar): Add check for USE_GTK and external tool bar.
18024 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
18025 (redisplay_internal): Add check for USE_GTK and popup_activated.
18026 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
18027 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
18028 (display_menu_bar): Add check for USE_GTK
18029
18030 * lisp.h (Vx_resource_name): Declare extern.
18031
18032 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
18033 for USE_GTK.
18034 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
18035
18036 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
18037 (FRAME_EXTERNAL_TOOL_BAR): New macro.
18038 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
18039
18040 * fileio.c (Fread_file_name): Add check for USE_GTK.
18041
18042 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
18043 Add check for USE_GTK.
18044
18045 * config.in: Added HAVE_GTK
18046
18047 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
18048
18049 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
18050
18051 * charset.h (Funibyte_char_to_multibyte): Export.
18052
18053 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18054
18055 * xmenu.c (mouse_position_for_popup): New function.
18056 (Fx_popup_menu): Call mouse_position_for_popup for X and
18057 mouse_position_hook for others.
18058
18059 2003-01-17 Kim F. Storm <storm@cua.dk>
18060
18061 * editfns.c (Finsert): Mention `string-make-multibyte' and
18062 `string-as-multibyte' in doc string.
18063
18064 2003-01-17 Kenichi Handa <handa@m17n.org>
18065
18066 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
18067
18068 * editfns.c (Fformat): Convert an unibyte char argument that is
18069 formatted by "%c" to multibyte if the total result must be a
18070 multibyte string.
18071
18072 2003-01-16 Kim F. Storm <storm@cua.dk>
18073
18074 * process.c (set-process-filter): Document unibyte/multibyte-ness
18075 of string argument.
18076
18077 2003-01-16 Kenichi Handa <handa@m17n.org>
18078
18079 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
18080
18081 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
18082 (re_search_2): Likewise.
18083
18084 2003-01-15 Kenichi Handa <handa@m17n.org>
18085
18086 * xdisp.c (message_dolog): Fix bug of the case that *Message*
18087 buffer is unibyte.
18088
18089 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
18090
18091 * fns.c (Fsubstring): Clarify doc string.
18092
18093 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
18094 (Fprevious_char_property_change)
18095 (Fnext_single_char_property_change)
18096 (Fprevious_single_char_property_change, Fnext_property_change)
18097 (Fnext_single_property_change, Fprevious_property_change)
18098 (Fprevious_single_property_change, Fadd_text_properties)
18099 (Fput_text_property, Fset_text_properties)
18100 (Fremove_text_properties, Fremove_list_of_text_properties)
18101 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
18102
18103 2003-01-14 Kim F. Storm <storm@cua.dk>
18104
18105 * process.h (struct Lisp_Process): New member plist replaces old
18106 member private_vars. All uses changed.
18107
18108 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
18109 (QCplist): Rename from QCvars. Change all uses.
18110 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
18111 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
18112 (syms_of_process): Intern, staticpro, defsubr these.
18113 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
18114
18115 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
18116
18117 * m/delta.h: Remove (obsolete).
18118
18119 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
18120
18121 * fileio.c (Fdelete_directory, Fdelete_file): Document the
18122 behaviour in front of symlinks.
18123 (Fdelete_file): Raise an error on directories.
18124
18125 2003-01-13 Dave Love <fx@gnu.org>
18126
18127 * fns.c (Freverse): Use QUIT.
18128
18129 2003-01-13 Richard M. Stallman <rms@gnu.org>
18130
18131 * minibuf.c (minibuffer_completion_contents):
18132 Error if point is inside prompt.
18133
18134 * keyboard.c (command_loop_1): Don't redisplay directly
18135 if there's a post-command-hook.
18136
18137 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
18138 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
18139
18140 2003-01-12 Kim F. Storm <storm@cua.dk>
18141
18142 * process.h (struct Lisp_Process): New member private_vars.
18143
18144 * process.c (QCvars): New variable.
18145 (syms_of_process): Intern and staticpro it.
18146 (Fset_process_contact): Removed function.
18147 (Fprocess_variable, Fset_process_variable): New functions.
18148 (syms_of_process): Defsubr them.
18149 (Fstart_process): Initialize private_vars plist to nil.
18150 (Fmake_network_process): New arg :vars to setup the private
18151 variables for new network process.
18152 (server_accept_connection): Copy server's private variables to
18153 client process.
18154
18155 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
18156 crashes). Code rewritten and simplified. Now directly aligns the
18157 pointer and recalculates pure_bytes_used, rather than aligning the
18158 size and adjusting the pointer.
18159
18160 2003-01-11 Kim F. Storm <storm@cua.dk>
18161
18162 * process.c (Fset_process_contact): New function.
18163 (syms_of_process): defsubr it.
18164 (make-network-process): Update doc.
18165
18166 2003-01-10 Andreas Schwab <schwab@suse.de>
18167
18168 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
18169 Reported by Berthold Gunreben <b.gunreben@web.de>.
18170
18171 2003-01-10 Dave Love <fx@gnu.org>
18172
18173 * composite.c (syms_of_composite): Make composition_hash_table weak.
18174
18175 2003-01-09 Kim F. Storm <storm@cua.dk>
18176
18177 * process.c (Fmake_network_process): Convert new port number
18178 to host byte order for `:service t' case. From Mario Lang.
18179
18180 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18181
18182 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
18183 instead of XtAppProcessEvent.
18184
18185 * xterm.c (handle_one_xevent): New function.
18186 (x_dispatch_event): New function.
18187 (XTread_socket): Call handle_one_xevent.
18188
18189 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
18190
18191 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
18192 call XQueryPointer to get coordinates.
18193 (popup_get_selection): Do not set popup_activated_flag to zero,
18194 let popup_deactivate_callback do that. Needed for Motif.
18195 Call x_dispatch_event instead of XtDispatchEvent.
18196 (xmenu_show): Calculate root coordinate from frame top/left position.
18197
18198 2003-01-08 Kim F. Storm <storm@cua.dk>
18199
18200 * process.c (server_accept_connection): Fix recording of new
18201 connection's local address in :local property of contact info.
18202 (Fmake_network_process): Record local network address for new
18203 client processes in :local property of contact info.
18204 (format-network-address): Add arg OMIT-PORT. Change callers.
18205
18206 2003-01-07 Dave Love <fx@gnu.org>
18207
18208 * Makefile.in (fns.o): Depend on coding.h.
18209
18210 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
18211
18212 * minibuf.c (Fread_variable): Doc fix.
18213
18214 * eval.c (Fuser_variable_p): Doc change. For custom variables,
18215 use the same test as for custom-variable-p.
18216
18217 2003-01-05 Richard M. Stallman <rms@gnu.org>
18218
18219 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
18220 Count LAST_LINE_MISFIT in scroll margin for end of window.
18221 Move label too_near_end before setting SCROLL_MARGIN_POS.
18222 Set LAST_LINE_MISFIT before jumping there.
18223
18224 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
18225 scroll_conservatively case. If scrolling that much doesn't change
18226 STARTP, move it down one line.
18227
18228 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
18229 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
18230
18231 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
18232 selected frame.
18233
18234 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
18235 (syms_of_keymap): Staticpro them.
18236 (Fapropos_internal): Initialize them and clear them out.
18237 Don't GCPRO them.
18238
18239 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
18240
18241 * lisp.h: New misc type Lisp_Save_Value.
18242 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
18243 (XSAVE_VALUE): New macro.
18244 (struct Lisp_Save_Value): New data type.
18245 (union Lisp_Misc): Add u_save_value alternative.
18246 (make_save_value): Declare.
18247
18248 * alloc.c (make_save_value): New function.
18249
18250 * xterm.c (x_catch_errors): Save dpy using make_save_value.
18251 (x_catch_errors_unwind): Call XSync.
18252
18253 2003-01-01 Richard M. Stallman <rms@gnu.org>
18254
18255 * window.c (window_scroll_pixel_based): Partially undo last change.
18256
18257 * keyboard.c (command_loop_1): Call adjust_point_for_property
18258 in direct action cases for Qforward_char and Qbackward_char.
18259 Set already_adjusted so it won't be done twice.
18260
18261 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
18262
18263 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
18264 type definition of size_t.
18265
18266 2003-01-02 Steven Tamm <steventamm@mac.com>
18267
18268 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
18269 distinguish Carbon GUI builds from X11 builds on darwin.
18270
18271 2002-12-30 Steven Tamm <steventamm@mac.com>
18272
18273 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
18274 to default to t.
18275
18276 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
18277
18278 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
18279
18280 2002-12-28 Steven Tamm <steventamm@mac.com>
18281
18282 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
18283 allow building in a different directory than source. Uses some
18284 GNU Make extensions, but there is no other make on Mac OS X.
18285
18286 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
18287
18288 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
18289 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
18290 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
18291 (Fstring_to_number): Mention the returned value in the doc strings.
18292
18293 2002-12-23 Richard M. Stallman <rms@gnu.org>
18294
18295 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
18296 <scroll-down-aggressively>: Doc fix.
18297
18298 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
18299 string as pane name, if there is one.
18300 (set_frame_menubar): Save menu_items_n_panes from each call to
18301 parse_single_submenu and use it when calling digest_single_submenu.
18302
18303 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
18304 Don't try to make last line fully visible if it is past end of window.
18305
18306 2002-12-22 Steven Tamm <steventamm@mac.com>
18307
18308 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
18309 (mac_menu_show): Add support for hierarchical popup menus.
18310 (add_menu_item): Remove indentation support.
18311 (fill_submenu, fill_menu): Create hierarchical menus
18312 instead of using indentation.
18313
18314 2002-12-22 Richard M. Stallman <rms@gnu.org>
18315
18316 * xdisp.c (try_cursor_movement): Don't call try_window here.
18317 (redisplay_window): Never redisplay minibuffer when inactive.
18318
18319 * window.c (select_window_1): Undo 9/21 change.
18320
18321 2002-12-22 Steven Tamm <steventamm@mac.com>
18322
18323 * macterm.c (XTread_socket): Call KeyTranslate for control and
18324 meta to deal correctly shifted non-alpha characters, like C-S-5
18325 being treated like C-%. Do not look for shift key to deal
18326 with masking off control-key with mac-reverse-ctrl-meta.
18327
18328 2002-12-21 Richard M. Stallman <rms@gnu.org>
18329
18330 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
18331 If it is non-nil, run timers. Use an unwind-protect to requeue
18332 the events that were read ahead.
18333 (popup_get_selection_unwind): New subroutine.
18334 (popup_get_selection_queue): File-scope variable now holds that queue.
18335 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
18336 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
18337 Use an unwind-protect to pop down the dialog box.
18338 (xdialog_show_unwind): New subroutine implements that.
18339
18340 * xdisp.c (row_containing_pos): Change exit test using last_y.
18341 (try_window_id): Abort if row_containing_pos returns null.
18342
18343 * lread.c (load_error_handler): New function.
18344 (Fload): Handle errors in Fsubstitute_in_file_name.
18345 Don't expect Fsignal to return.
18346
18347 * eval.c: Errors and throws work right with interrupt blocking.
18348 (struct catchtag): New elt interrupt_input_blocked.
18349 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
18350 (internal_catch, Fcondition_case, internal_condition_case)
18351 (internal_condition_case_1, internal_condition_case_2): Save it.
18352 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
18353
18354 * editfns.c (Fformat): Add parens.
18355
18356 * dired.c (file_name_completion): Fix that change.
18357 Delete special quit-handling code; just use QUIT.
18358
18359 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
18360
18361 * dired.c (file_name_completion): Close directory on error
18362 just as in directory_files_internal.
18363
18364 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
18365
18366 * window.c (Fset_window_configuration): Set old_point to correct
18367 value when new_current_buffer == current_buffer.
18368
18369 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
18370
18371 Revisited my earlier fix for the following entry in etc/PROBLEMS:
18372 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18373 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18374
18375 These changes were in part based upon suggestions made by Peter
18376 'Luna' Runestig [peter@runestig.com].
18377
18378 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
18379 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
18380 (g_b_init_get_sid_identifier_authority ): Add several static
18381 global variables.
18382
18383 * w32.c (globals_of_w32): New function. Used to initialize those
18384 global variables that must always be initialized on startup even
18385 when the global variable initialized is non zero. Its primary
18386 purpose at this time is to set the global variables
18387 g_b_init_is_windows_9x, g_b_init_open_process_token,
18388 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
18389 g_b_init_get_sid_identifier_authority to 0 on startup.
18390 Called from main.
18391
18392 * w32.c (is_windows_9x): Perform initialization only if
18393 g_b_init_is_windows_9x is equal to 0. On initialization set
18394 g_b_init_is_windows_9x equal to 1.
18395
18396 * w32.c (open_process_token): Perform initialization only if
18397 g_b_init_open_process_token is equal to 0. On initialization set
18398 g_b_init_open_process_token equal to 1.
18399
18400 * w32.c (get_token_information): Perform initialization only if
18401 g_b_init_get_token_information is equal to 0. On initialization
18402 set g_b_init_get_token_information equal to 1.
18403
18404 * w32.c (lookup_account_sid): Perform initialization only if
18405 g_b_init_lookup_account_sid is equal to 0. On initialization
18406 set g_b_init_lookup_account_sid equal to 1.
18407
18408 * w32.c (get_sid_identifier_authority): Perform initialization
18409 only if g_b_init_get_sid_identifier_authority is equal to 0.
18410 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
18411
18412 * w32fns.c (globals_of_w32fns): New function. Used to initialize
18413 those global variables that must always be initialized on startup
18414 even when the global variable initialized is non zero.
18415 Its primary purpose at this time is to initialize the global variable
18416 track_mouse_event_fn.
18417
18418 * w32fns.c (w32_wnd_proc): Remove initialization of
18419 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
18420
18421 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
18422
18423 * w32menu.c (globals_of_w32menu): New function. Used to
18424 initialize those global variables that must always be initialized
18425 on startup even when the global variable initialized is non zero.
18426 Its primary purpose at this time is to initialize the global
18427 variables get_menu_item_info and set_menu_item_info.
18428
18429 * w32menu.c (initialize_frame_menubar): Remove initialization of
18430 get_menu_item_info and set_menu_item_info.
18431
18432 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
18433
18434 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
18435 Declare them.
18436
18437 * emacs.c (main): Call globals_of_w32 prior to calling
18438 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
18439 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
18440 is defined.
18441
18442 * w32term.c (x_update_window_begin): Fix Windows API error
18443 detected by BoundsChecker. Test to determine if
18444 w32_system_caret_hwnd is NULL prior to attempting to use
18445 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
18446
18447 * w32term.c (x_update_window_end): Fix Windows API error
18448 detected by BoundsChecker. Test to determine if
18449 w32_system_caret_hwnd is NULL prior to attempting to use
18450 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
18451
18452 2002-12-17 Kenichi Handa <handa@m17n.org>
18453
18454 * coding.c (coding_system_require_warning): New variable.
18455 (syms_of_coding): DEFVAR it.
18456
18457 * coding.h (coding_system_require_warning): Extern it.
18458
18459 * fileio.c (choose_write_coding_system): Even if
18460 Vcoding_system_for_write is non-nil, if
18461 coding_system_require_warning is nonzero, call
18462 Vselect_safe_coding_system_function.
18463
18464 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
18465
18466 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
18467 (lisp): Add font-core.
18468
18469 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
18470
18471 * textprop.c (text_read_only): New arg `propval'.
18472 (get_char_property_and_overlay): Remove unused var `next_overlay'.
18473 (verify_interval_modification): Use text_read_only's new arg.
18474
18475 2002-12-13 Kenichi Handa <handa@m17n.org>
18476
18477 * coding.c (Funencodable_char_position): Set pend correctly.
18478
18479 2002-12-12 Jason Rumney <jasonr@gnu.org>
18480
18481 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
18482 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
18483 Be more careful about when help_events are generated.
18484
18485 2002-12-12 Steven Tamm <steventamm@mac.com>
18486
18487 * macterm.c (mac_check_for_quit_char): Correctly set the
18488 modifiers of the event to 0.
18489 * mac.c (sys_select): Duplicate rfds before calling select to
18490 ensure that rfds survive the while loop.
18491
18492 2002-12-11 Kim F. Storm <storm@cua.dk>
18493
18494 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
18495 row_containing_pos returned NULL.
18496
18497 2002-12-10 Steven Tamm <steventamm@mac.com>
18498
18499 * mac.c (sys_read): Fix sys_read to not call select if IO is
18500 non-blocking.
18501 (sys_select): Fix sys_select to not use a timeout larger than
18502 the one given.
18503
18504 2002-12-10 Juanma Barranquero <lektu@terra.es>
18505
18506 * editfns.c (Fformat): Use alloca, not _alloca.
18507
18508 2002-12-09 Richard M. Stallman <rms@gnu.org>
18509
18510 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
18511 as the last thing.
18512
18513 2002-12-09 Dave Love <fx@gnu.org>
18514
18515 * s/sol2-8.h: Removed. (Not necessary.)
18516
18517 2002-12-09 Matthew Swift <swift@alum.mit.edu>
18518
18519 * editfns.c (Fformat): Handle precision in string conversion
18520 specifiers like libc functions do (ie, print at most that many
18521 characters).
18522
18523 2002-12-08 Richard M. Stallman <rms@gnu.org>
18524
18525 * xdisp.c (row_containing_pos): Check more carefully
18526 whether charpos is really in the row before returning it.
18527
18528 2002-12-07 Steven Tamm <steventamm@mac.com>
18529
18530 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
18531
18532 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
18533 each stack frame. This may change as it could be time consuming.
18534
18535 * macterm.c (mac_check_for_quit_char, quit_char_comp)
18536 (init_quit_char_handler, mac_determine_quit_char_modifiers)
18537 (mac_initialize): Add code to check for pressing of quit_char
18538 in the OS event queue.
18539
18540 * mac.c (sys_select): Call mac_check_for_quit_char every second
18541 while blocking on select.
18542
18543 * mac.c (sys_read): Use sys_select to test for input first
18544 before calling read, to allow C-g to break.
18545
18546 2002-12-07 Richard M. Stallman <rms@gnu.org>
18547
18548 * minibuf.c (Fcompleting_read): Doc fix.
18549
18550 * lread.c (syms_of_lread) <load-history>: Doc fix.
18551
18552 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
18553
18554 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
18555 autoload.
18556
18557 * data.c (Fdefalias): Record in load-history redefining an autoload.
18558
18559 * alloca.c: Undo ifdef change accidentally made on 12-04.
18560
18561 2002-12-06 Francesco Potorti` <pot@gnu.org>
18562
18563 * xfns.c (png_load): Avoid double gamma correction for PNG images.
18564
18565 2002-12-04 Richard M. Stallman <rms@gnu.org>
18566
18567 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
18568
18569 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
18570
18571 * alloca.c: Don't use #error.
18572
18573 2002-12-03 Dave Love <fx@gnu.org>
18574
18575 * buffer.c (Qucs_set_table_for_input): New.
18576 (Fget_buffer_create): Use it.
18577 (Qset_buffer_major_mode_hook): Deleted.
18578 (Fset_buffer_major_mode): Revert previous change.
18579 (init_buffer_once): Intern ucs-set-table-for-input.
18580 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
18581 Add &Qucs_set_table_for_input.
18582
18583 2002-12-03 Andreas Schwab <schwab@suse.de>
18584
18585 * callint.c (Fcall_interactively): Use next_event only if less
18586 than key_count.
18587
18588 2002-12-02 Andrew Choi <akochoi@shaw.ca>
18589
18590 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
18591 names to 255 characters.
18592
18593 * macterm.c (XTread_socket): If all frames have been collapsed,
18594 expand the first one before handling drag-and-drop events.
18595
18596 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
18597 which is detected by autoconf.
18598
18599 2002-12-01 Steven Tamm <steventamm@mac.com>
18600
18601 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
18602 offset in two hints table to allow prebinding to be redone and
18603 allow the executable to be stripped.
18604
18605 2002-11-29 Dave Love <fx@gnu.org>
18606
18607 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
18608 already provided.
18609
18610 2002-11-29 Richard M. Stallman <rms@gnu.org>
18611
18612 * xdisp.c (start_display): Check more intelligently for
18613 whether the line is continued.
18614 (move_it_vertically_backward): Clear it->continuation_lines_width.
18615
18616 2002-11-28 Dave Love <fx@gnu.org>
18617
18618 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
18619 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
18620
18621 2002-11-27 Steven Tamm <steventamm@mac.com>
18622
18623 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
18624 more descriptive error output from lread.c:Fload upon most require
18625 cycles during boostrapping.
18626
18627 2002-11-27 Jason Rumney <jasonr@gnu.org>
18628
18629 * fileio.c (Finsert_file_contents): Give a more appropriate error
18630 for files bigger than 2Gb when off_t is 32 bit.
18631
18632 * dired.c (Ffile_attributes): Don't return negative file sizes for
18633 files bigger than 2Gb when off_t is 32 bit.
18634
18635 2002-11-27 Dave Love <fx@gnu.org>
18636
18637 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18638
18639 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
18640 Test GETPGRP_VOID instead.
18641 [BSD_TERMIOS]: Remove definitions (never used).
18642
18643 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
18644 Don't define.
18645 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18646
18647 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
18648
18649 2002-11-25 Jason Rumney <jasonr@gnu.org>
18650
18651 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
18652 supported.
18653
18654 2002-11-25 Dave Love <fx@gnu.org>
18655
18656 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
18657
18658 * Makefile.in (TEMACS_LDFLAGS): Update last change.
18659
18660 2002-11-25 Andreas Schwab <schwab@suse.de>
18661
18662 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
18663
18664 2002-11-24 Steven Tamm <steventamm@mac.com>
18665
18666 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
18667 determine the size of pointers alloced in unexed space instead
18668 of using possibly invalid emacs_zone pointers. This fixes the
18669 binary incompatibility problems caused by updates to libSystem.B.
18670
18671 2002-11-24 Richard M. Stallman <rms@gnu.org>
18672
18673 * search.c (Fstring_match): Doc fix.
18674
18675 * callint.c (Fcall_interactively): If a command fails because
18676 `*' detects a read-only buffer, but RECORD_FLAG is set,
18677 record it anyway if the args don't actually do tty input.
18678
18679 2002-11-22 Dave Love <fx@gnu.org>
18680
18681 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
18682
18683 * keyboard.c (interrupt_signal): Provide forward declaration.
18684 (kbd_buffer_store_event): Don't declare interrupt_signal.
18685
18686 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
18687
18688 2002-11-21 Richard M. Stallman <rms@gnu.org>
18689
18690 * eval.c (interactive_p): Skip any number of bytecode
18691 and special form frames, in any order.
18692
18693 2002-11-20 Jason Rumney <jasonr@gnu.org>
18694
18695 * w32fns.c (convert_mono_to_color_image): New function.
18696 (xbm_load, xbm_load_image): Use it when foreground or background
18697 is explicitly set.
18698
18699 2002-11-19 Dave Love <fx@gnu.org>
18700
18701 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
18702
18703 2002-11-18 Jason Rumney <jasonr@gnu.org>
18704
18705 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
18706 (XPutPixel): Swap blue and red.
18707 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
18708 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
18709 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
18710 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
18711
18712 2002-11-18 Dave Love <fx@gnu.org>
18713
18714 * m/orion105.h (HAVE_ALLOCA): Don't define.
18715
18716 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
18717
18718 * m/intel386.h: Don't include alloca.h or define alloca.
18719
18720 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
18721 malloc, realloc, calloc.
18722
18723 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
18724 (bcmp): Don't define.
18725
18726 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
18727
18728 * m/amdahl.h: Don't define LIB_STANDARD.
18729
18730 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
18731
18732 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
18733
18734 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
18735 Don't include alloca.h.
18736
18737 * s/aix3-2.h (HAVE_FSYNC): Don't define.
18738
18739 * regex.c (_GNU_SOURCE): Don't define.
18740
18741 * process.c (_GNU_SOURCE): Don't define.
18742
18743 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
18744
18745 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
18746
18747 * s/sol2-8.h: Include sol2-6.h.
18748
18749 2002-11-18 Miles Bader <miles@gnu.org>
18750
18751 * dispextern.h (struct face): Add `overstrike' field.
18752 * xterm.c (x_draw_glyph_string_foreground)
18753 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18754 * xfaces.c (load_face_font): Set `face->overstrike' based on
18755 result from choose_face_font.
18756 (best_matching_font, choose_face_font): Add `needs_overstrike'
18757 argument, and use it to return whether overstriking is desirable
18758 for this face/font combo.
18759 (set_font_frame_param: Pass new argument to choose_face_font.
18760
18761 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18762
18763 This change is my fix for the following entry in etc/PROBLEMS:
18764 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
18765 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
18766
18767 * w32.c: Added wrapper functions around the win32 API functions
18768 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
18769 GetSidIdentifierAuthority. These wrapper functions serve two
18770 purposes:
18771 1. They ensure that the wrapped function can never be called
18772 when Emacs is running on an operating system on which they are
18773 not supported (Microsoft Windows 95 / 98 / ME).
18774 2. They call the wrapped functions via function pointers rather
18775 than calling them directly. This avoids taking advantage of the
18776 undocumented fact that although these functions are not supported
18777 in the 9x branch of Microsoft Windows, the functions do exist in
18778 the version of advapi32.dll that is found in the 9x branch of
18779 Microsoft Windows.
18780
18781 * w32.c (init_user_info): Replace the calls to the win32 API
18782 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
18783 and GetSidIdentifierAuthority with calls to the newly added
18784 wrapper functions.
18785
18786 * w32.h: Added extern declarations for the following functions:
18787 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
18788 syms_of_w32menu, and void syms_of_fontset.
18789
18790 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
18791 function pointer track_mouse_event_fn in the handler for the
18792 WM_SETFOCUS message.
18793
18794 * w32menu.c (initialize_frame_menubar): Add code to
18795 reinitialize the function pointers set_menu_item_info and
18796 get_menu_item_info.
18797
18798 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
18799
18800 * sound.c: Added a partial implementation of play-sound-internal
18801 for Microsoft Windows. Added various #ifdef / #else / #endif
18802 code blocks to separate the code that will compile under
18803 Microsoft Windows from the code that is specific to GNU/Linux.
18804 Moved several blocks of code around to make this separation of code
18805 into Windows compatible and GNU/Linux compatible code blocks easier.
18806
18807 * makefile.w32-in: Include sound.c and link with WinMM.lib.
18808
18809 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
18810 added support for play-sound-internal under Windows would be
18811 included in the build of Emacs.
18812
18813 2002-11-16 Jason Rumney <jasonr@gnu.org>
18814
18815 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
18816
18817 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
18818
18819 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
18820
18821 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
18822 (adjust_point_for_property): Move out of display and invisible even if
18823 we were already inside before (in case a property was added while
18824 we weren't looking). Be more careful when handling invisible props.
18825 Skip invisible text as if it really wasn't there at all.
18826
18827 2002-11-15 Jason Rumney <jasonr@gnu.org>
18828
18829 * w32term.c (x_draw_image_foreground)
18830 (w32_draw_image_foreground_1): Use standard copy and invert
18831 operations to draw images.
18832
18833 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
18834 depth of 1.
18835 (xbm_read_bitmap_data): Invert bits as xbm is read in.
18836 (XPutPixel): Don't invert bits here.
18837
18838 2002-11-15 Jason Rumney <jasonr@gnu.org>
18839
18840 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
18841 (w32_draw_image_foreground_1): Handle image masks.
18842 (x_draw_image_glyph_string): Don't BitBlt transparently.
18843
18844 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
18845 (x_from_xcolors): Adjust RGB values for W32.
18846 (image_background, image_background_transparent)
18847 (postprocess_image, x_to_xcolors, x_disable_image)
18848 (x_build_heuristic_mask): Adapt for W32 and enable.
18849 (x_create_x_image_and_pixmap): Mark images with palettes as such.
18850 (xbm_load): Remove unused variable.
18851
18852 2002-11-14 Richard M. Stallman <rms@gnu.org>
18853
18854 * buffer.c (syms_of_buffer): Doc fix.
18855
18856 2002-11-14 Dave Love <fx@gnu.org>
18857
18858 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
18859
18860 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
18861 * xmenu.c (unuse_menu_items, digest_single_submenu):
18862 * xfns.c (x_put_x_image):
18863 * xdisp.c (message2_nolog, set_message):
18864 * undo.c (record_point):
18865 * terminfo.c (tparam):
18866 * syntax.c (scan_sexps_forward):
18867 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18868 * composite.c (update_compositions):
18869 * cm.c (calccost, cmgoto):
18870 * charset.c (c_string_width): Declare all args (per C99).
18871
18872 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
18873
18874 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
18875 Don't declare.
18876
18877 * emacs.c (main) [!VMS]: Avoid third arg.
18878
18879 * fns.c (Fcopy_sequence): Doc fix.
18880 (Fmap_char_table): Cast `call2'.
18881
18882 2002-11-14 Francesco Potorti` <pot@gnu.org>
18883
18884 * s/sol2-8.h: New file.
18885
18886 2002-11-14 Kim F. Storm <storm@cua.dk>
18887
18888 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
18889 dependency on `risky-local-variable' and the :propertize form.
18890
18891 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
18892
18893 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
18894
18895 * syntax.c (scan_sexps_forward): Undo last patch.
18896 Use a more obvious fix: check eob before updating the syntax table.
18897
18898 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
18899
18900 * syntax.c (scan_sexps_forward): Update syntax table before reading
18901 a char rather than after so we don't update the table past eob.
18902
18903 2002-11-09 Dave Love <fx@gnu.org>
18904
18905 * buffer.c (Fset_buffer_major_mode): Fix last change.
18906
18907 * regex.c (regexec): Fix pmatch declaration.
18908
18909 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
18910
18911 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
18912 to self-inserting characters.
18913 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
18914
18915 * coding.c (Vtranslation_table_for_input): New.
18916 (syms_of_coding): DEFVAR it.
18917
18918 2002-11-08 Juanma Barranquero <lektu@terra.es>
18919
18920 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
18921 window.
18922
18923 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18924
18925 * process.c (Fformat_network_address): Remove unused locals p,
18926 cp, and i.
18927
18928 2002-11-06 Dave Love <fx@gnu.org>
18929
18930 * buffer.c (Qset_buffer_major_mode_hook): New.
18931 (Fset_buffer_major_mode): Use it.
18932
18933 2002-11-06 Richard M. Stallman <rms@gnu.org>
18934
18935 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
18936 and stop_polling.
18937
18938 * process.c (wait_reading_process_input):
18939 Test POLLING_PROBLEM_IN_SELECT, not hpux.
18940 Avoid initialization for auto Lisp_Object var.
18941
18942 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
18943
18944 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
18945
18946 2002-11-05 Richard M. Stallman <rms@gnu.org>
18947
18948 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
18949
18950 * callint.c (Fcall_interactively): New local filter_specs.
18951 (Fcall_interactively): Check for progn as well as let.
18952 Add a gcpro.
18953 (Qprogn): New variable.
18954 (syms_of_callint): Staticpro and init Qprogn.
18955
18956 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
18957
18958 * lread.c (Feval_buffer): Doc fix.
18959
18960 2002-11-04 Dave Love <fx@gnu.org>
18961
18962 * keyboard.c (read_char): Always translate iff
18963 Vkeyboard_translate_table is a char table and c is valid.
18964
18965 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18966 and fix C types.
18967
18968 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
18969
18970 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
18971
18972 * editfns.c (get_pos_property): Don't hardcode Qfield.
18973
18974 * keyboard.c (adjust_point_for_property): Handle `display' prop on
18975 overlays. Also handle `invisible' prop.
18976
18977 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
18978
18979 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
18980 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
18981
18982 2002-11-01 Andreas Schwab <schwab@suse.de>
18983
18984 * editfns.c (Fmessage): Revert last change to properly handle %%.
18985
18986 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
18987
18988 * xmenu.c (unuse_menu_items): New fun.
18989 (menu_items_inuse): New var.
18990 (syms_of_xmenu): Initialize it.
18991 (init_menu_items): Use it to detect re-entrance.
18992 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
18993 (Fx_popup_menu): Remove spurious XSETFRAME.
18994
18995 * editfns.c (find_field): Make an exception for nil fields.
18996
18997 2002-11-01 Dave Love <fx@gnu.org>
18998
18999 * m/gec63.h: Deleted.
19000
19001 2002-10-31 Dave Love <fx@gnu.org>
19002
19003 * xterm.c (XTread_socket): Fix last change.
19004 (xaw_scroll_callback): Cast call_data to long to avoid warning.
19005
19006 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
19007
19008 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
19009
19010 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
19011
19012 * editfns.c (overlays_around, get_pos_property): New funs.
19013 (find_field): Use them.
19014 Also be careful not to modify POS before its last use.
19015 (Fmessage): Don't Fformat if there's nothing to format.
19016
19017 2002-10-30 Dave Love <fx@gnu.org>
19018
19019 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
19020 [HAVE_PTY_H]; Include pty.h.
19021
19022 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
19023
19024 * xterm.c (Qeql): Declare.
19025 (Vx_keysym_table): New.
19026 (syms_of_xterm): Initialize it.
19027 (XTread_socket): Use it. Deal with ASCII keysyms.
19028 (XSetIMValues) [HAVE_X11R6]: Prototype.
19029
19030 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
19031 (lispy_kana_keys): Comment out.
19032 (make_lispy_event) [XK_kana_A]: Comment out.
19033 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
19034 Fix sprintf call.
19035
19036 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
19037 regexp.h change).
19038 (TERMINFO, LIBS_TERMCAP): Define.
19039
19040 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
19041 (bcmp): Define conditional on HAVE_BCMP.
19042 (NO_SIOCTL_H): Don't define.
19043 (TIOCSIGSEND): Don't make conditional on IRIX6.
19044
19045 * s/sol2-5.h: Don't include strings.h.
19046 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
19047
19048 * s/irix6-0.h (IRIX6): Don't define.
19049 (bcopy, bcmp, bzero): Don't undef.
19050
19051 * s/irix6-5.h: Don't include strings.h.
19052 (IRIX6): Don't define.
19053 (bcopy, bcmp, bzero): Don't undef.
19054
19055 * syntax.c (Fforward_comment): Doc fix.
19056
19057 2002-10-29 Kim F. Storm <storm@cua.dk>
19058
19059 * process.c (Fsignal_process): Allow PROCESS to be specified by
19060 name in addition to pid (as integer or string).
19061
19062 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
19063
19064 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
19065 environments.
19066
19067 2002-10-27 Kim F. Storm <storm@cua.dk>
19068
19069 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19070
19071 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
19072
19073 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
19074
19075 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19076
19077 2002-10-26 Richard M. Stallman <rms@gnu.org>
19078
19079 * editfns.c (Fformat): Detect invalid format letters for floats.
19080
19081 2002-10-25 Kenichi Handa <handa@m17n.org>
19082
19083 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
19084 (x_set_title): Likewise.
19085
19086 2002-10-25 Juanma Barranquero <lektu@terra.es>
19087
19088 * macgui.h:
19089 * w32gui.h: Remove definition of XColor.
19090
19091 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
19092
19093 2002-10-24 Kim F. Storm <storm@cua.dk>
19094
19095 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
19096 Callers changed (supply dummy arg).
19097
19098 * lisp.h (get_window_cursor_type): Update prototype.
19099
19100 * w32term.c (x_display_and_set_cursor): Get active_cursor from
19101 get_window_cursor_type to track system caret.
19102
19103 2002-10-24 Kim F. Storm <storm@cua.dk>
19104
19105 * process.c (Fformat_network_address): New function.
19106 (syms_of_process): Defsubr it.
19107 (list_processes_1): Use it to format :local/:remote address if
19108 service/host is not set; before Emacs would crash in that case.
19109 (Fmake_network_process): Don't use Ffind_operation_coding_system
19110 to setup coding system if host or service is not set.
19111
19112 2002-10-23 Juanma Barranquero <lektu@terra.es>
19113
19114 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
19115
19116 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
19117 COLORREF.
19118
19119 * macgui.h:
19120 * w32gui.h: Add definition of XColor.
19121
19122 * macfns.c:
19123 * w32fns.c:
19124 * xfaces.c: Remove definition of XColor.
19125
19126 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
19127
19128 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
19129
19130 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
19131 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
19132 window if it is dedicated.
19133 (Fshrink_window): Add preserve_before as was done for enlarge_window.
19134 (Vspecial_display_function): Update docstring.
19135
19136 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
19137 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
19138 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
19139
19140 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
19141
19142 * casefiddle.c (casify_region): Don't treat a prefix char as part
19143 of a word when at the beginning.
19144
19145 2002-10-17 Juanma Barranquero <lektu@terra.es>
19146
19147 * lread.c (syms_of_lread): Fix typos.
19148
19149 2002-10-17 Dave Love <fx@gnu.org>
19150
19151 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
19152
19153 2002-10-16 Richard M. Stallman <rms@gnu.org>
19154
19155 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
19156
19157 2002-10-14 Juanma Barranquero <lektu@terra.es>
19158
19159 * w16select.c (syms_of_win16select): Fix docstring for
19160 `selection-coding-system'.
19161
19162 * w32select.c (syms_of_w32select): Likewise.
19163
19164 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
19165
19166 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
19167 a backslash-quoted char.
19168 (scan_lists, scan_sexps_forward): Pacify the compiler.
19169
19170 2002-10-13 Richard M. Stallman <rms@gnu.org>
19171
19172 * window.c (window_scroll): Set immediate_quit.
19173
19174 * print.c (print): When backquote form is the car of a list,
19175 output in old style. Use old_backquote_output to output all
19176 comma forms inside it in old style too.
19177
19178 * buffer.h (struct buffer): Move `undo_list' down below `name'.
19179
19180 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
19181
19182 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
19183 batch mode).
19184
19185 * lread.c (Fload): Doc fix (load-suffixes).
19186
19187 2002-10-10 Steven Tamm <steventamm@mac.com>
19188
19189 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
19190 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
19191 Also switch the default to Qnil from Qt.
19192
19193 2002-10-08 Kenichi Handa <handa@m17n.org>
19194
19195 * coding.c (code_convert_region): When we need more GAP for
19196 conversion, pay attention to the case that coding->produced is not
19197 greater than coding->consumed.
19198
19199 2002-10-07 Richard M. Stallman <rms@gnu.org>
19200
19201 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
19202
19203 2002-10-06 Andrew Choi <akochoi@shaw.ca>
19204
19205 * macmenu.c (mac_menu_show): Add j to count menu items; match
19206 menu_item_selection to it to find selected item.
19207
19208 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19209
19210 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
19211 cases. The correct fix is to pass ReparentNotify to Xt.
19212 The shell widget interprets ConfigureNotify differently depending
19213 on if it has been reparented or not.
19214
19215 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
19216
19217 * editfns.c (Fformat_time_string): Doc fix.
19218
19219 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
19220
19221 * fns.c (Flength): Doc fix.
19222
19223 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
19224
19225 * keyboard.c (keyremap): New struct.
19226 (read_key_sequence): Use it: globally replace keytran_foo with
19227 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
19228 keytran_next and fkey_next to just `next'.
19229
19230 2002-10-04 Steven Tamm <steventamm@mac.com>
19231
19232 * macterm.c (keycode_to_xkeysym_table): Change return to be
19233 treated like an X keysym.
19234
19235 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19236
19237 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
19238 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
19239 This is to also handle x/y changes that occur because of a resize.
19240
19241 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
19242
19243 * frame.c (Vdelete_frame_functions): New variable.
19244 (syms_of_frame): Initialize and defvar it.
19245 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
19246 it when frame's `tooltip' parameter is non-nil.
19247
19248 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
19249
19250 * w32fns.c (x_create_tip_frame): Likewise.
19251
19252 * macfns.c (x_create_tip_frame): Likewise.
19253
19254 2002-09-30 Kenichi Handa <handa@m17n.org>
19255
19256 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
19257 -1 before calling ccl_driver.
19258
19259 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
19260 Only when it is non-nil, handle composition sequence.
19261 (setup_coding_system) <0>: Don't force composition handling.
19262
19263 * Makefile.in (lisp, shortlisp): Add utf-16.elc
19264
19265 2002-09-29 Richard M. Stallman <rms@gnu.org>
19266
19267 * search.c (Freplace_match): Adjust match data for the substitution
19268 just made in the buffer.
19269
19270 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
19271 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
19272
19273 2002-09-27 Richard M. Stallman <rms@gnu.org>
19274
19275 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
19276 (read_char): Use them. Do all exits thru the end of the function.
19277
19278 2002-09-27 Kenichi Handa <handa@etl.go.jp>
19279
19280 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
19281 is nil.
19282
19283 2002-09-26 Richard M. Stallman <rms@gnu.org>
19284
19285 * regex.h (__restrict_arr): Don't define if already defined.
19286
19287 * coding.c (run_pre_post_conversion_on_str):
19288 Save and restore Vdeactivate_mark.
19289
19290 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
19291
19292 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
19293
19294 2002-09-26 Kenichi Handa <handa@etl.go.jp>
19295
19296 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
19297 nonzero, try face's family at first. Otherwise try FAMILY at first.
19298 (choose_face_font): If C is a single byte char or latin-1, call
19299 try_font_list with PREFER_FACE_FAMILY 1.
19300
19301 2002-09-21 Richard M. Stallman <rms@gnu.org>
19302
19303 * window.c (select_window_1): Don't select frame.
19304 Set frame's selected window only when frame itself is selected.
19305 (Fselect_window): Doc fix.
19306
19307 2002-09-18 Kim F. Storm <storm@cua.dk>
19308
19309 * process.c (make-network-process): Doc fix (there is no
19310 network-server-log-function hook).
19311
19312 2002-09-18 Richard M. Stallman <rms@gnu.org>
19313
19314 * print.c (print): Clear out the unused parts of Vprint_number_table.
19315 (syms_of_print): Doc fix for `print-number-table'.
19316
19317 * unexelf.c (unexec): Undo previous change.
19318
19319 2002-09-17 Andreas Schwab <schwab@suse.de>
19320
19321 * m/alpha.h [LINUX]: Don't define DATA_START.
19322
19323 2002-09-16 Dave Love <fx@gnu.org>
19324
19325 * unexelf.c (unexec): Deal with .got, reinstating change from
19326 25-08-1999.
19327
19328 2002-09-13 Richard M. Stallman <rms@gnu.org>
19329
19330 * s/sol2-6.h (UNEXEC): Comment out definition.
19331
19332 * unexsol.c (unexec): Don't downcase first letter of error msg.
19333
19334 * xfaces.c (Fcolor_supported_p): Just one arg is required.
19335
19336 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
19337
19338 * unexsol.c: Include buffer.h, charset.h, coding.h.
19339
19340 2002-09-11 Richard M. Stallman <rms@gnu.org>
19341
19342 * unexsol.c: Don't use report_file_error; do it by hand
19343 using dlerror.
19344
19345 * process.c (wait_reading_process_input, both versions):
19346 Before calling turn_on_atimers, call stop_polling.
19347
19348 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
19349
19350 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
19351 we go to too_near_end, call clear_glyph_matrix.
19352 (redisplay_window): After make_cursor_line_fully_visible,
19353 call clear_glyph_matrix and bypass `goto done'.
19354
19355 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
19356 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
19357
19358 2002-09-10 Richard M. Stallman <rms@gnu.org>
19359
19360 * fileio.c (Fdo_auto_save): Catch error making directory.
19361 Only call push_message if we need to.
19362 At the same time, make an unwind-protect to pop it.
19363 Rename local message_p to old_message_p.
19364 (do_auto_save_make_dir, do_auto_save_eh): New functions.
19365 (do_auto_save_unwind): Don't call pop_message.
19366
19367 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
19368
19369 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
19370
19371 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
19372
19373 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
19374
19375 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
19376
19377 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
19378 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
19379 (re_match_2_internal): Be more careful with infinite loops.
19380
19381 2002-09-10 Kim F. Storm <storm@cua.dk>
19382
19383 * macros.c (end_kbd_macro): New function.
19384 (Fend_kbd_macro): Use it.
19385
19386 * macros.h (end_kbd_macro): Declare extern.
19387
19388 * keyboard.c (Fdiscard_input): If defining keyboard macro,
19389 end and save it instead of discarding it.
19390
19391 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
19392
19393 * s/sol2-6.h: Fix typo. Add comment.
19394
19395 2002-09-09 Richard M. Stallman <rms@gnu.org>
19396
19397 * regex.c (regnum_t): Use signed int, not unsigned int.
19398
19399 * s/sol2-6.h: New file.
19400
19401 * s/sol2-5.h (UNEXEC): Definition deleted.
19402
19403 2002-09-08 Kim F. Storm <storm@cua.dk>
19404
19405 * macros.c (executing_macro_index): Change type to EMACS_INT.
19406 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
19407
19408 * macros.h (executing_macro_index): Change type to EMACS_INT.
19409
19410 2002-09-06 Richard M. Stallman <rms@gnu.org>
19411
19412 * casetab.c (set_case_table): Make canon table point to eqv table.
19413
19414 2002-09-06 Juanma Barranquero <lektu@terra.es>
19415
19416 * coding.c (syms_of_coding): Fix spacing.
19417
19418 * composite.c (Fcompose_region_internal)
19419 (Fcompose_string_internal): Likewise.
19420
19421 * data.c (Flsh): Likewise.
19422
19423 * fontset.c (Fset_fontset_font): Likewise.
19424
19425 * macfns.c (Fx_server_max_request_size): Likewise.
19426
19427 * w16select.c (syms_of_win16select): Likewise.
19428
19429 * w32select.c (syms_of_w32select): Likewise.
19430
19431 * xselect.c (syms_of_xselect): Likewise.
19432
19433 2002-09-05 Richard M. Stallman <rms@gnu.org>
19434
19435 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
19436 call EXTEND_RANGE_TABLE and return a proper value.
19437 (set_image_of_range): Don't call set_image_of_range_1
19438 if no TRANSLATE or if range includes all of Latin-1.
19439 Only call it for the Latin-1 part of the range.
19440 For other cases, make two separate ranges,
19441 one for the original specified characters and one for
19442 their case-conversions.
19443
19444 2002-09-04 Richard M. Stallman <rms@gnu.org>
19445
19446 * s/sol2-5.h (UNEXEC): Use unexsol.o.
19447
19448 * window.c (displayed_window_lines): Correct for one-off bug
19449 in HEIGHT on non-window displays.
19450
19451 * regex.c (set_image_of_range_1): New function.
19452 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
19453 Return a value to indicate running out of memory.
19454 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
19455 (extend_range_table_work_area): New subroutine.
19456 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
19457 Different calling conventions, and used from set_image_of_range{,_1}.
19458 (IMMEDIATE_QUIT_CHECK): Definitions moved.
19459
19460 2002-09-04 Juanma Barranquero <lektu@terra.es>
19461
19462 * makefile.w32-in: All dependencies updated.
19463
19464 2002-09-01 Richard M. Stallman <rms@gnu.org>
19465
19466 * unexsol.c: New file.
19467
19468 * xfns.c (Qbox): Declare external, don't define.
19469
19470 * xdisp.c (redisplay_window) <force-start case>:
19471 If point is on semi-visible last line, reposition
19472 it at previous line.
19473
19474 * alloc.c (display_malloc_warning): Use display-warning.
19475 (malloc_warning_1): Function deleted.
19476
19477 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
19478
19479 * lread.c (read1): Handle #! by skipping the line.
19480
19481 2002-08-31 Richard M. Stallman <rms@gnu.org>
19482
19483 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
19484 Don't include LDFLAGS.
19485 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
19486
19487 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
19488
19489 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
19490 member of x_display_info unless we compile for some window system.
19491
19492 2002-08-31 Kim F. Storm <storm@cua.dk>
19493
19494 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
19495 (get_window_cursor_type): Don't use them.
19496 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
19497
19498 2002-08-30 Kenichi Handa <handa@etl.go.jp>
19499
19500 * xdisp.c (get_next_display_element): Fix previous change.
19501
19502 2002-08-30 Andrew Choi <akochoi@shaw.ca>
19503
19504 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
19505 (expose_window): Use it to fix the display of overlapping
19506 rows (merge code from xterm.c).
19507
19508 * macfns.c (Qbox): Add extern declaration.
19509
19510 2002-08-30 Juanma Barranquero <lektu@terra.es>
19511
19512 * w32fns.c (Qbox): Make extern.
19513 (syms_of_w32fns): Remove initialization of Qbox.
19514
19515 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
19516
19517 * xfns.c (Fx_open_connection): Fix error message.
19518
19519 2002-08-30 Kim F. Storm <storm@cua.dk>
19520
19521 The following changes consolidates the handling of the cursor
19522 type in xdisp.c, moving duplicate code and functionality from
19523 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
19524
19525 * frame.h (enum text_cursor_kinds): Consolidated here.
19526 Added DEFAULT_CURSOR value.
19527 (struct frame) <desired_cursor, cursor_width>
19528 <blink_off_cursor, blink_off_cursor_width>: New fields.
19529 Consolidated from output_x, output_w32 and output_mac structs.
19530 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19531 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
19532
19533 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
19534 Variables consolidated here.
19535 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
19536 (Vcursor_in_non_selected_windows): Renamed from
19537 cursor_in_non_selected_windows and changed to Lisp_Object.
19538 (syms_of_xdisp): Define and staticpro new and moved variables.
19539 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
19540 consolidated here. Recognize Qhollow setting.
19541 (set_frame_cursor_types): New function to set frame cursor types
19542 based on the frame parameters.
19543 (get_window_cursor_type): New function to calculate new cursor
19544 type and width for the specified window. Based on duplicated
19545 code consolidated here.
19546 Enhancements: cursor-in-non-selected-windows may be a cursor type,
19547 check buffer-local alternate-cursor-type and blink-cursor-alist
19548 before using built-in blink off methods.
19549
19550 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
19551
19552 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
19553 (get_specified_cursor_type, get_window_cursor_type)
19554 (set_frame_cursor_types): Added prototypes.
19555
19556 * macfns.c (x_specified_cursor_type): Removed.
19557 (x_set_cursor_type): Use set_frame_cursor_types.
19558 (Qbar, Qbox): Removed.
19559 (syms_of_macfns): Don't intern or staticpro them.
19560
19561 * macterm.c (x_specified_cursor_type): Remove prototype.
19562 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19563 (x_display_and_set_cursor): Use get_window_cursor_type.
19564 Remove unused local variables cursor_non_selected, active_cursor.
19565 Redraw cursor if hbar cursor width changes.
19566 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
19567
19568 * macterm.h (enum text_cursor_kinds): Removed.
19569 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
19570 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19571 (FRAME_DESIRED_CURSOR): Macro removed.
19572
19573 * w32fns.c (Vblink_cursor_alist): Removed.
19574 (Qbar, Qhbar, Qbox, Qhollow): Removed.
19575 (syms_of_w32fns): Don't intern, staticpro, or define them.
19576 (x_specified_cursor_type): Removed.
19577 (x_set_cursor_type): Use set_frame_cursor_types.
19578
19579 * w32term.c (x_specified_cursor_type): Remove prototype.
19580 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19581 (x_display_and_set_cursor): Use get_window_cursor_type.
19582 Remove unused local variables cursor_off_state.
19583 Redraw cursor if hbar cursor width changes.
19584 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
19585
19586 * w32term.h (enum text_cursor_kinds): Removed.
19587 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
19588 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19589 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19590 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
19591 (struct w32_display_info) <x_highlight_frame>: Renamed member from
19592 w32_highlight_frame.
19593
19594 * xfns.c (Vblink_cursor_alist): Removed.
19595 (Qbar, Qhbar, Qbox, Qhollow): Removed.
19596 (syms_of_xfns): Don't intern, staticpro, or define them.
19597 (x_specified_cursor_type): Removed.
19598 (x_set_cursor_type): Use set_frame_cursor_types.
19599
19600 * xterm.c (x_specified_cursor_type): Remove prototype.
19601 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
19602 (x_display_and_set_cursor): Use get_window_cursor_type.
19603 Remove unused local variables cursor_off_state.
19604 Redraw cursor if hbar cursor width changes.
19605
19606 * xterm.h (enum text_cursor_kinds): Removed.
19607 (struct output_x) <current_cursor, desired_cursor, cursor_width>
19608 <blink_off_cursor, blink_off_cursor_width>: Members removed.
19609 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
19610 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
19611 (x_specified_cursor_type): Remove prototype.
19612
19613 2002-08-28 Richard M. Stallman <rms@gnu.org>
19614
19615 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19616 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19617 (Vblink_cursor_alist): New variable.
19618 (syms_of_w32fns): Initialize and defvar it.
19619 (x_specified_cursor_type): Recognize Qbox for filled box.
19620 Exceptions are hollow boxes.
19621 (Qbox, Qhollow): New variables.
19622 (syms_of_w32fns): Initialize and staticpro them.
19623
19624 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19625 New macros.
19626 (struct w32_output): New fields blink_off_cursor,
19627 blink_off_cursor_width.
19628 (FRAME_CURSOR_WIDTH): New macro.
19629
19630 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19631 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19632
19633 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
19634 for bar cursor.
19635
19636 * w32term.c (expose_overlaps): New function.
19637 (expose_window): Use it to fix the display of overlapping rows.
19638
19639 2002-08-28 Simon Josefsson <jas@extundo.com>
19640
19641 * xfns.c (Fx_open_connection): Improve help when X connection
19642 fails, xhost is insecure and xauth is better.
19643
19644 2002-08-28 Juanma Barranquero <lektu@terra.es>
19645
19646 * makefile.w32-in: Add missing dependencies on w32term.h and
19647 composite.h.
19648
19649 * emacs.c (USAGE1): Add missing newline.
19650
19651 2002-08-27 Andrew Choi <akochoi@shaw.ca>
19652
19653 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
19654
19655 2002-08-27 Richard M. Stallman <rms@gnu.org>
19656
19657 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
19658 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
19659 (Vblink_cursor_alist): New variable.
19660 (syms_of_xfns): Initialize and defvar it.
19661 (x_specified_cursor_type): Recognize Qbox for filled box.
19662 Exceptions are hollow boxes.
19663 (Qbox, Qhollow): New variables.
19664 (syms_of_xfns): Initialize and staticpro them.
19665
19666 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
19667 New macros.
19668 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
19669
19670 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
19671 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
19672
19673 * emacs.c (main): Handle --script.
19674 (USAGE1): Mention --script.
19675 (standard_args): Define sort order for --script.
19676
19677 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
19678
19679 * xdisp.c (redisplay_updating_p): Variable removed.
19680 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
19681 New variables.
19682 (init_iterator): Don't free realized faces if
19683 inhibit_free_realized_faces is set.
19684 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
19685 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
19686 initialize Qinhibit_free_realized_faces.
19687
19688 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
19689 when iterator is adding glyphs to a glyph matrix.
19690
19691 2002-08-27 Kenichi Handa <handa@etl.go.jp>
19692
19693 * xdisp.c (get_next_display_element): In unibyte case, don't use
19694 octal form for such eight-bit characters that can be converted to
19695 multibyte char.
19696
19697 2002-08-26 Kim F. Storm <storm@cua.dk>
19698
19699 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
19700 foreground and background colors. From Joe Buehler.
19701
19702 2002-08-26 Miles Bader <miles@gnu.org>
19703
19704 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
19705
19706 2002-08-25 Andrew Choi <akochoi@shaw.ca>
19707
19708 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
19709 defined instead of MAC_OSX.
19710
19711 * s/darwin.h (select): Define select to sys_select only if
19712 HAVE_CARBON is defined.
19713 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
19714 (DONT_REOPEN_PTY): #def it.
19715
19716 * macterm.c (XTread_socket): Remove code to call
19717 SendEventToEventTarget for keys with command modifiers when
19718 mac_command_key_is_meta is nil.
19719
19720 2002-08-24 Andreas Schwab <schwab@suse.de>
19721
19722 * eval.c (Fdefvar): Fix last change.
19723
19724 2002-08-23 Richard M. Stallman <rms@gnu.org>
19725
19726 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
19727 Record variables in load history as (defvar . VAR).
19728 (Fdefvar): Don't record in load history if no initial value.
19729 (Qdefvar): New variable.
19730 (syms_of_eval): Init and staticpro it.
19731
19732 * lread.c (syms_of_lread): Doc fix.
19733 (build_load_history): Use Fmember to see if a definition
19734 is already in the Vload_history element.
19735
19736 * process.c (Fstart_process): Remove /: from program name.
19737
19738 * emacs.c (decode_env_path): Don't add /: if file name handler
19739 has a `safe-magic' property.
19740
19741 * callproc.c (Fcall_process): Remove /: from program name.
19742
19743 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
19744
19745 * regex.c (PATFETCH): Remove the translating fetch.
19746 (PATFETCH_RAW): Rename to PATFETCH.
19747 (set_image_of_range): New fun.
19748 (SET_RANGE_TABLE_WORK_AREA): Use it.
19749 (regex_compile): Don't translate the pattern chars so eagerly.
19750 Only do it when inserting an `exactn' bytecode or when handling
19751 a char-range.
19752 (mutually_exclusive_p): Avoid empty statement.
19753
19754 2002-08-22 Kim F. Storm <storm@cua.dk>
19755
19756 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
19757 end up on a partially visible line; this reverts a specific part
19758 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
19759 display error which has been reported several times now.
19760 However it introduces the problem that changes was supposed to fix.
19761 See my comments in the source if you want to debug this further.
19762
19763 2002-08-20 Kenichi Handa <handa@etl.go.jp>
19764
19765 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19766
19767 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
19768
19769 * msdos.c (croak): Add `void' to definition.
19770
19771 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
19772 Don't define them, they are defined in msdos.c.
19773
19774 * mem-limits.h [MSDOS]: Declare etext.
19775
19776 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
19777 `const' since CORRECT_DIR_SEPS modifies its target.
19778
19779 2002-08-19 Kim F. Storm <storm@cua.dk>
19780
19781 * keyboard.c (Fclear_this_command_keys): Add optional arg
19782 KEEP-RECORD to avoid clearing lossage when we just want to clear
19783 the current key sequence (kmacro needs this).
19784
19785 2002-08-19 Kenichi Handa <handa@localhost>
19786
19787 * composite.c (run_composition_function): Call FUNC if it is fboundp.
19788
19789 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
19790 cons, return Qnil.
19791
19792 2002-08-17 Richard M. Stallman <rms@gnu.org>
19793
19794 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
19795
19796 * sysdep.c [!VMS]: Include sys/files.h.
19797
19798 * editfns.c (save_restriction_restore): Defend from unchained marker.
19799
19800 * buffer.c (overlays_at): Handle extending vec uniformly.
19801 (overlays_in): Handle extending vec from length 0 as in overlays_at.
19802
19803 2002-08-15 Andrew Choi <akochoi@shaw.ca>
19804
19805 * mac.c (init_mac_osx_environment): New function.
19806
19807 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
19808
19809 2002-08-14 Kim F. Storm <storm@cua.dk>
19810
19811 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
19812 executing macro before appending to it (when used from Lisp).
19813 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
19814 which is called prior to each iteration of macro (for kmacro.el).
19815 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
19816
19817 * lisp.h (Fexecute_kbd_macro): Update prototype.
19818
19819 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
19820
19821 2002-08-14 Kenichi Handa <handa@etl.go.jp>
19822
19823 * xselect.c (QUTF8_STRING): New variable.
19824 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
19825 (x_atom_to_symbol): Likewise.
19826 (x_get_local_selection): New argument local_request. If it is
19827 nonzero, call handler_fn with the second arg nil.
19828 (x_handle_selection_request): Call x_get_local_selection with
19829 local_request 0.
19830 (lisp_data_to_selection_data): Don't encode the string here.
19831 (Fx_get_selection_internal): Call x_get_local_selection with
19832 local_request 1.
19833 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
19834
19835 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
19836
19837 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
19838
19839 2002-08-13 Richard M. Stallman <rms@gnu.org>
19840
19841 * minibuf.c (Fminibufferp): New function.
19842 (syms_of_minibuf): Defsubr it.
19843 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
19844
19845 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
19846
19847 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
19848
19849 2002-08-12 Richard M. Stallman <rms@gnu.org>
19850
19851 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
19852 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
19853 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
19854 already.
19855
19856 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
19857
19858 2002-08-11 Andrew Choi <akochoi@shaw.ca>
19859
19860 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
19861 (Vmac_pass_command_to_system): New variable.
19862 (Vmac_pass_control_to_system): New variable.
19863 (do_mouse_moved): Check wp with is_emacs_window.
19864 (XTread_socket): Check window_ptr with is_emacs_window.
19865 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
19866 events back to Mac Toolbox for processing, depending on values of
19867 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
19868 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
19869 Vmac_pass_control_to_system.
19870
19871 2002-08-10 Kenichi Handa <handa@etl.go.jp>
19872
19873 * coding.c (unencodable_char_position): New function.
19874 (Funencodable_char_position): New function.
19875 (syms_of_coding): Defsubr Funencodable_char_position.
19876
19877 2002-08-10 Andrew Choi <akochoi@shaw.ca>
19878
19879 * mac.c (sys_select) [MAC_OSX]: New function.
19880
19881 * macterm.c (MakeMeTheFrontProcess): New function.
19882 (mac_initialize): Call MakeMeTheFrontProcess.
19883
19884 * s/darwin.h: Define select to sys_select.
19885
19886 2002-08-09 Richard M. Stallman <rms@gnu.org>
19887
19888 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
19889
19890 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
19891
19892 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
19893 end of the buffer.
19894
19895 2002-08-08 Ken Raeburn <raeburn@gnu.org>
19896
19897 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
19898
19899 * puresize.h (BASE_PURESIZE): Increase to 910000.
19900
19901 2002-08-08 Kenichi Handa <handa@etl.go.jp>
19902
19903 * coding.c (Ffind_operation_coding_system): For write-region, if
19904 VISIT is a filename, make it the target.
19905
19906 2002-08-07 Richard M. Stallman <rms@gnu.org>
19907
19908 * alloc.c (mark_object): Detect long lists for debugging.
19909 (mark_object_loop_halt): New variable.
19910
19911 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
19912
19913 * data.c (Fmake_variable_frame_local): Doc fix.
19914
19915 2002-08-01 David Ponce <david@dponce.com>
19916
19917 * w32menu.c (local_heap, local_alloc, local_free): New macros.
19918 (malloc_widget_value, free_widget_value)
19919 (w32_free_submenu_strings): Use them.
19920
19921 (push_submenu_start, push_submenu_end, push_left_right_boundary)
19922 (push_menu_pane, push_menu_item, single_keymap_panes)
19923 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
19924 (single_submenu, set_frame_menubar)
19925 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
19926
19927 (Fx_popup_menu): Don't show pop up menu until preceding one is
19928 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
19929
19930 * w32menu.c: Changes adapted from xmenu.c
19931 (set_frame_menubar): First parse all submenus,
19932 then make widget_value trees from them.
19933 Don't allocate any widget_value objects
19934 until we are done with the parsing.
19935 (parse_single_submenu): New function.
19936 (digest_single_submenu): New function.
19937 (single_submenu): Function deleted, replaced by those two.
19938
19939 2002-08-04 Andrew Choi <akochoi@shaw.ca>
19940
19941 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
19942 returns a valid window pointer before proceeding for keyDown and
19943 autoKey events.
19944
19945 2002-08-03 Andrew Choi <akochoi@shaw.ca>
19946
19947 * macterm.c (USE_CARBON_EVENTS): New macro.
19948 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
19949 (x_iconify_frame): Call CollapseWindow.
19950 (Vmac_reverse_ctrl_meta): New variable.
19951 (Vmac_wheel_button_is_mouse_2): New variable.
19952 (init_mac_drag_n_drop): New function.
19953 (mac_do_receive_drag): New function.
19954 (mac_handle_service_event): New function.
19955 (init_service_handler): New function.
19956 (mac_to_emacs_modifiers): New function.
19957 (mac_event_to_emacs_modifiers): New function.
19958 (mac_get_mouse_btn): New function.
19959 (mac_convert_event_ref): New function.
19960 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
19961 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
19962 mac_get_mouse_btn.
19963 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
19964
19965 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
19966 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
19967 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
19968 TOOL_BAR_EVENT for MAC_OS as well.
19969 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
19970 as for WINDOWS_NT.
19971 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
19972
19973 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
19974
19975 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
19976
19977 * xdisp.c (forward_to_next_line_start): Fix a condition that
19978 lead to a newline being skipped.
19979
19980 2002-08-02 Andrew Choi <akochoi@shaw.ca>
19981
19982 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
19983
19984 2002-08-01 Richard M. Stallman <rms@gnu.org>
19985
19986 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
19987
19988 2002-07-31 Andrew Choi <akochoi@shaw.ca>
19989
19990 * macfns.c: #undef init_process before #define-ing it.
19991
19992 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
19993 HAVE_CARBON is defined.
19994
19995 2002-07-31 Richard M. Stallman <rms@gnu.org>
19996
19997 * xmenu.c (set_frame_menubar): First parse all submenus,
19998 then make widget_value trees from them.
19999 Don't allocate any widget_value objects
20000 until we are done with the parsing.
20001 (parse_single_submenu): New function.
20002 (digest_single_submenu): New function.
20003 (single_submenu): Function deleted, replaced by those two.
20004
20005 2002-07-30 Juanma Barranquero <lektu@terra.es>
20006
20007 * w32proc.c (syms_of_ntproc): Fix docstring of
20008 `w32-get-true-file-attributes'.
20009
20010 2002-07-28 Richard M. Stallman <rms@gnu.org>
20011
20012 * s/hpux8.h (HPUX8): Define this before including hpux.h.
20013 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
20014
20015 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
20016
20017 * keyboard.c (make_lispy_event):
20018 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
20019 Explicitly clear up_modifier in event->modifiers.
20020
20021 2002-07-27 Richard M. Stallman <rms@gnu.org>
20022
20023 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
20024
20025 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20026 for bar cursor.
20027
20028 2002-07-26 Kenichi Handa <handa@etl.go.jp>
20029
20030 * coding.c (detect_coding_iso2022): While checking a byte sequence
20031 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
20032 it in the normal loop.
20033
20034 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
20035
20036 * xterm.c (expose_overlaps): New function.
20037 (expose_window): Use it to fix the display of overlapping rows.
20038
20039 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
20040
20041 2002-07-23 Ken Raeburn <raeburn@gnu.org>
20042
20043 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
20044 since it only depends on XUINT.
20045
20046 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
20047 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
20048 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
20049 Macros deleted.
20050
20051 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
20052 its value over other approaches.
20053 * sysdep.c (start_of_data): Don't define the function if a macro
20054 form has been defined.
20055
20056 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
20057
20058 * xdisp.c (redisplay_updating_p): New variable.
20059 (init_iterator): Don't free realized faces when
20060 redisplay_updating_p is set.
20061 (redisplay_internal): Set redisplay_updating_p while updating
20062 the display.
20063
20064 2002-07-23 Richard M. Stallman <rms@gnu.org>
20065
20066 * editfns.c (Fmessage): Treat "" like nil.
20067
20068 2002-07-23 Kenichi Handa <handa@etl.go.jp>
20069
20070 * xdisp.c (face_before_or_after_it_pos):
20071 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20072
20073 2002-07-22 Juanma Barranquero <lektu@terra.es>
20074
20075 * callproc.c (init_callproc) [DOS_NT]:
20076 Initialize Vshared_game_score_directory to nil.
20077 (syms_of_callproc) [DOS_NT]: Likewise.
20078
20079 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
20080
20081 * xdisp.c (display_line): Replace an abort with xassert.
20082
20083 2002-07-21 Richard M. Stallman <rms@gnu.org>
20084
20085 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
20086 and END_UNCHANGED when setting buffer_unchanged_p.
20087 Use current_matrix_up_to_date_p to decide whether to use
20088 try_cursor_movement.
20089
20090 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
20091
20092 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
20093
20094 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
20095 Set to nil if dir does not exist.
20096 (syms_of_callproc): Init unconditionally and simply.
20097
20098 * buffer.c (Fbuffer_list): Doc fix.
20099
20100 2002-07-21 Ken Raeburn <raeburn@gnu.org>
20101
20102 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
20103
20104 * buffer.c (mmap_realloc): When shrinking, make sure number of
20105 pages to unmap is rounded towards zero.
20106
20107 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
20108 (XSETINT): Deleted.
20109
20110 * m/att3b.h (XINT): Don't define.
20111 (VALBITS, VALMASK, XTYPE): Deleted.
20112 (DATA_SEG_BITS): Define.
20113 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
20114 ARRAY_MARK_FLAG): Deleted.
20115 (DATA_SEG_BITS): Define.
20116 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
20117 (DATA_SEG_BITS): Define.
20118
20119 2002-07-20 Richard M. Stallman <rms@gnu.org>
20120
20121 * print.c (print_error_message): New args CONTEXT and CALLER.
20122 Calls changed.
20123
20124 * lisp.h (print_error_message): Declare new args.
20125
20126 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
20127 and CONTEXT to print_error_message, don't print them here.
20128 For a Quit, don't use Vsignaling_function.
20129 Call message_log_maybe_newline.
20130
20131 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
20132
20133 2002-07-20 Kim F. Storm <storm@cua.dk>
20134
20135 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
20136
20137 2002-07-19 Ken Raeburn <raeburn@gnu.org>
20138
20139 * bytecode.c (struct byte_stack): Pointers into byte string now
20140 point to const.
20141 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
20142 const.
20143 * charset.h (BCOPY_SHORT): Source pointer now points to const.
20144 * coding.c (encode_eol, detect_coding, detect_eol):
20145 (decode_coding, encode_coding, detect_coding_system):
20146 Source strings now treated as const.
20147 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
20148 modify Lisp string contents.
20149 * coding.h (decode_coding, encode_coding, detect_coding,
20150 detect_eol): Declarations updated.
20151 * composite.c (compose_chars_in_text): Treat Lisp string contents
20152 as const.
20153 * dispnew.c (safe_bcopy): Source pointer now points to const.
20154 * lisp.h (STRING_COPYIN): New macro.
20155 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
20156 (internal_with_output_to_temp_buffer): Declarations updated.
20157 * print.c (temp_output_buffer_setup):
20158 (internal_with_output_to_temp_buffer): Buffer name argument is now
20159 pointer to const.
20160 * sound.c (struct sound_device): Function pointer field "write"
20161 buffer argument now points to const.
20162 (vox_write): Buffer argument points to const.
20163 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
20164 contents as const.
20165 * sysdep.c (emacs_write): Buffer pointer now const.
20166 * term.c (encode_terminal_code): Buffer pointer now const.
20167 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
20168 (x_face_list_fonts, x_update_menu_appearance):
20169 (hash_string_case_insensitive): Treat Lisp string contents as const.
20170
20171 2002-07-19 Juanma Barranquero <lektu@terra.es>
20172
20173 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
20174
20175 * fileio.c (syms_of_fileio): Likewise.
20176 (Ffile_name_as_directory): Fix argument name in docstring.
20177 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
20178
20179 2002-07-18 Richard M. Stallman <rms@gnu.org>
20180
20181 * data.c (Fdefalias): Doc fix.
20182
20183 2002-07-17 Dave Love <fx@gnu.org>
20184
20185 * intervals.h (text_property_stickiness): Use P_.
20186
20187 * ccl.c: Remove `emacs' conditionals.
20188 (ccl_backtrace_table): Fix size spec.
20189 (ccl_driver): Fix type errors.
20190
20191 2002-07-16 Ken Raeburn <raeburn@gnu.org>
20192
20193 * alloc.c (xstrdup, make_string, make_unibyte_string)
20194 (make_multibyte_string, build_string): String pointer args now
20195 point to const.
20196 * charset.c (find_charset_in_text, c_string_width):
20197 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
20198 * fileio.c (report_file_error):
20199 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
20200 (count_combining_before, count_combining_after, insert_1_both):
20201 (insert, insert_and_inherit, insert_string):
20202 (insert_before_markers, insert_before_markers_and_inherit):
20203 * lread.c (intern, oblookup, hash_string):
20204 * minibuf.c (temp_echo_area_glyphs):
20205 * search.c (fast_c_string_match_ignore_case):
20206 * sysdep.c (emacs_open, set_file_times):
20207 * xfaces.c (xstricmp):
20208 * xdisp.c (store_frame_title, string_char_and_length):
20209 (message_dolog, message2, message2_nolog, set_message): Likewise.
20210 (set_message_1): Cast message string argument to const pointer.
20211 * editfns.c (general_insert_function): Insertion function now
20212 takes pointer to const for input data.
20213 * charset.h (find_charset_in_text, c_string_width):
20214 (parse_str_as_multibyte): Declarations updated.
20215 * dispextern.h (xstricmp): Declaration updated.
20216 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
20217 (count_size_as_multibyte, count_combining_before):
20218 (count_combining_after, insert_1, insert_1_both, message_dolog):
20219 (insert, insert_and_inherit, insert_before_markers)
20220 (insert_before_markers_and_inherit, set_message, message2):
20221 (message2_dolog, build_string, make_string, make_unibyte_string):
20222 (make_multibyte_string, intern, oblookup, report_file_error):
20223 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
20224 (emacs_open, xstrdup): Declarations updated.
20225 * systime.h (set_file_times): Declaration updated.
20226
20227 * charset.c (find_charset_in_text, lisp_string_width): Use const
20228 for pointer to lisp string data.
20229 * charset.h (FETCH_STRING_CHAR_ADVANCE):
20230 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
20231 * coding.c (Ffind_coding_systems_region_interval):
20232 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
20233 (Fmake_directory_internal, Fdelete_directory):
20234 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
20235 * fontset.c (font_family_registry, fs_query_fontset):
20236 (list_fontsets):
20237 * frame.c (Fframe_parameter):
20238 * keyboard.c (cmd_error_internal):
20239 * keymap.c (Fdescribe_buffer_bindings):
20240 * lread.c (complete_filename_p, openp):
20241 * minibuf.c (Fminibuffer_complete_word):
20242 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
20243 (face_before_or_after_it_pos, next_element_from_string):
20244 (get_overlay_arrow_glyph_row, display_mode_element):
20245 (decode_mode_spec_coding):
20246 * xterm.c (same_x_server): Likewise.
20247
20248 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
20249 settings of non-existent fields.
20250
20251 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
20252 copy a lisp value.
20253
20254 * lread.c (Fintern_soft): Use string macros instead of
20255 Lisp_String fields.
20256 * keyboard.c (echo_char, parse_modifiers_uncached):
20257 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
20258 * textprop.c (validate_interval_range, interval_of): Likewise.
20259
20260 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
20261
20262 * charset.h (FETCH_STRING_CHAR_ADVANCE)
20263 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
20264 XSTRING()->size_byte.
20265
20266 * lisp.h (SDATA, SREF): Produce rvalue.
20267 (SSET): New macro.
20268 * alloc.c (make_event_array): Use SSET for storing into a string.
20269 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
20270 a string.
20271 * casefiddle.c (casify_object): Use SSET.
20272 * charset.h (FETCH_STRING_CHAR_ADVANCE)
20273 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
20274 address of string contents.
20275 * data.c (Faref): Use SDATA.
20276 (Faset): Use SDATA, SSET.
20277 * dired.c (directory_files_internal): Use SSET.
20278 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
20279 (Fread_file_name): Use SREF, SSET.
20280 * fns.c (concat): Use SSET.
20281 (concat, Fdelete): Use SDATA.
20282 * insdel.c (insert_from_string_1): Use SDATA.
20283 * keyboard.c (Fevent_convert_list): Use SREF.
20284 * lread.c (Fload): Use SDATA, SSET.
20285 * macfns.c (validate_x_resource_name): Use SSET.
20286 * process.c (status_message): Use SSET.
20287 * search.c (wordify): Use SDATA.
20288 (Freplace_match): Use SREF.
20289 * w32fns.c (validate_x_resource_name): Use SSET.
20290 * xfns.c (validate_x_resource_name): Use SSET.
20291 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
20292
20293 2002-07-16 Richard M. Stallman <rms@gnu.org>
20294
20295 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
20296
20297 * xdisp.c (reconsider_clip_changes):
20298 Don't test prevent_redisplay_optimizations_p.
20299 (redisplay_internal): Test prevent_redisplay_optimizations_p
20300 along with clip_changed in some cases.
20301 (try_window_id): Likewise.
20302 (redisplay_window): New local var buffer_unchanged_p.
20303
20304 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
20305
20306 * process.c (create_process): Test USG_SUBTTY_WORKS.
20307 (process_send_signal): Clean up handling of GID.
20308 Detect errors in ioctls meant to set GID.
20309
20310 * window.c (temp_output_buffer_show):
20311 Don't set prevent_redisplay_optimizations_p.
20312
20313 2002-07-15 Juanma Barranquero <lektu@terra.es>
20314
20315 * eval.c (Fdefvaralias): Add docstring argument.
20316
20317 2002-07-15 Ken Raeburn <raeburn@gnu.org>
20318
20319 * lisp.h (STRING_INTERVALS): Produce rvalue.
20320 (STRING_SET_INTERVALS): New macro.
20321 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
20322 * fns.c (Fstring_as_multibyte): Likewise.
20323 * intervals.c (balance_possible_root_interval, delete_interval)
20324 (create_root_interval, copy_intervals_to_string): Likewise.
20325 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
20326 instead of 0.
20327
20328 2002-07-14 Ken Raeburn <raeburn@gnu.org>
20329
20330 * lisp.h (STRING_SET_CHARS): New macro.
20331 (SCHARS, SBYTES): Produce rvalues.
20332 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
20333 * fns.c (concat): Likewise.
20334 * lread.c (read_vector): Likewise.
20335
20336 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
20337 (STRING_SET_UNIBYTE): New macro.
20338 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
20339 length of -1) changed to use STRING_SET_UNIBYTE.
20340 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
20341 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
20342 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
20343 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
20344 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
20345 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
20346 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
20347 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
20348 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
20349 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
20350 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
20351 STRING_BYTES or indirection changed to SCHARS, SBYTES,
20352 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
20353 unchanged for now.
20354
20355 2002-07-13 Kim F. Storm <storm@cua.dk>
20356
20357 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
20358
20359 2002-07-12 Richard M. Stallman <rms@gnu.org>
20360
20361 * fileio.c (Fwrite_region): Doc fix.
20362
20363 * print.c (print_error_message): Don't handle Vsignaling_function here.
20364
20365 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
20366 (command_loop_1): Avoid certain actions after memory-full error.
20367
20368 * eval.c (Fsignal): Don't call cancel_hourglass.
20369 For a memory-full error, don't call Vsignal_hook_function
20370 and don't set Vsignaling_function.
20371
20372 * process.c (process_send_signal): Add abort call.
20373
20374 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
20375
20376 * keymap.c (Fkey_binding): Fix typo.
20377
20378 2002-07-11 Richard M. Stallman <rms@gnu.org>
20379
20380 * alloc.c (Vmemory_full): New variable.
20381 (Vmemory_signal_data): Rename from memory_signal_data.
20382 Uses changed.
20383 (syms_of_alloc): Defvar them.
20384 (memory_full, buffer_memory_full): Set Vmemory_full.
20385
20386 * lisp.h (Vmemory_full): Add declaration.
20387 (current_column, indented_beyond_p): Change declaration.
20388
20389 * indent.c (last_known_column): Declare as double, not float.
20390 (current_column, current_column_1, string_display_width)
20391 (position_indentation): Return `double'.
20392 (indented_beyond_p): Arg `column' is `double'. Callers changed.
20393
20394 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
20395 (back_to_previous_visible_line_start)
20396 (reseat_at_next_visible_line_start, next_element_from_buffer):
20397 Use `double', not `float', when calling indented_beyond_p.
20398
20399 * s/hpux11.h (BROKEN_SA_RESTART): Define.
20400
20401 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
20402
20403 2002-07-11 Juanma Barranquero <lektu@terra.es>
20404
20405 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
20406 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
20407 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
20408 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
20409 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
20410 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
20411
20412 2002-07-10 Juanma Barranquero <lektu@terra.es>
20413
20414 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
20415 All callers changed.
20416
20417 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
20418
20419 * data.c (Fdefalias): Add an optional `docstring' argument.
20420 (set_internal, Fsetq_default): Use XCAR/XCDR.
20421
20422 * composite.c (HASH_VALUE, HASH_KEY):
20423 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
20424
20425 2002-07-09 Kenichi Handa <handa@etl.go.jp>
20426
20427 * callproc.c (Fcall_process): Fix previous change.
20428
20429 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
20430
20431 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
20432 Add support for hash-tables.
20433 (Ftry_completion): Return t even if the string appears multiple times.
20434
20435 * fns.c (Fnconc): Use XCDR.
20436 (Fprovide): Use CONSP and XCDR.
20437 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
20438 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
20439 (Fmake_hash_table): Accept `:size nil'.
20440 (Fmakehash): Delete: moved to subr.el.
20441 (syms_of_fns): Don't defsubr makehash.
20442
20443 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
20444 (HASH_TABLE_SIZE): Move from fns.c.
20445
20446 2002-07-07 Richard M. Stallman <rms@gnu.org>
20447
20448 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
20449 Instead just return 0 when there is something to be done.
20450 (try_scrolling): If make_cursor_line_fully_visible returns 0,
20451 retry scrolling as if cursor were off the bottom.
20452 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
20453 return CURSOR_MOVEMENT_MUST_SCROLL.
20454 (redisplay_window): If make_cursor_line_fully_visible returns 0,
20455 go to try_to_scroll.
20456
20457 * buffer.c (Fbuffer_local_value): Store current value into its binding
20458 so we get the up-to-date value for the binding that is loaded.
20459
20460 * eval.c (Fdefmacro): Doc fix.
20461
20462 2002-07-05 Dave Love <fx@gnu.org>
20463
20464 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
20465 correctly.
20466
20467 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
20468 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
20469 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
20470 CCL_LookupCharConstTbl.
20471 (syms_of_ccl): Defvar translation-hash-table-vector.
20472
20473 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20474
20475 * xdisp.c: Remove unused variable `face'.
20476
20477 2002-07-04 Juanma Barranquero <lektu@terra.es>
20478
20479 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
20480 obsolescence information.
20481
20482 2002-07-03 Andrew Choi <akochoi@shaw.ca>
20483
20484 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
20485 pattern. Search cache first.
20486 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
20487 for Japanese font.
20488 (XLoadQueryFont): Use it.
20489
20490 2002-07-02 Richard M. Stallman <rms@gnu.org>
20491
20492 * keymap.c (Fdefine_key): Doc fix.
20493
20494 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
20495
20496 2002-07-02 Juanma Barranquero <lektu@terra.es>
20497
20498 * keymap.c (syms_of_keymap): Fix typo.
20499
20500 2002-07-01 Andrew Choi <akochoi@shaw.ca>
20501
20502 * s/darwin.h: Define POSIX_SIGNALS.
20503
20504 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
20505 and FSRefMakePath to convert FSSpec returned with Apple Event to
20506 Posix pathname.
20507 (mac_initialize) [TARGET_API_MAC_CARBON]:
20508 Call init_required_apple_events and disable the `Quit' menu item
20509 provided automatically by the Carbon Toolbox.
20510
20511 2002-07-01 Dave Love <fx@gnu.org>
20512
20513 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20514 for K&R.
20515
20516 * xterm.c: Fix prototype for K&R.
20517
20518 * term.c (costs_set): Declare static, non-initialized for pcc.
20519
20520 2002-07-01 Richard M. Stallman <rms@gnu.org>
20521
20522 * keyboard.c (timer_last_idleness_start_time): New variable.
20523 (timer_start_idle): Set that.
20524 (read_key_sequence): Use that to reset timer_idleness_start_time
20525 to previous value.
20526
20527 * window.c (Frecenter): With arg, set optional_new_start.
20528
20529 * xdisp.c (redisplay_internal): Make optional_new_start really work.
20530
20531 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
20532 buffer for completion.
20533
20534 2002-06-29 Ken Raeburn <raeburn@gnu.org>
20535
20536 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
20537
20538 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20539
20540 * keyboard.c (readable_filtered_events): New function that filters
20541 FOCUS_IN_EVENT depending on parameter.
20542 (readable_events): Calls readable_filtered_events, not filtering
20543 FOCUS_IN_EVENT.
20544 (get_filtered_input_pending): New function, filtering parameter passed
20545 to readable_filtered_events.
20546 (get_input_pending): Calls get_filtered_input_pending, not filtering
20547 FOCUS_IN_EVENT.
20548 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
20549 FOCUS_IN_EVENT.
20550
20551 * xterm.h (struct x_output): Add focus_state.
20552
20553 * xterm.c (x_focus_changed): New function.
20554 (x_detect_focus_change): New function.
20555 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
20556 EnterNotify and LeaveNotify to track X focus changes.
20557
20558 2002-06-28 Andreas Schwab <schwab@suse.de>
20559
20560 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
20561
20562 2002-06-27 Kim F. Storm <storm@cua.dk>
20563
20564 * xdisp.c (mode_line_string_list, mode_line_string_face)
20565 (mode_line_string_face_prop): New variables.
20566 (store_mode_line_string): New function.
20567 (display_mode_element): Use store_mode_line_string to
20568 add mode-line string elements to mode_line_string_list
20569 when mode_line_string_list is non-nil.
20570 (Fformat_mode_line): Now returns propertized string by
20571 default. New arg NO-PROPS to ignore properties.
20572 (decode_mode_spec): Only add two dashes for %- in propertized
20573 mode-line string.
20574 (syms_of_xdisp): Init and staticpro mode_line_string_list.
20575
20576 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
20577
20578 * minibuf.c (minibuffer_completion_contents): Add return type.
20579
20580 2002-06-27 Juanma Barranquero <lektu@terra.es>
20581
20582 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
20583
20584 2002-06-26 Juanma Barranquero <lektu@terra.es>
20585
20586 * fileio.c (read_file_name_cleanup): Add missing return.
20587
20588 2002-06-26 Richard M. Stallman <rms@gnu.org>
20589
20590 * window.c (Frecenter): Don't set force_start flag.
20591
20592 * minibuf.c (do_completion, Fminibuffer_complete_word)
20593 (Fminibuffer_completion_help): Complete just the text before point.
20594 (minibuffer_completion_contents): New function.
20595
20596 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
20597
20598 * frame.c (frames_bury_buffer): Function deleted.
20599
20600 2002-06-25 Miles Bader <miles@gnu.org>
20601
20602 * callint.c (Fcall_interactively): When checking to see if doprnt hit
20603 the end of callint_message, allow for a terminating '\0'.
20604
20605 2002-06-24 Juanma Barranquero <lektu@terra.es>
20606
20607 * w32select.c: Include composite.h.
20608
20609 * w16select.c: Likewise.
20610
20611 2002-06-24 Kenichi Handa <handa@etl.go.jp>
20612
20613 * callproc.c (Fcall_process): If code detection is necessary,
20614 call detect_coding directly here.
20615
20616 * coding.c (detect_eol): Preserve coding->cmp_data.
20617
20618 * w16select.c (Fw16_get_clipboard_data):
20619 * w32fns.c (w32_to_x_font):
20620 * w32select.c (Fw32_get_clipboard_data):
20621 * xselect.c (selection_data_to_lisp_data):
20622 * xterm.c (XTread_socket): Disable composition handling.
20623
20624 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
20625
20626 * print.c (temp_output_buffer_setup): Kill all local variables.
20627
20628 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
20629
20630 * lread.c (Fread): Remove redundant and imprecise declaration.
20631
20632 * xfns.c (check_x_display_info): Use check_x_frame.
20633
20634 * .gdbinit (xprintsym): Use the new `xname' field.
20635 (xsymbol): Use it.
20636
20637 2002-06-22 Jason Rumney <jasonr@gnu.org>
20638
20639 * w32fns.c (file_dialog_callback): New function.
20640 (Fx_file_dialog): Allow selecting directories as well as files.
20641
20642 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20643
20644 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
20645 OpenBSD. Add support for mipseb-*-netbsd* machines.
20646
20647 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20648
20649 * macterm.c (mac_scroll_area): Set foreground and backcolor to
20650 black and white before scrolling. Restore frame background and
20651 foreground color after scrolling.
20652 (do_window_update): Call XClearWindow before calling expose_frame.
20653 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
20654 FRAME_FOREGROUND_PIXEL of frame.
20655
20656 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20657 test Mac command key as <ALT> key.
20658
20659 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
20660
20661 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
20662
20663 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
20664 Lookup keys in function-key-map immediately so that key-translation-map
20665 can be applied earlier.
20666 Remove function_key_possible and key_translation_possible, replaced
20667 by checking `keytran_start < t'.
20668
20669 * .gdbinit (xsymbol): Use the new `xname' field.
20670
20671 2002-06-17 Andrew Choi <akochoi@shaw.ca>
20672
20673 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
20674 test Mac command key as <ALT> key.
20675
20676 * mac.c (do_applescript): Call initialize_applescript if necessary
20677 when first called. Dispose of result_desc only when there is no error.
20678 (Fdo_applescript): Use %d format specifier instead of %ld.
20679
20680 2002-06-16 Andrew Choi <akochoi@shaw.ca>
20681
20682 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
20683 of FrontWindow for cases keyDown and autoKey.
20684
20685 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
20686 Vdefault_fontset to Monaco with mac-roman coding.
20687
20688 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
20689 init_process before and after inclusion of Carbon/Carbon.h, resp.
20690
20691 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
20692 cursor_gc.
20693 (add_font_name_table_entry): New function.
20694 (init_font_name_table): Use add_font_name_table_entry; add italic,
20695 bold, and bold-italic entries for truetype fonts.
20696
20697 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
20698 for Mac too.
20699 (try_font_list) [MAC_OS]: If no font matches given registry, try
20700 fonts with any registry matching face_family.
20701 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
20702
20703 * s/darwin.h: If autoconf detects the Ncurses library, define
20704 LIBS_TERMCAP to -lncurses to use it.
20705
20706 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
20707
20708 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
20709
20710 2002-06-15 Richard M. Stallman <rms@gnu.org>
20711
20712 * window.c (Fset_window_configuration): Explicitly preserve
20713 the point value that new_current_buffer had at the start.
20714
20715 2002-06-14 Juanma Barranquero <lektu@terra.es>
20716
20717 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
20718 Fix typos.
20719
20720 2002-06-14 Kim F. Storm <storm@cua.dk>
20721
20722 * insdel.c (insert_1_both, insert_from_string_1)
20723 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
20724 insert happened in the end_unchanged region. Otherwise, the
20725 redisplay may be confused and duplicate the last line in the
20726 buffer [seen after save-buffer when require-final-newline==t].
20727
20728 2002-06-13 Jason Rumney <jasonr@gnu.org>
20729
20730 * w32.c (init_environment): Remove EMACSLOCKDIR.
20731 (stat): Swap _S_IFDIR and _S_IFREG.
20732
20733 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20734
20735 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
20736 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
20737 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
20738 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
20739 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
20740 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
20741 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
20742 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
20743 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
20744 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
20745 SELECTION_REQUEST_EVENT, selection_clear_event to
20746 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
20747 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
20748 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
20749 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
20750 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
20751 no_event to NO_EVENT.
20752
20753 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20754
20755 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
20756
20757 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
20758
20759 * intervals.c (textget): Don't forget to `return'.
20760 (lookup_char_property): Use XCAR/XCDR.
20761
20762 2002-06-12 Juanma Barranquero <lektu@terra.es>
20763
20764 * xdisp.c (Fformat_mode_line): Fix typo.
20765
20766 2002-06-12 Kim F. Storm <storm@cua.dk>
20767
20768 * xdisp.c (Fformat_mode_line): New function.
20769 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
20770 (store_frame_title_char, store_frame_title): Use unconditionally.
20771 (init_xdisp): Defsubr Fformat_mode_line.
20772 Initialize frame_title_buf etc. unconditionally.
20773
20774 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
20775
20776 * keyboard.c (read_key_sequence):
20777 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
20778 things through those maps after downcasing events.
20779 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
20780 applies after function-key-map.
20781 Make sure that keytran can be done in the middle in the sequence.
20782 Be careful not to throw away events past the one we downcase.
20783
20784 * lread.c (read_integer): Remove unused var `tem'.
20785 (read1): Fix int/Lisp_Object mixup.
20786
20787 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
20788
20789 2002-06-11 Richard M. Stallman <rms@gnu.org>
20790
20791 * keyboard.c (readable_events): Ignore any number of
20792 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
20793
20794 2002-06-09 Miles Bader <miles@gnu.org>
20795
20796 * xfaces.c (Ftty_supports_face_attributes_p): New function.
20797 (parse_rgb_list, tty_lookup_color): New functions.
20798 (tty_defined_color): Use `tty_lookup_color' to do all the work.
20799 (color_distance, Fcolor_distance): New functions.
20800 (TTY_SAME_COLOR_THRESHOLD): New macro.
20801 (Qtty_color_standard_values): New variable.
20802 (syms_of_xfaces): Initialize new vars & functions.
20803
20804 2002-06-08 Colin Walters <walters@verbum.org>
20805
20806 * textprop.c (Vchar_property_alias_alist): New variable.
20807 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
20808
20809 * intervals.c (lookup_char_property): New function for looking up
20810 overlay and text properties, created from textget.
20811 (textget): Use it.
20812
20813 * intervals.h (lookup_char_property): Declare.
20814 (Vchar_property_alias_alist): Declare.
20815
20816 * buffer.c (Foverlay_get): Use lookup_char_property.
20817
20818 2002-06-07 Sam Steingold <sds@gnu.org>
20819
20820 * xselect.c (lisp_data_to_selection_data): Fix last change:
20821 *data_ret is not a Lisp string, while unibyte_string is.
20822
20823 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
20824
20825 * xselect.c (lisp_data_to_selection_data): Fix last change:
20826 set size_ret.
20827
20828 2002-06-07 Andreas Schwab <schwab@suse.de>
20829
20830 * m/amdx86-64.h: New file.
20831
20832 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
20833
20834 * fns.c (Fstring_make_unibyte): Doc fix.
20835
20836 * xselect.c (lisp_data_to_selection_data): If the requested type
20837 is STRING, call string_make_unibyte to encode the selected text
20838 as a string.
20839
20840 * window.c (Fset_window_hscroll): Doc fix.
20841
20842 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20843
20844 * fileio.c (choose_write_coding_system):
20845 Call select-safe-coding-system properly.
20846
20847 2002-06-03 Richard M. Stallman <rms@gnu.org>
20848
20849 * xdisp.c (message_with_string): Error if STRING is not a string.
20850
20851 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
20852
20853 * fileio.c (choose_write_coding_system): Pass FILE arg to
20854 Vselect_safe_coding_system_function.
20855
20856 2002-06-03 Ken Raeburn <raeburn@gnu.org>
20857
20858 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
20859
20860 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
20861
20862 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
20863 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
20864 * keymap.c (describe_command): Likewise.
20865 * minibuf.c (read_minibuf): Likewise.
20866
20867 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
20868 Cast `current_column' return value to int.
20869 (back_to_previous_visible_line_start)
20870 (reseat_at_next_visible_line_start, next_element_from_buffer):
20871 Cast `indented_beyond_p' 3rd arg to float.
20872
20873 * indent.c (last_known_column): Now a float.
20874 (current_column_1, position_indentation, current_column)
20875 (string_display_width): Return float.
20876 (Fcurrent_column): Cast `current_column' return value to int.
20877 (Fcurrent_indentation): Cast `position_indentation' retval to int.
20878 (indented_beyond_p): Third arg now a float.
20879 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
20880
20881 * lisp.h (current_column): Now returns float.
20882 (indented_beyond_p): 3rd arg now a float.
20883
20884 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
20885
20886 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
20887 is Qcompound_text_with_extensions.
20888
20889 * xselect.c (lisp_data_to_selection_data): Always set selection
20890 type as string if x_encode_text returns streingp non-NULL.
20891
20892 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
20893
20894 2002-05-30 Richard M. Stallman <rms@gnu.org>
20895
20896 * window.c (Fset_window_configuration): Correct the handling
20897 of point in current buffer, to work with multiple windows.
20898
20899 2002-05-29 Colin Walters <walters@verbum.org>
20900
20901 * lread.c (Fread_from_string): Don't depend on order of evaluation
20902 for C function parameters.
20903
20904 2002-05-28 Richard M. Stallman <rms@gnu.org>
20905
20906 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
20907 way for blinked-off state and for a nonselected window.
20908
20909 * window.c (window_scroll_pixel_based): Don't call Fbolp;
20910 instead, see if the new start pos is at beginning of line.
20911
20912 * fileio.c (Fwrite_region): If START is a string, don't
20913 make any annotations.
20914
20915 * eval.c (syms_of_eval): Doc fix.
20916
20917 2002-05-28 Colin Walters <walters@debian.org>
20918
20919 * emacs.c (USAGE1): Add --no-splash.
20920 (standard_args): Ditto.
20921
20922 2002-05-28 Colin Walters <walters@gnu.org>
20923
20924 * lread.c (readchar_count): New variable.
20925 (readchar): Increment it.
20926 (unreadchar): Decrement it.
20927 (read_multibyte): Decrement it.
20928 (Vread_with_symbol_positions): New variable.
20929 (Vread_symbol_positions_list): New variable.
20930 (read_internal_start): New function, created from Fread and
20931 Fread_from_string. Handle Vread_symbol_positions_list and
20932 Vread_with_symbol_positions.
20933 (readevalloop, Fread, Fread_from_string): Use it.
20934 (read1): Use readchar_count to add symbol positions to
20935 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
20936 (syms_of_lread): DEFVAR_LISP and initialize them.
20937
20938 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
20939 (substitute_object_recurse, substitute_object_in_subtree)
20940 (substitute_in_interval): Prototype.
20941 (read_multibyte): Return c if it's less than zero.
20942
20943 2002-05-28 Kim F. Storm <storm@cua.dk>
20944
20945 * fileio.c (Fread_file_name_internal): Added brute-force
20946 speed up for using predicate file-directory-p.
20947
20948 2002-05-28 Kim F. Storm <storm@cua.dk>
20949
20950 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
20951 New variables.
20952 (syms_of_fileio): DEFVAR_LISP them.
20953 (read_file_name_cleanup): New unwind function.
20954 (Fread_file_name_internal): Only return completions satifying
20955 Vread_file_name_predicate. Temporarily unwind protect and rebind
20956 default-directory while checking completions against the predicate.
20957 (Fread_file_name): Added PREDICATE argument. Specbind it to
20958 Vread_file_name_predicate during completion.
20959 Call Vread_file_name_function to read the file name if non-nil.
20960
20961 * lisp.h (Fread_file_name): Now has 6 args.
20962
20963 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
20964 predicate for Fread_file_name when reading directory name.
20965 Supply Qnil for predicate in other calls to Fread_file_name.
20966
20967 2002-05-26 Miles Bader <miles@gnu.org>
20968
20969 * term.c (tty_capable_p): New function.
20970 * dispextern.h (tty_capable_p): New function declaration.
20971 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
20972 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
20973
20974 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
20975
20976 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
20977 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
20978 (Vwrite_region_annotate_functions): Docstring fix.
20979
20980 2002-05-23 Kim F. Storm <storm@cua.dk>
20981
20982 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
20983 phys_cursor's hpos is overwritten. This is still not completely
20984 correct, as it doesn't really make sense to use hpos at all to
20985 get the cursor glyph (as that is relative to the width of the
20986 characters on the line, which may have changed during the update).
20987
20988 2002-05-22 Jason Rumney <jasonr@gnu.org>
20989
20990 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
20991 Lisp_Object.
20992 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
20993 Use modified enumfont_t struct.
20994
20995 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
20996
20997 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
20998 Handle the `hbar' cursor type.
20999 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21000
21001 * w32fns.c (Qhbar): New variable.
21002 (x_specified_cursor_type): Use it.
21003
21004 2002-05-21 Ken Raeburn <raeburn@gnu.org>
21005
21006 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
21007 now, when the address is needed.
21008
21009 2002-05-21 Colin Walters <walters@gnu.org>
21010
21011 * Makefile.in (shortlisp): Add font-core.el.
21012
21013 2002-05-20 Richard M. Stallman <rms@gnu.org>
21014
21015 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
21016
21017 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
21018 equivalent key bindings here.
21019
21020 2002-05-20 Ken Raeburn <raeburn@gnu.org>
21021
21022 Change symbol structure to contain a lisp object for the symbol
21023 name:
21024 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
21025 object field named "xname".
21026 (SYMBOL_NAME): New macro.
21027 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
21028 name field.
21029 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
21030 (mark_object, gc_sweep): Use symbol xname field and XSTRING
21031 instead of name field.
21032 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
21033 SYMBOL_NAME instead of XSYMBOL and name field.
21034 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
21035 instead of XSYMBOL and name field.
21036 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
21037 and SYMBOL_NAME instead of XSYMBOL and name field.
21038 * coding.c (Fread_coding_system, code_convert_region1)
21039 (code_convert_string1, code_convert_string_norecord)
21040 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
21041 XSYMBOL and name field.
21042 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
21043 (Fmake_variable_buffer_local, Fmake_local_variable)
21044 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
21045 of XSYMBOL and name field.
21046 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
21047 XSYMBOL and name field.
21048 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
21049 instead of XSYMBOL and name field.
21050 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
21051 XSYMBOL and name field.
21052 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
21053 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21054 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
21055 instead of XSYMBOL and name field.
21056 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
21057 (parse_modifiers, apply_modifiers, Fevent_convert_list)
21058 (parse_solitary_modifier, Fexecute_extended_command):
21059 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21060 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
21061 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
21062 of XSYMBOL and name field.
21063 (describe_command, describe_translation): Use SYMBOL_NAME and
21064 assignment instead of XSYMBOL and name field and XSETSTRING.
21065 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
21066 instead of XSYMBOL and name field.
21067 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
21068 name field and XSETSTRING.
21069 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21070 of XSYMBOL and name field.
21071 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
21072 assignment instead of XSYMBOL and name field and XSETSTRING.
21073 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
21074 XSTRING instead of XSYMBOL and name field.
21075 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
21076 and XSTRING instead of XSYMBOL and name field.
21077 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
21078 and XSTRING instead of XSYMBOL and name field.
21079 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
21080 XSTRING instead of XSYMBOL and name field.
21081 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21082 of XSYMBOL and name field.
21083 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
21084 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21085
21086 2002-05-19 Ken Raeburn <raeburn@gnu.org>
21087
21088 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
21089 and XCDR real rvalues in most configurations.
21090
21091 * buffer.c (fix_overlays_in_range, fix_overlays_before):
21092 Don't take the address of the cdr part of a cons cell; instead, track
21093 the parent cell and call XSETCDR, or set the variable for the head
21094 of the list if we haven't started down the list yet.
21095
21096 2002-05-19 Richard M. Stallman <rms@gnu.org>
21097
21098 * doc.c (reread_doc_file): Don't ask for confirmation.
21099
21100 2002-05-18 Jason Rumney <jasonr@gnu.org>
21101
21102 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
21103 (xbm_load_image): Use it.
21104 (xbm_load): Ditto.
21105 (xbm_read_bitmap_data): Reverted to xfns.c version.
21106 From David Ponce <david@dponce.com>.
21107
21108 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
21109
21110 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
21111 2.02 and later.
21112
21113 2002-05-16 Juanma Barranquero <lektu@terra.es>
21114
21115 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
21116
21117 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
21118
21119 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
21120 meaningful test.
21121 (read_char_minibuf_menu_prompt): Fix typo.
21122
21123 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
21124
21125 * eval.c (Fcommandp): Doc fix.
21126
21127 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
21128
21129 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
21130 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
21131 (Fset_keymap_parent): Gcpro a bit more.
21132 (access_keymap): Gcpro around meta_map call and around the main loop.
21133 (get_keyelt): Gcpro when following indirect references.
21134 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
21135 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
21136 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
21137 Remove useless ad-hoc remap code.
21138
21139 2002-05-13 Richard M. Stallman <rms@gnu.org>
21140
21141 * search.c (search_buffer): Give up boyer moore search if inverse
21142 translation change charset_base.
21143
21144 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
21145
21146 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
21147 characters is carried over from the previous block of text, adjust
21148 coding->produced to account for the extra character.
21149
21150 2002-05-11 Andreas Schwab <schwab@suse.de>
21151
21152 * coding.c (intersection): Keep the elements of the returned list
21153 in the same order as in the first list.
21154
21155 2002-05-11 Kim F. Storm <storm@cua.dk>
21156
21157 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
21158 only update cmm_size if realloc actually succeeds.
21159 Testing with initial size of 2 elements revealed that using
21160 realloc on GNU/Linux would cause a random trap in xmalloc
21161 later on, so I rewrote the code to use malloc/bcopy/free instead
21162 of realloc.
21163
21164 2002-05-10 Jason Rumney <jasonr@gnu.org>
21165
21166 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
21167
21168 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
21169
21170 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
21171 parens, to ensure correct evaluation order.
21172
21173 2002-05-10 Kim F. Storm <storm@cua.dk>
21174
21175 * keymap.c (Vemulation_mode_map_alists): New variable.
21176 (syms_of_keymap): DEFVAR_LISP it.
21177 (current_minor_maps): Process keymap alists in that list before
21178 minor-mode-overriding-map-alist and minor-mode-map-alist.
21179
21180 2002-05-09 Richard M. Stallman <rms@gnu.org>
21181
21182 * search.c (Freplace_match): Doc fix.
21183
21184 2002-05-09 Kim F. Storm <storm@cua.dk>
21185
21186 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21187 Enlarge cursor rectangle drawn around image with non-zero relief.
21188
21189 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
21190 Enlarge cursor rectangle drawn around image with non-zero relief.
21191
21192 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21193 Enlarge cursor rectangle drawn around image with non-zero relief.
21194
21195 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
21196
21197 * xselect.c (lisp_data_to_selection_data): Don't set selection
21198 type if comes from the Lisp object's car. If the selection
21199 contains a pure ASCII text, always return QSTRING as its type.
21200
21201 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21202
21203 * mac.c (mac-cut-function): Doc fix.
21204
21205 2002-05-05 Richard M. Stallman <rms@gnu.org>
21206
21207 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
21208
21209 2002-05-04 Jason Rumney <jasonr@gnu.org>
21210
21211 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
21212 for event-click-count.
21213
21214 * process.c (init_process): Only add server subfeature if we can
21215 use non-blocking I/O.
21216
21217 2002-05-04 Andrew Choi <akochoi@shaw.ca>
21218
21219 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
21220 repeatedly.
21221
21222 2002-05-03 Jason Rumney <jasonr@gnu.org>
21223
21224 * process.c (Fmake_network_process): Only support server sockets
21225 when we can make them non-blocking.
21226
21227 * s/ms-w32.h (HAVE_SELECT): Define.
21228
21229 * w32.h (FILE_NDELAY): New flag.
21230
21231 * w32.c (sys_getpeername, fcntl): New functions.
21232 (_sys_read_ahead): Temporarily block on non-blocking sockets.
21233
21234 * w32proc.c: Include sys/file.h.
21235
21236 2002-05-03 Colin Walters <walters@verbum.org>
21237
21238 * callproc.c (Vgame_score_directory): Renamed to
21239 Vshared_game_score_directory.
21240
21241 2002-04-30 Richard M. Stallman <rms@gnu.org>
21242
21243 * s/gnu.h [emacs]: Include stdio.h.
21244 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
21245
21246 * eval.c (do_autoload): Error if called while preparing to dump.
21247
21248 * fns.c (Frequire): Error if need to load while preparing to dump.
21249
21250 2002-04-28 Colin Walters <walters@verbum.org>
21251
21252 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
21253 Default to "~/.emacs.d/games".
21254
21255 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
21256
21257 * lread.c (openp): Change arg exec_only to predicate.
21258 (build_load_history): Use XCAR/XCDR.
21259 (Flocate_file_internal): New fun.
21260 (syms_of_lread): Defsubr it.
21261 (Fload): Update call to openp.
21262
21263 * lisp.h (openp): Update prototype.
21264
21265 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
21266 * w32proc.c (sys_spawnve):
21267 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
21268 * w32.c (check_windows_init_file):
21269 * sound.c (Fplay_sound_internal):
21270 * process.c (Fstart_process):
21271 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
21272 * mac.c (run_mac_command):
21273 * emacs.c (init_cmdargs):
21274 * callproc.c (Fcall_process): Update call to openp.
21275
21276 * textprop.c (remove_properties): Don't use XCAR without CONSP.
21277
21278 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
21279
21280 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21281
21282 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
21283 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
21284
21285 2002-04-28 Richard M. Stallman <rms@gnu.org>
21286
21287 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
21288
21289 * eval.c (Fcommandp): New arg for_call_interactively.
21290 * lisp.h (Fcommandp): Declare new arg.
21291
21292 2002-04-28 Jason Rumney <jasonr@gnu.org>
21293
21294 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
21295
21296 * w32.c (stat, fstat): Use file index information to generate
21297 inodes for directories where available.
21298
21299 2002-04-26 Andrew Choi <akochoi@shaw.ca>
21300
21301 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
21302 [HAVE_CARBON]: Include Mac object files.
21303
21304 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
21305 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
21306 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
21307 MAC_OSX, and MAC_OS instead of macintosh.
21308
21309 * editfns.c [MAC_OS8]: Include stdio.h.
21310
21311 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
21312
21313 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
21314 Apple Monaco.
21315
21316 * process.c (QCfamily, QCfilte): Declare extern.
21317 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
21318 calling select.
21319
21320 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
21321
21322 * tparam.c [MAC_OSX]: Don't define BC and UP.
21323
21324 * config.in [HAVE_CARBON]: Add.
21325
21326 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
21327 Move here from mac/src and mac/inc.
21328
21329 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
21330
21331 2002-04-26 Gerd Moellmann <gerd@gnu.org>
21332
21333 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
21334 Compute phys_cursor_width from the x position returned
21335 by x_draw_glyhs, which is cheaper.
21336 (x_display_and_set_cursor): Compute the buffer-local value
21337 of `cursor-in-non-selected-windows' only when needed.
21338
21339 2002-04-25 Gerd Moellmann <gerd@gnu.org>
21340
21341 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
21342 cursor on a stretch glyph has a width that depends on
21343 x_stretch_cursor_p.
21344
21345 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21346
21347 * abbrev.c (abbrev-start-location): Doc fix.
21348
21349 * indent.c (Fvertical_motion): Fix last change.
21350
21351 2002-04-25 Gerd Moellmann <gerd@gnu.org>
21352
21353 * indent.c (Fvertical_motion): Move to the start of the line
21354 containing PT before moving up or down.
21355
21356 2002-04-24 Gerd Moellmann <gerd@gnu.org>
21357
21358 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
21359 case of writing a whole row, more or less analogous to the case of
21360 writing only parts of a row.
21361
21362 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
21363 0 for NO_CURSOR.
21364
21365 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
21366
21367 2002-04-23 Colin Walters <walters@verbum.org>
21368
21369 * buffer.c (syms_of_buffer): Doc fix.
21370
21371 2002-04-23 Gerd Moellmann <gerd@gnu.org>
21372
21373 * xterm.c (notice_overwritten_cursor): Handle the special case
21374 of the cursor being in the first blank non-text line at the
21375 end of a window.
21376
21377 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
21378 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
21379 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
21380 bar cursors only, to make phys_cursor_width contain what its name
21381 suggests.
21382 (notice_overwritten_cursor): Consider the cursor image erased if
21383 the output area intersects the cursor image in y-direction.
21384
21385 2002-04-23 Simon Marshall <simon@gnu.org>
21386
21387 * xfns.c (x_set_mouse_color): Change default for cross_cursor
21388 to XC_hand2.
21389
21390 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21391
21392 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
21393
21394 2002-04-22 Kim F. Storm <storm@cua.dk>
21395
21396 * textprop.c (remove_properties): Fixed trap for malformed plist.
21397
21398 2002-04-22 Richard M. Stallman <rms@gnu.org>
21399
21400 * cmds.c (Fend_of_line): Handle intangible text in mid line.
21401
21402 * window.c (make_window): Initialize height_fixed_p,
21403 last_cursor_off_p, and p->cursor_off_p slots.
21404
21405 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21406
21407 * fns.c (use-dialog-box): Doc fix.
21408
21409 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21410
21411 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
21412 variables `row', `i' and `area'.
21413 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
21414 toolkit library.
21415
21416 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
21417
21418 * xfaces.c (clear_font_table): Don't free the default font of
21419 a frame even if it's on another display.
21420 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
21421 that could be Qt.
21422
21423 2002-04-19 Juanma Barranquero <lektu@terra.es>
21424
21425 * indent.c (Fmove_to_column): Remove unused local variable
21426 `next_boundary_byte'.
21427 (current_column_1): Likewise.
21428
21429 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
21430
21431 * msdos.c (Qhbar): New variable.
21432 (syms_of_msdos): Intern and staticpro it.
21433 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
21434 cursor type.
21435
21436 2002-04-19 Dave Lambert <dlambert@acm.org>
21437
21438 Theses change implement an underscore-like (`hbar') cursor.
21439
21440 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
21441
21442 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
21443 Handle the `hbar' cursor type.
21444 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21445
21446 * xfns.c (Qhbar): New variable.
21447 (syms_of_xfns): Intern and staticpro it.
21448 (x_specified_cursor_type): Handle `hbar' cursor.
21449
21450 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
21451 not defined.
21452
21453 2002-04-18 Richard M. Stallman <rms@gnu.org>
21454
21455 * textprop.c (remove_properties): New arg LIST allows scanning
21456 either a list or a plist.
21457 (interval_has_some_properties_list): New function, like
21458 interval_has_some_properties using list instead of plist.
21459 All callers changed.
21460 (Fremove_list_of_text_properties): New function.
21461 (syms_of_textprop): Defsubr it.
21462
21463 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
21464
21465 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
21466
21467 2002-04-17 Juanma Barranquero <lektu@terra.es>
21468
21469 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
21470
21471 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
21472
21473 * window.c (coordinates_in_window): Don't report on margin area
21474 if its width is zero.
21475
21476 2002-04-16 Jason Rumney <jasonr@gnu.org>
21477
21478 * w32fns.c (Fx_file_dialog): Decode file name before using.
21479
21480 * w32term.c (construct_drag_n_drop): Likewise.
21481
21482 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
21483
21484 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
21485 store load-history in pure space.
21486
21487 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
21488
21489 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
21490
21491 * xterm.c (Qlatin_1, Qutf_8): New vars.
21492 (syms_of_xterm): Initialize them.
21493 (XTread_socket): Eliminate incorrect optimization that tried to avoid
21494 decoding the output of X*LookupString.
21495 Always use latin-1 to decode the output of XLookupString.
21496 Try Xutf8LookupString if XmbLookupString failed.
21497
21498 * region-cache.c (new_region_cache): Use BEG.
21499
21500 2002-04-16 Gerd Moellmann <gerd@gnu.org>
21501
21502 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
21503 configuration files.
21504 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
21505 returns 0.
21506
21507 2002-04-15 Andreas Schwab <schwab@suse.de>
21508
21509 * config.in: Regenerated using autoheader.
21510
21511 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
21512 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
21513 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
21514 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
21515 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
21516 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
21517 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
21518 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
21519 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
21520 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
21521 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
21522 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
21523 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
21524 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
21525 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
21526 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
21527 STACK_DIRECTION, now set by autoconf.
21528
21529 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21530
21531 * dispnew.c (marginal_area_string): Sort arguments.
21532
21533 * dispextern.h (marginal_area_string): Add prototype.
21534
21535 2002-04-13 Richard M. Stallman <rms@gnu.org>
21536
21537 * fileio.c (Finsert_file_contents):
21538 Don't call temp_output_buffer_setup--do just part, by hand.
21539
21540 * coding.c (run_pre_post_conversion_on_str):
21541 Don't call temp_output_buffer_setup--do just part, by hand.
21542
21543 * keyboard.c (command_loop_1): Don't call start_hourglass
21544 or cancel_hourglass when executing a macro.
21545
21546 * marker.c (count_markers): New function.
21547
21548 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
21549 grow without limit. Move recently used elements to the front.
21550
21551 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
21552
21553 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
21554
21555 2002-04-12 Gerd Moellmann <gerd@gnu.org>
21556
21557 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
21558 rows marginal areas.
21559 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
21560 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
21561
21562 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
21563
21564 2002-04-12 Dave Love <fx@gnu.org>
21565
21566 * dispnew.c (marginal_area_string): New.
21567
21568 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
21569 (Qleft_margin, Qright_margin): Declare.
21570 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
21571
21572 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
21573 note_mode_line_highlight and extended.
21574
21575 * keyboard.c (Qleft_margin, Qright_margin): Declare.
21576 (make_lispy_event): Deal with mouse events in margins.
21577
21578 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
21579
21580 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
21581
21582 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
21583 than deactivating the mark if tmm is set to `lambda'.
21584 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
21585 Use a single event for HELP_EVENT.
21586 (Fexecute_extended_command): Save last_point_position.
21587
21588 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21589
21590 * lisp.h (Fpropertize): Add prototype.
21591
21592 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
21593
21594 2002-04-10 Colin Walters <walters@verbum.org>
21595
21596 * config.in: Add HAVE_SHARED_GAME_DIR.
21597
21598 * callproc.c (Vgame_score_directory): New variable.
21599 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
21600
21601 2002-04-10 Richard M. Stallman <rms@gnu.org>
21602
21603 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
21604
21605 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
21606
21607 * minibuf.c (read_minibuf): Use empty_string.
21608 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
21609 Short-circuit the search as soon as it "failed".
21610 (Fall_completions): Allow lambda forms and lists of strings for alist.
21611 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
21612 when require_match is nil.
21613 (Ftest_completion): Rename from `test_completion' and export to elisp.
21614 Call the predicate also when alist is a list.
21615 Obey Vcompletion_regexp_list.
21616 (do_completion, Fminibuffer_complete_and_exit): Use it.
21617 (Fassoc_string): Rename from `assoc_for_completion'.
21618 Allow list of strings as well and export to elisp.
21619
21620 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
21621
21622 * puresize.h (BASE_PURESIZE): Increase to 900KB.
21623
21624 2002-04-08 Juanma Barranquero <lektu@terra.es>
21625
21626 * w32.c (sys_accept): Don't hide variable `s'.
21627
21628 2002-04-05 Gerd Moellmann <gerd@gnu.org>
21629
21630 * callint.c (Fcall_interactively): Use INTEGERP instead of
21631 NUMBERP for checking Vhistory_length.
21632
21633 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21634
21635 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
21636 Doc fix to reflect it.
21637
21638 2002-04-04 Richard M. Stallman <rms@gnu.org>
21639
21640 * xdisp.c (display_mode_element): New arg RISKY.
21641 Disregard text props found or specified within a variable
21642 that isn't marked risky-local-variable.
21643 (Qrisky_local_variable): New variable.
21644 (syms_of_xdisp): Init and staticpro it.
21645
21646 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
21647
21648 * undo.c (record_point): New fun.
21649 (record_delete, record_insert): Use it.
21650
21651 2002-04-03 Juanma Barranquero <lektu@terra.es>
21652
21653 * doc.c (Fdocumentation): Add missing parentheses.
21654 (Fdocumentation_property): Likewise.
21655
21656 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
21657
21658 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
21659 data is 0, just return nil.
21660
21661 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
21662
21663 * msdos.c (syms_of_msdos): Fix last change with
21664 mouse_autoselect_window.
21665
21666 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21667
21668 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
21669 mouse_autoselect_window.
21670
21671 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
21672
21673 * keyboard.c (make_lispy_event): Handle unknown keysyms together
21674 with system-specific keysyms. Use it also for unknown function keys.
21675
21676 * doc.c (reread_doc_file): Return whether reload was attempted.
21677 (Fdocumentation, Fdocumentation_property): Don't try to reload
21678 if the doc is 0 and only ask once.
21679
21680 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
21681
21682 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
21683
21684 * keyboard.c (read_char): If the event was Qselect_window,
21685 restore timer_idleness_start_time to its previous value.
21686
21687 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
21688
21689 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
21690
21691 * region-cache.c (new_region_cache): Use BEG.
21692
21693 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
21694 Use BEG and BEG_BYTE.
21695
21696 * doc.c (get_doc_string): Return nil if the location is wrong.
21697 (reread_doc_file): New fun.
21698 (Fdocumentation, Fdocumentation_property):
21699 Call it if get_doc_string fails.
21700 (Fsnarf_documentation): Make it work for a dumped Emacs.
21701
21702 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
21703 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
21704
21705 * charset.c (Fstring): Allow 0 arguments.
21706
21707 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
21708
21709 * process.c (DATAGRAM_CONN_P, list_processes_1)
21710 (Fprocess_datagram_address, Fset_process_datagram_address)
21711 (Fset_network_process_options, server_accept_connection):
21712 Fix some int/Lisp_Object confusions (thank you union types).
21713
21714 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21715
21716 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
21717
21718 * w32term.c: Likewise.
21719 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
21720
21721 * keyboard.c (Qselect_window): New symbol.
21722 (head_table): Use it.
21723 (keys_of_keyboard): Bound select-window event to handle-select-window.
21724 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
21725
21726 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
21727 (last_window): New variable.
21728 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
21729 (note_mouse_movement): Remove reimplemented code in #if 0.
21730 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
21731 Emacs windows.
21732
21733 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
21734
21735 2002-03-31 Gerd Moellmann <gerd@gnu.org>
21736
21737 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
21738 Callers changed.
21739
21740 2002-03-30 Richard M. Stallman <rms@gnu.org>
21741
21742 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
21743 loop whenever it stops making progress.
21744
21745 * widget.c (set_frame_size): Don't call change_frame_size.
21746
21747 2002-03-30 Gerd Moellmann <gerd@gnu.org>
21748
21749 * dispnew.c (direct_output_for_insert):
21750 Call mark_window_display_accurate.
21751
21752 2002-03-29 Jason Rumney <jasonr@gnu.org>
21753
21754 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
21755
21756 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
21757
21758 * Makefile.in (lread.o): Depend on coding.h.
21759
21760 * lread.c (openp, Fload): Encode the file name before passing it
21761 to `stat', `access', and `emacs_open'.
21762 (openp): GCPRO the encoded file name. Don't recompute Lisp
21763 strings unnecessarily.
21764
21765 2002-03-29 Kim F. Storm <storm@cua.dk>
21766
21767 * fns.c (Flax_plist_put): Doc fix.
21768
21769 2002-03-28 Miles Bader <miles@gnu.org>
21770
21771 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
21772
21773 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21774
21775 * process.c (set-network-process-options): Add usage.
21776 (make-network-process): Doc fix.
21777
21778 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
21779
21780 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
21781
21782 2002-03-26 Richard M. Stallman <rms@gnu.org>
21783
21784 * fns.c (Fsubstring_no_properties): New function.
21785 (Flax_plist_get, Flax_plist_put): New functions.
21786 (syms_of_fns): defsubr them.
21787
21788 * xdisp.c (update_menu_bar): Test only update_mode_lines;
21789 don't test or alter w->update_mode_line.
21790
21791 * window.c (Fdisplay_buffer): Doc fix.
21792
21793 2002-03-24 Richard M. Stallman <rms@gnu.org>
21794
21795 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
21796
21797 2002-03-24 Gerd Moellmann <gerd@gnu.org>
21798
21799 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
21800 (Fdefmacro): Handle `(declare ...)'.
21801 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
21802 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
21803
21804 2002-03-24 Jason Rumney <jasonr@gnu.org>
21805
21806 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
21807 (xbm_file_p): Add prototypes.
21808 (xbm_format, xbm_image_p): Sync with xfns.c.
21809 (reflect_byte): New function.
21810 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
21811 (xbm_load_image): Create bitmaps with a depth of 1.
21812 (init_xfns): Enable XBM images.
21813
21814 2002-03-23 Jason Rumney <jasonr@gnu.org>
21815
21816 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
21817 correctly. Do not pass up_modifier to keyboard buffer.
21818
21819 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
21820
21821 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
21822
21823 * Makefile.in (bootstrapclean): New target.
21824 (bootstrap-temacs, bootstrap-doc): Remove.
21825 (bootstrap-emacs): Use a bog-standard `temacs'.
21826 Don't bother to build a DOC file.
21827
21828 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
21829
21830 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
21831 in temacs even if !CANNOT_DUMP.
21832 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
21833
21834 * alloc.c (check_pure_size): Only output a warning.
21835
21836 2002-03-22 Jason Rumney <jasonr@gnu.org>
21837
21838 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
21839 supported.
21840
21841 * w32term.c (zv_bits): Declare as short, for word alignment.
21842 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
21843 (syms_of_w32term): Define x-use-underline-position-properties.
21844
21845 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
21846 (clear_image_cache): Block input, fix logic, clear matrices in
21847 all frames that share this cache.
21848
21849 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
21850
21851 * emacs.c (main): Update the Copyright year in the blurb printed
21852 by "emacs --version".
21853
21854 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
21855
21856 * xterm.c (XTread_socket): If XK_ISO_Lock and
21857 XK_ISO_Last_Group_Lock are defined, handle keysyms between
21858 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
21859
21860 2002-03-21 Kim F. Storm <storm@cua.dk>
21861
21862 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
21863 menu-bar bindings in keymap and local-map properties _are_ used.
21864 But try keymap property first in accordance with 2002-01-03 patch.
21865 Added comment describing why this is not always reliable.
21866 (tool_bar_items): Ditto for tool-bar.
21867
21868 2002-03-21 Jason Rumney <jasonr@gnu.org>
21869
21870 * w32fns.c (x_clear_image_1): Disable color table code.
21871
21872 2002-03-21 Kim F. Storm <storm@cua.dk>
21873
21874 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
21875 removed the wrong version of the DEFUN macro; fixed it.
21876
21877 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
21878 Fmember rather than Fmemq).
21879 (Fprovide): Check that subfeatures is a list.
21880
21881 * process.c (QCfeature, QCdatagram): Removed variables.
21882 (QCtype, Qdatagram): New variables.
21883 (network_process_featurep): Removed function.
21884 (Fmake_network_process): Removed :feature check.
21885 Use :type 'datagram instead of :datagram t to create a datagram
21886 socket. This allows us to add other connection types (e.g. raw
21887 sockets) later in a consistent manner.
21888 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
21889 supported subfeatures for feature make-network-process.
21890 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
21891 Intern and staticpro QCtype and Qdatagram.
21892 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
21893
21894 * xfns.c (QCtype): Remove duplicate declaration and
21895 initialization (is now declared in process.c).
21896
21897 * w32fns.c (QCtype): Remove duplicate declaration and
21898 initialization (is now declared in process.c).
21899
21900 2002-03-21 Richard M. Stallman <rms@gnu.org>
21901
21902 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
21903 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
21904 when jumping to `fail' to avoid undoing reg changes in the
21905 last iteration of the loop.
21906 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
21907
21908 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
21909 Depend on process.h.
21910
21911 2002-03-20 Jason Rumney <jasonr@gnu.org>
21912
21913 Most of the following changes are still conditional on HAVE_IMAGES
21914 which is not set by default on Windows.
21915
21916 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
21917
21918 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
21919 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
21920 (four_corners_best, x_clear_image_1, x_clear_image)
21921 (x_alloc_image_color, postprocess_image)
21922 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
21923 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
21924 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
21925
21926 * w32gui.h (struct XImage): Define.
21927
21928 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
21929 extract mouse co-ordinates.
21930
21931 2002-03-20 Jason Rumney <jasonr@gnu.org>
21932
21933 * w32.c (init_winsock): Dynamically load new server and UDP
21934 socket functions.
21935 (socket_to_fd): New function.
21936 (sys_socket): Use it.
21937 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
21938 (sys_recvfrom, sys_sendto): New wrapper functions.
21939
21940 * process.c (QCfamily, QCfilter): Remove duplicate declaration
21941 and initialization.
21942
21943 * makefile.w32-in (LIBS): Remove $(WSOCK32).
21944
21945 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
21946
21947 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
21948 Don't use "sun" as a variable, it's a predefined constant on Sun
21949 machines.
21950
21951 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21952
21953 * bytecode.c (Fbyte_code): Revert last change.
21954
21955 2002-03-19 Kim F. Storm <storm@cua.dk>
21956
21957 * makefile.w32-in (LIBS): Add $(WSOCK32).
21958 From David Ponce <dponce@voila.fr>.
21959
21960 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21961
21962 * process.c (wait_reading_process_input): Move variables `pname'
21963 and `pnamelen' down where they are used.
21964
21965 * bytecode.c (Fbyte_code): Discard unused computed value to
21966 prevent gcc warning.
21967
21968 * lisp.h (Fplist_member): Add prototype.
21969
21970 2002-03-18 Kim F. Storm <storm@cua.dk>
21971
21972 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
21973 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
21974
21975 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
21976 Remove explicit GNU_LINUX settings for datagram support.
21977
21978 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21979
21980 * process.c (Fmake_network_process): Remove unused variable `sa'.
21981 Doc fix. Add usage:.
21982 (set_socket_options): Remove unused variables `optnum' and `opttype'.
21983
21984 2002-03-17 Richard M. Stallman <rms@gnu.org>
21985
21986 * xdisp.c (cursor_type_changed): New variable.
21987 (redisplay_internal): Redisplay all windows if cursor_type_changed.
21988 Clear it when clearing windows_or_buffers_changed.
21989 (try_cursor_movement, redisplay_window, try_window_id)
21990 (try_window_reusing_current_matrix): Test cursor_type_changed
21991 along with windows_or_buffers_changed.
21992
21993 * window.h (cursor_type_changed): New variable.
21994
21995 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
21996 not update_mode_lines, and always set it to 1.
21997
21998 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
21999 if no frames needed redrawing.
22000
22001 2002-03-17 Kim F. Storm <storm@cua.dk>
22002
22003 The following changes add support for network server processes,
22004 datagram connections, and local (unix) sockets.
22005
22006 * process.h (struct Lisp_Process): New member log.
22007 Doc fix: Member command used to indicate stopped network process.
22008 Doc fix: Member childp contains plist for network process.
22009 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
22010
22011 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
22012 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
22013 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
22014 New variables.
22015 (NETCONN1_P): New macro.
22016 (DATAGRAM_SOCKETS): New conditional symbol.
22017 (datagram_address): New array.
22018 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
22019 (status_message): Use concat3.
22020 (Fprocess_status): Add `listen' status to doc string. Return `stop'
22021 for a stopped network process.
22022 (Fset_process_buffer): Update contact plist for network process.
22023 (Fset_process_filter): Ditto. Don't enable input for stopped
22024 network processes. Server must listen, even if filter is t.
22025 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
22026 New functions.
22027 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
22028 (Fprocess_contact): Added KEY argument. Handle datagrams.
22029 (list_processes_1): Optionally show only processes with the query
22030 on exit flag set. Dynamically adjust column widths. Omit tty
22031 column if not needed. Report stopped network processes.
22032 Identify server and datagram network processes.
22033 (Flist_processes): New optional arg `query-only'.
22034 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
22035 (conv_lisp_to_sockaddr, set_socket_options)
22036 (network_process_featurep, unwind_request_sigio): New helper functions.
22037 (Fprocess_datagram_address, Fset_process_datagram_address):
22038 (Fset_network_process_options): New lisp functions.
22039 (Fopen_network_stream): Removed. Now defined in simple.el.
22040 (Fmake_network_process): New lisp function. Code is based on previous
22041 Fopen_network_stream, but heavily reworked with new property list based
22042 argument list, support for datagrams, server processes, and local
22043 sockets in addition to old client-only functionality.
22044 (server_accept_connection): New function.
22045 (wait_reading_process_input): Use it to handle incoming connects.
22046 Do not enable input on a new connection if process is stopped.
22047 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
22048 (send_process): Handle datagram sockets.
22049 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
22050 network process is indicated by setting command field to t .
22051 (Fprocess_send_eof): No-op if datagram connection.
22052 (Fstatus_notify): Don't read input for a stream server socket or a
22053 stopped network process.
22054 (init_process): Initialize datagram_address array.
22055 (syms_of_process): Intern and staticpro new variables, defsubr new
22056 functions.
22057
22058 2002-03-16 Jason Rumney <jasonr@gnu.org>
22059
22060 * w32fns.c (w32_to_all_x_charsets): Return correct type in
22061 startup case.
22062
22063 2002-03-16 Richard M. Stallman <rms@gnu.org>
22064
22065 * xdisp.c (redisplay_internal, redisplay_windows):
22066 Use list_of_error to call internal_condition_case_1.
22067 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
22068 so as to catch all errors with no possibility of debugger redisplay.
22069 (list_of_error): New variable.
22070 (syms_of_xdisp): Init and staticpro it.
22071
22072 * print.c (print_object): Delete `\ ' from printed rep of frame.
22073
22074 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
22075
22076 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
22077 until its implementation is fixed.
22078
22079 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22080
22081 * xfns.c (png_load): Remove unused variable `gamma_str'.
22082
22083 2002-03-14 Richard M. Stallman <rms@gnu.org>
22084
22085 * xfns.c (x_real_positions): Handle failure in XQueryTree.
22086
22087 2002-03-14 Miles Bader <miles@gnu.org>
22088
22089 * intervals.c (adjust_for_invis_intang): New function.
22090 (set_point_both): Use `adjust_for_invis_intang' to do most of the
22091 work for dealing with invisible+intangible regions. Do so before
22092 and after both forward and backward movements, to handle both
22093 front-sticky and rear-sticky cases.
22094 * textprop.c (text_property_stickiness): Function moved here from
22095 `editfns.c'.
22096 * intervals.h (text_property_stickiness): New declaration.
22097 * editfns.c (char_property_eq): Function removed.
22098 (text_property_stickiness): Function moved to `textprop.c'.
22099
22100 2002-03-13 Jason Rumney <jasonr@gnu.org>
22101
22102 * config.in: Add STRFTIME_NO_POSIX2.
22103
22104 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
22105 and %OX when underlying strftime does not.
22106
22107 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
22108
22109 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
22110 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
22111 line) to avoid annoying flicker.
22112 (xm_scroll_callback): Get rid of the now unnecessary kludge.
22113 (XTread_socket): Mark it static.
22114
22115 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
22116
22117 2002-03-13 Kim F. Storm <storm@cua.dk>
22118
22119 * puresize.h (BASE_PURESIZE): Increase to 775000.
22120
22121 2002-03-12 Juanma Barranquero <lektu@terra.es>
22122
22123 * editfns.c (syms_of_editfns): Fix typo.
22124
22125 2002-03-12 Gerd Moellmann <gerd@gnu.org>
22126
22127 * xsmfns.c: Include stdio.h because termhooks.h needs it.
22128 Include termopt.h for interrupt_input.
22129
22130 2002-03-11 Andreas Schwab <schwab@suse.de>
22131
22132 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
22133
22134 2002-03-11 Gerd Moellmann <gerd@gnu.org>
22135
22136 * xterm.c (note_mouse_movement): Put code for
22137 x_autoselect_window_p in #if 0.
22138
22139 * lread.c (Fload): Don't assume that message_with_string uses the
22140 string it is given like a C string.
22141
22142 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22143
22144 * xterm.h (x_session_check_input, x_session_initialize): Declare.
22145
22146 * xterm.c (XTread_socket): Add call to x_session_check_input and
22147 x_session_have_connection.
22148 (x_initialize): Add call to x_session_initialize.
22149
22150 * termhooks.h (enum event_kind): Add save_session_event.
22151
22152 * keyboard.c: Add Emacs event save_session_event.
22153
22154 * emacs.c (main): Add call to syms_of_xsmfns.
22155
22156 * lisp.h (syms_of_xsmfns): Declare extern.
22157
22158 * config.in: Add HAVE_X_SM.
22159
22160 * Makefile.in (LIBXT): Add -lSM -lICE
22161 if HAVE_X_SM and not USE_X_TOOLKIT.
22162 (XOBJ): New file xsmfns.c added.
22163
22164 * xsmfns.c: New file for X session management.
22165
22166 2002-03-09 Jason Rumney <jasonr@gnu.org>
22167
22168 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
22169 read-only when setting modified time.
22170
22171 2002-03-08 Gerd Moellmann <gerd@gnu.org>
22172
22173 * xdisp.c (move_it_vertically_backward): At the end of the function,
22174 when moving forward by lines, treat terminal frames specially.
22175
22176 * keyboard.c (echo_char): Make sure to add a separator between
22177 keys even if echo_dash hasn't been called.
22178
22179 * xdisp.c: Use new string macros.
22180 (update_echo_area): Pass number of bytes to message3 instead of
22181 number of chars.
22182 (set_message_1): Don't access a string's size_byte directly.
22183 (decode_mode_spec_coding): Use number of bytes of eoltype string
22184 instead number of chars.
22185
22186 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
22187
22188 2002-03-08 Juanma Barranquero <lektu@terra.es>
22189
22190 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
22191 24-bit.
22192
22193 2002-03-06 Jason Rumney <jasonr@gnu.org>
22194
22195 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
22196
22197 2002-03-06 Gerd Moellmann <gerd@gnu.org>
22198
22199 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
22200 (cancel_echoing, echo_length, echo_truncate): Changed to
22201 work with new kboard definition.
22202 (echo_now): Use message3_nolog instead of message2_nolog.
22203
22204 * alloc.c (mark_kboards): Mark echo_string.
22205
22206 * keyboard.h (ECHOBUFSIZE): Removed.
22207 (struct kboard): Member echoptr removed, member echobuf renamed
22208 to echo_string.
22209
22210 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
22211 message3 instead of message2 to display the message using STRING's
22212 text properties.
22213
22214 2002-03-05 Andreas Schwab <schwab@suse.de>
22215
22216 * xdisp.c (hscroll_margin): Change to EMACS_INT.
22217
22218 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
22219
22220 * frame.c (default-frame-alist): Explain that setting it doesn't
22221 affect existing frames.
22222
22223 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
22224
22225 * indent.c (skip_invisible): Fix my brain fart.
22226
22227 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
22228
22229 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
22230
22231 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
22232 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
22233 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
22234 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
22235 and variables to use EMACS_INT instead of just int.
22236
22237 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
22238
22239 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
22240
22241 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
22242 environment, pass it down with corrected value.
22243
22244 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22245
22246 * lread.c (read_filtered_event): Do not call start_hourglass
22247 before returning.
22248
22249 2002-03-04 Juanma Barranquero <lektu@terra.es>
22250
22251 * w32term.c (x_display_and_set_cursor): Fix typo.
22252
22253 2002-03-03 Richard M. Stallman <rms@gnu.org>
22254
22255 * fileio.c (Fmake_temp_name): Doc fix.
22256
22257 2002-03-03 Gary Wong <gtw@gnu.org>
22258
22259 * termcap.c [!emacs]: Replace ospeed for building standalone
22260 libtermcap, for binary compatibility.
22261
22262 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
22263
22264 2002-03-03 Richard M. Stallman <rms@gnu.org>
22265
22266 * xrdb.c (file_p): Rename arg `path' to `filename'.
22267
22268 * abbrev.c (Fexpand_abbrev): Increment plist as use count
22269 only if it is an integer.
22270
22271 * xfns.c (png_load): Set screen_gamma based on f->gamma.
22272 If png_get_sRGB gives an answer, call png_set_gamma
22273 using the default image gamma value.
22274
22275 * lread.c (read1): When reading from a file, default string to
22276 multibyte only if it has some multibyte characters.
22277
22278 * print.c (print_object): Output multibyte chars 128...255
22279 using \x even if ! print_escape_multibyte.
22280
22281 * xdisp.c (display_mode_element): Move the places where
22282 bytepos, charpos, this, and lisp_string are set.
22283 Use lisp_string to set bytepos.
22284
22285 * xdisp.c (redisplay_internal):
22286 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
22287
22288 * xdisp.c (display_mode_element): Merge properties specified with
22289 :propertize onto those that come with the string.
22290
22291 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
22292
22293 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
22294 automatic-hscrolling. Users changed.
22295 <hscroll-margin>: Renamed from automatic-hscroll-margin.
22296 Users changed.
22297 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
22298
22299 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
22300
22301 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
22302
22303 2002-03-02 Kim F. Storm <storm@cua.dk>
22304
22305 * window.c (Fminibuffer_selected_window): New function.
22306 (syms_of_window): Defsubr it.
22307
22308 2002-03-01 Kim F. Storm <storm@cua.dk>
22309
22310 * window.h (struct window): New member phys_cursor_width.
22311
22312 * window.c (make_window, replace_window): Init phys_cursor_width.
22313
22314 * xterm.c (x_display_and_set_cursor): Blink box cursor using
22315 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
22316
22317 * w32term.c (x_display_and_set_cursor): Blink box cursor using
22318 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
22319
22320 * lisp.h (GCPRO6): New macro.
22321
22322 * process.c (Fopen_network_stream): Use GCPRO6.
22323
22324 2002-03-01 Kim F. Storm <storm@cua.dk>
22325
22326 * process.c (Qconnect, Qfailed): New variables.
22327 (syms_of_process): Intern and staticpro them.
22328 (Fprocess_status): Document connect and failed return values.
22329 [NON_BLOCKING_CONNECT]: New conditional.
22330 (connect_wait_mask, num_pending_connects): New variables.
22331 (status_message): Convert Qfailed status.
22332 (Fopen_network_stream): Added support for non-blocking connect.
22333 New optional args: filter, sentinel, non_blocking. Doc updated.
22334 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
22335 (deactivate_process): Handle pending non-blocking connect.
22336 (wait_reading_process_input): Poll for status of non-blocking
22337 connects. Exec sentinel directly when connect succeeds.
22338 (status_notify): Don't read process output if not yet connected.
22339
22340 2002-02-28 Kim F. Storm <storm@cua.dk>
22341
22342 * window.c (minibuf_selected_window): Renamed from
22343 Vminibuf_selected_window. Users changed.
22344 (syms_of_window): Staticpro it.
22345
22346 2002-02-26 Kim F. Storm <storm@cua.dk>
22347
22348 The following changes add a new Vminibuf_selected_window variable
22349 which is similar to Vminibuf_scroll_window, but which is only set
22350 on entry to the minibuffer (from a non-minibuffer window):
22351
22352 * window.c (Vminibuf_selected_window): New variable.
22353 (struct save_window_data): New member minibuf_selected_window.
22354 (Fset_window_configuration): Restore Vminibuf_selected_window.
22355 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
22356 Set minibuf_scroll_window member to nil if minibuf_level is 0.
22357 (compare_window_configurations): Compare minibuf_selected_window.
22358
22359 * window.h (Vminibuf_selected_window): Declare extern.
22360
22361 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
22362 entry to minibuffer or on entry from a non-minibuffer window.
22363
22364 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
22365 Vminibuf_selected_window instead of Vminibuf_scroll_window.
22366
22367 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
22368 instead of Vminibuf_scroll_window when deciding in which window
22369 the region should be highlighted. Consequently, the region remains
22370 highlighteded even when a completion buffer is also displayed.
22371
22372 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
22373
22374 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
22375
22376 * xselect.c (Qcompound_text_with_extensions): Renamed from
22377 Qcompound_text_no_extensions.
22378 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
22379
22380 2002-02-26 Juanma Barranquero <lektu@terra.es>
22381
22382 * w32proc.c (syms_of_ntproc): Doc fix.
22383
22384 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22385
22386 * intervals.h: Include "dispextern.h" unconditionally.
22387
22388 2002-02-24 Jason Rumney <jasonr@gnu.org>
22389
22390 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
22391 and disp-table.elc.
22392 (lisp): Add emacs-lisp/backquote.elc.
22393
22394 2002-02-24 Kim F. Storm <storm@cua.dk>
22395
22396 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
22397 The validation of the event type was too strict as it didn't
22398 allow string events; buffer names are used in bindings for
22399 menu-bar-select-buffer (see `menu-bar-update-buffers').
22400
22401 2002-02-23 Kim F. Storm <storm@cua.dk>
22402
22403 The following changes rework my patch of 2002-02-06 which
22404 added command remapping by entering the commands directly into
22405 the keymaps. Now, command remapping uses an explicit `remap'
22406 prefix in the keymaps, i.e. [remap COMMAND].
22407
22408 * keymap.c (Qremap, remap_command_vector): New variables.
22409 (is_command_symbol): Remove function.
22410 (Fdefine_key): No longer accept a symbol for KEY.
22411 Added validation of [remap COMMAND] argument for KEY.
22412 The DEF is no longer required to be a symbol when remapping a command.
22413 (Fremap_command): New function to remap command through keymaps.
22414 (Flookup_key): Perform command remapping initiated by
22415 Fremap_command directly for speed.
22416 (Fkey_binding): Use Fremap_command for command remapping.
22417 (where_is_internal): Handle new command remapping representation.
22418 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
22419 staticpro them. Defsubr Fremap_command.
22420
22421 * keymap.h (Fremap_command): Declare extern.
22422 (is_command_symbol): Remove extern.
22423
22424 * keyboard.c (command_loop_1): Use Fremap_command for command
22425 remapping; now try command remapping for all symbols.
22426
22427 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
22428
22429 * coding.h (run_pre_post_conversion_on_str): Add prototype.
22430
22431 2002-02-23 Jason Rumney <jasonr@gnu.org>
22432
22433 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
22434 on the string before encoding it.
22435 (Fw32_get_clipboard_data): Run post-read-conversion on the string
22436 after decoding it.
22437
22438 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
22439
22440 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22441
22442 * w32term.c (enter_timestamp): Remove unused static variable to
22443 prevent warning.
22444
22445 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
22446
22447 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
22448
22449 * w16select.c (Fw16_get_clipboard_data): Fix last change.
22450
22451 * xselect.c (selection_data_to_lisp_data): Fix last change.
22452
22453 2002-02-22 Jason Rumney <jasonr@gnu.org>
22454
22455 * w32term.h (struct w32_output): New member menu_command_in_progress.
22456
22457 * w32menu.c (menubar_selection_callback): Free the menu and
22458 clear the menu_command_in_progress flag.
22459
22460 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
22461 (menu_free_timer): New variable.
22462 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
22463 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
22464 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
22465 menu command is in progress.
22466 <WM_COMMAND>: Set the menu_command_in_progress flag.
22467 Kill any menu_free_timer that is running.
22468
22469 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
22470 Call ExtTextOutA rather than ExtTextOut.
22471
22472 2002-02-22 Eli Zaretskii <eliz@gnu.org>
22473
22474 * puresize.h (BASE_PURESIZE): Increase to 755000.
22475
22476 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
22477
22478 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
22479 on the string before encoding it.
22480 (Fw16_get_clipboard_data): Run post-read-conversion on the string
22481 after decoding it.
22482
22483 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
22484
22485 Support for ICCCM Extended Segments in X selections:
22486
22487 * xselect.c <Qcompound_text_no_extensions>: New variable.
22488 (syms_of_xselect): Intern and staticpro it.
22489 (selection_data_to_lisp_data): Run post-read-conversion on decoded
22490 selection text.
22491 (lisp_data_to_selection_data): If next-selection-coding-system is
22492 compound-text-no-extensions, set the type of selection to be
22493 compound-text.
22494
22495 * xterm.h (x_encode_text): Update prototype.
22496
22497 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
22498 callers changed. If SELECTIONP is non-zero, run the
22499 pre-write-conversion function before encoding the selection text.
22500
22501 2002-02-21 Kim F. Storm <storm@cua.dk>
22502
22503 * frame.c (syms_of_frame): Change mouse-highlight default to t.
22504
22505 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
22506 Correct composing of language-change event.
22507
22508 2002-02-20 Kim F. Storm <storm@cua.dk>
22509
22510 * keyboard.c (menu_bar_items): Don't include keymap or local-map
22511 bindings at PT when building menu (the menu is not updated often
22512 enough for this to work reliable).
22513 (tool_bar_items): Likewise.
22514 (current_active_maps): Removed unused (and buggy) function.
22515
22516 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22517
22518 * xfns.c (gif_load): Use correct width and height for GIF images.
22519
22520 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
22521
22522 * floatfns.c (Fatan): Accept an optional second arg and call
22523 atan2 if passed 2 args.
22524
22525 2002-02-18 Jason Rumney <jasonr@gnu.org>
22526
22527 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
22528
22529 2002-02-17 Jason Rumney <jasonr@gnu.org>
22530
22531 * w32term.c (x_autoselect_window_p): New variable.
22532 (syms_of_w32term): DEFVAR_BOOL and initialize it.
22533 (note_mouse_movement): Use it.
22534
22535 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
22536
22537 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
22538
22539 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
22540 New variables.
22541 (syms_of_w32fns): Intern and staticpro them.
22542 (x_frame_parms) <"fullscreen">: New parameter.
22543 (x_fullscreen_move, x_set_fullscreen): New functions.
22544 (x_set_frame_parameters): Support Qfullscreen.
22545 (x_real_positions): Save x/y_pixels_diff frame params.
22546 (x_figure_window_size): Support full-screen frames.
22547 (Fx_create_frame): Default the fullscreen parameter.
22548
22549 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
22550 (x_fullscreen_adjust): New functions.
22551 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
22552 fullscreen. Call x_check_fullscreen_move, and set the
22553 want_fullscreen member of output_data.w32
22554 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
22555
22556 * w32term.h: New enum for FULLSCREEN_* constants.
22557 (struct w32_output): New members want_fullscreen, x_pixels_diff,
22558 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
22559 (x-fullscreen-adjust): New prototype.
22560
22561 2002-02-17 Kim F. Storm <storm@cua.dk>
22562
22563 * frame.c (Vmouse_highlight): New variable.
22564 (syms_of_frame): DEFVAR_LISP it.
22565
22566 * frame.h (Vmouse_highlight): Declare extern.
22567
22568 * xterm.h (struct x_display_info): Add mouse_face_hidden.
22569
22570 * xterm.c (disable_mouse_highlight): Removed variable.
22571 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
22572 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22573 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
22574 and on after keyboard input.
22575 (x_term_init): Initialize mouse_face_hidden.
22576
22577 * msdos.h (struct display_info): Add mouse_face_hidden.
22578
22579 * msdos.c (disable_mouse_highlight): Removed variable.
22580 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22581 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
22582 (internal_terminal_init): Initialize mouse_face_hidden.
22583 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
22584 and on after keyboard input.
22585
22586 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
22587
22588 * w32term.c (disable_mouse_highlight): Removed variable.
22589 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
22590 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
22591 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
22592 and on after keyboard input.
22593 (w32_initialize_display_info): Initialize mouse_face_hidden.
22594
22595 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
22596
22597 * msdos.c (last_mouse_window): New variable.
22598 (dos_rawgetc): Fix last change--if the mouse is in the same window
22599 as recorded in last_mouse_window, don't select this window.
22600
22601 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
22602
22603 * msdos.c (x_autoselect_window_p): New variable.
22604 (syms_of_msdos): Defvar it.
22605 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
22606 which the last mouse movement occured, unless it is already selected.
22607
22608 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
22609 New variables.
22610 (syms_of_xdisp): DEVFAR them.
22611 (hscroll_window_tree): Use automatic_hscroll_margin and
22612 Vautomatic_hscroll_step to compute the amount of window scrolling.
22613
22614 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22615
22616 * xterm.c (x-autoselect-window): New variable.
22617 (note_mouse_movement): Use it.
22618
22619 * keyboard.c: Do not include "systime.h" twice.
22620
22621 2002-02-15 Andreas Schwab <schwab@suse.de>
22622
22623 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
22624
22625 * alloc.c (NSTATICS): Increase to 1280.
22626
22627 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
22628
22629 * alloc.c (NSTATICS): Bump to 1026.
22630
22631 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
22632 (Vx_super_keysym): New variables.
22633 (syms_of_xterm): DEFVAR_LISP them.
22634 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
22635 variables to determine which keys to use for the various modifiers.
22636
22637 2002-02-13 Kim F. Storm <storm@cua.dk>
22638
22639 * window.c (Vmode_line_in_non_selected_windows): Removed.
22640 (mode_line_in_non_selected_windows): New variable.
22641 (syms_of_window): DEFVAR_BOOL it.
22642
22643 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
22644 Use mode_line_in_non_selected_windows.
22645 (mode_line_in_non_selected_windows): Declare extern.
22646 (Vmode_line_in_non_selected_windows): Removed extern.
22647
22648 2002-02-13 Richard M. Stallman <rms@gnu.org>
22649
22650 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
22651 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
22652 (Fclear_this_command_keys): Doc fixes.
22653
22654 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
22655 (update_face_from_frame_parameter): Increment face_change_count
22656 and windows_or_buffers_changed to force redisplay using changed faces.
22657
22658 * xdisp.c (QCpropertize): New variable.
22659 (mode_line_proptrans_alist): New variable.
22660 (display_mode_element): New arg PROPS; all calls changed.
22661 Implement this, for strings.
22662 Handle literal output of strings by sharing the
22663 main-line code for strings, using local var `literal'.
22664 Handle :propertize feature.
22665 (syms_of_xdisp): Initialze and staticpro QCpropertize and
22666 mode_line_proptrans_alist.
22667
22668 2002-02-11 Kim F. Storm <storm@cua.dk>
22669
22670 * window.c (Vmode_line_in_non_selected_windows): New variable.
22671 (syms_of_window): DEFVAR_LISP it.
22672
22673 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
22674 (CURRENT_MODE_LINE_FACE_ID): Use it.
22675 (Vmode_line_in_non_selected_windows): Declare extern.
22676
22677 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
22678 to get mode line face.
22679
22680 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
22681
22682 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
22683 variables; cus-start.el doesn't need them anymore.
22684
22685 2002-02-09 Kim F. Storm <storm@cua.dk>
22686
22687 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
22688 reduction. This fixes a display problem where stray newlines were
22689 inserted in the window (corrected by C-l). Clarified code (IMHO).
22690
22691 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
22692
22693 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
22694
22695 * xdisp.c (display_mode_lines): Fix last change.
22696
22697 2002-02-09 Jason Rumney <jasonr@gnu.org>
22698
22699 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
22700 match each other.
22701 (w32_load_system_font): Prevent Cleartype fonts from loading.
22702 (Fx_show_tip): Ensure tip frames are above other topmost windows.
22703
22704 2002-02-09 Kim F. Storm <storm@cua.dk>
22705
22706 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
22707 (CURRENT_MODE_LINE_HEIGHT): Use it.
22708 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
22709
22710 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
22711 (pos_visible_p, handle_face_prop): Likewise.
22712 (display_mode_lines): Likewise, but for the real selected window.
22713 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
22714
22715 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
22716 in non-selected windows.
22717 (realize_basic_faces): Realize it.
22718 (syms_of_term): Intern and staticpro it.
22719
22720 2002-02-08 Kim F. Storm <storm@cua.dk>
22721
22722 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
22723 Changed mail addresses to emacs-devel@gnu.org.
22724
22725 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
22726
22727 * fileio.c (Fsubstitute_in_file_name): If the file name includes
22728 ~user, and there's no such user, don't discard everything before ~user.
22729
22730 * floatfns.c (Fround): Doc fix.
22731
22732 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22733
22734 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
22735
22736 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
22737
22738 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
22739
22740 2002-02-07 Kim F. Storm <storm@cua.dk>
22741
22742 * keymap.c (where_is_internal): Only check whether definition is
22743 remapped if it fulfills is_command_symbol.
22744
22745 2002-02-07 Andreas Schwab <schwab@suse.de>
22746
22747 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
22748
22749 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
22750
22751 2002-02-06 Kim F. Storm <storm@cua.dk>
22752
22753 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
22754 defining command remapping. Doc updated.
22755 (Flookup_key): Remap command through keymap if KEY is a symbol.
22756 (is_command_symbol): New function.
22757 (Fkey_binding): Use it. New optional argument NO-REMAP.
22758 Doc updated. Callers changed. Perform command remapping via
22759 recursive call unless that arg is non-nil.
22760 (where_is_internal): New argument no_remap. Callers changed.
22761 Call recursively to find original key bindings for a remapped
22762 comand unless that arg is non-nil.
22763 (Fwhere_is_internal): New optional argument NO-REMAP.
22764 Doc updated. Callers changed. Pass arg to where_is_internal.
22765
22766 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
22767 (is_command_symbol): Add prototype.
22768
22769 * keyboard.c (Vthis_original_command): New variable.
22770 (syms_of_keyboard): DEFVAR_LISP it.
22771 (command_loop_1): Set it, and perform command remapping.
22772
22773 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22774
22775 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
22776
22777 2002-02-06 Jason Rumney <jasonr@gnu.org>
22778
22779 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
22780
22781 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
22782
22783 * charset.c (get_charset_id): Use if-else instead of ?:.
22784
22785 2002-02-06 Richard M. Stallman <rms@gnu.org>
22786
22787 * filelock.c (S_ISLNK): Define if not defined.
22788
22789 2002-02-03 Richard M. Stallman <rms@gnu.org>
22790
22791 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
22792
22793 * lread.c (read1): Redesign strategy for force_multibyte and
22794 force_singlebyte. Now is_multibyte records whether read_buffer
22795 is multibyte. Encountering any multibyte character makes it so.
22796
22797 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
22798
22799 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
22800 with the same sequence, map that sequence to f10 rather than f0.
22801
22802 2002-02-03 Andreas Schwab <schwab@suse.de>
22803
22804 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
22805 latter never being defined on GNU/Linux.
22806
22807 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
22808
22809 * xfaces.c (realize_default_face): Don't set the weight and slant of
22810 the default face to Qnormal, unless these attributes are unspecified.
22811
22812 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22813
22814 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
22815 Call cancel_hourglass unconditionally.
22816
22817 * eval.c (Fsignal): Remove duplicated declaration of
22818 the variable `display_hourglass_p'.
22819
22820 2002-01-31 Richard M. Stallman <rms@gnu.org>
22821
22822 * editfns.c (region_limit): Nicer error message.
22823
22824 * coding.c (decode_composition_emacs_mule):
22825 Give up if NCOMPONENT gets too large to index `component'.
22826
22827 * callint.c (check_mark): New arg to specify clearer error message.
22828 Callers changed.
22829
22830 2002-01-27 Richard M. Stallman <rms@gnu.org>
22831
22832 * minibuf.c (Fcompleting_read): Doc fix.
22833
22834 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22835
22836 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
22837 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
22838 Fix doc-strings.
22839
22840 2002-01-26 Richard M. Stallman <rms@gnu.org>
22841
22842 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
22843
22844 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
22845 and scroll_up_aggressively.
22846
22847 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22848
22849 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
22850
22851 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
22852
22853 * textprop.c (Fnext_property_change, Fnext_single_property_change)
22854 (Fprevious_property_change, Fprevious_single_property_change):
22855 Stay within the narrowed-buffer boundaries.
22856
22857 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
22858
22859 * term.c (Ftty_display_color_cells): New function.
22860 (syms_of_term): Defsubr it.
22861 (Ftty_display_color_cells, Ftty_display_color_p): Change the
22862 argument name to DISPLAY. Doc fix.
22863
22864 * dispextern.h: Add prototype for set_tty_color_mode and
22865 tty_setup_colors.
22866
22867 2002-01-24 Jason Rumney <jasonr@gnu.org>
22868
22869 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
22870 If region left to draw is not what was expected, mark the frame as
22871 garbaged.
22872
22873 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
22874 Combine the regions returned by BeginPaint and GetUpdateRect.
22875
22876 2002-01-23 Jason Rumney <jasonr@gnu.org>
22877
22878 * w32term.c (x_update_window_begin): Only hide caret if
22879 w32_use_visible_system_caret is set.
22880 (x_update_window_end): Only show caret if
22881 w32_use_visible_system_caret is set.
22882 (syms_of_w32term): Handle SystemParametersInfo call failing.
22883
22884 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
22885
22886 2002-01-22 Richard M. Stallman <rms@gnu.org>
22887
22888 * unexelf.c (unexec): Define n so as to cause compilation error
22889 for the code where people have often written n instead of nn.
22890
22891 * .gdbinit (hookpost-run): Defined.
22892
22893 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22894
22895 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
22896
22897 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22898
22899 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
22900 if fullscreen is being set.
22901
22902 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22903
22904 * minibuf.c (Fminibuffer_contents)
22905 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
22906 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
22907
22908 2002-01-21 Richard M. Stallman <rms@gnu.org>
22909
22910 * window.c (check_frame_size): Fix minimum height calculation.
22911
22912 2002-01-20 Ken Raeburn <raeburn@gnu.org>
22913
22914 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
22915 height before comparison.
22916 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
22917
22918 2002-01-20 Jason Rumney <jasonr@gnu.org>
22919
22920 * w32term.c (w32_system_caret_width): Remove.
22921 (w32_use_visible_system_caret): New user flag.
22922 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
22923 Windows reports a screen reader running.
22924 (x_update_window_begin): Hide the system caret.
22925 (x_update_window_end): Show the system caret.
22926 (x_display_and_set_cursor): Don't draw a cursor when
22927 w32_use_visible_system_caret is set. Do not adjust width.
22928
22929 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
22930 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
22931 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
22932 the user requests it. Use system default width when creating.
22933 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
22934
22935 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
22936 New window messages.
22937
22938 2002-01-20 Richard M. Stallman <rms@gnu.org>
22939
22940 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
22941
22942 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22943
22944 * doprnt.c (doprnt1): Fix typos in error call.
22945
22946 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
22947
22948 * unexelf.c (unexec) [__sgi]: Support the .got sections.
22949
22950 2002-01-20 Jason Rumney <jasonr@gnu.org>
22951
22952 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
22953 that Windows returns. If a double check fails, try to guess how
22954 ExtTextOut is going to act.
22955
22956 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
22957 in place of stricmp.
22958 (w32_list_synthesized_fonts): Removed.
22959 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
22960 (struct enumfont_t): New element; list.
22961 (enum_font_cb2): List all style and charset variations of a font.
22962 (Fw32_select_font): New optional argument; include_proportional.
22963 Exclude vertical fonts. Exclude proportional fonts unless
22964 include_proportional is non-nil.
22965 (w32_enable_synthesized_fonts): Change to a boolean.
22966 (Fw32_send_sys_command): Doc fix.
22967
22968 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22969
22970 * dispnew.c (update_frame): Move the variable `tem' to the block
22971 where it is used.
22972
22973 2002-01-19 Jason Rumney <jasonr@gnu.org>
22974
22975 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
22976 call to face-set-after-frame-default.
22977
22978 2002-01-18 Richard M. Stallman <rms@gnu.org>
22979
22980 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
22981 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
22982
22983 2002-01-17 Richard M. Stallman <rms@gnu.org>
22984
22985 * window.c (enlarge_window): When exceeding size of parent,
22986 directly delete all the siblings instead of trying to resize it.
22987
22988 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22989
22990 * term.c (set_tty_color_mode): Remove unused variable `tem'.
22991
22992 2002-01-16 Henrik Enberg <henrik@enberg.org>
22993
22994 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
22995
22996 2002-01-16 Kim F. Storm <storm@cua.dk>
22997
22998 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
22999 is invisible. This can happen if cursor is on top line of a
23000 window, and we switch to a buffer with a header line.
23001
23002 * w32term.c (x_erase_phys_cursor): Ditto.
23003
23004 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23005
23006 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
23007 `dont_resize' only when used.
23008
23009 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
23010
23011 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
23012
23013 * xdisp.c (display_mode_element): When computing charpos, depend
23014 on multibyteness of elt, not the text in field.
23015
23016 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23017
23018 * buffer.c (Fkill_all_local_variables):
23019 Increment `update_mode_lines' only once.
23020
23021 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23022
23023 * lisp.h (adjust_after_replace_noundo)
23024 (Fupdate_coding_systems_internal): Add prototypes.
23025
23026 * sound.c (Fplay_sound): Initialize header_size also for :data case.
23027
23028 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
23029
23030 Support for the --color command-line argument and tty-color-mode
23031 frame parameter:
23032
23033 * term.c (tty_default_color_capabilities, tty_setup_colors)
23034 (set_tty_color_mode): New functions.
23035 (term_init): Call tty_default_color_capabilities.
23036 (Qtty_color_mode_alist): New variable.
23037 (syms_of_term): Intern and staticpro it.
23038
23039 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
23040 frames.
23041 (do_switch_frame): For termcap frames, switch the tty
23042 color mode as specified by the frame's parameters.
23043 (Qtty_color_mode): New variable.
23044 (syms_of_frame): Intern and staticpro it.
23045
23046 * emacs.c (USAGE2): Add the --color option.
23047 (standard_args): Ditto.
23048
23049 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23050
23051 * xterm.h (struct x_output): New members want_fullscreen,
23052 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
23053 y_pixels_outer_diff.
23054 New enum for FULLSCREEN_* constants.
23055 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
23056 is NULL.
23057 (x_fullscreen_adjust): Add prototype.
23058
23059 * emacs.c (USAGE2): Add the new full-screen arguments.
23060 (standard_args): Ditto.
23061
23062 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23063 New variables.
23064 (syms_of_xfns): Intern and staticpro them.
23065 (x_frame_parms) <"fullscreen">: New parameter.
23066 (x_fullscreen_move, x_set_fullscreen): New functions.
23067 (x_set_frame_parameters): Support for Qfullscreen.
23068 (x_real_positions): More accurate computation of the frame position.
23069 (x_figure_window_size): Support full-screen frames.
23070 (Fx_create_frame): Default the fullscreen parameter.
23071
23072 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
23073 (XTread_socket) <Expose>: Call x_check_fullscreen.
23074 <ConfigureNotify>: Don't resize to fullscreen.
23075 Call x_check_fullscreen_move, and set the want_fullscreen member of
23076 output_data.x.
23077
23078 2002-01-13 Jason Rumney <jasonr@gnu.org>
23079
23080 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
23081 for mice with more than 3 buttons.
23082
23083 * w32term.c (parse_button): New parameter xbutton. Callers changed.
23084 (w32_read_socket): Handle new "XBUTTON" messages.
23085
23086 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
23087 (syms_of_w32fns): DEFVAR_BOOL it.
23088 (w32_wnd_proc): Handle new "XBUTTON" messages.
23089
23090 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23091
23092 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
23093
23094 2002-01-13 Andreas Schwab <schwab@suse.de>
23095
23096 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
23097
23098 2002-01-12 Andreas Schwab <schwab@suse.de>
23099
23100 * .gdbinit (xbuffer): Remove address operator since data is now a
23101 pointer.
23102
23103 2002-01-11 Richard M. Stallman <rms@gnu.org>
23104
23105 * insdel.c (adjust_after_replace_noundo): New function.
23106
23107 * coding.c (code_convert_region): Don't copy old text if undo disabled.
23108
23109 2002-01-09 Jason Rumney <jasonr@gnu.org>
23110
23111 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
23112 when checking for multiple frames.
23113
23114 2002-01-08 Richard M. Stallman <rms@gnu.org>
23115
23116 * window.c (delete_window): Rewrite the code for changing the
23117 selected window to handle the case where WINDOW is not a leaf.
23118
23119 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
23120
23121 * process.c (send_process): Set src_multibyte to 1 after the call
23122 top setup_coding_system, not before the call.
23123
23124 2002-01-07 Jason Rumney <jasonr@gnu.org>
23125
23126 * xmenu.c (set_frame_menubar, xmenu_show):
23127 (xdialog_show): Initialize wv->help to Qnil.
23128
23129 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
23130 (w32_dialog_show): Initialize wv->help to Qnil.
23131
23132 2002-01-06 Jason Rumney <jasonr@gnu.org>
23133
23134 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
23135
23136 * w32menu.c (w32_menu_display_help): Revert last change.
23137
23138 * xmenu.c (menu_highlight_callback): Revert last change.
23139
23140 2002-01-06 Andreas Schwab <schwab@suse.de>
23141
23142 * insdel.c (make_gap_larger): Make sure buffer size does not
23143 overflow range of int.
23144
23145 2002-01-05 Jason Rumney <jasonr@gnu.org>
23146
23147 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23148 OVERLAPS_P.
23149
23150 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
23151
23152 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
23153 to the left or to the right of the pointer, put it against
23154 the left screen edge.
23155 (x_frame_parms): Add missing braces around initializer.
23156
23157 * w32term.c (x_setup_relief_colors): Don't compute an image's
23158 background color if it doesn't have a Pixmap.
23159 (notice_overwritten_cursor): Don't depend on
23160 output_cursor and updated_area. Compare pixel coordinates with
23161 window's cursor pixel coordinates.
23162 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23163 Call notice_overwritten_cursor with new arg list.
23164 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23165 unconditionally.
23166 (x_draw_image_relief): Use predefined macro instead of
23167 constant when the value of `tool_bar_button_relief' is negative.
23168
23169 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
23170
23171 2002-01-04 Richard M. Stallman <rms@gnu.org>
23172
23173 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
23174
23175 2002-01-03 Richard M. Stallman <rms@gnu.org>
23176
23177 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
23178 (Fkey_binding): Try the `keymap' property map first.
23179 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
23180 minor mode bindings.
23181
23182 2002-01-03 Kim F. Storm <storm@cua.dk>
23183
23184 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
23185
23186 2002-01-02 Richard M. Stallman <rms@gnu.org>
23187
23188 * keyboard.c (read_key_sequence): Handle the keymap property
23189 before minor mode maps.
23190
23191 * editfns.c (Fformat): Update thissize from field_width
23192 based on the actual width, in the string case.
23193
23194 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23195
23196 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
23197 when used as truth value to prevent gcc warnings.
23198
23199 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
23200 * w32proc.c: Include <config.h>.
23201
23202 2002-01-01 Andreas Schwab <schwab@suse.de>
23203
23204 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
23205 not EMACS_INT, to make them compatible with DEFVAR_INT.
23206 * lisp.h (max_specpdl_size): Adjust declaration.
23207
23208 2002-01-01 Richard M. Stallman <rms@gnu.org>
23209
23210 * print.c (print_object): Test print_escape_nonascii only for
23211 unibyte strings.
23212 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
23213 when outputting to a multibyte buffer.
23214
23215 2001-12-29 Richard M. Stallman <rms@gnu.org>
23216
23217 * print.c (print_object): In multibyte string, use hex escapes.
23218 Use octal only for unibyte strings.
23219 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
23220
23221 * lread.c (read_escape): New arg BYTEREP for reporting whether
23222 escape forces unibyte or multibyte.
23223 (read1): When reading a string, take note of that info.
23224
23225 2001-12-29 Ken Raeburn <raeburn@gnu.org>
23226
23227 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
23228 comparison to test lisp value returned by Fget.
23229
23230 2001-12-29 Richard M. Stallman <rms@gnu.org>
23231
23232 * lisp.h (max_specpdl_size): Add declaration.
23233
23234 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
23235
23236 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
23237 Handle modifier bits. Correct typo in error message.
23238
23239 2001-12-28 Richard M. Stallman <rms@gnu.org>
23240
23241 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
23242 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
23243 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23244 Update calls to Fdefine_abbrev.
23245 (write_abbrev): Update for changed data format.
23246 Don't list "system" abbrevs.
23247 (Fexpand_abbrev): Update use count with new data format.
23248 (describe_abbrev): Update for changed data format.
23249 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
23250
23251 * config.in (HAVE_MBSINIT): Add #undef.
23252
23253 * strftime.c (mbsinit): Define as no-op if not available.
23254
23255 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
23256 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
23257
23258 * keymap.c (Flookup_key): Error message if key has wrong data type.
23259 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
23260 (exclude_key): New variable.
23261
23262 2001-12-28 Gerd Moellmann <gerd@gnu.org>
23263
23264 * xterm.c (x_setup_relief_colors): Don't compute an image's
23265 background color if it doesn't have a Pixmap.
23266
23267 * xterm.c (notice_overwritten_cursor): Don't depend on
23268 output_cursor and updated_area. Compare pixel coordinates with
23269 window's cursor pixel coordinates.
23270 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23271 Call notice_overwritten_cursor with new arg list.
23272 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23273 unconditionally.
23274
23275 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
23276 height of the cursor line to the amount to scroll.
23277
23278 2001-12-27 Richard M. Stallman <rms@gnu.org>
23279
23280 * intervals.c (set_point_both): The position after an invisible,
23281 intangible character is not an acceptable stopping point.
23282
23283 2001-12-27 Ken Raeburn <raeburn@gnu.org>
23284
23285 * window.c (enlarge_window): In new preserve_before code, convert
23286 CURBEG from lisp object to integer before doing arithmetic.
23287
23288 2001-12-27 Richard M. Stallman <rms@gnu.org>
23289
23290 * bytecode.c (Fbyte_code): Undo previous change.
23291
23292 2001-12-26 Kim F. Storm <storm@cua.dk>
23293
23294 * keyboard.c (record_char): Ignore duplicate help-echo events only
23295 separated by mouse-movement. When tracking mouse, only record
23296 first and last mouse-movement event in same window.
23297 Don't record mouse-movement events in keyboard macros.
23298
23299 2001-12-25 Richard M. Stallman <rms@gnu.org>
23300
23301 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
23302 (Fenlarge_window): New arg PRESERVE_BEFORE.
23303
23304 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
23305 instead of Fstring_as_unibyte.
23306
23307 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23308
23309 The following changes remove mocklisp support:
23310
23311 * mocklisp.h, mocklisp.c: Files removed.
23312
23313 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
23314 `Qmocklisp' and `Qmocklisp_arguments'.
23315 Remove prototype of syms_of_mocklisp.
23316
23317 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
23318
23319 * callint.c: Do not include mocklisp.h.
23320 (Fcall_interactively): Do not test for mocklisp case.
23321
23322 * eval.c: Remove variables `Qmocklisp_arguments',
23323 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
23324 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
23325 Do not test for mocklisp case.
23326 (Fwhile): Remove unused variable `tem'.
23327 (syms_of_eval): Remove variable `moclisp-arguments'.
23328
23329 * data.c (wrong_type_argument): Remove mocklisp case.
23330
23331 * doc.c (Fdocumentation): Remove mocklisp case.
23332
23333 * emacs.c (main): Do not call syms_of_mocklisp.
23334
23335 2001-12-21 Richard M. Stallman <rms@gnu.org>
23336
23337 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
23338 to the left or to the right of the pointer, put it against
23339 the left screen edge.
23340
23341 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
23342
23343 * Makefile.in (distclean): Remove .gdbinit if we are building
23344 outside the source tree.
23345
23346 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
23347
23348 * w32.c (emacs_root_dir): New function.
23349
23350 * msdos.c (emacs_root_dir): New function.
23351
23352 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
23353 of the current drive as the fallback for default_directory.
23354
23355 * dired.c (file_name_completion): Run the elements of
23356 completion-ignored-extensions through ENCODE_FILE.
23357
23358 * lisp.h (scmp): Remove prototype, since it's now a static
23359 function private to dired.c.
23360
23361 2001-12-18 Richard M. Stallman <rms@gnu.org>
23362
23363 * dired.c (scmp): Function moved from minibuf.c.
23364 Delete multibyte handling--used only on encoded strings.
23365
23366 * minibuf.c (scmp): Function moved to dired.c.
23367
23368 * fns.c (merge): Add QUIT call.
23369
23370 2001-12-18 Dave Love <fx@gnu.org>
23371
23372 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
23373 language/georgian.el.
23374
23375 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
23376
23377 * Makefile.in (lisp, shortlisp): Synchronize with changes to
23378 lisp/Makefile.in:DONTCOMPILE.
23379
23380 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23381
23382 * xdisp.c (window_box_height): Do not return negative values.
23383 From Gerd Moellmann <gerd@gnu.org>.
23384
23385 * keyboard.c (head_table): Add missing braces around initializer.
23386
23387 * term.c (keys): Likewise.
23388
23389 * xfns.c (x_frame_parms, visual_classes): Likewise.
23390
23391 2001-12-17 Sam Steingold <sds@gnu.org>
23392
23393 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
23394 patch (COMPOSING_P, not COMPOSING).
23395
23396 2001-12-17 Richard M. Stallman <rms@gnu.org>
23397
23398 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
23399
23400 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
23401 before calling decode_coding.
23402
23403 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
23404
23405 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
23406 instead of only for COMPOSITION_DISABLED.
23407
23408 2001-12-16 Richard M. Stallman <rms@gnu.org>
23409
23410 * alloc.c (pure_alloc): After overflow, allocate just a small block.
23411
23412 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
23413
23414 * buffer.h (struct buffer): New field `display_error_modiff'.
23415 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
23416
23417 * window.c (Frecenter): Clear display_error_modiff field.
23418
23419 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
23420 Call redisplay_window, but not if display_error_modiff field says no.
23421 (redisplay_window_error): New function.
23422 (displayed_buffer): New variable.
23423 (redisplay_internal, redisplay_windows): Call the new functions
23424 instead of redisplay_window directly.
23425
23426 2001-12-15 Richard M. Stallman <rms@gnu.org>
23427
23428 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
23429
23430 2001-12-14 Andrew Innes <andrewi@gnu.org>
23431
23432 * makefile.w32-in (EMACSLOADPATH): Define.
23433 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
23434 (bootstrap-temacs): Remove dependency on bootstrap-clean.
23435
23436 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
23437
23438 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
23439 parameter have a numeric value all the time.
23440
23441 * w32fns.c (x_report_frame_params): Likewise.
23442
23443 2001-12-12 Richard M. Stallman <rms@gnu.org>
23444
23445 * fileio.c (Fwrite_region): Doc fix.
23446
23447 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
23448 (redisplay_internal): Call clear_image_cache only for window terminals.
23449
23450 2001-12-12 Gerd Moellmann <gerd@gnu.org>
23451
23452 * xdisp.c (move_it_vertically_backward): Change heuristic
23453 for the case that we didn't move far enough initially.
23454
23455 * window.c (Frecenter): Simplify computation in the case of window
23456 system frames and ARG < 0; use window_box_height.
23457
23458 2001-12-11 Richard M. Stallman <rms@gnu.org>
23459
23460 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
23461 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
23462
23463 2001-12-11 Andrew Innes <andrewi@gnu.org>
23464
23465 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
23466 arg is negative.
23467
23468 2001-12-11 Richard M. Stallman <rms@gnu.org>
23469
23470 * m/hp800.h: Split the __hpux conditional into the parts
23471 that are right for GNU/Linux too and the parts that are not.
23472 Use the former if GNU_LINUX.
23473 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
23474
23475 * s/gnu-linux.h (GNU_LINUX): Defined.
23476
23477 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23478
23479 * macros.c, msdos.c, w16select.c: Change doc-string comments to
23480 `new style' [w/`doc:' keyword].
23481
23482 2001-12-10 Jason Rumney <jasonr@gnu.org>
23483
23484 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
23485 before using.
23486
23487 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23488
23489 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
23490 keyword].
23491
23492 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
23493
23494 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
23495
23496 * s/hpux10.h (srand48): Don't undefine.
23497
23498 2001-12-09 Jason Rumney <jasonr@gnu.org>
23499
23500 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
23501 Add comment to explain where the struct came from.
23502 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
23503 (add_menu_item): Process pop-up menus first to avoid memory leak.
23504 (add_menu_item, w32_menu_display_help): Use `help' field as
23505 Lisp_Object.
23506 (w32_free_submenu_strings): Only free owner-drawn strings.
23507
23508 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23509
23510 * COPYING: Moved back.
23511
23512 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
23513 Add parentheses around && within ||.
23514
23515 * indent.c (compute_motion): Likewise.
23516
23517 * intervals.c (merge_properties_sticky): Likewise.
23518
23519 * coding.c (setup_coding_system, shrink_encoding_region)
23520 (Fdecode_sjis_char): Likewise.
23521
23522 2001-12-07 Andreas Schwab <schwab@suse.de>
23523
23524 * xdisp.c (display_mode_element): Don't read past end of string if
23525 it ends with '%'.
23526
23527 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
23528 can hold.
23529
23530 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
23531 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
23532 type changed to Lisp_Object.
23533 (syms_of_data): DEFVAR_LISP them.
23534
23535 2001-12-07 Richard M. Stallman <rms@gnu.org>
23536
23537 * callproc.c (init_callproc): Set Vdata_directory based on the source
23538 location whenever Emacs was run uninstalled.
23539
23540 2001-12-06 Paul Eggert <eggert@twinsun.com>
23541
23542 * config.in (HAVE_WORKING_VFORK): New #undefs.
23543 * process.c (create_process):
23544 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
23545 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
23546 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
23547 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
23548 * m/intel386.h (HAVE_VFORK): Likewise.
23549 * m/mips-siemens.h (HAVE_VFORK): Likewise.
23550 * m/mips.h (HAVE_VFORK): Likewise.
23551 * s/freebsd.h (vfork): Remove #define.
23552 * s/lynxos.h (HAVE_VFORK): Remove #undef.
23553 * s/usg5-4-2.h: Fix comment about vfork.
23554
23555 2001-12-06 Richard M. Stallman <rms@gnu.org>
23556
23557 * s/hpux10.h (random): Add undef.
23558 (HAVE_RANDOM): Define it just once.
23559
23560 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
23561
23562 * eval.c: Undo last change: the standard syntax is not wanted.
23563
23564 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
23565
23566 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
23567 scroll bars of the frame before deleting the frame itself. If the
23568 frame has a widget, delete the frame with XtDestroyWidget, and do
23569 not call XDestroyWindow before that.
23570
23571 2001-12-06 Kim F. Storm <storm@cua.dk>
23572
23573 * xfns.c (x_report_frame_params): Return actual fringe widths.
23574
23575 * w32fns.c (x_report_frame_params): Return actual fringe widths.
23576
23577 2001-12-05 Andrew Innes <andrewi@gnu.org>
23578
23579 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
23580 excessively large.
23581
23582 * insdel.c (make_gap_larger): New function.
23583 (make_gap_smaller): New function.
23584 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
23585 Call make_gap_smaller if arg is negative.
23586
23587 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
23588
23589 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
23590 Pass a dummy argument when calling interrupt_signal.
23591 (parse_menu_item): Mark disabled items before checking for empty def.
23592 (read_char_minibuf_menu_prompt): Make safety more visible.
23593 (read_key_sequence): Add a `first_unbound' variable.
23594 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
23595 unbound prefix as soon as we can detect it.
23596
23597 * doc.c (Fsnarf_documentation): Add prototype.
23598 (get_doc_string): Handle negative arguments.
23599 (Fdocumentation): Use AREF and ASIZE.
23600 Move the calls to get_doc_string to a single place.
23601 Don't confuse an interactive-spec for a docstring reference.
23602 (Fdocumentation_property): Take advantage of the fact that
23603 get_doc_string now ignores the sign of the docstring position.
23604
23605 * eval.c: Use standard syntax for usage in docstrings.
23606
23607 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23608
23609 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
23610
23611 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23612
23613 * xterm.c (x_draw_image_relief): Use predefined macro instead of
23614 constant when the value of `tool_bar_button_relief' is negative.
23615
23616 2001-12-02 Richard M. Stallman <rms@gnu.org>
23617
23618 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
23619 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
23620
23621 * fileio.c (read_non_regular): Delete Fsignal call.
23622
23623 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
23624
23625 * lisp.h (run_hook_list_with_args): Undo last change.
23626
23627 2001-12-01 Gerd Moellmann <gerd@gnu.org>
23628
23629 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
23630
23631 2001-12-01 Jason Rumney <jasonr@gnu.org>
23632
23633 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
23634
23635 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
23636 [!WM_MOUSELEAVE]: Define.
23637
23638 * w32menu.c (current_popup_menu, get_menu_item_info):
23639 (set_menu_item_info): New vars.
23640 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
23641 (w32_menu_show): Set current_popup_menu.
23642 (add_menu_item): Allocate new strings for owner-drawn menu items
23643 and help strings.
23644 Use owner-draw for disabled menu items again.
23645 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
23646 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
23647
23648 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
23649 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
23650 <WM_EXITMENULOOP>: Free menu strings.
23651 <WM_MOUSELEAVE>: Stop tracking mouse.
23652 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
23653
23654 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
23655 and mouse face.
23656
23657 2001-12-01 Kim F. Storm <storm@cua.dk>
23658
23659 The following changes add left-fringe and right-fringe
23660 frame parameters to adjust fringe widths, or remove one or
23661 both fringes.
23662
23663 * frame.h (struct frame): Remove trunc_area_pixel_width and
23664 trunc_area_cols fields.
23665 (Qleft_fringe, Qright_fringe): Declare.
23666 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
23667
23668 * frame.c (Qleft_fringe, Qright_fringe): New vars.
23669 (syms_of_frame): Initialize them.
23670
23671 * window.c (coordinates_in_window): Handle separate left and right
23672 fringe widths.
23673
23674 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
23675 and fringe_cols fields.
23676 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
23677 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
23678 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
23679 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
23680 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
23681 (x_compute_fringe_widths): Add prototype.
23682
23683 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
23684 fill fringe evenly with small dashes.
23685 (x_draw_fringe_bitmap): Clear background if necessary. Align and
23686 clip the new ZV bitmap to avoid jitter between rows.
23687 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
23688 background. Don't draw fringe bitmaps if fringe width is zero.
23689 (x_compute_fringe_widths): New function.
23690 (x_new_font, x_set_window_size_1): Use it.
23691
23692 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
23693 (x_set_frame_parameters): Process `font' parameter before other
23694 parameters as fringe widths depend on it.
23695 (x_set_fringe_width): New function.
23696 (x_figure_window_size): Use x_compute_fringe_widths.
23697 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
23698 parameters.
23699
23700 * widget.c (set_frame_size): Use x_compute_fringe_widths.
23701 (EmacsFrameSetCharSize): Ditto.
23702
23703 * w32term.h: Merged changes from xterm.h.
23704 * w32term.c: Merged changes from xterm.c.
23705 * w32fns.c: Merged changes from xfns.c.
23706
23707 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23708
23709 * COPYING: Removed.
23710
23711 2001-11-29 Dave Love <fx@gnu.org>
23712
23713 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
23714 extra extra slot.
23715 (detect_coding_mask): Fix call of detect_coding_iso2022.
23716
23717 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23718
23719 * fileio.c (file-name-coding-system)
23720 (default-file-name-coding-system): Doc fix (links to referenced
23721 variables added).
23722
23723 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23724
23725 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
23726 Add dummy uses of gcproN variables.
23727
23728 * category.c (describe_category, describe_category_1)
23729 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
23730 (syms_of_category): Don't defsubr Sdescribe_categories.
23731
23732 2001-11-28 Richard M. Stallman <rms@gnu.org>
23733
23734 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
23735
23736 * Makefile.in (lispdir): New variable, referring to build dir.
23737 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
23738
23739 2001-11-28 Andrew Innes <andrewi@gnu.org>
23740
23741 * w32menu.c (w32_menu_display_help): Actually add the new argument
23742 OWNER.
23743
23744 2001-11-28 Jason Rumney <jasonr@gnu.org>
23745
23746 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
23747 menu items. From David Ponce <dponce@wanadoo.fr>.
23748 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
23749 conditionally.
23750 (w32_menu_display_help): New argument OWNER. Rewritten to store a
23751 help event in the owner frame's keyboard buffer.
23752
23753 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
23754 (Fx_show_tip): Don't subtract last width from row width.
23755
23756 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
23757 (w32_read_socket): Use EQ to compare frames.
23758
23759 2001-11-28 Gerd Moellmann <gerd@gnu.org>
23760
23761 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23762 OVERLAPS_P.
23763
23764 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23765
23766 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
23767 `gcpro3' and `gcpro4'.
23768
23769 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
23770
23771 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
23772
23773 * ccl.c: Use AREF and ASIZE.
23774
23775 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
23776
23777 * lisp.h (run_hook_list_with_args): Remove.
23778 (LIST_END_P): Fix call to wrong_type_argument.
23779 (make_fixnum_or_float): Use EMACS_INT rather than int.
23780
23781 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
23782
23783 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
23784 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
23785
23786 * eval.c: Use AREF and ASIZE.
23787 (Ffetch_bytecode): Add the file name to the error message.
23788
23789 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
23790 which match the end of the file-name.
23791 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
23792 is not a valid env var, but leave it as is instead.
23793
23794 * keymap.c (access_keymap): Handle t bindings like nil bindings.
23795 Make nil bindings in char-tables transparent.
23796 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
23797
23798 2001-11-26 Richard M. Stallman <rms@gnu.org>
23799
23800 * textprop.c (set_text_properties_1): Allow START, END in either order.
23801 Do nothing if range is empty.
23802
23803 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
23804
23805 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
23806 (clean): Not here.
23807
23808 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23809
23810 * textprop.c (set_text_properties_1): Clearly mark that the
23811 interval should not be empty.
23812
23813 * intervals.c (graft_intervals_into_buffer):
23814 Don't call set_text_properties_1 on an empty interval.
23815
23816 2001-11-25 Richard M. Stallman <rms@gnu.org>
23817
23818 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
23819
23820 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
23821 don't lose the data in it.
23822
23823 2001-11-25 Juanma Barranquero <lektu@terra.es>
23824
23825 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
23826
23827 * buffer.c (Fkill_buffer): Likewise.
23828
23829 * print.c (temp_output_buffer_setup): Likewise.
23830
23831 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
23832
23833 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
23834
23835 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
23836
23837 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
23838 Niemitalo <kon@iki.fi>.
23839
23840 2001-11-25 Jason Rumney <jasonr@gnu.org>
23841
23842 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
23843
23844 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
23845 (Fx_show_tip): Block input during frame creation.
23846 (Fx_show_tip, Fx_hide_tip): Enable.
23847
23848 2001-11-24 Richard M. Stallman <rms@gnu.org>
23849
23850 * lread.c (Fload): Detect recursive load error for more than 3
23851 nestings of the same file.
23852 (Vrecursive_load_depth_limit): Variable deleted.
23853 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
23854
23855 2001-11-24 Jason Rumney <jasonr@gnu.org>
23856
23857 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
23858 mouse position if either left or top is not specified.
23859
23860 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
23861 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
23862 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
23863 (my_create_tip_window): Assign tip_window.
23864 (x_create_tip_frame): Use same defaults as X.
23865 (compute_tip_xy): Remove unused variable. Use full screen width.
23866 (Fx_show_tip): Do not double height. Call ShowWindow directly.
23867
23868 * w32term.c (x_after_update_window_line): Doc fix.
23869 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
23870 frames.
23871 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
23872
23873 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
23874 for all Windowed systems.
23875
23876 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
23877
23878 * msdos.c (IT_clear_screen): If the frame's faces are not yet
23879 realized, use the initial screen colors to clear the screen.
23880
23881 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23882
23883 * textprop.c (Fset_text_properties): Remove unused variables
23884 `unchanged', `prev_changed', `s' and `len'.
23885
23886 * search.c (Freplace_match): Remove unused variable `inslen'.
23887
23888 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
23889
23890 2001-11-22 Jason Rumney <jasonr@gnu.org>
23891
23892 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
23893 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
23894 (my_create_tip_window): New function.
23895 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
23896 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
23897
23898 2001-11-20 Jason Rumney <jasonr@gnu.org>
23899
23900 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
23901 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
23902
23903 * w32fns.c (Vw32_system_coding_system): Remove.
23904 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
23905
23906 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
23907
23908 * fileio.c (Fwrite_region): Move choose_write_coding_system to
23909 after build_annotations.
23910
23911 * syntax.c (describe_syntax): Add dummy arg.
23912 (describe_syntax_1): Update call to describe_vector.
23913
23914 * category.c (describe_category): Add dummy arg.
23915 (describe_category_1): Update call to describe_vector.
23916
23917 * keymap.c (Fdescribe_vector): Add `describer' parameter.
23918 (describe_command, describe_translation): Add dummy second param.
23919 (describe_map): Call elt_describer with two arguments.
23920 (describe_vector_princ): Add `fun' parameter.
23921 Call it instead of the hardcoded `princ'.
23922 (describe_vector): Add arg `args'.
23923 Pass it as a new second argument to elt_describer.
23924
23925 * keymap.h (describe_vector): Update prototype.
23926
23927 * frame.c: Don't include keymap.h any more.
23928 (keys_of_frame): Remove.
23929
23930 * lisp.h (keys_of_frame): Remove declaration.
23931
23932 * emacs.c (main): Don't call `keys_of_frame' any more.
23933
23934 2001-11-14 Andreas Schwab <schwab@suse.de>
23935
23936 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
23937 if defined, 0 otherwise.
23938 (MAP_FAILED): Define if not defined and use it to test mmap failure.
23939 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
23940
23941 2001-11-19 Richard M. Stallman <rms@gnu.org>
23942
23943 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
23944
23945 2001-11-18 Jason Rumney <jasonr@gnu.org>
23946
23947 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
23948 (x_draw_bar_cursor): If the background color of the glyph under
23949 the cursor equals the frame's cursor color, use the glyph's
23950 foreground color for drawing the bar cursor.
23951 (x_after_update_window_line): Clear internal border in different
23952 circumstances.
23953 (w32_set_vertical_scroll_bar): Check for width and height > 0.
23954 (w32_draw_relief_rect): Correct relief by 1 pixel.
23955 (x_set_glyph_string_background_width):
23956 Set extends_to_end_of_line_p if the row's fill_line_p is set and
23957 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
23958 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
23959 if cursor_in_non_selected_windows is false.
23960 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
23961 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
23962 Notice if cursor gets overwritten.
23963 (notice_overwritten_cursor): Renamed from
23964 note_overwritten_text_cursor. Rewritten to take glyph widths
23965 into account, and to take X positions as parameters.
23966 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23967 around call to x_draw_glyphs.
23968 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23969 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23970 color to use for image glyph reliefs.
23971 (x_draw_image_relief): Accept zero tool_bar_button_relief.
23972 (glyph_rect): Remove unused variable `area'.
23973
23974 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
23975 some items.
23976 (x_set_internal_border_width): Set frame garbaged when window
23977 doesn't exist yet.
23978 (Fx_create_frame): Accept zero tool_bar_button_relief.
23979 (x_clear_image_1, four_corners_best, image_background)
23980 (image_background_transparent): New functions.
23981 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23982 (gs_format): Add `:background' entry.
23983 (lookup_image): Set IMG's background color if specified.
23984 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23985 when appropriate.
23986 (x_clear_image_1): Reset `background_valid' and
23987 `background_transparent_valid' fields.
23988 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23989 calculating it here. Set IMG's background_transparent field.
23990 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23991 (enum png_keyword_index): Add PNG_BACKGROUND.
23992 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23993 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23994 (enum gif_keyword_index): Add GIF_BACKGROUND.
23995 (enum gs_keyword_index): Add GS_BACKGROUND.
23996 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23997 Pre-calculate image background color where necessary.
23998 (x_create_x_image_and_pixmap, xbm_load, gs_load):
23999 Use display info's n_cbits entry for screen depth.
24000 (Fx_show_tip): Remove unused variables `buffer', `top',
24001 `left', `max_width' and `max_height'.
24002
24003 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
24004
24005 2001-11-18 Gerd Moellmann <gerd@gnu.org>
24006
24007 * puresize.h (BASE_PURESIZE): Increase to 750000.
24008
24009 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24010
24011 * frame.c (Fframe_live_p): Doc fix.
24012
24013 2001-11-18 Richard M. Stallman <rms@gnu.org>
24014
24015 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
24016 (message_dolog_marker3): New static variables hold three markers.
24017 (syms_of_xdisp): Initialize and staticpro them.
24018 (message_dolog): Use message_dolog_marker1..3 instead of
24019 allocating markers each time. Unchain them when done.
24020
24021 2001-11-17 Richard M. Stallman <rms@gnu.org>
24022
24023 * doc.c (Fsnarf_documentation): Doc fix.
24024
24025 2001-11-17 Andreas Schwab <schwab@suse.de>
24026
24027 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
24028
24029 2001-11-17 Richard M. Stallman <rms@gnu.org>
24030
24031 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
24032
24033 2001-11-17 Jason Rumney <jasonr@gnu.org>
24034
24035 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
24036
24037 2001-11-17 Gerd Moellmann <gerd@gnu.org>
24038
24039 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
24040 with invalid position.
24041
24042 2001-11-16 Richard M. Stallman <rms@gnu.org>
24043
24044 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
24045
24046 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
24047 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
24048 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
24049
24050 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
24051
24052 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24053
24054 * fileio.c (build_annotations): Split off the tail.
24055 (build_annotations_2): New fun. Extracted from build_annotations.
24056 (Fwrite_region): Split the call to build_annotations into two
24057 calls to build_annotations and build_annotations_2.
24058
24059 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24060
24061 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
24062 clear_waiting_for_input with argument.
24063
24064 * xterm.h (x_update_cursor): Remove duplicated prototype.
24065
24066 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
24067
24068 * xterm.c (waiting_for_input): Remove unnecessary declaration.
24069
24070 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
24071
24072 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24073
24074 * fileio.c (choose_write_coding_system): New fun, extracted
24075 from Fwrite_region.
24076 (Fwrite_region): Use it.
24077
24078 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
24079 (funcall_lambda, run_hook_with_args): Make static and add prototype.
24080 (ml_apply, find_handler_clause): Add prototype.
24081
24082 2001-11-16 Eli Zaretskii <eliz@gnu.org>
24083
24084 * config.in: Add #undef HAVE_COFF_H.
24085
24086 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
24087 Required for ISC 4.1.
24088
24089 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
24090
24091 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
24092 Andrew Wiseman <a.wiseman@btclick.com>.
24093
24094 2001-11-16 Kim F. Storm <storm@cua.dk>
24095
24096 The following changes are made to clean up the various internal
24097 references to the fringes to actually use the term `fringe' for
24098 them. Previously, they were called `flags areas', `bitmap areas',
24099 `left/right side of windows', or implicitly as `flags' or
24100 `bitmaps':
24101
24102 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
24103 Comments fixed. Use renamed symbols.
24104
24105 * dispnew.c: Comment fix. Use renamed symbols.
24106
24107 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
24108 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
24109 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
24110
24111 * msdos.c: Comment fix.
24112
24113 * w32fns.c: Use renamed symbols.
24114
24115 * w32term.c: Comment fixes. Use renamed symbols.
24116 (fringe_bitmap_type): Renamed from bitmap_type.
24117 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24118 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
24119 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24120
24121 * w32term.h: Comment fixes. Use renamed symbols.
24122 (fringes_extra): Renamed from flags_areas_extra.
24123 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24124 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24125 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24126 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24127 (FRAME_X_LEFT_FRINGE_WIDTH):
24128 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24129 (FRAME_X_RIGHT_FRINGE_WIDTH):
24130 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24131
24132 * widget.c: Use renamed symbols.
24133
24134 * window.c: Comment fixes. Use renamed symbols.
24135 (coordinates-in-window-p): Doc fix.
24136
24137 * xdisp.c: Comment fixes. Use renamed symbols.
24138
24139 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
24140
24141 * xfns.c: Use renamed symbols.
24142
24143 * xterm.c: Comment fixes. Use renamed symbols.
24144 (fringe_bitmap_type): Renamed from bitmap_type.
24145 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24146 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
24147 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24148
24149 * xterm.h: Comment fixes. Use renamed symbols.
24150 (fringes_extra): Renamed from flags_areas_extra.
24151 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24152 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24153 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24154 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24155 (FRAME_X_LEFT_FRINGE_WIDTH):
24156 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24157 (FRAME_X_RIGHT_FRINGE_WIDTH):
24158 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24159
24160 2001-11-15 Jason Rumney <jasonr@gnu.org>
24161
24162 * w32menu.c (add-menu-item): Make help_echo and radio buttons
24163 work for most menu items. From David Ponce
24164 <david.ponce@wanadoo.fr>.
24165
24166 2001-11-15 Gerd Moellmann <gerd@gnu.org>
24167
24168 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
24169 Some x_set_* function expect to be called even if old and new
24170 value are equal.
24171
24172 * xdisp.c (build_desired_tool_bar_string): Accept zero
24173 tool_bar_button_relief.
24174
24175 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
24176
24177 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
24178
24179 * xterm.c (x_draw_bar_cursor): If the background color of the
24180 glyph under the cursor equals the frame's cursor color, use
24181 the glyph's foreground color for drawing the bar cursor.
24182
24183 * dispnew.c (direct_output_forward_char): Fix character/byte
24184 position comparison.
24185
24186 2001-11-15 Miles Bader <miles@gnu.org>
24187
24188 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
24189 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
24190 Update arguments to find_field.
24191 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
24192 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
24193 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
24194 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
24195
24196 2001-11-14 Richard M. Stallman <rms@gnu.org>
24197
24198 * editfns.c (Fpropertize): Allow call with 1 arg.
24199
24200 * dispextern.h (image_background, image_background_transparent):
24201 Conditionalize on HAVE_X_WINDOWS.
24202
24203 2001-11-13 Richard M. Stallman <rms@gnu.org>
24204
24205 * print.c (Fprin1_to_string): Doc fix.
24206
24207 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
24208
24209 * floatfns.c (Fceiling, Ffloor): Doc fixes.
24210
24211 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
24212
24213 * fileio.c (Ffile_accessible_directory_p): Doc fix.
24214
24215 * eval.c (syms_of_eval): Doc fix.
24216
24217 * coding.c (syms_of_coding): Doc fix.
24218
24219 * doc.c (Fsnarf_documentation): Doc fix.
24220
24221 * dispnew.c (syms_of_display): Doc fix.
24222
24223 * category.c (Fget_unused_category): Doc fix.
24224
24225 * buffer.c (syms_of_buffer): Doc fixes.
24226
24227 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
24228
24229 * print.c (prin1, print): Doc fix.
24230
24231 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24232
24233 * fontset.h: Remove declarations of variables
24234 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
24235
24236 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
24237 `Vclip_large_size_font'.
24238
24239 2001-11-13 Jason Rumney <jasonr@gnu.org>
24240
24241 * w32fns.c: Doc fix.
24242
24243 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24244
24245 * xfaces.c (Fface_attributes_as_vector): Doc fix.
24246
24247 * fns.c: Doc fix.
24248
24249 * emacs.c: Doc fix.
24250
24251 * coding.c: Doc fix.
24252
24253 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
24254 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
24255 `new style' [w/`doc:' keyword].
24256
24257 2001-11-12 Richard M. Stallman <rms@gnu.org>
24258
24259 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
24260 LeaveNotify events. Only FocusIn and FocusOut do that now.
24261 (x_display_and_set_cursor): Do display hollow cursors in active
24262 minibuffer windows when they are not selected.
24263
24264 2001-11-12 Jason Rumney <jasonr@gnu.org>
24265
24266 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24267 * w32term.c: Change doc-string comments to `new style'
24268 [w/`doc:' keyword]. Doc fixes.
24269
24270 * w32fns.c: Don't define max.
24271 (Fx_open_connection): Only execute once.
24272
24273 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24274
24275 * ccl.c: Change macros to use do-while block instead of if-else.
24276 Use braces to follow GNU Coding Standards.
24277
24278 2001-11-11 Richard M. Stallman <rms@gnu.org>
24279
24280 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
24281
24282 * lread.c (read_escape): Use end_of_file_error for reporting eof.
24283
24284 * insdel.c (replace_range): Use adjust_markers_for_replace
24285 instead of adjust_markers_for_delete and adjust_markers_for_insert.
24286
24287 * intervals.h (set_text_properties, set_text_properties_1): Declare.
24288
24289 * textprop.c (set_text_properties_1): New subroutine
24290 broken out of set_text_properties.
24291 (set_text_properties): Use set_text_properties_1.
24292
24293 * intervals.c (graft_intervals_into_buffer):
24294 Use set_text_properties_1 to clear out properties.
24295
24296 * search.c (Freplace_match): Use replace_range to insert
24297 and delete. Don't request property inheritance from
24298 surrounding text.
24299
24300 2001-11-10 Jason Rumney <jasonr@gnu.org>
24301
24302 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
24303 vertical fonts. Allow them if face name is explicitly specified.
24304 Do not give up if we find a font that cannot be converted to an xlfd.
24305
24306 2001-11-10 Gerd Moellmann <gerd@gnu.org>
24307
24308 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
24309 instead of malloc/free.
24310
24311 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24312
24313 * xfaces.c (merge_face_vectors): Use braces to follow GNU
24314 Coding Standards.
24315 (Finternal_set_lisp_face_attribute): Likewise.
24316
24317 * buffer.c (Fbury_buffer): Likewise.
24318
24319 * indent.c (current_column_1): Remove unused variable `prev_col'.
24320
24321 * coding.c (encode_coding): Use precomputed value of `src'.
24322 (encode_coding): Remove unused variable `src_end'.
24323 (code_convert_region): Remove unused variables `count'.
24324
24325 2001-11-07 Jason Rumney <jasonr@gnu.org>
24326
24327 * w32term.c (x_display_and_set_cursor): Do not move system caret
24328 if cursor_glyph is NULL.
24329
24330 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24331
24332 * keymap.c (access_keymap): Fix compilation error.
24333
24334 2001-11-07 Miles Bader <miles@gnu.org>
24335
24336 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
24337
24338 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24339
24340 * intervals.c (graft_intervals_into_buffer):
24341 Remove #ifdef'd-out code.
24342 (graft_intervals_into_buffer): Remove unused variable `middle'.
24343
24344 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
24345 code (eval-current-buffer).
24346 Change doc-string comments to `new style' [w/`doc:' keyword].
24347
24348 2001-11-06 Richard M. Stallman <rms@gnu.org>
24349
24350 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
24351
24352 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
24353
24354 * lread.c (read1): Fix behavior with nested backquoting.
24355
24356 * keyboard.c (make_lispy_event): Check integerness and fix
24357 Lisp_Object/int mixup.
24358
24359 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24360
24361 * fns.c (copy_hash_table): Remove unused variable `v'.
24362
24363 * fontset.c (fontset_font_pattern): Remove unused variable
24364 `family_registry'.
24365
24366 * indent.c (current_column_1): Remove unused variable `prev_col'.
24367
24368 2001-11-05 Richard M. Stallman <rms@gnu.org>
24369
24370 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
24371
24372 * buffer.c (Fkill_buffer): Don't delete auto save file
24373 if buffer is modified.
24374
24375 2001-11-05 Andrew Innes <andrewi@gnu.org>
24376
24377 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
24378 CHECK_NUMBER_CDR.
24379
24380 2001-11-05 Richard M. Stallman <rms@gnu.org>
24381
24382 * unexelf.c (unexec): Minor changes; clean up comments.
24383
24384 2001-11-05 Sam Steingold <sds@gnu.org>
24385
24386 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
24387
24388 2001-11-05 Andreas Schwab <schwab@suse.de>
24389
24390 * sound.c (sound_perror): Save errno from being clobbered.
24391
24392 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
24393
24394 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
24395 the program image directly.
24396
24397 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24398
24399 * buffer.h (Fbuffer_local_value): Add prototype.
24400
24401 2001-11-04 Richard M. Stallman <rms@gnu.org>
24402
24403 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
24404 and CHECK_BUFFER.
24405
24406 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
24407 (record_char): Likewise.
24408
24409 * keyboard.c (make_lispy_event): Don't insist a drag event must
24410 move to a different buffer position. Instead, check for moving at
24411 least double_click_fuzz.
24412
24413 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
24414
24415 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
24416
24417 * indent.c (current_column_1, Fmove_to_column): Separate the code
24418 for display-table glyphs from the code for buffer text, to fix
24419 bugs in the former.
24420
24421 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
24422
24423 * buffer.c (Fbuffer_local_value): New function.
24424 (syms_of_buffer): Defsubr it.
24425
24426 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
24427 value of `cursor-in-non-selected-windows'.
24428
24429 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
24430 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
24431 (syms_of_xdisp): Initialize it.
24432
24433 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24434
24435 * xfns.c (Fx_create_frame): Doc fix.
24436
24437 * coding.c: Change doc-string comments to `new style' [w/`doc:'
24438 keyword].
24439
24440 * eval.c (top_level_value, top_level_set): Remove commented and
24441 #ifdef'd-out code.
24442 (Fdefvar): Fix usage in doc-string.
24443
24444 2001-11-03 Richard M. Stallman <rms@gnu.org>
24445
24446 * xfns.c: Include unistd.h, if it exists.
24447
24448 * editfns.c: Move the include of ctype.h after unistd.h.
24449
24450 * gmalloc.c: Test BROKEN_PROTOTYPES.
24451
24452 2001-11-03 Ken Raeburn <raeburn@gnu.org>
24453
24454 * lisp.h (CHECK_STRING_CAR): New macro.
24455 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
24456 treating XCAR and XCDR as lvalues.
24457 (openp): Use CHECK_STRING_CAR.
24458 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
24459
24460 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
24461
24462 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
24463 (SIGMASKTYPE): Define.
24464
24465 * syssignal.h (sigunblock): Don't define if already defined.
24466
24467 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24468
24469 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
24470 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
24471 Fix typos in comments.
24472
24473 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
24474 and #ifdef'd-out code.
24475 Fix and reindent comments.
24476
24477 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
24478
24479 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
24480 argument `i' in macros.
24481
24482 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
24483 `i' in macros.
24484
24485 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
24486 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
24487 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
24488 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
24489 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
24490 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
24491 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
24492 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
24493 in macros.
24494
24495 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
24496 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
24497 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
24498 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
24499 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
24500 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
24501 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
24502 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
24503 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
24504 (remove unused second argument).
24505
24506 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
24507
24508 * syntax.c (describe_syntax): New wrapper.
24509 (Finternal_describe_syntax_value): Rename from describe_syntax.
24510 Don't insert space at front and \n at the end.
24511 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
24512
24513 * regex.c (re_wctype): Try to fix some warnings.
24514 (regcomp, regexec): Don't forget the __restrict.
24515
24516 2001-11-02 Richard M. Stallman <rms@gnu.org>
24517
24518 * textprop.c (Fget_char_property): Doc fix.
24519
24520 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24521
24522 * process.c (Fstart_process): Add usage to doc-string.
24523
24524 * data.c (Fsetq_default): Ditto.
24525
24526 * callint.c (Finteractive): Ditto.
24527
24528 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
24529
24530 * macros.c: Don't include keymap.h any more.
24531
24532 2001-11-01 Richard M. Stallman <rms@gnu.org>
24533
24534 * data.c (Fmake_local_variable): Doc fix.
24535
24536 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
24537 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
24538
24539 * keymap.c (Fdescribe_buffer_bindings): Print character property
24540 bindings along with or instead of the buffer local map.
24541 Make the overriding maps override what they should.
24542
24543 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24544
24545 * window.c (grow_mini_window): Fix typo in comment.
24546
24547 2001-11-01 Gerd Moellmann <gerd@gnu.org>
24548
24549 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
24550 (XTset_vertical_scroll_bar): Likewise.
24551
24552 * xfns.c (x_build_heuristic_mask): Use four_corners_best
24553 instead of IMAGE_BACKGROUND.
24554
24555 * xfns.c (four_corners_best): Reindent.
24556
24557 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
24558 Handle :box so that it is possible to specify sexprs.
24559
24560 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
24561
24562 * s/hpux11.h: New file.
24563
24564 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24565
24566 * emacs.c (USAGE1): Show command line option --no-window-system
24567 instead of --no-windows in usage.
24568 (standard_args): Rename --no-windows to --no-window-system.
24569 (bug_reporting_address): Follow Emacs coding conventions.
24570
24571 * eval.c (Fcommandp): Doc fix.
24572 Change doc-string comments to `new style' [w/`doc:' keyword].
24573
24574 * frame.c (Fframe_live_p): Doc fix.
24575
24576 * buffer.c (selective-display-ellipses): Doc fix.
24577
24578 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24579
24580 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
24581
24582 * xfaces.c (realize_x_face): If C is not a single-byte character,
24583 set the face's colors_copied_bitwise_p instead of the defaulted_p
24584 members which have a different meaning.
24585 (free_face_colors): Do nothing for a face whose colors have been
24586 copied bitwise.
24587
24588 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
24589
24590 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24591
24592 * marker.c, mocklisp.c: Change doc-string comments to `new style'
24593 [w/`doc:' keyword].
24594
24595 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24596
24597 * fns.c (require_unwind): Return Lisp_Object.
24598
24599 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24600
24601 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
24602 (last-input-char): Revert doc-string to be the same as the
24603 doc-string of `last-input-event'.
24604
24605 * xdisp.c: Fix typos in comments.
24606
24607 2001-10-31 Gerd Moellmann <gerd@gnu.org>
24608
24609 * window.c (grow_mini_window): Handle case that the root
24610 window is already smaller than the nominal mininum height.
24611
24612 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
24613
24614 * emacs.c (main): Don't call keys_of_macros any more.
24615
24616 * lisp.h (keys_of_macros): Remove.
24617
24618 * macros.c (keys_of_macros): Remove.
24619
24620 * xfaces.c (Fface_attribute_relative_p): Declare args.
24621
24622 2001-10-30 Jason Rumney <jasonr@gnu.org>
24623
24624 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
24625 (enum_font_cb2): Ignore fonts with vertical orientation.
24626
24627 2001-10-30 Richard M. Stallman <rms@gnu.org>
24628
24629 * keyboard.c (Finput_pending_p): Doc fix.
24630
24631 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24632
24633 * xterm.c (x_after_update_window_line): Don't run the code
24634 clearing in borders for rows whose visible height is 0.
24635
24636 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
24637 resized_p flag is set. If not set, use the much less flickering
24638 method previously used.
24639
24640 * dispnew.c (change_frame_size_1): Set frame's resized_p.
24641
24642 * frame.h (struct frame) <resized_p>: New member.
24643
24644 * lread.c (to_multibyte): Ensure read_buffer is at least twice
24645 as large as the number of bytes to convert.
24646
24647 * lread.c (to_multibyte): New function.
24648 (read1): Use it.
24649
24650 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
24651
24652 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
24653
24654 2001-10-30 Gerd Moellmann <gerd@gnu.org>
24655
24656 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
24657 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
24658 if the row's fill_line_p is set and drawing the last glyph with
24659 DRAW_IMAGE_{RAISED,SUNKEN}.
24660
24661 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
24662
24663 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
24664
24665 * xmenu.c: Include coding.h and charset.h.
24666 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
24667 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
24668 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
24669 Explicitly set wv->help. Use `TRUE' rather than `True'.
24670 (menu_help_callback): Use empty_string.
24671
24672 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
24673 (Fx_popup_dialog): Explicitly init f.
24674 (w32_menu_display_help): Use empty_string.
24675
24676 2001-10-29 Richard M. Stallman <rms@gnu.org>
24677
24678 * fns.c (Frequire): Detect recursive try to require the same
24679 feature 3 or more levels deep, and get error.
24680 (require_unwind): New subroutine.
24681 (require_nesting_list): New variable.
24682 (syms_of_fns): Init and staticpro it.
24683
24684 * print.c (print_object): Clarify indication of insertion type.
24685
24686 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
24687
24688 * coding.c (syms_of_coding): Document that locale-coding-system is
24689 used for decoding input on X.
24690
24691 * window.c (Fscroll_left, Fscroll_right): Doc fix.
24692
24693 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24694
24695 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
24696 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
24697
24698 2001-10-29 Gerd Moellmann <gerd@gnu.org>
24699
24700 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
24701 use NO_CURSOR if cursor_in_non_selected_windows is false.
24702
24703 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
24704 the slant attribute if FRAME is t.
24705
24706 * xfns.c (x_set_internal_border_width): Set frame garbaged
24707 when X window doesn't exist yet.
24708
24709 * xterm.c (x_after_update_window_line): Clear internal border
24710 in different circumstances.
24711
24712 * xterm.c (XTread_socket) <KeyPress>: Don't use
24713 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
24714 <handa@etl.go.jp>.
24715
24716 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
24717
24718 * m/ibms390.h: New file. From Adam Thornton
24719 <athornton@sinenomine.net>.
24720
24721 2001-10-28 Gerd Moellmann <gerd@gnu.org>
24722
24723 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
24724
24725 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
24726 a loop counter.
24727
24728 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24729
24730 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
24731
24732 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
24733 keyword].
24734 Fix typos in comments.
24735
24736 * emacs.c (bug_reporting_address): New function.
24737 Use it when displaying usage message.
24738
24739 * minibuf.c (read_minibuf): Remove unused external declaration of
24740 variable `Qread_only'.
24741
24742 * keymap.c (access_keymap): Remove unused variable `charset'.
24743
24744 2001-10-28 Miles Bader <miles@gnu.org>
24745
24746 * xfaces.c (merge_face_heights): Handle TO being relative as well.
24747 Remove #ifdef'd-out code.
24748 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
24749 (syms_of_xfaces): Initialize them.
24750
24751 2001-10-27 Jason Rumney <jasonr@gnu.org>
24752
24753 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
24754 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
24755 position using the system caret.
24756
24757 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
24758 (w32_system_caret_height, w32_system_caret_x)
24759 (w32_system_caret_y): New variables for tracking system caret.
24760 (w32_initialize): Initialize them.
24761 (x_display_and_set_cursor): Make system caret follow the active cursor.
24762
24763 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
24764 New messages types.
24765
24766 * w32term.c (note_mouse_highlight): Clear old help_echo.
24767
24768 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24769
24770 * xterm.c: Fix typo in a comment.
24771
24772 * emacs.c: Fix typos in comments.
24773 Remove unnecessary spaces.
24774 Change doc-string comments to `new style' [w/`doc:' keyword].
24775 (USAGE2): Fix typos in usage string.
24776
24777 * xterm.c: Fix typo in a comment.
24778
24779 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
24780 emacs.c.
24781
24782 2001-10-27 Gerd Moellmann <gerd@gnu.org>
24783
24784 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
24785 instead of 1/2 line_height in the heuristic for skipping
24786 farther backward when target_y was not reached.
24787
24788 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
24789 Display errno only if non-zero.
24790 (sound_warning): New function.
24791 (vox_configure): Don't treat failing to set sample rate as error.
24792 (various places): Improve error messages.
24793
24794 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
24795
24796 * fileio.c (Faccess_file): Run the argument filename through
24797 Fexpand_file_name, before using it.
24798
24799 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
24800 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
24801
24802 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24803
24804 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
24805
24806 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24807 Fix clearing in the case of scroll bars on the right.
24808
24809 2001-10-26 Juanma Barranquero <lektu@terra.es>
24810
24811 * w32gui.h (XImage): Add a dummy typedef.
24812
24813 2001-10-26 Gerd Moellmann <gerd@gnu.org>
24814
24815 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
24816
24817 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
24818
24819 * frame.c (Fframe_parameter): Fix last change.
24820
24821 * fileio.c: Revert last change (which removed old commented-out
24822 version of expand-file-name). Add a comment that explains why
24823 this old version should not be removed.
24824
24825 2001-10-25 Gerd Moellmann <gerd@gnu.org>
24826
24827 * frame.c (Fframe_parameter): Fix a bug whereby some
24828 ``artificial'' frame parameters, like `minibuffer' were not
24829 obtained by calling Fframe_parameters.
24830
24831 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
24832 cursor differently.
24833
24834 * xdisp.c (move_it_vertically_backward): Compute line height
24835 differently. Add heuristic to try to be more compatible to 20.x.
24836
24837 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
24838
24839 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
24840
24841 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
24842 boolean.
24843
24844 2001-10-25 Miles Bader <miles@gnu.org>
24845
24846 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
24847 BG is a pointer to a structure, not a structure.
24848 (gif_format, png_format): Add missing commas.
24849
24850 2001-10-24 Richard M. Stallman <rms@gnu.org>
24851
24852 * xfaces.c (Fface_attributes_as_vector): New function.
24853 (syms_of_xfaces): Defsubr it.
24854
24855 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24856
24857 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
24858 variable `area'.
24859
24860 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24861
24862 * search.c (scan_newline): Remove unused variable `selective_display'.
24863
24864 2001-10-25 Miles Bader <miles@gnu.org>
24865
24866 * dispextern.h (struct image): Add `background',
24867 `background_valid', and `background_transparent' fields.
24868 (image_background, image_background_transparent): New declarations.
24869 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
24870 * xfns.c (image_background, image_background_transparent)
24871 (four_corners_best): New functions.
24872 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24873 (gs_format): Add `:background' entry.
24874 (lookup_image): Set IMG's background color if specified.
24875 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24876 when appropriate.
24877 (x_clear_image_1): Reset `background_valid' and
24878 `background_transparent_valid' fields.
24879 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24880 calculating it here. Set IMG's background_transparent field.
24881 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24882 (enum png_keyword_index): Add PNG_BACKGROUND.
24883 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24884 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24885 (enum gif_keyword_index): Add GIF_BACKGROUND.
24886 (enum gs_keyword_index): Add GS_BACKGROUND.
24887 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24888 Pre-calculate image background color where necessary.
24889 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24890 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24891 color to use for image glyph reliefs.
24892
24893 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24894
24895 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
24896 in full-width rows.
24897
24898 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
24899 Fix clearing of area not covered by scroll bar.
24900
24901 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24902
24903 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
24904 and `real_start'.
24905 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
24906 (glyph_rect): Remove unused variable `area'.
24907
24908 2001-10-24 Gerd Moellmann <gerd@gnu.org>
24909
24910 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
24911
24912 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
24913 (row_containing_pos): Take additional argument DY.
24914 Treat rows ending in middle of char differently.
24915 (display_line): Handle tabs on window systems differently.
24916
24917 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
24918 with additional argument.
24919
24920 * dispextern.h (row_containing_pos): Adjust prototype.
24921
24922 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
24923 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
24924 (try_window_id, try_window_reusing_current_matrix)
24925 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
24926 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
24927
24928 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24929
24930 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
24931 gnuemacs).
24932 (HAVE_BOXES): Fix typo in comment.
24933 (push_menu_pane): Fix typo in comment.
24934
24935 * xdisp.c (display_prop_string_p): Remove unused local declaration
24936 of `Qwhen'.
24937 (single_display_prop_string_p): Remove unused local declarations
24938 of `Qwhen' and `Qmargin'.
24939 (string_buffer_position): Remove unused variable `around'.
24940 (store_frame_title): Remove unused variable `width'.
24941
24942 * window.c: Don't define max.
24943 (coordinates_in_window): Remove unused variable `uy'.
24944
24945 * widget.c: Don't define max.
24946
24947 * process.c: Don't define max.
24948 (create_process): Remove unused variable `buffer'.
24949
24950 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24951
24952 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
24953
24954 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
24955
24956 * xfaces.c (Finternal_set_lisp_face_attribute)
24957 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
24958 frame is on a windowed display.
24959
24960 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24961
24962 * dispnew.c (sync_window_with_frame_matrix_rows):
24963 Fix handling of windows which aren't full-width, fix handling
24964 of marginal areas.
24965
24966 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24967
24968 2001-10-23 Andreas Schwab <schwab@suse.de>
24969
24970 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
24971 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
24972
24973 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24974
24975 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
24976 REAL_END. Notice if cursor gets overwritten.
24977 (notice_overwritten_cursor): Take X positions as parameters.
24978 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24979 around call to x_draw_glyphs.
24980
24981 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24982
24983 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
24984 instead of C) and usage.
24985
24986 * editfns.c (char-to-string): Fix argument names (use CHAR instead
24987 of C) and usage.
24988
24989 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
24990 `left', `max_width' and `max_height'.
24991
24992 2001-10-23 Gerd Moellmann <gerd@gnu.org>
24993
24994 * xdisp.c (display_line): For a tab continued to the next line,
24995 set row's ends_in_middle_of_char_p.
24996
24997 2001-10-22 Gerd Moellmann <gerd@gnu.org>
24998
24999 * xdisp.c (display_line): Fix computation of continuation lines
25000 width for TABs.
25001
25002 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25003
25004 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
25005 `Qlaplace'.
25006
25007 * fileio.c: Remove unused code.
25008
25009 2001-10-22 Miles Bader <miles@gnu.org>
25010
25011 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
25012 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
25013 Remove `DOC_STRINGS_IN_COMMENTS' cases.
25014
25015 2001-10-21 Jason Rumney <jasonr@gnu.org>
25016
25017 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
25018
25019 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
25020
25021 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
25022 (Finsert_string): Avoid the multi-line string literals warning.
25023
25024 2001-10-22 Miles Bader <miles@gnu.org>
25025
25026 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
25027 (Fdocumentation): Don't use it.
25028 (syms_of_doc): Don't initialize it.
25029
25030 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
25031 * print.c (Fwith_output_to_temp_buffer): Likewise.
25032 * window.c (Fsave_window_excursion): Likewise.
25033 * editfns.c (Fsave_excursion, Fsave_current_buffer)
25034 (Fsave_restriction): Likewise.
25035 * eval.c (Frun_hooks, Frun_hook_with_args)
25036 (Frun_hook_with_args_until_failure)
25037 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
25038 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
25039 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
25040 (Funwind_protect, Fcondition_case): Likewise.
25041 * coding.c (Ffind_operation_coding_system): Likewise.
25042 * keyboard.c (Ftrack_mouse): Likewise.
25043
25044 2001-10-21 Miles Bader <miles@gnu.org>
25045
25046 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
25047 (Fmake_hash_table): Add usage: string to doc string.
25048 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
25049 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
25050 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
25051 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
25052 (Fml_prefix_argument_loop): Likewise.
25053
25054 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25055
25056 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
25057
25058 * sysdep.c (init_sys_modes): Change doc-string comments to `new
25059 style' [w/`doc:' keyword].
25060
25061 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
25062 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
25063 comments to `new style' [w/`doc:' keyword].
25064
25065 2001-10-21 Jason Rumney <jasonr@gnu.org>
25066
25067 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
25068
25069 * w32term.c (remember_mouse_glyph): New function.
25070 (w32_mouse_position): Use it.
25071 (note_mouse_movement): If the mouse moved off the glyph, remember
25072 its new position.
25073
25074 * w32term.h (struct w32_output): Correct spelling of x_compatible.
25075 (w32_display_info): Add mouse_face_overlay.
25076
25077 * w32term.c (notice_overwritten_cursor): Renamed from
25078 note_overwritten_text_cursor. Rewritten to take glyph widths into
25079 account.
25080 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
25081 (fast_find_string_pos): New function.
25082 (fast_find_position): Return the correct vpos. Add parameter
25083 STOP. In the final row, stop before glyphs having STOP as object.
25084 Don't consider glyphs that are not from a buffer.
25085 (fast_find_position) [0]: Add a presumably more correct version
25086 for after 21.1.
25087 (expose_window_tree, expose_frame): Don't compute intersections here.
25088 (expose_window): Do it here instead.
25089 (expose_window_tree, expose_window, expose_line): Return 1 when
25090 overwriting mouse-face.
25091 (expose_window): If W is the window currently being updated, mark
25092 the frame garbaged.
25093 (expose_frame): If mouse-face was overwritten, redo it.
25094 (x_use_underline_position_properties): New variable.
25095 (syms_of_xterm): DEFVAR_BOOL it.
25096 (x_draw_glyph_string): Add comment to use it in future.
25097 (x_draw_glyph_string): Restore clipping after drawing box.
25098 Fix a computation of the underline position.
25099 (w32_get_glyph_string_clip_rect): Minor cleanup.
25100 (x_fill_stretch_glyph_string): Remove an assertion.
25101 (x_produce_glyphs): Don't convert multibyte characters
25102 to unibyte characters in unibyte buffers.
25103 (cursor_in_mouse_face_p): New function.
25104 (x_draw_stretch_glyph_string): Use it to choose a different GC
25105 when drawing a cursor within highlighted text. Don't draw
25106 background again if it has already been drawn.
25107 (x_draw_glyph_string_box): Don't draw a full-width
25108 box just because the glyph row's full_width_p flag is set.
25109 (x_draw_glyphs): Fix computation of rightmost x for
25110 full-width rows.
25111 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
25112 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
25113 change bottom shadow accordingly. Some cleanup.
25114 (x_update_window_end): Handle overwritten mouse face
25115 also for tool bar windows.
25116 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
25117 DRAW is DRAW_IMAGE_RAISED.
25118 (clear_mouse_face): Return 1 if text with mouse face was
25119 actually redrawn. Make the function static.
25120 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
25121 optimize away highlighting if we pass over that same overlay again.
25122 (note_mouse_highlight): Call mouse_face_overlay_overlaps
25123 to detect a case where we have to highlight a different region
25124 despite not having left the currently highlighted region.
25125 Set mouse_face_overlay in the x_display_info. Avoid changing the
25126 mouse pointer shape when show_mouse_face has already done it, or
25127 there is no need. Handle mouse-face and help-echo in strings.
25128 (glyph_rect): New function.
25129 (w32_mouse_position): Use it to raise the threshold for mouse
25130 movement event generation.
25131 (w32_initialize_display_info): Initialize the x_display_info's
25132 mouse_face_overlay.
25133 (w32_set_vertical_scroll_bar): Don't clear a zero height
25134 or width area.
25135 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
25136 a widget to zero height.
25137
25138 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
25139 Protect unibyte strings created by replacing their multibyte
25140 equivalents in menu_items.
25141 (w32_menu_show): Don't overwrite an item's name with its key
25142 description in case the description is a multibyte string.
25143 (single_submenu): Some cleanup.
25144
25145 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
25146 (postprocess_image): New function.
25147 (lookup_image): Call it for all image types except PostScript.
25148 (x_kill_gs_process): Call postprocess_image.
25149 (tiff_error_handler, tiff_warning_handler): New functions.
25150 (tiff_load): Install them as handlers.
25151 (x_kill_gs_process): Recognize if someone has cleared the image
25152 cache under us.
25153 (valid_image_p): Protect better against invalid image
25154 specifications. Previous code could signal an error.
25155 (Fx_hide_tip, Fshow_tip): Doc fix.
25156 (Fv_max_tooltip_size): New variable.
25157 (syns_of_xfns): DEFVAR_LISP it.
25158 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
25159 window buffer to *tip* right after creating the frame. Set frame's
25160 window_width. Use a maximum tooltip size specified by
25161 Vx_max_tooltip_size, if that has valid contents.
25162 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
25163 Make sure the tooltip is completely visible.
25164 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
25165 (Fx_create_frame): Adjust the frame's height for presence
25166 of the tool bar before calling x_figure_window_size.
25167 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
25168 when the window gets smaller.
25169 (x_set_foreground_color): Set frame's cursor_pixel.
25170 (x_set_foreground_color, x_set_background_color): Cleaned up.
25171 (x_set_font): Handle case of x_new_fontset returning the same name
25172 as before, although there was a change in fontsets.
25173
25174 2001-10-21 Miles Bader <miles@gnu.org>
25175
25176 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
25177 (Flogxor): Add usage: string to doc string.
25178 * charset.c (Fstring): Likewise.
25179 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
25180 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
25181
25182 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25183
25184 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
25185
25186 * alloc.c: Reindent DEFUNs with doc: keywords.
25187
25188 * abbrev.c (Finsert_abbrev_table_description): Reindent.
25189
25190 * frame.c: Change doc-string comments to `new style' [w/`doc:'
25191 keyword].
25192
25193 See ChangeLog.9 for earlier changes.
25194
25195 ;; Local Variables:
25196 ;; coding: iso-2022-7bit
25197 ;; End:
25198
25199 Copyright (C) 2001, 2002, 2003, 2004, 2005,
25200 2006 Free Software Foundation, Inc.
25201 Copying and distribution of this file, with or without modification,
25202 are permitted provided the copyright notice and this notice are preserved.
25203
25204 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4