(main): If batch mode, set Vundo_outer_limit to nil.
[bpt/emacs.git] / src / ChangeLog
1 2004-12-22 Richard M. Stallman <rms@gnu.org>
2
3 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
4
5 * lisp.h (Vundo_outer_limit): Fix decl.
6
7 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
8 Uses changed.
9 (syms_of_undo): Initialize appropriately.
10 (truncate_undo_list): If it's nil, there's no limit.
11
12 2004-12-22 Kenichi Handa <handa@m17n.org>
13
14 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
15
16 2004-12-21 Richard M. Stallman <rms@gnu.org>
17
18 * eval.c (unwind_to_catch): Clear immediate_quit.
19
20 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
21 specially as `\ ' and `\-'.
22
23 * keyboard.c (kbd_buffer_store_event_hold):
24 In the code for while-no-input, handle immediate_quit.
25
26 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
27 Call that at the very start.
28 (undo_limit, undo_strong_limit, undo_outer_limit): Moved to undo.c.
29 (syms_of_alloc): Don't define undo-limit,
30 undo-strong-limit and undo-outer-limit here.
31
32 * undo.c (truncate_undo_list): Return void.
33 Take just one argument, the buffer.
34 Make it current, and inhibit recursive GC.
35 Access and update the undo list directly; return void.
36 Refer to the undo...limit variables directly.
37 Test undo_outer_limit only after counting the whole current command.
38 When it's exceeded, call the function in undo-outer-limit-function.
39 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
40 (Vundo_outer_limit_function): New variable.
41 (syms_of_undo): Define undo-limit, undo-strong-limit
42 and undo-outer-limit here, and undo-outer-limit-function.
43 Doc fixes.
44
45 * lisp.h (truncate_undo_list): Update decl.
46
47 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
48
49 * fileio.c (Fread_file_name): Delete duplicates in
50 file-name-history when history_delete_duplicates is true.
51
52 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
53
54 * macterm.c (mac_do_list_fonts): Fix memory leak
55
56 2004-12-20 Richard M. Stallman <rms@gnu.org>
57
58 * regex.c (re_match_2_internal) <symend, wordend>:
59 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
60
61 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
62
63 * macterm.c (endif, x_font_name_to_mac_font_name): Use
64 maccentraleurroman instead of maccentraleuropean
65 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
66 quickly finding a specific font without needing regexps.
67
68 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
69
70 * syssignal.h: Declare main_thread.
71 (SIGNAL_THREAD_CHECK): New macro.
72
73 * keyboard.c (input_available_signal): Move thread checking code
74 to macro SIGNAL_THREAD_CHECK and call that macro.
75 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
76
77 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
78
79 * emacs.c: Define main_thread.
80 (main): Initialize main_thread.
81 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
82 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
83
84 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
85
86 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
87
88 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
89
90 * process.c (send_process_trap, sigchld_handler): Call
91 SIGNAL_THREAD_CHECK.
92
93 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
94
95 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
96
97 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
98 returning when xg_ignore_gtk_scrollbar is true.
99
100 2004-12-14 Kim F. Storm <storm@cua.dk>
101
102 * keyboard.c (read_char): Save and restore echo_string when
103 handling input method.
104
105 2004-12-13 Richard M. Stallman <rms@gnu.org>
106
107 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
108
109 * keyboard.c (Vthrow_on_input): New variable.
110 (syms_of_keyboard): Defvar and initialize it.
111 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
112
113 * lisp.h (QUIT): Check for Vthrow_on_input.
114 (Vthrow_on_input): Declare it.
115
116 2004-12-13 Kim F. Storm <storm@cua.dk>
117
118 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
119 vector.
120
121 2004-12-12 Richard M. Stallman <rms@gnu.org>
122
123 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
124
125 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
126 (Ftry_completion): Really use outer `zero'; eliminate inner one.
127
128 2004-12-12 Kenichi Handa <handa@m17n.org>
129
130 * term.c (encode_terminal_code): Fix previous change.
131
132 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
133
134 * keyboard.c (handle_async_input): Remove pthread mutex handling.
135 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
136
137 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
138 in macro arguments.
139
140 * minibuf.c (Ftry_completion, Fall_completions): Don't use
141 XFASTINT blindly.
142
143 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
144
145 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
146
147 * w32term.c (x_calc_absolute_position): Remove calculation of
148 difference between inner and outer window. Don't subtract difference
149 for left and top calculations.
150
151 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
152 for left and top calculations. Remove call to x_real_positions.
153 [Bug report by Drew Adams in November]
154 (x_check_expected_move): Do not set change_gravity to 1 when calling
155 x_set_offset.
156
157 2004-12-08 Richard M. Stallman <rms@gnu.org>
158
159 * xdisp.c (get_next_display_element): Use `escape-glyph' for
160 control chars and escaped octal codes.
161 (Qescape_glyph): New variable.
162 (syms_of_xdisp): Initialize it.
163 (escape_glyph_face): New variable.
164 (redisplay_window): Initialize it.
165
166 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
167
168 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
169 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
170
171 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
172
173 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
174 reset_malloc_hooks.
175
176 * keyboard.c (handle_async_input, input_available_signal):
177 Add ! defined (SYSTEM_MALLOC) around thread code.
178
179 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
180
181 2004-12-07 Stefan <monnier@iro.umontreal.ca>
182
183 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
184
185 * config.in: Regenerate.
186
187 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
188
189 * xmenu.c (Fx_popup_menu): Correct documentation about position.
190 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
191 if not given by a mouse click to correspond with x-popup-menu
192 documentation.
193
194 * config.in: Regenerate.
195
196 * gtkutil.c: Include signal.h and syssignal.h.
197 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
198
199 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
200 new variables main_thread and alloc_mutex,
201 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
202 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
203 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
204 (UN)BLOCK_INPUT.
205 (emacs_blocked_free, emacs_blocked_malloc)
206 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
207 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
208 (reset_malloc_hooks): New function.
209
210 * lisp.h: Declare reset_malloc_hooks.
211
212 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
213
214 * keyboard.c: Conditionally include pthread.h
215 (handle_async_input, input_available_signalt): If not in the main
216 thread, block signal, send signal to main thread and return.
217
218 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
219 Set current folder in file chooser if default_filename is a directory.
220
221 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
222
223 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
224 Remove redundant correctness checks.
225 (regex_compile): Fix up error codes for \{..\} expressions.
226
227 2004-12-05 Richard M. Stallman <rms@gnu.org>
228
229 * regex.c (regex_compile): Fix end-of-pattern case for space.
230
231 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
232
233 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
234 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
235 crashes with invalid characters.
236 * macmenu.c (add_menu_item): Use it.
237 * image.c (image_load_quartz2d): Likewise.
238 * macfns.c (x_set_name, x_set_title): Likewise.
239 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
240 creating them each time for labels.
241
242 2004-12-02 Richard M. Stallman <rms@gnu.org>
243
244 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
245 don't use it here.
246
247 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
248 (interactive_p): Skip Scalled_interactively_p frames
249 like Sinteractive_p frames.
250 (unwind_to_catch): Clear handling_signal.
251
252 * data.c (Fmake_variable_buffer_local): Doc fix.
253 (Fmake_local_variable): Doc fix.
254
255 * insdel.c (insert_from_string_before_markers)
256 (insert_from_string): Don't modify buffer on empty insertion.
257
258 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
259
260 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
261
262 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
263 menu text as UTF8 fails.
264
265 2004-12-01 Kim F. Storm <storm@cua.dk>
266
267 * alloc.c: Add commentary for last change.
268 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
269 sizeof(size_t) != 4.
270 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
271 Use them. Also clear header and trailer of freed memory.
272 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
273 (string_overrun_cookie): Rename from string_overrun_pattern.
274 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
275
276 2004-12-01 Andreas Schwab <schwab@suse.de>
277
278 * lisp.h: Declare string_to_multibyte.
279
280 2004-12-01 Kenichi Handa <handa@m17n.org>
281
282 * w32console.c (w32con_write_glyphs): Decide coding here.
283 Adjusted for the change of encode_terminal_code.
284
285 * term.c (encode_terminal_code): Don't make it "static".
286
287 2004-11-30 Kenichi Handa <handa@m17n.org>
288
289 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
290 (encode_terminal_code): Argument changed. Encode all
291 characters at once, and return a pointer to the result of encoding.
292 (write_glyphs): Decide coding here. Adjusted for the above change.
293 (insert_glyphs): Likewise.
294 (term_init): Initialize encode_terminal_bufsize to 0.
295
296 * coding.c (Vcode_conversion_workbuf_name): New variable.
297 (syms_of_coding): Initialize and staticpro it.
298 (set_conversion_work_buffer): New function.
299 (run_pre_post_conversion_on_str): Use it.
300 (run_pre_write_conversin_on_c_str): New function.
301
302 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
303
304 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
305
306 * keyboard.c: Don't undef SIGIO
307 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
308 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
309 (macfns.o): Don't depend on ccl.h.
310 * macfns.c (mac_frame_parm_handlers): Set handlers for
311 Qleft_fringe and Qright_fringe.
312 * macterm.c (mac_fill_rectangle_to_pixmap)
313 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
314 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
315 Put in #if 0.
316 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
317 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
318 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
319 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
320 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
321 XDrawImageString. Always draw background and foreground separately.
322 (x_draw_image_foreground): Use clipping instead of computing the
323 intersection rectangle.
324 (x_draw_image_glyph_string): Don't draw an image with mask to a
325 pixmap.
326 (x_redisplay_interface): Set flush_display_optional member to 0.
327 (XTread_socket): Correctly reset the TEConverter
328 object.
329
330 2004-11-30 Kim F. Storm <storm@cua.dk>
331
332 * lisp.h: New defines to enable buffer overrun checking.
333 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
334 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
335
336 * alloc.c: Add more checks for buffer overruns.
337 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
338 xmalloc_overrun_check_trailer, overrun_check_malloc)
339 overrun_check_realloc, overrun_check_free): Add.
340 (GC_STRING_EXTRA, string_overrun_pattern): Add.
341 (check_sblock, allocate_string_data, compact_small_strings):
342 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
343 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
344 (check_string_free_list): Add.
345 (allocate_string, sweep_strings): Call check_string_free_list.
346
347 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
348 XMALLOC_OVERRUN_CHECK to avoid crash during load.
349
350 2004-11-29 Kim F. Storm <storm@cua.dk>
351
352 * fns.c (concat): Use SAFE_ALLOCA.
353
354 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
355
356 * sysdep.c (emacs_write): Don't use QUIT.
357
358 2004-11-29 Kenichi Handa <handa@m17n.org>
359
360 * buffer.c (init_buffer): Set current_buffer->directory to a
361 multibyte string made by string_to_multibyte.
362
363 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
364
365 2004-11-27 Andreas Schwab <schwab@suse.de>
366
367 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
368
369 * s/gnu-linux.h: Enable no-op gcpros on ia64.
370 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
371
372 * filelock.c (lock_file_1): Call get_boot_time early.
373 Increase buffer size.
374
375 2004-11-27 Eli Zaretskii <eliz@gnu.org>
376
377 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
378 is not defined.
379
380 2004-11-27 Kim F. Storm <storm@cua.dk>
381
382 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
383 marker out of doc string.
384
385 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
386
387 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
388 which was not mentioned in the log.
389
390 2004-11-26 Kim F. Storm <storm@cua.dk>
391
392 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
393 angle bitmaps at top/bottom line.
394
395 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
396 set it when it->method is set to next_element_from_display_vector.
397 (setup_for_ellipsis): Add LEN argument. Callers changed.
398 Set it->saved_face_id.
399 (get_next_display_element): Use loop instead of recursion.
400 Set it->saved_face_id. Combine duplicate code for ctr chars.
401 (next_element_from_display_vector): Do not set it->saved_face_id.
402 (next_element_from_ellipsis): Use setup_for_ellipsis.
403
404 2004-11-26 Eli Zaretskii <eliz@gnu.org>
405
406 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
407 prevent compiler warnings.
408
409 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
410
411 * keyboard.c (command_loop_1): Print a message describing the key
412 the user just pressed when this key has no binding.
413
414 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
415 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
416
417 * lread.c (readchar): Check QUIT when `getc' is interrupted.
418
419 2004-11-24 Richard M. Stallman <rms@gnu.org>
420
421 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
422
423 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
424
425 2004-11-24 Kim F. Storm <storm@cua.dk>
426
427 * xdisp.c (move_it_in_display_line_to, display_line):
428 Restore saved_face_id also when truncate-lines or hscrolled.
429
430 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
431
432 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
433 x-use-old-gtk-file-dialog.
434
435 * xfns.c: Define x_use_old_gtk_file_dialog.
436 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
437 outside ifdef USE_GTK.
438
439 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
440
441 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
442 Don't use XFASTINT blindly.
443
444 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
445
446 * indent.c (skip_invisible): Avoid non-idempotent side-effects
447 in macro arguments.
448
449 * keymap.c (Flookup_key): Check INTEGERP before XINT.
450
451 * lread.c (oblookup): Don't use XFASTINT blindly.
452
453 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
454 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
455
456 2004-11-23 Kim F. Storm <storm@cua.dk>
457
458 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
459 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
460
461 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
462 signal_p is zero and face name is unknown.
463 (Fx_list_fonts): Don't signal error in lookup_named_face.
464 (Fface_font): Signal error in lookup_named_face.
465 (ascii_face_of_lisp_face): Likewise.
466
467 * dispextern.h (lookup_named_face): Fix prototype.
468
469 * xdisp.c (handle_single_display_prop): Don't signal error in
470 lookup_named_face for unknown fringe face name.
471 (highlight_trailing_whitespace): Don't signal error in
472 lookup_named_face if trailing-whitespace face unknown.
473 (calc_line_height_property): Don't signal error in
474 lookup_named_face if specified face name is unknown.
475
476 * fringe.c (update_window_fringes): Show top row indicator if
477 window has header-line. Don't show arrow at bob and eob
478 if the boundary indicators are not used.
479 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
480
481 * window.c (set_window_buffer): Clear display_error_modiff.
482
483 2004-11-22 Kim F. Storm <storm@cua.dk>
484
485 * fringe.c (update_window_fringes): Provide sensible fall-back
486 value for non-nil indicate-buffer-boundaries setting.
487
488 2004-11-22 Markus Rost <rost@ias.edu>
489
490 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
491
492 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
493
494 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
495
496 2004-11-21 Kim F. Storm <storm@cua.dk>
497
498 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
499
500 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
501 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
502
503 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
504 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
505
506 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
507 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
508
509 * xdisp.c (move_it_in_display_line_to, display_line):
510 Restore saved_face_id if overflow-newline-into-fringe is enabled and
511 line is continued before or in middle of element from display vector.
512
513 * indent.c (Fvertical_motion): Fix last change. Use another
514 method to detect if iterator moved too far ahead after reseat.
515
516 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
517 expand matrix width for overflow in zero-width area.
518 (append_glyph, append_composite_glyph, produce_image_glyph)
519 (append_stretch_glyph): Use it to avoid loop in redisplay.
520 (note_mode_line_or_margin_highlight): Don't let help-echo from
521 string override help-echo from image map.
522
523 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
524
525 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
526 * callint.c (Fcall_interactively): Ditto.
527
528 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
529
530 * minibuf.c (Fminibuffer_complete_and_exit):
531 Fixup the case of the completed value, for case-indep completion.
532
533 2004-11-20 Richard M. Stallman <rms@gnu.org>
534
535 * lisp.h (Fread_from_minibuffer): Add arg in decl.
536
537 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
538 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
539
540 * search.c (Vsearch_spaces_regexp):
541 Rename from Vsearch_whitespace_regexp. All uses changed.
542
543 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
544
545 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
546
547 2004-11-19 Richard M. Stallman <rms@gnu.org>
548
549 * search.c (Vsearch_whitespace_regexp): New variable.
550 (syms_of_search): Defvar it.
551 (compile_pattern_1): Call re_set_whitespace_regexp with it.
552 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
553 is non-nil.
554 (struct regexp_cache): New element whitespace_regexp.
555 (syms_of_search): Initialize whitespace_regexp elements.
556 (compile_pattern): Compare whitespace_regexp elements.
557 (compile_pattern_1): Set whitespace_regexp elements.
558
559 * regex.c (regex_compile): Substitute whitespace_regexp
560 for spaces, if it is nonzero.
561 (whitespace_regexp): New variable.
562 (re_set_whitespace_regexp): New function.
563
564 2004-11-19 Kim F. Storm <storm@cua.dk>
565
566 * indent.c (Fvertical_motion): Fix last change.
567
568 2004-11-18 Kim F. Storm <storm@cua.dk>
569
570 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
571 Instead, move back again if reseating moves too far ahead.
572
573 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
574
575 * xdisp.c (message3): Call clear_message.
576
577 2004-11-17 Kim F. Storm <storm@cua.dk>
578
579 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
580
581 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
582
583 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
584
585 * xmenu.c (x_menu_in_use): Remove.
586 (x_menu_set_in_use): Also set popup_activated_flag.
587
588 * xfns.c (Fx_file_dialog): Call popup_activated instead of
589 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
590
591 * xterm.h: (x_menu_in_use): Remove.
592
593 2004-11-16 Richard M. Stallman <rms@gnu.org>
594
595 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
596 Use map-keymap-internal to implement that.
597
598 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
599
600 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
601
602 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
603 a window before using XWINDOW.
604
605 * window.c (make_window, Fselect_window, make_dummy_parent)
606 (save_window_save):
607 * frame.c (make_frame):
608 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
609
610 * lisp.h (NILP): Use EQ rather than XFASTINT.
611
612 2004-11-16 Kim F. Storm <storm@cua.dk>
613
614 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
615
616 * indent.c (Fvertical_motion): Fix last change. Only reseat when
617 moving backwards.
618
619 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
620
621 * dispextern.h: Extern reseat_at_previous_visible_line_start.
622
623 2004-11-16 Kenichi Handa <handa@m17n.org>
624
625 * xdisp.c (display_mode_element): Fix previous change (calculate
626 end position of substring to display correctly).
627
628 2004-11-16 Kim F. Storm <storm@cua.dk>
629
630 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
631 Reported by Andrew M. Scott.
632
633 2004-11-15 Kim F. Storm <storm@cua.dk>
634
635 * fns.c (Fsafe_plist_get): New defun.
636 (syms_of_fns): Defsubr it.
637
638 * lisp.h (Fsafe_plist_get): Add EXFUN.
639
640 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
641 Use Fsafe_plist_get.
642 (note_mode_line_or_margin_highlight, note_mouse_highlight):
643 Fix image map element parsing. Use Fsafe_plist_get.
644
645 2004-11-15 Richard M. Stallman <rms@gnu.org>
646
647 * xdisp.c (get_next_display_element): Fix previous change.
648
649 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
650
651 * window.c (shrink_windows): Handle special case of one window left
652 when trying to shrink the final reminder. Grow windows if
653 total_removed is less than total_shrink.
654
655 * xmenu.c (pop_down_menu): Remove global variable current_menu,
656 extract pointer from arg with XSAVE_VALUE.
657 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
658 Construct arg to record_unwind_protect with make_save_value.
659
660 2004-11-13 Richard M. Stallman <rms@gnu.org>
661
662 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
663 (get_next_display_element): Fix previous change to apply only to \n.
664
665 * indent.c (Fvertical_motion): Scan to PT from start of line to
666 make iterator consistent.
667
668 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
669
670 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
671
672 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
673
674 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
675 Record unwind with clean_up_file_dialog.
676
677 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
678 Declare.
679
680 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
681
682 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
683
684 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
685 (xg_file_sel_destroy): Remove.
686 (xg_file_response_cb, pop_down_file_dialog)
687 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
688 New functions.
689 (xg_get_file_with_chooser, xg_get_file_with_selection):
690 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
691 Move common code to xg_get_file_name. Return widget created.
692 (xg_get_file_name): Set name, transient for, modal and destroy
693 with parent here. Connect response signal to xg_file_response_cb,
694 connect delete-event to gtk_true. Record pop_down_file_dialog
695 for unwind. Do event loop and call x_menu_wait_for_event in loop.
696 (xg_create_widget): Make dialogs modal.
697
698 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
699 Lisp_Object.
700 (popup_get_selection): Move unwind protect ...
701 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
702 Move destroy of widget to pop_down_menu.
703 (popup_widget_loop): Move unwind protect ...
704 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
705 Move destroy of widget to pop_down_menu.
706 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
707 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
708 x_mouse_leave and grabbed = 0 to pop_down_menu.
709
710 2004-11-13 Kim F. Storm <storm@cua.dk>
711
712 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
713 (syms_of_xdisp): DEFVAR_BOOL it.
714 (make_cursor_line_fully_visible, try_cursor_movement)
715 (try_window_id): Use it.
716
717 2004-11-12 Kim F. Storm <storm@cua.dk>
718
719 * dispextern.h (struct glyph_row): New member extra_line_spacing.
720 (struct it): New member max_extra_line_spacing.
721 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
722 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
723 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
724 part of last line is only extra line spacing (so the text on the
725 line is fully visible). Use helper macros.
726 Add W arg (to use them). All callers changed.
727 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
728 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
729
730 * window.c (window_scroll_pixel_based, Frecenter):
731 Use move_it_vertically_backward directly.
732 (Frecenter): Fix calculation of new start pos for negative arg.
733 Before, the new start pos was sometimes chosen too far back, so
734 the last line became only partially visible, and thus would be
735 either only semi-visible or automatically scrolled to the middle
736 of the window by redisplay.
737
738 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
739 (move_it_vertically_backward): Don't recure to move further back.
740 (move_it_vertically): Remove superfluous condition.
741 (move_it_by_lines): Clear last_height when moved 0 lines.
742 (resize_mini_window): Use it.max_extra_line_spacing.
743 (display_tool_bar_line): Clear row->extra_line_spacing.
744 (try_scrolling): Use move_it_vertically_backward directly.
745 (redisplay_window): Likewise.
746 (compute_line_metrics): Set row->extra_line_spacing.
747 (display_line, display_string): Likewise.
748 (x_produce_glyphs): Update it->max_extra_line_spacing.
749
750 * xmenu.c (pop_down_menu): Return nil.
751
752 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
753
754 * xmenu.c (x_menu_wait_for_event): New function.
755 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
756 to handle timers.
757 (popup_widget_loop): Add argument do_timers.
758 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
759 do_timers to popup_widget_loop.
760 (xmenu_show): Call XMenuActivateSetWaitFunction so that
761 x_menu_wait_for_event is called by XMenuActivate.
762 (create_and_show_popup_menu): Pass 1 for do_timers to
763 popup_get_selection.
764 (pop_down_menu): New function.
765 (popup_get_selection, popup_widget_loop): Unwind protect to
766 pop_down_menu.
767 (popup_widget_loop): Add argument widget.
768 (create_and_show_popup_menu, create_and_show_dialog): Pass new
769 argument widget to popup_widget_loop.
770
771 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
772
773 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
774
775 2004-11-09 Kim F. Storm <storm@cua.dk>
776
777 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
778 Fix various comments referring to XEvents instead of input events.
779 (x_queue_event): Fix format strings.
780 (x_stop_queuing_selection_requests): Likewise.
781
782 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
783 (pint2hrstr): Add extra braces to silence compiler.
784
785 * print.c (print_object): Fix format string.
786
787 * lread.c (read1): Fix next_char matching.
788
789 * lisp.h (Fdelete): Add EXFUN.
790 (replace_range_2): Add prototype.
791
792 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
793
794 * intervals.h (NULL_INTERVAL_P): Add separate version when
795 ENABLE_CHECKING is not defined to silence compiler.
796 (compare_string_intervals): Add prototype.
797
798 * fringe.c (destroy_fringe_bitmap): Fix return type.
799 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
800
801 * emacs.c (Fdump_emacs): Fix format string.
802
803 * doc.c: Include <ctype.h>.
804 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
805
806 * data.c (store_symval_forwarding): Remove unused variables.
807
808 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
809
810 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
811
812 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
813 to ${OLDXMENU}.
814
815 2004-11-09 Kim F. Storm <storm@cua.dk>
816
817 * process.c (Fmake_network_process): Remove kludge for interrupted
818 connects on BSD. If connect is interrupted, just close socket and
819 start over rather than sleeping and retry with same socket.
820
821 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
822
823 * .cvsignore: Add buildobj.lst.
824
825 * doc.c: New variable Vbuild_files.
826 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
827 file names from buildobh.lst. Only attach docstrings from files
828 that are in Vbuild_files.
829 (syms_of_doc): Defvar Vbuild_files.
830
831 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
832 and w32*.o.
833 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
834 (mostlyclean): Rm buildobj.lst
835
836 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
837 is linked.
838
839 2004-11-09 Kim F. Storm <storm@cua.dk>
840
841 * fringe.c (update_window_fringes): Update fringe bitmaps if
842 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
843 also update previous row to get rid of misc. artifacts.
844
845 2004-11-08 Kim F. Storm <storm@cua.dk>
846
847 * xdisp.c (fast_find_position): Fix start pos if header line present.
848 (note_mouse_highlight): Clear mouse face if we move out of text area.
849
850 2004-11-08 Eli Zaretskii <eliz@gnu.org>
851
852 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
853 Don't include <sys/time.h> explicitly.
854 Include <stdio.h> unconditionally, not just on MacOS.
855
856 2004-11-08 Kenichi Handa <handa@m17n.org>
857
858 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
859 don't pay attention to '\' before '*'.
860 (fontset_pattern_regexp): Change the meaning of the second arg.
861 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
862 (check_fontset_name): Try NAME as literal at first, and if it
863 failes, try NAME as pattern.
864
865 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
866
867 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
868
869 2004-11-07 Andreas Schwab <schwab@suse.de>
870
871 * lisp.h (Fmsdos_downcase_filename): Declare.
872 * dired.c (Fmsdos_downcase_filename): Don't declare here.
873 * fileio.c: Likewise.
874
875 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
876
877 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
878 comparisons with integers instead of Lisp_Object address.
879 (Fmsdos_set_keyboard): Declare argument allkeys.
880
881 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
882
883 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
884 int/Lisp_Object mixup.
885
886 * fileio.c: Ditto.
887
888 2004-11-06 Steven Tamm <steventamm@mac.com>
889
890 * editfns.c: Need to include sys/time.h before resource.h on darwin.
891
892 2004-11-06 Richard M. Stallman <rms@gnu.org>
893
894 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
895
896 * xfaces.c (merge_named_face): GCPRO the face_name in the
897 named_merge_point struct that we make.
898 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
899
900 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
901 before deciding whether to inactivate mark.
902
903 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
904
905 * config.in: Regenerate (add HAVE_GETRUSAGE).
906 * editfns.c (Fget_internal_run_time): New function.
907 (syms_of_data): Defsubr it.
908 * fns.c (sxhash): As far as possible, merge calculation of
909 hash code for symbols and strings.
910
911 2004-11-06 Eli Zaretskii <eliz@gnu.org>
912
913 * frame.c (syms_of_frame): Fix the example in the doc string.
914
915 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
916
917 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
918
919 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
920 (create_and_show_dialog): Revert change from 2004-10-31.
921
922 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
923
924 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
925
926 2004-11-05 Kim F. Storm <storm@cua.dk>
927
928 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
929
930 * fileio.c (Ffile_modes): Doc fix.
931 (auto_save_1): Check for Ffile_modes nil value.
932
933 2004-11-05 Kim F. Storm <storm@cua.dk>
934
935 * xselect.c (struct selection_event_queue, selection_queue)
936 (x_queue_selection_requests, x_queue_event)
937 (x_start_queuing_selection_requests)
938 (x_stop_queuing_selection_requests): Add new queue for selection
939 input events to replace previous XEvent queue in xterm.c.
940 (queue_selection_requests_unwind): Adapt to new queue.
941 (x_reply_selection_request): Adapt to new queue.
942 Unexpect wait_object in case of x errors (memory leak).
943 (x_handle_selection_request, x_handle_selection_clear): Make static.
944 (x_handle_selection_event): New function. May queue selection events.
945 (wait_for_property_change_unwind): Use save_value instead of cons.
946 Clear property_change_reply_object.
947 (wait_for_property_change): Abort if already waiting.
948 Use save_value instead of cons for unwind data.
949 (x_handle_property_notify): Skip events already arrived, but don't
950 free them, as "arrived" field is checked by wait_for_property_change,
951 and it will be freed by unwind or explicit unexpect_property_change.
952 (x_get_foreign_selection): Add to new queue.
953 (receive_incremental_selection): Don't unexpect wait_object when done
954 as it has already been freed by previous wait_for_property_change.
955
956 * xterm.h (x_start_queuing_selection_requests)
957 (x_stop_queuing_selection_requests, x_handle_selection_request)
958 (x_handle_selection_clear): Remove prototypes.
959 (x_handle_selection_event): Add prototype.
960
961 * xterm.c (handle_one_xevent): Don't queue X selection events
962 here, it may be too late if we start queuing after we have already
963 stored some selection events into the kbd buffer.
964 (struct selection_event_queue, queue, x_queue_selection_requests)
965 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
966 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
967 (x_catch_errors_unwind): Block input around final XSync.
968
969 * keyboard.h (kbd_buffer_unget_event): Add prototype.
970
971 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
972 (kbd_buffer_unget_event): New function.
973 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
974 and use x_handle_selection_event.
975 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
976
977 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
978
979 * xselect.c (TRACE3): New debug macro.
980 (x_reply_selection_request): Use it.
981 (receive_incremental_selection): In call to TRACE0, the name of
982 a symbol is in xname.
983
984 2004-11-05 Kim F. Storm <storm@cua.dk>
985
986 * fontset.c (fontset_pattern_regexp): Use unsigned char.
987
988 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
989
990 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
991
992 * gtkutil.h (use_old_gtk_file_dialog): Declare.
993
994 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
995 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
996 * xfns.c (syms_of_xfns): ... to here.
997
998 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
999 it doesn't start with /.
1000
1001 2004-11-04 Kenichi Handa <handa@m17n.org>
1002
1003 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
1004 treat it as a literal character.
1005
1006 2004-11-03 Kim F. Storm <storm@cua.dk>
1007
1008 * .gdbinit (ppt): New function.
1009
1010 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1011
1012 * xterm.c (x_window_to_scroll_bar): Only call
1013 xg_get_scroll_id_for_window if toolkit scroll bars are used.
1014
1015 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
1016 of save.
1017
1018 2004-11-02 Andreas Schwab <schwab@suse.de>
1019
1020 * window.c (Fscroll_right): Fix last change.
1021
1022 2004-11-02 Kim F. Storm <storm@cua.dk>
1023
1024 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
1025
1026 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * callproc.c (Fcall_process): Block input around vfork.
1029
1030 2004-11-02 Kim F. Storm <storm@cua.dk>
1031
1032 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
1033 (syms_of_eval): Defsubr it.
1034
1035 2004-11-02 Richard M. Stallman <rms@gnu.org>
1036
1037 * insdel.c (replace_range_2): New function.
1038
1039 * casefiddle.c (casify_region): Handle changes in byte-length
1040 using replace_range_2.
1041
1042 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
1043
1044 * xdisp.c (back_to_previous_visible_line_start):
1045 Subtract 1 from pos when checking previous newline for invisibility.
1046
1047 * window.c (window_scroll_pixel_based): Update preserve_y
1048 for header line if any.
1049 (Fscroll_left, Fscroll_right): Don't call interactive_p;
1050 use a new second argument instead.
1051
1052 * eval.c (Fcall_interactive_p): New function.
1053 (interactive_p): Don't test INTERACTIVE here.
1054 (Finteractive_p): Doc fix.
1055
1056 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
1057
1058 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1059
1060 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
1061 comparing font names.
1062
1063 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1064
1065 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
1066 Fx_file_dialog if only directories should be read.
1067
1068 * lisp.h: Fx_file_dialog takes 5 parameters.
1069
1070 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
1071 Add parameter only_dir_p.
1072 In Motif version, don't put DEFAULT_FILENAME in filter part of the
1073 dialog, just text field part. Do not add DEFAULT_FILENAME
1074 to list of files if it isn't there.
1075 In GTK version, pass only_dir_p parameter to xg_get_file_name.
1076
1077 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
1078 Check only_dir_p instead of comparing prompt to "Dired". When using
1079 a save dialog, add option kNavDontConfirmReplacement, change title
1080 to "Enter name", change text for save button to "Ok".
1081
1082 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
1083 Check only_dir_p instead of comparing prompt to "Dired".
1084
1085 * gtkutil.c (xg_get_file_with_chooser)
1086 (xg_get_file_with_selection): New functions, only defined ifdef
1087 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
1088 respectively.
1089 (xg_get_file_name): Add parameter only_dir_p.
1090 Call xg_get_file_with_chooser or xg_get_file_with_selection
1091 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
1092 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
1093
1094 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
1095
1096 * config.in: Rebuild (added HAVE_GTK_FILE_*).
1097
1098 2004-11-01 Kim F. Storm <storm@cua.dk>
1099
1100 * process.c (connect_wait_mask, num_pending_connects):
1101 Only declare and use them if NON_BLOCKING_CONNECT is defined.
1102 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
1103 (IF_NON_BLOCKING_CONNECT): New helper macro.
1104 (wait_reading_process_output): Only declare and use local vars
1105 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
1106
1107 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
1108
1109 * w32term.c (x_scroll_run): Delete region objects after use.
1110
1111 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1112
1113 * xmenu.c: Add prototypes for forward function declarations.
1114 (popup_get_selection): Remove parameter do_timers, remove call to
1115 timer_check.
1116 (create_and_show_popup_menu, create_and_show_dialog):
1117 Remove parameter do_timers from call to popup_get_selection.
1118
1119 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
1120 tool_bar_items and assign the result to f->tool_bar_items if
1121 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
1122 tool_bar_items to assignment of result.
1123
1124 * atimer.c (alarm_signal_handler): Do not call set_alarm if
1125 pending_atmers is non-zero.
1126
1127 2004-10-31 Kim F. Storm <storm@cua.dk>
1128
1129 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
1130
1131 2004-10-28 Will <will@glozer.net>
1132
1133 * macterm.c: allow user to assign key modifiers to the Mac Option
1134 key via a 'mac-option-modifier' variable.
1135
1136 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1137
1138 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
1139 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
1140 (x_handle_selection_request, x_handle_selection_clear)
1141 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
1142
1143 2004-10-28 Richard M. Stallman <rms@gnu.org>
1144
1145 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1146
1147 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
1148
1149 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
1150
1151 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
1152 comment-starter over a 1-char one.
1153
1154 2004-10-27 Richard M. Stallman <rms@gnu.org>
1155
1156 * xdisp.c (get_next_display_element): In mode lines,
1157 treat newline and tab like other control characters.
1158
1159 * editfns.c (Fmessage): Doc fix.
1160
1161 * indent.c (vmotion): When moving up, check the newline before.
1162 Make prevline an int, not a Lisp_Object.
1163
1164 2004-10-27 Kim F. Storm <storm@cua.dk>
1165
1166 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
1167 Only allocate info and discarded tables once.
1168
1169 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
1170 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
1171 (SAFE_FREE): Test it to determine if we need to unwind to free.
1172 Remove size arg. All users changed.
1173 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
1174
1175 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1176
1177 * gtkutil.c: Put empty line between comment and function body.
1178 (xg_destroy_widgets): Rename from remove_from_container.
1179 Just destroy all widgets in list. Argument wcont removed.
1180 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
1181 instead of remove_from_container.
1182 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
1183 (free_frame_tool_bar): Add comment.
1184
1185 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
1186 is not NULL before strcmp.
1187
1188 2004-10-26 Kim F. Storm <storm@cua.dk>
1189
1190 * callint.c (Fcall_interactively): Add 'U' code to get the
1191 up-event discarded by a previous 'k' or 'K' argument.
1192
1193 2004-10-26 David Kastrup <dak@gnu.org>
1194
1195 * buffer.c (syms_of_buffer): Fix a few typos.
1196
1197 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1198
1199 * xsmfns.c: Put empty line between comment and function body.
1200 Use two spaces before comment end.
1201
1202 2004-10-25 Kenichi Handa <handa@m17n.org>
1203
1204 * fontset.c (fontset_pattern_regexp): Optimize for the case that
1205 PATTERN is full XLFD.
1206
1207 2004-10-24 Kenichi Handa <handa@m17n.org>
1208
1209 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
1210
1211 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
1212 (regex_compile): Return REG_ERANGEX if appropriate.
1213
1214 2004-10-22 Kenichi Handa <handa@m17n.org>
1215
1216 * editfns.c (Ftranslate_region_internal): New function.
1217 (syms_of_editfns): Defsubr it.
1218
1219 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1220
1221 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
1222
1223 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
1224
1225 * xterm.h (x_output): New member `xic_base_fontname'.
1226 (FRAME_XIC_BASE_FONTNAME): New macro.
1227 (xic_free_xfontset): Declare.
1228
1229 * xfns.c (xic_create_xfontset): Share fontsets between frames
1230 based on base_fontname.
1231 (xic_free_xfontset): New function.
1232 (free_frame_xic): Use it.
1233 (xic_set_xfontset): Ditto.
1234
1235 * xterm.c (xim_destroy_callback): Ditto.
1236
1237
1238 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
1239
1240 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
1241
1242 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1243
1244 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
1245 XSync.
1246
1247 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
1248 New variables and constant.
1249 (main): Calculate heap_bss_diff. If we are dumping and the
1250 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
1251 and exec ourself again.
1252 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
1253 print a warning.
1254
1255 * lastfile.c: Make my_endbss and my_endbss_static available on all
1256 platforms.
1257
1258 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
1259 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
1260
1261 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
1262
1263 * data.c (Flocal_variable_if_set_p): Doc fix.
1264
1265 2004-10-19 Jason Rumney <jasonr@gnu.org>
1266
1267 * w32.c (init_environment): Set emacs_dir correctly when running
1268 emacs from the build directory.
1269
1270 2004-10-19 Richard M. Stallman <rms@gnu.org>
1271
1272 * editfns.c (Fdelete_and_extract_region):
1273 If region is empty, return null string.
1274
1275 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1276
1277 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
1278 and canon_width.
1279 (xg_frame_cleared): Remove.
1280
1281 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
1282 (xg_find_top_left_in_fixed): Remove.
1283 (xg_create_scroll_bar): Put an event box widget between
1284 the scroll bar widget and the edit widget.
1285 (xg_show_scroll_bar): Show the parent widget (the event box).
1286 (xg_remove_scroll_bar): Destroy parent (the event box) also.
1287 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
1288 Move the parent (the event box) widget inside the fixed widget.
1289 Move window clear to xterm.c.
1290
1291 * gtkutil.h (xg_frame_cleared): Remove.
1292
1293 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
1294 (x_scroll_bar_create, XTset_vertical_scroll_bar):
1295 Remove arguments left and width to xg_update_scrollbar_pos.
1296 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
1297
1298 2004-10-19 Kenichi Handa <handa@m17n.org>
1299
1300 * xdisp.c (display_mode_element): Fix display of wide chars.
1301
1302 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1303
1304 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
1305 gdk_window_clear and move gdk_window_process_all_updates after
1306 clear so events are sent to the X server in correct order.
1307
1308 2004-10-18 Kenichi Handa <handa@m17n.org>
1309
1310 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
1311 comparing font names.
1312 (fs_query_fontset): Use fast_string_match for comparing fontset names.
1313 (list_fontsets): Likewise.
1314
1315 * search.c (fast_string_match_ignore_case): New function.
1316
1317 * lisp.h (fast_string_match_ignore_case): Extern it.
1318
1319 2004-10-17 Kim F. Storm <storm@cua.dk>
1320
1321 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
1322 than bitmap if there is not left fringe.
1323 (get_overlay_arrow_glyph_row): Also used on windows system.
1324 (display_line): Display overlay string if no left fringe.
1325
1326 2004-10-16 Jason Rumney <jasonr@gnu.org>
1327
1328 * w32fns.c (w32_font_match): Encode font name being matched.
1329
1330 2004-10-16 Richard M. Stallman <rms@gnu.org>
1331
1332 * window.c (Fspecial_display_p): Doc fix.
1333
1334 2004-10-15 Stefan <monnier@iro.umontreal.ca>
1335
1336 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
1337 Don't ignore menus, because where-is-internal already does it for us.
1338
1339 2004-10-15 Kim F. Storm <storm@cua.dk>
1340
1341 * xdisp.c (redisplay_window): Only update fringes and vertical
1342 border on window frames.
1343
1344 2004-10-14 Andreas Schwab <schwab@suse.de>
1345
1346 * m/ia64.h (DATA_SEG_BITS): Don't define.
1347
1348 2004-10-14 Kim F. Storm <storm@cua.dk>
1349
1350 * xterm.h: Include Xutil.h after keysym.h to work around bug
1351 in some X versions.
1352
1353 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1354
1355 * fns.c (map_char_table): Add missing gcpros.
1356
1357 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
1358
1359 * keymap.c (get_keymap): An autoload form is not a keymap.
1360
1361 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
1362
1363 2004-10-13 Kim F. Storm <storm@cua.dk>
1364
1365 * callproc.c (Fcall_process): Simplify handling of display arg.
1366 Resume `display_on_the_fly' once a coding system is determined.
1367
1368 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
1369
1370 2004-10-12 Kim F. Storm <storm@cua.dk>
1371
1372 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
1373 caller, such as call-process, is not going to poll for input.
1374 (calc_line_height_property): Handle case where it->object is nil.
1375
1376 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
1377
1378 2004-10-12 Kenichi Handa <handa@m17n.org>
1379
1380 * xdisp.c (get_next_display_element):
1381 If unibyte_display_via_language_environment is zero, display 8-bit
1382 chars in octal in unibyte buffer.
1383
1384 2004-10-12 Kim F. Storm <storm@cua.dk>
1385
1386 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
1387 are no ordinary bindings.
1388
1389 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1390
1391 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
1392
1393 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1394
1395 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
1396 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
1397 (make_mac_frame): Add BLOCK_INPUT around the making of a
1398 terminal frame.
1399 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
1400 * macgui.h (mktime): Use emacs_mktime.
1401 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
1402 Make a cancel file-open dialog be like C-g.
1403 * mac.c (mktime): Use emacs_mktime.
1404 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
1405 (Fmac_paste_function): Add better error handling for carbon cut/paste.
1406
1407 2004-10-10 Kim F. Storm <storm@cua.dk>
1408
1409 * keyboard.c (timer_resume_idle): New function to resume idle
1410 timer without resetting timers on the idle list.
1411 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
1412 (timer_start_idle, timer_stop_idle): Declare static.
1413 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
1414
1415 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
1416
1417 2004-10-08 Steven Tamm <steventamm@mac.com>
1418
1419 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
1420 * macterm.c (mac_check_for_quit_char): Remove warning for using
1421 NULL where 0 should be used.
1422 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
1423 objc/malloc.h
1424 * mac.c: Include time.h for Tiger compatibility.
1425
1426 2004-10-07 Kim F. Storm <storm@cua.dk>
1427
1428 * xdisp.c (redisplay_window): Fix flicker on vertical line between
1429 windows. Update vertical line after drawing window fringes, but
1430 only if actually drawing any bitmaps--or there is no fringe.
1431
1432 * xterm.c (x_update_window_end): Likewise.
1433 * macterm.c (x_update_window_end): Likewise.
1434 * w32term.c (x_update_window_end): Likewise.
1435
1436 * fringe.c (draw_window_fringes): Return value now indicates if
1437 any fringe bitmaps were redrawn (or there are no fringes).
1438
1439 * dispextern.h (draw_window_fringes): Update prototype.
1440
1441 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1442
1443 * macfns.c (mac_get_window_bounds): Add extern.
1444 (x_real_positions): Use mac_get_window_bounds.
1445
1446 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
1447 xmenu.c (YAILOM).
1448
1449 * macterm.c [!MAC_OSX]: Include Windows.h.
1450 (front_emacs_window): Rename from mac_front_window. All uses
1451 changed. Return the frontmost non-tooltip emacs window.
1452 (mac_get_window_bounds): New function.
1453 (x_calc_absolute_position): Use the difference of width and height
1454 between the inner and outer window.
1455 (x_set_offset): Specify window position by the coordinae of the
1456 outer window. Adjust the position if the title bar is completely
1457 outside the screen.
1458 (app_is_suspended, app_sleep_time): Remove unused variables.
1459 (do_app_resume, do_app_suspend): Remove their contents because
1460 window-activate/deactivate events will do the job.
1461 (do_zoom_window): Remove unused variables. Make compliant to the
1462 standard way of zooming. Set f->left_pos and f->top_pos.
1463 (XTread_socket): Don't use argument `expected'. Don't use
1464 FrontWindow to determine the clicked window. Exclude unprocessed
1465 mouseUp cases in the early stage. Add parentheses to fix operator
1466 precedence.
1467 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
1468
1469 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
1470
1471 * config.in: Regenerate.
1472
1473 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
1474 HAVE_EXECSHIELD.
1475
1476 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1477
1478 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
1479 a row if Alt or Meta has been found for that row. Also stop scanning
1480 for Keysyms for that row.
1481
1482 2004-10-04 Kim F. Storm <storm@cua.dk>
1483
1484 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
1485 to list. Include overlay arrow bitmap in return value.
1486
1487 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
1488 bars with fractional column width. If scroll bar separates two
1489 windows, move it towards the window it belongs to. Only update
1490 the padding area below the scroll bar widget when necessary,
1491 i.e. when scroll bar widget is created, moved, or resized.
1492
1493 * xdisp.c (define_frame_cursor1): Do not change frame cursor
1494 while tracking/dragging mouse.
1495 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
1496
1497 * window.c (coordinates_in_window): Relax check for cursor
1498 on vertial border between mode lines.
1499 (Fset_window_fringes): Do not allow negative widths.
1500 (Fset_window_scroll_bars): Likewise.
1501
1502 * .gdbinit (pp): Shorthand for p ARG + pr.
1503 (ff): New command: flush frame updates (X only).
1504
1505 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
1506
1507 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
1508
1509 2004-09-30 Kenichi Handa <handa@m17n.org>
1510
1511 * process.c (send_process): Free composition data.
1512
1513 * fileio.c (Finsert_file_contents): Free composition data.
1514
1515 * coding.c (code_convert_region): Don't skip ASCIIs if there are
1516 compositions to encode.
1517 (encode_coding_string): Likewise. Free composition data.
1518
1519 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
1520
1521 * coding.c (code_convert_region): Free composition data.
1522
1523 2004-09-29 Kim F. Storm <storm@cua.dk>
1524
1525 * fringe.c: Remove limit on number of bitmaps.
1526 (fringe_bitmaps, fringe_faces): Change to pointers.
1527 (max_fringe_bitmaps): New var.
1528 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
1529 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
1530
1531 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
1532 (struct glyph_row): Reorder fringe_bitmap related fields.
1533 (struct it): Likewise.
1534
1535 * w32term.c (fringe_bmp): Change to pointer.
1536 (max_fringe_bmp): New var.
1537 (w32_define_fringe_bitmap): Expand fringe_bmp.
1538 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
1539 (w32_destroy_fringe_bitmap): Likewise.
1540
1541 2004-09-29 Kim F. Storm <storm@cua.dk>
1542
1543 * fringe.c: Simplify last change.
1544 (lookup_fringe_bitmap): New function.
1545 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
1546 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
1547 Keep standard bitmaps in Vfringe_bitmaps.
1548 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
1549 (Fset_fringe_bitmap_face): Likewise.
1550
1551 * dispextern.h (lookup_fringe_bitmap): Add prototype.
1552 (valid_fringe_bitmap_p): Remove prototype.
1553
1554 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
1555
1556 2004-09-29 Kim F. Storm <storm@cua.dk>
1557
1558 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
1559 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
1560
1561 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
1562
1563 * fringe.c (Vfringe_bitmaps): New variable.
1564 (syms_of_fringe): DEFVAR_LISP it.
1565 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
1566 Change arg to Lisp_Object and fail if not an integer.
1567 (get_fringe_bitmap_name, resolve_fringe_bitmap)
1568 (destroy_fringe_bitmap): New functions.
1569 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
1570 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
1571 clear its fringe property.
1572 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
1573 Fdestroy_fringe_bitmap.
1574 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
1575 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
1576 and set fringe property. Signal error if no free slots.
1577 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
1578 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
1579
1580 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
1581 symbols with a fringe property.
1582
1583 2004-09-27 Kim F. Storm <storm@cua.dk>
1584
1585 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
1586 Doc fix. Format may now be a symbol or alist, not a cons.
1587
1588 * fringe.c (update_window_fringes): Handle new formats of
1589 indicate-buffer-boundaries (symbol or alist). No longer
1590 allow a simple cons.
1591 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
1592
1593 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1594
1595 * config.in: Rebuild.
1596
1597 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1598
1599 * config.in: Rebuild.
1600
1601 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
1602
1603 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
1604
1605 * xterm.c (x_term_init): Work around a bug in some X servers.
1606
1607 2004-09-18 Richard M. Stallman <rms@gnu.org>
1608
1609 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
1610
1611 * xdisp.c (try_window_reusing_current_matrix):
1612 Handle the case where we reach the old displayed text,
1613 out of sync with the old line boundary.
1614
1615 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
1616
1617 * fileio.c (Finsert_file_contents): Fix case of replacement in a
1618 narrowed buffer.
1619
1620 2004-09-14 Kim F. Storm <storm@cua.dk>
1621
1622 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
1623
1624 * xfaces.c (Qface_no_inherit): New var.
1625 (syms_of_xfaces): Intern and staticpro it.
1626 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
1627 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
1628 Don't increment face_change_count when face has non-nil
1629 face-no-inherit property.
1630
1631 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
1632
1633 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
1634 (Fbyte_code): Remove dead code after `wrong_type_argument'.
1635
1636 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
1637 before doing the mark_stack_check_gcpros since they're not on the stack.
1638
1639 2004-09-12 Kim F. Storm <storm@cua.dk>
1640
1641 * editfns.c (Fformat): Handle format strings with multiple text
1642 properties. Reverse text property list from the format string,
1643 so the positions are in increasing order.
1644
1645 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1646
1647 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
1648 x_uncatch_errors so that possible protocol errors are delivered.
1649
1650 2004-09-10 Eli Zaretskii <eliz@gnu.org>
1651
1652 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
1653 blockinput.h.
1654 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
1655 charset.h, and coding.h
1656 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
1657 (term.o): Depend on window.h and keymap.h.
1658 (abbrev.o): Depend on syntax.h.
1659 (callint.o): Depend on keymap.h.
1660 (casefiddle.o): Depend on charset.h and keymap.h.
1661 (category.o): Depend on keymap.h.
1662 (coding.o): Depend on dispextern.h.
1663 (cmds.o): Depend on keyboard.h and keymap.h.
1664 (dispnew.o): Depend on indent.h and intervals.h.
1665 (doc.o): Depend on keymap.h.
1666 (editfns.o): Depend on frame.h.
1667 (emacs.o): Depend on dispextern.h.
1668 (fileio.o): Don't depend on ccl.h.
1669 (filelock.o): Depend on charset.h and coding.h.
1670 (frame.o): Depend on w32term.h and macterm.h.
1671 (insdel.o): Depend on region-cache.h.
1672 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
1673 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
1674 (search.o): Depend on $(INTERVALS_SRC).
1675 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
1676 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
1677 xterm.h, w32term.h, and macterm.h.
1678 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
1679 w32term.h, and macterm.h.
1680 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
1681 region-cache.h, xterm.h, w32term.h, and macterm.h.
1682 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
1683 (data.o): Depend on frame.h.
1684 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
1685 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
1686 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
1687 (intervals.o): Depend on keymap.h.
1688
1689 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
1690 Add debugging print-out to termscript.
1691
1692 2004-09-09 Richard M. Stallman <rms@gnu.org>
1693
1694 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
1695
1696 2004-09-08 Richard M. Stallman <rms@gnu.org>
1697
1698 * window.c (Fset_window_buffer): Doc fix.
1699
1700 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
1701
1702 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
1703
1704 * minibuf.c (history_delete_duplicates): New variable.
1705 (read_minibuf): Use it.
1706 (syms_of_minibuf): Create the corresponding lisp variable.
1707
1708 2004-09-08 Kim F. Storm <storm@cua.dk>
1709
1710 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
1711 overlay just before point.
1712
1713 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
1714
1715 * buffer.h (struct buffer): Add auto_save_file_format field.
1716 * buffer.c (reset_buffer, init_buffer_once):
1717 Handle auto_save_file_format field.
1718 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
1719 `buffer-auto-save-file-format'.
1720 * fileio.c: Delete declaration for removed Vauto_save_file_format.
1721 (build_annotations): Adapt to replacement of
1722 `auto-save-file-format' with the new buffer-local variable
1723 `buffer-auto-save-file-format'.
1724 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
1725
1726 2004-09-07 Jason Rumney <jasonr@gnu.org>
1727
1728 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
1729
1730 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
1731 Handle Unicode menu titles.
1732
1733 2004-09-07 Kim F. Storm <storm@cua.dk>
1734
1735 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
1736 property from text property or overlay strings at point.
1737
1738 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1739
1740 * xmenu.c (update_submenu_strings): YAILOM.
1741 (set_frame_menubar): Make sure last_i is initialized.
1742
1743 2004-09-03 Jason Rumney <jasonr@gnu.org>
1744
1745 * w32menu.c (_widget_value): Add lname and lkey.
1746 (digest_single_submenu): Set lname and lkey in widget_value
1747 instead of name and key.
1748 (update_submenu_strings): New function.
1749 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1750 call update_submenu_strings.
1751
1752 * w32menu.c (globals_of_w32menu): Check for Unicode API.
1753 (digest_single_submenu, w32_menu_show): Encode menu strings as
1754 UTF-8 if Unicode API is available.
1755 (utf8to16): New function.
1756 (add_menu_item): Use it when calling Unicode API.
1757
1758 2004-09-03 Kim F. Storm <storm@cua.dk>
1759
1760 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
1761 in overlay or text-property strings; set cursor on corresponding
1762 glyph rather than at end of the string.
1763
1764 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1765
1766 * macfns.c (x_real_positions): Save the current window port and
1767 set a new one before obtaining the global coordinate.
1768 Use FRAME_MAC_WINDOW.
1769 (x_set_name, x_set_title): Encode title to UTF8.
1770 Use SetWindowTitleWithCFString.
1771 (Fx_server_version): Get correct OS version.
1772
1773 * macmenu.c (add_menu_item): Remove unused variable `i'.
1774 Don't let separator items destroy refence constants of other menu items.
1775
1776 * macterm.c (x_update_end): Move SetPortWindowPort to inside
1777 BLOCK_INPUT.
1778 (x_set_offset): Use FRAME_MAC_WINDOW.
1779
1780 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
1781 nontext_cursor if it is on a scroll bar.
1782
1783 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
1784 Carbon support.
1785 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
1786 Use LIBS_CARBON.
1787
1788 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1789
1790 * xfns.c (x_set_name_internal): New function. Check if we shall call
1791 xfree before ENCODE_UTF_8.
1792 (x_set_name, x_set_title): Call x_set_name_internal.
1793
1794 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
1795
1796 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
1797 reload it.
1798
1799 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1800
1801 * macmenu.c (_widget_value): Add lname and lkey.
1802 (single_submenu): Set lname and lkey in widget_value
1803 instead of name and key.
1804 (update_submenu_strings): New function.
1805 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1806 call update_submenu_strings.
1807
1808 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
1809 instead of name and key.
1810 (update_submenu_strings): New function.
1811 (set_frame_menubar): Remove call to inhibit_garbage_collection,
1812 call update_submenu_strings.
1813
1814 * gtkutil.h (_widget_value): Added lname and lkey.
1815
1816 2004-08-30 Steven Tamm <steventamm@mac.com>
1817
1818 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
1819 by using different names for inner loop variables.
1820
1821 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1822
1823 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
1824 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
1825
1826 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
1827 tool bar items is 0.
1828
1829 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1830
1831 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
1832 strings in menu items.
1833 (single_submenu): Use ENCODE_MENU_STRING
1834 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
1835 button release isn't passed to event loop
1836 (add_menu_item): Use SetMenuItemWithCFString
1837
1838 2004-08-26 Steven Tamm <steventamm@mac.com>
1839
1840 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
1841 tool-bar/menu click
1842 * macfns.c (Fx_file_dialog): Implemented using NavServices
1843
1844 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1845
1846 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
1847
1848 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1849 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1850 (x_top_window_to_frame): Return 0 if wdesc is None.
1851
1852 2004-08-22 Richard M. Stallman <rms@gnu.org>
1853
1854 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
1855 HAVE_TERMIOS]: If there's no char for this signal, drop through
1856 and use system calls.
1857
1858 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
1859
1860 2004-08-20 Kim F. Storm <storm@cua.dk>
1861
1862 * process.c (wait_reading_process_output): Rename from
1863 wait_reading_process_input. All uses changed.
1864 (wait_reading_process_output_1): Rename from
1865 wait_reading_process_input_1. All uses changed.
1866
1867 * dispnew.c (Fsleep_for): Remove obsolete code.
1868
1869 2004-08-20 Kenichi Handa <handa@m17n.org>
1870
1871 * syntax.c (skip_chars): Fix for unibyte case.
1872
1873 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1874
1875 * syntax.c (char_quoted): Mixup byte/char pos.
1876 (back_comment): Fixup globals in all cases.
1877
1878 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1879
1880 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
1881 passing it to gtk_window_set_title.
1882
1883 2004-08-19 Kim F. Storm <storm@cua.dk>
1884
1885 * process.c (wait_reading_process_input): Clean up.
1886 Add wait_for_cell, wait_proc, and just_wait_proc args
1887 to avoid overloading `read_kbd' and `do_display' args.
1888 Change read_kbd arg to int. All callers changed.
1889
1890 * process.c (process_send_signal): Use CDISABLE.
1891
1892 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
1893
1894 2004-08-18 Kim F. Storm <storm@cua.dk>
1895
1896 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
1897 forward to wait_reading_process_input via DO_DISPLAY arg.
1898 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
1899 object, only process output from that process; also inhibit
1900 running timers if DO_DISPLAY==-2.
1901
1902 2004-08-17 Kim F. Storm <storm@cua.dk>
1903
1904 * process.c (process_send_signal): Fix last change--use
1905 _POSIX_VDISABLE instead of CVDISABLE when available.
1906
1907 2004-08-16 Richard M. Stallman <rms@gnu.org>
1908
1909 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
1910 Set VQUIT and VINTR chars to the standard ones if they are unset.
1911 [AIX]: Don't do that here. And don't force VINTR to standard
1912 when SIGNALS_VIA_CHARACTERS.
1913
1914 * process.c (process_send_signal)
1915 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
1916 Do nothing if the character is CVDISABLE.
1917
1918 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
1919
1920 * intervals.c (move_if_not_intangible):
1921 Force POSITION to be between BEGV and ZV.
1922
1923 2004-08-14 John Paul Wallington <jpw@gnu.org>
1924
1925 * buffer.c (Frestore_buffer_modified_p): Doc fix.
1926
1927 * fileio.c (Fread_file_name): Doc fix.
1928
1929 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1930
1931 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
1932
1933 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
1934
1935 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
1936
1937 * keyboard.c: Declare Qdisabled_command_function instead of
1938 Qdisabled_command_hook.
1939 (Fcommand_execute): Use Qdisabled_command_function instead of
1940 Qdisabled_command_hook.
1941 (syms_of_keyboard): Ditto.
1942
1943 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
1944
1945 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
1946 (syms_of_keymap) <key-translation-map>: Doc fixes.
1947
1948 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
1949
1950 * window.c (window_list_1): YAILOM.
1951
1952 * fileio.c (make_temp_name): Handle multibyte prefixes.
1953
1954 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
1955
1956 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1957 Doc fix.
1958
1959 2004-08-03 Kenichi Handa <handa@m17n.org>
1960
1961 * coding.c (decode_coding_string): Adjust coding->consumed, and
1962 etc. with shrinked_bytes.
1963
1964 2004-08-03 Kim F. Storm <storm@cua.dk>
1965
1966 * indent.c (compute_motion): Fix check for full width window
1967 in non-window case. Do not count left truncation glyph on
1968 window systems.
1969
1970 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
1971
1972 * data.c (Finteractive_form): Doc fix.
1973
1974 2004-08-02 Kim F. Storm <storm@cua.dk>
1975
1976 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
1977 properly accounting for continuation glyph on non-window systems.
1978 (Fcompute_motion): Use actual window width if WIDTH is nil, and
1979 actual window width/height if TOPOS is nil, properly accounting for
1980 continuation glyphs on non-window systems, and optional header lines.
1981 (vmotion): Let compute_motion calculate actual window width.
1982
1983 * window.c (window_scroll_line_based): Let compute_motion
1984 calculate actual window width.
1985
1986 2004-08-02 Kim F. Storm <storm@cua.dk>
1987
1988 * process.c (read_process_output): Use whole read buffer.
1989 Don't trigger adaptive read buffering on errors.
1990
1991 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
1992
1993 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
1994
1995 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
1996
1997 * callint.c (Fcall_interactively): Doc fix.
1998
1999 2004-07-30 Richard M. Stallman <rms@gnu.org>
2000
2001 * abbrev.c (Fexpand_abbrev): Undo previous change.
2002
2003 2004-07-30 Kim F. Storm <storm@cua.dk>
2004
2005 * editfns.c (Fformat): Allocate extra (dummy) element in info.
2006
2007 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
2008
2009 * eval.c (Fdefvar, Fdefconst): Doc fixes.
2010
2011 2004-07-27 Kim F. Storm <storm@cua.dk>
2012
2013 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
2014 we have ensured that the glyph fits on the current line (or returned
2015 MOVE_LINE_CONTINUED otherwise).
2016
2017 2004-07-26 Kim F. Storm <storm@cua.dk>
2018
2019 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
2020 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
2021 if target position is at end of display line but char is not a newline.
2022
2023 2004-07-25 Richard M. Stallman <rms@gnu.org>
2024
2025 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
2026 instead of ON_VERTICAL_BORDER, when on scroll bar.
2027 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
2028
2029 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
2030
2031 * window.c (Fcoordinates_in_window_p):
2032 Take account of FRAME_INTERNAL_BORDER_WIDTH.
2033
2034 * alloc.c (check_cons_list): New function (contents commented out).
2035
2036 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
2037
2038 * xfaces.c (Fcolor_supported_p): Doc fix.
2039
2040 * frame.c (Fselect_frame, Fset_frame_selected_window)
2041 (Fframe_visible_p, Fraise_frame): Doc fixes.
2042
2043 2004-07-24 Richard M. Stallman <rms@gnu.org>
2044
2045 * keyboard.h (not_single_kboard_state): Declare.
2046
2047 * fileio.c (Fwrite_region): Doc fix.
2048
2049 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
2050
2051 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
2052 only when a real abbrev is present.
2053
2054 * xfns.c (x_icon_verify): New function.
2055 (Fx_create_frame): Use it.
2056
2057 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2058
2059 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
2060
2061 2004-07-21 Kim F. Storm <storm@cua.dk>
2062
2063 * window.h (struct glyph_matrix): New members nrows_scale_factor
2064 and ncols_scale_factor.
2065
2066 * window.c (make_window): Initialize nrows_scale_factor and
2067 ncols_scale_factor members.
2068
2069 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
2070 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
2071 (required_matrix_height): Apply nrows_scale_factor.
2072 (required_matrix_width): Apply ncols_scale_factor.
2073
2074 * xdisp.c (display_line): Increment nrows_scale_factor and set
2075 fonts_changed_p if past last allocated row.
2076 (append_glyph, append_composite_glyph, produce_image_glyph)
2077 (append_stretch_glyph): Increment ncols_scale_factor and set
2078 fonts_changed_p if current area is full.
2079
2080 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2081
2082 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
2083
2084 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
2085
2086 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
2087 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
2088 (Fset_window_start, Fscroll_up, Fscroll_down)
2089 (Fother_window_for_scrolling, Fscroll_other_window)
2090 (Fsave_window_excursion, Fset_window_vscroll)
2091 (syms_of_window) <window-size-fixed>: Doc fixes.
2092
2093 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2094
2095 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
2096 ENCODE_SYSTEM for filenames.
2097
2098 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2099
2100 * mac.c (sys_select): Block input around call to
2101 ReceiveNextEvent to prevent breakage. Correctly handle
2102 blocking on event queue only by calling ReceiveNextEvent
2103 instead of select (since GUI events aren't on an fd).
2104 (sys_read): Remove function
2105 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
2106
2107 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2108
2109 * mac.c (sys_select): Redo sys_select to use alarm-based
2110 polling instead of 1 sec timeouts (like solaris).
2111
2112 * macterm.c (x_make_frame_visible): Comment in polling on
2113 frame creation.
2114
2115 * keyboard.c: Undef SIGIO on Carbon
2116
2117 * atimer.c (alarm_signal_handler): Call alarm handlers after
2118 scheduling.
2119
2120 * eval.c (Feval): Remove quit_char test
2121
2122 * process.c (wait_reading_process_input): Remove clearing
2123 stdin for select call on process input.
2124
2125 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
2126
2127 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
2128 capitalization error in docstring.
2129
2130 2004-07-17 Juanma Barranquero <lektu@terra.es>
2131
2132 * keyboard.c (not_single_kboard_state): Do nothing unless
2133 MULTI_KBOARD is defined.
2134
2135 2004-07-17 Richard M. Stallman <rms@gnu.org>
2136
2137 * window.c (coordinates_in_window): Inside the window but outside
2138 its box to the L or R, return ON_VERTICAL_BORDER.
2139 (window_list_1): Rotate the list to start with WINDOW.
2140
2141 * print.c (print_preprocess): Test for print_depth at limit
2142 before entering in being_printed.
2143
2144 * keyboard.c (not_single_kboard_state): New function.
2145 (stuff_buffered_input): Now no-op only if no SIGTSTP.
2146
2147 * frame.c (Fdelete_frame): If we're in single_bboard_state on
2148 this kboard, and we delete its last frame, go to any_kboard_state.
2149
2150 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
2151
2152 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2153
2154 * w32fns.c (Fx_file_dialog): Encode strings in system coding
2155 system before passing them to OS functions for display.
2156
2157 2004-07-15 David Kastrup <dak@gnu.org>
2158
2159 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
2160 Apparently fixes an abort condition.
2161
2162 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
2163
2164 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
2165 instead of a cons.
2166
2167 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2168
2169 * keyboard.c (echo_dash): Do nothing if there already is a dash
2170 at the end of the echo string.
2171
2172 2004-07-12 Kim F. Storm <storm@cua.dk>
2173
2174 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
2175 if GC_MARK_STACK.
2176
2177 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
2178
2179 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
2180
2181 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
2182 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
2183 (Freplace_buffer_in_windows, Fset_window_buffer)
2184 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
2185 (syms_of_window): Expand docstring of `display-buffer-function'.
2186
2187 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2188
2189 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
2190 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
2191 that time values of the type (HIGH . LOW) are considered obsolete.
2192
2193 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
2194
2195 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
2196 docstring.
2197
2198 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
2199
2200 2004-07-06 John Paul Wallington <jpw@gnu.org>
2201
2202 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
2203
2204 * fns.c (Fclear_string): Signal an error if STRING is not a string.
2205
2206 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2207
2208 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
2209 instead of CGMainDisplayID (only in OSX 10.2 and later).
2210
2211 2004-07-04 John Paul Wallington <jpw@gnu.org>
2212
2213 * fileio.c (read_file_name_completion_ignore_case): New variable.
2214 (syms_of_fileio): Declare and initialise it.
2215 (Fread_file_name): Bind `completion-ignore-case' to respect it.
2216
2217 2004-07-03 Eli Zaretskii <eliz@gnu.org>
2218
2219 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
2220 for event.x and event.y.
2221
2222 2004-07-01 Kenichi Handa <handa@m17n.org>
2223
2224 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
2225 after getting a new string by pre-write-conversion.
2226
2227 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
2230 (x_calc_absolute_position): Remove unused var `child'.
2231
2232 * xfaces.c (x_supports_face_attributes_p)
2233 (Fdisplay_supports_face_attributes_p): YAILOM.
2234 (tty_supports_face_attributes_p): Remove unused var `i'.
2235
2236 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
2237 back_unibyte_ok.
2238
2239 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
2240
2241 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
2242
2243 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
2244
2245 2004-06-30 Andreas Schwab <schwab@suse.de>
2246
2247 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
2248 (Finit_image_library): Pass LIBRARIES through to
2249 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
2250 (lookup_image_type): Pass Qnil as second argument to
2251 Finit_image_library.
2252
2253 * lisp.h (Finit_image_library): Declare.
2254
2255 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2256
2257 * macterm.c (do_window_activate, do_window_deactivate): Remove.
2258 (XTread_socket): Send mouse button events to the toolbox
2259 dispatcher even when the mouse is grabbed. Don't process window
2260 activate events for non-Emacs windows. Replace function calls to
2261 do_window_activate and do_window_deactivate with their contents.
2262 Reset mouse grabbing status when a window is deactivated.
2263
2264 2004-06-29 Steven Tamm <steventamm@mac.com>
2265
2266 * macterm.c (mac_get_emulated_btn)
2267 (mac_event_to_emacs_modifiers): Fix emulated mouse button
2268 support to correctly mask out modifiers.
2269
2270 2004-06-29 David Kastrup <dak@gnu.org>
2271
2272 * search.c (Fset_match_data): Allow buffer before end of list
2273 which can happen if set-match-data is using a pre-consed list.
2274
2275 2004-06-28 Steven Tamm <steventamm@mac.com>
2276
2277 * macterm.c (XTread_socket): Correctly set the frame position
2278 after the window is moved.
2279
2280 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2281
2282 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
2283 gpix and gmask just before return to avoid memory leak.
2284 (xg_get_image_for_pixmap): Add workaround for monochrome displays
2285 so insensitive and activated icons look ok.
2286
2287 2004-06-27 Jason Rumney <jasonr@gnu.org>
2288
2289 * w32fns.c (file_dialog_callback): Disable edit control if set
2290 to directories only on CDN_INITDONE message.
2291 (Fx_file_dialog): Default to directories only when prompt starts
2292 with "Dired".
2293
2294 2004-06-25 Kim F. Storm <storm@cua.dk>
2295
2296 * alloc.c (allocate_misc): Update total_free_markers.
2297 (free_misc): New function.
2298 (safe_alloca_unwind, free_marker): Use it.
2299
2300 * lisp.h (free_misc): Add prototype.
2301
2302 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
2303
2304 2004-06-24 Richard M. Stallman <rms@gnu.org>
2305
2306 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
2307 (syms_of_emacs): Lisp variables deleted.
2308
2309 2004-06-23 David Kastrup <dak@gnu.org>
2310
2311 * search.c (Freplace_match): Adjust the match-data more thoroughly
2312 when replacing strings in the buffer.
2313 (Fmatch_data): When INTEGERS is non-nil and the last match was in
2314 a buffer, add the buffer as last element to the match data.
2315 (Fset_match_data): If an additional element of the match-data is a
2316 buffer, restore it to last_thing_searched.
2317 (save_search_regs): Save last_thing_searched as part of the match data.
2318 (restore_match_data): Restore it again.
2319
2320 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
2321
2322 * keymap.c (Ftext_char_description): Doc fix.
2323 * doc.c (Fsnarf_documentation): Doc fix.
2324
2325 2004-06-22 Kim F. Storm <storm@cua.dk>
2326
2327 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
2328
2329 * lisp.h (struct Lisp_Save_Value): New member dogc.
2330 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
2331 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
2332 (SAFE_FREE_LISP): New macro.
2333
2334 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
2335 (make_save_value): Init new dogc member.
2336 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
2337
2338 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
2339 SAFE_FREE_LISP macros.
2340
2341 2004-06-22 Kim F. Storm <storm@cua.dk>
2342
2343 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
2344 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
2345 in that memory area are unknown to GC. Add comments.
2346
2347 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
2348
2349 2004-06-21 Kim F. Storm <storm@cua.dk>
2350
2351 * lisp.h (MAX_ALLOCA): Define here.
2352 (safe_alloca_unwind): Add prototype.
2353 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
2354
2355 * alloc.c (safe_alloca_unwind): New function.
2356
2357 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
2358
2359 * charset.c (Fstring): Use SAFE_ALLOCA.
2360
2361 * coding.c (MAX_ALLOCA): Remove define.
2362
2363 * data.c (MAX_ALLOCA): Remove define.
2364 (Faset): Use SAFE_ALLOCA.
2365
2366 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
2367
2368 * fns.c (string_make_multibyte, string_to_multibyte)
2369 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
2370 (MAX_ALLOCA): Remove define.
2371 (Fbase64_encode_region, Fbase64_encode_string)
2372 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
2373 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
2374 memory leak if encoding fails.
2375
2376 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
2377
2378 2004-06-21 Eli Zaretskii <eliz@gnu.org>
2379
2380 * print.c (Fwith_output_to_temp_buffer): Doc fix.
2381
2382 2004-06-20 Richard M. Stallman <rms@gnu.org>
2383
2384 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
2385
2386 * search.c (match_limit): Cleaner err msg when no match data available.
2387
2388 * window.c (syms_of_window): Doc fix.
2389
2390 * keyboard.c (command_loop_1): Handle values `only' and `identity'
2391 for Vtransient_mark_mode.
2392
2393 * buffer.c (syms_of_buffer): Doc fix.
2394
2395 2004-06-21 David Kastrup <dak@gnu.org>
2396
2397 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
2398 and unbinding of `case-fold-search' according to
2399 `completion-ignore-case' around calls of string-match and
2400 predicates, respectively. Should give satisfactory performance
2401 in all relevant cases.
2402
2403 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2404
2405 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
2406 clip_x/y_origin.
2407
2408 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
2409
2410 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
2411
2412 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
2413 on Mac OSX.
2414
2415 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
2416
2417 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
2418
2419 2004-06-16 Kim F. Storm <storm@cua.dk>
2420
2421 * dispextern.h (Vimage_types): Remove extern.
2422
2423 2004-06-16 Miles Bader <miles@gnu.org>
2424
2425 * image.c (lookup_image_type): Initialize image type if necessary.
2426
2427 2004-06-15 Kim F. Storm <storm@cua.dk>
2428
2429 * xdisp.c (try_cursor_movement): Exclude header line from scroll
2430 margin at top of window.
2431 (try_window_reusing_current_matrix): Calculate proper cursor position
2432 after scrolling up with non-zero scroll margin, as the old cursor
2433 position corresponds to value of PT before executing this command.
2434 (try_window_id): Consider scroll margin at bottom of window too;
2435 otherwise we fail to scroll when hl-line-mode is enabled.
2436
2437 * syntax.c (skip_chars): Only recognize [:class:] when it has the
2438 proper format and class is a lower-case word.
2439
2440 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2441
2442 * gtkutil.c (xg_get_image_for_pixmap): New function.
2443 (xg_get_gdk_pixmap_and_mask): Remove.
2444 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
2445 xg_get_gdk_pixmap_and_mask.
2446
2447 * xterm.h (struct x_display_info): Typo in comment fixed.
2448
2449 2004-06-14 Juanma Barranquero <lektu@terra.es>
2450
2451 * dispextern.h (Vimage_types): Make it conditional on
2452 HAVE_WINDOW_SYSTEM.
2453
2454 * image.c (Vimage_types): Move from xdisp.c.
2455 (Vimage_type_cache): New variable.
2456 (define_image_type): New argument indicating whether an image
2457 library was loaded; cache loaded status and return t on success,
2458 nil otherwise.
2459 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
2460 (w32_delayed_load): New function to load an image library from a
2461 list of possible filenames.
2462 (init_xpm_functions, init_png_functions, init_jpeg_functions)
2463 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
2464 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
2465 (Finit_image_library): New function, extracted from `init_image'.
2466 Try to initialize an image library on demand and cache whether we
2467 were successful or not.
2468 (syms_of_image): Initialize `Vimage_types' and
2469 `Vimage_type_cache'. Add recognized image types to Vimage_types.
2470 Export `init-image-library'.
2471 (init_image): Remove initialization of all image types, except xbm
2472 and pbm.
2473
2474 * xdisp.c (Vimage_types): Delete (moved to image.c).
2475
2476 2004-06-14 Andreas Schwab <schwab@suse.de>
2477
2478 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2479 Avoid calling specbind when completion-regexp-list is empty.
2480
2481 2004-06-13 Richard M. Stallman <rms@gnu.org>
2482
2483 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2484 (re_wctype, re_iswctype, re_wctype_to_bit):
2485 Non-function definitions moved here from regex.c.
2486
2487 * regex.c (re_wctype, re_iswctype): Function defs longer static.
2488 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
2489 (re_wctype, re_iswctype, re_wctype_to_bit):
2490 Non-function definitions moved to regex.h.
2491
2492 * window.c (Fselect_window): Doc fix.
2493
2494 * syntax.c: Include regex.h.
2495 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
2496 If requested, make a list of classes, then check the scanned
2497 chars for membership in them.
2498 (in_classes): New function.
2499 Doc fix.
2500
2501 * keyboard.c (cmd_error): Don't call any_kboard_state
2502 if inside a recursive edit level.
2503
2504 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
2505
2506 * keyboard.c (command_loop): Call any_kboard_state before
2507 command_loop_2 when at top level.
2508
2509 2004-06-13 Andreas Schwab <schwab@suse.de>
2510
2511 * print.c (print_object): Always use %ld for printing EMACS_INT.
2512
2513 * keyboard.c (cancel_hourglass_unwind): Return a value.
2514 (modify_event_symbol): Always use %ld for printing EMACS_INT.
2515 (Fexecute_extended_command): Likewise.
2516
2517 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
2518 avoid clashes.
2519 (SYNTAX): Likewise.
2520 (SYNTAX_WITH_FLAGS): Likewise.
2521 (SYNTAX_MATCH): Likewise.
2522
2523 * syntax.c (char_quoted): Avoid warning about undefined operation.
2524 (find_defun_start): Likewise.
2525 (scan_lists): Likewise.
2526 (INC_FROM): Likewise.
2527 (scan_sexps_forward): Likewise.
2528
2529 * image.c: Include <ctype.h>.
2530
2531 * xfaces.c (face_attr_equal_p): Declare parameters.
2532
2533 2004-06-13 Kenichi Handa <handa@m17n.org>
2534
2535 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
2536
2537 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
2538
2539 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
2540
2541 2004-06-12 Kenichi Handa <handa@m17n.org>
2542
2543 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
2544 ccl_prog_stack_struct and update it.
2545 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
2546 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
2547 ccl->eof_ic on EOF.
2548 (ccl_debug_hook): New function.
2549 (struct ccl_prog_stack): New member eof_ic.
2550 (ccl_driver): Handle EOF in subrountine call correctly.
2551
2552 2004-06-11 Kenichi Handa <handa@m17n.org>
2553
2554 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
2555
2556 2004-06-11 Kim F. Storm <storm@cua.dk>
2557
2558 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
2559
2560 2004-06-11 Juanma Barranquero <lektu@terra.es>
2561
2562 * keyboard.c (Fposn_at_point): Doc fix.
2563
2564 2004-06-11 David Kastrup <dak@gnu.org>
2565
2566 * search.c (match_limit): Don't flag an error if match-data
2567 exceeding the allocated search_regs.num_regs gets requested, just
2568 return Qnil.
2569
2570 2004-06-08 Miles Bader <miles@gnu.org>
2571
2572 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
2573
2574 2004-06-07 Juanma Barranquero <lektu@terra.es>
2575
2576 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
2577 (Fcurrent_time_string, Fcurrent_time_zone)
2578 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
2579
2580 2004-06-07 Miles Bader <miles@gnu.org>
2581
2582 * xfaces.c (struct named_merge_point): New type.
2583 (push_named_merge_point): New function.
2584 (merge_named_face): New function.
2585 (merge_face_ref, face_at_buffer_position, face_at_string_position):
2586 Use `merge_named_face'.
2587 (merge_face_inheritance): Function removed.
2588 (merge_face_ref): Rename from `merge_face_vector_with_property'.
2589 Add new `err_msgs' and `named_merge_points' args. Return error
2590 status. Only print error messages if ERR_MSGS is true. Don't try to
2591 do :inherit attribute validation.
2592 (merge_face_heights): Handle `unspecified' in both directions.
2593 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
2594 Call `merge_face_ref' instead of `merge_face_inheritance'.
2595 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
2596 (compute_char_face, face_at_buffer_position)
2597 (face_at_string_position): Call `merge_face_ref' instead of
2598 `merge_face_vector_with_property'.
2599
2600 2004-06-07 Kenichi Handa <handa@m17n.org>
2601
2602 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
2603 the necessary places.
2604
2605 2004-06-07 Kim F. Storm <storm@cua.dk>
2606
2607 * process.c (Fdelete_process): Undo 2004-05-28 change.
2608 Instead, call status_notify also for network process.
2609 (status_message): Use process instead of status as arg.
2610 Give messages "deleted" or "connection broken by remote peer" for
2611 an exited network process.
2612 (status_notify): Change call to status_message.
2613 (read_process_output): Increase readmax to 4096. Do not increase
2614 buffer size for datagram channels (default is now large enough).
2615
2616 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2617
2618 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
2619 problem due to newly defined variable.
2620
2621 2004-06-06 Miles Bader <miles@gnu.org>
2622
2623 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
2624 immediately if non-interactive or not initialized.
2625
2626 2004-06-05 Richard M. Stallman <rms@gnu.org>
2627
2628 * minibuf.c (Fcompleting_read): Doc fix.
2629
2630 2004-06-05 Andreas Schwab <schwab@suse.de>
2631
2632 * macfns.c (x_create_tip_frame): Fix declaration after statement.
2633
2634 2004-06-05 Juanma Barranquero <lektu@terra.es>
2635
2636 * keymap.c (Fdescribe_vector): Fix docstring.
2637 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
2638
2639 2004-06-05 Miles Bader <miles@gnu.org>
2640
2641 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
2642 attributes have different values than the default face.
2643
2644 2004-06-04 Eli Zaretskii <eliz@gnu.org>
2645
2646 * xfaces.c (x_supports_face_attributes_p): Make this function
2647 conditional on HAVE_WINDOW_SYSTEM.
2648 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
2649 Don't call x_supports_face_attributes_p if it was not compiled in.
2650
2651 2004-06-04 Miles Bader <miles@gnu.org>
2652
2653 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
2654 from Ftty_supports_face_attributes_p.
2655 (x_supports_face_attributes_p): New function.
2656 (Ftty_supports_face_attributes_p): Function deleted.
2657 (Fdisplay_supports_face_attributes_p): New function.
2658 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
2659 (face_attr_equal_p): New function.
2660 (lface_equal_p): Use it.
2661
2662 2004-06-03 Juanma Barranquero <lektu@terra.es>
2663
2664 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
2665 (Vw32_color_map): Fix typo in docstring.
2666 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
2667 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
2668 Make argument names match their use in docstring.
2669
2670 2004-06-02 Juanma Barranquero <lektu@terra.es>
2671
2672 Work around bugs/problems with MinGW builds of graphics libraries
2673 called from MSVC builds of Emacs.
2674
2675 * image.c (lookup_image): Make pointer to img static.
2676 (png_read_from_memory): Disable "global" optimization.
2677
2678 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2679
2680 * eval.c (Fcondition_case): Fix usage. Simplify.
2681
2682 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
2683
2684 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2685
2686 * macfns.c: Don't include ccl.h.
2687 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
2688 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
2689 TextUtils.h.
2690 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
2691 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
2692 display height/width.
2693 (compute_tip_xy, Vx_max_tooltip_size): Declare.
2694 (unwind_create_tip_frame, compute_tip_xy): New functions.
2695 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
2696 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
2697 and last_show_tip_args.
2698
2699 * macgui.h [!MAC_OSX]: Include Gestalt.h.
2700 (Cursor, No_Cursor): New defines.
2701 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
2702 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
2703
2704 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
2705
2706 * macterm.c: Don't include Gestalt.h.
2707 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
2708 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
2709 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
2710 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
2711 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
2712 (construct_mouse_click, XTmouse_position)
2713 (x_scroll_bar_report_motion, x_calc_absolute_position)
2714 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
2715 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
2716 (note_mouse_movement): Clear the mouse face and reset the pointer
2717 shape when the pointer goes outside the frame without grabbing.
2718 (mac_front_window): New function.
2719 (mac_window_to_frame): New macro.
2720 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
2721 (do_window_activate, do_window_deactivate, do_app_resume)
2722 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
2723 (do_zoom_window, mac_do_receive_drag, XTread_socket)
2724 (mac_check_for_quit_char): Use mac_front_window and/or
2725 mac_window_to_frame.
2726 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
2727 scroll-bar click event.
2728 (mac_define_frame_cursor): Change the pointer shape.
2729 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
2730 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
2731 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
2732 (do_window_update): Don't do anything if the updated window is the
2733 tooltip window.
2734 (do_mouse_moved): Handle mouse movement events here (previously in
2735 XTread_socket). Clear the mouse face if
2736 dpyinfo->mouse_face_hidden is set.
2737 (do_os_event, do_events): Remove (now in XTread_socket).
2738 (XTread_socket): Immediately return if interrupt_input_blocked.
2739 Loop until all the events in the queue are processed.
2740 Rearrange codes for mouse grabbing. Add tooltip support. Include the
2741 contents of do_os_event and do_events. Remove mouse movement
2742 handling (now in do_mouse_moved). Add the case where
2743 Vmouse_highlight has an integer value.
2744 (NewMacWindow): Remove.
2745 (make_mac_frame): Do what NewMacWindow previously did. Don't do
2746 excess initializations.
2747 (make_mac_terminal_frame): Previous initializations in
2748 make_mac_frame are moved here.
2749 (mac_initialize_display_info):
2750 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
2751
2752 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
2753 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
2754
2755 2004-05-29 Richard M. Stallman <rms@gnu.org>
2756
2757 * lisp.h (truncate_undo_list): Update decl.
2758
2759 * alloc.c (undo_outer_limit): New variable.
2760 (syms_of_alloc): Defvar it.
2761 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
2762
2763 * undo.c (truncate_undo_list): New arg LIMITSIZE.
2764
2765 * alloc.c (lisp_align_malloc): Check for base == 0
2766 regardless of HAVE_POSIX_MEMALIGN.
2767 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
2768
2769 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2770
2771 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
2772 (marker_blocks_pending_free): Remove.
2773 (Fgarbage_collect): Sweep after cleaning up undo-lists.
2774 Mark the undo lists after claning them up.
2775 Don't free block in marker_blocks_pending_free.
2776 (mark_buffer): Don't mark undo_list.
2777 (gc_sweep): Sweep hash-tables and strings first.
2778 Do free marker blocks that are empty.
2779
2780 2004-05-28 Jim Blandy <jimb@redhat.com>
2781
2782 * regex.c (print_partial_compiled_pattern): Add missing 'break'
2783 after 'case wordend'. For symbeg and symend, print to stderr,
2784 like the other cases.
2785
2786 2004-05-28 Noah Friedman <friedman@splode.com>
2787
2788 * process.c (Fdelete_process): Do not call remove_process.
2789
2790 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2791
2792 * alloc.c (struct backtrace): Remove.
2793 (Fgarbage_collect): Use the new mark_backtrace.
2794
2795 * eval.c (mark_backtrace): New function.
2796
2797 * minibuf.c (run_exit_minibuf_hook): New function.
2798 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
2799 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
2800
2801 2004-05-27 Kim F. Storm <storm@cua.dk>
2802
2803 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
2804 over display properties, e.g. images, that replace buffer text.
2805
2806 2004-05-25 Kim F. Storm <storm@cua.dk>
2807
2808 * alloc.c (marker_blocks_pending_free): New var.
2809 (gc_sweep): Store free marker blocks on that list.
2810 (Fgarbage_collect): Free them after undo-list cleanup.
2811
2812 * process.c (wait_reading_process_input): Check connect_wait_mask
2813 before actually accepting connection in case it has already been
2814 accepted due to recursion.
2815
2816 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
2817
2818 * coding.c (Fset_safe_terminal_coding_system_internal):
2819 Set suppress_error in safe_terminal_coding, not terminal_coding.
2820
2821 2004-05-22 Richard M. Stallman <rms@gnu.org>
2822
2823 * alloc.c (Fmake_string): Doc fix.
2824
2825 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
2826 and the alist pairs too.
2827
2828 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
2829
2830 * emacs.c (main): Update copyright year.
2831
2832 * fileio.c (Fread_file_name): Expand DIR if not absolute.
2833
2834 * insdel.c (del_range_2, replace_range): Don't write an anchor
2835 if the gap is empty.
2836
2837 * xdisp.c (try_scrolling): If scroll-up-aggressively or
2838 scroll-down-aggressively is small but positive, put point
2839 near the screen edge.
2840
2841 2004-05-22 Juanma Barranquero <lektu@terra.es>
2842
2843 * keymap.c (Fdefine_key): Doc fix.
2844
2845 2004-05-22 Kim F. Storm <storm@cua.dk>
2846
2847 * alloc.c (struct backtrace): Add debug_on_exit member.
2848 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
2849 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
2850 the removed cons cells.
2851 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
2852 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
2853 any cons cells pointing to unallocated stings.
2854 Do not lisp_free any marker blocks, as there may still be pointers
2855 to them from buffer undo lists at this stage of GC.
2856
2857 * keyboard.c (struct backtrace): Add debug_on_exit member.
2858 (Fcommand_execute): Clear it.
2859
2860 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
2861
2862 * intervals.c (lookup_char_property): Do not prematurely return nil.
2863
2864 2004-05-19 Jim Blandy <jimb@redhat.com>
2865
2866 Add support for new '\_<' and '\_>' regexp operators, matching the
2867 beginning and end of symbols.
2868
2869 * regex.c (enum syntaxcode): Add Ssymbol.
2870 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
2871 (re_opcode_t): New opcodes `symbeg' and `symend'.
2872 (print_partial_compiled_pattern): Print the new opcodes properly.
2873 (regex_compile): Parse the new operators.
2874 (analyse_first): Skip sym(beg|end) (they match only the empty string).
2875 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
2876 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
2877 (re_match_2_internal): Match symbeg and symend.
2878
2879 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
2880
2881 2004-05-19 Kim F. Storm <storm@cua.dk>
2882
2883 * .gdbinit (xsymbol): Fix last change.
2884
2885 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2886
2887 * .gdbinit (xprintstr): New fun.
2888 (xstring, xprintsym): Use it.
2889
2890 * w32proc.c (create_child): Use INTMASK.
2891
2892 * alloc.c (Fgarbage_collect): Do all the marking before flushing
2893 unmarked elements of the undo list.
2894
2895 2004-05-18 David Ponce <david@dponce.com>
2896
2897 * print.c (print): Reset print_depth before to call print_object.
2898
2899 2004-05-18 Jason Rumney <jasonr@gnu.org>
2900
2901 * w32console.c: Prefix RIF functions with w32con_ to avoid
2902 namespace clash with functions in term.c and w32term.c.
2903
2904 * w32menu.c (add_menu_item, w32_menu_display_help)
2905 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
2906
2907 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
2908
2909 2004-05-18 Eli Zaretskii <eliz@gnu.org>
2910
2911 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
2912
2913 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
2914 with make_number.
2915 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
2916 with XINT.
2917
2918 2004-05-18 Kim F. Storm <storm@cua.dk>
2919
2920 * blockinput.h (INPUT_BLOCKED_P): New macros.
2921
2922 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
2923 (Ftop_level): Unblock input if blocked.
2924
2925 * buffer.h (GET_OVERLAYS_AT): New macro.
2926 * msdos.c (IT_note_mouse_highlight): Use it.
2927 * textprop.c (get_char_property_and_overlay): Use it.
2928 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
2929 * xfaces.c (face_at_buffer_position): Use it.
2930
2931 * print.c (print_object): Increase buf size.
2932
2933 2004-05-17 Jason Rumney <jasonr@gnu.org>
2934
2935 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
2936 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
2937 Lisp_Object using i member.
2938 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
2939 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
2940 consistently.
2941
2942 * w32proc.c (create_child): Use make_number instead of masking pid.
2943
2944 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
2945 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
2946 Use EQ to compare Lisp_Objects.
2947 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
2948
2949 * w32term.c (w32_num_mouse_buttons): Rename from
2950 Vw32_num_mouse_buttons and make it an int.
2951
2952 * w32.c (init_environment): Use it.
2953
2954 * w32fns.c (w32_wnd_proc): Likewise.
2955
2956 * w32proc.c (w32_pipe_read_delay): Rename from
2957 Vw32_pipe_read_delay and make it an int.
2958
2959 * w32.c (_sys_read_ahead): Use it.
2960
2961 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
2962
2963 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
2964
2965 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
2966 (key_event): Don't mix Lisp_Object and int.
2967
2968 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
2969
2970 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
2971 modifiers in language change event.
2972
2973 2004-05-17 Kim F. Storm <storm@cua.dk>
2974
2975 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
2976 Such objects may be freed markers which still exist on an undo list.
2977
2978 2004-05-16 Juanma Barranquero <lektu@terra.es>
2979
2980 * data.c (Fset_default): Make argument names match their use in
2981 docstring.
2982
2983 2004-05-15 Andreas Schwab <schwab@suse.de>
2984
2985 * emacs.c (gdb_array_mark_flag): Define.
2986 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
2987
2988 2004-05-15 Eli Zaretskii <eliz@gnu.org>
2989
2990 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
2991 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
2992 defined for the MS-DOS build.
2993
2994 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
2997
2998 2004-05-14 Kenichi Handa <handa@m17n.org>
2999
3000 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
3001
3002 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3003
3004 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
3005 section to frame.c section.
3006 (Fxw_display_color_p, Fx_file_dialog): Declare if
3007 HAVE_WINDOW_SYSTEM defined.
3008
3009 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
3010
3011 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
3012
3013 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
3014 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
3015 (XTread_socket): Fix int/Lisp_Object mixup.
3016 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
3017
3018 * macterm.h (struct frame, struct face, struct image)
3019 (display_x_get_resource, Fx_display_color_p)
3020 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
3021 Add prototypes.
3022
3023 2004-05-14 Kim F. Storm <storm@cua.dk>
3024
3025 * process.c (wait_reading_process_input): Make reentrant.
3026 Make Available and Connecting non-static. Save and restore value
3027 of waiting_for_user_input_p.
3028
3029 2004-05-13 Kim F. Storm <storm@cua.dk>
3030
3031 * keyboard.c (mark_kboards): Don't mark x and y members
3032 that are overloaded in selection request events.
3033
3034 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3035
3036 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
3037
3038 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
3039
3040 * window.c (Fdisplay_buffer, Fsplit_window)
3041 (split-height-threshold): Doc fix.
3042
3043 2004-05-13 Juanma Barranquero <lektu@terra.es>
3044
3045 * xfaces.c (Ftty_supports_face_attributes_p)
3046 (Finternal_copy_lisp_face): Fix typo in docstring.
3047 (Finternal_get_lisp_face_attribute): Fix docstring.
3048
3049 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3050
3051 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
3052
3053 2004-05-11 Steven Tamm <steventamm@mac.com>
3054
3055 * macfns.c (Fx_create_frame): Default to using tool-bar by
3056 setting tool-bar-lines to 1 in default-frame-alist.
3057
3058 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3059
3060 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
3061 (xpm_get_color_table_v, xpm_make_color_table_h)
3062 (xpm_put_color_table_h, xpm_get_color_table_h)
3063 (xpm_str_to_color_key, xpm_load_image, xpm_load)
3064 (syms_of_image): Support XPM on Carbon Emacs. Does not
3065 depend on libXpm, but only supports XPM version 3 without extensions.
3066
3067 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3068
3069 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
3070 instead of FRAME_X_P
3071
3072 2004-05-11 Kim F. Storm <storm@cua.dk>
3073
3074 * process.c (read_process_output): Grow decoding_buf when needed;
3075 this could cause a crash in allocate_string and compact_small_strings.
3076
3077 2004-04-29 Jim Blandy <jimb@redhat.com>
3078
3079 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
3080 against proper opcode.
3081
3082 2004-05-10 Juanma Barranquero <lektu@terra.es>
3083
3084 * process.c (Fstart_process): Fix docstring.
3085
3086 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
3087 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
3088 (Fsplit_char, Fchar_charset): Make argument names match their use
3089 in docstring.
3090
3091 2004-05-10 Richard M. Stallman <rms@gnu.org>
3092
3093 * print.c (print_preprocess): Use being_printed, loop_count and
3094 halftail to detect overdeep nesting and cyclic cdr chains.
3095
3096 2004-05-10 Andreas Schwab <schwab@suse.de>
3097
3098 * lisp.h (Fmake_symbolic_link): Declare.
3099
3100 * fileio.c (Frename_file): Remove extra argument in call to
3101 Fmake_symbolic_link.
3102
3103 2004-05-10 Kim F. Storm <storm@cua.dk>
3104
3105 * xdisp.c (calc_line_height_property): Use string position when
3106 object is a string.
3107
3108 2004-05-10 Kenichi Handa <handa@m17n.org>
3109
3110 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
3111 inhibit-modification-hooks to t temporarily before calling
3112 Ferase_buffer.
3113
3114 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
3115 inhibit-modification-hooks to t temporarily before calling
3116 Ferase_buffer.
3117
3118 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
3119 inhibit-modification-hooks to t temporarily before calling
3120 Ferase_buffer.
3121
3122 * fns.c (count_combining): Delete it.
3123 (concat): Don't check combining bytes.
3124
3125 2004-05-09 Jason Rumney <jasonr@gnu.org>
3126
3127 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
3128 (globals_of_w32fns): Set it.
3129
3130 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
3131
3132 * data.c (Fquo): Simplify.
3133
3134 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
3135
3136 * data.c (Fquo): If any argument is float, do the computation in
3137 floating point.
3138
3139 2004-05-08 Juanma Barranquero <lektu@terra.es>
3140
3141 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
3142 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
3143 Fix spelling of Emacs on docstring.
3144 (Fset_process_coding_system, Fprocess_coding_system)
3145 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
3146 Make argument names match their use in docstring.
3147 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
3148 Fix docstring.
3149
3150 * editfns.c (Finsert_buffer_substring): Make argument names match their
3151 use in docstring.
3152
3153 * syntax.c (Fmodify_syntax_entry): Fix docstring.
3154
3155 2004-05-07 Steven Tamm <steventamm@mac.com>
3156
3157 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
3158 around call to ReceiveEvent to avoid certain crashes.
3159
3160 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3161
3162 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
3163 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
3164 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
3165 Save/restore the current graphics port and device handle when
3166 drawing into an offscreen graphics world.
3167
3168 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
3169 (gif_load): Likewise.
3170
3171 2004-05-07 Juanma Barranquero <lektu@terra.es>
3172
3173 * window.c (Fset_window_buffer): Fix docstring.
3174
3175 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
3176
3177 * emacs.c (main) [VMS]: Fix var ref.
3178
3179 2004-05-06 Romain Francoise <romain@orebokech.com>
3180
3181 * data.c (Fsetq_default): Fix docstring.
3182
3183 2004-05-06 Jason Rumney <jasonr@gnu.org>
3184
3185 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
3186 to avoid name clash.
3187
3188 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3189
3190 * fileio.c (barf_or_query_if_file_exists): Use lstat.
3191 (Frename_file): Handle renaming of symlinks across file systems.
3192 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
3193
3194 2004-05-04 Kim F. Storm <storm@cua.dk>
3195
3196 * xdisp.c (Qtotal): New var.
3197 (syms_of_xdisp): Intern and staticpro it.
3198 (calc_line_height_property): New arg total. Set it if
3199 line-spacing property has format (total . VALUE).
3200 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
3201 Handle total line-spacing property.
3202
3203 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3204
3205 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
3206 "under" scroll bar when size/position changes.
3207
3208 2004-05-03 Jason Rumney <jasonr@gnu.org>
3209
3210 * makefile.nt: Remove.
3211
3212 2004-05-02 Eli Zaretskii <eliz@gnu.org>
3213
3214 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
3215 Avoid compiler warnings.
3216
3217 * Makefile.in (region-cache.o): Depend on config.h.
3218
3219 2004-05-02 Romain Francoise <romain@orebokech.com>
3220
3221 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
3222 with continuation lines, too.
3223
3224 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
3225
3226 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
3227
3228 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
3229
3230 * xdisp.c (calc_line_height_property): YAILOM (yet another
3231 int/Lisp_Object mixup).
3232
3233 2004-05-01 Eli Zaretskii <eliz@gnu.org>
3234
3235 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
3236 undo bad effect of pack(4) in some versions of system headers.
3237
3238 2004-05-01 Jason Rumney <jasonr@gnu.org>
3239
3240 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
3241
3242 2004-04-30 Kim F. Storm <storm@cua.dk>
3243
3244 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
3245 (syms_of_buffer) <cursor-type>: Doc fix.
3246
3247 * dispextern.h (struct it): Remove member use_default_face.
3248 Add members override_ascent, override_descent, override_boff.
3249
3250 * xdisp.c (init_iterator): Handle line-spacing float value.
3251 Initialize override_ascent member.
3252 (append_space_for_newline): Reset override_ascent.
3253 Remove use_default_face.
3254 (calc_line_height_property): New function to calculate value of
3255 line-height and line-spacing properties. Look at overlays, too.
3256 Set override_ascent, override_descent, override_boff members when
3257 using another face than the current face. Float values are now
3258 relative to the frame default font, by default; accept a cons
3259 of ratio and face name to specify value relative to a specific face.
3260 (x_produce_glyphs): Use calc_line_height_property.
3261 Use override_ascent etc. when set to handle different face heights.
3262 A negative line-spacing property value is interpreted as a total
3263 line height, rather than inter-line spacing.
3264 (note_mouse_highlight): Allocate room for 40 overlays initially.
3265
3266 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3267
3268 * data.c (Fsubr_name): New fun.
3269 (syms_of_data): Defsubr it.
3270
3271 2004-04-29 Kim F. Storm <storm@cua.dk>
3272
3273 * xdisp.c (null_glyph_slice): New var.
3274 (append_glyph, append_composite_glyph, append_stretch_glyph):
3275 Use it to initialize glyph slice.
3276
3277 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
3278
3279 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
3280 (on_hot_spot_p): Make sure we always return a value.
3281 (Flookup_image_map): Remove unused var ix and iy.
3282 (note_mode_line_or_margin_highlight): Remove unused var `image'.
3283
3284 2004-04-27 Eli Zaretskii <eliz@gnu.org>
3285
3286 * msdos.c (init_environment): If one of the TMP... environment
3287 variables is set to a drive letter without a trailing slash,
3288 append a slash.
3289
3290 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
3291
3292 * editfns.c (lisp_time_argument): Provide externally.
3293
3294 * fileio.c (Fset_file_times): New function.
3295 (syms_of_fileio): Intern and staticpro it.
3296
3297 2004-04-27 Kim F. Storm <storm@cua.dk>
3298
3299 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
3300 header line strings.
3301
3302 * dispextern.h (struct it): New member use_default_face.
3303
3304 * xdisp.c (Qline_height): New variable.
3305 (syms_of_xdisp): Intern and staticpro it.
3306 (append_space_for_newline): Partially undo 2004-04-25 change;
3307 add default_face_p arg, and restore callers.
3308 Clear it->use_default_face after use.
3309 (x_produce_glyphs): Set default font for ascii char if
3310 it->use_default_font is set. Change line-spacing property to set
3311 just extra line spacing. Handle new line-height property.
3312
3313 2004-04-26 Andreas Schwab <schwab@suse.de>
3314
3315 * print.c (print_object): Print non-ascii characters in bool
3316 vector representation as octal escapes.
3317
3318 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
3319 * print.c (print_object): Use it instead of BITS_PER_CHAR for
3320 bool vectors.
3321 * lread.c (read1): Likewise.
3322 * alloc.c (Fmake_bool_vector): Likewise.
3323 * data.c (Faref, Faset): Likewise.
3324 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
3325 (mapcar1): Likewise.
3326
3327 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3328
3329 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
3330
3331 2004-04-26 Miles Bader <miles@gnu.org>
3332
3333 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
3334
3335 2004-04-26 Juanma Barranquero <lektu@terra.es>
3336
3337 * buffer.c (Fpop_to_buffer): Fix docstring.
3338
3339 2004-04-26 Steven Tamm <steventamm@mac.com>
3340
3341 * lread.c (init_lread): Don't display missing lisp directory
3342 warnings with Carbon Emacs because self-contained bundled Emacs
3343 may be built without correct installation path.
3344
3345 2004-04-25 Kim F. Storm <storm@cua.dk>
3346
3347 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3348
3349 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
3350
3351 * xdisp.c (append_space_for_newline): Rename from append_space.
3352 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
3353 (x_produce_glyphs): Handle line-spacing property on newline char.
3354 If value is t, adjust ascent and descent to fit current row height.
3355 If value is an integer or float, set extra_line_spacing to integer
3356 value, or to float value x current line height.
3357
3358 2004-04-23 Kenichi Handa <handa@m17n.org>
3359
3360 * fontset.c (Finternal_char_font): If POSITION is nil, return
3361 font for displaying CH with the default face.
3362
3363 2004-04-23 Juanma Barranquero <lektu@terra.es>
3364
3365 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3366
3367 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
3370 Don't make assumptions about the relative place of i and val.
3371 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
3372
3373 2004-04-21 Kim F. Storm <storm@cua.dk>
3374
3375 * dispextern.h (struct glyph_slice): New struct.
3376 (struct glyph): New member slice.
3377 (GLYPH_SLICE_EQUAL_P): New macro.
3378 (GLYPH_EQUAL_P): Use it.
3379 (struct glyph_string): New member slice.
3380 (struct it_slice): New struct.
3381 (struct it): New member slice, add member to stack too.
3382 New member constrain_row_ascent_descent_p.
3383 (image_ascent): Add prototype.
3384
3385 * dispnew.c (buffer_posn_from_coords): Return full image width
3386 and height even for image slices (posn is relative to full image).
3387 (marginal_area_string): Adjust x0,y0 for image slice.
3388
3389 * image.c (image_ascent): Add slice arg; calculate ascent for
3390 image slice (or full image).
3391
3392 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
3393 (syms_of_keyboard): Defsubr them.
3394
3395 * lisp.h (pos_visible_p): Fix prototype.
3396
3397 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3398 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3399 (x_draw_image_foreground, x_draw_image_relief)
3400 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3401 Draw sliced images.
3402
3403 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
3404 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3405 (x_draw_image_foreground, x_draw_image_relief)
3406 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
3407 Draw sliced images.
3408
3409 * w32term.h (image_ascent): Remove prototype.
3410
3411 * window.c (Fpos_visible_in_window_p): Return pixel position if
3412 PARTIALLY arg is non-nil. Simplify. Doc fix.
3413 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
3414 to return/set vscroll in pixels.
3415
3416 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
3417
3418 * xdisp.c (Qslice): New variable.
3419 (syms_of_xdisp): Intern and staticpro it.
3420 (pos_visible_p): Return pixel position in new x and y args.
3421 (init_iterator): Reset it->slice info.
3422 (handle_display_prop): Parse (slice ...) property.
3423 (push_it, pop_it): Save/restore slice info.
3424 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
3425 force repositioning of tall row if window is vscrolled, as that
3426 would reset vscroll.
3427 (append_space): Set it->constrain_row_ascent_descent_p to avoid
3428 increasing row height if row is non-empty.
3429 (fill_image_glyph_string): Copy slice info.
3430 (take_vertical_position_into_account): Simplify.
3431 (produce_image_glyph): Handle iterator slice info, setup glyph
3432 slice info. Do not force minimum line height.
3433 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
3434 do not increase height (ascent/descent) of non-empty row when
3435 adding normal character glyph; instead reduce glyph ascent/descent
3436 appropriately; if row is higher than current glyph, adjust glyph
3437 descent/ascent to reposition glyph within the existing row.
3438 Likewise, when char is newline, only set ascent/descent if row is
3439 currently empty.
3440 (note_mouse_highlight): Handle hotspots with sliced image.
3441
3442 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
3443 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
3444 (x_draw_image_foreground, x_draw_image_relief)
3445 (x_draw_image_foreground_1, x_draw_image_glyph_string):
3446 Draw sliced images.
3447
3448 * xterm.h (image_ascent): Remove prototype.
3449
3450 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3451
3452 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
3453
3454 2004-04-20 John Paul Wallington <jpw@gnu.org>
3455
3456 * fns.c (Fassoc, Feql): Fix indentation.
3457
3458 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
3459
3460 2004-04-19 John Paul Wallington <jpw@gnu.org>
3461
3462 * fns.c (Feql): New function.
3463 (syms_of_fns): Defsubr it.
3464
3465 2004-04-18 Jason Rumney <jasonr@gnu.org>
3466
3467 * w32select.c (Fw32_set_clipboard_data): Get sequence number
3468 after closing the clipboard.
3469
3470 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
3471
3472 * buffer.c (Fbuffer_base_buffer): Doc fix.
3473
3474 2004-04-17 Kim F. Storm <storm@cua.dk>
3475
3476 * keymap.c (Fkey_description): Add optional PREFIX arg.
3477 Combine prefix with KEYS to make up the full key sequence to describe.
3478 Correlate meta_prefix_char and following (simple) key to describe
3479 as meta modifier. All callers changed.
3480 (describe_map): Rename arg `keys' to `prefix'. Remove local
3481 `elt_prefix' var. Use Fkey_description with prefix instead of
3482 elt_prefix combined with Fsingle_key_description.
3483 (describe_vector): Declare static. Replace arg `elt_prefix' with
3484 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
3485 if !KEYMAP_P. Use Fkey_description with prefix instead of
3486 Fsingle_key_description.
3487
3488 * keymap.h (Fkey_description): Fix prototype.
3489 (describe_vector): Remove prototype.
3490
3491 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
3492
3493 * image.c (PNG_BG_COLOR_SHIFT): Remove.
3494 (png_load): Fix calculation of transparent background color on X
3495 and W32 platforms.
3496
3497 2004-04-16 Juanma Barranquero <lektu@terra.es>
3498
3499 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
3500 not too large before computing how much to scroll.
3501
3502 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
3505
3506 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
3507
3508 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
3509 Add hyperlink to Elisp manual to the docstring.
3510
3511 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
3512
3513 * callint.c (fix_command): Use XDCR.
3514
3515 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
3516
3517 * window.c (Fget_lru_window): Doc fix.
3518
3519 2004-04-14 Kim F. Storm <storm@cua.dk>
3520
3521 * editfns.c (Fformat): Fix allocation size of precision array.
3522
3523 * dispnew.c (update_window): Only set changed_p if
3524 scrolling_window actually did scroll.
3525 (scrolling_window): Only return 1 if we actually did scroll.
3526
3527 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
3528 height to glyph height when cursor row is not fully visible.
3529 (make_cursor_line_fully_visible): Add FORCE_P arg to return
3530 failure in case row is higher than window. Callers changed.
3531 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
3532 Try to scroll partially visible, higher-than-window cursor row.
3533 (redisplay_window): Always try to scroll partially visible,
3534 higher-than-window cursor row - both initially and again with
3535 centering_position = 0.
3536 Clear desired matrix before retrying with centering_position = 0.
3537
3538 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 * syntax.c (scan_lists): Simplify backward string scan.
3541 Fix off-by-one boundary check for string and comment fences.
3542
3543 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
3544
3545 * sheap.c, unexcw.c: New files.
3546
3547 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
3548
3549 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
3550 base buffer has been killed. Correct the error message if the
3551 base buffer does not exist.
3552
3553 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
3554
3555 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
3556 Cygwin itself. Add support for Xaw3d scrollbars.
3557
3558 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
3559
3560 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
3561
3562 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
3563 before Cygwin unexec.
3564
3565 * Makefile.in: Link changes for Cygwin unexec() support.
3566
3567 2004-04-12 Andreas Schwab <schwab@suse.de>
3568
3569 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
3570
3571 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
3572
3573 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
3574 IGNORE argument equals NAME. Doc fix.
3575
3576 2004-04-11 Masatake YAMATO <jet@gyve.org>
3577
3578 * buffer.c (fix_start_end_in_overlays): Make overlays
3579 empty if they are backwards.
3580
3581 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * xfaces.c (face_color_supported_p): Fix compilation without X11.
3584
3585 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3586
3587 * doc.c (Fsnarf_documentation): Ignore new file name entries.
3588
3589 2004-04-06 Kim F. Storm <storm@cua.dk>
3590
3591 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3592 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
3593
3594 * w32term.c (w32_read_socket): Set mouse_face_hidden after
3595 clearing highlight.
3596
3597 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
3598
3599 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
3600 clearing highlight.
3601
3602 * indent.c (vmotion): Do not reserve one column for continuation
3603 marks on window frames.
3604
3605 2004-04-04 Eli Zaretskii <eliz@gnu.org>
3606
3607 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
3608 from GCC.
3609
3610 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3611
3612 * .gdbinit-union: Remove.
3613
3614 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
3615 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
3616 ($nonvalbits): Remove.
3617 ($valmask): Set it by calling xreload to avoid redundancy.
3618
3619 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
3620 (gdb_emacs_intbits): Remove.
3621
3622 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3623
3624 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
3625
3626 2004-03-30 Kenichi Handa <handa@m17n.org>
3627
3628 * editfns.c (Fformat): Fix initialization of the array info.
3629
3630 2004-03-30 Kim F. Storm <storm@cua.dk>
3631
3632 * xterm.c (x_mouse_click_focus_ignore_position): New var.
3633 (syms_of_xterm): DEFVAR_BOOL it.
3634 (ignore_next_mouse_click_timeout): New var.
3635 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
3636 Use it to filter mouse clicks following focus event.
3637
3638 2004-03-29 David Ponce <david@dponce.com>
3639
3640 * callint.c (Fcall_interactively): Fix last change.
3641
3642 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * eval.c (Fcommandp): Simplify.
3645
3646 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
3647 Extend to handle all kinds of functions.
3648
3649 * lisp.h (Finteractive_form): Declare.
3650
3651 * callint.c (Fcall_interactively): Use it.
3652
3653 2004-03-26 Kim F. Storm <storm@cua.dk>
3654
3655 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
3656 to catch errors in calc_pixel_width_or_height during redisplay.
3657
3658 2004-03-26 Masatake YAMATO <jet@gyve.org>
3659
3660 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
3661
3662 * lisp.h (fix_start_end_in_overlays): Likewise.
3663
3664 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
3665
3666 * editfns.c (Ftranspose_regions): Likewise.
3667
3668 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3669
3670 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
3671
3672 2004-03-19 Richard M. Stallman <rms@gnu.org>
3673
3674 * s/sol2-6.h: Delete previous change.
3675
3676 2004-03-19 Kim F. Storm <storm@cua.dk>
3677
3678 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
3679 to_charpos corresponds to newline in right fringe. Use local
3680 BUFFER_POS_REACHED_P macro.
3681
3682 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3683
3684 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
3685 to compile on non-window system.
3686
3687 2004-03-19 Kim F. Storm <storm@cua.dk>
3688
3689 * dispextern.h (calc_pixel_width_or_height): Add prototype.
3690
3691 * image.c (Qcenter): Move to xdisp.c.
3692
3693 * xdisp.c (Qcenter): Declare here.
3694 (syms_of_xdisp): Intern and staticpro it.
3695 (handle_single_display_prop): Allow space display property on all
3696 platforms.
3697 (display_mode_line): Set mode_line_p before displaying line.
3698 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
3699 handling. Remove complex cases for fringes and scroll-bars.
3700 Add left, right, and center alignment positions. Add text (area)
3701 width/height. Return width or height for image specs.
3702 (produce_stretch_glyph): Improve handling of :align-to. Is now
3703 relative to left of text area by default, but other base offsets
3704 can be specified -- also for text lines.
3705
3706 * term.c (produce_glyphs): Handle IT_STRETCH.
3707 (produce_stretch_glyph): New function to handle space width and
3708 align-to display properties on non-window systems.
3709
3710 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3711
3712 * fileio.c (Fread_file_name): Set completion-ignore-case for
3713 case-insensitive systems.
3714
3715 2004-03-14 Masatake YAMATO <jet@gyve.org>
3716
3717 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
3718 when keymap and cursor are setup.
3719
3720 2004-03-14 Steven Tamm <steventamm@mac.com>
3721
3722 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
3723
3724 2004-03-14 Kim F. Storm <storm@cua.dk>
3725
3726 * dispextern.h (x_find_image_file): Add prototype.
3727
3728 * image.c (x_find_image_file): Make extern.
3729
3730 * xfns.c (x_find_image_file): Remove prototype.
3731
3732 2004-03-13 Eli Zaretskii <eliz@gnu.org>
3733
3734 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
3735
3736 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
3737
3738 2004-03-12 Richard M. Stallman <rms@gnu.org>
3739
3740 * fns.c (internal_equal): New arg PROPS controls comparing
3741 text properties. All callers changed.
3742 (Fequal_including_properties): New function.
3743 (syms_of_fns): defsubr it.
3744
3745 2004-03-12 Kim F. Storm <storm@cua.dk>
3746
3747 Fix image support on MAC. From YAMAMOTO Mitsuharu.
3748
3749 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
3750 (image_background, image_background_transparent): Fix prototypes.
3751
3752 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
3753
3754 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
3755 (x_query_font, x_find_ccl_program, x_set_window_size)
3756 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3757 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3758 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
3759
3760 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
3761 (x_query_font, x_find_ccl_program, x_set_window_size)
3762 (x_make_frame_visible, mac_initialize, XCreatePixmap)
3763 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
3764 (mac_draw_line_to_pixmap): Add prototypes.
3765
3766 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3767
3768 * macterm.c (XTread_socket): Fix mouse click on tool bar.
3769
3770 2004-03-11 Kim F. Storm <storm@cua.dk>
3771
3772 * dispextern.h: Move image related prototypes from xfns.c section
3773 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
3774 HAVE_X_WINDOWS.
3775
3776 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
3777 Move gtkutil.o to new GTK_OBJ list.
3778 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
3779 (GTK_OBJ) [USE_GTK]: New declaration.
3780 (obj): Add $(GTK_OBJ) to list.
3781
3782 2004-03-11 Steven Tamm <steventamm@mac.com>
3783
3784 * image.c [MAC_OSX]: Include sys/stat.h
3785
3786 * macfns.c (syms_of_macfns): Remove definitions of things now
3787 defined in image.c
3788
3789 2004-03-11 Kim F. Storm <storm@cua.dk>
3790
3791 The following changes consolidates the identical/similar image
3792 support code previously found in xfns.c, w32fns.c, and macfns.c
3793 into a new file image.c.
3794
3795 * makefile.w32-in (OBJ1): Add image.o.
3796 ($(BLD)/image.$(O)): Add dependencies.
3797
3798 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
3799 (image.o): Add dependencies.
3800
3801 * image.c: New file with consolidated image support code.
3802 (COLOR_TABLE_SUPPORT): New define to control whether
3803 color table support is available (X only).
3804 (Bitmap_Record): Common name for x_bitmap_record,
3805 w32_bitmap_record, and mac_bitmap_record.
3806 (XImagePtr): Common name for pointer to XImage or equivalent.
3807 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
3808 to XImagePtr on X+MAC, and to HDC on W32.
3809 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
3810 (NO_PIXMAP): Common name for "None" or equivalent.
3811 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
3812 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
3813 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
3814 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
3815 Define with suitable equivalents on W32 and MAC for code sharing.
3816 (XDrawLine): Define on MAC for code sharing.
3817 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
3818 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
3819 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3820 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3821 (x_reference_bitmap, x_create_bitmap_from_data)
3822 (x_create_bitmap_from_file, x_destroy_bitmap)
3823 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3824 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3825 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3826 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3827 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3828 (define_image_type, lookup_image_type, valid_image_p)
3829 (image_error, enum image_value_type, struct image_keyword)
3830 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3831 (make_image, free_image, prepare_image_for_display, image_ascent)
3832 (four_corners_best, image_background, image_background_transparent)
3833 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3834 (make_image_cache, free_image_cache, clear_image_cache)
3835 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3836 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3837 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3838 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3839 (init_image_func_pointer, image_load_quartz2d)
3840 (struct ct_color, init_color_table, free_color_table)
3841 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3842 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3843 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3844 (x_disable_image, x_build_heuristic_mask)
3845 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3846 (TIFF support, GIF support, Ghostscript support): Consolidate image
3847 code from xfns.c, w32fns.c, and macfns.c.
3848 (syms_of_image): Consolidate image related symbol setup here.
3849 (init_image): Consolidate image related initializations here.
3850
3851 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
3852 and init_image. Remove call to init_xfns.
3853
3854 * macterm.h (struct mac_bitmap_record): Add file member.
3855 Not currently used, but simplifies code sharing.
3856
3857 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3858 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3859 (x_reference_bitmap, x_create_bitmap_from_data)
3860 (x_create_bitmap_from_file, x_destroy_bitmap)
3861 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3862 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3863 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3864 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3865 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3866 (define_image_type, lookup_image_type, valid_image_p)
3867 (image_error, enum image_value_type, struct image_keyword)
3868 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3869 (make_image, free_image, prepare_image_for_display, image_ascent)
3870 (four_corners_best, image_background, image_background_transparent)
3871 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3872 (make_image_cache, free_image_cache, clear_image_cache)
3873 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3874 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3875 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3876 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
3877 (init_image_func_pointer, image_load_quartz2d)
3878 (struct ct_color, init_color_table, free_color_table)
3879 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3880 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3881 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3882 (x_disable_image, x_build_heuristic_mask)
3883 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3884 (TIFF support, GIF support, Ghostscript support): Merge with image
3885 code from xfns.c and macfns.c into image.c.
3886 (syms_of_xfns): Move image related symbols to image.c.
3887 (init_external_image_libraries, init_xfns): Remove; initialization
3888 moved to init_image in image.c.
3889
3890 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3891 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3892 (x_reference_bitmap, x_create_bitmap_from_data)
3893 (x_create_bitmap_from_file, x_destroy_bitmap)
3894 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3895 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3896 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3897 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3898 (define_image_type, lookup_image_type, valid_image_p)
3899 (image_error, enum image_value_type, struct image_keyword)
3900 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3901 (make_image, free_image, prepare_image_for_display, image_ascent)
3902 (four_corners_best, image_background, image_background_transparent)
3903 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3904 (make_image_cache, free_image_cache, clear_image_cache)
3905 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3906 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3907 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3908 (struct ct_color, init_color_table, free_color_table)
3909 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3910 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3911 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3912 (x_disable_image, x_build_heuristic_mask)
3913 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3914 (TIFF support, GIF support, Ghostscript support): Merge with image
3915 code from xfns.c and macfns.c into image.c.
3916 (syms_of_xfns): Move image related symbols to image.c.
3917 (init_external_image_libraries, init_xfns): Remove; initialization
3918 moved to init_image in image.c.
3919
3920 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
3921 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3922 (x_reference_bitmap, x_create_bitmap_from_data)
3923 (x_create_bitmap_from_file, x_destroy_bitmap)
3924 (x_destroy_all_bitmaps, x_create_bitmap_mask)
3925 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
3926 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3927 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
3928 (define_image_type, lookup_image_type, valid_image_p)
3929 (image_error, enum image_value_type, struct image_keyword)
3930 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
3931 (make_image, free_image, prepare_image_for_display, image_ascent)
3932 (four_corners_best, image_background, image_background_transparent)
3933 (x_clear_image_1, x_clear_image, x_alloc_image_color)
3934 (make_image_cache, free_image_cache, clear_image_cache)
3935 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
3936 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
3937 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
3938 (struct ct_color, init_color_table, free_color_table)
3939 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
3940 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
3941 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
3942 (x_disable_image, x_build_heuristic_mask)
3943 (XBM support, XPM support, PBM support, PNG support, JPEG support)
3944 (TIFF support, GIF support, Ghostscript support): Merge with
3945 w32fns.c and macfns.c image code into image.c.
3946 (syms_of_xfns): Move image related symbols to image.c.
3947 (init_xfns): Remove; initialization moved to init_image in image.c.
3948
3949 * lisp.h (syms_of_image, init_image): Add protoypes.
3950 (init_xfns): Remove prototype.
3951
3952 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3953 (x_reference_bitmap, x_create_bitmap_from_data)
3954 (x_create_bitmap_from_file, x_destroy_bitmap)
3955 (x_create_bitmap_mask): Move prototypes from dispextern.h.
3956 (gamma_correct) [MAC_OS]: Add prototype.
3957
3958 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
3959 (x_reference_bitmap, x_create_bitmap_from_data)
3960 (x_create_bitmap_from_file, x_destroy_bitmap)
3961 (x_create_bitmap_mask): Move prototypes to dispextern.h.
3962
3963 2004-03-09 Kenichi Handa <handa@etlken2>
3964
3965 * coding.c (decode_coding_emacs_mule): Handle insufficent source
3966 correctly.
3967
3968 2004-03-04 Richard M. Stallman <rms@gnu.org>
3969
3970 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
3971
3972 * window.c (Fdisplay_buffer): Doc fix.
3973
3974 * buffer.c (Fpop_to_buffer): Doc fix.
3975
3976 2004-03-03 Kim F. Storm <storm@cua.dk>
3977
3978 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
3979
3980 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
3981
3982 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
3983
3984 2004-03-02 Richard M. Stallman <rms@gnu.org>
3985
3986 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
3987
3988 2004-03-02 Kenichi Handa <handa@m17n.org>
3989
3990 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
3991
3992 2004-03-02 Kim F. Storm <storm@cua.dk>
3993
3994 * window.h (struct window): New member overlay_arrow_bitmap.
3995
3996 * window.c (make_window): Initialize overlay_arrow_bitmap.
3997
3998 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
3999 implement and integrate multiple overlay arrows with redisplay.
4000 (syms_of_xdisp): DEFVAR_LISP and initialize it.
4001 (last_arrow_position, last_arrow_string): Replace by properties.
4002 (Qlast_arrow_position, Qlast_arrow_string)
4003 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
4004 (syms_of_xdisp): Intern and staticpro them.
4005 (overlay_arrow_string_or_property, update_overlay_arrows)
4006 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
4007 (overlay_arrow_at_row): New functions for multiple overlay arrows.
4008 (redisplay_internal): Use them instead of directly accessing
4009 Voverlay_arrow_position etc. for multiple overlay arrows.
4010 (mark_window_display_accurate): Use update_overlay_arrows.
4011 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
4012 (try_window_id): Use overlay_arrows_changed_p.
4013 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
4014 (display_line): Use overlay_arrow_at_row to check multiple
4015 overlay arrows, and get relevant overlay-arrow-string and
4016 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
4017 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
4018 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
4019
4020 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
4021 (update_window_fringes): Remove unused code.
4022
4023 2004-03-01 Jason Rumney <jasonr@gnu.org>
4024
4025 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
4026
4027 2004-03-01 Juanma Barranquero <lektu@terra.es>
4028
4029 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
4030
4031 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
4032
4033 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4034
4035 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
4036 how many colors can be displayed.
4037
4038 2004-03-01 Kenichi Handa <handa@m17n.org>
4039
4040 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
4041 correctly.
4042
4043 2004-02-28 Kim F. Storm <storm@cua.dk>
4044
4045 * dispnew.c (update_window): Update header line also if there are
4046 no other changes in window (move code after set_cursor label).
4047
4048 * lisp.h (mark_window_display_accurate): Remove prototype.
4049
4050 * window.c (window_loop, Fforce_window_update): Force mode line
4051 updates by setting prevent_redisplay_optimizations_p and
4052 update_mode_lines.
4053
4054 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4055
4056 * xfns.c (x_window): Fix indentation.
4057
4058 * xterm.c (x_calc_absolute_position): Call x_real_positions
4059 to get WM window sizes and use those to calculate position.
4060 (x_set_offset): Remove code commented out.
4061
4062 2004-02-28 Miles Bader <miles@gnu.org>
4063
4064 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
4065
4066 2004-02-28 Kim F. Storm <storm@cua.dk>
4067
4068 * keyboard.c (kbd_buffer_store_event_hold): New function to store
4069 an event into kbd fifo, but with special handling of quit event;
4070 a quit event is saved for later, and further events are discarded
4071 until the saved quit event has been processed.
4072 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
4073 (gen_help_event): Store help event in kbd fifo.
4074 (NREAD_INPUT_EVENTS): Remove.
4075 (read_avail_input): Adapt to new read_socket_hook interface.
4076 Remove allocation and initialization of local input_event buffer,
4077 as read_socket_hook stores events directly in fifo. Allocate and
4078 initialize local hold_quit event to handle postponed quit event
4079 (and store it if set by kbd_buffer_store_event_hold).
4080
4081 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
4082 (gen_help_event): Fix prototype.
4083
4084 * macterm.c (XTread_socket): Remove bufp_r and
4085 numcharsp args. Add hold_quit arg.
4086 Rework to use just one, local, inev input_event. Store inev
4087 directly in fifo using kbd_buffer_store_event_hold.
4088
4089 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
4090 (read_input_waiting): Adapt to new read_socket_hook interface.
4091 Remove allocation and initialization of local input_event buffer,
4092 as read_socket_hook stores events directly in fifo. Allocate and
4093 initialize local hold_quit event to handle postponed quit event
4094 (and store it if set by kbd_buffer_store_event_hold).
4095
4096 * term.c (read_socket_hook): Fix arg list.
4097
4098 * termhooks.h (read_socket_hook): Fix prototype.
4099
4100 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
4101 numcharsp args. Add hold_quit arg.
4102 Rework to use just one, local, inev input_event. Store inev
4103 directly in fifo using kbd_buffer_store_event_hold.
4104
4105 * w32inevt.h (w32_console_mouse_position): Fix prototype.
4106
4107 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
4108 Add hold_quit arg. Rework to use just one, local, inev
4109 input_event. Store inev directly in fifo using
4110 kbd_buffer_store_event_hold. Update count in one place.
4111 Postpone call to gen_help_event until inev is stored; use new
4112 local do_help for this.
4113 Remove local emacs_event in handing of ButtonPress event; just use
4114 inev instead (so no reason to copy it later).
4115
4116 * xsmfns.c (x_session_check_input): Remove numchars arg.
4117
4118 * xterm.c (x_focus_changed, x_detect_focus_change):
4119 Remove numchars arg. Always store event into bufp arg.
4120 Return nothing. Callers changed accordingly.
4121 (glyph_rect): Simplify.
4122 (STORE_KEYSYM_FOR_DEBUG): New macro.
4123 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
4124 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
4125 (current_hold_quit) [USE_GTK]: Add.
4126 (event_handler_gdk): Adapt to new handle_one_xevent.
4127 (handle_one_xevent): Remove bufp_r and numcharsp args.
4128 Add hold_quit arg. Rework to use just one, local, inev
4129 input_event. Store inev directly in fifo using
4130 kbd_buffer_store_event_hold. Update count in one place.
4131 Postpone call to gen_help_event until inev is stored; use new
4132 local do_help for this.
4133 Simplify handling of keysyms (consolidate common code). Fix bug
4134 where count was updated with nchars instead of nbytes.
4135 Remove local emacs_event in handing of ButtonPress event; just use
4136 inev instead (so no reason to copy it later).
4137 Remove `out' label. Rename label `ret' to `done'; add various
4138 `goto done' to clarify code flow in deeply nested blocks.
4139 (x_dispatch_event): Simplify as handle_one_xevent now calls
4140 kbd_buffer_store_event itself.
4141 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
4142 arg. Call handle_one_xevent with new arglist. Store event from
4143 x_session_check_input in fifo.
4144 [USE_GTK]: Setup current_hold_quit.
4145 Decrement handling_signal before unblocking input.
4146 (x_initialize) [USE_GTK]: Initialize current_count.
4147
4148 * xterm.h (x_session_check_input): Fix prototype.
4149
4150 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4151
4152 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
4153
4154 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
4155 macgui.h).
4156
4157 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
4158
4159 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
4160 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
4161 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
4162 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
4163 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
4164 (Bitmap): Remove typedef.
4165 (Pixmap): Change int to GWorldPtr.
4166
4167 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4168
4169 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4170 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
4171 New #define to extract 16-bit depth color components from unsigned
4172 long representation.
4173 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
4174 colors used for masks.
4175 (struct mac_display_info): Add color_p. Remove n_cbits.
4176
4177 * macfns.c: Include sys/types.h and sys/stat.h.
4178 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
4179 Include QuickTime/QuickTime.h.
4180 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4181 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
4182 functions defined in macterm.c.
4183 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
4184 (ZPixmap): New #define for compatibility with xfns.c.
4185 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4186 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4187 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
4188 New functions.
4189 (four_corners_best, x_create_x_image_and_pixmap)
4190 (x_destroy_x_image, unwind_create_frame, x_disable_image)
4191 (x_edge_detection, init_color_table, colors_in_color_table)
4192 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
4193 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
4194 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
4195 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
4196 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
4197 long mixup.
4198 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
4199 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
4200 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
4201 (x_set_cursor_type, Fxw_color_values, valid_image_p)
4202 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
4203 (x_alloc_image_color, clear_image_cache, lookup_image)
4204 (x_find_image_file, xbm_read_bitmap_file_data)
4205 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
4206 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
4207 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
4208 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
4209 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
4210 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
4211 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
4212 #if 0.
4213 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
4214 #if 0. Free white_relief.gc and black_relief.gc.
4215 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
4216 New functions (from xfns.c).
4217 (Fx_create_frame): Record unwind_create_frame.
4218 (Fxw_display_color_p): Use dpyinfo->color_p.
4219 (Fx_display_grayscale_p, Fx_display_planes): Don't use
4220 dpyinfo->n_cbits.
4221 (Fx_display_color_cells): Use dpyinfo->n_planes;
4222 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
4223 (Qheuristic, cross_disabled_images, emboss_matrix)
4224 (laplace_matrix): New variables (from xfns.c).
4225 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
4226 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
4227 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
4228 (image_background_transparent): New function (from xfns.c).
4229 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4230 (image_load_quicktime): Add declaration.
4231 [MAC_OSX] (image_load_quartz2d): Likewise.
4232 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
4233 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
4234 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
4235 (xbm_load_image_from_file, x_laplace_read_row)
4236 (x_laplace_write_row, pbm_read_file): Remove functions.
4237 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
4238 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
4239 (colors_in_color_table): Sync with xfns.c (although not used).
4240 (lookup_rgb_color): Don't lookup color table. Just do gamma
4241 correction.
4242 (COLOR_INTENSITY): New #define (from xfns.c).
4243 (x_disable_image): New function (from xfns.c).
4244 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4245 (x_build_heuristic_mask): Sync with xfns.c.
4246 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4247 (HAVE_PBM): Remove #ifdef.
4248 (pbm_load): Sync with xfns.c. Set img->width and img->height
4249 before IMAGE_BACKGROUND.
4250 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
4251 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
4252 Don't enclose with #if HAVE_PNG.
4253 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
4254 symbol _CGImageCreateWithPNGDataProvider is defined.
4255 Otherwise use image_load_quicktime.
4256 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
4257 [HAVE_PNG] (png_load): Sync with xfns.c.
4258 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
4259 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
4260 HAVE_JPEG.
4261 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
4262 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
4263 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
4264 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
4265 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
4266 (tiff_image_p, tiff_load): Don't enclose declarations with #if
4267 HAVE_TIFF.
4268 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
4269 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
4270 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
4271 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
4272 New functions (from xfns.c).
4273 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
4274 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
4275 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
4276 Don't enclose with #if HAVE_GIF.
4277 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
4278 animated gif. Otherwise use image_load_quicktime.
4279 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
4280 gif_DrawText to avoid conflict with QuickdrawText.h.
4281 [HAVE_GIF] (gif_load): Sync with xfns.c.
4282 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
4283 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
4284 Ghostscript is not supported yet).
4285 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
4286 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
4287 cross_disabled_images (from xfns.c). Remove #if 0 for supported
4288 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4289 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
4290 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
4291 HAVE_PNG. Call EnterMovies to support animated gifs.
4292 Call init_image_func_pointer to bind a symbol
4293 _CGImageCreateWithPNGDataProvider if it is defined.
4294
4295 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
4296 (x_draw_bar_cursor): Sync declaration with xterm.c.
4297 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
4298 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
4299 graphics).
4300 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
4301 (mac_draw_line_to_pixmap, XCreatePixmap)
4302 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
4303 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
4304 New functions.
4305 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
4306 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4307 Cast bits to char *.
4308 (reflect_byte): New function (from w32fns.c).
4309 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
4310 due to byte alignment.
4311 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
4312 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
4313 (XSetForeground): Remove static (now used in macfns.c).
4314 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
4315 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
4316 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
4317 (x_draw_glyph_string_box, x_draw_image_foreground)
4318 (x_draw_image_foreground_1, x_draw_image_glyph_string)
4319 (x_draw_stretch_glyph_string, x_draw_glyph_string)
4320 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
4321 Sync with xterm.c.
4322 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
4323 than the xterm.c version when a strictly horizontal or vertical
4324 line is drawn.
4325 (XTset_terminal_window): Add static.
4326 (x_make_frame_visible): Add UNBLOCK_INPUT.
4327 (x_free_frame_resources): New funcion (from xterm.c).
4328 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
4329 occurs in tool bar area.
4330 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
4331 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
4332 Initialize image cache.
4333 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
4334 Enclose unused functions with #if 0.
4335 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
4336 (decode_mac_font_name): New function to apply code conversions
4337 from a mac font name to an XLFD font name according to its script code.
4338 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
4339 font name to a mac font name according to REGISTRY and ENCODING fields.
4340 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
4341 whose name starts with `.'.
4342 (init_font_name_table): Use decode_mac_font_name. Add both
4343 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
4344 of a font is smJapanese.
4345 (mac_do_list_fonts): New function to list fonts that match a given
4346 pattern.
4347 (x_list_fonts, XLoadQueryFont): Use it.
4348 (XLoadQueryFont): Set rbearing field for each variable width
4349 character to avoid needless redraw.
4350 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
4351
4352 2004-02-26 Kim F. Storm <storm@cua.dk>
4353
4354 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
4355 as read_socket_hook handler on X aborts if buffer is too small
4356 and W32 handler doesn't always check buffer limit.
4357
4358 * xdisp.c (handle_single_display_prop): Handle left-fringe and
4359 right-fringe similar to a display margin image. Specifically,
4360 the characters having the fringe prop are no longer shown, and
4361 we use IT_IMAGE/next_element_from_image with image_id = -1 to
4362 do this. Set fringe bitmap face_id in it->face_id.
4363 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
4364 still realize it->face (i.e. the fringe bitmap face).
4365
4366 2004-02-25 Miles Bader <miles@gnu.org>
4367
4368 * xdisp.c (check_it): Check string/string_pos consistency.
4369 (init_iterator): Initialize string-related fields properly.
4370
4371 2004-02-11 Miles Bader <miles@gnu.org>
4372
4373 * xdisp.c (produce_image_glyph): Force negative descents to zero.
4374
4375 2004-02-10 Miles Bader <miles@gnu.org>
4376
4377 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
4378 BLOCK_INPUT can be nested, so it doesn't make much sense.
4379
4380 2004-02-24 Michael Mauger <mmaug@yahoo.com>
4381
4382 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
4383 (xbm_read_bitmap_data): Use unsigned char for image data.
4384
4385 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
4386
4387 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
4388
4389 2004-02-22 Jason Rumney <jasonr@gnu.org>
4390
4391 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
4392 correctly over other bitmaps.
4393
4394 2004-02-21 Eli Zaretskii <eliz@gnu.org>
4395
4396 * emacs.c (USAGE1): Split into two halves.
4397 (USAGE2): Second half of the old USAGE1.
4398 (USAGE3): Rename from USAGE2.
4399 (USAGE4): Rename from USAGE3.
4400
4401 2004-02-21 Juri Linkov <juri@jurta.org>
4402
4403 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
4404 Fix --multibyte. Move --help, --version to USAGE2. Add alias
4405 --file. Fix -f, -l. Sort options. Untabify.
4406 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
4407
4408 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
4409
4410 * category.c (Fdefine_category, Fcategory_docstring)
4411 (Fget_unused_category, Fset_category_table)
4412 (Fcategory_set_mnemonics): Doc fixes.
4413
4414 2004-02-20 Kim F. Storm <storm@cua.dk>
4415
4416 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
4417 The following changes are relative to the 2004-01-21 revision.
4418 (NREAD_INPUT_EVENTS): Define as max number of input events to read
4419 in one call to read_socket_hook. Value is 8.
4420 (read_avail_input): Separate and rework handling of read_socket_hook
4421 and non-read_socket_hook cases. Use smaller input_event buffer
4422 in read_socket_hook case, and repeat if full buffer is read.
4423 Use new local variable 'discard' to skip input after C-g.
4424 In non-read_socket_hook case, just use a single input_event, and
4425 call kbd_buffer_store_event on the fly for each character.
4426
4427 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4428
4429 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
4430 Remove unused `gu' alternative.
4431
4432 2004-02-19 Andreas Schwab <schwab@suse.de>
4433
4434 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
4435 warning.
4436
4437 2004-02-18 Kim F. Storm <storm@cua.dk>
4438
4439 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
4440 Fix last change.
4441
4442 2004-02-17 Kim F. Storm <storm@cua.dk>
4443
4444 * xdisp.c (fast_find_position): Fix return value of new version;
4445 it was inverted compared to the 21.1 version.
4446 (get_window_cursor_type): Don't look at glyph if NULL.
4447 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
4448
4449 * keyboard.c: Rework previous change; it didn't consider that the
4450 buf array was allocated on the stack.
4451 (prev_read): Remove variable.
4452 (read_avail_input_buf): New static event buffer array.
4453 (in_read_avail_input): New static variable to handle re-entrancy.
4454 (read_avail_input): Change buf to pinter to read_avail_input_buf.
4455 Use in_read_avail_input to handle re-entrance; when re-entered,
4456 fully initialize and use tmp_buf array instead of read_avail_input_buf.
4457 Do not initialize read_avail_input_buf in full here; instead assume it
4458 is always cleared on entry. To ensure that, we clear (just) the
4459 entries that were used before we return.
4460 (init_keyboard): Initialize read_avail_input_buf here.
4461
4462 2004-02-16 Jesper Harder <harder@ifa.au.dk>
4463
4464 * cmds.c (Fend_of_line): Doc fix.
4465
4466 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
4467
4468 * keyboard.c (prev_read): New static variable.
4469 (read_avail_input): Use it to zero out only those slots in buf[]
4470 that were used last time we were called.
4471
4472 2004-02-16 Eli Zaretskii <eliz@gnu.org>
4473
4474 * Makefile.in (obj): Move fringe.o from here...
4475 (XOBJ, MAC_OBJ): ...to here.
4476
4477 2004-02-16 Stephen Eglen <stephen@gnu.org>
4478
4479 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
4480
4481 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
4482
4483 * data.c (Fbyteorder):
4484 * fringe.c (Fdefine_fringe_bitmap):
4485 * xdisp.c (handle_single_display_prop):
4486 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
4487
4488 2004-02-16 Jason Rumney <jasonr@gnu.org>
4489
4490 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
4491
4492 2004-02-15 Steven Tamm <steventamm@mac.com>
4493
4494 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
4495 controlling emulation of a three button mouse with option and
4496 command keys.
4497 (Qreverse, mac_get_enumlated_btn): Handle the emulation
4498 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
4499
4500 2004-02-15 Kim F. Storm <storm@cua.dk>
4501
4502 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
4503
4504 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
4505 Perform byte-swapping.
4506
4507 2004-02-14 Kim F. Storm <storm@cua.dk>
4508
4509 * dispextern.h (struct draw_fringe_bitmap_params): Change member
4510 bits from char to short to facilitate wider bitmaps.
4511 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
4512 member.
4513
4514 * fringe.c (struct fringe_bitmap): Change member bits from char to
4515 short to facilitate 16 bits wide bitmaps. Modify all standard
4516 bitmaps accordingly.
4517 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
4518 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
4519 (draw_fringe_bitmap): Ditto.
4520 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
4521 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
4522 handle up to 16 bits wide bitmaps.
4523 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
4524 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
4525
4526 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
4527 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
4528 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
4529
4530 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
4531 so it is no longer necessary to expand them here.
4532
4533 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
4534
4535 2004-02-12 Kim F. Storm <storm@cua.dk>
4536
4537 * window.c (Fwindow_fringes): Doc fix.
4538
4539 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4540
4541 * xselect.c (x_get_foreign_selection): Add new optional parameter
4542 time_stamp.
4543 (Fx_get_selection_internal): Ditto, pass time_stamp to
4544 x_get_foreign_selection.
4545
4546 * data.c (Fbyteorder): New function.
4547
4548 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4549
4550 * atimer.c: Move include stdio.h to same place as in other files.
4551
4552 * region-cache.c: Ditto.
4553
4554 * sysdep.c: Ditto.
4555
4556 * xfaces.c: Ditto.
4557
4558 2004-02-09 Sam Steingold <sds@gnu.org>
4559
4560 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4561
4562 2004-02-09 Kim F. Storm <storm@cua.dk>
4563
4564 * fringe.c: New file. Move original fringe related declarations
4565 and code from dispextern.h and xdisp.c here.
4566 Rework code to support user defined fringe bitmaps, redefining
4567 standard bitmaps, ability to overlay user defined bitmap with
4568 overlay arrow bitmap, and add faces to bitmaps.
4569 (Voverflow_newline_into_fringe): Declare here.
4570 (enum fringe_bitmap_align): New enum.
4571 (..._bits): All bitmaps are now defined without bitswapping; that
4572 is now done in init_fringe_once (if necessary).
4573 (standard_bitmaps): New array with specifications for the
4574 standard fringe bitmaps.
4575 (fringe_faces): New array.
4576 (valid_fringe_bitmap_id_p): New function.
4577 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
4578 (draw_fringe_bitmap): New function which draws fringe bitmap,
4579 possibly overlaying bitmap with cursor in right fringe or the
4580 overlay arrow in the left fringe.
4581 (update_window_fringes): Do not handle overlay arrow here.
4582 Compare and copy fringe bitmap faces.
4583 (init_fringe_bitmap): New function.
4584 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
4585 define and destroy user defined fringe bitmaps.
4586 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
4587 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
4588 (syms_of_fringe): New function. Defsubr new DEFUNs.
4589 DEFVAR_LISP Voverflow_newline_into_fringe.
4590 (init_fringe_once, init_fringe): New functions.
4591 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4592
4593 * Makefile.in (obj): Add fringe.o.
4594 (fringe.o): New dependencies.
4595
4596 * dispextern.h (FRINGE_ID_BITS): New definition for number of
4597 bits allocated to hold a fringe number. Increase number of bits
4598 from 4 to 8 to allow user defined fringe bitmaps.
4599 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
4600 left_user_fringe_face_id, right_user_fringe_bitmap,
4601 right_user_fringe_face_id.
4602 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
4603 Move to new file fringe.c.
4604 (MAX_FRINGE_BITMAPS): Define here.
4605 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
4606 and overlay_p. Change member which to int.
4607 (struct redisplay_interface): New members define_fringe_bitmap
4608 and destroy_fringe_bitmap.
4609 (valid_fringe_bitmap_id_p): Add prototype.
4610 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
4611
4612 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
4613 arrows.
4614 (update_frame): Do flush_display if force_flush_display_p to
4615 ensure display (specifically fringes) are updated in a timely
4616 manner when resizing the frame by dragging the mouse.
4617 (update_window_line): Update row if overlay arrow changed.
4618 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
4619 or overlay arrow changed.
4620
4621 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
4622 syms_of_fringe, and init_fringe.
4623
4624 * frame.h (struct frame): New member force_flush_display_p.
4625
4626 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
4627 Add prototypes.
4628
4629 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
4630 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
4631 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
4632 Use cursor color for displaying cursor in fringe.
4633 (x_redisplay_interface): Add null handlers for
4634 define_fringe_bitmap and destroy_fringe_bitmap functions.
4635
4636 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
4637 xterm.c to handle overlayed fringe bitmaps and to use cursor color
4638 for displaying cursor in fringe.
4639 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
4640 specific functions to define and destroy fringe bitmaps in fringe_bmp.
4641 (w32_redisplay_interface): Add them to redisplay_interface.
4642 (w32_term_init): Call w32_init_fringe instead of explicitly
4643 defining fringe bitmaps in fringe_bmp array.
4644 (x_delete_display): Call w32_reset_fringes instead of explicitly
4645 destroying fringe bitmaps in fringe_bmp array.
4646
4647 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
4648 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
4649 (continued_bits, continuation_bits, ov_bits, first_line_bits)
4650 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
4651 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
4652 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
4653 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
4654 Move fringe handling vars and code to new file fringe.c.
4655 (handle_display_prop): Handle left-fringe and right-fringe
4656 display properties; store user fringe bitmaps in iterator.
4657 (move_it_in_display_line_to): Handle cursor in fringe at eob.
4658 (clear_garbaged_frames): Set force_flush_display_p if resized.
4659 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
4660 (display_line): Handle cursor in fringe at eob.
4661 (display_line): Set row user fringe bitmaps from iterator.
4662
4663 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
4664 Use cursor color for displaying cursor in fringe.
4665 (x_redisplay_interface): Add null handlers for
4666 define_fringe_bitmap and destroy_fringe_bitmap functions.
4667
4668 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4669
4670 * macfns.c (Fx_change_window_property): Make doc string and
4671 parameters same as for X version.
4672
4673 * w32fns.c (Fx_change_window_property): Ditto.
4674
4675 2004-02-07 Kim F. Storm <storm@cua.dk>
4676
4677 * xdisp.c (hscroll_window_tree): Position cursor near to right
4678 margin in hscrolled window when jumping to end of line (rather
4679 than centering cursor).
4680
4681 * process.c (wait_reading_process_input): Don't do adaptive read
4682 buffering if waiting for a specific process.
4683
4684 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
4685
4686 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
4687 (Fread_minibuffer, Feval_minibuffer)
4688 (Fread_string, Fread_no_blanks_input)
4689 (Fcompleting_read): Doc fixes.
4690 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
4691 completion-regexp-list. Define Qcase_fold_search and staticpro it.
4692 (read_minibuf): Fix initial comment.
4693 (Ftry_completion, Fall_completions, Ftest_completion): Bind
4694 case-fold-search to the value of completion-ignore-case when
4695 checking completion-regexp-list.
4696 (Fdisplay_completion_list): Make it handle arguments that are
4697 symbols. Doc fix.
4698
4699 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4700
4701 * xterm.h: Add declaration of free_frame_menubar.
4702
4703 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
4704 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
4705 (Fx_change_window_property): Add declaration of parameters type and
4706 format. Remove unused variable cons.
4707
4708 * xselect.c: Include stdio,h.
4709
4710 2004-02-05 Kenichi Handa <handa@m17n.org>
4711
4712 * fns.c (Fset_char_table_range): Fix previous change.
4713
4714 * buffer.c (Fset_buffer_multibyte): Fix docstring.
4715
4716 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
4717
4718 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
4719
4720 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
4721
4722 * keymap.c (Vmouse_events): Rename from Vmenu_events.
4723 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
4724
4725 2004-02-04 Kenichi Handa <handa@m17n.org>
4726
4727 * fns.c (Fset_char_table_range): Handle charsets ascii,
4728 eight-bit-control, and eight-bit-graphic correctly.
4729
4730 2004-02-03 Jason Rumney <jasonr@gnu.org>
4731
4732 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
4733
4734 * w32fns.c (x_to_w32_font): Likewise.
4735
4736 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4737
4738 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
4739 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
4740
4741 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
4742 ClientMessages.
4743
4744 * xselect.c: Include termhooks.h and X11/Xproto.h
4745 (x_check_property_data, x_fill_property_data)
4746 (x_property_data_to_lisp, mouse_position_for_drop)
4747 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
4748 (Fx_send_client_event): Move here from xfns.c.
4749 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
4750
4751 * xfns.c (x-send-client-message): Move to xselect.c
4752 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
4753 OUTER_P.
4754 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
4755 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
4756 if vector_ret_p is true.
4757 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
4758
4759 2004-02-02 Eli Zaretskii <eliz@gnu.org>
4760
4761 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
4762 basename of FILE relative to it, not FILE itself.
4763
4764 2004-02-02 Kenichi Handa <handa@m17n.org>
4765
4766 * coding.c (coding_restore_composition): Check invalid
4767 composition data more rigidly.
4768
4769 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
4770
4771 * fileio.c (Fread_file_name_internal): Correctly handle the case
4772 where insert-default-directory is nil.
4773 (Fread_file_name): Always return an empty string if the user exits
4774 with an empty minibuffer. Adapt the docstring accordingly.
4775 (syms_of_fileio): Adapt the docstring of insert-default-directory
4776 to the change in Fread_file_name.
4777
4778 2004-01-29 Eli Zaretskii <eliz@gnu.org>
4779
4780 * alloca.c [!alloca]: Fix the prototype for xfree.
4781
4782 2004-01-29 Kenichi Handa <handa@m17n.org>
4783
4784 * fns.c (string_char_to_byte): Optimize for ASCII only string.
4785 (string_byte_to_char): Likewise.
4786
4787 2004-01-28 Peter Runestig <peter@runestig.com>
4788
4789 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
4790
4791 2004-01-27 Steven Tamm <steventamm@mac.com>
4792
4793 * unexmacosx.c (unexec_copy): Do not copy more than was
4794 requested to prevent overwriting during unexec.
4795
4796 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4797
4798 * process.c (sigchld_handler): Add comment about not calling malloc.
4799
4800 * process.h: Add extern to synch_process_termsig.
4801
4802 2004-01-27 Steven Tamm <steventamm@mac.com>
4803
4804 * macterm.c (make_mac_frame, make_mac_terminal_frame):
4805 Move setting of scroll bars from make_mac_frame to
4806 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
4807
4808 2004-01-26 Richard M. Stallman <rms@gnu.org>
4809
4810 * search.c (Freplace_match): Handle nonexistent
4811 back-references properly.
4812
4813 2004-01-03 Richard M. Stallman <rms@gnu.org>
4814
4815 * window.c (decode_any_window): New function.
4816 (Fwindow_height, Fwindow_width, Fwindow_edges)
4817 (Fwindow_pixel_edges, Fwindow_inside_edges)
4818 (Fwindow_inside_pixel_edges): Use decode_any_window.
4819
4820 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4821
4822 * process.h: synch_process_termsig new variable.
4823
4824 * callproc.c: Define synch_process_termsig.
4825 (Fcall_process): Initiate synch_process_termsig to zero and
4826 check if non-zero and get signal name after subprocess has ended.
4827
4828 * process.c (sigchld_handler): Set synch_process_termsig
4829 if terminated by a signal. synch_process_death setting removed.
4830
4831 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
4832
4833 2004-01-26 Andreas Schwab <schwab@suse.de>
4834
4835 * print.c (print_preprocess): Declare size as EMACS_INT to not
4836 lose bits.
4837 (print_object): Likewise.
4838 * alloc.c (Fpurecopy): Likewise.
4839
4840 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
4841
4842 * window.c (Fwindow_minibuffer_p): Doc fix.
4843
4844 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
4845
4846 * editfns.c (Fformat): Make both passes accept the same set of flags.
4847
4848 2004-01-23 Kenichi Handa <handa@m17n.org>
4849
4850 * fns.c (Fmd5): If OBJECT is a buffer different from the current
4851 one, set buffer to OBJECT temporarily.
4852
4853 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4854
4855 * keyboard.c (kbd_buffer_gcpro): Remove.
4856 (kbd_buffer_store_event, clear_event, Fdiscard_input)
4857 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
4858 Don't initialize and/or maintain the variable any more. It was made
4859 redundant by my commit of 2003-06-15.
4860
4861 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
4862
4863 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4864
4865 * lisp.h: Add undef DECL_ALIGN.
4866
4867 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
4868
4869 * process.c (wait_reading_process_input) [SYNC_INPUT]:
4870 Check interrupt_input_pending explicitly.
4871
4872 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
4873
4874 * keyboard.c (handle_async_input): New fun,
4875 extracted from input_available_signal.
4876 (input_available_signal, reinvoke_input_signal): Use it.
4877
4878 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
4879
4880 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
4881
4882 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
4883 manipulation macros for when tags are in the lower bits.
4884 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
4885 (DECL_ALIGN): New macro.
4886 (DEFUN): Use it.
4887
4888 * lisp.h [ENABLE_CHECKING]: Don't force union type.
4889
4890 * s/darwin.h (__attribute__): Remove outdated workaround.
4891
4892 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
4893
4894 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
4895 Don't check range of malloc address.
4896 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
4897
4898 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
4899
4900 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
4901
4902 2004-01-19 Kenichi Handa <handa@m17n.org>
4903
4904 * fontset.c (fontset_font_pattern): Fix previous change.
4905
4906 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
4907
4908 * xdisp.c (Voverflow_newline_into_fringe)
4909 (move_it_in_display_line_to, redisplay_internal)
4910 (update_window_fringes, redisplay_window, display_line, window):
4911 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
4912 that it compiles without a window-system.
4913 * dispnew.c (direct_output_for_insert, update_window): Likewise.
4914
4915 2004-01-16 Kim F. Storm <storm@cua.dk>
4916
4917 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
4918
4919 * buffer.c (init_buffer_once): Set buffer_defaults and
4920 buffer_local_flags for indicate_buffer_boundaries.
4921 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
4922 default- variable for it.
4923
4924 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
4925 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
4926 New members exact_window_width_line_p and cursor_in_fringe_p for
4927 overflowing newlines into right fringe.
4928 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
4929 and indicate_bottom_line_p for buffer boundaries and scrolling.
4930 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
4931 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
4932 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
4933 and HOLLOW_SQUARE_BITMAP.
4934 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
4935 Add prototypes.
4936
4937 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
4938 instead of related indicator fields.
4939 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
4940 (direct_output_for_insert): Handle exact width lines like
4941 contined lines. Call update_window_fringes.
4942 (update_window): Call update_window_fringes.
4943 (scrolling_window): Don't skip desired rows with changed bitmaps.
4944 Check if fringe bitmaps changes when assigning scrolled rows.
4945
4946 * xdisp.c (Voverflow_newline_into_fringe): New variable.
4947 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
4948 (move_it_in_display_line_to): Overflow newline into fringe for
4949 rows that are exactly as wide as the window.
4950 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
4951 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
4952 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
4953 (fringe_bitmaps): Add new bitmaps.
4954 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
4955 Select proper bitmap for cursor in fringe when appropriate.
4956 Handle alignment of bitmap to top or bottom of row.
4957 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
4958 done by update_window_fringes.
4959 (update_window_fringes, draw_window_fringes): New functions.
4960 (redisplay_internal): Call update_window_fringes in case only
4961 cursor row is updated.
4962 (redisplay_window): Call update_window_fringes.
4963 Explicitly call draw_window_fringes if redisplay was done using
4964 the current matrix or the overlay arrow is in the window.
4965 (try_window_reusing_current_matrix): Mark scrolled rows for
4966 fringe update (to update buffer-boundaries / scrolling icons).
4967 (find_last_unchanged_at_beg_row): Handle exact width lines line
4968 continued lines.
4969 (display_line): Overflow newline into fringe for rows that are
4970 exactly as wide as the window. Don't append space for newline
4971 in this case.
4972 (notice_overwritten_cursor): Explicitly clear cursor bitmap
4973 in fringe as if it had been overwritten.
4974 (erase_phys_cursor): Erase cursor bitmap in fringe.
4975 (syms_of_xdisp): Mark show-trailing-whitespace and
4976 void-text-area-pointer as user options.
4977 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
4978
4979 * xterm.c (x_update_window_end): Call draw_window_fringes.
4980 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4981 in row instead of actually drawing fringe bitmaps.
4982 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4983 (x_draw_window_cursor): Draw cursor in fringe.
4984
4985 * w32term.c (x_update_window_end): Call draw_window_fringes.
4986 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4987 in row instead of actually drawing fringe bitmaps.
4988 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4989 (w32_draw_window_cursor): Draw cursor in fringe.
4990
4991 * macterm.c (x_update_window_end): Call draw_window_fringes.
4992 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
4993 in row instead of actually drawing fringe bitmaps.
4994 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
4995 (mac_draw_window_cursor): Draw cursor in fringe.
4996
4997 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4998
4999 * xterm.c (handle_one_xevent): Don't handle characters that are part
5000 of an old style (XLookupString) compose sequence.
5001
5002 2004-01-15 Kenichi Handa <handa@m17n.org>
5003
5004 * search.c (Freplace_match): Use make_multibyte_string or
5005 make_unibyte_string according to the buffer multibyteness.
5006
5007 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
5008
5009 * alloc.c (struct interval_block, struct string_block)
5010 (struct symbol_block, struct marker_block, live_string_p)
5011 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
5012 Better preserve alignment for objects in blocks.
5013 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
5014
5015 * lread.c (defvar_per_buffer): Remove dead declaration.
5016
5017 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
5018 space size.
5019
5020 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5021
5022 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
5023 if a key press should pop down. Only pop down if a key is pressed
5024 outside the menu/dialog.
5025 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
5026 popup_get_selection.
5027 (create_and_show_dialog): Pass 1 for down_on_keypress to
5028 popup_get_selection.
5029
5030 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5031
5032 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
5033 BLOCK/UNBLOCK_INPUT.
5034
5035 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5036
5037 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
5038 specified.
5039
5040 2004-01-08 Kenichi Handa <handa@m17n.org>
5041
5042 * editfns.c (Fformat): Fix '&' to '&&'.
5043
5044 2004-01-08 Andreas Schwab <schwab@suse.de>
5045
5046 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
5047 size if PSEUDOVECTOR_FLAG is set.
5048
5049 2004-01-07 Kenichi Handa <handa@m17n.org>
5050
5051 * charset.c (Fdeclare_equiv_charset): Fix docstring.
5052
5053 * fontset.c (fontset_ref_via_base): Fix previous change.
5054
5055 2004-01-07 Kim F. Storm <storm@cua.dk>
5056
5057 * process.c (read_process_output): Only activate adaptive
5058 buffering if we read less than 256 bytes at a time.
5059
5060 2004-01-06 Kim F. Storm <storm@cua.dk>
5061
5062 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
5063 object and image object. Return glyph width and height.
5064 (mode_line_string, marginal_area_string): Ditto.
5065
5066 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5067 (marginal_area_string): Fix prototypes.
5068
5069 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
5070 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
5071 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
5072
5073 * keyboard.c (make_lispy_position): Use modified mode_line_string,
5074 buffer_posn_from_coords, and marginal_area_string functions to
5075 include both string object and image object in the lispy position.
5076 Also add actual glyph width and height to position.
5077 (read_key_sequence): Use real buffer position from mouse
5078 event to find keymap property even when click is in marginal area.
5079
5080 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
5081 mode_line_string and marginal_area_string functions to handle
5082 both string object and image object properties.
5083
5084 2004-01-06 Andreas Schwab <schwab@suse.de>
5085
5086 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
5087 character.
5088
5089 2004-01-02 Andreas Schwab <schwab@suse.de>
5090
5091 * macterm.c (emacs_options, x_initialized, same_x_server):
5092 Remove unused (and duplicated) definitions.
5093
5094 2004-01-02 Kim F. Storm <storm@cua.dk>
5095
5096 * process.h (struct Lisp_Process): New members for adaptive read
5097 buffering: adaptive_read_buffering, read_output_delay, and
5098 read_output_skip.
5099
5100 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
5101 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
5102 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
5103 (process_output_delay_count, process_output_skip): New vars.
5104 (Vprocess_adaptive_read_buffering): New variable.
5105 (make_process): Initialize adaptive read buffering members.
5106 (Fstart_process): Set adaptive_read_buffering member.
5107 (deactivate_process): Cleanup adaptive read buffering.
5108 (wait_reading_process_input): Temporarily omit delayed
5109 subprocesses from the set of file descriptors to read from;
5110 adjust the select timeout if we skipped any subprocesses.
5111 (read_process_output): Increase adaptive read buffering delay if
5112 we read less than a full buffer; reduce delay when we read a
5113 full buffer.
5114 (send_process): Simplify using local Lisp_Process var.
5115 Reset adaptive read buffering delay after write.
5116 (init_process): Initialize process_output_delay_count and
5117 process_output_skip.
5118 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
5119
5120 2004-01-01 Jason Rumney <jasonr@gnu.org>
5121
5122 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
5123
5124 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
5125
5126 * print.c (Ferror_message_string): Add hyperlink in the docstring
5127 to the definition of `signal' in the Elisp manual.
5128 * eval.c (Fsignal): Ditto.
5129
5130 2003-12-29 James Clark <jjc@jclark.com>
5131
5132 * fns.c (internal_equal): Return t for two NaN arguments.
5133
5134 2003-12-29 Richard M. Stallman <rms@gnu.org>
5135
5136 * data.c (store_symval_forwarding): Handle setting
5137 default-fill-column, etc., by changing the value in
5138 buffers that use the default.
5139
5140 * minibuf.c (Fset_minibuffer_window): Doc fix.
5141
5142 * fileio.c (choose_write_coding_system): Ignore auto_saving
5143 if using the visited file for auto saves.
5144 (Fwrite_region): Don't update SAVE_MODIFF
5145 if auto-saving in visited file.
5146
5147 2003-12-29 Kenichi Handa <handa@m17n.org>
5148
5149 * dispextern.h (face_font_available_p): Extern it.
5150
5151 * fontset.c (Voverriding_fontspec_alist): New variable.
5152 (lookup_overriding_fontspec): New function.
5153 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
5154 (fontset_font_pattern): Likewise.
5155 (regulalize_fontname): New function.
5156 (Fset_fontset_font): Call regulalize_fontname.
5157 (Fset_overriding_fontspec_internal): New function.
5158 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
5159 Defsubr Sset_overriding_fontspec_internal.
5160
5161 * xfaces.c (face_font_available_p): New function.
5162
5163 2003-12-28 Richard M. Stallman <rms@gnu.org>
5164
5165 * buffer.c (Fother_buffer): Don't crash if BUF is nil
5166 or if its name is nil.
5167
5168 * buffer.c (Fkill_buffer): Don't delete auto-save file
5169 if it's the same as the visited file.
5170
5171 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
5172
5173 * coding.c (Fcheck_coding_system): Doc fix.
5174
5175 2003-12-28 Kim F. Storm <storm@cua.dk>
5176
5177 * Makefile.in (eval.o): Depend on dispextern.h.
5178
5179 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
5180 image glyph using image's ascent.
5181 (mode_line_string): Return image glyph as object clicked on.
5182 Adjust y0 for image glyph using image's ascent.
5183
5184 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
5185 (struct glyph): New members, ascent and descent. Used to save
5186 this glyph's ascent and descent, instead of having.
5187 (struct glyph): Declare member face_id using FACE_ID_BITS.
5188 (find_hot_spot): Add prototype.
5189
5190 * keyboard.c (Qimage): Remove extern (now in lisp.h).
5191 (QCmap): Declare extern.
5192 (make_lispy_position): When position is inside image hot-spot,
5193 use hot-spot element's id as posn element.
5194
5195 * lisp.h (IMAGEP): New macro to test for image object type.
5196 (Qimage): Declare extern.
5197
5198 * macfns.c (Qimage): Remove extern (now in lisp.h).
5199 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5200
5201 * macterm.c (Qface, Qmouse_face): Remove unused externs.
5202
5203 * w32fns.c (Qimage): Remove extern (now in lisp.h).
5204 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5205
5206 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
5207
5208 * w32term.c (Qface, Qmouse_face): Remove unused externs.
5209
5210 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
5211 pointer types.
5212 (Qrelative_width, Qalign_to): Remove unused variables.
5213 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
5214 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
5215 image maps.
5216 (x_y_to_hpos_vpos): Return glyph relative coordinates through
5217 new dx and dy args.
5218 Remove buffer_only_p arg (always 0). Simplify code accordingly.
5219 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
5220 than row's ascent and height, to get sensible height on tall rows.
5221 (build_desired_tool_bar_string): Remove Qimage extern.
5222 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
5223 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
5224 image glyph is alone on the last line.
5225 (append_glyph, append_composite_glyph, produce_image_glyph)
5226 (append_stretch_glyph): Set glyph's ascent and descent.
5227 (on_hot_spot_p): New function to check if position is inside an
5228 rectangular, circular, or polygon-shaped image hot-spot,
5229 (find_hot_spot): New function to search for image hot-spot.
5230 (Flookup_image_map): New defun to search for image hot-spot.
5231 (define_frame_cursor1): New aux function to determine frame pointer.
5232 (note_mode_line_or_margin_highlight, note_mouse_highlight):
5233 Handle `pointer' text property and :pointer image property to
5234 control frame pointer shape. Detect image hot-spots for pointer
5235 and help_echo properties. Use define_frame_cursor1.
5236 (note_mouse_highlight): Use Vvoid_text_area_pointer.
5237 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
5238 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
5239
5240 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
5241
5242 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
5243 (Qimage): Remove extern (now in lisp.h).
5244 (valid_image_p, parse_image_spec): Use IMAGEP macro.
5245
5246 * xmenu.c (show_help_event): Remove unused code.
5247
5248 * xterm.c (Qface, Qmouse_face): Remove unused externs.
5249 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
5250 row's ascent and descent, to get a sensible height on tall rows.
5251
5252 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
5253
5254 * minibuf.c (Fcompleting_read): Undo previous change.
5255
5256 2003-12-25 Lars Hansen <larsh@math.ku.dk>
5257
5258 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
5259 Arguments GCPRO'ed in call to file name handler.
5260
5261 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
5262
5263 * termcap.c (tgetst1): Scan for "%pN"; if all
5264 N are continuous in [1,9], remove all "%pN".
5265
5266 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5267
5268 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
5269
5270 * xfaces.c (lface_fully_specified_p): Take into account that
5271 MAC OS always have unspecified stipple.
5272
5273 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5274
5275 * tparam.c (tparam1): Add handling for `%pN', which
5276 means use param N for the next substitution.
5277
5278 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
5279
5280 * xfaces.c (Fcolor_gray_p): Fix omission bug:
5281 In case `frame' is nil, consult the selected frame.
5282 (Fcolor_supported_p): Likewise.
5283
5284 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
5285
5286 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
5287 Doc fixes.
5288
5289 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
5290 and an integer. Adapt the introductory comment accordingly.
5291 (Fread_from_minibuffer): Delete code moved into read_minibuf.
5292 Doc fix.
5293 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
5294 read_minibuf.
5295 (Fcompleting_read): Delete code moved into read_minibuf.
5296 (Ftest_completion): Make it handle obarrays and hash tables correctly.
5297
5298 2003-12-03 Kenichi Handa <handa@m17n.org>
5299
5300 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
5301 encoding sequence.
5302
5303 2003-12-01 Kenichi Handa <handa@m17n.org>
5304
5305 * composite.c (syms_of_composite): Don't make the compostion hash
5306 table week.
5307
5308 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
5309
5310 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
5311 * textprop.c (Fget_char_property_and_overlay): New function.
5312 (syms_of_textprop): Defsubr it.
5313
5314 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5315
5316 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
5317 to compile on terminal configuration.
5318
5319 * fileio.c (Fread_file_name): Check use_file_dialog also before
5320 calling Fx_file_dialog.
5321
5322 * fns.c: use_file_dialog: New variable.
5323 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
5324
5325 2003-11-29 Kim F. Storm <storm@cua.dk>
5326
5327 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
5328 (syms_of_msdos): Don't intern and staticpro them.
5329
5330 2003-11-27 Kim F. Storm <storm@cua.dk>
5331
5332 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
5333 coordinates relative to glyph at posn. If glyph is an image,
5334 return that as object at posn. Callers changed.
5335 (mode_line_string, marginal_area_string): Calculate and return
5336 pixel coordinates relative to glyph. Callers changed.
5337
5338 * dispextern.h (buffer_posn_from_coords, mode_line_string)
5339 (marginal_area_string): Fix prototypes.
5340 (window_box_left_offset, window_box_right_offset): Add prototypes.
5341
5342 * frame.h (get_specified_cursor_type, get_window_cursor_type):
5343 Remove prototypes.
5344
5345 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
5346
5347 * keyboard.c (make_lispy_position): Add x and y coordinates
5348 relative to the current glyph as 7th element of position.
5349 If glyph is an image, return it in the object element.
5350 (read_key_sequence): Skip checks for keymap property in cases
5351 where POSN_STRING is not a string (e.g. an image).
5352
5353 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
5354 (Vshow_text_cursor_in_void): New variable.
5355 (glyph_to_pixel_coords): Don't use negative hpos.
5356 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
5357 (append_stretch_glyph): Change ascent arg to be actual value
5358 in pixels rather than ratio to height. Callers changed.
5359 (calc_pixel_width_or_height): New aux function, implementing
5360 pixel based artihmetic for glyph widths and heights.
5361 (produce_stretch_glyph): Use calc_pixel_width_or_height for
5362 :width, :height, :align-to, and :ascent, thus allowing these to
5363 be specified in pixels as well as multiples of characters.
5364 Don't produce stretch glyphs with zero width or height.
5365 (get_specified_cursor_type): Declare static.
5366 (get_window_cursor_type): Declare static. Add glyph arg to be
5367 able to know when cursor is on an image; always substitute
5368 hollow-box cursor for filled-box cursor on images, to avoid
5369 negative images and flicker when blinking the cursor.
5370 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
5371 (note_mode_line_or_margin_highlight): Use non-text cursor rather
5372 than vertical scroll-bar cursor in display margins.
5373 (note_mouse_highlight): Use non-text cursor rather than text
5374 cursor in fringes and over images in the text area.
5375 Use non-text cursor when mouse pointer is outside editable text,
5376 i.e. in the void after end-of-line or end-of-buffer; this was
5377 already done for W32, but is now standard for all systems --
5378 user can toggle show-text-cursor-in-void to get old behaviour.
5379 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
5380 Vdisplay_pixels_per_inch.
5381
5382 2003-11-25 Andreas Schwab <schwab@suse.de>
5383
5384 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
5385 EMACS_INT to not lose bits.
5386 (Ffillarray): Don't set bits beyond the size of a bool vector.
5387
5388 2003-11-25 Kim F. Storm <storm@cua.dk>
5389
5390 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
5391 define this defun on systems that cannot use stderr as lvalue.
5392
5393 2003-11-24 Gerd Moellmann <gerd@gnu.org>
5394
5395 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
5396 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
5397 ld's default is incompatible with unexec.
5398
5399 2003-11-23 Kim F. Storm <storm@cua.dk>
5400
5401 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
5402 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
5403 (Fforce_window_update): New defun.
5404 (syms_of_window): Defsubr it.
5405 (Fset_window_margins, Fset_window_fringes): Doc fix.
5406
5407 * print.c (Fredirect_debugging_output): New defun.
5408 (syms_of_print): Defsubr it.
5409
5410 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
5411
5412 * fns.c (Fset_char_table_parent): Doc fix.
5413
5414 2003-11-22 Kim F. Storm <storm@cua.dk>
5415
5416 * dispnew.c (buffer_posn_from_coords): Return actual row/column
5417 for glyph clicked on, rather than (unused) pixel positions.
5418 (mode_line_string, marginal_area_string): Change X and Y args to
5419 pointers for returning actual row/column for glyph clicked on.
5420 Simplify and optimize loops.
5421
5422 * dispextern.h (mode_line_string, marginal_area_string):
5423 Update prototypes.
5424
5425 * keyboard.c (make_lispy_position): New function for generating
5426 mouse click positions from frame and pixel coordinates.
5427 Enhanced to return buffer position and actual row/column for
5428 events outside the text area using updated mode_line_string and
5429 marginal_area_string functions.
5430 Return left-fringe and right-fringe clicks as such, rather than
5431 clicks in text area.
5432 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
5433 pixel_to_glyph_coords, as we never use the results.
5434 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
5435 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
5436 Eliminate unused code in WHEEL_EVENT handling.
5437 (make_lispy_movement): Use make_lispy_position.
5438
5439 * window.c (coordinates_in_window): Remove redundant tests.
5440 Fix returned X pixel value for left-margin.
5441
5442 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
5443 mode_line_string and marginal_area_string parameters.
5444
5445 2003-11-22 Lars Hansen <larsh@math.ku.dk>
5446
5447 * w32.c (struct the_group, getgrgid): Add.
5448 * mac.c (struct my_group, getgrgid): Add.
5449
5450 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5451
5452 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
5453
5454 2003-11-21 Lars Hansen <larsh@math.ku.dk>
5455
5456 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
5457 include in call to file name handler. Optionally translate numeric
5458 UID and GID to strings. Update docstring.
5459 (directory_files_internal): Add parameter ID-FORMAT.
5460 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
5461 include in call to file name handler and call to
5462 directory_files_internal. Update Docstring.
5463 (Fdirectory_files): Add dummy parameter in call to
5464 directory_files_internal.
5465 * lisp.h (Qinteger): Add.
5466 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
5467 (Ffile_attributes): Add parameter.
5468 * data.c (Qinteger): Export.
5469
5470 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
5471
5472 * fns.c (Freverse, Fnreverse): Doc fixes.
5473
5474 2003-11-19 Kim F. Storm <storm@cua.dk>
5475
5476 * xdisp.c (init_iterator): Initialize it->start to position
5477 before reseating (in case start position is invisible).
5478 (init_to_row_start): Set it->start to row-start.
5479 (redisplay_window): Accept optional_new_start if start position
5480 is invisible (in which case IT_CHARPOS overshoots PT).
5481 (display_line): Setup row->start from it->start (rather than
5482 it->current which is wrong if first char on line is invisible).
5483 When done, reseat it->start to it->current (= start of next row).
5484 (expose_area): Fix exposure of text area when first char (e.g. TAB)
5485 is only partially visible.
5486
5487 * dispextern.h (struct it): New member start.
5488
5489 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5490
5491 * alloc.c (make_float, Fcons): Clear the markbit at init time.
5492 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
5493 of block_index outside of the macro call.
5494 (Fgarbage_collect): Remove null code.
5495
5496 * m/amdx86-64.h: Don't redefine XPNTR.
5497
5498 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
5499 of VALMASK.
5500
5501 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
5502 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
5503 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
5504
5505 * lisp.h (VALMASK): Only define for non-union type.
5506 (MARKBIT): Remove.
5507 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
5508 (XTYPE): Define unconditionally.
5509 (XSETTYPE): Remove one more remnant.
5510 (EQ): Define differently for the union and non-union cases.
5511 (INTMASK): New bit mask.
5512 (struct Lisp_Marker): Move down to prepare for upcoming patch.
5513 (GC_EQ): Delegate to EQ.
5514
5515 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
5516
5517 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5518
5519 * xterm.c (x_window_to_scroll_bar): Move check of display to
5520 where window_id is compared.
5521
5522 2003-11-17 Kim F. Storm <storm@cua.dk>
5523
5524 * dispextern.h (struct it): New member first_vpos.
5525
5526 * xdisp.c (start_display): Set it->first_vpos.
5527 (try_window_id): Use first_vpos to start display in first _text_
5528 line if no reusable lines at start of window with header line.
5529
5530 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5531
5532 * w32fns.c (XPutPixel):
5533 * w32bdf.c (w32_init_bdf_font):
5534 * sunfns.c (sel_read):
5535 * process.c (Fmake_network_process):
5536 * frame.c (store_frame_param):
5537 * fontset.c (Fset_fontset_font):
5538 * emacs.c (shut_down_emacs):
5539 * ccl.c (ccl_driver): Remove period at end of error message.
5540
5541 * config.in: Regenerate.
5542
5543 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5544 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5545 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
5546 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
5547 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
5548
5549 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
5550
5551 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
5552 (XTmouse_position, handle_one_xevent): Pass Display* to
5553 x_window_to_scroll_bar.
5554 (x_window_to_scroll_bar): Take a Display* argument.
5555 Check that display for frame is equal to Display* argument.
5556 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
5557 x_display_info_for_display instead. Use Display in xev instead
5558 of GDK_DISPLAY.
5559 (x_dispatch_event): Call x_display_info_for_display.
5560 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
5561 (x_connection_closed): Call xg_display_close for GTK.
5562 (x_term_init): Call xg_display_open for additional displays.
5563 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
5564 for GTK.
5565
5566 * xmenu.c (single_menu_item, mouse_position_for_popup)
5567 (x_activate_menubar): Formatting adjustments.
5568
5569 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
5570 adjustments.
5571
5572 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
5573 (xg_display_close, xg_create_default_cursor)
5574 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
5575 handling.
5576 (xg_left_ptr_cursor): Remove.
5577 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
5578 cursor here.
5579 (xg_win_to_widget): Take Display* argument, call
5580 gdk_xid_table_lookup_for_display.
5581 (xg_create_frame_widgets, xg_get_file_name, create_menus)
5582 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
5583 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
5584 in FRAME_X_DISPLAY_INFO.
5585 (xg_get_scroll_id_for_window): Take Display* argument.
5586 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
5587 (xg_initialize): Remove xg_left_ptr_cursor.
5588
5589 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
5590 Display* argument.
5591 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
5592
5593 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5594
5595 * xterm.c (x_detect_focus_change): Do not change focus frame for
5596 Enter/LeaveNotify if the current focus frame has explicit focus.
5597
5598 2003-11-14 Kim F. Storm <storm@cua.dk>
5599
5600 * dispnew.c (update_text_area): Fix redisplay error when hscroll
5601 is active and first glyph is only partially visible.
5602
5603 2003-11-13 Kenichi Handa <handa@m17n.org>
5604
5605 * xdisp.c (select_frame_for_redisplay): New function.
5606 (redisplay_internal): Record also selected_frame for
5607 unwind_redisplay. Call select_frame_for_redisplay before
5608 redrawing each frame.
5609 (unwind_redisplay): Argument changed to a cons.
5610
5611 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
5612
5613 * fns.c (Fstring_to_multibyte): Doc fix.
5614
5615 2003-11-11 Kenichi Handa <handa@m17n.org>
5616
5617 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5618
5619 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5620
5621 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
5622 program specified positions.
5623
5624 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5625
5626 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
5627
5628 2003-11-08 Kenichi Handa <handa@m17n.org>
5629
5630 * Makefile.in (lisp): Add kannada.el.
5631 (shortlisp): Likewise.
5632
5633 2003-11-07 Kenichi Handa <handa@m17n.org>
5634
5635 * coding.c (coding_allocate_composition_data):
5636 Reset coding->composing to COMPOSITION_NO.
5637 (coding_restore_composition): Detect invalid composition data.
5638 Give Fstring and Fvector a Lispy integer, not C int.
5639
5640 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
5641
5642 * floatfns.c (Flogb): Don't use VALMASK.
5643
5644 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
5645 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
5646
5647 * lisp.h (XINT): Move the cast to clarify what is going on.
5648 (GCTYPEMASK, XSETTYPE): Remove.
5649 (XGCTYPE): Make it an alias of XTYPE.
5650
5651 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5652
5653 * xterm.c (x_term_init): Fix formatting.
5654
5655 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5656
5657 * gtkutil.h (xg_have_tear_offs): Declare.
5658 (xg_keep_popup, xg_did_tearoff): Remove.
5659
5660 * gtkutil.c: Remove variable xg_did_tearoff.
5661 (xg_have_tear_offs): New function.
5662 (tearoff_remove): Just decrease xg_detached_menus.
5663 (tearoff_activate): Increase xg_detached_menus and call
5664 tearoff_remove when tearoff is removed.
5665 (xg_keep_popup): Remove function.
5666 (create_menus): Give add_tearoff_p as argument to recursive
5667 call to create_menus.
5668 (xg_create_widget): Use variables instead of multiple
5669 strcmp. Tell create_menus to create tear off only for
5670 menu bar menus.
5671 (xg_update_menubar): Change title for a detached menu also.
5672 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
5673 of deep_p.
5674 (xg_initialize): Initialize xg_detached_menus, remove
5675 initialization of xg_did_tearoff.
5676
5677 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
5678 xg_have_tear_offs returns non-zero.
5679 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
5680 call to xg_keep_popup.
5681
5682 2003-11-01 Andrew Choi <akochoi@shaw.ca>
5683
5684 * macterm.c (XTread_socket): Handle menubar selection and grow
5685 window only for mouseDown events.
5686
5687 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5688
5689 * xterm.c (x_term_init): For GTK part, increase x_initialized
5690 to check for more than one display. Use error instead of return 0.
5691
5692 2003-10-31 Andrew Choi <akochoi@shaw.ca>
5693
5694 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
5695 (copy_dysymtab): Call it.
5696
5697 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
5698
5699 * eval.c (Fdefvaralias): Doc fix.
5700
5701 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
5702
5703 * data.c (Fsetplist): Doc fix.
5704
5705 2003-10-14 Lute Kamstra <lute@gnu.org>
5706
5707 * window.c (Fset_window_fringes): Clarify docstring.
5708
5709 2003-10-14 Kim F. Storm <storm@cua.dk>
5710
5711 * window.c (Fset_window_margins): Simplify arg checking.
5712
5713 2003-10-13 Richard M. Stallman <rms@gnu.org>
5714
5715 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
5716 (print_partial_compiled_pattern): Replace assert with a printout.
5717 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
5718
5719 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
5720
5721 * window.c (Fset_window_margins): Allow only integers as args.
5722 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
5723 Doc fixes.
5724
5725 2003-10-13 Lute Kamstra <lute@gnu.org>
5726
5727 * window.c (Fset_window_fringes): Elaborate docstring.
5728
5729 2003-10-12 Andrew Choi <akochoi@shaw.ca>
5730
5731 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
5732
5733 * s/darwin.h (GC_MARK_STACK): Define.
5734
5735 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5736
5737 * window.c (shrink_windows): New function.
5738 (size_window): Call shrink_windows to calculate window sizes when
5739 shrinking frame with more than one window.
5740
5741 2003-10-12 Kim F. Storm <storm@cua.dk>
5742
5743 * xdisp.c (compute_fringe_widths): Doc fix.
5744
5745 2003-10-08 Kenichi Handa <handa@m17n.org>
5746
5747 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
5748
5749 2003-10-07 Kenichi Handa <handa@m17n.org>
5750
5751 * coding.c (Qcoding_system_define_form): New variable.
5752 (syms_of_coding): Intern and staticpro it.
5753 (Fcheck_coding_system): Try to autoload the definition of
5754 CODING-SYSTEM.
5755
5756 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
5757
5758 * fns.c (Frequire): Doc fix.
5759
5760 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5761
5762 * xfns.c (Fx_send_client_event): New function as a base for
5763 manipulating extended window manager hints.
5764 (Fx_send_client_event): Remove unused variable s.
5765
5766 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
5767 that function is removed.
5768
5769 * xterm.c (x_set_offset): Use move_offset_left/top instead of
5770 x/y_pixels_outer_diff.
5771 (x_check_expected_move): Calculate move_offset_left/top.
5772
5773 * xterm.h (struct x_output): New members: move_offset_top/left.
5774
5775 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
5776 call x_set_offset directly.
5777
5778 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
5779
5780 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
5781
5782 * xterm.c (x_delete_display): Free font names and font_encoder
5783 in dpyinfo->font_table.
5784
5785 * xfns.c (Fx_close_connection): Only call XFreeFont here.
5786 Move xfree of font names to x_delete_display.
5787
5788 * xterm.h (struct x_display_info): New member, wm_type.
5789 (struct x_output): New members, expected_top/left and
5790 check_expected_move.
5791
5792 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
5793 is received.
5794 (handle_one_xevent): Rename x_check_expected_move from
5795 x_check_fullscreen_move.
5796 (x_set_offset): Only add WM decoration sizes to modified_top/left
5797 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
5798 (x_check_expected_move): Rename from x_check_fullscreen_move.
5799 Removed fullscreen specific code. Use check_expected_move,
5800 expected_left/top instead. Also, set wm_type.
5801 (x_term_init): Initialize wm_type to unknown.
5802
5803 * frame.c (x_fullscreen_move): Remove addition of WM decoration
5804 sizes to move_x/y.
5805
5806 2003-10-03 Kenichi Handa <handa@m17n.org>
5807
5808 * macterm.c (x_load_font): Clear all members of FONTP before start
5809 filling them.
5810
5811 2003-10-02 Kenichi Handa <handa@m17n.org>
5812
5813 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
5814 before calling find_ccl_program_func. Call find_ccl_program_func
5815 only when fontp->font_encoder is not NULL.
5816
5817 * xterm.c (x_load_font): Clear all members of FONTP before start
5818 filling them.
5819
5820 2003-10-03 John Paul Wallington <jpw@gnu.org>
5821
5822 * keymap.c (map_keymap): Don't abort when binding is a vector.
5823
5824 2003-10-02 Jason Rumney <jasonr@gnu.org>
5825
5826 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
5827 Sync dependencies with Makefile.in.
5828 (alloca.o): Remove.
5829
5830 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
5831 filling them.
5832
5833 * w32bdf.c (w32_load_bdf_font): Likewise.
5834
5835 2003-09-30 Richard M. Stallman <rms@gnu.org>
5836
5837 * term.c (set_tty_color_mode): Calculate current_mode_spec
5838 regardless of value of VAL.
5839
5840 * intervals.c (graft_intervals_into_buffer):
5841 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
5842 Handle over_used when splitting UNDER.
5843
5844 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5845
5846 * regex.c (regex_compile): Free the stack when returning from function.
5847
5848 2003-09-28 Kenichi Handa <handa@m17n.org>
5849
5850 * fontset.c (Finternal_char_font): Change return value to
5851 cons (FONT-NAME . GLYPH-CODE).
5852
5853 2003-09-28 Eli Zaretskii <eliz@gnu.org>
5854
5855 * term.c (tty_setup_colors): Treat any negative argument as -1.
5856
5857 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
5858
5859 * process.c (send_process): Delete unused temp_buf.
5860
5861 2003-09-26 Dave Love <fx@gnu.org>
5862
5863 * xterm.c (x_bitmap_mask): Declare.
5864
5865 2003-09-25 Dave Love <fx@gnu.org>
5866
5867 * Makefile.in (fns.o): Depend on md5.h.
5868
5869 2003-09-25 Kim F. Storm <storm@cua.dk>
5870
5871 * window.c (set_window_buffer): Fix redisplay problems when
5872 switching between buffers with different display margin widths.
5873
5874 2003-09-23 Kim F. Storm <storm@cua.dk>
5875
5876 * process.c (set_socket_option): Fix :bindtodevice option.
5877 (Fset_network_process_option): Update process contact list when
5878 setting option succeeds.
5879 (Fmake_network_process): Doc fix.
5880
5881 2003-09-23 Dave Love <fx@gnu.org>
5882
5883 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
5884
5885 2003-09-22 Eli Zaretskii <eliz@gnu.org>
5886
5887 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
5888 color mode is an integer number (it could be -1).
5889
5890 2003-09-22 Richard M. Stallman <rms@gnu.org>
5891
5892 * intervals.c (graft_intervals_into_buffer): Correct the main loop
5893 in the case where OVER is longer than UNDER.
5894
5895 2003-09-22 Masatake YAMATO <jet@gyve.org>
5896
5897 * window.c (Fset_window_scroll_bars): Validate the value of
5898 `vertical_type'.
5899
5900 2003-09-21 Kim F. Storm <storm@cua.dk>
5901
5902 * frame.c (Vdefault_frame_scroll_bars): New variable.
5903 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
5904 (syms_of_frame): DEFVAR_LISP it, and initialize according to
5905 window-system default scroll bar position.
5906
5907 * window.c (Fwindow_scroll_bars): Doc fix.
5908
5909 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5910
5911 * xterm.c (x_set_offset): Take window manager decorations into account.
5912
5913 2003-09-19 Richard M. Stallman <rms@gnu.org>
5914
5915 * atimer.h: Don't include lisp.h.
5916 (P_): Define it here (as well as elsewhere).
5917
5918 * print.c (Fprin1_to_string): Move the PRINTPREPARE
5919 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
5920
5921 * data.c (Fvariable_binding_locus): New function.
5922 (syms_of_data): defsubr it.
5923 (Flocal_variable_p): Delete duplicate call to indirect_variable.
5924
5925 2003-09-18 Dave Love <fx@gnu.org>
5926
5927 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
5928
5929 * process.c (Fnetwork_interface_info): Fix type error.
5930 (Fnetwork_interface_list): Doc fix.
5931 (read_process_output, read_process_output): Delete unused var.
5932
5933 2003-09-17 Kim F. Storm <storm@cua.dk>
5934
5935 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
5936 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
5937 (Fnetwork_interface_info): Check that ifreq struct has required
5938 fields before accessing them; this requires that those fields are
5939 defined as macros, which may be too restrictive on some platforms,
5940 but it is better than failing on other platforms.
5941 (syms_of_process): Only defsubr above fns when included.
5942
5943 2003-09-17 Dave Love <fx@gnu.org>
5944
5945 * unexalpha.c: Don't include varargs.h.
5946
5947 2003-09-17 Kim F. Storm <storm@cua.dk>
5948
5949 * process.c (Fset_process_sentinel): Add sentinel to childp plist
5950 for network process.
5951 (socket_options): Add `:' prefix to option names. Add optbit field.
5952 (set_socket_option): Remove no_error arg and special handling of s < 0.
5953 Return 1<<optbit for known option, 0 for unknown.
5954 Do not interpret 0 as false for boolean option (only nil).
5955 Pass failed option and value to report_file_error.
5956 (Fset_network_process_options): Replace by Fset_network_process_option.
5957 (Fset_network_process_option): New function to set just one option.
5958 (Fmake_network_process): Allow :coding arg to be a cons.
5959 Allow :server arg to be an integer specifying backlog size.
5960 Remove :options arg, and allow options to be specified directly
5961 as :KEY, VALUE pairs. Parse these options before binding socket.
5962 As before, :reuseaddr t is default for a server process, but this
5963 can now be disabled by specifying :reuseaddr nil.
5964 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
5965 (init_process): Availability of network options is now checked with
5966 simpler syntax (featurep 'make-network-process :OPTION); use loop to
5967 setup features.
5968 (syms_of_process): Fix defsubr's for the replaced functions.
5969
5970 2003-09-16 Dave Love <fx@gnu.org>
5971
5972 * Makefile.in: Depend on coding.h.
5973
5974 2003-09-14 Kim F. Storm <storm@cua.dk>
5975
5976 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
5977 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
5978 (syms_of_process): Defsubr them.
5979
5980 * config.in: Regenerate.
5981
5982 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5983
5984 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
5985 * m/news-r6.h (XUNMARK): Remove.
5986 * m/mips.h (XUNMARK): Remove.
5987 * m/mips-siemens.h (XUNMARK): Remove.
5988 * m/iris4d.h (XUNMARK): Remove.
5989 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
5990
5991 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5992
5993 * lisp.h (VALBITS): Don't remove 1 for the markbit.
5994 (union Lisp_Object): Use unsigned int for types. Remove markbit.
5995 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
5996 (XTYPE): Use unsigned right-shift.
5997 (XMARKBIT, XMARK, XUNMARK): Remove.
5998
5999 * alloc.c (init_intervals, init_symbol, init_marker):
6000 Don't preallocate anything.
6001 (Fgarbage_collect, mark_object): Ignore the markbit.
6002
6003 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
6004
6005 2003-09-08 Lute Kamstra <lute@gnu.org>
6006
6007 * xdisp.c (pint2hrstr): New function.
6008 (decode_mode_spec): Add `%i' and `%I' specs.
6009 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
6010 for `mode-line-format'.
6011
6012 2003-09-07 Andreas Schwab <schwab@suse.de>
6013
6014 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
6015 avoid warning.
6016
6017 2003-09-07 Eli Zaretskii <eliz@gnu.org>
6018
6019 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
6020
6021 2003-09-03 Kim F. Storm <storm@cua.dk>
6022
6023 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
6024 change (superseded by 2002-08-30 change); the default blink-off
6025 cursor is now again "no cursor".
6026
6027 2003-09-01 Jason Rumney <jasonr@gnu.org>
6028
6029 * makefile.w32-in (alloca.o): Remove.
6030 (coding.o): Depend on intervals.h
6031 (emacs.o, bytecode.o): Depend on window.h
6032
6033 2003-09-01 Dave Love <fx@gnu.org>
6034
6035 * Makefile.in (alloca.o): Remove commands.
6036 (coding.o): Depend on intervals.h composite.h window.h.
6037 (emacs.o): Depend on window.h keyboard.h keymap.h.
6038 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
6039 (bytecode.o): Depend on window.h.
6040
6041 2003-08-31 Jason Rumney <jasonr@gnu.org>
6042
6043 * w32term.c (w32_per_char_metric): Allow cached metrics to be
6044 returned even when font_type is unknown.
6045
6046 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
6047
6048 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6049
6050 * xterm.c (x_term_init): Initialize new fields in x_display_info.
6051
6052 * xterm.h (struct x_display_info): Add red/green/blue_bits and
6053 *_offset.
6054
6055 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
6056 calculate pixel value.
6057
6058 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
6059
6060 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
6061 Don't tell redisplay display is accurate when it's actually been
6062 paused for pending input.
6063
6064 2003-08-29 Richard M. Stallman <rms@gnu.org>
6065
6066 * dispnew.c (adjust_glyph_matrix): Call window_box
6067 whenever W is nonzero.
6068
6069 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6070 (Fkill_local_variable, Fmake_variable_frame_local)
6071 (Flocal_variable_p, Flocal_variable_if_set_p):
6072 Use indirect_variable to trace thru variable aliases.
6073
6074 * config.in: Updated.
6075
6076 * callint.c (Fcall_interactively): Save and restore
6077 Vthis_command, Vthis_original_command, real_this_command,
6078 and current_kboard->Vlast_command.
6079
6080 * abbrev.c (Fexpand_abbrev): Insert before deleting.
6081
6082 2003-08-29 Gerd Moellmann <gerd@gnu.org>
6083
6084 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
6085
6086 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
6087
6088 * coding.c (decode_coding_iso2022): Initialize local variable c2.
6089 (decode_coding_sjis_big5): Likewise.
6090
6091 2003-08-27 Jason Rumney <jasonr@gnu.org>
6092
6093 * w32.c (sys_pipe): Protect against file descriptor overflow.
6094
6095 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
6096
6097 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
6098
6099 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
6100
6101 * xfns.c (Vgtk_version_string): New variable.
6102 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
6103
6104 2003-08-24 Eli Zaretskii <eliz@gnu.org>
6105
6106 * term.c (term_init): Remove `const' from buffer_size's declaration.
6107
6108 * Makefile.in (msdos.o): Depend on intervals.h.
6109
6110 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
6111
6112 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6113
6114 * xterm.h (struct x_display_info): New fields: client_leader_window
6115 and Xatom_wm_client_leader.
6116
6117 * xterm.c (x_initialize): Move call to x_session_initialize to ...
6118 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
6119
6120 * xsmfns.c (create_client_leader_window): New function.
6121 (x_session_initialize): Call create_client_leader_window, take
6122 dpyinfo as argument.
6123
6124 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
6125
6126 * Makefile.in (xsmfns.o): Add more depenedencies.
6127
6128 2003-08-21 Dave Love <fx@gnu.org>
6129
6130 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
6131
6132 2003-08-21 Kenichi Handa <handa@m17n.org>
6133
6134 * term.c (term_init): Fix previous change; don't rely on the
6135 length of `buffer' if TERMINFO is defined.
6136
6137 2003-08-20 Dave Love <fx@gnu.org>
6138
6139 * atimer.h: Include lisp.h.
6140
6141 * lisp.h (EMACS_LISP_H): New.
6142 (popup_activated_flag): Don't declare.
6143
6144 * alloca.c: Some merging with gnulib. Change logic and doc
6145 concerning (x)malloc/(x)free -- no longer Emacs-specific.
6146 [DO_BLOCK_INPUT]: Don't include lisp.h.
6147 (xmalloc, xfree): Declare.
6148 (malloc): Don't declare.
6149
6150 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6151 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
6152 atimer.h, blockinput.h.
6153
6154 * alloc.c (lisp_align_malloc): Change type of `aligned'.
6155
6156 * alloca.s: Remove.
6157
6158 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6159
6160 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
6161 use -lncurses.
6162
6163 * term.c (term_init): Use a buffer of size 4096 for tgetent since
6164 FreeBSD returns something longer than 2044. Abort if the end of
6165 the buffer is overwritten.
6166
6167 2003-08-19 Miles Bader <miles@gnu.org>
6168
6169 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
6170
6171 2003-08-19 Gerd Moellmann <gerd@gnu.org>
6172
6173 * alloc.c (lisp_align_malloc): Check for memory full when
6174 allocating ablocks, which also avoids freeing a pointer into an
6175 ablocks structure.
6176
6177 * puresize.h (BASE_PURESIZE): Increase to 1100000.
6178
6179 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
6180
6181 2003-08-16 Richard M. Stallman <rms@gnu.org>
6182
6183 * editfns.c (Fencode_time): Doc fix.
6184
6185 2003-08-16 David Ponce <david@dponce.com>
6186
6187 * fileio.c (Fwrite_region): Fix conditional expression to issue
6188 the right message.
6189
6190 2003-08-16 Juri Linkov <juri@jurta.org>
6191
6192 * syntax.c (Fforward_word): Argument changed to optional.
6193 Set default value to 1.
6194
6195 2003-08-15 Kenichi Handa <handa@m17n.org>
6196
6197 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
6198 what autoscaled.
6199 (best_matching_font): Once we find a better scalable font, set
6200 non_scalable_has_exact_height_p to 1.
6201 (try_font_list): Call try_alternative_families to try any family
6202 with the given registry.
6203
6204 2003-08-09 Andreas Schwab <schwab@suse.de>
6205
6206 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
6207
6208 * print.c (print_string): Fix printing of multibyte string with
6209 nontrivial printcharfun.
6210
6211 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6212
6213 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
6214
6215 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
6216
6217 2003-07-31 Kenichi Handa <handa@m17n.org>
6218
6219 * process.c (read_process_output): Return the actually read bytes
6220 instead of the result of decoding.
6221
6222 2003-07-31 Kenichi Handa <handa@m17n.org>
6223
6224 * xterm.h (struct x_bitmap_record): New member have_mask.
6225
6226 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
6227 to 0.
6228 (x_create_bitmap_from_file): Likewise.
6229 (x_destroy_bitmap): Check have_mask member before freeing a mask.
6230 (x_destroy_all_bitmaps): Likewise.
6231 (x_create_bitmap_mask): Set have_mask member to 1.
6232
6233 2003-07-30 Richard M. Stallman <rms@gnu.org>
6234
6235 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
6236
6237 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6238
6239 * gtkutil.c (xg_mark_data): Update calls to mark_object.
6240
6241 2003-07-29 Richard M. Stallman <rms@gnu.org>
6242
6243 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
6244 Conditionalize XIM code on HAVE_XIM.
6245
6246 * fns.c (Fclear_string): New function.
6247 (syms_of_fns): defsubr it.
6248
6249 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6250
6251 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
6252
6253 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
6254
6255 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
6256
6257 * buffer.c (delete_all_overlays): New function.
6258 * buffer.h (delete_all_overlays): Declare.
6259 * coding.c (run_pre_post_conversion_on_str):
6260 * print.c (temp_output_buffer_setup):
6261 * fileio.c (Finsert_file_contents):
6262 * minibuf.c (get_minibuffer): Use it.
6263
6264 2003-07-22 Andrew Choi <akochoi@shaw.ca>
6265
6266 * unexmacosx.c (unexec_regions_sort_compare):
6267 (unexec_regions_merge): New functions. Sort and merge unexec
6268 regions before dumping them.
6269
6270 2003-07-22 Dave Love <fx@gnu.org>
6271
6272 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
6273
6274 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
6275
6276 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
6277 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
6278 MARKBIT as the gcmarkbit for strings.
6279
6280 2003-07-21 Richard M. Stallman <rms@gnu.org>
6281
6282 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
6283
6284 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
6285 (syms_of_fns): Corresponding change.
6286
6287 * alloc.c (syms_of_alloc): Doc fixes.
6288
6289 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
6290
6291 * s/netbsd.h: Use -Wl syntax.
6292
6293 2003-07-17 Richard M. Stallman <rms@gnu.org>
6294
6295 * xterm.c (xim_initialize): Redo 6/24 change.
6296
6297 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
6298
6299 * buffer.c (copy_overlays): Use EMACS_INT for positions.
6300 (Fswitch_to_buffer): Don't signal an error when switching to the same
6301 buffer in a dedicated window.
6302
6303 * alloc.c: Use bitmaps for cons, as was done for floats.
6304 (init_float, init_cons): Let the normal code allocate the first block.
6305 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
6306 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
6307 New macros.
6308 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
6309 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
6310 (live_cons_p): Check the pointer is not past the `conses' array.
6311 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
6312 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
6313 (survives_gc_p): Use CONS_MARKED_P and simplify.
6314 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
6315
6316 2003-07-13 Paul Eggert <eggert@twinsun.com>
6317
6318 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
6319 puts it into BSS instead, at least on Solaris 8 and 9.
6320 This is a valid optimization, and it may occur on other platforms,
6321 so Emacs should not assume that initializing a static variable to
6322 zero puts it into data.
6323 * alloc.c (pure, staticvec):
6324 Initialize these arrays to nonzero, so that they're not
6325 put into BSS by that optimization.
6326
6327 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
6328
6329 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
6330 (lisp_align_malloc): Use posix_memalign is available.
6331 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
6332 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
6333 for consistency. Update users.
6334
6335 2003-07-13 Richard M. Stallman <rms@gnu.org>
6336
6337 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
6338
6339 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
6340
6341 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
6342 and use the Gtk+ function gtk_window_icon_from_file if available.
6343
6344 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
6345 handle mask of bitmaps.
6346 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
6347 mask property.
6348 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
6349
6350 * xterm.h (xg_set_icon): New function.
6351
6352 2003-07-12 Paul Eggert <eggert@twinsun.com>
6353
6354 * unexelf.c (unexec): Consider a section to precede the .bss
6355 section if its addresses overlap that of .bss.
6356
6357 2003-07-12 Richard M. Stallman <rms@gnu.org>
6358
6359 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
6360
6361 * config.in (HAVE_CRTIN): Add #undef.
6362 (INLINE): Really inline only if OPTIMIZE is defined.
6363
6364 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
6365 END_FILES_1.
6366 (START_FILES_1, END_FILES_1): New macros (conditional).
6367 (LD_SWITCH_SYSTEM_TEMACS): Define.
6368
6369 * s/openbsd.h: Don't include bsd4-3.h.
6370 (TERMINFO): Define.
6371 (LIBS_TERMCAP): Define.
6372 (LD_SWITCH_SYSTEM): Define (two definitions).
6373
6374 * xfns.c: Include libpng/png.h instead of png.h.
6375
6376 2003-07-11 Andreas Schwab <schwab@suse.de>
6377
6378 * buffer.c (modify_overlay): Update prototype.
6379 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
6380 Likewise.
6381
6382 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6383
6384 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
6385 (struct interval): Move to intervals.h.
6386 (struct Lisp_Marker): Use EMACS_INT for position info.
6387 (forward_point): Remove prototype of defunct function.
6388 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
6389 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
6390 (syms_of_textprop, set_text_properties): Remove prototypes that are
6391 already in intervals.h.
6392
6393 * intervals.h (struct interval): Move from lisp.h.
6394 Use EMACS_INT for position and size info.
6395
6396 * coding.c: Include intervals.h for Fset_text_properties.
6397
6398 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6399 position and length information.
6400
6401 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6402
6403 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
6404 position and length information.
6405
6406 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
6407
6408 Change overlays_after and overlays_before so the overlays themselves
6409 are linked into lists, rather than using cons cells. After all each
6410 Lisp_Misc already occupies 5 words, so we can add a `next' field to
6411 Lisp_Overlay for free and save up one cons cell per overlay (not
6412 to mention one indirection when traversing the list of overlay).
6413
6414 * lisp.h (struct Lisp_Overlay): New field `next'.
6415
6416 * buffer.h (struct buffer): Change overlays_before and overlays_after
6417 from Lisp lists of overlays to pointers to overlays.
6418
6419 * buffer.c (overlay_strings, recenter_overlay_lists):
6420 Fix typo in eassert in last commit.
6421 (unchain_overlay): New function.
6422 (add_overlay_mod_hooklist): Use AREF.
6423 (copy_overlays, reset_buffer, overlays_at, overlays_in)
6424 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
6425 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
6426 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
6427 (report_overlay_modification, evaporate_overlays, init_buffer_once):
6428 Adjust to new type of overlays_(before|after).
6429
6430 * alloc.c (mark_object): Mark the new `next' field of overlays.
6431 (mark_buffer): Manually mark the overlays_(after|before) fields.
6432
6433 * coding.c (run_pre_post_conversion_on_str):
6434 * editfns.c (overlays_around):
6435 * xdisp.c (load_overlay_strings):
6436 * fileio.c (Finsert_file_contents):
6437 * indent.c (current_column):
6438 * insdel.c (signal_before_change, signal_after_change):
6439 * intervals.c (set_point_both):
6440 * print.c (temp_output_buffer_setup): Use new type for
6441 overlays_(before|after).
6442
6443 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
6444
6445 * buffer.c (report_overlay_modification): Don't run hooks while
6446 traversing the list of overlays.
6447
6448 * buffer.h (struct buffer): Use an int for overlay_center.
6449 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6450 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6451
6452 * buffer.c (reset_buffer, recenter_overlay_lists)
6453 (adjust_overlays_for_insert, adjust_overlays_for_delete)
6454 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
6455 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
6456 (overlays_at, evaporate_overlays, recenter_overlay_lists)
6457 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
6458
6459 * xdisp.c (fast_find_position): Remove unused var.
6460
6461 * cmds.c (Qexpand_abbrev): New sym.
6462 (syms_of_cmds): Initialize it.
6463 (internal_self_insert): Use it to call expand-abbrev.
6464
6465 2003-07-09 Kim F. Storm <storm@cua.dk>
6466
6467 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
6468 was configured with --without-xim.
6469 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
6470
6471 2003-07-07 Richard M. Stallman <rms@gnu.org>
6472
6473 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
6474
6475 * alloc.c (Fgarbage_collect): Doc fix.
6476
6477 2003-07-07 Nozomu Ando <nand@mac.com>
6478
6479 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
6480
6481 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6482
6483 * minibuf.c (read_minibuf): UNGCPRO before returning.
6484 (Ftry_completion, Fall_completions): Doc fix.
6485
6486 * alloc.c (live_float_p): Check that p is not past the `floats' array,
6487 now that `floats' is not the last element of the struct any more.
6488
6489 2003-07-06 Jason Rumney <jasonr@gnu.org>
6490
6491 * w32term.h (ClipboardSequence_Proc): New type.
6492
6493 * w32fns.c (clipboard_sequence_fn): New variable.
6494 (globals_of_w32fns): Initialize it.
6495
6496 * w32select.c (last_clipboard_sequence_number): New variable.
6497 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
6498 number if possible.
6499
6500 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
6501
6502 * m/amdx86-64.h (MARKBIT):
6503 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
6504 MARKBIT and ARRAY_MARK_FLAG any more.
6505
6506 * m/hp800.h (XSETMARKBIT):
6507 * m/sr2k.h (XSETMARKBIT):
6508 * lisp.h (XSETMARKBIT): Remove unused macro.
6509
6510 * lisp.h (mark_object): Change prototype.
6511
6512 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
6513 (last_marked): Change accordingly.
6514 (mark_interval, mark_maybe_object, mark_maybe_pointer)
6515 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
6516 (mark_buffer): Update calls to mark_object.
6517
6518 * bytecode.c (mark_byte_stack):
6519 * fns.c (sweep_weak_table):
6520 * keyboard.c (mark_kboards): Update calls to mark_object.
6521
6522 2003-07-06 Jason Rumney <jasonr@gnu.org>
6523
6524 * alloc.c (struct ablock): Only include padding when there is some.
6525
6526 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
6527
6528 * alloc.c (ALIGN): Add casts to simplify usage.
6529 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
6530 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
6531 (struct ablock, struct ablocks): New types.
6532 (free_ablock): New global var.
6533 (lisp_align_malloc, lisp_align_free): New functions.
6534 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
6535 (struct float_block): Reorder and add gcmarkbits.
6536 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
6537 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
6538 (init_float, make_float): Use lisp_align_malloc.
6539 (free_float, live_float_p): Don't use `type' any more.
6540 (make_float): Use FLOAT_UNMARK to access to mark bit.
6541 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
6542 Use FLOAT_MARKED_P to access the mark bit.
6543 (pure_alloc): Simplify use of ALIGN.
6544 (mark_object): Use FLOAT_MARK to access the mark bit.
6545 (gc_sweep): Use new macros to access the float's mark bit.
6546 (init_alloc_once): Init free_ablock.
6547
6548 * lisp.h (struct Lisp_Float): Remove unused field `type'.
6549
6550 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
6551
6552 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
6553 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
6554 (allocate_buffer): Move.
6555 (string_bytes): Don't mask markbit of `size_byte'.
6556 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6557 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
6558 Use the `size' field of buffers (rather than the `name' field) for
6559 the mark bit, as is done for all other vectorlike objects.
6560 Use the new macros to access the mark bit of vectorlike objects.
6561
6562 2003-06-26 Richard M. Stallman <rms@gnu.org>
6563
6564 * puresize.h (BASE_PURESIZE): Increment base size.
6565
6566 * xdisp.c (fast_find_position): Enable Gerd's new definition.
6567
6568 * xterm.c (xim_initialize): Undo previous change.
6569
6570 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
6571
6572 * alloc.c (survives_gc_p): Simplify.
6573
6574 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
6575
6576 * window.c (Fset_window_dedicated_p): Simplify.
6577 (display_buffer_1): Don't raise the win from which minibuf was entered.
6578 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
6579 (Fminibuffer_selected_window): Simplify.
6580
6581 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
6582
6583 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
6584 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
6585
6586 * insdel.c (check_markers, adjust_markers_for_delete)
6587 (adjust_markers_for_insert, adjust_markers_for_replace)
6588 (prepare_to_modify_buffer, RESTORE_VALUE):
6589 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
6590 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
6591 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
6592 * alloc.c (Fmake_marker, free_marker, gc_sweep):
6593 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
6594 * editfns.c (save_excursion_restore, transpose_markers):
6595 * window.c (delete_window):
6596 * xdisp.c (message_dolog): Update for new types.
6597
6598 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6599
6600 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
6601 (realize_default_face): Use default_face_done_p for the force_p
6602 argument to set_lface_from_font_name. Set default_face_done_p to one.
6603
6604 * frame.c (make_frame): Initialize default_face_done_p.
6605
6606 * frame.h (struct frame): Add default_face_done_p.
6607
6608 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
6609 will be defined.
6610
6611 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
6612
6613 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
6614 Initialize the new field `gcmarkbit'.
6615 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
6616 (mark_interval_tree): Don't mark the tree separately from the nodes.
6617 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
6618 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
6619 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
6620
6621 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
6622 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
6623 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
6624 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
6625 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
6626
6627 2003-06-24 Dave Love <fx@gnu.org>
6628
6629 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
6630
6631 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
6632 from gnulib.
6633
6634 2003-06-21 Richard M. Stallman <rms@gnu.org>
6635
6636 * fileio.c (Fwrite_region): Alternate messages
6637 for append and partial write.
6638
6639 * keyboard.c (read_key_sequence): When converting upcase fn key to
6640 downcase, update fkey and keytran so `backspace' gets translated.
6641
6642 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
6643
6644 * process.c (wait_reading_process_input): Don't signal SIGIO
6645 in batch mode.
6646
6647 2003-06-17 Kenichi Handa <handa@m17n.org>
6648
6649 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
6650 composite.h.
6651
6652 * xselect.c: Don't include charset.h, coding.h, composite.h.
6653 (Qforeign_selection): New variable.
6654 (syms_of_xselect): Intern and static it.
6655 (selection_data_to_lisp_data): Return a unibyte string made from
6656 data with `foreign-selection' text property.
6657
6658 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
6659
6660 * termhooks.h (EVENT_INIT): New macro.
6661
6662 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
6663
6664 * alloc.c (mark_kboards): Move to keyboard.c.
6665
6666 * keyboard.c (record_asynch_buffer_change, read_avail_input):
6667 * xterm.c (x_dispatch_event):
6668 * xmenu.c (find_and_call_menu_selection):
6669 * xdisp.c (handle_tool_bar_click):
6670 * w32menu.c (menubar_selection_callback):
6671 * sysdep.c (kbd_input_ast, read_input_waiting):
6672 * msdos.c (dos_rawgetc):
6673 * macterm.c (mac_check_for_quit_char):
6674 * macmenu.c (menubar_selection_callback):
6675 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
6676 data to kbd_buffer_store_event.
6677
6678 2003-06-15 Kim F. Storm <storm@cua.dk>
6679
6680 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6681 to fix redisplay problem with tall characters (such as \e,AC\e(B).
6682
6683 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6684
6685 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
6686
6687 2003-06-12 Kenichi Handa <handa@m17n.org>
6688
6689 * fileio.c (Fwrite_region): Save and restore restriction.
6690
6691 2003-06-12 Dave Love <fx@gnu.org>
6692
6693 * alloca.c (alloca): Declare arg as size_t.
6694
6695 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
6696 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
6697
6698 2003-06-11 Dave Love <fx@gnu.org>
6699
6700 * search.c (shrink_regexp_cache): Use xrealloc.
6701 (syms_of_search): Use xmalloc.
6702
6703 2003-06-10 Kim F. Storm <storm@cua.dk>
6704
6705 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
6706 Adjust phys_cursor.x to be relative to window box, rather than
6707 text area before checking -- to ensure cursor is redrawn when
6708 exposing window.
6709 Note: This also fixes a similar (older) bug if display margins
6710 are present.
6711
6712 2003-06-06 Kenichi Handa <handa@m17n.org>
6713
6714 * coding.c (encoding_buffer_size): If coding->type is
6715 coding_type_ccl, double magnification on CRLF encoding.
6716
6717 2003-06-06 Jason Rumney <jasonr@gnu.org>
6718
6719 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
6720 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
6721
6722 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
6723 Mac too.
6724
6725 2003-06-05 Dave Love <fx@gnu.org>
6726
6727 * strftime.c: Merge changes from gnulib.
6728
6729 * mktime.c (__mktime_internal): Merge changes from gnulib
6730 involving year 69 and dst2.
6731
6732 Changes to merge with gnulib version and be consistent with the
6733 autoconf test:
6734
6735 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
6736 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
6737 [HAVE_LOCALE_H]: Include locale.h.
6738 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
6739
6740 2003-06-05 Kim F. Storm <storm@cua.dk>
6741
6742 * window.c (coordinates_in_window): Convert X and Y to window
6743 relative coordinates inside mode-line and header-line parts.
6744 Convert X and Y to margin area relative coordinates inside left
6745 and right display margin parts.
6746
6747 2003-06-05 Jason Rumney <jasonr@gnu.org>
6748
6749 * w32fns.c (add_system_logical_colors_to_map): New function.
6750 (Fx_open_connection): Use it.
6751
6752 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
6753
6754 * process.c (allocate_pty): Revert part of the previous patch.
6755 (Faccept_process_output): Simplify.
6756
6757 2003-06-04 Jason Rumney <jasonr@gnu.org>
6758
6759 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
6760
6761 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
6762 (lispy_mouse_wheel_names): Remove.
6763 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
6764 Always define drag_and_drop_syms.
6765
6766 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
6767 WHEEL_EVENT events.
6768
6769 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
6770
6771 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
6772
6773 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
6774
6775 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6776
6777 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
6778 menu item label.
6779
6780 2003-06-03 Richard M. Stallman <rms@gnu.org>
6781
6782 * window.c (Fwindow_edges): Doc fix.
6783 (Fwindow_pixel_edges, Fwindow_inside_edges)
6784 (Fwindow_inside_pixel_edges): New functions.
6785 (syms_of_window): defsubr them.
6786
6787 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
6788 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
6789
6790 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
6791
6792 * dispnew.c (Fsit_for): Don't lie about the number of args.
6793
6794 2003-06-02 Dave Love <fx@gnu.org>
6795
6796 * callproc.c: Use HAVE_FCNTL_H, not USG5.
6797 (syms_of_callproc) <process-environment>: Doc fix.
6798
6799 * doc.c: Use HAVE_FCNTL_H, not USG5.
6800
6801 * xfaces.c (font_rescale_ratio): Fix for K&R.
6802
6803 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
6804
6805 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
6806
6807 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
6808
6809 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
6810 (xg_create_frame_widgets): Use ENCODE_UTF_8.
6811
6812 * xterm.c (Qutf_8): Move to coding.c
6813
6814 * xmenu.c (ENCODE_MENU_STRING): New.
6815 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
6816 Use it.
6817
6818 * coding.h (ENCODE_UTF_8): New.
6819 (Qutf_8): Declare.
6820
6821 * coding.c (Qutf_8): New.
6822 (syms_of_coding): Intern it.
6823
6824 * fns.c: Doc fixes.
6825
6826 2003-06-02 Kenichi Handa <handa@m17n.org>
6827
6828 * buffer.c (Fset_buffer_multibyte): Fix previous change.
6829
6830 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
6831
6832 * lread.c (openp): Make sure STR is a string.
6833
6834 2003-06-01 David Ponce <david@dponce.com>
6835
6836 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
6837 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
6838
6839 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
6840 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
6841 (discard_mouse_events): Discard WHEEL_EVENT events too.
6842 (lispy_wheel_names, wheel_syms): New.
6843 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
6844 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
6845 (make_lispy_event): Add WHEEL_EVENT handler.
6846
6847 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
6848 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6849 WHEEL_EVENT events.
6850
6851 2003-05-31 John Paul Wallington <jpw@gnu.org>
6852
6853 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
6854 timer are in lisp/emacs-lisp.
6855
6856 2003-05-31 Kenichi Handa <handa@m17n.org>
6857
6858 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
6859 region when a buffer is changed to unibyte.
6860
6861 * charset.h (VALID_LEADING_CODE_P): New macro.
6862 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
6863
6864 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
6865 is nonzero, accept multibyte form of eight-bit-control chars.
6866 (decode_composition_emacs_mule): Likewise.
6867 (decode_coding_emacs_mule): Likewise.
6868 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
6869 multibyte form of eight-bit-control chars.
6870
6871 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
6872 (Finsert_file_contents): If coding-system-for-read is bound to
6873 Qauto_save_coding, use the coding system emacs-mule with special
6874 setting for recovering a file.
6875 (choose_write_coding_system): On auto saving, use the coding
6876 system emacs-mule with special setting for auto saving.
6877 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
6878
6879 2003-05-30 Kenichi Handa <handa@m17n.org>
6880
6881 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
6882 properly before calling ccl_driver.
6883
6884 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
6885
6886 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
6887 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
6888 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
6889
6890 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
6891
6892 * xfaces.c (realize_default_face): Do not abort if lface is
6893 non-existent - reverts change from 2003-05-19.
6894
6895 2003-05-29 Kenichi Handa <handa@m17n.org>
6896
6897 * coding.c (decode_coding_iso2022): Pay attention to the byte
6898 sequence of CTEXT extended segment, and retain those bytes as is.
6899
6900 2003-05-28 Kenichi Handa <handa@m17n.org>
6901
6902 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
6903 of CODING_REPLACEMENT_CHARACTER.
6904 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
6905 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
6906 check this flag on encoding.
6907 (encode_coding_sjis_big5):
6908 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
6909 (Fset_terminal_coding_system_internal):
6910 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
6911 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
6912
6913 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
6914 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
6915 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
6916
6917 2003-05-28 Richard M. Stallman <rms@gnu.org>
6918
6919 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
6920
6921 * eval.c (unbind_to): Move init of this_binding to separate statement.
6922
6923 2003-05-28 Kim F. Storm <storm@cua.dk>
6924
6925 * xdisp.c (expose_window): Fix error in calculation of
6926 window relative coordinates of area to redisplay.
6927
6928 2003-05-27 Jason Rumney <jasonr@gnu.org>
6929
6930 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
6931
6932 2003-05-27 David Ponce <david@dponce.com>
6933
6934 Handle W32 mouse wheel events as mouse click events, like in X.
6935
6936 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
6937 MOUSE_WHEEL_EVENT anymore.
6938
6939 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
6940 Scrolling down/up the mouse wheel is respectively mapped to mouse
6941 button 4 and 5.
6942 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
6943 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
6944 WM_MOUSEWHEEL events.
6945
6946 2003-05-27 Andreas Schwab <schwab@suse.de>
6947
6948 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
6949
6950 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
6951 partially visible line.
6952
6953 * alloc.c (Fgarbage_collect): Fix last change.
6954
6955 2003-05-26 John Paul Wallington <jpw@gnu.org>
6956
6957 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
6958
6959 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
6960
6961 * window.c (Fset_window_buffer): Add type of `keep_margins'.
6962 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
6963
6964 * window.h (window_box_text_cols): Declare.
6965
6966 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
6967 (x_draw_vertical_border): Remove unused var `f'.
6968
6969 * xfaces.c (build_scalable_font_name): Remove `unused var
6970 pixel_size' warning.
6971
6972 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
6973
6974 * unexelf.c (unexec): Remove `unused var n' warning.
6975
6976 * strftime.c (my_strftime_localtime_r): Remove `defined but
6977 unused' warning.
6978
6979 * process.c (allocate_pty): Remove `unused var stb' and
6980 `cp might be used uninitialized' warnings.
6981
6982 * dispnew.c (mode_line_string): Remove unused var `f'.
6983
6984 * coding.c (find_safe_codings): Remove unused var `i'.
6985
6986 * bytecode.c (Fbyte_code): Remove `unused val' warning.
6987
6988 * buffer.c (Fkill_buffer): Remove unused var `list'.
6989
6990 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
6991
6992 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6993
6994 * frame.c (make_frame): Condition want_fullscreen with
6995 HAVE_WINDOW_SYSTEM.
6996
6997 2003-05-25 Juanma Barranquero <lektu@terra.es>
6998
6999 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
7000 (Fwindow_scroll_bars): Fix typo in docstring.
7001
7002 2003-05-24 Kim F. Storm <storm@cua.dk>
7003
7004 The following changes serve several purposes:
7005
7006 1) Swap the position of fringes and display margins in windows, i.e.
7007 the fringes are now displayed between the margins and the text area
7008 (by default).
7009
7010 2) Allow fringe and scroll bar parameters to be set per-buffer and
7011 per-window (like display margins). Such settings are now stored
7012 in window configurations, preserved when frames are resized, and
7013 copied when windows are split vertically or horizontally.
7014 Several bugs related to display margins have been fixed.
7015
7016 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
7017
7018 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
7019 rather than FRAME_WIDTH (FRAME_FONT (f)).
7020
7021 5) Introduce a consistent naming of variables, members and macros
7022 depending on whether their value is measured in pixels or in
7023 canonical columns/lines. Pixel dimensions are named *_width and
7024 *_height, while canonical columns/lines are named *_cols and
7025 *_lines. Pixel positions are named *_x and *_y, while column/line
7026 positions are named *_col and *_line.
7027
7028 6) Consolidate more of the X, W32, and MAC gui code by moving
7029 common data into struct frame, and generalize it for the non-gui
7030 case by using suitable defaults.
7031
7032 7) Cleanup and consolidate the macros controlling frame and window
7033 layout into frame.h and window.h, and generalize the use of the
7034 various window_box_* functions (enhanced to handle the new fringe
7035 position and the per-window fringe and scroll bar settings).
7036
7037 * frame.h (struct frame): Rename members height to text_lines,
7038 width to text_cols, window_height to total_lines, window_width to
7039 total_cols, new_height to new_text_lines, new_width to
7040 new_text_cols. All uses changed.
7041 (struct frame): New members which consolidate common members of
7042 x_output, w32_output, and mac_output structures: left_pos,
7043 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
7044 win_gravity, size_hint_flags, border_width, internal_border_width,
7045 line_height, fringe_cols, left_fringe_width, right_fringe_width,
7046 want_fullscreen. All uses changed.
7047 (struct frame): New member column_width contaning the canonical
7048 column width, analogue to line_height. All uses changed.
7049 (struct frame): Rename members scroll_bar_pixel_width to
7050 config_scroll_bar_width, and scroll_bar_cols to
7051 config_scroll_bar_cols. All uses changed.
7052 (struct frame): New member scroll_bar_actual_width which
7053 consolidates and renames the vertical_scroll_bar_extra member of
7054 x_output, w32_output, and mac_output structures. All uses changed.
7055 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
7056 from x/w32/macterm.h files. All uses changed. Also change code
7057 which referred to f->output_data...->pixel_height.
7058 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
7059 from x/w32/macterm.h files. All uses changed. Also change code
7060 which referred to f->output_data...->pixel_width.
7061 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
7062 Also change code which referred to f->height.
7063 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
7064 Also change code which referred to f->width.
7065 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
7066 to update new_text_lines and new_text_cols members directly.
7067 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
7068 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
7069 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
7070 FRAME_SCROLL_BAR_COLS. All uses changed.
7071 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
7072 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
7073 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
7074 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
7075 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
7076 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
7077 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
7078 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
7079 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
7080 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
7081 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
7082 Unconditionally return line_height member (it now has proper value
7083 also for non-window frames).
7084 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
7085 return new column_width member (rather than the default font width).
7086 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
7087 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
7088 from x/w32/macterm.h files. Unconditionally return corresponding
7089 member of frame structure (they now have proper values also for
7090 non-window frames).
7091 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
7092 Calculate return value from left and right widths.
7093 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
7094 internal_border_width member (has proper value for non-window frame).
7095 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
7096 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
7097 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
7098 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
7099 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
7100 consolidated from xterm.h, macterm.h, and w32term.h.
7101 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
7102 consolidated from xterm.h, macterm.h, and w32term.h.
7103 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
7104 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
7105 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
7106 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
7107 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
7108 consolidated from x/mac/w32term.h.
7109 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
7110 consolidated from x/mac/w32term.h.
7111 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
7112 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
7113 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
7114 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
7115
7116 * window.h (struct window): Rename members left to left_col,
7117 top to top_line, height to total_lines, width to total_cols,
7118 left_margin_width to left_margin_cols, right_margin_width to
7119 right_margin_cols, orig_height to orig_total_lines, orig_top to
7120 orig_top_line. All uses changed.
7121 (struct window): New members left_fringe_width, right_fringe_width,
7122 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
7123 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
7124 New macros primarily used to simplify other macros.
7125 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
7126 referred to XINT (w->width).
7127 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
7128 referred to XINT (w->height).
7129 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
7130 referred to XINT (w->width) * canon_x_unit.
7131 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
7132 referred to XINT (w->height) * canon_y_unit.
7133 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
7134 referred to XINT (w->left).
7135 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
7136 all uses and code that referred to XINT (w->left) + XINT (w->width).
7137 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
7138 referred to XINT (w->top).
7139 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
7140 referred to XINT (w->top) + XINT (w->height).
7141 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
7142 referred to XINT (w->left) * canon_x_unit.
7143 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
7144 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
7145 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
7146 referred to XINT (w->top) * canon_y_unit.
7147 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
7148 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
7149 (WINDOW_LEFTMOST_P): New macro.
7150 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
7151 All uses changed.
7152 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
7153 All uses changed.
7154 (WINDOW_BOX_LEFT_EDGE_X): Rename from
7155 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
7156 Do not exclude left fringe width.
7157 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
7158 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
7159 Do not exclude fringe widths.
7160 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
7161 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
7162 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
7163 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
7164 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
7165 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
7166 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
7167 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
7168 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
7169 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
7170 New macros. Change code which referenced corresponding
7171 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
7172 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
7173 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
7174 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
7175 allow per-window scroll-bar settings.
7176 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
7177 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
7178 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
7179 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
7180 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
7181 FRAME_SCROLL_BAR_WIDTH.
7182 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
7183 (WINDOW_SCROLL_BAR_AREA_X): New macros.
7184 (WINDOW_HEADER_LINE_HEIGHT): Rename from
7185 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
7186 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
7187 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
7188 (WINDOW_BOX_TEXT_HEIGHT): Rename from
7189 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
7190 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7191 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7192 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
7193 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
7194 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7195 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
7196 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
7197 (window_from_coordinates): Update prototype.
7198 (Fset_window_buffer): Update EXFUN.
7199 (set_window_buffer): Update prototype.
7200
7201 * dispextern.h (struct glyph_matrix): Rename members window_left_x
7202 to window_left_col, window_top_y to window_top_line. All uses
7203 changed.
7204 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
7205 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
7206 internal_border_width is now set to 0 for non-window frames.
7207 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
7208 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
7209 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
7210 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
7211 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
7212 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
7213 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
7214 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
7215 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
7216 Move to window.h and renamed [see window.h changes].
7217 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
7218 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
7219 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
7220 Use WINDOW_TOTAL_LINES.
7221 (frame_update_line_height): Remove prototype.
7222
7223 * buffer.h (struct buffer): Rename members measured in columns:
7224 left_margin_width to left_margin_cols, right_margin_width to
7225 right_margin_cols. All uses changed.
7226 New members left_fringe_width, right_fringe_width,
7227 fringes_outside_margins for per-buffer fringe settings.
7228 New members scroll_bar_width and vertical_scroll_bar_type for
7229 per-buffer scroll bar settings.
7230
7231 * buffer.c (init_buffer_once): Set buffer_defaults and
7232 buffer_local_flags for new buffer-local variables
7233 left_fringe_width, right_fringe_width, fringes_outside_margins,
7234 scroll_bar_width, and vertical_scroll_bar_type.
7235 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
7236 default-* variables for them.
7237
7238 * dispnew.c: Make (many) trivial substitutions for renamed and
7239 new macros in dispextern.h, frame.h and window.h.
7240 (mode_line_string): No need to adjust width for mode lines, as it
7241 is already adjusted by the caller.
7242 (marginal_area_string): Handle fringes inside/outside margins.
7243
7244 * frame.c: Make (many) trivial substitutions for renamed and
7245 new macros in dispextern.h, frame.h and window.h.
7246 (make_frame): Initialize left_fringe_width, right_fringe_width,
7247 fringe_cols, scroll_bar_actual_width, border_width,
7248 internal_border_width, column_width, line_height, x_pixels_diff,
7249 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
7250 members with values suitable for a non-window frames.
7251
7252 * gtkutil.c: Make (many) trivial substitutions for renamed and
7253 new macros in dispextern.h, frame.h and window.h.
7254
7255 * indent.c: Make (few) trivial substitutions for renamed and
7256 new macros in dispextern.h, frame.h and window.h.
7257
7258 * keyboard.c: Make (many) trivial substitutions for renamed and
7259 new macros in dispextern.h, frame.h and window.h.
7260 (make_lispy_event): Use window positions returned from
7261 window_from_coordinates when constructing the lisp event for
7262 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
7263 (incorrect) values locally.
7264 (make_lispy_movement): Use window positions returned from
7265 window_from_coordinates when constructing the lisp event, rather
7266 than calculating (incorrect) values locally.
7267
7268 * scroll.c: Make (some) trivial substitutions for renamed and
7269 new macros in dispextern.h, frame.h and window.h.
7270
7271 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
7272 scroll-bars.
7273
7274 * sysdep.c: Make (few) trivial substitutions for renamed and
7275 new macros in dispextern.h, frame.h and window.h.
7276
7277 * term.c: Make (some) trivial substitutions for renamed and
7278 new macros in dispextern.h, frame.h and window.h.
7279
7280 * widget.c: Make (few) trivial substitutions for renamed and
7281 new macros in dispextern.h, frame.h and window.h.
7282
7283 * window.c: Make (many) trivial substitutions for renamed and
7284 new macros in dispextern.h, frame.h and window.h.
7285 (make_window): Initialize new members
7286 left_margin_cols, right_margin_cols, left_fringe_width,
7287 right_fringe_width, fringes_outside_margins, scroll_bar_width,
7288 and vertical_scroll_bar_type.
7289 (coordinates_in_window): Adapt to new fringe/margin positions
7290 and per-window fringes and scroll-bars.
7291 Fix bug related to incorrectly adjusting coordinates by
7292 frame's internal_border_width (the effect normally negible since
7293 the internal_border_width is typically 0 or 1 pixel, but very
7294 noticeable for an internal_border_width of e.g. 25 pixels).
7295 Upon successful return (other than ON_NOTHING), the coordinates
7296 are now always properly converted to window relative for the
7297 given display element.
7298 (window_from_coordinates): Add new parameters wx and wy to
7299 return the window relative x and y position in the returned
7300 window and part. A null arg means, don't return the position.
7301 All callers changed.
7302 (adjust_window_margins): New function which may reduce the width
7303 of the display margins if a window's text area is too small after
7304 resizing or splitting windows.
7305 (size_window): Fix bug that did not account for display margin
7306 widths when checking the minimum width of a window; use
7307 adjust_window_margins.
7308 (set_window_buffer): Call Fset_window_fringes and
7309 Fset_window_scroll_bars to setup per-window elements.
7310 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
7311 existing display margin, fringe widths, and scroll bar settings
7312 (e.g. after splitting a window or resizing the frame).
7313 All callers changed.
7314 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
7315 (Fsplit_window): Duplicate original window's display margin,
7316 fringe, and scroll-bar settings; then call Fset_window_buffer with
7317 KEEP_MARGINS non-nil. This fixes a bug which caused a split
7318 window to only preserve the display margins in one of the windows.
7319 When splitting horizontally, call adjust_window_margins on both
7320 windows to ensure that the text area of the new windows is non too
7321 narrow. This fixes a bug which could cause Emacs to trap if the
7322 width of the split window was less than the width of the display
7323 margins.
7324 (window_box_text_cols): Rename from window_internal_width.
7325 All uses changed. Adapt to per-window fringes and scroll bars.
7326 Fix bug that caused vertical separator to be subtracted also on
7327 window frames. Fix another bug that did not reduce the returned
7328 value by the columns used for display margins.
7329 (window_scroll_line_based): Fix bug related to scrolling too much
7330 when display margins are present (implicitly fixed by the fix to
7331 window_box_text_cols).
7332 (scroll_left, scroll_right): Fix bug related to scrolling too far
7333 by default when display margins are present (implicitly fixed by
7334 the fix to window_box_text_cols).
7335 (struct saved_window): Rename members left to left_col, top to
7336 top_line, width to total_cols, height to total_lines, orig_top to
7337 orig_top_line, orig_height to orig_total_lines. All uses changed.
7338 New members left_margin_cols, right_margin_cols,
7339 left_fringe_width, right_fringe_width, fringes_outside_margins,
7340 scroll_bar_width, and vertical_scroll_bar_type for saving
7341 per-window display elements.
7342 (Fset_window_configuration): Restore display margins, fringes,
7343 and scroll bar settings. This fixes a bug which caused display
7344 margins to be discarded when saving and restoring a window
7345 configuration.
7346 (save_window_save): Save display margins, fringes, and scroll bar
7347 settings. This fixes a bug which caused display margins to be
7348 discarded when saving and restoring a window configuration.
7349 (Fset_window_margins): Do nothing if display margins are not
7350 really changed. Otherwise, call adjust_window_margins to ensure
7351 the text area doesn't get too narrow. This fixes a bug which
7352 could cause Emacs to trap if setting display margins wider than
7353 the width of the window.
7354 (Fset_window_fringes): New defun to allow user to specifically set
7355 this window's fringe widths and position vs. display margins.
7356 (Fwindow_fringes): New defun to return window's actual fringe settings.
7357 (Fset_window_scroll_bars): New defun to allow user to specifically
7358 set this window's scroll bar width and position.
7359 (Fwindow_scroll_bars): New defun to return window's actual scroll
7360 bar settings.
7361 (compare_window_configurations): Also compare display margins,
7362 fringes, and scroll bar settings.
7363 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
7364
7365 * xdisp.c: Make (many) trivial substitutions for renamed and
7366 new macros in dispextern.h, frame.h and window.h.
7367 (window_box_width): Adapt to per-window fringes and scroll bars,
7368 and new fringe vs. display margin position. Note that returned
7369 value is no longer guaranteed to be a whole multiple of the frame
7370 column width, since per-window fringes may now be any width.
7371 (window_box_left_offset): New function like window_box_left, but
7372 value is relative to left border of window (rather than frame).
7373 (window_box_right_offset): New function like window_box_right,
7374 but value is relative to left border of window.
7375 (window_box_left): Adapt to per-window fringes and scroll bars,
7376 and new fringe vs. display margin position. Simplify by using
7377 WINDOW_LEFT_EDGE_X and window_box_left_offset.
7378 (window_box): Allow null args for unnecessary return values;
7379 change/simplify relevant callers.
7380 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
7381 and new fringe vs. display margin position.
7382 Use window_box_left_offset and window_box_right_offset
7383 (get_glyph_string_clip_rect): Adapt to per-window fringes and
7384 scroll bars, and new fringe vs. display margin position.
7385 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
7386 (draw_fringe_bitmap): Rework to handle per-window fringes and new
7387 fringe vs. display margin position.
7388 (hscroll_window_tree): Use window_box_width instead of window_box.
7389 (redisplay_window): Adapt to per-window scroll bars.
7390 (draw_glyphs): Rework to handle per-window fringes and scroll
7391 bars, and new fringe vs. display margin position.
7392 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
7393 (x_clear_end_of_line): Adapt to per-window fringes and scroll
7394 bars, and new fringe vs. display margin position. Fix bug which
7395 increased total width of full_width rows by width of scroll bars
7396 although window's total width already includes that.
7397 (x_fix_overlapping_area): Simplify using window_box_left_offset.
7398 (expose_area): Simplify using window_box_left_offset.
7399 (x_draw_vertical_border): Handle per-window scroll bar settings,
7400 mixing windows with left, right and no scroll bars.
7401
7402 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
7403 where it's used in x_list_fonts (for clarity).
7404 (frame_update_line_height): Remove unused function; functionality
7405 is now done directly when setting the default font in x_set_font.
7406
7407 * xfns.c: Make (many) trivial substitutions for renamed and
7408 new macros in dispextern.h, frame.h and window.h.
7409
7410 * xmenu.c: Make (some) trivial substitutions for renamed and
7411 new macros in dispextern.h, frame.h and window.h.
7412
7413 * xterm.h (struct x_output): Move members left_pos, top_pos,
7414 border_width, pixel_height, pixel_width, line_height,
7415 internal_border_width, vertical_scroll_bar_extra,
7416 left_fringe_width, right_fringe_width, fringe_cols,
7417 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7418 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7419 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7420 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7421 (PIXEL_WIDTH, PIXEL_HEIGHT)
7422 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7423 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7424 frame.h and renamed [see frame.h changes].
7425 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7426 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7427 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7428 and renamed [see frame.h changes].
7429
7430 * xterm.c: Make (several) trivial substitutions for renamed and
7431 new macros in dispextern.h, frame.h and window.h.
7432 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7433 (scroll_run): Adapt to new fringe position.
7434 (glyph_rect): Use window coordinates returned from
7435 window_from_coordinates rather than frame_to_window_pixel_xy.
7436 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7437 scroll-bars.
7438 (handle_one_xevent): Simplify a USE_GTK conditional.
7439 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7440 (fringes are now inside margins, i.e. always in the clipping area).
7441 All callers changed.
7442 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7443 directly, then call compute_fringe_widths. Don't call
7444 frame_update_line_height.
7445
7446 * w32term.h (struct w32_output): Move members left_pos, top_pos,
7447 border_width, pixel_height, pixel_width, line_height,
7448 internal_border_width, vertical_scroll_bar_extra,
7449 left_fringe_width, right_fringe_width, fringe_cols,
7450 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7451 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
7452 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7453 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7454 (PIXEL_WIDTH, PIXEL_HEIGHT)
7455 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7456 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7457 frame.h and renamed [see frame.h changes].
7458 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7459 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7460 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7461 and renamed [see frame.h changes].
7462
7463 * w32term.c: Make (several) trivial substitutions for renamed and
7464 new macros in dispextern.h, frame.h and window.h.
7465 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7466 (glyph_rect): Use window coordinates returned from
7467 window_from_coordinates rather than frame_to_window_pixel_xy.
7468 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7469 scroll-bars.
7470 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
7471 (fringes are now inside margins, i.e. always in the clipping area).
7472 All callers changed.
7473 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7474 directly, then call compute_fringe_widths. Don't call
7475 frame_update_line_height.
7476
7477 * w32console.c: Make (few) trivial substitutions for renamed and
7478 new macros in dispextern.h, frame.h and window.h.
7479
7480 * w32fns.c: Make (many) trivial substitutions for renamed and
7481 new macros in dispextern.h, frame.h and window.h.
7482
7483 * w32menu.c: Make (few) trivial substitutions for renamed and
7484 new macros in dispextern.h, frame.h and window.h.
7485
7486 * macterm.h (struct mac_output): Move members left_pos, top_pos,
7487 border_width, pixel_height, pixel_width, line_height,
7488 internal_border_width, vertical_scroll_bar_extra,
7489 left_fringe_width, right_fringe_width, fringe_cols,
7490 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
7491 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
7492 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
7493 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
7494 (PIXEL_WIDTH, PIXEL_HEIGHT)
7495 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
7496 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
7497 frame.h and renamed [see frame.h changes].
7498 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
7499 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
7500 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
7501 and renamed [see frame.h changes].
7502
7503 * macterm.c: Make (several) trivial substitutions for renamed and
7504 new macros in dispextern.h, frame.h and window.h.
7505 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
7506 (glyph_rect): Use window coordinates returned from
7507 window_from_coordinates rather than frame_to_window_pixel_xy.
7508 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
7509 scroll-bars.
7510 (x_clip_to_row): Remove superfluous whole_line_p arg and code
7511 (fringes are now inside margins, i.e. always in the clipping area).
7512 All callers changed.
7513 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
7514 directly, then call compute_fringe_widths. Don't call
7515 frame_update_line_height.
7516
7517 * macfns.c: Make (several) trivial substitutions for renamed and
7518 new macros in dispextern.h, frame.h and window.h.
7519 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
7520
7521 * macmenu.c: Make (few) trivial substitutions for renamed and
7522 new macros in dispextern.h, frame.h and window.h.
7523
7524 * msdos.h (struct x_output): Remove members left_pos, top_pos,
7525 and line_height, and use corresponding new members in struct
7526 frame. All uses changed.
7527 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
7528 superseeded by corresponding macros in frame.h.
7529
7530 * msdos.c: Make (several) trivial substitutions for renamed and
7531 new macros in dispextern.h, frame.h and window.h.
7532 (IT_note_mouse_highlight): Use updated window coordinates returned
7533 by window_from_coordinates, rather than adjusting them locally.
7534 (internal_terminal_init): No need to initialize line_height here;
7535 it now defaults to 1.
7536
7537 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
7538
7539 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
7540 dropping `down' events.
7541
7542 2003-05-24 Andreas Schwab <schwab@suse.de>
7543
7544 * coding.c (find_safe_codings): Fix last change.
7545
7546 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
7547
7548 * xfns.c (x_window): Fix typo from 2003-05-21 change.
7549
7550 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
7551
7552 * xdisp.c (display_mode_element): Increase max depth.
7553 Simplify the error handling code. Use a different error string
7554 for the case where we hit the depth limit.
7555
7556 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
7557
7558 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
7559
7560 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
7561
7562 * intervals.c (get_local_map): Don't get char-property of previous
7563 point any more: get_pos_property already does it and better.
7564
7565 2003-05-21 Dave Love <fx@gnu.org>
7566
7567 [Merged from unicode branch.]
7568
7569 * xfns.c (x_window, x_window): Use use_xim.
7570
7571 * xterm.c (use_xim): Initialize.
7572 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7573 (x_term_init): Maybe set use_xim.
7574
7575 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7576
7577 2003-05-21 Jason Rumney <jasonr@gnu.org>
7578
7579 * unexw32.c (_start): Remove _fmode initialization.
7580
7581 * emacs.c (main) [WINDOWSNT]: Move it here.
7582
7583 2003-05-20 Dave Love <fx@gnu.org>
7584
7585 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
7586
7587 2003-05-19 Richard M. Stallman <rms@gnu.org>
7588
7589 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
7590 as value for QCfont attribute.
7591 (realize_default_face): lface should already exist; crash if not.
7592 Specify 0 for FORCE_P when calling set_lface_from_font_name.
7593
7594 * frame.c (Fignore_event): Doc fix.
7595
7596 2003-05-19 Kenichi Handa <handa@m17n.org>
7597
7598 * coding.c (decode_coding_string): Handle post-read-conversion
7599 even if the coding doesn't require decoding.
7600
7601 2003-05-18 Richard M. Stallman <rms@gnu.org>
7602
7603 * callproc.c (Fcall_process_region): Doc fix.
7604
7605 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7606
7607 * lread.c (Fload): Print a message if package is obsolete.
7608
7609 * window.c (Fselect_window): Add optional `norecord' arg.
7610 (select_window_1): Fold into Fselect_window.
7611 (select_window_norecord): New function.
7612 (temp_output_buffer_show): Use it. Preserve current buffer.
7613
7614 * window.h (Fselect_window): Update declaration.
7615
7616 * window.c (delete_window, Fother_window, Fset_window_configuration):
7617 * minibuf.c (read_minibuf):
7618 * macterm.c (x_new_focus_frame):
7619 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
7620 * callint.c (Fcall_interactively):
7621 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
7622
7623 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
7624
7625 2003-05-17 David Kastrup <dak@gnu.org>
7626
7627 * process.c (read_process_output): Back out change from 2003-03-09.
7628
7629 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
7630
7631 * editfns.c (get_pos_property): Don't assume that `object' = nil.
7632
7633 * textprop.c (text_property_stickiness): New arg `buffer'.
7634
7635 * intervals.h (text_property_stickiness): New arg `buffer'.
7636 (get_pos_property): Declare.
7637
7638 * intervals.c (get_local_map): Use get_pos_property, to obey
7639 stickiness and empty overlays.
7640 (create_root_interval, graft_intervals_into_buffer): Use BEG.
7641 (merge_properties, intervals_equal, merge_properties_sticky):
7642 Use XCAR, XCDR.
7643 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
7644
7645 2003-05-17 Richard M. Stallman <rms@gnu.org>
7646
7647 * minibuf.c (read_minibuf): If buffer is empty, record the default
7648 in the history.
7649 (Fminibuffer_complete_word): When deleting the overlap, take account
7650 of its real position.
7651
7652 * fns.c (map_char_table): Fix previous change.
7653
7654 * syntax.c (find_defun_start):
7655 When open_paren_in_column_0_is_defun_start,
7656 return beginning of buffer.
7657
7658 * lisp.h (map_char_table): Declare added arg.
7659
7660 * fns.c (map_char_table): New arg TABLE gets the master table.
7661 All calls changed.
7662 Process default and inheritance, resorting to Faref if necessary.
7663
7664 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7665 (Faccessible_keymaps): Pass new arg to map_char_table.
7666
7667 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
7668
7669 * casetab.c (set_case_table): Pass new arg to map_char_table.
7670
7671 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
7672
7673 * lisp.h (specbinding_func): New typedef.
7674 (struct specbinding): Use specbinding_func, to put the `volatile'
7675 in the right place.
7676
7677 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
7678 to avoid GCC warning.
7679
7680 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
7681
7682 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
7683
7684 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
7685
7686 * keyboard.c (apply_modifiers): Don't fill the other cache.
7687
7688 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
7689
7690 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
7691
7692 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
7693 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
7694 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
7695 (Fset_window_configuration, Fcurrent_window_configuration)
7696 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
7697 (Fpos_visible_in_window_p, mark_window_cursors_off)
7698 (window_internal_height, window_internal_width, Frecenter)
7699 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
7700 (replace_buffer_in_all_windows, init_window_once, init_window)
7701 (syms_of_window, keys_of_window): Move from lisp.h.
7702 * lisp.h: Move window.c declarations to window.h.
7703
7704 * bytecode.c: Include window.h.
7705 * emacs.c: Include window.h.
7706
7707 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
7708 (keyremap): Add `parent' field.
7709 (keyremap_step): Use it. Remove `parent' argument.
7710 (read_key_sequence): Setup and use the new `parent' field.
7711
7712 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
7713
7714 * keyboard.c (adjust_point_for_property): Ensure termination.
7715
7716 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
7717
7718 * keyboard.c (follow_key): Remove dead variable `did_meta'.
7719 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
7720 duplicated handling of function-key-map and key-translation-map
7721 in read_key_sequence.
7722 (read_key_sequence): Use them.
7723
7724 * keyboard.c (adjust_point_for_property): Try harder to move point
7725 to the non-sticky end of an invisible property.
7726
7727 * xdisp.c (single_display_prop_intangible_p): Make `space' display
7728 property intangible as well.
7729
7730 2003-05-10 Andreas Schwab <schwab@suse.de>
7731
7732 * xmenu.c (single_menu_item): Change last parameter to void* to
7733 avoid warning.
7734
7735 2003-05-09 Richard M. Stallman <rms@gnu.org>
7736
7737 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
7738 Bind Qinhibit_modification_hooks to t so there will be no GC.
7739 Rename local `tem' to `save_deactivate_mark'.
7740
7741 * eval.c (specpdl_ptr): Declare volatile.
7742 (unbind_to): Copy the whole binding and decrement specpdl_ptr
7743 before doing the work of unbinding it.
7744
7745 * lisp.h (struct specbinding): Declare elements volatile.
7746 (specpdl_ptr): Declare volatile.
7747
7748 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
7749
7750 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
7751 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
7752
7753 2003-05-08 Dave Love <fx@gnu.org>
7754
7755 * coding.c (Vlast_coding_system_used): Doc fix.
7756
7757 2003-05-07 Jason Rumney <jasonr@gnu.org>
7758
7759 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
7760 when system does not support them.
7761
7762 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
7763
7764 * fileio.c (Qwrite_region_annotate_functions): New var.
7765 (build_annotations): Use it to process the global part of the hook.
7766 (syms_of_fileio): Init and staticpro it.
7767
7768 * keyboard.c (safe_run_hooks_error): Display a message instead of
7769 silently ignoring the error.
7770
7771 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
7772
7773 * keyboard.c (input_available_signal): Mark static.
7774 (menu_bar_items): Use map_keymap.
7775 (menu_bar_one_keymap): Remove.
7776 (menu_bar_item): Adjust arglist (for use in map_keymap).
7777 Properly hide a second binding when not both are keymaps.
7778
7779 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
7780 (single_keymap_panes): Use it and map_keymap.
7781 (single_menu_item): Use skp as well.
7782
7783 * keymap.h (map_keymap_function_t): New type.
7784 (map_keymap): Declare.
7785
7786 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
7787 (map_keymap_call, Fmap_keymap): New functions.
7788 (syms_of_keymap): Defsubr map-keymap.
7789
7790 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7791
7792 * gtkutil.c (create_dialog, make_widget_for_menu_item)
7793 (make_menu_item, create_menus, xg_update_menu_item): Don't call
7794 ..._with_mnemonic functions for menu items.
7795
7796 2003-05-01 Kenichi Handa <handa@m17n.org>
7797
7798 * coding.c (coding_system_accept_latin_extra_p): Delete this
7799 function.
7800 (find_safe_codings): Pay attention to
7801 the property tranlsation-table-for-encode of each codings.
7802 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
7803
7804 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
7805
7806 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
7807
7808 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
7809
7810 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
7811
7812 * lisp.h (CHECK): Wrap args in parenthesis.
7813 (specbind): Fix doc: symbol = Qnil is not supported any more.
7814
7815 * bytecode.c (Fbyte_code) <unwind-protect>:
7816 Use Fprogn rather than 0 and Qnil.
7817
7818 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
7819 `double', and `triple' modifiers as well.
7820
7821 2003-04-30 Richard M. Stallman <rms@gnu.org>
7822
7823 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
7824
7825 * alloc.c (abort_on_gc): New variable.
7826 (Fgarbage_collect): Abort if abort_on_gc is set.
7827
7828 * lisp.h (abort_on_gc): Add decl.
7829
7830 * eval.c (Fsignal): Clear abort_on_gc.
7831
7832 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
7833 Reinit FORMAT_START and END before second scan.
7834
7835 * xdisp.c (move_it_vertically_backward): Do the final big else
7836 even if nlines is 0.
7837
7838 * xdisp.c (redisplay_internal): Finish the per-frame loop
7839 even if redisplay is suspended by input.
7840
7841 2003-04-24 Andrew Choi <akochoi@shaw.ca>
7842
7843 * macterm.c (x_list_fonts): Return all fonts that match if
7844 maxnames = -1.
7845
7846 2003-04-25 Kenichi Handa <handa@m17n.org>
7847
7848 * syntax.c (skip_chars): Fix previous change.
7849
7850 2003-04-24 Kenichi Handa <handa@m17n.org>
7851
7852 * syntax.c (skip_chars): Make the code faster by using the common
7853 technique of *p, *stop, and *endp.
7854
7855 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7856
7857 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
7858 tool_bar_items so GTK tool bar expose callback does not access items
7859 being updated.
7860
7861 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
7862
7863 * eval.c (Fapply): Undo last change and add a comment about why.
7864
7865 2003-04-18 Miles Bader <miles@gnu.org>
7866
7867 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
7868 pickier PARSE_MULTIBYTE_SEQ.
7869
7870 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
7871
7872 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
7873 Use XCDR, XCAR, CONSP.
7874 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
7875 (Fapply): Remove unnecessary GCPRO.
7876
7877 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
7878
7879 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
7880
7881 * buffer.h: Don't hardcode BEG==1.
7882
7883 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
7884
7885 2003-04-16 Richard M. Stallman <rms@gnu.org>
7886
7887 * xdisp.c (try_window, try_window_reusing_current_matrix):
7888 When at end of window, set window_end_pos to Z-ZV.
7889
7890 * buffer.c (Foverlay_recenter): Doc fix.
7891
7892 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
7893
7894 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
7895
7896 2003-04-14 Andrew Choi <akochoi@shaw.ca>
7897
7898 * macterm.c (mac_check_for_quit_char): Don't check more often than
7899 once a second.
7900
7901 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
7902
7903 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
7904 specially, so that they can't hide an implicit switch-frame event.
7905 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
7906 (head_table): Use switch-frame as event_kind for select-window.
7907 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
7908
7909 * editfns.c (Fformat): Lisp_Object/int mixup.
7910 (format2): Remove unused var numargs.
7911
7912 2003-04-11 Kenichi Handa <handa@m17n.org>
7913
7914 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
7915 (Qafter_insert_file_set_coding): New variable.
7916 (syms_of_fileio): Initialize and staticpro it. Delete declaration
7917 for after-insert-file-adjust-coding-function.
7918 (Finsert_file_contents): Call Qafter_insert_file_set_coding
7919 instead of Vafter_insert_file_adjust_coding_function.
7920
7921 2003-04-11 Kenichi Handa <handa@m17n.org>
7922
7923 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
7924
7925 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
7926 string. Callers changed.
7927
7928 2003-04-10 Kenichi Handa <handa@m17n.org>
7929
7930 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
7931 (syms_of_fileio): Declare it as a lisp variable.
7932 (Finsert_file_contents):
7933 Call Vafter_insert_file_adjust_coding_function before calling
7934 decode-format.
7935
7936 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7937
7938 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
7939 get GtkAdjustment as widget now is a GtkRange.
7940
7941 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
7942 GtkRange to avoid memory leak.
7943
7944 2003-04-09 Kenichi Handa <handa@m17n.org>
7945
7946 * xfaces.c (Vface_font_rescale_alist): New variable.
7947 (struct font_name): New member rescale_ratio.
7948 (font_rescale_ratio): New function.
7949 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
7950 (better_font_p): On comparing point sized, pay attention to
7951 recale_ratio member of fonts.
7952 (build_scalable_font_name): Reflect font->rescale_ratio in the
7953 font name.
7954 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
7955
7956 * lread.c (read1): Before calling index, check if the 2nd
7957 arguemnt is in ASCII range.
7958
7959 2003-04-08 Richard M. Stallman <rms@gnu.org>
7960
7961 * fileio.c (Ffile_symlink_p): Doc fix.
7962
7963 * editfns.c (Fformat): Translate positions of text properties
7964 in the format string to apply them to the result.
7965
7966 * fileio.c (Finsert_file_contents): Doc fix.
7967 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
7968
7969 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
7970
7971 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
7972
7973 2003-04-08 Steven Tamm <steventamm@mac.com>
7974
7975 * mac.c (init_mac_osx_environment): Switch libexec and bin so
7976 that self-contained application finds libexec files.
7977
7978 2003-04-08 Kenichi Handa <handa@m17n.org>
7979
7980 * coding.c (code_convert_region_unwind):
7981 Set Vlast_coding_system_used to the argument.
7982 (code_convert_region): If post-read-conversion function changed
7983 the value of last-coding-sytem, keep the new value in
7984 coding->symbol so that it won't be overridden.
7985 (run_pre_post_conversion_on_str): Likewise.
7986 (coding_system_accept_latin_extra_p): New function.
7987 (find_safe_codings): Pay attention to characters registered in
7988 latin-extra-code-table.
7989
7990 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
7991
7992 * Makefile.in (md5.o): Add missing dependency info.
7993
7994 2003-04-06 Richard M. Stallman <rms@gnu.org>
7995
7996 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
7997
7998 * marker.c (verify_bytepos): New function.
7999
8000 * intervals.c (set_intervals_multibyte_1): When becoming
8001 multibyte, adjust right and left child sizes to a whole set of
8002 characters. If an interval gets zero total-length, delete it.
8003 If an interval consists of just its children, delete one of them.
8004
8005 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
8006 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
8007
8008 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
8009 All calls deleted.
8010 (lisp_malloc): Do the work here directly.
8011
8012 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
8013
8014 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
8015 char tables.
8016
8017 2003-04-04 Kenichi Handa <handa@m17n.org>
8018
8019 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
8020 destructively change "%S" to "%s".
8021
8022 2003-04-03 Miles Bader <miles@gnu.org>
8023
8024 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
8025 always set.
8026
8027 2003-04-01 Dave Love <fx@gnu.org>
8028
8029 * xfns.c (xpm_lookup_color): Grok "opaque".
8030
8031 2003-03-31 Andrew Choi <akochoi@shaw.ca>
8032
8033 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
8034 parent window ID.
8035
8036 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
8037
8038 * macterm.h (struct mac_output): Define x_pixels_diff and
8039 y_pixels_diff.
8040
8041 2003-03-31 Juanma Barranquero <lektu@terra.es>
8042
8043 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
8044 blockinput.h and files included from it.
8045
8046 2003-03-31 Kim F. Storm <storm@cua.dk>
8047
8048 The following changes consolidates the common code related to
8049 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
8050 files into frame.c.
8051
8052 * frame.c: Include blockinput.h.
8053 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
8054 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
8055 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
8056 related vars here.
8057 (struct frame_parm_table, frame_parms): New table for describing
8058 frame parameters and their associated Q-variable.
8059 The order of the parameters corresponds to the sequence of the
8060 frame_parm_handlers table in redisplay_interface.
8061 (x_fullscreen_move, x_set_frame_parameters)
8062 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
8063 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
8064 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8065 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
8066 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
8067 Generic functions for processing of frame parameters.
8068 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
8069 (display_x_get_resource, x_get_resource_string): Functions for
8070 generic access to X resources.
8071 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8072 (x_default_parameter, Fx_parse_geometry): Functions for generic
8073 access to frame parameters.
8074 (x_figure_window_size): Generic calculation of frame size.
8075 Fixed to add space needed for tool bar. Also setup size_hint_flags.
8076 (syms_of_frame): Intern and staticpro frame parameter variables.
8077 Defvar_lisp Vx_resource_class and Vx_resource_name here.
8078 Defsubr Sx_get_resource and Sx_parse_geometry.
8079
8080 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
8081 parameter related vars defined in frame.c.
8082 (EMACS_CLASS): Define here.
8083 (enum FULLSCREEN_*): Define here.
8084 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
8085 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
8086 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
8087 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
8088 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
8089 (x_set_visibility, x_set_autoraise, x_set_autolower)
8090 (x_set_unsplittable, x_set_vertical_scroll_bars)
8091 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
8092 (x_figure_window_size): Add prototypes.
8093
8094 * dispextern.h (frame_parm_handler): New typedef.
8095 (struct redisplay_interface): New member frame_parm_handlers.
8096 (enum resource_types): Move declaration here.
8097 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
8098 (x_default_parameter): Add prototypes.
8099
8100 * window.c: Remove extern decl for frame parameter vars.
8101 (change_window_heights): New generic function;
8102 replaces x_change_window_heights. All users changed.
8103
8104 * window.h (change_window_heights): Add prototype.
8105
8106 * xfaces.c: Remove extern decl for frame parameter vars.
8107
8108 * xterm.h (EMACS_CLASS): Remove. Use generic define.
8109 (struct w32_display_info): Fix type of xrdb member.
8110 (enum FULLSCREEN_*): Remove.
8111 Remove prototypes for generic functions (in frame.h).
8112
8113 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8114 parameters now defined in frame.h and frame.c.
8115 (Vx_resource_name): Remove. Use generic var.
8116 (enum x_frame_parms): Remove (bogus, unused enum).
8117 (check_x_display_info): Make non-static (for frame.c).
8118 (struct x_frame_parm_table, x_frame_parms): Remove.
8119 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8120 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8121 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8122 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8123 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8124 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8125 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8126 Remove. Use generic functions instead.
8127 (enum resource_types): Remove.
8128 (x_set_scroll_bar_default_width): New global function (for frame.c).
8129 (Fx_create_frame): Depend on x_figure_window_size to add space for
8130 toolbar and setup size_hint_flags.
8131 (x_frame_parm_handlers): New table for redisplay_interface.
8132 (syms_of_xfns): Don't intern/staticpro removed vars.
8133
8134 * xterm.c: Remove unnecessary extern declarations.
8135 (x_fullscreen_adjust): Remove. Use generic instead.
8136 (x_redisplay_interface): Add x_frame_parm_handlers member.
8137
8138 * w32gui.h (XrmDatabase): New (dummy) typedef.
8139
8140 * w32term.h (EMACS_CLASS): Remove. Use generic define.
8141 (struct w32_display_info): Fix type of xrdb member.
8142 (enum FULLSCREEN_*): Remove.
8143 (x_fullscreen_adjust): Remove prototype.
8144
8145 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8146 parameters now defined in frame.h and frame.c.
8147 (Vx_resource_name): Remove. Use generic var.
8148 (enum x_frame_parms): Remove (bogus, unused enum).
8149 (check_x_display_info): Make non-static (for frame.c).
8150 (struct x_frame_parm_table, x_frame_parms): Remove.
8151 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8152 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8153 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8154 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8155 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8156 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8157 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8158 Remove. Use generic functions instead.
8159 (enum resource_types): Remove.
8160 (x_set_scroll_bar_default_width): New global function (for frame.c).
8161 (Fx_create_frame): Depend on x_figure_window_size to add space for
8162 toolbar and setup size_hint_flags.
8163 (w32_frame_parm_handlers): New table for redisplay_interface.
8164 (syms_of_w32fns): Don't intern/staticpro removed vars.
8165
8166 * w32term.c: Remove unnecessary extern declarations.
8167 (x_fullscreen_adjust): Remove. Use generic instead.
8168 (x_redisplay_interface): Add w32_frame_parm_handlers member.
8169
8170 * w32reg.c (x_get_string_resource): Use XrmDatabase.
8171
8172 * macgui.h (XrmDatabase): New (dummy) typedef.
8173
8174 * macterm.h (EMACS_CLASS): Remove.
8175 (struct mac_display_info): Add xrdb member.
8176 (struct mac_output): Add want_fullscreen member.
8177
8178 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
8179 parameters now defined in frame.h and frame.c.
8180 (Vx_resource_name): Remove. Use generic var.
8181 (check_x_display_info): Make non-static (for frame.c).
8182 (struct x_frame_parm_table, x_frame_parms): Remove.
8183 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
8184 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
8185 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
8186 (x_change_window_heights, x_set_autoraise, x_set_autolower)
8187 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
8188 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
8189 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
8190 Remove. Use generic functions instead.
8191 (enum resource_types): Remove.
8192 (x_set_scroll_bar_default_width): New global function (for frame.c).
8193 (mac_frame_parm_handlers): New table for redisplay_interface.
8194 (syms_of_macfns): Don't intern/staticpro removed vars.
8195
8196 * macterm.c: Remove unnecessary extern declarations.
8197 (x_redisplay_interface): Add mac_frame_parm_handlers member.
8198
8199 * Makefile.in (frame.o): Add dependency on blockinput.h and files
8200 included from it (atimer.h and systime.h).
8201
8202 2003-03-30 Andreas Schwab <schwab@suse.de>
8203
8204 * xdisp.c (x_insert_glyphs): Fix swapped width and height
8205 parameters for shift_glyphs_for_insert.
8206
8207 * macterm.c (x_redisplay_interface): Add missing entry for
8208 draw_vertical_window_border.
8209
8210 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8211
8212 * fileio.c (Fexpand_file_name): In the no-handler case, after
8213 expanding, look again for a handler and invoke it. This is needed
8214 for filenames like "/foo/../user@host:/bar/../baz" -- the first
8215 expansion produces "/user@host:/bar/../baz" which needs to be
8216 expanded again for the finame result "/user@host:/baz".
8217
8218 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8219
8220 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
8221 of area to be redrawn for better performance.
8222
8223 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
8224
8225 * xterm.c (take_vertical_position_into_account): Remove.
8226 (xt_action_hook): Call set_vertical_scroll_bar if needed.
8227 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
8228 (xm_scroll_callback, x_create_toolkit_scroll_bar)
8229 (x_set_toolkit_scroll_bar_thumb): Simplify.
8230 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
8231 (XTread_socket): Remove unused var.
8232 (x_make_frame_invisible): Replace goto with else.
8233
8234 * xdisp.c (set_vertical_scroll_bar): New fun.
8235 (redisplay_window): Use it.
8236
8237 2003-03-26 Richard M. Stallman <rms@gnu.org>
8238
8239 * xdisp.c (update_tool_bar): Recompute tool bar if
8240 update_mode_lines is set. Set w->update_mode_line
8241 only if the tool bar contents actually change.
8242 (update_menu_bar): Undo previous change.
8243
8244 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8245
8246 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
8247 (xg_frame_set_char_size): Calculate scroll bar width before frame
8248 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
8249 (xg_separator_p): Check for all documented separator types.
8250 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
8251 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
8252
8253 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
8254 so tool bar gets updated.
8255
8256 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
8257
8258 * data.c (store_symval_forwarding): Re-instate part of the code
8259 that was deleted with too much enthusiasm.
8260
8261 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
8262
8263 * data.c (store_symval_forwarding): Delete special read-only
8264 hack for type == -1, since we now use ->constant instead.
8265 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
8266
8267 * buffer.c (overlays_in): Declare static.
8268 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
8269 `constant' field rather than the variable's `type' field.
8270
8271 2003-03-24 Andrew Choi <akochoi@shaw.ca>
8272
8273 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
8274
8275 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
8276
8277 * fns.c [MAC_OSX]: Do not redefine vector.
8278
8279 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
8280
8281 * macgui.h: Remove definition of No_Cursor.
8282
8283 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
8284
8285 * xdisp.c: Define No_Cursor.
8286 (x_write_glyphs, notice_overwritten_cursor)
8287 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
8288 (note_mouse_highlight): Remove Mac-specific code.
8289 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
8290
8291 2003-03-24 John Paul Wallington <jpw@gnu.org>
8292
8293 * xdisp.c (redisplay_window): If mini window's buffer is not
8294 empty, then redisplay it like other windows.
8295
8296 2003-03-23 Kim F. Storm <storm@cua.dk>
8297
8298 * w32term.c (w32_draw_window_cursor): Fix last change.
8299
8300 2003-03-23 Kenichi Handa <handa@m17n.org>
8301
8302 * alloc.c (make_string_from_bytes, make_specified_string):
8303 Add `const' for the arg CONTENTS.
8304
8305 * lisp.h (make_string_from_bytes, make_specified_string):
8306 Prototypes adjusted.
8307
8308 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8309
8310 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
8311
8312 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
8313 (XG_SB_RANGE): New define.
8314
8315 * gtkutil.c (xg_fixed_handle_expose): New function.
8316 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
8317 expose events.
8318 (xg_update_scrollbar_pos): Take two more arguments, left and width
8319 of scroll bar including borders.
8320 Clear left and right part outside scroll bar separately as some
8321 themes have bars that are not an even number of pixels.
8322 Don't set reallocate_redraws, don't call
8323 gdk_window_process_all_updates.
8324 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
8325 so no need to change it. Calculate size and value with XG_SB_RANGE.
8326
8327 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
8328 Pass left and width of scroll bar including borders to
8329 xg_update_scrollbar_pos.
8330
8331 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
8332
8333 * Makefile.in: Make sure space precedes end-of-line backslashes.
8334
8335 2003-03-22 Kim F. Storm <storm@cua.dk>
8336
8337 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
8338 Add generic versions here. Remove system specific versions
8339 defined elsewhere.
8340
8341 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
8342 Add prototypes.
8343
8344 * xterm.h (STORE_NATIVE_RECT): New macro.
8345
8346 2003-03-21 Kim F. Storm <storm@cua.dk>
8347
8348 * xdisp.c (get_glyph_string_clip_rect):
8349 Use FRAME_INTERNAL_BORDER_WIDTH.
8350
8351 * dispextern.h (struct redisplay_interface): Add active_p
8352 argument to draw_window_cursor member. All uses changed.
8353
8354 2003-03-21 Kim F. Storm <storm@cua.dk>
8355
8356 The following changes consolidate code related to writing and
8357 inserting glyphs, exposing frame, the tool bar, the mouse face,
8358 the output cursor, and help echo from xterm.c, w32term.c and
8359 macterm.c into xdisp.c. It also generalizes the use of the
8360 window_part enum instead of using numeric values throughout.
8361
8362 * xdisp.c: Consolidate gui-independent code here.
8363 Include keymap.h.
8364 (Qhelp_echo): Import.
8365 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
8366 (help_echo_string, help_echo_window, help_echo_object)
8367 (previous_help_echo_string, help_echo_pos): Declare here.
8368 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
8369 (estimate_mode_line_height): Define here. Handle windowing
8370 systems directly (without using estimate_mode_line_height_hook).
8371 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
8372 (update_window_cursor, update_cursor_in_window_tree)
8373 (fast_find_position, fast_find_string_pos)
8374 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
8375 (expose_area, expose_line, expose_overlaps, expose_window)
8376 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
8377 declared static as they are only used locally in xdisp.c.
8378 (draw_glyphs): Rename from x_draw_glyphs and make static.
8379 (tool_bar_item_info, notice_overwritten_cursor): Make static.
8380 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8381 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
8382 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
8383 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8384 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
8385 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
8386 (note_mouse_highlight, x_clear_window_mouse_face)
8387 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
8388 (x_intersect_rectangles): New generic functions for use by xdisp.c
8389 and GUI front-ends.
8390 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
8391 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
8392
8393 * dispextern.h (Display_Info): Generic typedef for *_display_info.
8394 (NativeRectangle): Generic typedef for rectangle type.
8395 (enum window_part): Move here from window.c.
8396 (struct redisplay_interface): New members flush_display_optional,
8397 define_frame_cursor, clear_frame_area, draw_window_cursor,
8398 draw_vertical_window_border, shift_glyphs_for_insert.
8399 Rename member clear_mouse_face to clear_window_mouse_face.
8400 (estimate_mode_line_height_hook): Remove hook.
8401 (auto_raise_tool_bar_buttons_p): Don't declare extern.
8402 (tool_bar_item_info): Remove prototype.
8403 (help_echo_string, help_echo_window, help_echo_object)
8404 (previous_help_echo_string, help_echo_pos)
8405 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
8406 (x_stretch_cursor_p, output_cursor): Declare extern.
8407 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
8408 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
8409 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
8410 (display_and_set_cursor, set_output_cursor, x_cursor_to)
8411 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
8412 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
8413 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
8414 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
8415 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
8416 Add prototypes.
8417 (mode_line_string, marginal_area_string): Fix prototypes.
8418
8419 * window.c (enum window_part): Move to dispextern.h.
8420 (coordinates_in_window): Use enum window_part member names
8421 instead of numbers to describe return value.
8422 (struct check_window_data): Change part member to window_part.
8423 (check_window_containing): Return window_part unaltered.
8424 (window_from_coordinates): Change part arg from int to enum
8425 window_part. Allow part arg to be null. All users changed.
8426
8427 * window.h (window_from_coordinates): Fix prototype.
8428
8429 * term.c (estimate_mode_line_height): Move to xdisp.c.
8430
8431 * keyboard.c (make_lispy_event): Use enum window_part.
8432
8433 * dispnew.c (mode_line_string, marginal_area_string): Use enum
8434 window_part instead of int in arg list. Users changed.
8435
8436 * xterm.h (No_Cursor): Declare as None for X.
8437 (struct mac_output): Replace member cross_cursor by hand_cursor.
8438
8439 * xterm.c: Remove consolidated defines and code.
8440 (BETWEEN): Remove unused macro.
8441 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
8442 (x_define_frame_cursor, x_clear_frame_area)
8443 (x_draw_window_cursor): New X-specific functions for RIF.
8444 (x_redisplay_interface): Add new members.
8445
8446 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
8447
8448 * w32term.h (struct w32_output): Remove cross_cursor member.
8449
8450 * w32term.c: Remove consolidated defines and code.
8451 (BETWEEN): Remove unused macro.
8452 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
8453 (w32_define_frame_cursor, w32_clear_frame_area)
8454 (w32_draw_window_cursor): New W32-specific functions for RIF.
8455 (w32_redisplay_interface): Add new members.
8456
8457 * w32gui.h (No_Cursor): Define as 0 for W32.
8458 (XRectangle): Add X compatible rectangle type.
8459 (NativeRectangle): Declare as RECT for W32.
8460 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8461
8462 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
8463
8464 * w32console.c: Remove consolidated defines and code.
8465
8466 * msdos.h (Display_Info): Add generic typedef.
8467
8468 * msdos.c: Remove consolidated defines and code.
8469 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
8470
8471 * macterm.h (struct mac_output): Replace member cross_cursor by
8472 hand_cursor.
8473 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
8474
8475 * macterm.c: Remove consolidated defines and code.
8476 (BETWEEN): Remove unused macro.
8477 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
8478 (mac_define_frame_cursor, mac_clear_frame_area)
8479 (mac_draw_window_cursor): New Mac-specific functions for RIF.
8480 (x_redisplay_interface): Add new members.
8481
8482 * macgui.h (No_Cursor): Define as 0 for Mac.
8483 (XRectangle): Add X compatible rectangle type.
8484 (NativeRectangle): Declare as Rect for Mac.
8485 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
8486
8487 * macfns.c (x_set_mouse_color): Setup hand_cursor.
8488 (x_set_cursor_color): Use x_display_and_set_cursor.
8489
8490 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
8491 included from it. Add dependency on keymap.h.
8492
8493 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
8494
8495 2003-03-21 Kenichi Handa <handa@m17n.org>
8496
8497 * fileio.c (Fexpand_file_name): Fix previous change.
8498
8499 2003-03-19 Kenichi Handa <handa@m17n.org>
8500
8501 * fileio.c (Ffile_name_directory): Reconstruct file name by
8502 make_specified_string.
8503 (Ffile_name_nondirectory, Ffile_name_as_directory)
8504 (Fdirectory_file_name, Fexpand_file_name)
8505 (Fsubstitute_in_file_name): Likewise.
8506 (Fread_file_name): Compare decoded homedir with DIR and
8507 DEFAULT_FILENAME.
8508
8509 * alloc.c (make_specified_string): If NCHARS is negative, count
8510 the number of characters.
8511
8512 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8513
8514 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
8515 all widgets.
8516
8517 * gtkutil.h: Removed xg_ignore_next_thumb.
8518
8519 2003-03-18 Kenichi Handa <handa@m17n.org>
8520
8521 * coding.c (Vchar_coding_system_table): Remove this variable.
8522 (Vcoding_system_safe_chars): New variable.
8523 (intersection): Remove this function.
8524 (find_safe_codings): Don't use Vchar_coding_system_table, but try
8525 all codings in SAFE_CODINGS.
8526 (Ffind_coding_systems_region_internal): Adjust for the change of
8527 find_safe_codings. Get generic coding systems from
8528 Vcoding_system_safe_chars.
8529 (Fdefine_coding_system_internal): New function.
8530 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
8531 Initialize and staticpro Vcoding_system_safe_chars.
8532
8533 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8534
8535 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
8536 equal old values before updating.
8537
8538 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
8539
8540 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
8541
8542 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8543
8544 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
8545 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
8546 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
8547 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
8548 (xg_create_scroll_bar): Pass bar to button event callback.
8549 (xg_find_top_left_in_fixed): New function.
8550 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
8551 whole scroll bar area. Get old position with
8552 xg_find_top_left_in_fixed, calculate and only clear needed areas.
8553 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
8554 dragging is in progress. Calculate whole as for Motif.
8555 Remove code that saved last values. Call gtk_range functions to
8556 set scroll bar sizes.
8557
8558 * gtkutil.h: Removed xg_ignore_next_thumb.
8559
8560 2003-03-17 Juanma Barranquero <lektu@terra.es>
8561
8562 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
8563 and files included from it.
8564
8565 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
8566
8567 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
8568 multiple occurrences of the same keymap under different prefixes.
8569 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
8570
8571 2003-03-16 Jason Rumney <jasonr@gnu.org>
8572
8573 * w32gui.h: Use HDC for Display.
8574
8575 * w32term.c (w32_encode_char): Prevent double-byte chars from
8576 crashing Emacs.
8577
8578 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
8579 as binary.
8580
8581 2003-03-16 Juanma Barranquero <lektu@terra.es>
8582
8583 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
8584
8585 2003-03-16 Kim F. Storm <storm@cua.dk>
8586
8587 The following changes consolidate some of the gui-independent
8588 parts of the processing and drawing of "glyph strings" from
8589 xterm.c, w32term.c, and macterm.c into xdisp.c.
8590
8591 * dispextern.h (struct glyph): Reduce face_id member from 22 to
8592 21 bits (this reduces number of faces from 4M to 2M).
8593 Replace W32 specific w32_font_type member (2 bits) by generic
8594 font_type member (3 bits) for portability.
8595 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
8596 (enum draw_glyphs_face): Define here.
8597 (struct glyph_string): Define here. Merge W32 and X versions.
8598 (struct redisplay_interface): New members per_char_metric,
8599 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
8600 (VCENTER_BASELINE_OFFSET): Define here.
8601 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
8602 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
8603
8604 * xdisp.c: Consolidate gui-independent "glyph string" code here.
8605 (dump_glyph_string): Moved here.
8606 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
8607 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
8608 (fill_composite_glyph_string, fill_glyph_string)
8609 (fill_image_glyph_string, fill_stretch_glyph_string)
8610 (left_overwritten, left_overwriting, right_overwritten)
8611 (right_overwriting, get_char_face_and_encoding)
8612 (set_glyph_string_background_width, compute_overhangs_and_x)
8613 (append_glyph, append_composite_glyph, produce_image_glyph)
8614 (take_vertical_position_into_account, append_stretch_glyph)
8615 (produce_stretch_glyph): New generic functions (based on X version).
8616 Call platform specific functions through rif.
8617 (INIT_GLYPH_STRING): New macro, hides W32 details.
8618 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
8619 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
8620 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
8621 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
8622 (notice_overwritten_cursor):
8623 Generic functions exported to platform modules. Users changed.
8624
8625 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
8626 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
8627 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
8628 New macros for consolidated code.
8629
8630 * xterm.c: Remove consolidated defines and code.
8631 (x_per_char_metric, x_encode_char)
8632 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
8633 (x_redisplay_interface): Add new members.
8634
8635 * w32gui.h (Display): Add dummy typedef for consolidation.
8636 (XChar2b): Define alias for wchar_t for consolidation.
8637 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8638
8639 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
8640 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
8641 New macros for consolidation.
8642
8643 * w32term.c: Remove consolidated defines and code.
8644 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
8645 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
8646 (w32_per_char_metric): Change font_type arg to int for RIF.
8647 (w32_encode_char): Return int according to RIF requirements.
8648 (w32_compute_glyph_string_overhangs): Adapt to RIF.
8649 (w32_get_glyph_overhangs): New function for RIF. Uses generic
8650 x_get_glyph_overhangs.
8651 (w32_redisplay_interface): Add new members.
8652
8653 * macgui.h (XChar2b): Move typedef here for consolidation.
8654 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
8655
8656 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
8657 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
8658 consolidation.
8659
8660 * macterm.c: Remove consolidated defines and code.
8661 (mac_per_char_metric): New function for RIF.
8662 (mac_encode_char): Adapt to new RIF requirements.
8663 (mac_compute_glyph_string_overhangs): Adapt for RIF.
8664 (x_redisplay_interface): Add new members.
8665
8666 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
8667
8668 * keymap.c (Vmenu_events): New var.
8669 (syms_of_keymap): Initialize it.
8670 (where_is_internal): Check more carefully what is a menu event.
8671
8672 2003-03-14 Richard M. Stallman <rms@gnu.org>
8673
8674 * lread.c (read1): After #!, exit loop on eof.
8675
8676 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8677
8678 * gtkutil.h: Add declaration for xg_frame_cleared.
8679
8680 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
8681
8682 * gtkutil.c (struct xg_last_sb_pos): New structure.
8683 (handle_fixed_child): New function.
8684 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
8685 and force a redraw on them.
8686 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
8687 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
8688 so we can avoid unneeded redraws.
8689 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
8690 and force a redraw on the scroll bar.
8691 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
8692 if xg_last_sb_pos shows the positions are up to date.
8693 (xg_frame_cleared): New function.
8694
8695 2003-03-13 Kenichi Handa <handa@m17n.org>
8696
8697 * coding.c (Fdetect_coding_region): Fix docstring.
8698 (Fdetect_coding_string): Fix docstring.
8699
8700 2003-03-13 Andreas Schwab <schwab@suse.de>
8701
8702 * gtkutil.c: Add prototype for create_menus.
8703
8704 * data.c (long_to_cons): Fix type of top.
8705
8706 * xselect.c (selection_data_to_lisp_data): Use int instead of
8707 long for an integer of size 4.
8708
8709 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
8710 (xg_tool_bar_help_callback): Likewise.
8711
8712 2003-03-12 Andreas Schwab <schwab@suse.de>
8713
8714 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
8715
8716 2003-03-12 Kim F. Storm <storm@cua.dk>
8717
8718 The following changes consolidate the fringe handling from
8719 xterm.c, w32term.c, and macterm.c into xdisp.c.
8720
8721 * xdisp.c: Consolidate fringe handling code here.
8722 (left_bits, right_bits, continued_bits, continuation_bits)
8723 (ov_bits, zv_bits): Define fringe bitmaps.
8724 (fringe_bitmaps): New array holding fringe bitmaps.
8725 (draw_fringe_bitmap): Draw a specific bitmap; call display
8726 specific drawing routine via rif->draw_fringe_bitmap.
8727 (draw_row_fringe_bitmaps): Generic replacement for
8728 x_draw_row_fringe_bitmaps; all callers changed.
8729 (compute_fringe_widths): Generic replacement for
8730 x_compute_fringe_widths; all callers changed.
8731
8732 * dispextern.h (enum fringe_bitmap_type): Define here.
8733 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
8734 (fringe_bitmaps): Declare extern.
8735 (struct redisplay_interface): New member draw_fringe_bitmap.
8736 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
8737
8738 * xterm.c: Remove generic fringe code.
8739 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8740 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8741
8742 * w32term.c: Remove generic fringe code.
8743 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
8744 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
8745
8746 * macterm.c: Remove generic fringe code.
8747 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
8748 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
8749
8750 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
8751
8752 * print.c (Fprin1_to_string): Return unibyte string if possible.
8753
8754 2003-03-09 David Kastrup <dak@gnu.org>
8755
8756 * process.c (read_process_output): We have allocated enough space
8757 for readmax and carryover, so actually use the alloted space.
8758
8759 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8760
8761 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
8762 toolkit scrollbar click.
8763
8764 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
8765 for USE_GTK.
8766 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
8767 also.
8768 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
8769 scrollbar and control is pressed, call x_scroll_bar_handle_click.
8770
8771 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
8772
8773 * gtkutil.c (xg_get_scroll_id_for_window): New function.
8774 (xg_tool_bar_item_expose_callback): New function.
8775 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
8776 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
8777 on the tool bar widget.
8778 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
8779 to expose on the tool bar item widgets.
8780
8781 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8782
8783 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
8784 struct image* when deciding to update (struct image* may have been
8785 deleted from the image cache).
8786
8787 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
8788 the event isn't for a frame (i.e. for dialogs).
8789
8790 2003-03-07 Kenichi Handa <handa@m17n.org>
8791
8792 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
8793 composition components reaches the limit, terminate composing.
8794 (COMPOSITION_OK): New macro.
8795 (detect_coding_iso2022): Use it if an escape sequence for
8796 composition is found.
8797 (coding_restore_composition): Adjust the number of composition
8798 components if it is not sane.
8799
8800 2003-03-06 Juanma Barranquero <lektu@terra.es>
8801
8802 * w32term.h (struct w32_display_info): Add xrdb member to support
8803 passing resources via -xrm on Windows.
8804
8805 * w32term.c (w32_make_rdb): New function.
8806 (w32_term_init): Use it to initialize xrdb member of w32_display_info
8807 struct. Delete leftover code.
8808
8809 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
8810 for resources passed on the command line.
8811
8812 * w32reg.c (w32_get_rdb_resource): New function.
8813 (x_get_string_resource): Use it, so resources passed with -xrm
8814 supercede the ones in the registry.
8815
8816 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8817
8818 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
8819 instead of x_top_window_to_frame.
8820
8821 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8822
8823 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
8824 when restarting Emacs.
8825
8826 2003-03-03 Richard M. Stallman <rms@gnu.org>
8827
8828 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
8829 to run kill-buffer-query-functions.
8830 (Qkill_buffer_query_functions): New var.
8831 (syms_of_buffer): Init and staticpro it.
8832
8833 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8834
8835 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
8836
8837 2003-02-25 Kim F. Storm <storm@cua.dk>
8838
8839 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
8840 If centering point failed to make whole line visible and vscroll
8841 is non-zero, disable vscroll and try centering point again.
8842
8843 * lread.c (read1): Accept `single space' syntax like (? x).
8844
8845 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8846
8847 * keyboard.c (cancel_hourglass_unwind): Surround with
8848 #ifdef HAVE_X_WINDOWS
8849
8850 2003-02-25 Kenichi Handa <handa@m17n.org>
8851
8852 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
8853 process only when "subprocesses" is defined.
8854
8855 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
8856
8857 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
8858
8859 2003-02-24 Juanma Barranquero <lektu@terra.es>
8860
8861 * callint.c (fix_command): Declare as static void and move before
8862 Fcall_interactively.
8863
8864 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
8865 (syms_of_xdisp): Don't initialize Qwhen.
8866
8867 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8868
8869 * keyboard.c (cancel_hourglass_unwind): New function.
8870 (command_loop_1): Cancel hourglass with unwind-protect.
8871
8872 2003-02-23 Richard M. Stallman <rms@gnu.org>
8873
8874 * callint.c (fix_command): New subroutine, from Fcall_interactively.
8875 Detect (when ... (region-beginning)) etc.
8876 (Fcall_interactively): Call fix_command.
8877 (Qif, Qwhen): New variables.
8878 (syms_of_callint): Init and staticpro them.
8879
8880 * regex.c (print_partial_compiled_pattern): Output to stderr.
8881
8882 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8883
8884 * dired.c (directory_files_internal): Don't expand directory.
8885 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
8886 instead. From Lars Hansen <larsh@math.ku.dk>.
8887
8888 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
8889
8890 * fns.c (string_to_multibyte): Remove unused var i.
8891 (Flanginfo): Fix int/Lisp_Object mixup.
8892 (void_call2): New fun.
8893 (Fmap_char_table): Use it in place of call2.
8894
8895 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
8896
8897 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
8898
8899 * keymap.c (copy_keymap_1): Make it static.
8900
8901 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
8902
8903 2003-02-22 David Ponce <david@dponce.com>
8904
8905 * lread.c (Fload): Don't check STRING_MULTIBYTE.
8906
8907 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8908
8909 * process.h: Removed subtty field from struct Lisp_Process.
8910
8911 * process.c (create_process): Remove setting of subtty.
8912 (emacs_get_tty_pgrp): New function.
8913 (Fprocess_running_child_p, process_send_signal):
8914 Call emacs_get_tty_pgrp instead of ioctl.
8915 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
8916
8917 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
8918
8919 * keymap.c (Fdefine_key): Doc fix.
8920
8921 2003-02-21 Juanma Barranquero <lektu@terra.es>
8922
8923 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
8924
8925 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
8926 POLLING_PROBLEM_IN_SELECT.
8927
8928 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
8929 Delete #undef of POLLING_PROBLEM_IN_SELECT.
8930
8931 * s/hpux10-20.h: New file.
8932
8933 * process.c (wait_reading_process_input):
8934 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
8935
8936 2003-02-20 Kenichi Handa <handa@m17n.org>
8937
8938 * fontset.c (check_fontset_name): If NAME is nil, return the
8939 default fontset.
8940 (override_font_info): New function.
8941 (Fset_fontset_font): Document that NAME nil means the default fontset.
8942 (Ffontset_info): If FONTSET is not the default fontset, merge
8943 FONTSET onto the copy of the default fontset, and work on that
8944 copy. Document that NAME nil means the default fontset.
8945 (Ffontset_font): Document that NAME nil means the default fontset.
8946
8947 * process.c (setup_process_coding_systems): If the process's
8948 in/out descriptor is -1, do nothing.
8949
8950 2003-02-19 Andreas Schwab <schwab@suse.de>
8951
8952 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
8953 Add prototypes.
8954
8955 2003-02-19 Kenichi Handa <handa@m17n.org>
8956
8957 * xfaces.c (try_alternative_families): Try all scalable fonts if
8958 Vscalable_fonts_allowed is not Qt.
8959
8960 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8961
8962 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
8963
8964 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8965
8966 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
8967 names.
8968
8969 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
8970 (sorted_font_list): Move allocation of struct font_name to
8971 x_face_list_fonts.
8972 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
8973 (Fx_list_fonts): Set maxnames to -1 to get all font names.
8974
8975 2003-02-18 Kim F. Storm <storm@cua.dk>
8976
8977 * lread.c (read1): Fix last change.
8978 "`" is not always special. Allow "?" after a character constant.
8979
8980 2003-02-18 Andrew Choi <akochoi@shaw.ca>
8981
8982 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
8983
8984 2003-02-18 Andreas Schwab <schwab@suse.de>
8985
8986 * window.c (window_scroll_pixel_based): Move outside a
8987 multi-glyph character before setting new window start.
8988
8989 * xdisp.c (in_display_vector_p): New function.
8990 * dispextern.h (in_display_vector_p): Declare.
8991
8992 2003-02-18 Kim F. Storm <storm@cua.dk>
8993
8994 * lread.c (read1): Fix and relax read syntax.
8995 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
8996 Only recognize "," after dotted-pair dot if inside backquote.
8997 Never include "`" or "," (inside backquote) in a symbol.
8998 Allow dotted-pair dot after a character constant.
8999 Allow "`" and "," (inside backquote) after a character constant.
9000
9001 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9002
9003 * gtkutil.c (xg_tool_bar_expose_callback): New function.
9004 (xg_create_tool_bar): Force style of tool bar to be horizontal with
9005 icons. Set name of tool bar to emacs-toolbar.
9006 (update_frame_tool_bar): Connect expose event to
9007 xg_tool_bar_expose_callback.
9008
9009 2003-02-17 Richard M. Stallman <rms@gnu.org>
9010
9011 * keyboard.c (this_command_key_count_reset): New variable.
9012 Initiatize to 0 where this_command_key_count is set.
9013 (read_char): Save and restore this_command_key_count_reset
9014 around input method code.
9015 (read_char): If this_command_key_count_reset, echo reread commands.
9016 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
9017
9018 2003-02-17 Kenichi Handa <handa@m17n.org>
9019
9020 * fns.c (string_to_multibyte): Always return a multibyte string.
9021
9022 2003-02-16 Jason Rumney <jasonr@gnu.org>
9023
9024 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
9025 Negative max_fonts parameter means list all.
9026
9027 2003-02-14 Dave Love <fx@gnu.org>
9028
9029 * fns.c (Flanginfo): Doc fix.
9030
9031 2003-02-13 Kim F. Storm <storm@cua.dk>
9032
9033 * lread.c (read_escape): Interpret \s as a SPACE character, except
9034 for \s-X in a character constant which still is the super modifier.
9035 (read1): Signal an `invalid read syntax' error if a character
9036 constant is immediately followed by a digit or symbol character.
9037
9038 * search.c (Fmatch_data): Doc fix. Explicitly state that
9039 match-data is undefined if last search failed.
9040
9041 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
9042 All uses changed.
9043
9044 2003-02-12 Juanma Barranquero <lektu@terra.es>
9045
9046 * eval.c (Fdefmacro): Fix typo.
9047
9048 2003-02-12 Kim F. Storm <storm@cua.dk>
9049
9050 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
9051 macro is a string, convert meta modifiers in string when copying
9052 the string into a vector.
9053
9054 2003-02-11 Kim F. Storm <storm@cua.dk>
9055
9056 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
9057
9058 2003-02-11 Kenichi Handa <handa@m17n.org>
9059
9060 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
9061
9062 2003-02-10 Kim F. Storm <storm@cua.dk>
9063
9064 * process.c: Doc fixes.
9065 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
9066
9067 2003-02-10 Kenichi Handa <handa@m17n.org>
9068
9069 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
9070
9071 * process.c (QCfilter_multibyte): New variable.
9072 (setup_process_coding_systems): New function.
9073 (Fset_process_buffer, Fset_process_filter):
9074 Call setup_process_coding_systems.
9075 (Fstart_process): Initialize the member `filter_multibyte' of
9076 struct Lisp_Process.
9077 (create_process): Call setup_process_coding_systems.
9078 (Fmake_network_process): New keyward `:filter-multibyte'.
9079 Initialize the member `filter_multibyte' of struct Lisp_Process.
9080 Call setup_process_coding_systems.
9081 (server_accept_connection): Call setup_process_coding_systems.
9082 (read_process_output): If the process has a filter, decide the
9083 multibyteness of a string to given to the filter by
9084 `filter_multibyte' member of the process. If the process doesn't
9085 have a filter and the result of conversion is unibyte, use
9086 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
9087 multibyte form.
9088 (Fset_process_coding_system): Call setup_process_coding_systems.
9089 (Fset_process_filter_multibyte): New function.
9090 (Fprocess_filter_multibyte_p): New function.
9091 (syms_of_process): Intern and staticpro QCfilter_multibyte.
9092 Defsubr Sset_process_filter_multibyte and
9093 Sprocess_filter_multibyte_p.
9094
9095 * process.h (struct Lisp_Process): New member filter_multibyte.
9096
9097 * lisp.h (setup_process_coding_systems): Add prototype.
9098
9099 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
9100 process, update coding systems for the process.
9101
9102 2003-02-09 Kenichi Handa <handa@m17n.org>
9103
9104 * fns.c (string_to_multibyte): New function.
9105 (Fstring_to_multibyte): New function.
9106 (syms_of_fns): Defsubr it.
9107
9108 2003-02-08 Andreas Schwab <schwab@suse.de>
9109
9110 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
9111 instead of the substitution.
9112
9113 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9114
9115 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
9116
9117 * xmenu.c (menu_position_func): Adjust menu popup position so that
9118 the menu is fully visible.
9119
9120 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9121
9122 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
9123 (x_make_frame_invisible, x_wm_set_icon_position):
9124 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
9125
9126 * xfns.c (x_set_name, x_set_title): Ditto.
9127
9128 2003-02-04 Richard M. Stallman <rms@gnu.org>
9129
9130 * keyboard.c (echo_now): Update before_command_echo_length.
9131 (Freset_this_command_lengths): Reset this_command_key_count etc.
9132 immediately rather than arranging to do it later.
9133 (before_command_key_count_1, before_command_echo_length_1)
9134 (before_command_restore_flag): Vars deleted.
9135 (add_command_key): Don't handle before_command_restore_flag.
9136 (read_char, record_menu_key): Don't update before_command_key_count or
9137 before_command_echo_length.
9138 (read_char): Don't handle before_command_restore_flag.
9139
9140 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
9141 in direct-output clauses if it wouldn't be called in the ordinary case.
9142
9143 2003-02-04 Kim F. Storm <storm@cua.dk>
9144
9145 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
9146
9147 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9148
9149 * gtkutil.c (remove_from_container): Copying list is not needed.
9150 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
9151 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
9152 on list returned from gtk_container_get_children to avoid memory leak.
9153
9154 2003-02-01 Jason Rumney <jasonr@gnu.org>
9155
9156 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
9157 local malloc.
9158 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
9159 definitions in xpm.h.
9160 (init_xpm_functions): New function.
9161 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
9162 (init_external_image_libraries): Try to load libXpm.dll.
9163
9164 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
9165 timestamp.
9166
9167 2003-01-31 Dave Love <fx@gnu.org>
9168
9169 * syntax.c (Fskip_chars_forward)
9170 (open-paren-in-column-0-is-defun-start): Doc fix.
9171
9172 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
9173
9174 * fileio.c: Support // at start of name for Cygwin (just added proper
9175 preprocessor tests).
9176
9177 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
9178
9179 * Makefile.in: Use @EXEEXT@ for Cygwin.
9180
9181 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
9182
9183 * s/cygwin.h: Added for Cygwin port.
9184
9185 2003-01-31 Juanma Barranquero <lektu@terra.es>
9186
9187 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
9188 when including gif_lib.h.
9189 (init_gif_functions, init_tiff_functions): New functions.
9190 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
9191 Windows. Disable color table lookups. Call library functions
9192 through pointers determined at runtime.
9193 (init_external_image_libraries): Try to load libungif.dll and
9194 libtiff.dll.
9195
9196 2003-01-31 Kenichi Handa <handa@m17n.org>
9197
9198 * xdisp.c (SKIP_GLYPHS): New macro.
9199 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
9200
9201 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9202
9203 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
9204
9205 2003-01-30 Dave Love <fx@gnu.org>
9206
9207 * alloc.c (Vgc_elapsed, gcs_done): New variables.
9208 (Fgarbage_collect): Use them.
9209 (init_alloc, syms_of_alloc): Set them up.
9210
9211 2003-01-30 Juanma Barranquero <lektu@terra.es>
9212
9213 * w32fns.c (init_external_image_libraries): Add missing operator.
9214
9215 2003-01-29 Jason Rumney <jasonr@gnu.org>
9216
9217 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
9218 an alternative name for jpeg.dll.
9219
9220 2003-01-29 Kenichi Handa <handa@m17n.org>
9221
9222 * xdisp.c (set_cursor_from_row): Pay attention to string display
9223 properties.
9224
9225 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
9226
9227 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
9228 <escape>.
9229 (keycode_to_xkeysym_table): Reformat and add more comments.
9230 (XTread_socket): Drop special case for backspace.
9231
9232 2003-01-28 Andrew Choi <akochoi@shaw.ca>
9233
9234 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
9235 values in old-style RGB specs.
9236
9237 2003-01-27 Juanma Barranquero <lektu@terra.es>
9238
9239 * w32fns.c (init_external_image_libraries): Try alternate names for the
9240 jpeg dll.
9241
9242 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9243
9244 * gtkutil.c (create_dialog, xg_separator_p)
9245 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
9246 before calling strcmp or strlen.
9247
9248 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9249
9250 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
9251 and handle image load failure.
9252
9253 2003-01-26 Jason Rumney <jasonr@gnu.org>
9254
9255 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
9256 New functions.
9257 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
9258 Disable color table lookups. Call jpeg library functions
9259 through pointers determined at runtime.
9260 (init_external_image_libraries): Try to load jpeg.dll.
9261
9262 2003-01-25 Richard M. Stallman <rms@gnu.org>
9263
9264 * lisp.h: Declare format2 instead of format1.
9265
9266 * fileio.c (barf_or_query_if_file_exists):
9267 Call format2 instead of format1.
9268
9269 * editfns.c (format2): New function, replaces format1
9270 but takes exactly two Lisp Objects as format args.
9271
9272 * buffer.c (Fkill_buffer): Call format2 instead of format1.
9273
9274 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9275
9276 * xterm.h: Change to return value of x_dispatch_event to int.
9277
9278 * xterm.c (x_filter_event): New function.
9279 (event_handler_gdk, XTread_socket): Call x_filter_event.
9280 (x_dispatch_event): Change to return value of finish.
9281 (event_handler_gdk): Use return value from x_dispatch_event.
9282
9283 * xfns.c (x_window): Call create_frame_xic for GTK version to
9284 initialize input methods.
9285
9286 * gtkutil.h: Add (void) prototypes.
9287
9288 * gtkutil.c (create_menus): Remove code that puts the help menu to
9289 the right.
9290
9291 2003-01-25 Jason Rumney <jasonr@gnu.org>
9292
9293 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
9294 [HAVE_PNG]: Sync with xfns.c version.
9295 (png_load): Adjust colors for Windows. Use Windows
9296 bitmaps. Disable color table lookups.
9297 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
9298 (init_png_functions): New function.
9299 (png_read_from_memory, png_load): Call png library functions
9300 through pointers determined at runtime.
9301 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
9302 (init_external_image_libraries): New function.
9303 (init_xfns): Call it.
9304
9305 2003-01-24 Andreas Schwab <schwab@suse.de>
9306
9307 * minibuf.c (Fminibuffer_message): Verify type of parameter.
9308
9309 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9310
9311 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
9312 of static initializer.
9313
9314 2003-01-24 Dave Love <fx@gnu.org>
9315
9316 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
9317 architectures.
9318
9319 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
9320 Use __alignof__.
9321
9322 2003-01-24 Kenichi Handa <handa@m17n.org>
9323
9324 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
9325 It it is nonzero, don't pretend that an invisible area doesn't exist.
9326 (command_loop_1): Call adjust_point_for_property with proper
9327 second arg.
9328
9329 2003-01-22 Jason Rumney <jasonr@gnu.org>
9330
9331 Sync changes with xterm.c and xfns.c.
9332
9333 * w32term.c (x_draw_glyph_string_foreground)
9334 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9335
9336 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
9337 phys_cursor's hpos is overwritten. This is still not completely
9338 correct, as it doesn't really make sense to use hpos at all to
9339 get the cursor glyph (as that is relative to the width of the
9340 characters on the line, which may have changed during the update).
9341
9342 * w32term.c (notice_overwritten_cursor): Handle the special case
9343 of the cursor being in the first blank non-text line at the
9344 end of a window.
9345
9346 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9347 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9348 Compute from the x position returned by x_draw_glyphs.
9349
9350 (x_display_and_set_cursor): Don't set phys_cursor_width here,
9351 except for NO_CURSOR and system caret, to make phys_cursor_width
9352 contain what its name suggests.
9353 (notice_overwritten_cursor): Consider the cursor image erased if
9354 the output area intersects the cursor image in y-direction.
9355
9356 * w32term.c (note_mode_line_or_margin_highlight): Rename from
9357 note_mode_line_highlight and extend.
9358
9359 * w32term.c (last_window): New variable.
9360 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
9361 (note_mouse_movement): Remove reimplemented code in #if 0.
9362
9363 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
9364 not update_mode_lines, and always set it to 1.
9365
9366 2003-01-21 Jason Rumney <jasonr@gnu.org>
9367
9368 * w32fns.c (IDC_HAND): Define it if system headers don't.
9369
9370 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9371
9372 * w32term.h (struct w32_output): New member hand_cursor.
9373 (WM_EMACS_SETCURSOR): New message definition.
9374
9375 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
9376 function w32_define_cursor.
9377 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
9378 position, change member name output_data.x to output_data.w32 and
9379 add function w32_define_cursor.
9380 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
9381 and change member name output_data.x to output_data.w32.
9382 (w32_initialize_display_info):
9383 Setup dpyinfo->vertical_scroll_bar_cursor.
9384
9385 * w32fns.c (Vx_hand_shape): New variable.
9386 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
9387 WM_EMACS_SETCURSOR.
9388 (x-create-frame): Setup Cursor types.
9389
9390 2003-01-21 David Ponce <david@dponce.com>
9391
9392 * w32term.c (w32_encode_char): For DIM=1 charset, set
9393 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
9394 x_encode_char change by Kenichi Handa <handa@m17n.org> on
9395 2002-09-30.)
9396 (w32_draw_relief_rect): Declare all args.
9397 (w32_define_cursor): New.
9398
9399 * w32fns.c (w32_load_cursor): New function.
9400 (w32_init_class): Use it.
9401 (x_put_x_image): Declare all args.
9402
9403 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
9404
9405 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
9406
9407 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9408
9409 * gtkutil.c: Must include stdio.h before termhooks.h
9410
9411 2003-01-21 Dave Love <fx@gnu.org>
9412
9413 * alloc.c (Fgc_status): Print zombie list.
9414 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9415 Fix assignment of zombies.
9416 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
9417 Don't take car of non-cons.
9418
9419 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9420
9421 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9422
9423 2003-01-20 David Ponce <david@dponce.com>
9424
9425 * w32menu.c (digest_single_submenu): Declare all args.
9426
9427 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
9428 changes in xmenu.c:
9429
9430 (parse_single_submenu): Use individual keymap's prompt
9431 string as pane name, if there is one.
9432 (set_frame_menubar): Save menu_items_n_panes from each call to
9433 parse_single_submenu and use it when calling digest_single_submenu.
9434
9435 2003-01-20 Steven Tamm <steventamm@mac.com>
9436
9437 * macterm.c (XTread_socket): Checks for valid, visible window
9438 before sending a scroll-wheel event.
9439
9440 2003-01-20 Richard M. Stallman <rms@gnu.org>
9441
9442 * xdisp.c (redisplay_window): If mini window's buffer is not
9443 a minibuffer, then redisplay it like other windows.
9444
9445 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9446
9447 * gtkutil.c (xg_create_frame_widgets): Check if there is an
9448 external tool bar before setting tool bar height.
9449
9450 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9451
9452 * xterm.c (handle_one_xevent): Surround popup_activated
9453 with #ifdef:s for non-toolkit version.
9454
9455 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
9456 (gtkutil.o): New file.
9457 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
9458 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
9459
9460 * gtkutil.c: New file for GTK version.
9461
9462 * gtkutil.h: New file for GTK version.
9463
9464 * xterm.h: Add xt_or_gtk_widget.
9465 Include gtk files for USE_GTK.
9466 (struct x_output): Add toolbar_height.
9467 (struct x_output): Add GTK widgets and Gdk size_hints.
9468 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
9469 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
9470 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
9471
9472 * xterm.c: Include gtkutil.h for USE_GTK.
9473 (free_frame_menubar): Declare extern void for USE_GTK.
9474 (note_mouse_highlight): Check popup_activated for USE_GTK.
9475 (xt_action_hook): Don't compile if USE_GTK.
9476 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
9477 (xg_scroll_callback): New function.
9478 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
9479 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
9480 for USE_GTK.
9481 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
9482 xg_show_scroll_bar for USE_GTK.
9483 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
9484 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
9485 (event_handler_gdk): New function for USE_GTK.
9486 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
9487 (handle_one_xevent): Make sure widget is mapped before
9488 calling x_real_positions for USE_GTK.
9489 (XTread_socket): Add GTK event loop for USE_GTK.
9490 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
9491 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
9492 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
9493 (x_iconify_frame): Add code for USE_GTK.
9494 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
9495 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
9496 is in gtkutil.c.
9497 (x_term_init): Add initialization for GTK.
9498 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
9499
9500 * xmenu.c: Include gtkutil.h for USE_GTK.
9501 (Fx_popup_menu): Use current position if x and y is NIL.
9502 (single_menu_item, single_menu_item, Fx_popup_dialog):
9503 Check for USE_GTK.
9504 (popup_widget_loop): New function for USE_GTK.
9505 (x_activate_menubar): Add code for USE_GTK.
9506 (popup_activate_callback, popup_deactivate_callback)
9507 (menu_highlight_callback, menubar_selection_callback):
9508 Add USE_GTK versions.
9509 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
9510 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
9511 (free_frame_menubar): Only compile if not USE_GTK. GTK version
9512 is in gtkutil.c.
9513 (popup_selection_callback): New version for USE_GTK.
9514 (create_and_show_popup_menu): New fuction, one USE_GTK version and
9515 one USE_X_TOOLKIT version.
9516 (xmenu_show): Call create_and_show_popup_menu.
9517 (dialog_selection_callback): New version for USE_GTK.
9518 (create_and_show_dialog): New fuction, one USE_GTK version and
9519 one USE_X_TOOLKIT version.
9520 (xdialog_show): Call create_and_show_dialog.
9521
9522 * xfns.c: Include gtkutil for USE_GTK.
9523 (x_window_to_frame, x_any_window_to_frame)
9524 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9525 (x_top_window_to_frame): Add code for USE_GTK.
9526 (x_set_background_color): Call xg_set_background_color for GTK.
9527 (x_set_menu_bar_lines): Check for USE_GTK.
9528 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
9529 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
9530 (x_window): Call xg_create_frame_widgets for USE_GTK.
9531 (Fx_create_frame): Check for USE_GTK
9532 (Fx_file_dialog): New implementation for USE_GTK.
9533
9534 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
9535 (update_menu_bar): Add check for USE_GTK.
9536 (update_tool_bar): Add check for USE_GTK and external tool bar.
9537 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
9538 (redisplay_internal): Add check for USE_GTK and popup_activated.
9539 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
9540 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
9541 (display_menu_bar): Add check for USE_GTK
9542
9543 * lisp.h (Vx_resource_name): Declare extern.
9544
9545 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
9546 for USE_GTK.
9547 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
9548
9549 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
9550 (FRAME_EXTERNAL_TOOL_BAR): New macro.
9551 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
9552
9553 * fileio.c (Fread_file_name): Add check for USE_GTK.
9554
9555 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
9556 Add check for USE_GTK.
9557
9558 * config.in: Added HAVE_GTK
9559
9560 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
9561
9562 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
9563
9564 * charset.h (Funibyte_char_to_multibyte): Export.
9565
9566 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9567
9568 * xmenu.c (mouse_position_for_popup): New function.
9569 (Fx_popup_menu): Call mouse_position_for_popup for X and
9570 mouse_position_hook for others.
9571
9572 2003-01-17 Kim F. Storm <storm@cua.dk>
9573
9574 * editfns.c (Finsert): Mention `string-make-multibyte' and
9575 `string-as-multibyte' in doc string.
9576
9577 2003-01-17 Kenichi Handa <handa@m17n.org>
9578
9579 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
9580
9581 * editfns.c (Fformat): Convert an unibyte char argument that is
9582 formatted by "%c" to multibyte if the total result must be a
9583 multibyte string.
9584
9585 2003-01-16 Kim F. Storm <storm@cua.dk>
9586
9587 * process.c (set-process-filter): Document unibyte/multibyte-ness
9588 of string argument.
9589
9590 2003-01-16 Kenichi Handa <handa@m17n.org>
9591
9592 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
9593
9594 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
9595 (re_search_2): Likewise.
9596
9597 2003-01-15 Kenichi Handa <handa@m17n.org>
9598
9599 * xdisp.c (message_dolog): Fix bug of the case that *Message*
9600 buffer is unibyte.
9601
9602 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
9603
9604 * fns.c (Fsubstring): Clarify doc string.
9605
9606 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
9607 (Fprevious_char_property_change)
9608 (Fnext_single_char_property_change)
9609 (Fprevious_single_char_property_change, Fnext_property_change)
9610 (Fnext_single_property_change, Fprevious_property_change)
9611 (Fprevious_single_property_change, Fadd_text_properties)
9612 (Fput_text_property, Fset_text_properties)
9613 (Fremove_text_properties, Fremove_list_of_text_properties)
9614 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
9615
9616 2003-01-14 Kim F. Storm <storm@cua.dk>
9617
9618 * process.h (struct Lisp_Process): New member plist replaces old
9619 member private_vars. All uses changed.
9620
9621 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
9622 (QCplist): Rename from QCvars. Change all uses.
9623 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
9624 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
9625 (syms_of_process): Intern, staticpro, defsubr these.
9626 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
9627
9628 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
9629
9630 * m/delta.h: Remove (obsolete).
9631
9632 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
9633
9634 * fileio.c (Fdelete_directory, Fdelete_file): Document the
9635 behaviour in front of symlinks.
9636 (Fdelete_file): Raise an error on directories.
9637
9638 2003-01-13 Dave Love <fx@gnu.org>
9639
9640 * fns.c (Freverse): Use QUIT.
9641
9642 2003-01-13 Richard M. Stallman <rms@gnu.org>
9643
9644 * minibuf.c (minibuffer_completion_contents):
9645 Error if point is inside prompt.
9646
9647 * keyboard.c (command_loop_1): Don't redisplay directly
9648 if there's a post-command-hook.
9649
9650 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
9651 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
9652
9653 2003-01-12 Kim F. Storm <storm@cua.dk>
9654
9655 * process.h (struct Lisp_Process): New member private_vars.
9656
9657 * process.c (QCvars): New variable.
9658 (syms_of_process): Intern and staticpro it.
9659 (Fset_process_contact): Removed function.
9660 (Fprocess_variable, Fset_process_variable): New functions.
9661 (syms_of_process): Defsubr them.
9662 (Fstart_process): Initialize private_vars plist to nil.
9663 (Fmake_network_process): New arg :vars to setup the private
9664 variables for new network process.
9665 (server_accept_connection): Copy server's private variables to
9666 client process.
9667
9668 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
9669 crashes). Code rewritten and simplified. Now directly aligns the
9670 pointer and recalculates pure_bytes_used, rather than aligning the
9671 size and adjusting the pointer.
9672
9673 2003-01-11 Kim F. Storm <storm@cua.dk>
9674
9675 * process.c (Fset_process_contact): New function.
9676 (syms_of_process): defsubr it.
9677 (make-network-process): Update doc.
9678
9679 2003-01-10 Andreas Schwab <schwab@suse.de>
9680
9681 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
9682 Reported by Berthold Gunreben <b.gunreben@web.de>.
9683
9684 2003-01-10 Dave Love <fx@gnu.org>
9685
9686 * composite.c (syms_of_composite): Make composition_hash_table weak.
9687
9688 2003-01-09 Kim F. Storm <storm@cua.dk>
9689
9690 * process.c (Fmake_network_process): Convert new port number
9691 to host byte order for `:service t' case. From Mario Lang.
9692
9693 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9694
9695 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
9696 instead of XtAppProcessEvent.
9697
9698 * xterm.c (handle_one_xevent): New function.
9699 (x_dispatch_event): New function.
9700 (XTread_socket): Call handle_one_xevent.
9701
9702 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
9703
9704 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
9705 call XQueryPointer to get coordinates.
9706 (popup_get_selection): Do not set popup_activated_flag to zero,
9707 let popup_deactivate_callback do that. Needed for Motif.
9708 Call x_dispatch_event instead of XtDispatchEvent.
9709 (xmenu_show): Calculate root coordinate from frame top/left position.
9710
9711 2003-01-08 Kim F. Storm <storm@cua.dk>
9712
9713 * process.c (server_accept_connection): Fix recording of new
9714 connection's local address in :local property of contact info.
9715 (Fmake_network_process): Record local network address for new
9716 client processes in :local property of contact info.
9717 (format-network-address): Add arg OMIT-PORT. Change callers.
9718
9719 2003-01-07 Dave Love <fx@gnu.org>
9720
9721 * Makefile.in (fns.o): Depend on coding.h.
9722
9723 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
9724
9725 * minibuf.c (Fread_variable): Doc fix.
9726
9727 * eval.c (Fuser_variable_p): Doc change. For custom variables,
9728 use the same test as for custom-variable-p.
9729
9730 2003-01-05 Richard M. Stallman <rms@gnu.org>
9731
9732 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
9733 Count LAST_LINE_MISFIT in scroll margin for end of window.
9734 Move label too_near_end before setting SCROLL_MARGIN_POS.
9735 Set LAST_LINE_MISFIT before jumping there.
9736
9737 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9738 scroll_conservatively case. If scrolling that much doesn't change
9739 STARTP, move it down one line.
9740
9741 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
9742 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
9743
9744 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
9745 selected frame.
9746
9747 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
9748 (syms_of_keymap): staticpro them.
9749 (Fapropos_internal): Initialize them and clear them out.
9750 Don't GCPRO them.
9751
9752 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
9753 Doc fixes.
9754
9755 * lisp.h: New misc type Lisp_Save_Value.
9756 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
9757 (XSAVE_VALUE): New macro.
9758 (struct Lisp_Save_Value): New data type.
9759 (union Lisp_Misc): Add u_save_value alternative.
9760 (make_save_value): Declare.
9761
9762 * alloc.c (make_save_value): New function.
9763
9764 * xterm.c (x_catch_errors): Save dpy using make_save_value.
9765 (x_catch_errors_unwind): Call XSync.
9766
9767 2003-01-01 Richard M. Stallman <rms@gnu.org>
9768
9769 * window.c (window_scroll_pixel_based): Partially undo last change.
9770
9771 * keyboard.c (command_loop_1): Call adjust_point_for_property
9772 in direct action cases for Qforward_char and Qbackward_char.
9773 Set already_adjusted so it won't be done twice.
9774
9775 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
9776
9777 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
9778 type definition of size_t.
9779
9780 2003-01-02 Steven Tamm <steventamm@mac.com>
9781
9782 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
9783 distinguish Carbon GUI builds from X11 builds on darwin.
9784
9785 2002-12-30 Steven Tamm <steventamm@mac.com>
9786
9787 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
9788 to default to t.
9789
9790 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
9791
9792 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
9793
9794 2002-12-28 Steven Tamm <steventamm@mac.com>
9795
9796 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
9797 allow building in a different directory than source. Uses some
9798 GNU Make extensions, but there is no other make on Mac OS X.
9799
9800 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
9801
9802 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
9803 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
9804 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
9805 (Fstring_to_number): Mention the returned value in the doc strings.
9806
9807 2002-12-23 Richard M. Stallman <rms@gnu.org>
9808
9809 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
9810 <scroll-down-aggressively>: Doc fix.
9811
9812 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
9813 string as pane name, if there is one.
9814 (set_frame_menubar): Save menu_items_n_panes from each call to
9815 parse_single_submenu and use it when calling digest_single_submenu.
9816
9817 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
9818 Don't try to make last line fully visible if it is past end of window.
9819
9820 2002-12-22 Steven Tamm <steventamm@mac.com>
9821
9822 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
9823 (mac_menu_show): Add support for hierarchical popup menus.
9824 (add_menu_item): Remove indentation support.
9825 (fill_submenu, fill_menu): Create hierarchical menus
9826 instead of using indentation.
9827
9828 2002-12-22 Richard M. Stallman <rms@gnu.org>
9829
9830 * xdisp.c (try_cursor_movement): Don't call try_window here.
9831 (redisplay_window): Never redisplay minibuffer when inactive.
9832
9833 * window.c (select_window_1): Undo 9/21 change.
9834
9835 2002-12-22 Steven Tamm <steventamm@mac.com>
9836
9837 * macterm.c (XTread_socket): Call KeyTranslate for control and
9838 meta to deal correctly shifted non-alpha characters, like C-S-5
9839 being treated like C-%. Does not look for shift key to deal
9840 with masking off control-key with mac-reverse-ctrl-meta.
9841
9842 2002-12-21 Richard M. Stallman <rms@gnu.org>
9843
9844 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
9845 If it is non-nil, run timers. Use an unwind-protect to requeue
9846 the events that were read ahead.
9847 (popup_get_selection_unwind): New subroutine.
9848 (popup_get_selection_queue): File-scope variable now holds that queue.
9849 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
9850 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
9851 Use an unwind-protect to pop down the dialog box.
9852 (xdialog_show_unwind): New subroutine implements that.
9853
9854 * xdisp.c (row_containing_pos): Change exit test using last_y.
9855 (try_window_id): Abort if row_containing_pos returns null.
9856
9857 * lread.c (load_error_handler): New function.
9858 (Fload): Handle errors in Fsubstitute_in_file_name.
9859 Don't expect Fsignal to return.
9860
9861 * eval.c: Errors and throws work right with interrupt blocking.
9862 (struct catchtag): New elt interrupt_input_blocked.
9863 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
9864 (internal_catch, Fcondition_case, internal_condition_case)
9865 (internal_condition_case_1, internal_condition_case_2): Save it.
9866 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
9867
9868 * editfns.c (Fformat): Add parens.
9869
9870 * dired.c (file_name_completion): Fix that change.
9871 Delete special quit-handling code; just use QUIT.
9872
9873 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
9874
9875 * dired.c (file_name_completion): Close directory on error
9876 just as in directory_files_internal.
9877
9878 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
9879
9880 * window.c (Fset_window_configuration): Set old_point to correct
9881 value when new_current_buffer == current_buffer.
9882
9883 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
9884
9885 Revisited my earlier fix for the following entry in etc/PROBLEMS:
9886 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9887 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9888
9889 These changes were in part based upon suggestions made by Peter
9890 'Luna' Runestig [peter@runestig.com].
9891
9892 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
9893 g_b_init_get_token_information, g_b_init_lookup_account_sid,
9894 g_b_init_get_sid_identifier_authority ): Add several static
9895 global variables.
9896
9897 * w32.c (globals_of_w32): New function. Used to initialize those
9898 global variables that must always be initialized on startup even
9899 when the global variable initialized is non zero. Its primary
9900 purpose at this time is to set the global variables
9901 g_b_init_is_windows_9x, g_b_init_open_process_token,
9902 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
9903 g_b_init_get_sid_identifier_authority to 0 on startup.
9904 Called from main.
9905
9906 * w32.c (is_windows_9x): Perform initialization only if
9907 g_b_init_is_windows_9x is equal to 0. On initialization set
9908 g_b_init_is_windows_9x equal to 1.
9909
9910 * w32.c (open_process_token): Perform initialization only if
9911 g_b_init_open_process_token is equal to 0. On initialization set
9912 g_b_init_open_process_token equal to 1.
9913
9914 * w32.c (get_token_information): Perform initialization only if
9915 g_b_init_get_token_information is equal to 0. On initialization
9916 set g_b_init_get_token_information equal to 1.
9917
9918 * w32.c (lookup_account_sid): Perform initialization only if
9919 g_b_init_lookup_account_sid is equal to 0. On initialization
9920 set g_b_init_lookup_account_sid equal to 1.
9921
9922 * w32.c (get_sid_identifier_authority): Perform initialization
9923 only if g_b_init_get_sid_identifier_authority is equal to 0.
9924 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9925
9926 * w32fns.c (globals_of_w32fns): New function. Used to initialize
9927 those global variables that must always be initialized on startup
9928 even when the global variable initialized is non zero.
9929 Its primary purpose at this time is to initialize the global variable
9930 track_mouse_event_fn.
9931
9932 * w32fns.c (w32_wnd_proc): Remove initialization of
9933 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9934
9935 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9936
9937 * w32menu.c (globals_of_w32menu): New function. Used to
9938 initialize those global variables that must always be initialized
9939 on startup even when the global variable initialized is non zero.
9940 Its primary purpose at this time is to initialize the global
9941 variables get_menu_item_info and set_menu_item_info.
9942
9943 * w32menu.c (initialize_frame_menubar): Remove initialization of
9944 get_menu_item_info and set_menu_item_info.
9945
9946 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9947
9948 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
9949 Declare them.
9950
9951 * emacs.c (main): Call globals_of_w32 prior to calling
9952 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
9953 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
9954 is defined.
9955
9956 * w32term.c (x_update_window_begin): Fix Windows API error
9957 detected by BoundsChecker. Test to determine if
9958 w32_system_caret_hwnd is NULL prior to attempting to use
9959 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
9960
9961 * w32term.c (x_update_window_end): Fix Windows API error
9962 detected by BoundsChecker. Test to determine if
9963 w32_system_caret_hwnd is NULL prior to attempting to use
9964 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
9965
9966 2002-12-17 Kenichi Handa <handa@m17n.org>
9967
9968 * coding.c (coding_system_require_warning): New variable.
9969 (syms_of_coding): DEFVAR it.
9970
9971 * coding.h (coding_system_require_warning): Extern it.
9972
9973 * fileio.c (choose_write_coding_system): Even if
9974 Vcoding_system_for_write is non-nil, if
9975 coding_system_require_warning is nonzero, call
9976 Vselect_safe_coding_system_function.
9977
9978 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
9979
9980 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
9981 (lisp): Add font-core.
9982
9983 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
9984
9985 * textprop.c (text_read_only): New arg `propval'.
9986 (get_char_property_and_overlay): Remove unused var `next_overlay'.
9987 (verify_interval_modification): Use text_read_only's new arg.
9988
9989 2002-12-13 Kenichi Handa <handa@m17n.org>
9990
9991 * coding.c (Funencodable_char_position): Set pend correctly.
9992
9993 2002-12-12 Jason Rumney <jasonr@gnu.org>
9994
9995 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
9996 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
9997 Be more careful about when help_events are generated.
9998
9999 2002-12-12 Steven Tamm <steventamm@mac.com>
10000
10001 * macterm.c (mac_check_for_quit_char): Correctly set the
10002 modifiers of the event to 0.
10003 * mac.c (sys_select): Duplicate rfds before calling select to
10004 ensure that rfds survive the while loop.
10005
10006 2002-12-11 Kim F. Storm <storm@cua.dk>
10007
10008 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
10009 row_containing_pos returned NULL.
10010
10011 2002-12-10 Steven Tamm <steventamm@mac.com>
10012
10013 * mac.c (sys_read): Fix sys_read to not call select if IO is
10014 non-blocking.
10015 (sys_select): Fix sys_select to not use a timeout larger than
10016 the one given.
10017
10018 2002-12-10 Juanma Barranquero <lektu@terra.es>
10019
10020 * editfns.c (Fformat): Use alloca, not _alloca.
10021
10022 2002-12-09 Richard M. Stallman <rms@gnu.org>
10023
10024 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
10025 as the last thing.
10026
10027 2002-12-09 Dave Love <fx@gnu.org>
10028
10029 * s/sol2-8.h: Removed. (Not necessary.)
10030
10031 2002-12-09 Matthew Swift <swift@alum.mit.edu>
10032
10033 * editfns.c (Fformat): Handle precision in string conversion
10034 specifiers like libc functions do (ie, print at most that many
10035 characters).
10036
10037 2002-12-08 Richard M. Stallman <rms@gnu.org>
10038
10039 * xdisp.c (row_containing_pos): Check more carefully
10040 whether charpos is really in the row before returning it.
10041
10042 2002-12-07 Steven Tamm <steventamm@mac.com>
10043
10044 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
10045
10046 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
10047 each stack frame. This may change as it could be time consuming.
10048
10049 * macterm.c (mac_check_for_quit_char, quit_char_comp)
10050 (init_quit_char_handler, mac_determine_quit_char_modifiers)
10051 (mac_initialize): Add code to check for pressing of quit_char
10052 in the OS event queue.
10053
10054 * mac.c (sys_select): Call mac_check_for_quit_char every second
10055 while blocking on select.
10056
10057 * mac.c (sys_read): Use sys_select to test for input first
10058 before calling read, to allow C-g to break.
10059
10060 2002-12-07 Richard M. Stallman <rms@gnu.org>
10061
10062 * minibuf.c (Fcompleting_read): Doc fix.
10063
10064 * lread.c (syms_of_lread) <load-history>: Doc fix.
10065
10066 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
10067
10068 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
10069 autoload.
10070
10071 * data.c (Fdefalias): Record in load-history redefining an autoload.
10072
10073 * alloca.c: Undo ifdef change accidentally made on 12-04.
10074
10075 2002-12-06 Francesco Potorti` <pot@gnu.org>
10076
10077 * xfns.c (png_load): Avoid double gamma correction for PNG images.
10078
10079 2002-12-04 Richard M. Stallman <rms@gnu.org>
10080
10081 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
10082
10083 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
10084
10085 * alloca.c: Don't use #error.
10086
10087 2002-12-03 Dave Love <fx@gnu.org>
10088
10089 * buffer.c (Qucs_set_table_for_input): New.
10090 (Fget_buffer_create): Use it.
10091 (Qset_buffer_major_mode_hook): Deleted.
10092 (Fset_buffer_major_mode): Revert previous change.
10093 (init_buffer_once): Intern ucs-set-table-for-input.
10094 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
10095 Add &Qucs_set_table_for_input.
10096
10097 2002-12-03 Andreas Schwab <schwab@suse.de>
10098
10099 * callint.c (Fcall_interactively): Use next_event only if less
10100 than key_count.
10101
10102 2002-12-02 Andrew Choi <akochoi@shaw.ca>
10103
10104 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
10105 names to 255 characters.
10106
10107 * macterm.c (XTread_socket): If all frames have been collapsed,
10108 expand the first one before handling drag-and-drop events.
10109
10110 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
10111 which is detected by autoconf.
10112
10113 2002-12-01 Steven Tamm <steventamm@mac.com>
10114
10115 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
10116 offset in two hints table to allow prebinding to be redone and
10117 allow the executable to be stripped.
10118
10119 2002-11-29 Dave Love <fx@gnu.org>
10120
10121 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
10122 already provided.
10123
10124 2002-11-29 Richard M. Stallman <rms@gnu.org>
10125
10126 * xdisp.c (start_display): Check more intelligently for
10127 whether the line is continued.
10128 (move_it_vertically_backward): Clear it->continuation_lines_width.
10129
10130 2002-11-28 Dave Love <fx@gnu.org>
10131
10132 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
10133 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
10134
10135 2002-11-27 Steven Tamm <steventamm@mac.com>
10136
10137 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
10138 more descriptive error output from lread.c:Fload upon most require
10139 cycles during boostrapping.
10140
10141 2002-11-27 Jason Rumney <jasonr@gnu.org>
10142
10143 * fileio.c (Finsert_file_contents): Give a more appropriate error
10144 for files bigger than 2Gb when off_t is 32 bit.
10145
10146 * dired.c (Ffile_attributes): Don't return negative file sizes for
10147 files bigger than 2Gb when off_t is 32 bit.
10148
10149 2002-11-27 Dave Love <fx@gnu.org>
10150
10151 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10152
10153 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
10154 Test GETPGRP_VOID instead.
10155 [BSD_TERMIOS]: Remove definitions (never used).
10156
10157 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
10158 Don't define.
10159 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10160
10161 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
10162
10163 2002-11-25 Jason Rumney <jasonr@gnu.org>
10164
10165 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
10166 supported.
10167
10168 2002-11-25 Dave Love <fx@gnu.org>
10169
10170 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
10171
10172 * Makefile.in (TEMACS_LDFLAGS): Update last change.
10173
10174 2002-11-25 Andreas Schwab <schwab@suse.de>
10175
10176 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
10177
10178 2002-11-24 Steven Tamm <steventamm@mac.com>
10179
10180 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
10181 determine the size of pointers alloced in unexed space instead
10182 of using possibly invalid emacs_zone pointers. This fixes the
10183 binary incompatibility problems caused by updates to libSystem.B.
10184
10185 2002-11-24 Richard M. Stallman <rms@gnu.org>
10186
10187 * search.c (Fstring_match): Doc fix.
10188
10189 * callint.c (Fcall_interactively): If a command fails because
10190 `*' detects a read-only buffer, but RECORD_FLAG is set,
10191 record it anyway if the args don't actually do tty input.
10192
10193 2002-11-22 Dave Love <fx@gnu.org>
10194
10195 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
10196
10197 * keyboard.c (interrupt_signal): Provide forward declaration.
10198 (kbd_buffer_store_event): Don't declare interrupt_signal.
10199
10200 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
10201
10202 2002-11-21 Richard M. Stallman <rms@gnu.org>
10203
10204 * eval.c (interactive_p): Skip any number of bytecode
10205 and special form frames, in any order.
10206
10207 2002-11-20 Jason Rumney <jasonr@gnu.org>
10208
10209 * w32fns.c (convert_mono_to_color_image): New function.
10210 (xbm_load, xbm_load_image): Use it when foreground or background
10211 is explicitly set.
10212
10213 2002-11-19 Dave Love <fx@gnu.org>
10214
10215 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
10216
10217 2002-11-18 Jason Rumney <jasonr@gnu.org>
10218
10219 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
10220 (XPutPixel): Swap blue and red.
10221 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10222 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10223 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
10224 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
10225
10226 2002-11-18 Dave Love <fx@gnu.org>
10227
10228 * m/orion105.h (HAVE_ALLOCA): Don't define.
10229
10230 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
10231
10232 * m/intel386.h: Don't include alloca.h or define alloca.
10233
10234 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
10235 malloc, realloc, calloc.
10236
10237 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
10238 (bcmp): Don't define.
10239
10240 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
10241
10242 * m/amdahl.h: Don't define LIB_STANDARD.
10243
10244 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
10245
10246 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
10247
10248 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
10249 Don't include alloca.h.
10250
10251 * s/aix3-2.h (HAVE_FSYNC): Don't define.
10252
10253 * regex.c (_GNU_SOURCE): Don't define.
10254
10255 * process.c (_GNU_SOURCE): Don't define.
10256
10257 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
10258
10259 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
10260
10261 * s/sol2-8.h: Include sol2-6.h.
10262
10263 2002-11-18 Miles Bader <miles@gnu.org>
10264
10265 * dispextern.h (struct face): Add `overstrike' field.
10266 * xterm.c (x_draw_glyph_string_foreground)
10267 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10268 * xfaces.c (load_face_font): Set `face->overstrike' based on
10269 result from choose_face_font.
10270 (best_matching_font, choose_face_font): Add `needs_overstrike'
10271 argument, and use it to return whether overstriking is desirable
10272 for this face/font combo.
10273 (set_font_frame_param: Pass new argument to choose_face_font.
10274
10275 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
10276
10277 This change is my fix for the following entry in etc/PROBLEMS:
10278 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10279 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10280
10281 * w32.c: Added wrapper functions around the win32 API functions
10282 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
10283 GetSidIdentifierAuthority. These wrapper functions serve two
10284 purposes:
10285 1. They ensure that the wrapped function can never be called
10286 when Emacs is running on an operating system on which they are
10287 not supported (Microsoft Windows 95 / 98 / ME).
10288 2. They call the wrapped functions via function pointers rather
10289 than calling them directly. This avoids taking advantage of the
10290 undocumented fact that although these functions are not supported
10291 in the 9x branch of Microsoft Windows, the functions do exist in
10292 the version of advapi32.dll that is found in the 9x branch of
10293 Microsoft Windows.
10294
10295 * w32.c (init_user_info): Replace the calls to the win32 API
10296 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
10297 and GetSidIdentifierAuthority with calls to the newly added
10298 wrapper functions.
10299
10300 * w32.h: Added extern declarations for the following functions:
10301 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
10302 syms_of_w32menu, and void syms_of_fontset.
10303
10304 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
10305 function pointer track_mouse_event_fn in the handler for the
10306 WM_SETFOCUS message.
10307
10308 * w32menu.c (initialize_frame_menubar): Add code to
10309 reinitialize the function pointers set_menu_item_info and
10310 get_menu_item_info.
10311
10312 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
10313
10314 * sound.c: Added a partial implementation of play-sound-internal
10315 for Microsoft Windows. Added various #ifdef / #else / #endif
10316 code blocks to separate the code that will compile under
10317 Microsoft Windows from the code that is specific to Gnu/Linux.
10318 Moved several blocks of code around to make this separation of code
10319 into Windows compatible and Gnu/Linux compatible code blocks easier.
10320
10321 * makefile.w32-in: Include sound.c and link with WinMM.lib.
10322
10323 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
10324 added support for play-sound-internal under Windows would be
10325 included in the build of Emacs.
10326
10327 2002-11-16 Jason Rumney <jasonr@gnu.org>
10328
10329 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
10330
10331 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
10332
10333 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
10334
10335 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
10336 (adjust_point_for_property): Move out of display and invisible even if
10337 we were already inside before (in case a property was added while
10338 we weren't looking). Be more careful when handling invisible props.
10339 Skip invisible text as if it really wasn't there at all.
10340
10341 2002-11-15 Jason Rumney <jasonr@gnu.org>
10342
10343 * w32term.c (x_draw_image_foreground)
10344 (w32_draw_image_foreground_1): Use standard copy and invert
10345 operations to draw images.
10346
10347 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
10348 depth of 1.
10349 (xbm_read_bitmap_data): Invert bits as xbm is read in.
10350 (XPutPixel): Don't invert bits here.
10351
10352 2002-11-15 Jason Rumney <jasonr@gnu.org>
10353
10354 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
10355 (w32_draw_image_foreground_1): Handle image masks.
10356 (x_draw_image_glyph_string): Don't BitBlt transparently.
10357
10358 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
10359 (x_from_xcolors): Adjust RGB values for W32.
10360 (image_background, image_background_transparent)
10361 (postprocess_image, x_to_xcolors, x_disable_image)
10362 (x_build_heuristic_mask): Adapt for W32 and enable.
10363 (x_create_x_image_and_pixmap): Mark images with palettes as such.
10364 (xbm_load): Remove unused variable.
10365
10366 2002-11-14 Richard M. Stallman <rms@gnu.org>
10367
10368 * buffer.c (syms_of_buffer): Doc fix.
10369
10370 2002-11-14 Dave Love <fx@gnu.org>
10371
10372 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
10373
10374 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
10375 * xmenu.c (unuse_menu_items, digest_single_submenu):
10376 * xfns.c (x_put_x_image):
10377 * xdisp.c (message2_nolog, set_message):
10378 * undo.c (record_point):
10379 * terminfo.c (tparam):
10380 * syntax.c (scan_sexps_forward):
10381 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10382 * composite.c (update_compositions):
10383 * cm.c (calccost, cmgoto):
10384 * charset.c (c_string_width): Declare all args (per C99).
10385
10386 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
10387
10388 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
10389 Don't declare.
10390
10391 * emacs.c (main) [!VMS]: Avoid third arg.
10392
10393 * fns.c (Fcopy_sequence): Doc fix.
10394 (Fmap_char_table): Cast `call2'.
10395
10396 2002-11-14 Francesco Potorti` <pot@gnu.org>
10397
10398 * s/sol2-8.h: New file.
10399
10400 2002-11-14 Kim F. Storm <storm@cua.dk>
10401
10402 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
10403 dependency on `risky-local-variable' and the :propertize form.
10404
10405 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
10406
10407 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
10408
10409 * syntax.c (scan_sexps_forward): Undo last patch.
10410 Use a more obvious fix: check eob before updating the syntax table.
10411
10412 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
10413
10414 * syntax.c (scan_sexps_forward): Update syntax table before reading
10415 a char rather than after so we don't update the table past eob.
10416
10417 2002-11-09 Dave Love <fx@gnu.org>
10418
10419 * buffer.c (Fset_buffer_major_mode): Fix last change.
10420
10421 * regex.c (regexec): Fix pmatch declaration.
10422
10423 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
10424
10425 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
10426 to self-inserting characters.
10427 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
10428
10429 * coding.c (Vtranslation_table_for_input): New.
10430 (syms_of_coding): DEFVAR it.
10431
10432 2002-11-08 Juanma Barranquero <lektu@terra.es>
10433
10434 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
10435 window.
10436
10437 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10438
10439 * process.c (Fformat_network_address): Remove unused locals p,
10440 cp, and i.
10441
10442 2002-11-06 Dave Love <fx@gnu.org>
10443
10444 * buffer.c (Qset_buffer_major_mode_hook): New.
10445 (Fset_buffer_major_mode): Use it.
10446
10447 2002-11-06 Richard M. Stallman <rms@gnu.org>
10448
10449 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
10450 and stop_polling.
10451
10452 * process.c (wait_reading_process_input):
10453 Test POLLING_PROBLEM_IN_SELECT, not hpux.
10454 Avoid initialization for auto Lisp_Object var.
10455
10456 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
10457
10458 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
10459
10460 2002-11-05 Richard M. Stallman <rms@gnu.org>
10461
10462 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
10463
10464 * callint.c (Fcall_interactively): New local filter_specs.
10465 (Fcall_interactively): Check for progn as well as let.
10466 Add a gcpro.
10467 (Qprogn): New variable.
10468 (syms_of_callint): Staticpro and init Qprogn.
10469
10470 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
10471
10472 * lread.c (Feval_buffer): Doc fix.
10473
10474 2002-11-04 Dave Love <fx@gnu.org>
10475
10476 * keyboard.c (read_char): Always translate iff
10477 Vkeyboard_translate_table is a char table and c is valid.
10478
10479 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10480 and fix C types.
10481
10482 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
10483
10484 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
10485
10486 * editfns.c (get_pos_property): Don't hardcode Qfield.
10487
10488 * keyboard.c (adjust_point_for_property): Handle `display' prop on
10489 overlays. Also handle `invisible' prop.
10490
10491 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
10492
10493 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
10494 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
10495
10496 2002-11-01 Andreas Schwab <schwab@suse.de>
10497
10498 * editfns.c (Fmessage): Revert last change to properly handle %%.
10499
10500 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
10501
10502 * xmenu.c (unuse_menu_items): New fun.
10503 (menu_items_inuse): New var.
10504 (syms_of_xmenu): Initialize it.
10505 (init_menu_items): Use it to detect re-entrance.
10506 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
10507 (Fx_popup_menu): Remove spurious XSETFRAME.
10508
10509 * editfns.c (find_field): Make an exception for nil fields.
10510
10511 2002-11-01 Dave Love <fx@gnu.org>
10512
10513 * m/gec63.h: Deleted.
10514
10515 2002-10-31 Dave Love <fx@gnu.org>
10516
10517 * xterm.c (XTread_socket): Fix last change.
10518 (xaw_scroll_callback): Cast call_data to long to avoid warning.
10519
10520 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
10521
10522 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
10523
10524 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
10525
10526 * editfns.c (overlays_around, get_pos_property): New funs.
10527 (find_field): Use them.
10528 Also be careful not to modify POS before its last use.
10529 (Fmessage): Don't Fformat if there's nothing to format.
10530
10531 2002-10-30 Dave Love <fx@gnu.org>
10532
10533 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
10534 [HAVE_PTY_H]; Include pty.h.
10535
10536 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
10537
10538 * xterm.c (Qeql): Declare.
10539 (Vx_keysym_table): New.
10540 (syms_of_xterm): Initialize it.
10541 (XTread_socket): Use it. Deal with ASCII keysyms.
10542 (XSetIMValues) [HAVE_X11R6]: Prototype.
10543
10544 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
10545 (lispy_kana_keys): Comment out.
10546 (make_lispy_event) [XK_kana_A]: Comment out.
10547 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
10548 Fix sprintf call.
10549
10550 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
10551 regexp.h change).
10552 (TERMINFO, LIBS_TERMCAP): Define.
10553
10554 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
10555 (bcmp): Define conditional on HAVE_BCMP.
10556 (NO_SIOCTL_H): Don't define.
10557 (TIOCSIGSEND): Don't make conditional on IRIX6.
10558
10559 * s/sol2-5.h: Don't include strings.h.
10560 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
10561
10562 * s/irix6-0.h (IRIX6): Don't define.
10563 (bcopy, bcmp, bzero): Don't undef.
10564
10565 * s/irix6-5.h: Don't include strings.h.
10566 (IRIX6): Don't define.
10567 (bcopy, bcmp, bzero): Don't undef.
10568
10569 * syntax.c (Fforward_comment): Doc fix.
10570
10571 2002-10-29 Kim F. Storm <storm@cua.dk>
10572
10573 * process.c (Fsignal_process): Allow PROCESS to be specified by
10574 name in addition to pid (as integer or string).
10575
10576 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
10577
10578 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
10579 environments.
10580
10581 2002-10-27 Kim F. Storm <storm@cua.dk>
10582
10583 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10584
10585 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
10586
10587 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
10588
10589 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
10590
10591 2002-10-26 Richard M. Stallman <rms@gnu.org>
10592
10593 * editfns.c (Fformat): Detect invalid format letters for floats.
10594
10595 2002-10-25 Kenichi Handa <handa@m17n.org>
10596
10597 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
10598 (x_set_title): Likewise.
10599
10600 2002-10-25 Juanma Barranquero <lektu@terra.es>
10601
10602 * macgui.h:
10603 * w32gui.h: Remove definition of XColor.
10604
10605 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
10606
10607 2002-10-24 Kim F. Storm <storm@cua.dk>
10608
10609 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
10610 Callers changed (supply dummy arg).
10611
10612 * lisp.h (get_window_cursor_type): Update prototype.
10613
10614 * w32term.c (x_display_and_set_cursor): Get active_cursor from
10615 get_window_cursor_type to track system caret.
10616
10617 2002-10-24 Kim F. Storm <storm@cua.dk>
10618
10619 * process.c (Fformat_network_address): New function.
10620 (syms_of_process): Defsubr it.
10621 (list_processes_1): Use it to format :local/:remote address if
10622 service/host is not set; before Emacs would crash in that case.
10623 (Fmake_network_process): Don't use Ffind_operation_coding_system
10624 to setup coding system if host or service is not set.
10625
10626 2002-10-23 Juanma Barranquero <lektu@terra.es>
10627
10628 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
10629
10630 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
10631 COLORREF.
10632
10633 * macgui.h:
10634 * w32gui.h: Add definition of XColor.
10635
10636 * macfns.c:
10637 * w32fns.c:
10638 * xfaces.c: Remove definition of XColor.
10639
10640 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
10641
10642 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
10643
10644 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
10645 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
10646 window if it is dedicated.
10647 (Fshrink_window): Add preserve_before as was done for enlarge_window.
10648 (Vspecial_display_function): Update docstring.
10649
10650 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
10651 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
10652 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
10653
10654 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
10655
10656 * casefiddle.c (casify_region): Don't treat a prefix char as part
10657 of a word when at the beginning.
10658
10659 2002-10-17 Juanma Barranquero <lektu@terra.es>
10660
10661 * lread.c (syms_of_lread): Fix typos.
10662
10663 2002-10-17 Dave Love <fx@gnu.org>
10664
10665 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
10666
10667 2002-10-16 Richard M. Stallman <rms@gnu.org>
10668
10669 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
10670
10671 2002-10-14 Juanma Barranquero <lektu@terra.es>
10672
10673 * w16select.c (syms_of_win16select): Fix docstring for
10674 `selection-coding-system'.
10675
10676 * w32select.c (syms_of_w32select): Likewise.
10677
10678 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
10679
10680 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
10681 a backslash-quoted char.
10682 (scan_lists, scan_sexps_forward): Pacify the compiler.
10683
10684 2002-10-13 Richard M. Stallman <rms@gnu.org>
10685
10686 * window.c (window_scroll): Set immediate_quit.
10687
10688 * print.c (print): When backquote form is the car of a list,
10689 output in old style. Use old_backquote_output to output all
10690 comma forms inside it in old style too.
10691
10692 * buffer.h (struct buffer): Move `undo_list' down below `name'.
10693
10694 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
10695
10696 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
10697 batch mode).
10698
10699 * lread.c (Fload): Doc fix (load-suffixes).
10700
10701 2002-10-10 Steven Tamm <steventamm@mac.com>
10702
10703 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
10704 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
10705 Also switch the default to Qnil from Qt.
10706
10707 2002-10-08 Kenichi Handa <handa@m17n.org>
10708
10709 * coding.c (code_convert_region): When we need more GAP for
10710 conversion, pay attention to the case that coding->produced is not
10711 greater than coding->consumed.
10712
10713 2002-10-07 Richard M. Stallman <rms@gnu.org>
10714
10715 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
10716
10717 2002-10-06 Andrew Choi <akochoi@shaw.ca>
10718
10719 * macmenu.c (mac_menu_show): Add j to count menu items; match
10720 menu_item_selection to it to find selected item.
10721
10722 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10723
10724 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
10725 cases. The correct fix is to pass ReparentNotify to Xt.
10726 The shell widget interprets ConfigureNotify differently depending
10727 on if it has been reparented or not.
10728
10729 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
10730
10731 * editfns.c (Fformat_time_string): Doc fix.
10732
10733 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
10734
10735 * fns.c (Flength): Doc fix.
10736
10737 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
10738
10739 * keyboard.c (keyremap): New struct.
10740 (read_key_sequence): Use it: globally replace keytran_foo with
10741 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
10742 keytran_next and fkey_next to just `next'.
10743
10744 2002-10-04 Steven Tamm <steventamm@mac.com>
10745
10746 * macterm.c (keycode_to_xkeysym_table): Change return to be
10747 treated like an X keysym.
10748
10749 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10750
10751 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
10752 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
10753 This is to also handle x/y changes that occur because of a resize.
10754
10755 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
10756
10757 * frame.c (Vdelete_frame_functions): New variable.
10758 (syms_of_frame): Initialize and defvar it.
10759 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
10760 it when frame's `tooltip' parameter is non-nil.
10761
10762 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
10763
10764 * w32fns.c (x_create_tip_frame): Likewise.
10765
10766 * macfns.c (x_create_tip_frame): Likewise.
10767
10768 2002-09-30 Kenichi Handa <handa@m17n.org>
10769
10770 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
10771 -1 before calling ccl_driver.
10772
10773 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
10774 Only when it is non-nil, handle composition sequence.
10775 (setup_coding_system) <0>: Don't force composition handling.
10776
10777 * Makefile.in (lisp, shortlisp): Add utf-16.elc
10778
10779 2002-09-29 Richard M. Stallman <rms@gnu.org>
10780
10781 * search.c (Freplace_match): Adjust match data for the substitution
10782 just made in the buffer.
10783
10784 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
10785 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
10786
10787 2002-09-27 Richard M. Stallman <rms@gnu.org>
10788
10789 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
10790 (read_char): Use them. Do all exits thru the end of the function.
10791
10792 2002-09-27 Kenichi Handa <handa@etl.go.jp>
10793
10794 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
10795 is nil.
10796
10797 2002-09-26 Richard M. Stallman <rms@gnu.org>
10798
10799 * regex.h (__restrict_arr): Don't define if already defined.
10800
10801 * coding.c (run_pre_post_conversion_on_str):
10802 Save and restore Vdeactivate_mark.
10803
10804 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
10805
10806 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
10807
10808 2002-09-26 Kenichi Handa <handa@etl.go.jp>
10809
10810 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
10811 nonzero, try face's family at first. Otherwise try FAMILY at first.
10812 (choose_face_font): If C is a single byte char or latin-1, call
10813 try_font_list with PREFER_FACE_FAMILY 1.
10814
10815 2002-09-21 Richard M. Stallman <rms@gnu.org>
10816
10817 * window.c (select_window_1): Don't select frame.
10818 Set frame's selected window only when frame itself is selected.
10819 (Fselect_window): Doc fix.
10820
10821 2002-09-18 Kim F. Storm <storm@cua.dk>
10822
10823 * process.c (make-network-process): Doc fix (there is no
10824 network-server-log-function hook).
10825
10826 2002-09-18 Richard M. Stallman <rms@gnu.org>
10827
10828 * print.c (print): Clear out the unused parts of Vprint_number_table.
10829 (syms_of_print): Doc fix for `print-number-table'.
10830
10831 * unexelf.c (unexec): Undo previous change.
10832
10833 2002-09-17 Andreas Schwab <schwab@suse.de>
10834
10835 * m/alpha.h [LINUX]: Don't define DATA_START.
10836
10837 2002-09-16 Dave Love <fx@gnu.org>
10838
10839 * unexelf.c (unexec): Deal with .got, reinstating change from
10840 25-08-1999.
10841
10842 2002-09-13 Richard M. Stallman <rms@gnu.org>
10843
10844 * s/sol2-6.h (UNEXEC): Comment out definition.
10845
10846 * unexsol.c (unexec): Don't downcase first letter of error msg.
10847
10848 * xfaces.c (Fcolor_supported_p): Just one arg is required.
10849
10850 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
10851
10852 * unexsol.c: Include buffer.h, charset.h, coding.h.
10853
10854 2002-09-11 Richard M. Stallman <rms@gnu.org>
10855
10856 * unexsol.c: Don't use report_file_error; do it by hand
10857 using dlerror.
10858
10859 * process.c (wait_reading_process_input, both versions):
10860 Before calling turn_on_atimers, call stop_polling.
10861
10862 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
10863
10864 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
10865 we go to too_near_end, call clear_glyph_matrix.
10866 (redisplay_window): After make_cursor_line_fully_visible,
10867 call clear_glyph_matrix and bypass `goto done'.
10868
10869 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
10870 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
10871
10872 2002-09-10 Richard M. Stallman <rms@gnu.org>
10873
10874 * fileio.c (Fdo_auto_save): Catch error making directory.
10875 Only call push_message if we need to.
10876 At the same time, make an unwind-protect to pop it.
10877 Rename local message_p to old_message_p.
10878 (do_auto_save_make_dir, do_auto_save_eh): New functions.
10879 (do_auto_save_unwind): Don't call pop_message.
10880
10881 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
10882
10883 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
10884
10885 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
10886
10887 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
10888
10889 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
10890
10891 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
10892 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
10893 (re_match_2_internal): Be more careful with infinite loops.
10894
10895 2002-09-10 Kim F. Storm <storm@cua.dk>
10896
10897 * macros.c (end_kbd_macro): New function.
10898 (Fend_kbd_macro): Use it.
10899
10900 * macros.h (end_kbd_macro): Declare extern.
10901
10902 * keyboard.c (Fdiscard_input): If defining keyboard macro,
10903 end and save it instead of discarding it.
10904
10905 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
10906
10907 * s/sol2-6.h: Fix typo. Add comment.
10908
10909 2002-09-09 Richard M. Stallman <rms@gnu.org>
10910
10911 * regex.c (regnum_t): Use signed int, not unsigned int.
10912
10913 * s/sol2-6.h: New file.
10914
10915 * s/sol2-5.h (UNEXEC): Definition deleted.
10916
10917 2002-09-08 Kim F. Storm <storm@cua.dk>
10918
10919 * macros.c (executing_macro_index): Change type to EMACS_INT.
10920 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
10921
10922 * macros.h (executing_macro_index): Change type to EMACS_INT.
10923
10924 2002-09-06 Richard M. Stallman <rms@gnu.org>
10925
10926 * casetab.c (set_case_table): Make canon table point to eqv table.
10927
10928 2002-09-06 Juanma Barranquero <lektu@terra.es>
10929
10930 * coding.c (syms_of_coding): Fix spacing.
10931
10932 * composite.c (Fcompose_region_internal)
10933 (Fcompose_string_internal): Likewise.
10934
10935 * data.c (Flsh): Likewise.
10936
10937 * fontset.c (Fset_fontset_font): Likewise.
10938
10939 * macfns.c (Fx_server_max_request_size): Likewise.
10940
10941 * w16select.c (syms_of_win16select): Likewise.
10942
10943 * w32select.c (syms_of_w32select): Likewise.
10944
10945 * xselect.c (syms_of_xselect): Likewise.
10946
10947 2002-09-05 Richard M. Stallman <rms@gnu.org>
10948
10949 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
10950 call EXTEND_RANGE_TABLE and return a proper value.
10951 (set_image_of_range): Don't call set_image_of_range_1
10952 if no TRANSLATE or if range includes all of Latin-1.
10953 Only call it for the Latin-1 part of the range.
10954 For other cases, make two separate ranges,
10955 one for the original specified characters and one for
10956 their case-conversions.
10957
10958 2002-09-04 Richard M. Stallman <rms@gnu.org>
10959
10960 * s/sol2-5.h (UNEXEC): Use unexsol.o.
10961
10962 * window.c (displayed_window_lines): Correct for one-off bug
10963 in HEIGHT on non-window displays.
10964
10965 * regex.c (set_image_of_range_1): New function.
10966 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
10967 Return a value to indicate running out of memory.
10968 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
10969 (extend_range_table_work_area): New subroutine.
10970 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
10971 Different calling conventions, and used from set_image_of_range{,_1}.
10972 (IMMEDIATE_QUIT_CHECK): Definitions moved.
10973
10974 2002-09-04 Juanma Barranquero <lektu@terra.es>
10975
10976 * makefile.w32-in: All dependencies updated.
10977
10978 2002-09-01 Richard M. Stallman <rms@gnu.org>
10979
10980 * unexsol.c: New file.
10981
10982 * xfns.c (Qbox): Declare external, don't define.
10983
10984 * xdisp.c (redisplay_window) <force-start case>:
10985 If point is on semi-visible last line, reposition
10986 it at previous line.
10987
10988 * alloc.c (display_malloc_warning): Use display-warning.
10989 (malloc_warning_1): Function deleted.
10990
10991 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
10992
10993 * lread.c (read1): Handle #! by skipping the line.
10994
10995 2002-08-31 Richard M. Stallman <rms@gnu.org>
10996
10997 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
10998 Don't include LDFLAGS.
10999 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
11000
11001 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
11002
11003 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
11004 member of x_display_info unless we compile for some window system.
11005
11006 2002-08-31 Kim F. Storm <storm@cua.dk>
11007
11008 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
11009 (get_window_cursor_type): Don't use them.
11010 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
11011
11012 2002-08-30 Kenichi Handa <handa@etl.go.jp>
11013
11014 * xdisp.c (get_next_display_element): Fix previous change.
11015
11016 2002-08-30 Andrew Choi <akochoi@shaw.ca>
11017
11018 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
11019 (expose_window): Use it to fix the display of overlapping
11020 rows (merge code from xterm.c).
11021
11022 * macfns.c (Qbox): Add extern declaration.
11023
11024 2002-08-30 Juanma Barranquero <lektu@terra.es>
11025
11026 * w32fns.c (Qbox): Make extern.
11027 (syms_of_w32fns): Remove initialization of Qbox.
11028
11029 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
11030
11031 * xfns.c (Fx_open_connection): Fix error message.
11032
11033 2002-08-30 Kim F. Storm <storm@cua.dk>
11034
11035 The following changes consolidates the handling of the cursor
11036 type in xdisp.c, moving duplicate code and functionality from
11037 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
11038
11039 * frame.h (enum text_cursor_kinds): Consolidated here.
11040 Added DEFAULT_CURSOR value.
11041 (struct frame) <desired_cursor, cursor_width>
11042 <blink_off_cursor, blink_off_cursor_width>: New fields.
11043 Consolidated from output_x, output_w32 and output_mac structs.
11044 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11045 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
11046
11047 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
11048 Variables consolidated here.
11049 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
11050 (Vcursor_in_non_selected_windows): Renamed from
11051 cursor_in_non_selected_windows and changed to Lisp_Object.
11052 (syms_of_xdisp): Define and staticpro new and moved variables.
11053 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
11054 consolidated here. Recognize Qhollow setting.
11055 (set_frame_cursor_types): New function to set frame cursor types
11056 based on the frame parameters.
11057 (get_window_cursor_type): New function to calculate new cursor
11058 type and width for the specified window. Based on duplicated
11059 code consolidated here.
11060 Enhancements: cursor-in-non-selected-windows may be a cursor type,
11061 check buffer-local alternate-cursor-type and blink-cursor-alist
11062 before using built-in blink off methods.
11063
11064 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
11065
11066 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
11067 (get_specified_cursor_type, get_window_cursor_type)
11068 (set_frame_cursor_types): Added prototypes.
11069
11070 * macfns.c (x_specified_cursor_type): Removed.
11071 (x_set_cursor_type): Use set_frame_cursor_types.
11072 (Qbar, Qbox): Removed.
11073 (syms_of_macfns): Don't intern or staticpro them.
11074
11075 * macterm.c (x_specified_cursor_type): Remove prototype.
11076 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11077 (x_display_and_set_cursor): Use get_window_cursor_type.
11078 Remove unused local variables cursor_non_selected, active_cursor.
11079 Redraw cursor if hbar cursor width changes.
11080 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
11081
11082 * macterm.h (enum text_cursor_kinds): Removed.
11083 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
11084 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11085 (FRAME_DESIRED_CURSOR): Macro removed.
11086
11087 * w32fns.c (Vblink_cursor_alist): Removed.
11088 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11089 (syms_of_w32fns): Don't intern, staticpro, or define them.
11090 (x_specified_cursor_type): Removed.
11091 (x_set_cursor_type): Use set_frame_cursor_types.
11092
11093 * w32term.c (x_specified_cursor_type): Remove prototype.
11094 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11095 (x_display_and_set_cursor): Use get_window_cursor_type.
11096 Remove unused local variables cursor_off_state.
11097 Redraw cursor if hbar cursor width changes.
11098 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
11099
11100 * w32term.h (enum text_cursor_kinds): Removed.
11101 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
11102 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11103 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11104 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11105 (struct w32_display_info) <x_highlight_frame>: Renamed member from
11106 w32_highlight_frame.
11107
11108 * xfns.c (Vblink_cursor_alist): Removed.
11109 (Qbar, Qhbar, Qbox, Qhollow): Removed.
11110 (syms_of_xfns): Don't intern, staticpro, or define them.
11111 (x_specified_cursor_type): Removed.
11112 (x_set_cursor_type): Use set_frame_cursor_types.
11113
11114 * xterm.c (x_specified_cursor_type): Remove prototype.
11115 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
11116 (x_display_and_set_cursor): Use get_window_cursor_type.
11117 Remove unused local variables cursor_off_state.
11118 Redraw cursor if hbar cursor width changes.
11119
11120 * xterm.h (enum text_cursor_kinds): Removed.
11121 (struct output_x) <current_cursor, desired_cursor, cursor_width>
11122 <blink_off_cursor, blink_off_cursor_width>: Members removed.
11123 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
11124 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
11125 (x_specified_cursor_type): Remove prototype.
11126
11127 2002-08-28 Richard M. Stallman <rms@gnu.org>
11128
11129 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11130 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11131 (Vblink_cursor_alist): New variable.
11132 (syms_of_w32fns): Initialize and defvar it.
11133 (x_specified_cursor_type): Recognize Qbox for filled box.
11134 Exceptions are hollow boxes.
11135 (Qbox, Qhollow): New variables.
11136 (syms_of_w32fns): Initialize and staticpro them.
11137
11138 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11139 New macros.
11140 (struct w32_output): New fields blink_off_cursor,
11141 blink_off_cursor_width.
11142 (FRAME_CURSOR_WIDTH): New macro.
11143
11144 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11145 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11146
11147 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11148 for bar cursor.
11149
11150 * w32term.c (expose_overlaps): New function.
11151 (expose_window): Use it to fix the display of overlapping rows.
11152
11153 2002-08-28 Simon Josefsson <jas@extundo.com>
11154
11155 * xfns.c (Fx_open_connection): Improve help when X connection
11156 fails, xhost is insecure and xauth is better.
11157
11158 2002-08-28 Juanma Barranquero <lektu@terra.es>
11159
11160 * makefile.w32-in: Add missing dependencies on w32term.h and
11161 composite.h.
11162
11163 * emacs.c (USAGE1): Add missing newline.
11164
11165 2002-08-27 Andrew Choi <akochoi@shaw.ca>
11166
11167 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
11168
11169 2002-08-27 Richard M. Stallman <rms@gnu.org>
11170
11171 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
11172 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
11173 (Vblink_cursor_alist): New variable.
11174 (syms_of_xfns): Initialize and defvar it.
11175 (x_specified_cursor_type): Recognize Qbox for filled box.
11176 Exceptions are hollow boxes.
11177 (Qbox, Qhollow): New variables.
11178 (syms_of_xfns): Initialize and staticpro them.
11179
11180 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
11181 New macros.
11182 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
11183
11184 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
11185 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
11186
11187 * emacs.c (main): Handle --script.
11188 (USAGE1): Mention --script.
11189 (standard_args): Define sort order for --script.
11190
11191 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
11192
11193 * xdisp.c (redisplay_updating_p): Variable removed.
11194 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
11195 New variables.
11196 (init_iterator): Don't free realized faces if
11197 inhibit_free_realized_faces is set.
11198 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
11199 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
11200 initialize Qinhibit_free_realized_faces.
11201
11202 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
11203 when iterator is adding glyphs to a glyph matrix.
11204
11205 2002-08-27 Kenichi Handa <handa@etl.go.jp>
11206
11207 * xdisp.c (get_next_display_element): In unibyte case, don't use
11208 octal form for such eight-bit characters that can be converted to
11209 multibyte char.
11210
11211 2002-08-26 Kim F. Storm <storm@cua.dk>
11212
11213 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
11214 foreground and background colors. From Joe Buehler.
11215
11216 2002-08-26 Miles Bader <miles@gnu.org>
11217
11218 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
11219
11220 2002-08-25 Andrew Choi <akochoi@shaw.ca>
11221
11222 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
11223 defined instead of MAC_OSX.
11224
11225 * s/darwin.h (select): Define select to sys_select only if
11226 HAVE_CARBON is defined.
11227 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
11228 (DONT_REOPEN_PTY): #def it.
11229
11230 * macterm.c (XTread_socket): Remove code to call
11231 SendEventToEventTarget for keys with command modifiers when
11232 mac_command_key_is_meta is nil.
11233
11234 2002-08-24 Andreas Schwab <schwab@suse.de>
11235
11236 * eval.c (Fdefvar): Fix last change.
11237
11238 2002-08-23 Richard M. Stallman <rms@gnu.org>
11239
11240 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
11241 Record variables in load history as (defvar . VAR).
11242 (Fdefvar): Don't record in load history if no initial value.
11243 (Qdefvar): New variable.
11244 (syms_of_eval): Init and staticpro it.
11245
11246 * lread.c (syms_of_lread): Doc fix.
11247 (build_load_history): Use Fmember to see if a definition
11248 is already in the Vload_history element.
11249
11250 * process.c (Fstart_process): Remove /: from program name.
11251
11252 * emacs.c (decode_env_path): Don't add /: if file name handler
11253 has a `safe-magic' property.
11254
11255 * callproc.c (Fcall_process): Remove /: from program name.
11256
11257 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
11258
11259 * regex.c (PATFETCH): Remove the translating fetch.
11260 (PATFETCH_RAW): Rename to PATFETCH.
11261 (set_image_of_range): New fun.
11262 (SET_RANGE_TABLE_WORK_AREA): Use it.
11263 (regex_compile): Don't translate the pattern chars so eagerly.
11264 Only do it when inserting an `exactn' bytecode or when handling
11265 a char-range.
11266 (mutually_exclusive_p): Avoid empty statement.
11267
11268 2002-08-22 Kim F. Storm <storm@cua.dk>
11269
11270 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
11271 end up on a partially visible line; this reverts a specific part
11272 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
11273 display error which has been reported several times now.
11274 However it introduces the problem that changes was supposed to fix.
11275 See my comments in the source if you want to debug this further.
11276
11277 2002-08-20 Kenichi Handa <handa@etl.go.jp>
11278
11279 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11280
11281 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
11282
11283 * msdos.c (croak): Add `void' to definition.
11284
11285 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
11286 Don't define them, they are defined in msdos.c.
11287
11288 * mem-limits.h [MSDOS]: Declare etext.
11289
11290 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
11291 `const' since CORRECT_DIR_SEPS modifies its target.
11292
11293 2002-08-19 Kim F. Storm <storm@cua.dk>
11294
11295 * keyboard.c (Fclear_this_command_keys): Add optional arg
11296 KEEP-RECORD to avoid clearing lossage when we just want to clear
11297 the current key sequence (kmacro needs this).
11298
11299 2002-08-19 Kenichi Handa <handa@localhost>
11300
11301 * composite.c (run_composition_function): Call FUNC if it is fboundp.
11302
11303 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
11304 cons, return Qnil.
11305
11306 2002-08-17 Richard M. Stallman <rms@gnu.org>
11307
11308 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
11309
11310 * sysdep.c [!VMS]: Include sys/files.h.
11311
11312 * editfns.c (save_restriction_restore): Defend from unchained marker.
11313
11314 * buffer.c (overlays_at): Handle extending vec uniformly.
11315 (overlays_in): Handle extending vec from length 0 as in overlays_at.
11316
11317 2002-08-15 Andrew Choi <akochoi@shaw.ca>
11318
11319 * mac.c (init_mac_osx_environment): New function.
11320
11321 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
11322
11323 2002-08-14 Kim F. Storm <storm@cua.dk>
11324
11325 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
11326 executing macro before appending to it (when used from Lisp).
11327 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
11328 which is called prior to each iteration of macro (for kmacro.el).
11329 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
11330
11331 * lisp.h (Fexecute_kbd_macro): Update prototype.
11332
11333 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
11334
11335 2002-08-14 Kenichi Handa <handa@etl.go.jp>
11336
11337 * xselect.c (QUTF8_STRING): New variable.
11338 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
11339 (x_atom_to_symbol): Likewise.
11340 (x_get_local_selection): New argument local_request. If it is
11341 nonzero, call handler_fn with the second arg nil.
11342 (x_handle_selection_request): Call x_get_local_selection with
11343 local_request 0.
11344 (lisp_data_to_selection_data): Don't encode the string here.
11345 (Fx_get_selection_internal): Call x_get_local_selection with
11346 local_request 1.
11347 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
11348
11349 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
11350
11351 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
11352
11353 2002-08-13 Richard M. Stallman <rms@gnu.org>
11354
11355 * minibuf.c (Fminibufferp): New function.
11356 (syms_of_minibuf): Defsubr it.
11357 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
11358
11359 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
11360
11361 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
11362
11363 2002-08-12 Richard M. Stallman <rms@gnu.org>
11364
11365 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
11366 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
11367 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
11368 already.
11369
11370 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
11371
11372 2002-08-11 Andrew Choi <akochoi@shaw.ca>
11373
11374 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
11375 (Vmac_pass_command_to_system): New variable.
11376 (Vmac_pass_control_to_system): New variable.
11377 (do_mouse_moved): Check wp with is_emacs_window.
11378 (XTread_socket): Check window_ptr with is_emacs_window.
11379 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
11380 events back to Mac Toolbox for processing, depending on values of
11381 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
11382 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
11383 Vmac_pass_control_to_system.
11384
11385 2002-08-10 Kenichi Handa <handa@etl.go.jp>
11386
11387 * coding.c (unencodable_char_position): New function.
11388 (Funencodable_char_position): New function.
11389 (syms_of_coding): Defsubr Funencodable_char_position.
11390
11391 2002-08-10 Andrew Choi <akochoi@shaw.ca>
11392
11393 * mac.c (sys_select) [MAC_OSX]: New function.
11394
11395 * macterm.c (MakeMeTheFrontProcess): New function.
11396 (mac_initialize): Call MakeMeTheFrontProcess.
11397
11398 * s/darwin.h: Define select to sys_select.
11399
11400 2002-08-09 Richard M. Stallman <rms@gnu.org>
11401
11402 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
11403
11404 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
11405
11406 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
11407 end of the buffer.
11408
11409 2002-08-08 Ken Raeburn <raeburn@mit.edu>
11410
11411 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
11412
11413 * puresize.h (BASE_PURESIZE): Increase to 910000.
11414
11415 2002-08-08 Kenichi Handa <handa@etl.go.jp>
11416
11417 * coding.c (Ffind_operation_coding_system): For write-region, if
11418 VISIT is a filename, make it the target.
11419
11420 2002-08-07 Richard M. Stallman <rms@gnu.org>
11421
11422 * alloc.c (mark_object): Detect long lists for debugging.
11423 (mark_object_loop_halt): New variable.
11424
11425 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
11426
11427 * data.c (Fmake_variable_frame_local): Doc fix.
11428
11429 2002-08-01 David Ponce <david@dponce.com>
11430
11431 * w32menu.c (local_heap, local_alloc, local_free): New macros.
11432 (malloc_widget_value, free_widget_value)
11433 (w32_free_submenu_strings): Use them.
11434
11435 (push_submenu_start, push_submenu_end, push_left_right_boundary)
11436 (push_menu_pane, push_menu_item, single_keymap_panes)
11437 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
11438 (single_submenu, set_frame_menubar)
11439 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
11440
11441 (Fx_popup_menu): Don't show pop up menu until preceding one is
11442 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
11443
11444 * w32menu.c: Changes adapted from xmenu.c
11445 (set_frame_menubar): First parse all submenus,
11446 then make widget_value trees from them.
11447 Don't allocate any widget_value objects
11448 until we are done with the parsing.
11449 (parse_single_submenu): New function.
11450 (digest_single_submenu): New function.
11451 (single_submenu): Function deleted, replaced by those two.
11452
11453 2002-08-04 Andrew Choi <akochoi@shaw.ca>
11454
11455 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
11456 returns a valid window pointer before proceeding for keyDown and
11457 autoKey events.
11458
11459 2002-08-03 Andrew Choi <akochoi@shaw.ca>
11460
11461 * macterm.c (USE_CARBON_EVENTS): New macro.
11462 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
11463 (x_iconify_frame): Call CollapseWindow.
11464 (Vmac_reverse_ctrl_meta): New variable.
11465 (Vmac_wheel_button_is_mouse_2): New variable.
11466 (init_mac_drag_n_drop): New function.
11467 (mac_do_receive_drag): New function.
11468 (mac_handle_service_event): New function.
11469 (init_service_handler): New function.
11470 (mac_to_emacs_modifiers): New function.
11471 (mac_event_to_emacs_modifiers): New function.
11472 (mac_get_mouse_btn): New function.
11473 (mac_convert_event_ref): New function.
11474 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
11475 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
11476 mac_get_mouse_btn.
11477 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
11478
11479 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
11480 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
11481 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
11482 TOOL_BAR_EVENT for MAC_OS as well.
11483 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
11484 as for WINDOWS_NT.
11485 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
11486
11487 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
11488
11489 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
11490
11491 * xdisp.c (forward_to_next_line_start): Fix a condition that
11492 lead to a newline being skipped.
11493
11494 2002-08-02 Andrew Choi <akochoi@shaw.ca>
11495
11496 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
11497
11498 2002-08-01 Richard M. Stallman <rms@gnu.org>
11499
11500 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
11501
11502 2002-07-31 Andrew Choi <akochoi@shaw.ca>
11503
11504 * macfns.c: #undef init_process before #define-ing it.
11505
11506 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
11507 HAVE_CARBON is defined.
11508
11509 2002-07-31 Richard M. Stallman <rms@gnu.org>
11510
11511 * xmenu.c (set_frame_menubar): First parse all submenus,
11512 then make widget_value trees from them.
11513 Don't allocate any widget_value objects
11514 until we are done with the parsing.
11515 (parse_single_submenu): New function.
11516 (digest_single_submenu): New function.
11517 (single_submenu): Function deleted, replaced by those two.
11518
11519 2002-07-30 Juanma Barranquero <lektu@terra.es>
11520
11521 * w32proc.c (syms_of_ntproc): Fix docstring of
11522 `w32-get-true-file-attributes'.
11523
11524 2002-07-28 Richard M. Stallman <rms@gnu.org>
11525
11526 * s/hpux8.h (HPUX8): Define this before including hpux.h.
11527 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
11528
11529 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
11530
11531 * keyboard.c (make_lispy_event):
11532 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
11533 Explicitly clear up_modifier in event->modifiers.
11534
11535 2002-07-27 Richard M. Stallman <rms@gnu.org>
11536
11537 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
11538
11539 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
11540 for bar cursor.
11541
11542 2002-07-26 Kenichi Handa <handa@etl.go.jp>
11543
11544 * coding.c (detect_coding_iso2022): While checking a byte sequence
11545 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
11546 it in the normal loop.
11547
11548 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
11549
11550 * xterm.c (expose_overlaps): New function.
11551 (expose_window): Use it to fix the display of overlapping rows.
11552
11553 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
11554
11555 2002-07-23 Ken Raeburn <raeburn@gnu.org>
11556
11557 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
11558 since it only depends on XUINT.
11559
11560 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
11561 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
11562 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
11563 Macros deleted.
11564
11565 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
11566 its value over other approaches.
11567 * sysdep.c (start_of_data): Don't define the function if a macro
11568 form has been defined.
11569
11570 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
11571
11572 * xdisp.c (redisplay_updating_p): New variable.
11573 (init_iterator): Don't free realized faces when
11574 redisplay_updating_p is set.
11575 (redisplay_internal): Set redisplay_updating_p while updating
11576 the display.
11577
11578 2002-07-23 Richard M. Stallman <rms@gnu.org>
11579
11580 * editfns.c (Fmessage): Treat "" like nil.
11581
11582 2002-07-23 Kenichi Handa <handa@etl.go.jp>
11583
11584 * xdisp.c (face_before_or_after_it_pos):
11585 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
11586
11587 2002-07-22 Juanma Barranquero <lektu@terra.es>
11588
11589 * callproc.c (init_callproc) [DOS_NT]:
11590 Initialize Vshared_game_score_directory to nil.
11591 (syms_of_callproc) [DOS_NT]: Likewise.
11592
11593 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
11594
11595 * xdisp.c (display_line): Replace an abort with xassert.
11596
11597 2002-07-21 Richard M. Stallman <rms@gnu.org>
11598
11599 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
11600 and END_UNCHANGED when setting buffer_unchanged_p.
11601 Use current_matrix_up_to_date_p to decide whether to use
11602 try_cursor_movement.
11603
11604 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
11605
11606 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
11607
11608 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
11609 Set to nil if dir does not exist.
11610 (syms_of_callproc): Init unconditionally and simply.
11611
11612 * buffer.c (Fbuffer_list): Doc fix.
11613
11614 2002-07-21 Ken Raeburn <raeburn@gnu.org>
11615
11616 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
11617
11618 * buffer.c (mmap_realloc): When shrinking, make sure number of
11619 pages to unmap is rounded towards zero.
11620
11621 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
11622 (XSETINT): Deleted.
11623
11624 * m/att3b.h (XINT): Don't define.
11625 (VALBITS, VALMASK, XTYPE): Deleted.
11626 (DATA_SEG_BITS): Define.
11627 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
11628 ARRAY_MARK_FLAG): Deleted.
11629 (DATA_SEG_BITS): Define.
11630 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
11631 (DATA_SEG_BITS): Define.
11632
11633 2002-07-20 Richard M. Stallman <rms@gnu.org>
11634
11635 * print.c (print_error_message): New args CONTEXT and CALLER.
11636 Calls changed.
11637
11638 * lisp.h (print_error_message): Declare new args.
11639
11640 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
11641 and CONTEXT to print_error_message, don't print them here.
11642 For a Quit, don't use Vsignaling_function.
11643 Call message_log_maybe_newline.
11644
11645 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
11646
11647 2002-07-20 Kim F. Storm <storm@cua.dk>
11648
11649 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
11650
11651 2002-07-19 Ken Raeburn <raeburn@gnu.org>
11652
11653 * bytecode.c (struct byte_stack): Pointers into byte string now
11654 point to const.
11655 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
11656 const.
11657 * charset.h (BCOPY_SHORT): Source pointer now points to const.
11658 * coding.c (encode_eol, detect_coding, detect_eol):
11659 (decode_coding, encode_coding, detect_coding_system):
11660 Source strings now treated as const.
11661 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
11662 modify Lisp string contents.
11663 * coding.h (decode_coding, encode_coding, detect_coding,
11664 detect_eol): Declarations updated.
11665 * composite.c (compose_chars_in_text): Treat Lisp string contents
11666 as const.
11667 * dispnew.c (safe_bcopy): Source pointer now points to const.
11668 * lisp.h (STRING_COPYIN): New macro.
11669 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
11670 (internal_with_output_to_temp_buffer): Declarations updated.
11671 * print.c (temp_output_buffer_setup):
11672 (internal_with_output_to_temp_buffer): Buffer name argument is now
11673 pointer to const.
11674 * sound.c (struct sound_device): Function pointer field "write"
11675 buffer argument now points to const.
11676 (vox_write): Buffer argument points to const.
11677 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
11678 contents as const.
11679 * sysdep.c (emacs_write): Buffer pointer now const.
11680 * term.c (encode_terminal_code): Buffer pointer now const.
11681 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
11682 (x_face_list_fonts, x_update_menu_appearance):
11683 (hash_string_case_insensitive): Treat Lisp string contents as const.
11684
11685 2002-07-19 Juanma Barranquero <lektu@terra.es>
11686
11687 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
11688
11689 * fileio.c (syms_of_fileio): Likewise.
11690 (Ffile_name_as_directory): Fix argument name in docstring.
11691 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
11692
11693 2002-07-18 Richard M. Stallman <rms@gnu.org>
11694
11695 * data.c (Fdefalias): Doc fix.
11696
11697 2002-07-17 Dave Love <fx@gnu.org>
11698
11699 * intervals.h (text_property_stickiness): Use P_.
11700
11701 * ccl.c: Remove `emacs' conditionals.
11702 (ccl_backtrace_table): Fix size spec.
11703 (ccl_driver): Fix type errors.
11704
11705 2002-07-16 Ken Raeburn <raeburn@gnu.org>
11706
11707 * alloc.c (xstrdup, make_string, make_unibyte_string)
11708 (make_multibyte_string, build_string): String pointer args now
11709 point to const.
11710 * charset.c (find_charset_in_text, c_string_width):
11711 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
11712 * fileio.c (report_file_error):
11713 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
11714 (count_combining_before, count_combining_after, insert_1_both):
11715 (insert, insert_and_inherit, insert_string):
11716 (insert_before_markers, insert_before_markers_and_inherit):
11717 * lread.c (intern, oblookup, hash_string):
11718 * minibuf.c (temp_echo_area_glyphs):
11719 * search.c (fast_c_string_match_ignore_case):
11720 * sysdep.c (emacs_open, set_file_times):
11721 * xfaces.c (xstricmp):
11722 * xdisp.c (store_frame_title, string_char_and_length):
11723 (message_dolog, message2, message2_nolog, set_message): Likewise.
11724 (set_message_1): Cast message string argument to const pointer.
11725 * editfns.c (general_insert_function): Insertion function now
11726 takes pointer to const for input data.
11727 * charset.h (find_charset_in_text, c_string_width):
11728 (parse_str_as_multibyte): Declarations updated.
11729 * dispextern.h (xstricmp): Declaration updated.
11730 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
11731 (count_size_as_multibyte, count_combining_before):
11732 (count_combining_after, insert_1, insert_1_both, message_dolog):
11733 (insert, insert_and_inherit, insert_before_markers)
11734 (insert_before_markers_and_inherit, set_message, message2):
11735 (message2_dolog, build_string, make_string, make_unibyte_string):
11736 (make_multibyte_string, intern, oblookup, report_file_error):
11737 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
11738 (emacs_open, xstrdup): Declarations updated.
11739 * systime.h (set_file_times): Declaration updated.
11740
11741 * charset.c (find_charset_in_text, lisp_string_width): Use const
11742 for pointer to lisp string data.
11743 * charset.h (FETCH_STRING_CHAR_ADVANCE):
11744 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
11745 * coding.c (Ffind_coding_systems_region_interval):
11746 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
11747 (Fmake_directory_internal, Fdelete_directory):
11748 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
11749 * fontset.c (font_family_registry, fs_query_fontset):
11750 (list_fontsets):
11751 * frame.c (Fframe_parameter):
11752 * keyboard.c (cmd_error_internal):
11753 * keymap.c (Fdescribe_buffer_bindings):
11754 * lread.c (complete_filename_p, openp):
11755 * minibuf.c (Fminibuffer_complete_word):
11756 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
11757 (face_before_or_after_it_pos, next_element_from_string):
11758 (get_overlay_arrow_glyph_row, display_mode_element):
11759 (decode_mode_spec_coding):
11760 * xterm.c (same_x_server): Likewise.
11761
11762 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
11763 settings of non-existent fields.
11764
11765 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
11766 copy a lisp value.
11767
11768 * lread.c (Fintern_soft): Use string macros instead of
11769 Lisp_String fields.
11770 * keyboard.c (echo_char, parse_modifiers_uncached):
11771 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
11772 * textprop.c (validate_interval_range, interval_of): Likewise.
11773
11774 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
11775
11776 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11777 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
11778 XSTRING()->size_byte.
11779
11780 * lisp.h (SDATA, SREF): Produce rvalue.
11781 (SSET): New macro.
11782 * alloc.c (make_event_array): Use SSET for storing into a string.
11783 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
11784 a string.
11785 * casefiddle.c (casify_object): Use SSET.
11786 * charset.h (FETCH_STRING_CHAR_ADVANCE)
11787 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
11788 address of string contents.
11789 * data.c (Faref): Use SDATA.
11790 (Faset): Use SDATA, SSET.
11791 * dired.c (directory_files_internal): Use SSET.
11792 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
11793 (Fread_file_name): Use SREF, SSET.
11794 * fns.c (concat): Use SSET.
11795 (concat, Fdelete): Use SDATA.
11796 * insdel.c (insert_from_string_1): Use SDATA.
11797 * keyboard.c (Fevent_convert_list): Use SREF.
11798 * lread.c (Fload): Use SDATA, SSET.
11799 * macfns.c (validate_x_resource_name): Use SSET.
11800 * process.c (status_message): Use SSET.
11801 * search.c (wordify): Use SDATA.
11802 (Freplace_match): Use SREF.
11803 * w32fns.c (validate_x_resource_name): Use SSET.
11804 * xfns.c (validate_x_resource_name): Use SSET.
11805 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
11806
11807 2002-07-16 Richard M. Stallman <rms@gnu.org>
11808
11809 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
11810
11811 * xdisp.c (reconsider_clip_changes):
11812 Don't test prevent_redisplay_optimizations_p.
11813 (redisplay_internal): Test prevent_redisplay_optimizations_p
11814 along with clip_changed in some cases.
11815 (try_window_id): Likewise.
11816 (redisplay_window): New local var buffer_unchanged_p.
11817
11818 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
11819
11820 * process.c (create_process): Test USG_SUBTTY_WORKS.
11821 (process_send_signal): Clean up handling of GID.
11822 Detect errors in ioctls meant to set GID.
11823
11824 * window.c (temp_output_buffer_show):
11825 Don't set prevent_redisplay_optimizations_p.
11826
11827 2002-07-15 Juanma Barranquero <lektu@terra.es>
11828
11829 * eval.c (Fdefvaralias): Add docstring argument.
11830
11831 2002-07-15 Ken Raeburn <raeburn@gnu.org>
11832
11833 * lisp.h (STRING_INTERVALS): Produce rvalue.
11834 (STRING_SET_INTERVALS): New macro.
11835 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
11836 * fns.c (Fstring_as_multibyte): Likewise.
11837 * intervals.c (balance_possible_root_interval, delete_interval)
11838 (create_root_interval, copy_intervals_to_string): Likewise.
11839 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
11840 instead of 0.
11841
11842 2002-07-14 Ken Raeburn <raeburn@gnu.org>
11843
11844 * lisp.h (STRING_SET_CHARS): New macro.
11845 (SCHARS, SBYTES): Produce rvalues.
11846 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
11847 * fns.c (concat): Likewise.
11848 * lread.c (read_vector): Likewise.
11849
11850 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
11851 (STRING_SET_UNIBYTE): New macro.
11852 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
11853 length of -1) changed to use STRING_SET_UNIBYTE.
11854 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
11855 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
11856 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
11857 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
11858 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
11859 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
11860 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
11861 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
11862 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
11863 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
11864 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
11865 STRING_BYTES or indirection changed to SCHARS, SBYTES,
11866 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
11867 unchanged for now.
11868
11869 2002-07-13 Kim F. Storm <storm@cua.dk>
11870
11871 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
11872
11873 2002-07-12 Richard M. Stallman <rms@gnu.org>
11874
11875 * fileio.c (Fwrite_region): Doc fix.
11876
11877 * print.c (print_error_message): Don't handle Vsignaling_function here.
11878
11879 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
11880 (command_loop_1): Avoid certain actions after memory-full error.
11881
11882 * eval.c (Fsignal): Don't call cancel_hourglass.
11883 For a memory-full error, don't call Vsignal_hook_function
11884 and don't set Vsignaling_function.
11885
11886 * process.c (process_send_signal): Add abort call.
11887
11888 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
11889
11890 * keymap.c (Fkey_binding): Fix typo.
11891
11892 2002-07-11 Richard M. Stallman <rms@gnu.org>
11893
11894 * alloc.c (Vmemory_full): New variable.
11895 (Vmemory_signal_data): Renamed from memory_signal_data.
11896 Uses changed.
11897 (syms_of_alloc): Defvar them.
11898 (memory_full, buffer_memory_full): Set Vmemory_full.
11899
11900 * lisp.h (Vmemory_full): Add declaration.
11901 (current_column, indented_beyond_p): Change declaration.
11902
11903 * indent.c (last_known_column): Declare as double, not float.
11904 (current_column, current_column_1, string_display_width)
11905 (position_indentation): Return `double'.
11906 (indented_beyond_p): Arg `column' is `double'. Callers changed.
11907
11908 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
11909 (back_to_previous_visible_line_start)
11910 (reseat_at_next_visible_line_start, next_element_from_buffer):
11911 Use `double', not `float', when calling indented_beyond_p.
11912
11913 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
11914
11915 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
11916
11917 2002-07-11 Juanma Barranquero <lektu@terra.es>
11918
11919 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
11920 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
11921 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
11922 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
11923 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
11924 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
11925
11926 2002-07-10 Juanma Barranquero <lektu@terra.es>
11927
11928 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
11929 All callers changed.
11930
11931 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
11932
11933 * data.c (Fdefalias): Add an optional `docstring' argument.
11934 (set_internal, Fsetq_default): Use XCAR/XCDR.
11935
11936 * composite.c (HASH_VALUE, HASH_KEY):
11937 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
11938
11939 2002-07-09 Kenichi Handa <handa@etl.go.jp>
11940
11941 * callproc.c (Fcall_process): Fix previous change.
11942
11943 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
11944
11945 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11946 Add support for hash-tables.
11947 (Ftry_completion): Return t even if the string appears multiple times.
11948
11949 * fns.c (Fnconc): Use XCDR.
11950 (Fprovide): Use CONSP and XCDR.
11951 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11952 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
11953 (Fmake_hash_table): Accept `:size nil'.
11954 (Fmakehash): Delete: moved to subr.el.
11955 (syms_of_fns): Don't defsubr makehash.
11956
11957 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
11958 (HASH_TABLE_SIZE): Move from fns.c.
11959
11960 2002-07-07 Richard M. Stallman <rms@gnu.org>
11961
11962 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
11963 Instead just return 0 when there is something to be done.
11964 (try_scrolling): If make_cursor_line_fully_visible returns 0,
11965 retry scrolling as if cursor were off the bottom.
11966 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
11967 return CURSOR_MOVEMENT_MUST_SCROLL.
11968 (redisplay_window): If make_cursor_line_fully_visible returns 0,
11969 go to try_to_scroll.
11970
11971 * buffer.c (Fbuffer_local_value): Store current value into its binding
11972 so we get the up-to-date value for the binding that is loaded.
11973
11974 * eval.c (Fdefmacro): Doc fix.
11975
11976 2002-07-05 Dave Love <fx@gnu.org>
11977
11978 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
11979 correctly.
11980
11981 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
11982 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
11983 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
11984 CCL_LookupCharConstTbl.
11985 (syms_of_ccl): Defvar translation-hash-table-vector.
11986
11987 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11988
11989 * xdisp.c: Remove unused variable `face'.
11990
11991 2002-07-04 Juanma Barranquero <lektu@terra.es>
11992
11993 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
11994 obsolescence information.
11995
11996 2002-07-03 Andrew Choi <akochoi@shaw.ca>
11997
11998 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
11999 pattern. Search cache first.
12000 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
12001 for Japanese font.
12002 (XLoadQueryFont): Use it.
12003
12004 2002-07-02 Richard M. Stallman <rms@gnu.org>
12005
12006 * keymap.c (Fdefine_key): Doc fix.
12007
12008 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
12009
12010 2002-07-02 Juanma Barranquero <lektu@terra.es>
12011
12012 * keymap.c (syms_of_keymap): Fix typo.
12013
12014 2002-07-01 Andrew Choi <akochoi@shaw.ca>
12015
12016 * s/darwin.h: Define POSIX_SIGNALS.
12017
12018 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
12019 and FSRefMakePath to convert FSSpec returned with Apple Event to
12020 Posix pathname.
12021 (mac_initialize) [TARGET_API_MAC_CARBON]:
12022 Call init_required_apple_events and disable the `Quit' menu item
12023 provided automatically by the Carbon Toolbox.
12024
12025 2002-07-01 Dave Love <fx@gnu.org>
12026
12027 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12028 for K&R.
12029
12030 * xterm.c: Fix prototype for K&R.
12031
12032 * term.c (costs_set): Declare static, non-initialized for pcc.
12033
12034 2002-07-01 Richard M. Stallman <rms@gnu.org>
12035
12036 * keyboard.c (timer_last_idleness_start_time): New variable.
12037 (timer_start_idle): Set that.
12038 (read_key_sequence): Use that to reset timer_idleness_start_time
12039 to previous value.
12040
12041 * window.c (Frecenter): With arg, set optional_new_start.
12042
12043 * xdisp.c (redisplay_internal): Make optional_new_start really work.
12044
12045 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
12046 buffer for completion.
12047
12048 2002-06-29 Ken Raeburn <raeburn@gnu.org>
12049
12050 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
12051
12052 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12053
12054 * keyboard.c (readable_filtered_events): New function that filters
12055 FOCUS_IN_EVENT depending on parameter.
12056 (readable_events): Calls readable_filtered_events, not filtering
12057 FOCUS_IN_EVENT.
12058 (get_filtered_input_pending): New function, filtering parameter passed
12059 to readable_filtered_events.
12060 (get_input_pending): Calls get_filtered_input_pending, not filtering
12061 FOCUS_IN_EVENT.
12062 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
12063 FOCUS_IN_EVENT.
12064
12065 * xterm.h (struct x_output): Add focus_state.
12066
12067 * xterm.c (x_focus_changed): New function.
12068 (x_detect_focus_change): New function.
12069 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
12070 EnterNotify and LeaveNotify to track X focus changes.
12071
12072 2002-06-28 Andreas Schwab <schwab@suse.de>
12073
12074 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
12075
12076 2002-06-27 Kim F. Storm <storm@cua.dk>
12077
12078 * xdisp.c: (mode_line_string_list, mode_line_string_face)
12079 (mode_line_string_face_prop): New variables.
12080 (store_mode_line_string): New function.
12081 (display_mode_element): Use store_mode_line_string to
12082 add mode-line string elements to mode_line_string_list
12083 when mode_line_string_list is non-nil.
12084 (Fformat_mode_line): Now returns propertized string by
12085 default. New arg NO-PROPS to ignore properties.
12086 (decode_mode_spec): Only add two dashes for %- in propertized
12087 mode-line string.
12088 (syms_of_xdisp): Init and staticpro mode_line_string_list.
12089
12090 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
12091
12092 * minibuf.c (minibuffer_completion_contents): Add return type.
12093
12094 2002-06-27 Juanma Barranquero <lektu@terra.es>
12095
12096 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
12097
12098 2002-06-26 Juanma Barranquero <lektu@terra.es>
12099
12100 * fileio.c (read_file_name_cleanup): Add missing return.
12101
12102 2002-06-26 Richard M. Stallman <rms@gnu.org>
12103
12104 * window.c (Frecenter): Don't set force_start flag.
12105
12106 * minibuf.c (do_completion, Fminibuffer_complete_word)
12107 (Fminibuffer_completion_help): Complete just the text before point.
12108 (minibuffer_completion_contents): New function.
12109
12110 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
12111
12112 * frame.c (frames_bury_buffer): Function deleted.
12113
12114 2002-06-25 Miles Bader <miles@gnu.org>
12115
12116 * callint.c (Fcall_interactively): When checking to see if doprnt hit
12117 the end of callint_message, allow for a terminating '\0'.
12118
12119 2002-06-24 Juanma Barranquero <lektu@terra.es>
12120
12121 * w32select.c: Include composite.h
12122
12123 * w16select.c: Likewise.
12124
12125 2002-06-24 Kenichi Handa <handa@etl.go.jp>
12126
12127 * callproc.c (Fcall_process): If code detection is necessary,
12128 call detect_coding directly here.
12129
12130 * coding.c (detect_eol): Preserve coding->cmp_data.
12131
12132 * w16select.c (Fw16_get_clipboard_data):
12133 * w32fns.c (w32_to_x_font):
12134 * w32select.c (Fw32_get_clipboard_data):
12135 * xselect.c (selection_data_to_lisp_data):
12136 * xterm.c (XTread_socket): Disable composition handling.
12137
12138 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
12139
12140 * print.c (temp_output_buffer_setup): Kill all local variables.
12141
12142 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
12143
12144 * lread.c (Fread): Remove redundant and imprecise declaration.
12145
12146 * xfns.c (check_x_display_info): Use check_x_frame.
12147
12148 * .gdbinit (xprintsym): Use the new `xname' field.
12149 (xsymbol): Use it.
12150
12151 2002-06-22 Jason Rumney <jasonr@gnu.org>
12152
12153 * w32fns.c (file_dialog_callback): New function.
12154 (Fx_file_dialog): Allow selecting directories as well as files.
12155
12156 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12157
12158 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
12159 OpenBSD. Add support for mipseb-*-netbsd* machines.
12160
12161 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12162
12163 * macterm.c (mac_scroll_area): Set foreground and backcolor to
12164 black and white before scrolling. Restore frame background and
12165 foreground color after scrolling.
12166 (do_window_update): Call XClearWindow before calling expose_frame.
12167 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
12168 FRAME_FOREGROUND_PIXEL of frame.
12169
12170 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12171 test Mac command key as <ALT> key.
12172
12173 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
12174
12175 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
12176
12177 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
12178 Lookup keys in function-key-map immediately so that key-translation-map
12179 can be applied earlier.
12180 Remove function_key_possible and key_translation_possible, replaced
12181 by checking `keytran_start < t'.
12182
12183 * .gdbinit (xsymbol): Use the new `xname' field.
12184
12185 2002-06-17 Andrew Choi <akochoi@shaw.ca>
12186
12187 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
12188 test Mac command key as <ALT> key.
12189
12190 * mac.c (do_applescript): Call initialize_applescript if necessary
12191 when first called. Dispose of result_desc only when there is no error.
12192 (Fdo_applescript): Use %d format specifier instead of %ld.
12193
12194 2002-06-16 Andrew Choi <akochoi@shaw.ca>
12195
12196 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
12197 of FrontWindow for cases keyDown and autoKey.
12198
12199 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
12200 Vdefault_fontset to Monaco with mac-roman coding.
12201
12202 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
12203 init_process before and after inclusion of Carbon/Carbon.h, resp.
12204
12205 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
12206 cursor_gc.
12207 (add_font_name_table_entry): New function.
12208 (init_font_name_table): Use add_font_name_table_entry; add italic,
12209 bold, and bold-italic entries for truetype fonts.
12210
12211 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
12212 for Mac too.
12213 (try_font_list) [MAC_OS]: If no font matches given registry, try
12214 fonts with any registry matching face_family.
12215 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
12216
12217 * s/darwin.h: If autoconf detects the Ncurses library, define
12218 LIBS_TERMCAP to -lncurses to use it.
12219
12220 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
12221
12222 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
12223
12224 2002-06-15 Richard M. Stallman <rms@gnu.org>
12225
12226 * window.c (Fset_window_configuration): Explicitly preserve
12227 the point value that new_current_buffer had at the start.
12228
12229 2002-06-14 Juanma Barranquero <lektu@terra.es>
12230
12231 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
12232 Fix typos.
12233
12234 2002-06-14 Kim F. Storm <storm@cua.dk>
12235
12236 * insdel.c (insert_1_both, insert_from_string_1)
12237 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
12238 insert happened in the end_unchanged region. Otherwise, the
12239 redisplay may be confused and duplicate the last line in the
12240 buffer [seen after save-buffer when require-final-newline==t].
12241
12242 2002-06-13 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32.c (init_environment): Remove EMACSLOCKDIR.
12245 (stat): Swap _S_IFDIR and _S_IFREG.
12246
12247 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12248
12249 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
12250 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
12251 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
12252 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
12253 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
12254 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
12255 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
12256 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
12257 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
12258 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
12259 SELECTION_REQUEST_EVENT, selection_clear_event to
12260 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
12261 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
12262 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
12263 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
12264 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
12265 no_event to NO_EVENT.
12266
12267 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12268
12269 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
12270
12271 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
12272
12273 * intervals.c (textget): Don't forget to `return'.
12274 (lookup_char_property): Use XCAR/XCDR.
12275
12276 2002-06-12 Juanma Barranquero <lektu@terra.es>
12277
12278 * xdisp.c (Fformat_mode_line): Fix typo.
12279
12280 2002-06-12 Kim F. Storm <storm@cua.dk>
12281
12282 * xdisp.c (Fformat_mode_line): New function.
12283 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
12284 (store_frame_title_char, store_frame_title): Use unconditionally.
12285 (init_xdisp): Defsubr Fformat_mode_line.
12286 Initialize frame_title_buf etc. unconditionally.
12287
12288 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
12289
12290 * keyboard.c (read_key_sequence):
12291 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
12292 things through those maps after downcasing events.
12293 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
12294 applies after function-key-map.
12295 Make sure that keytran can be done in the middle in the sequence.
12296 Be careful not to throw away events past the one we downcase.
12297
12298 * lread.c (read_integer): Remove unused var `tem'.
12299 (read1): Fix int/Lisp_Object mixup.
12300
12301 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
12302
12303 2002-06-11 Richard M. Stallman <rms@gnu.org>
12304
12305 * keyboard.c (readable_events): Ignore any number of
12306 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
12307
12308 2002-06-09 Miles Bader <miles@gnu.org>
12309
12310 * xfaces.c (Ftty_supports_face_attributes_p): New function.
12311 (parse_rgb_list, tty_lookup_color): New functions.
12312 (tty_defined_color): Use `tty_lookup_color' to do all the work.
12313 (color_distance, Fcolor_distance): New functions.
12314 (TTY_SAME_COLOR_THRESHOLD): New macro.
12315 (Qtty_color_standard_values): New variable.
12316 (syms_of_xfaces): Initialize new vars & functions.
12317
12318 2002-06-08 Colin Walters <walters@verbum.org>
12319
12320 * textprop.c (Vchar_property_alias_alist): New variable.
12321 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
12322
12323 * intervals.c (lookup_char_property): New function for looking up
12324 overlay and text properties, created from textget.
12325 (textget): Use it.
12326
12327 * intervals.h (lookup_char_property): Declare.
12328 (Vchar_property_alias_alist): Declare.
12329
12330 * buffer.c (Foverlay_get): Use lookup_char_property.
12331
12332 2002-06-07 Sam Steingold <sds@gnu.org>
12333
12334 * xselect.c (lisp_data_to_selection_data): Fix last change:
12335 *data_ret is not a Lisp string, while unibyte_string is.
12336
12337 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
12338
12339 * xselect.c (lisp_data_to_selection_data): Fix last change:
12340 set size_ret.
12341
12342 2002-06-07 Andreas Schwab <schwab@suse.de>
12343
12344 * m/amdx86-64.h: New file.
12345
12346 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
12347
12348 * fns.c (Fstring_make_unibyte): Doc fix.
12349
12350 * xselect.c (lisp_data_to_selection_data): If the requested type
12351 is STRING, call string_make_unibyte to encode the selected text
12352 as a string.
12353
12354 * window.c (Fset_window_hscroll): Doc fix.
12355
12356 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12357
12358 * fileio.c (choose_write_coding_system):
12359 Call select-safe-coding-system properly.
12360
12361 2002-06-03 Richard M. Stallman <rms@gnu.org>
12362
12363 * xdisp.c (message_with_string): Error if STRING is not a string.
12364
12365 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
12366
12367 * fileio.c (choose_write_coding_system): Pass FILE arg to
12368 Vselect_safe_coding_system_function.
12369
12370 2002-06-03 Ken Raeburn <raeburn@gnu.org>
12371
12372 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
12373
12374 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
12375
12376 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
12377 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
12378 * keymap.c (describe_command): Likewise.
12379 * minibuf.c (read_minibuf): Likewise.
12380
12381 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
12382 Cast `current_column' return value to int.
12383 (back_to_previous_visible_line_start)
12384 (reseat_at_next_visible_line_start, next_element_from_buffer):
12385 Cast `indented_beyond_p' 3rd arg to float.
12386
12387 * indent.c (last_known_column): Now a float.
12388 (current_column_1, position_indentation, current_column)
12389 (string_display_width): Return float.
12390 (Fcurrent_column): Cast `current_column' return value to int.
12391 (Fcurrent_indentation): Cast `position_indentation' retval to int.
12392 (indented_beyond_p): Third arg now a float.
12393 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
12394
12395 * lisp.h (current_column): Now returns float.
12396 (indented_beyond_p): 3rd arg now a float.
12397
12398 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
12399
12400 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
12401 is Qcompound_text_with_extensions.
12402
12403 * xselect.c (lisp_data_to_selection_data): Always set selection
12404 type as string if x_encode_text returns streingp non-NULL.
12405
12406 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
12407
12408 2002-05-30 Richard M. Stallman <rms@gnu.org>
12409
12410 * window.c (Fset_window_configuration): Correct the handling
12411 of point in current buffer, to work with multiple windows.
12412
12413 2002-05-29 Colin Walters <walters@verbum.org>
12414
12415 * lread.c (Fread_from_string): Don't depend on order of evaluation
12416 for C function parameters.
12417
12418 2002-05-28 Richard M. Stallman <rms@gnu.org>
12419
12420 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
12421 way for blinked-off state and for a nonselected window.
12422
12423 * window.c (window_scroll_pixel_based): Don't call Fbolp;
12424 instead, see if the new start pos is at beginning of line.
12425
12426 * fileio.c (Fwrite_region): If START is a string, don't
12427 make any annotations.
12428
12429 * eval.c (syms_of_eval): Doc fix.
12430
12431 2002-05-28 Colin Walters <walters@debian.org>
12432
12433 * emacs.c (USAGE1): Add --no-splash.
12434 (standard_args): Ditto.
12435
12436 2002-05-28 Colin Walters <walters@gnu.org>
12437
12438 * lread.c (readchar_count): New variable.
12439 (readchar): Increment it.
12440 (unreadchar): Decrement it.
12441 (read_multibyte): Decrement it.
12442 (Vread_with_symbol_positions): New variable.
12443 (Vread_symbol_positions_list): New variable.
12444 (read_internal_start): New function, created from Fread and
12445 Fread_from_string. Handle Vread_symbol_positions_list and
12446 Vread_with_symbol_positions.
12447 (readevalloop, Fread, Fread_from_string): Use it.
12448 (read1): Use readchar_count to add symbol positions to
12449 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
12450 (syms_of_lread): DEFVAR_LISP and initialize them.
12451
12452 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
12453 (substitute_object_recurse, substitute_object_in_subtree)
12454 (substitute_in_interval): Prototype.
12455 (read_multibyte): Return c if it's less than zero.
12456
12457 2002-05-28 Kim F. Storm <storm@cua.dk>
12458
12459 * fileio.c (Fread_file_name_internal): Added brute-force
12460 speed up for using predicate file-directory-p.
12461
12462 2002-05-28 Kim F. Storm <storm@cua.dk>
12463
12464 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
12465 New variables.
12466 (syms_of_fileio): DEFVAR_LISP them.
12467 (read_file_name_cleanup): New unwind function.
12468 (Fread_file_name_internal): Only return completions satifying
12469 Vread_file_name_predicate. Temporarily unwind protect and rebind
12470 default-directory while checking completions against the predicate.
12471 (Fread_file_name): Added PREDICATE argument. Specbind it to
12472 Vread_file_name_predicate during completion.
12473 Call Vread_file_name_function to read the file name if non-nil.
12474
12475 * lisp.h (Fread_file_name): Now has 6 args.
12476
12477 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
12478 predicate for Fread_file_name when reading directory name.
12479 Supply Qnil for predicate in other calls to Fread_file_name.
12480
12481 2002-05-26 Miles Bader <miles@gnu.org>
12482
12483 * term.c (tty_capable_p): New function.
12484 * dispextern.h (tty_capable_p): New function declaration.
12485 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
12486 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
12487
12488 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
12489
12490 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
12491 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
12492 (Vwrite_region_annotate_functions): Docstring fix.
12493
12494 2002-05-23 Kim F. Storm <storm@cua.dk>
12495
12496 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
12497 phys_cursor's hpos is overwritten. This is still not completely
12498 correct, as it doesn't really make sense to use hpos at all to
12499 get the cursor glyph (as that is relative to the width of the
12500 characters on the line, which may have changed during the update).
12501
12502 2002-05-22 Jason Rumney <jasonr@gnu.org>
12503
12504 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
12505 Lisp_Object.
12506 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
12507 Use modified enumfont_t struct.
12508
12509 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12510
12511 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
12512 Handle the `hbar' cursor type.
12513 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12514
12515 * w32fns.c (Qhbar): New variable.
12516 (x_specified_cursor_type): Use it.
12517
12518 2002-05-21 Ken Raeburn <raeburn@gnu.org>
12519
12520 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
12521 now, when the address is needed.
12522
12523 2002-05-21 Colin Walters <walters@gnu.org>
12524
12525 * Makefile.in (shortlisp): Add font-core.el.
12526
12527 2002-05-20 Richard M. Stallman <rms@gnu.org>
12528
12529 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
12530
12531 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
12532 equivalent key bindings here.
12533
12534 2002-05-20 Ken Raeburn <raeburn@gnu.org>
12535
12536 Change symbol structure to contain a lisp object for the symbol
12537 name:
12538 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
12539 object field named "xname".
12540 (SYMBOL_NAME): New macro.
12541 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
12542 name field.
12543 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
12544 (mark_object, gc_sweep): Use symbol xname field and XSTRING
12545 instead of name field.
12546 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
12547 SYMBOL_NAME instead of XSYMBOL and name field.
12548 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
12549 instead of XSYMBOL and name field.
12550 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
12551 and SYMBOL_NAME instead of XSYMBOL and name field.
12552 * coding.c (Fread_coding_system, code_convert_region1)
12553 (code_convert_string1, code_convert_string_norecord)
12554 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
12555 XSYMBOL and name field.
12556 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
12557 (Fmake_variable_buffer_local, Fmake_local_variable)
12558 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
12559 of XSYMBOL and name field.
12560 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
12561 XSYMBOL and name field.
12562 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
12563 instead of XSYMBOL and name field.
12564 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
12565 XSYMBOL and name field.
12566 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
12567 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12568 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
12569 instead of XSYMBOL and name field.
12570 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
12571 (parse_modifiers, apply_modifiers, Fevent_convert_list)
12572 (parse_solitary_modifier, Fexecute_extended_command):
12573 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12574 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
12575 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
12576 of XSYMBOL and name field.
12577 (describe_command, describe_translation): Use SYMBOL_NAME and
12578 assignment instead of XSYMBOL and name field and XSETSTRING.
12579 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
12580 instead of XSYMBOL and name field.
12581 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
12582 name field and XSETSTRING.
12583 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12584 of XSYMBOL and name field.
12585 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
12586 assignment instead of XSYMBOL and name field and XSETSTRING.
12587 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
12588 XSTRING instead of XSYMBOL and name field.
12589 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
12590 and XSTRING instead of XSYMBOL and name field.
12591 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
12592 and XSTRING instead of XSYMBOL and name field.
12593 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
12594 XSTRING instead of XSYMBOL and name field.
12595 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
12596 of XSYMBOL and name field.
12597 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
12598 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
12599
12600 2002-05-19 Ken Raeburn <raeburn@gnu.org>
12601
12602 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
12603 and XCDR real rvalues in most configurations.
12604
12605 * buffer.c (fix_overlays_in_range, fix_overlays_before):
12606 Don't take the address of the cdr part of a cons cell; instead, track
12607 the parent cell and call XSETCDR, or set the variable for the head
12608 of the list if we haven't started down the list yet.
12609
12610 2002-05-19 Richard M. Stallman <rms@gnu.org>
12611
12612 * doc.c (reread_doc_file): Don't ask for confirmation.
12613
12614 2002-05-18 Jason Rumney <jasonr@gnu.org>
12615
12616 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
12617 (xbm_load_image): Use it.
12618 (xbm_load): Ditto.
12619 (xbm_read_bitmap_data): Reverted to xfns.c version.
12620 From David Ponce <david@dponce.com>.
12621
12622 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
12623
12624 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
12625 2.02 and later.
12626
12627 2002-05-16 Juanma Barranquero <lektu@terra.es>
12628
12629 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
12630
12631 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
12632
12633 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
12634 meaningful test.
12635 (read_char_minibuf_menu_prompt): Fix typo.
12636
12637 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12638
12639 * eval.c (Fcommandp): Doc fix.
12640
12641 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
12642
12643 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
12644 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
12645 (Fset_keymap_parent): Gcpro a bit more.
12646 (access_keymap): Gcpro around meta_map call and around the main loop.
12647 (get_keyelt): Gcpro when following indirect references.
12648 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
12649 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
12650 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
12651 Remove useless ad-hoc remap code.
12652
12653 2002-05-13 Richard M. Stallman <rms@gnu.org>
12654
12655 * search.c (search_buffer): Give up boyer moore search if inverse
12656 translation change charset_base.
12657
12658 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
12659
12660 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
12661 characters is carried over from the previous block of text, adjust
12662 coding->produced to account for the extra character.
12663
12664 2002-05-11 Andreas Schwab <schwab@suse.de>
12665
12666 * coding.c (intersection): Keep the elements of the returned list
12667 in the same order as in the first list.
12668
12669 2002-05-11 Kim F. Storm <storm@cua.dk>
12670
12671 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
12672 only update cmm_size if realloc actually succeeds.
12673 Testing with initial size of 2 elements revealed that using
12674 realloc on GNU/Linux would cause a random trap in xmalloc
12675 later on, so I rewrote the code to use malloc/bcopy/free instead
12676 of realloc.
12677
12678 2002-05-10 Jason Rumney <jasonr@gnu.org>
12679
12680 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
12681
12682 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
12683
12684 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
12685 parens, to ensure correct evaluation order.
12686
12687 2002-05-10 Kim F. Storm <storm@cua.dk>
12688
12689 * keymap.c (Vemulation_mode_map_alists): New variable.
12690 (syms_of_keymap): DEFVAR_LISP it.
12691 (current_minor_maps): Process keymap alists in that list before
12692 minor-mode-overriding-map-alist and minor-mode-map-alist.
12693
12694 2002-05-09 Richard M. Stallman <rms@gnu.org>
12695
12696 * search.c (Freplace_match): Doc fix.
12697
12698 2002-05-09 Kim F. Storm <storm@cua.dk>
12699
12700 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12701 Enlarge cursor rectangle drawn around image with non-zero relief.
12702
12703 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
12704 Enlarge cursor rectangle drawn around image with non-zero relief.
12705
12706 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
12707 Enlarge cursor rectangle drawn around image with non-zero relief.
12708
12709 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
12710
12711 * xselect.c (lisp_data_to_selection_data): Don't set selection
12712 type if comes from the Lisp object's car. If the selection
12713 contains a pure ASCII text, always return QSTRING as its type.
12714
12715 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12716
12717 * mac.c (mac-cut-function): Doc fix.
12718
12719 2002-05-05 Richard M. Stallman <rms@gnu.org>
12720
12721 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
12722
12723 2002-05-04 Jason Rumney <jasonr@gnu.org>
12724
12725 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
12726 for event-click-count.
12727
12728 * process.c (init_process): Only add server subfeature if we can
12729 use non-blocking I/O.
12730
12731 2002-05-04 Andrew Choi <akochoi@shaw.ca>
12732
12733 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
12734 repeatedly.
12735
12736 2002-05-03 Jason Rumney <jasonr@gnu.org>
12737
12738 * process.c (Fmake_network_process): Only support server sockets
12739 when we can make them non-blocking.
12740
12741 * s/ms-w32.h (HAVE_SELECT): Define.
12742
12743 * w32.h (FILE_NDELAY): New flag.
12744
12745 * w32.c (sys_getpeername, fcntl): New functions.
12746 (_sys_read_ahead): Temporarily block on non-blocking sockets.
12747
12748 * w32proc.c: include sys/file.h.
12749
12750 2002-05-03 Colin Walters <walters@verbum.org>
12751
12752 * callproc.c (Vgame_score_directory): Renamed to
12753 Vshared_game_score_directory.
12754
12755 2002-04-30 Richard M. Stallman <rms@gnu.org>
12756
12757 * s/gnu.h [emacs]: Include stdio.h.
12758 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
12759
12760 * eval.c (do_autoload): Error if called while preparing to dump.
12761
12762 * fns.c (Frequire): Error if need to load while preparing to dump.
12763
12764 2002-04-28 Colin Walters <walters@verbum.org>
12765
12766 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
12767 Default to "~/.emacs.d/games".
12768
12769 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
12770
12771 * lread.c (openp): Change arg exec_only to predicate.
12772 (build_load_history): Use XCAR/XCDR.
12773 (Flocate_file_internal): New fun.
12774 (syms_of_lread): Defsubr it.
12775 (Fload): Update call to openp.
12776
12777 * lisp.h (openp): Update prototype.
12778
12779 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
12780 * w32proc.c (sys_spawnve):
12781 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
12782 * w32.c (check_windows_init_file):
12783 * sound.c (Fplay_sound_internal):
12784 * process.c (Fstart_process):
12785 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
12786 * mac.c (run_mac_command):
12787 * emacs.c (init_cmdargs):
12788 * callproc.c (Fcall_process): Update call to openp.
12789
12790 * textprop.c (remove_properties): Don't use XCAR without CONSP.
12791
12792 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
12793
12794 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12795
12796 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
12797 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
12798
12799 2002-04-28 Richard M. Stallman <rms@gnu.org>
12800
12801 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
12802
12803 * eval.c (Fcommandp): New arg for_call_interactively.
12804 * lisp.h (Fcommandp): Declare new arg.
12805
12806 2002-04-28 Jason Rumney <jasonr@gnu.org>
12807
12808 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
12809
12810 * w32.c (stat, fstat): Use file index information to generate
12811 inodes for directories where available.
12812
12813 2002-04-26 Andrew Choi <akochoi@shaw.ca>
12814
12815 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
12816 [HAVE_CARBON]: Include Mac object files.
12817
12818 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
12819 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
12820 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
12821 MAC_OSX, and MAC_OS instead of macintosh.
12822
12823 * editfns.c [MAC_OS8]: Include stdio.h.
12824
12825 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
12826
12827 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
12828 Apple Monaco.
12829
12830 * process.c (QCfamily, QCfilte): Declare extern.
12831 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
12832 calling select.
12833
12834 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
12835
12836 * tparam.c [MAC_OSX]: Don't define BC and UP.
12837
12838 * config.in [HAVE_CARBON]: Add.
12839
12840 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
12841 Move here from mac/src and mac/inc.
12842
12843 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
12844
12845 2002-04-26 Gerd Moellmann <gerd@gnu.org>
12846
12847 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
12848 Compute phys_cursor_width from the x position returned
12849 by x_draw_glyhs, which is cheaper.
12850 (x_display_and_set_cursor): Compute the buffer-local value
12851 of `cursor-in-non-selected-windows' only when needed.
12852
12853 2002-04-25 Gerd Moellmann <gerd@gnu.org>
12854
12855 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
12856 cursor on a stretch glyph has a width that depends on
12857 x_stretch_cursor_p.
12858
12859 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12860
12861 * abbrev.c (abbrev-start-location): Doc fix.
12862
12863 * indent.c (Fvertical_motion): Fix last change.
12864
12865 2002-04-25 Gerd Moellmann <gerd@gnu.org>
12866
12867 * indent.c (Fvertical_motion): Move to the start of the line
12868 containing PT before moving up or down.
12869
12870 2002-04-24 Gerd Moellmann <gerd@gnu.org>
12871
12872 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
12873 case of writing a whole row, more or less analogous to the case of
12874 writing only parts of a row.
12875
12876 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
12877 0 for NO_CURSOR.
12878
12879 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
12880
12881 2002-04-23 Colin Walters <walters@verbum.org>
12882
12883 * buffer.c (syms_of_buffer): Doc fix.
12884
12885 2002-04-23 Gerd Moellmann <gerd@gnu.org>
12886
12887 * xterm.c (notice_overwritten_cursor): Handle the special case
12888 of the cursor being in the first blank non-text line at the
12889 end of a window.
12890
12891 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12892 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12893 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
12894 bar cursors only, to make phys_cursor_width contain what its name
12895 suggests.
12896 (notice_overwritten_cursor): Consider the cursor image erased if
12897 the output area intersects the cursor image in y-direction.
12898
12899 2002-04-23 Simon Marshall <simon@gnu.org>
12900
12901 * xfns.c (x_set_mouse_color): Change default for cross_cursor
12902 to XC_hand2.
12903
12904 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12905
12906 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
12907
12908 2002-04-22 Kim F. Storm <storm@cua.dk>
12909
12910 * textprop.c (remove_properties): Fixed trap for malformed plist.
12911
12912 2002-04-22 Richard M. Stallman <rms@gnu.org>
12913
12914 * cmds.c (Fend_of_line): Handle intangible text in mid line.
12915
12916 * window.c (make_window): Initialize height_fixed_p,
12917 last_cursor_off_p, and p->cursor_off_p slots.
12918
12919 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12920
12921 * fns.c (use-dialog-box): Doc fix.
12922
12923 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12924
12925 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
12926 variables `row', `i' and `area'.
12927 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
12928 toolkit library.
12929
12930 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
12931
12932 * xfaces.c (clear_font_table): Don't free the default font of
12933 a frame even if it's on another display.
12934 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
12935 that could be Qt.
12936
12937 2002-04-19 Juanma Barranquero <lektu@terra.es>
12938
12939 * indent.c (Fmove_to_column): Remove unused local variable
12940 `next_boundary_byte'.
12941 (current_column_1): Likewise.
12942
12943 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
12944
12945 * msdos.c (Qhbar): New variable.
12946 (syms_of_msdos): Intern and staticpro it.
12947 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
12948 cursor type.
12949
12950 2002-04-19 Dave Lambert <dlambert@acm.org>
12951
12952 Theses change implement an underscore-like (`hbar') cursor.
12953
12954 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
12955
12956 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
12957 Handle the `hbar' cursor type.
12958 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
12959
12960 * xfns.c (Qhbar): New variable.
12961 (syms_of_xfns): Intern and staticpro it.
12962 (x_specified_cursor_type): Handle `hbar' cursor.
12963
12964 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
12965 not defined.
12966
12967 2002-04-18 Richard M. Stallman <rms@gnu.org>
12968
12969 * textprop.c (remove_properties): New arg LIST allows scanning
12970 either a list or a plist.
12971 (interval_has_some_properties_list): New function, like
12972 interval_has_some_properties using list instead of plist.
12973 All callers changed.
12974 (Fremove_list_of_text_properties): New function.
12975 (syms_of_textprop): Defsubr it.
12976
12977 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12978
12979 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
12980
12981 2002-04-17 Juanma Barranquero <lektu@terra.es>
12982
12983 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
12984
12985 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
12986
12987 * window.c (coordinates_in_window): Don't report on margin area
12988 if its width is zero.
12989
12990 2002-04-16 Jason Rumney <jasonr@gnu.org>
12991
12992 * w32fns.c (Fx_file_dialog): Decode file name before using.
12993
12994 * w32term.c (construct_drag_n_drop): Likewise.
12995
12996 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
12997
12998 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
12999 store load-history in pure space.
13000
13001 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
13002
13003 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
13004
13005 * xterm.c (Qlatin_1, Qutf_8): New vars.
13006 (syms_of_xterm): Initialize them.
13007 (XTread_socket): Eliminate incorrect optimization that tried to avoid
13008 decoding the output of X*LookupString.
13009 Always use latin-1 to decode the output of XLookupString.
13010 Try Xutf8LookupString if XmbLookupString failed.
13011
13012 * region-cache.c (new_region_cache): Use BEG.
13013
13014 2002-04-16 Gerd Moellmann <gerd@gnu.org>
13015
13016 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
13017 configuration files.
13018 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
13019 returns 0.
13020
13021 2002-04-15 Andreas Schwab <schwab@suse.de>
13022
13023 * config.in: Regenerated using autoheader.
13024
13025 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
13026 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
13027 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
13028 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
13029 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
13030 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
13031 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
13032 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
13033 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
13034 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
13035 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
13036 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
13037 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
13038 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
13039 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
13040 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
13041 STACK_DIRECTION, now set by autoconf.
13042
13043 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13044
13045 * dispnew.c (marginal_area_string): Sort arguments.
13046
13047 * dispextern.h (marginal_area_string): Add prototype.
13048
13049 2002-04-13 Richard M. Stallman <rms@gnu.org>
13050
13051 * fileio.c (Finsert_file_contents):
13052 Don't call temp_output_buffer_setup--do just part, by hand.
13053
13054 * coding.c (run_pre_post_conversion_on_str):
13055 Don't call temp_output_buffer_setup--do just part, by hand.
13056
13057 * keyboard.c (command_loop_1): Don't call start_hourglass
13058 or cancel_hourglass when executing a macro.
13059
13060 * marker.c (count_markers): New function.
13061
13062 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
13063 grow without limit. Move recently used elements to the front.
13064
13065 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13066
13067 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
13068
13069 2002-04-12 Gerd Moellmann <gerd@gnu.org>
13070
13071 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
13072 rows marginal areas.
13073 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
13074 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
13075
13076 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
13077
13078 2002-04-12 Dave Love <fx@gnu.org>
13079
13080 * dispnew.c (marginal_area_string): New.
13081
13082 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
13083 (Qleft_margin, Qright_margin): Declare.
13084 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
13085
13086 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
13087 note_mode_line_highlight and extended.
13088
13089 * keyboard.c (Qleft_margin, Qright_margin): Declare.
13090 (make_lispy_event): Deal with mouse events in margins.
13091
13092 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
13093
13094 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
13095
13096 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
13097 than deactivating the mark if tmm is set to `lambda'.
13098 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
13099 Use a single event for HELP_EVENT.
13100 (Fexecute_extended_command): Save last_point_position.
13101
13102 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13103
13104 * lisp.h (Fpropertize): Add prototype.
13105
13106 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
13107
13108 2002-04-10 Colin Walters <walters@verbum.org>
13109
13110 * config.in: Add HAVE_SHARED_GAME_DIR.
13111
13112 * callproc.c: (Vgame_score_directory): New variable.
13113 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
13114
13115 2002-04-10 Richard M. Stallman <rms@gnu.org>
13116
13117 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
13118
13119 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
13120
13121 * minibuf.c (read_minibuf): Use empty_string.
13122 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
13123 Short-circuit the search as soon as it "failed".
13124 (Fall_completions): Allow lambda forms and lists of strings for alist.
13125 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
13126 when require_match is nil.
13127 (Ftest_completion): Rename from `test_completion' and export to elisp.
13128 Call the predicate also when alist is a list.
13129 Obey Vcompletion_regexp_list.
13130 (do_completion, Fminibuffer_complete_and_exit): Use it.
13131 (Fassoc_string): Rename from `assoc_for_completion'.
13132 Allow list of strings as well and export to elisp.
13133
13134 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
13135
13136 * puresize.h (BASE_PURESIZE): Increase to 900KB.
13137
13138 2002-04-08 Juanma Barranquero <lektu@terra.es>
13139
13140 * w32.c (sys_accept): Don't hide variable `s'.
13141
13142 2002-04-05 Gerd Moellmann <gerd@gnu.org>
13143
13144 * callint.c (Fcall_interactively): Use INTEGERP instead of
13145 NUMBERP for checking Vhistory_length.
13146
13147 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13148
13149 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
13150 Doc fix to reflect it.
13151
13152 2002-04-04 Richard M. Stallman <rms@gnu.org>
13153
13154 * xdisp.c (display_mode_element): New arg RISKY.
13155 Disregard text props found or specified within a variable
13156 that isn't marked risky-local-variable.
13157 (Qrisky_local_variable): New variable.
13158 (syms_of_xdisp): Init and staticpro it.
13159
13160 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
13161
13162 * undo.c (record_point): New fun.
13163 (record_delete, record_insert): Use it.
13164
13165 2002-04-03 Juanma Barranquero <lektu@terra.es>
13166
13167 * doc.c (Fdocumentation): Add missing parentheses.
13168 (Fdocumentation_property): Likewise.
13169
13170 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
13171
13172 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
13173 data is 0, just return nil.
13174
13175 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
13176
13177 * msdos.c (syms_of_msdos): Fix last change with
13178 mouse_autoselect_window.
13179
13180 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13181
13182 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
13183 mouse_autoselect_window.
13184
13185 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
13186
13187 * keyboard.c (make_lispy_event): Handle unknown keysyms together
13188 with system-specific keysyms. Use it also for unknown function keys.
13189
13190 * doc.c (reread_doc_file): Return whether reload was attempted.
13191 (Fdocumentation, Fdocumentation_property): Don't try to reload
13192 if the doc is 0 and only ask once.
13193
13194 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
13195
13196 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
13197
13198 * keyboard.c (read_char): If the event was Qselect_window,
13199 restore timer_idleness_start_time to its previous value.
13200
13201 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
13202
13203 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
13204
13205 * region-cache.c (new_region_cache): Use BEG.
13206
13207 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
13208 Use BEG and BEG_BYTE.
13209
13210 * doc.c (get_doc_string): Return nil if the location is wrong.
13211 (reread_doc_file): New fun.
13212 (Fdocumentation, Fdocumentation_property):
13213 Call it if get_doc_string fails.
13214 (Fsnarf_documentation): Make it work for a dumped Emacs.
13215
13216 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
13217 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
13218
13219 * charset.c (Fstring): Allow 0 arguments.
13220
13221 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
13222
13223 * process.c (DATAGRAM_CONN_P, list_processes_1)
13224 (Fprocess_datagram_address, Fset_process_datagram_address)
13225 (Fset_network_process_options, server_accept_connection):
13226 Fix some int/Lisp_Object confusions (thank you union types).
13227
13228 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13229
13230 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
13231
13232 * w32term.c: Likewise.
13233 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
13234
13235 * keyboard.c (Qselect_window): New symbol.
13236 (head_table): Use it.
13237 (keys_of_keyboard): Bound select-window event to handle-select-window.
13238 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
13239
13240 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
13241 (last_window): New variable.
13242 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
13243 (note_mouse_movement): Remove reimplemented code in #if 0.
13244 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
13245 Emacs windows.
13246
13247 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
13248
13249 2002-03-31 Gerd Moellmann <gerd@gnu.org>
13250
13251 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
13252 Callers changed.
13253
13254 2002-03-30 Richard M. Stallman <rms@gnu.org>
13255
13256 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
13257 loop whenever it stops making progress.
13258
13259 * widget.c (set_frame_size): Don't call change_frame_size.
13260
13261 2002-03-30 Gerd Moellmann <gerd@gnu.org>
13262
13263 * dispnew.c (direct_output_for_insert):
13264 Call mark_window_display_accurate.
13265
13266 2002-03-29 Jason Rumney <jasonr@gnu.org>
13267
13268 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
13269
13270 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
13271
13272 * Makefile.in (lread.o): Depend on coding.h.
13273
13274 * lread.c (openp, Fload): Encode the file name before passing it
13275 to `stat', `access', and `emacs_open'.
13276 (openp): GCPRO the encoded file name. Don't recompute Lisp
13277 strings unnecessarily.
13278
13279 2002-03-29 Kim F. Storm <storm@cua.dk>
13280
13281 * fns.c (Flax_plist_put): Doc fix.
13282
13283 2002-03-28 Miles Bader <miles@gnu.org>
13284
13285 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
13286
13287 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13288
13289 * process.c (set-network-process-options): Add usage.
13290 (make-network-process): Doc fix.
13291
13292 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
13293
13294 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
13295
13296 2002-03-26 Richard M. Stallman <rms@gnu.org>
13297
13298 * fns.c (Fsubstring_no_properties): New function.
13299 (Flax_plist_get, Flax_plist_put): New functions.
13300 (syms_of_fns): defsubr them.
13301
13302 * xdisp.c (update_menu_bar): Test only update_mode_lines;
13303 don't test or alter w->update_mode_line.
13304
13305 * window.c (Fdisplay_buffer): Doc fix.
13306
13307 2002-03-24 Richard M. Stallman <rms@gnu.org>
13308
13309 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
13310
13311 2002-03-24 Gerd Moellmann <gerd@gnu.org>
13312
13313 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
13314 (Fdefmacro): Handle `(declare ...)'.
13315 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
13316 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
13317
13318 2002-03-24 Jason Rumney <jasonr@gnu.org>
13319
13320 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
13321 (xbm_file_p): Add prototypes.
13322 (xbm_format, xbm_image_p): Sync with xfns.c.
13323 (reflect_byte): New function.
13324 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
13325 (xbm_load_image): Create bitmaps with a depth of 1.
13326 (init_xfns): Enable XBM images.
13327
13328 2002-03-23 Jason Rumney <jasonr@gnu.org>
13329
13330 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
13331 correctly. Do not pass up_modifier to keyboard buffer.
13332
13333 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
13334
13335 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
13336
13337 * Makefile.in (bootstrapclean): New target.
13338 (bootstrap-temacs, bootstrap-doc): Remove.
13339 (bootstrap-emacs): Use a bog-standard `temacs'.
13340 Don't bother to build a DOC file.
13341
13342 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
13343
13344 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
13345 in temacs even if !CANNOT_DUMP.
13346 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
13347
13348 * alloc.c (check_pure_size): Only output a warning.
13349
13350 2002-03-22 Jason Rumney <jasonr@gnu.org>
13351
13352 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
13353 supported.
13354
13355 * w32term.c (zv_bits): Declare as short, for word alignment.
13356 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
13357 (syms_of_w32term): Define x-use-underline-position-properties.
13358
13359 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
13360 (clear_image_cache): Block input, fix logic, clear matrices in
13361 all frames that share this cache.
13362
13363 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
13364
13365 * emacs.c (main): Update the Copyright year in the blurb printed
13366 by "emacs --version".
13367
13368 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
13369
13370 * xterm.c (XTread_socket): If XK_ISO_Lock and
13371 XK_ISO_Last_Group_Lock are defined, handle keysyms between
13372 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
13373
13374 2002-03-21 Kim F. Storm <storm@cua.dk>
13375
13376 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
13377 menu-bar bindings in keymap and local-map properties _are_ used.
13378 But try keymap property first in accordance with 2002-01-03 patch.
13379 Added comment describing why this is not always reliable.
13380 (tool_bar_items): Ditto for tool-bar.
13381
13382 2002-03-21 Jason Rumney <jasonr@gnu.org>
13383
13384 * w32fns.c (x_clear_image_1): Disable color table code.
13385
13386 2002-03-21 Kim F. Storm <storm@cua.dk>
13387
13388 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
13389 removed the wrong version of the DEFUN macro; fixed it.
13390
13391 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
13392 Fmember rather than Fmemq).
13393 (Fprovide): Check that subfeatures is a list.
13394
13395 * process.c (QCfeature, QCdatagram): Removed variables.
13396 (QCtype, Qdatagram): New variables.
13397 (network_process_featurep): Removed function.
13398 (Fmake_network_process): Removed :feature check.
13399 Use :type 'datagram instead of :datagram t to create a datagram
13400 socket. This allows us to add other connection types (e.g. raw
13401 sockets) later in a consistent manner.
13402 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
13403 supported subfeatures for feature make-network-process.
13404 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
13405 Intern and staticpro QCtype and Qdatagram.
13406 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
13407
13408 * xfns.c: (QCtype): Remove duplicate declaration and
13409 initialization (is now declared in process.c).
13410
13411 * w32fns.c: (QCtype): Remove duplicate declaration and
13412 initialization (is now declared in process.c).
13413
13414 2002-03-21 Richard M. Stallman <rms@gnu.org>
13415
13416 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
13417 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
13418 when jumping to `fail' to avoid undoing reg changes in the
13419 last iteration of the loop.
13420 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
13421
13422 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
13423 Depend on process.h.
13424
13425 2002-03-20 Jason Rumney <jasonr@gnu.org>
13426
13427 Most of the following changes are still conditional on HAVE_IMAGES
13428 which is not set by default on Windows.
13429
13430 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
13431
13432 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
13433 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
13434 (four_corners_best, x_clear_image_1, x_clear_image)
13435 (x_alloc_image_color, postprocess_image)
13436 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
13437 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
13438 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
13439
13440 * w32gui.h (struct XImage): Define.
13441
13442 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
13443 extract mouse co-ordinates.
13444
13445 2002-03-20 Jason Rumney <jasonr@gnu.org>
13446
13447 * w32.c (init_winsock): Dynamically load new server and UDP
13448 socket functions.
13449 (socket_to_fd): New function.
13450 (sys_socket): Use it.
13451 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
13452 (sys_recvfrom, sys_sendto): New wrapper functions.
13453
13454 * process.c (QCfamily, QCfilter): Remove duplicate declaration
13455 and initialization.
13456
13457 * makefile.w32-in (LIBS): Remove $(WSOCK32).
13458
13459 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
13460
13461 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
13462 Don't use "sun" as a variable, it's a predefined constant on Sun
13463 machines.
13464
13465 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13466
13467 * bytecode.c (Fbyte_code): Revert last change.
13468
13469 2002-03-19 Kim F. Storm <storm@cua.dk>
13470
13471 * makefile.w32-in (LIBS): Add $(WSOCK32).
13472 From David Ponce <dponce@voila.fr>.
13473
13474 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13475
13476 * process.c (wait_reading_process_input): Move variables `pname'
13477 and `pnamelen' down where they are used.
13478
13479 * bytecode.c (Fbyte_code): Discard unused computed value to
13480 prevent gcc warning.
13481
13482 * lisp.h (Fplist_member): Add prototype.
13483
13484 2002-03-18 Kim F. Storm <storm@cua.dk>
13485
13486 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
13487 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
13488
13489 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
13490 Remove explicit GNU_LINUX settings for datagram support.
13491
13492 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13493
13494 * process.c (Fmake_network_process): Remove unused variable `sa'.
13495 Doc fix. Add usage:.
13496 (set_socket_options): Remove unused variables `optnum' and `opttype'.
13497
13498 2002-03-17 Richard M. Stallman <rms@gnu.org>
13499
13500 * xdisp.c (cursor_type_changed): New variable.
13501 (redisplay_internal): Redisplay all windows if cursor_type_changed.
13502 Clear it when clearing windows_or_buffers_changed.
13503 (try_cursor_movement, redisplay_window, try_window_id)
13504 (try_window_reusing_current_matrix): Test cursor_type_changed
13505 along with windows_or_buffers_changed.
13506
13507 * window.h (cursor_type_changed): New variable.
13508
13509 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13510 not update_mode_lines, and always set it to 1.
13511
13512 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
13513 if no frames needed redrawing.
13514
13515 2002-03-17 Kim F. Storm <storm@cua.dk>
13516
13517 The following changes add support for network server processes,
13518 datagram connections, and local (unix) sockets.
13519
13520 * process.h (struct Lisp_Process): New member log.
13521 Doc fix: Member command used to indicate stopped network process.
13522 Doc fix: Member childp contains plist for network process.
13523 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
13524
13525 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
13526 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
13527 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
13528 New variables.
13529 (NETCONN1_P): New macro.
13530 (DATAGRAM_SOCKETS): New conditional symbol.
13531 (datagram_address): New array.
13532 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
13533 (status_message): Use concat3.
13534 (Fprocess_status): Add `listen' status to doc string. Return `stop'
13535 for a stopped network process.
13536 (Fset_process_buffer): Update contact plist for network process.
13537 (Fset_process_filter): Ditto. Don't enable input for stopped
13538 network processes. Server must listen, even if filter is t.
13539 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
13540 New functions.
13541 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
13542 (Fprocess_contact): Added KEY argument. Handle datagrams.
13543 (list_processes_1): Optionally show only processes with the query
13544 on exit flag set. Dynamically adjust column widths. Omit tty
13545 column if not needed. Report stopped network processes.
13546 Identify server and datagram network processes.
13547 (Flist_processes): New optional arg `query-only'.
13548 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
13549 (conv_lisp_to_sockaddr, set_socket_options)
13550 (network_process_featurep, unwind_request_sigio): New helper functions.
13551 (Fprocess_datagram_address, Fset_process_datagram_address):
13552 (Fset_network_process_options): New lisp functions.
13553 (Fopen_network_stream): Removed. Now defined in simple.el.
13554 (Fmake_network_process): New lisp function. Code is based on previous
13555 Fopen_network_stream, but heavily reworked with new property list based
13556 argument list, support for datagrams, server processes, and local
13557 sockets in addition to old client-only functionality.
13558 (server_accept_connection): New function.
13559 (wait_reading_process_input): Use it to handle incoming connects.
13560 Do not enable input on a new connection if process is stopped.
13561 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
13562 (send_process): Handle datagram sockets.
13563 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
13564 network process is indicated by setting command field to t .
13565 (Fprocess_send_eof): No-op if datagram connection.
13566 (Fstatus_notify): Don't read input for a stream server socket or a
13567 stopped network process.
13568 (init_process): Initialize datagram_address array.
13569 (syms_of_process): Intern and staticpro new variables, defsubr new
13570 functions.
13571
13572 2002-03-16 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32fns.c (w32_to_all_x_charsets): Return correct type in
13575 startup case.
13576
13577 2002-03-16 Richard M. Stallman <rms@gnu.org>
13578
13579 * xdisp.c (redisplay_internal, redisplay_windows):
13580 Use list_of_error to call internal_condition_case_1.
13581 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
13582 so as to catch all errors with no possibility of debugger redisplay.
13583 (list_of_error): New variable.
13584 (syms_of_xdisp): Init and staticpro it.
13585
13586 * print.c (print_object): Delete `\ ' from printed rep of frame.
13587
13588 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
13589
13590 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
13591 until its implementation is fixed.
13592
13593 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13594
13595 * xfns.c (png_load): Remove unused variable `gamma_str'.
13596
13597 2002-03-14 Richard M. Stallman <rms@gnu.org>
13598
13599 * xfns.c (x_real_positions): Handle failure in XQueryTree.
13600
13601 2002-03-14 Miles Bader <miles@gnu.org>
13602
13603 * intervals.c (adjust_for_invis_intang): New function.
13604 (set_point_both): Use `adjust_for_invis_intang' to do most of the
13605 work for dealing with invisible+intangible regions. Do so before
13606 and after both forward and backward movements, to handle both
13607 front-sticky and rear-sticky cases.
13608 * textprop.c (text_property_stickiness): Function moved here from
13609 `editfns.c'.
13610 * intervals.h (text_property_stickiness): New declaration.
13611 * editfns.c (char_property_eq): Function removed.
13612 (text_property_stickiness): Function moved to `textprop.c'.
13613
13614 2002-03-13 Jason Rumney <jasonr@gnu.org>
13615
13616 * config.in: Add STRFTIME_NO_POSIX2.
13617
13618 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
13619 and %OX when underlying strftime does not.
13620
13621 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
13622
13623 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
13624 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
13625 line) to avoid annoying flicker.
13626 (xm_scroll_callback): Get rid of the now unnecessary kludge.
13627 (XTread_socket): Mark it static.
13628
13629 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
13630
13631 2002-03-13 Kim F. Storm <storm@cua.dk>
13632
13633 * puresize.h (BASE_PURESIZE): Increase to 775000.
13634
13635 2002-03-12 Juanma Barranquero <lektu@terra.es>
13636
13637 * editfns.c (syms_of_editfns): Fix typo.
13638
13639 2002-03-12 Gerd Moellmann <gerd@gnu.org>
13640
13641 * xsmfns.c: Include stdio.h because termhooks.h needs it.
13642 Include termopt.h for interrupt_input.
13643
13644 2002-03-11 Andreas Schwab <schwab@suse.de>
13645
13646 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
13647
13648 2002-03-11 Gerd Moellmann <gerd@gnu.org>
13649
13650 * xterm.c (note_mouse_movement): Put code for
13651 x_autoselect_window_p in #if 0.
13652
13653 * lread.c (Fload): Don't assume that message_with_string uses the
13654 string it is given like a C string.
13655
13656 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13657
13658 * xterm.h (x_session_check_input, x_session_initialize): Declare.
13659
13660 * xterm.c: (XTread_socket): Add call to x_session_check_input and
13661 x_session_have_connection.
13662 (x_initialize): Add call to x_session_initialize.
13663
13664 * termhooks.h (enum event_kind): Add save_session_event.
13665
13666 * keyboard.c: Add Emacs event save_session_event.
13667
13668 * emacs.c (main): Add call to syms_of_xsmfns.
13669
13670 * lisp.h (syms_of_xsmfns): Declare extern.
13671
13672 * config.in: Add HAVE_X_SM.
13673
13674 * Makefile.in (LIBXT): Add -lSM -lICE
13675 if HAVE_X_SM and not USE_X_TOOLKIT.
13676 (XOBJ): New file xsmfns.c added.
13677
13678 * xsmfns.c: New file for X session management.
13679
13680 2002-03-09 Jason Rumney <jasonr@gnu.org>
13681
13682 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
13683 read-only when setting modified time.
13684
13685 2002-03-08 Gerd Moellmann <gerd@gnu.org>
13686
13687 * xdisp.c (move_it_vertically_backward): At the end of the function,
13688 when moving forward by lines, treat terminal frames specially.
13689
13690 * keyboard.c (echo_char): Make sure to add a separator between
13691 keys even if echo_dash hasn't been called.
13692
13693 * xdisp.c: Use new string macros.
13694 (update_echo_area): Pass number of bytes to message3 instead of
13695 number of chars.
13696 (set_message_1): Don't access a string's size_byte directly.
13697 (decode_mode_spec_coding): Use number of bytes of eoltype string
13698 instead number of chars.
13699
13700 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
13701
13702 2002-03-08 Juanma Barranquero <lektu@terra.es>
13703
13704 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
13705 24-bit.
13706
13707 2002-03-06 Jason Rumney <jasonr@gnu.org>
13708
13709 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
13710
13711 2002-03-06 Gerd Moellmann <gerd@gnu.org>
13712
13713 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
13714 (cancel_echoing, echo_length, echo_truncate): Changed to
13715 work with new kboard definition.
13716 (echo_now): Use message3_nolog instead of message2_nolog.
13717
13718 * alloc.c (mark_kboards): Mark echo_string.
13719
13720 * keyboard.h (ECHOBUFSIZE): Removed.
13721 (struct kboard): Member echoptr removed, member echobuf renamed
13722 to echo_string.
13723
13724 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
13725 message3 instead of message2 to display the message using STRING's
13726 text properties.
13727
13728 2002-03-05 Andreas Schwab <schwab@suse.de>
13729
13730 * xdisp.c (hscroll_margin): Change to EMACS_INT.
13731
13732 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
13733
13734 * frame.c (default-frame-alist): Explain that setting it doesn't
13735 affect existing frames.
13736
13737 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
13738
13739 * indent.c (skip_invisible): Fix my brain fart.
13740
13741 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
13742
13743 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
13744
13745 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
13746 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
13747 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
13748 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
13749 and variables to use EMACS_INT instead of just int.
13750
13751 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
13752
13753 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
13754
13755 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
13756 environment, pass it down with corrected value.
13757
13758 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13759
13760 * lread.c (read_filtered_event): Do not call start_hourglass
13761 before returning.
13762
13763 2002-03-04 Juanma Barranquero <lektu@terra.es>
13764
13765 * w32term.c (x_display_and_set_cursor): Fix typo.
13766
13767 2002-03-03 Richard M. Stallman <rms@gnu.org>
13768
13769 * fileio.c (Fmake_temp_name): Doc fix.
13770
13771 2002-03-03 Gary Wong <gtw@gnu.org>
13772
13773 * termcap.c [!emacs]: Replace ospeed for building standalone
13774 libtermcap, for binary compatibility.
13775
13776 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
13777
13778 2002-03-03 Richard M. Stallman <rms@gnu.org>
13779
13780 * xrdb.c (file_p): Rename arg `path' to `filename'.
13781
13782 * abbrev.c (Fexpand_abbrev): Increment plist as use count
13783 only if it is an integer.
13784
13785 * xfns.c (png_load): Set screen_gamma based on f->gamma.
13786 If png_get_sRGB gives an answer, call png_set_gamma
13787 using the default image gamma value.
13788
13789 * lread.c (read1): When reading from a file, default string to
13790 multibyte only if it has some multibyte characters.
13791
13792 * print.c (print_object): Output multibyte chars 128...255
13793 using \x even if ! print_escape_multibyte.
13794
13795 * xdisp.c (display_mode_element): Move the places where
13796 bytepos, charpos, this, and lisp_string are set.
13797 Use lisp_string to set bytepos.
13798
13799 * xdisp.c (redisplay_internal):
13800 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
13801
13802 * xdisp.c (display_mode_element): Merge properties specified with
13803 :propertize onto those that come with the string.
13804
13805 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
13806
13807 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
13808 automatic-hscrolling. Users changed.
13809 <hscroll-margin>: Renamed from automatic-hscroll-margin.
13810 Users changed.
13811 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
13812
13813 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
13814
13815 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
13816
13817 2002-03-02 Kim F. Storm <storm@cua.dk>
13818
13819 * window.c (Fminibuffer_selected_window): New function.
13820 (syms_of_window): Defsubr it.
13821
13822 2002-03-01 Kim F. Storm <storm@cua.dk>
13823
13824 * window.h (struct window): New member phys_cursor_width.
13825
13826 * window.c (make_window, replace_window): Init phys_cursor_width.
13827
13828 * xterm.c (x_display_and_set_cursor): Blink box cursor using
13829 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13830
13831 * w32term.c (x_display_and_set_cursor): Blink box cursor using
13832 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
13833
13834 * lisp.h (GCPRO6): New macro.
13835
13836 * process.c (Fopen_network_stream): Use GCPRO6.
13837
13838 2002-03-01 Kim F. Storm <storm@cua.dk>
13839
13840 * process.c (Qconnect, Qfailed): New variables.
13841 (syms_of_process): Intern and staticpro them.
13842 (Fprocess_status): Document connect and failed return values.
13843 [NON_BLOCKING_CONNECT]: New conditional.
13844 (connect_wait_mask, num_pending_connects): New variables.
13845 (status_message): Convert Qfailed status.
13846 (Fopen_network_stream): Added support for non-blocking connect.
13847 New optional args: filter, sentinel, non_blocking. Doc updated.
13848 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
13849 (deactivate_process): Handle pending non-blocking connect.
13850 (wait_reading_process_input): Poll for status of non-blocking
13851 connects. Exec sentinel directly when connect succeeds.
13852 (status_notify): Don't read process output if not yet connected.
13853
13854 2002-02-28 Kim F. Storm <storm@cua.dk>
13855
13856 * window.c: (minibuf_selected_window): Renamed from
13857 Vminibuf_selected_window. Users changed.
13858 (syms_of_window): Staticpro it.
13859
13860 2002-02-26 Kim F. Storm <storm@cua.dk>
13861
13862 The following changes add a new Vminibuf_selected_window variable
13863 which is similar to Vminibuf_scroll_window, but which is only set
13864 on entry to the minibuffer (from a non-minibuffer window):
13865
13866 * window.c: (Vminibuf_selected_window): New variable.
13867 (struct save_window_data): New member minibuf_selected_window.
13868 (Fset_window_configuration): Restore Vminibuf_selected_window.
13869 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
13870 Set minibuf_scroll_window member to nil if minibuf_level is 0.
13871 (compare_window_configurations): Compare minibuf_selected_window.
13872
13873 * window.h: (Vminibuf_selected_window): Declare extern.
13874
13875 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
13876 entry to minibuffer or on entry from a non-minibuffer window.
13877
13878 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
13879 Vminibuf_selected_window instead of Vminibuf_scroll_window.
13880
13881 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
13882 instead of Vminibuf_scroll_window when deciding in which window
13883 the region should be highlighted. Consequently, the region remains
13884 highlighteded even when a completion buffer is also displayed.
13885
13886 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
13887
13888 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
13889
13890 * xselect.c (Qcompound_text_with_extensions): Renamed from
13891 Qcompound_text_no_extensions.
13892 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
13893
13894 2002-02-26 Juanma Barranquero <lektu@terra.es>
13895
13896 * w32proc.c (syms_of_ntproc): Doc fix.
13897
13898 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13899
13900 * intervals.h: Include "dispextern.h" unconditionally.
13901
13902 2002-02-24 Jason Rumney <jasonr@gnu.org>
13903
13904 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
13905 and disp-table.elc.
13906 (lisp): Add emacs-lisp/backquote.elc.
13907
13908 2002-02-24 Kim F. Storm <storm@cua.dk>
13909
13910 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
13911 The validation of the event type was too strict as it didn't
13912 allow string events; buffer names are used in bindings for
13913 menu-bar-select-buffer (see `menu-bar-update-buffers').
13914
13915 2002-02-23 Kim F. Storm <storm@cua.dk>
13916
13917 The following changes rework my patch of 2002-02-06 which
13918 added command remapping by entering the commands directly into
13919 the keymaps. Now, command remapping uses an explicit `remap'
13920 prefix in the keymaps, i.e. [remap COMMAND].
13921
13922 * keymap.c (Qremap, remap_command_vector): New variables.
13923 (is_command_symbol): Removed function.
13924 (Fdefine_key): No longer accept a symbol for KEY.
13925 Added validation of [remap COMMAND] argument for KEY.
13926 The DEF is no longer required to be a symbol when remapping a command.
13927 (Fremap_command): New function to remap command through keymaps.
13928 (Flookup_key): Perform command remapping initiated by
13929 Fremap_command directly for speed.
13930 (Fkey_binding): Use Fremap_command for command remapping.
13931 (where_is_internal): Handle new command remapping representation.
13932 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
13933 staticpro them. Defsubr Fremap_command.
13934
13935 * keymap.h (Fremap_command): Declare extern.
13936 (is_command_symbol): Remove extern.
13937
13938 * keyboard.c (command_loop_1): Use Fremap_command for command
13939 remapping; now try command remapping for all symbols.
13940
13941 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13942
13943 * coding.h (run_pre_post_conversion_on_str): Add prototype.
13944
13945 2002-02-23 Jason Rumney <jasonr@gnu.org>
13946
13947 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
13948 on the string before encoding it.
13949 (Fw32_get_clipboard_data): Run post-read-conversion on the string
13950 after decoding it.
13951
13952 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
13953
13954 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13955
13956 * w32term.c (enter_timestamp): Remove unused static variable to
13957 prevent warning.
13958
13959 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
13960
13961 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
13962
13963 * w16select.c (Fw16_get_clipboard_data): Fix last change.
13964
13965 * xselect.c (selection_data_to_lisp_data): Fix last change.
13966
13967 2002-02-22 Jason Rumney <jasonr@gnu.org>
13968
13969 * w32term.h (struct w32_output): New member menu_command_in_progress.
13970
13971 * w32menu.c (menubar_selection_callback): Free the menu and
13972 clear the menu_command_in_progress flag.
13973
13974 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
13975 (menu_free_timer): New variable.
13976 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
13977 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
13978 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
13979 menu command is in progress.
13980 <WM_COMMAND>: Set the menu_command_in_progress flag.
13981 Kill any menu_free_timer that is running.
13982
13983 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
13984 Call ExtTextOutA rather than ExtTextOut.
13985
13986 2002-02-22 Eli Zaretskii <eliz@gnu.org>
13987
13988 * puresize.h (BASE_PURESIZE): Increase to 755000.
13989
13990 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13991
13992 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
13993 on the string before encoding it.
13994 (Fw16_get_clipboard_data): Run post-read-conversion on the string
13995 after decoding it.
13996
13997 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
13998
13999 Support for ICCCM Extended Segments in X selections:
14000
14001 * xselect.c <Qcompound_text_no_extensions>: New variable.
14002 (syms_of_xselect): Intern and staticpro it.
14003 (selection_data_to_lisp_data): Run post-read-conversion on decoded
14004 selection text.
14005 (lisp_data_to_selection_data): If next-selection-coding-system is
14006 compound-text-no-extensions, set the type of selection to be
14007 compound-text.
14008
14009 * xterm.h (x_encode_text): Update prototype.
14010
14011 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
14012 callers changed. If SELECTIONP is non-zero, run the
14013 pre-write-conversion function before encoding the selection text.
14014
14015 2002-02-21 Kim F. Storm <storm@cua.dk>
14016
14017 * frame.c (syms_of_frame): Change mouse-highlight default to t.
14018
14019 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
14020 Correct composing of language-change event.
14021
14022 2002-02-20 Kim F. Storm <storm@cua.dk>
14023
14024 * keyboard.c (menu_bar_items): Don't include keymap or local-map
14025 bindings at PT when building menu (the menu is not updated often
14026 enough for this to work reliable).
14027 (tool_bar_items): Likewise.
14028 (current_active_maps): Removed unused (and buggy) function.
14029
14030 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14031
14032 * xfns.c (gif_load): Use correct width and height for GIF images.
14033
14034 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
14035
14036 * floatfns.c (Fatan): Accept an optional second arg and call
14037 atan2 if passed 2 args.
14038
14039 2002-02-18 Jason Rumney <jasonr@gnu.org>
14040
14041 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
14042
14043 2002-02-17 Jason Rumney <jasonr@gnu.org>
14044
14045 * w32term.c (x_autoselect_window_p): New variable.
14046 (syms_of_w32term): DEFVAR_BOOL and initialize it.
14047 (note_mouse_movement): Use it.
14048
14049 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
14050
14051 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
14052
14053 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14054 New variables.
14055 (syms_of_w32fns): Intern and staticpro them.
14056 (x_frame_parms) <"fullscreen">: New parameter.
14057 (x_fullscreen_move, x_set_fullscreen): New functions.
14058 (x_set_frame_parameters): Support Qfullscreen.
14059 (x_real_positions): Save x/y_pixels_diff frame params.
14060 (x_figure_window_size): Support full-screen frames.
14061 (Fx_create_frame): Default the fullscreen parameter.
14062
14063 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
14064 (x_fullscreen_adjust): New functions.
14065 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
14066 fullscreen. Call x_check_fullscreen_move, and set the
14067 want_fullscreen member of output_data.w32
14068 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
14069
14070 * w32term.h: New enum for FULLSCREEN_* constants.
14071 (struct w32_output): New members want_fullscreen, x_pixels_diff,
14072 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
14073 (x-fullscreen-adjust): New prototype.
14074
14075 2002-02-17 Kim F. Storm <storm@cua.dk>
14076
14077 * frame.c: (Vmouse_highlight): New variable.
14078 (syms_of_frame): DEFVAR_LISP it.
14079
14080 * frame.h: (Vmouse_highlight): Declare extern.
14081
14082 * xterm.h (struct x_display_info): Add mouse_face_hidden.
14083
14084 * xterm.c (disable_mouse_highlight): Removed variable.
14085 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14086 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14087 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
14088 and on after keyboard input.
14089 (x_term_init): Initialize mouse_face_hidden.
14090
14091 * msdos.h (struct display_info): Add mouse_face_hidden.
14092
14093 * msdos.c (disable_mouse_highlight): Removed variable.
14094 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14095 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
14096 (internal_terminal_init): Initialize mouse_face_hidden.
14097 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
14098 and on after keyboard input.
14099
14100 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
14101
14102 * w32term.c (disable_mouse_highlight): Removed variable.
14103 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
14104 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
14105 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
14106 and on after keyboard input.
14107 (w32_initialize_display_info): Initialize mouse_face_hidden.
14108
14109 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
14110
14111 * msdos.c (last_mouse_window): New variable.
14112 (dos_rawgetc): Fix last change--if the mouse is in the same window
14113 as recorded in last_mouse_window, don't select this window.
14114
14115 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
14116
14117 * msdos.c (x_autoselect_window_p): New variable.
14118 (syms_of_msdos): Defvar it.
14119 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
14120 which the last mouse movement occured, unless it is already selected.
14121
14122 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
14123 New variables.
14124 (syms_of_xdisp): DEVFAR them.
14125 (hscroll_window_tree): Use automatic_hscroll_margin and
14126 Vautomatic_hscroll_step to compute the amount of window scrolling.
14127
14128 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14129
14130 * xterm.c (x-autoselect-window): New variable.
14131 (note_mouse_movement): Use it.
14132
14133 * keyboard.c: Do not include "systime.h" twice.
14134
14135 2002-02-15 Andreas Schwab <schwab@suse.de>
14136
14137 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
14138
14139 * alloc.c (NSTATICS): Increase to 1280.
14140
14141 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
14142
14143 * alloc.c (NSTATICS): Bump to 1026.
14144
14145 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
14146 (Vx_super_keysym): New variables.
14147 (syms_of_xterm): DEFVAR_LISP them.
14148 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
14149 variables to determine which keys to use for the various modifiers.
14150
14151 2002-02-13 Kim F. Storm <storm@cua.dk>
14152
14153 * window.c: (Vmode_line_in_non_selected_windows): Removed.
14154 (mode_line_in_non_selected_windows): New variable.
14155 (syms_of_window): DEFVAR_BOOL it.
14156
14157 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
14158 Use mode_line_in_non_selected_windows.
14159 (mode_line_in_non_selected_windows): Declare extern.
14160 (Vmode_line_in_non_selected_windows): Removed extern.
14161
14162 2002-02-13 Richard M. Stallman <rms@gnu.org>
14163
14164 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
14165 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
14166 (Fclear_this_command_keys): Doc fixes.
14167
14168 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
14169 (update_face_from_frame_parameter): Increment face_change_count
14170 and windows_or_buffers_changed to force redisplay using changed faces.
14171
14172 * xdisp.c (QCpropertize): New variable.
14173 (mode_line_proptrans_alist): New variable.
14174 (display_mode_element): New arg PROPS; all calls changed.
14175 Implement this, for strings.
14176 Handle literal output of strings by sharing the
14177 main-line code for strings, using local var `literal'.
14178 Handle :propertize feature.
14179 (syms_of_xdisp): Initialze and staticpro QCpropertize and
14180 mode_line_proptrans_alist.
14181
14182 2002-02-11 Kim F. Storm <storm@cua.dk>
14183
14184 * window.c: (Vmode_line_in_non_selected_windows): New variable.
14185 (syms_of_window): DEFVAR_LISP it.
14186
14187 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
14188 (CURRENT_MODE_LINE_FACE_ID): Use it.
14189 (Vmode_line_in_non_selected_windows): Declare extern.
14190
14191 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
14192 to get mode line face.
14193
14194 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
14195
14196 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
14197 variables; cus-start.el doesn't need them anymore.
14198
14199 2002-02-09 Kim F. Storm <storm@cua.dk>
14200
14201 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
14202 reduction. This fixes a display problem where stray newlines were
14203 inserted in the window (corrected by C-l). Clarified code (IMHO).
14204
14205 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
14206
14207 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
14208
14209 * xdisp.c (display_mode_lines): Fix last change.
14210
14211 2002-02-09 Jason Rumney <jasonr@gnu.org>
14212
14213 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
14214 match each other.
14215 (w32_load_system_font): Prevent Cleartype fonts from loading.
14216 (Fx_show_tip): Ensure tip frames are above other topmost windows.
14217
14218 2002-02-09 Kim F. Storm <storm@cua.dk>
14219
14220 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
14221 (CURRENT_MODE_LINE_HEIGHT): Use it.
14222 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
14223
14224 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
14225 (pos_visible_p, handle_face_prop): Likewise.
14226 (display_mode_lines): Likewise, but for the real selected window.
14227 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
14228
14229 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
14230 in non-selected windows.
14231 (realize_basic_faces): Realize it.
14232 (syms_of_term): Intern and staticpro it.
14233
14234 2002-02-08 Kim F. Storm <storm@cua.dk>
14235
14236 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
14237 Changed mail addresses to emacs-devel@gnu.org.
14238
14239 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
14240
14241 * fileio.c (Fsubstitute_in_file_name): If the file name includes
14242 ~user, and there's no such user, don't discard everything before ~user.
14243
14244 * floatfns.c (Fround): Doc fix.
14245
14246 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14247
14248 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
14249
14250 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
14251
14252 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
14253
14254 2002-02-07 Kim F. Storm <storm@cua.dk>
14255
14256 * keymap.c (where_is_internal): Only check whether definition is
14257 remapped if it fulfills is_command_symbol.
14258
14259 2002-02-07 Andreas Schwab <schwab@suse.de>
14260
14261 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
14262
14263 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
14264
14265 2002-02-06 Kim F. Storm <storm@cua.dk>
14266
14267 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
14268 defining command remapping. Doc updated.
14269 (Flookup_key): Remap command through keymap if KEY is a symbol.
14270 (is_command_symbol): New function.
14271 (Fkey_binding): Use it. New optional argument NO-REMAP.
14272 Doc updated. Callers changed. Perform command remapping via
14273 recursive call unless that arg is non-nil.
14274 (where_is_internal): New argument no_remap. Callers changed.
14275 Call recursively to find original key bindings for a remapped
14276 comand unless that arg is non-nil.
14277 (Fwhere_is_internal): New optional argument NO-REMAP.
14278 Doc updated. Callers changed. Pass arg to where_is_internal.
14279
14280 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
14281 (is_command_symbol): Added prototype.
14282
14283 * keyboard.c (Vthis_original_command): New variable.
14284 (syms_of_keyboard): DEFVAR_LISP it.
14285 (command_loop_1): Set it, and perform command remapping.
14286
14287 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14288
14289 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
14290
14291 2002-02-06 Jason Rumney <jasonr@gnu.org>
14292
14293 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
14294
14295 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
14296
14297 * charset.c (get_charset_id): Use if-else instead of ?:.
14298
14299 2002-02-06 Richard M. Stallman <rms@gnu.org>
14300
14301 * filelock.c (S_ISLNK): Define if not defined.
14302
14303 2002-02-03 Richard M. Stallman <rms@gnu.org>
14304
14305 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
14306
14307 * lread.c (read1): Redesign strategy for force_multibyte and
14308 force_singlebyte. Now is_multibyte records whether read_buffer
14309 is multibyte. Encountering any multibyte character makes it so.
14310
14311 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
14312
14313 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
14314 with the same sequence, map that sequence to f10 rather than f0.
14315
14316 2002-02-03 Andreas Schwab <schwab@suse.de>
14317
14318 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
14319 latter never being defined on GNU/Linux.
14320
14321 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
14322
14323 * xfaces.c (realize_default_face): Don't set the weight and slant of
14324 the default face to Qnormal, unless these attributes are unspecified.
14325
14326 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14327
14328 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
14329 Call cancel_hourglass unconditionally.
14330
14331 * eval.c (Fsignal): Remove duplicated declaration of
14332 the variable `display_hourglass_p'.
14333
14334 2002-01-31 Richard M. Stallman <rms@gnu.org>
14335
14336 * editfns.c (region_limit): Nicer error message.
14337
14338 * coding.c (decode_composition_emacs_mule):
14339 Give up if NCOMPONENT gets too large to index `component'.
14340
14341 * callint.c (check_mark): New arg to specify clearer error message.
14342 Callers changed.
14343
14344 2002-01-27 Richard M. Stallman <rms@gnu.org>
14345
14346 * minibuf.c (Fcompleting_read): Doc fix.
14347
14348 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14349
14350 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
14351 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
14352 Fix doc-strings.
14353
14354 2002-01-26 Richard M. Stallman <rms@gnu.org>
14355
14356 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
14357
14358 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
14359 and scroll_up_aggressively.
14360
14361 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14362
14363 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
14364
14365 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
14366
14367 * textprop.c (Fnext_property_change, Fnext_single_property_change)
14368 (Fprevious_property_change, Fprevious_single_property_change):
14369 Stay within the narrowed-buffer boundaries.
14370
14371 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
14372
14373 * term.c (Ftty_display_color_cells): New function.
14374 (syms_of_term): Defsubr it.
14375 (Ftty_display_color_cells, Ftty_display_color_p): Change the
14376 argument name to DISPLAY. Doc fix.
14377
14378 * dispextern.h: Add prototype for set_tty_color_mode and
14379 tty_setup_colors.
14380
14381 2002-01-24 Jason Rumney <jasonr@gnu.org>
14382
14383 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
14384 If region left to draw is not what was expected, mark the frame as
14385 garbaged.
14386
14387 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
14388 Combine the regions returned by BeginPaint and GetUpdateRect.
14389
14390 2002-01-23 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32term.c (x_update_window_begin): Only hide caret if
14393 w32_use_visible_system_caret is set.
14394 (x_update_window_end): Only show caret if
14395 w32_use_visible_system_caret is set.
14396 (syms_of_w32term): Handle SystemParametersInfo call failing.
14397
14398 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
14399
14400 2002-01-22 Richard M. Stallman <rms@gnu.org>
14401
14402 * unexelf.c (unexec): Define n so as to cause compilation error
14403 for the code where people have often written n instead of nn.
14404
14405 * .gdbinit (hookpost-run): Defined.
14406
14407 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14408
14409 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
14410
14411 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14412
14413 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
14414 if fullscreen is being set.
14415
14416 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14417
14418 * minibuf.c (Fminibuffer_contents)
14419 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
14420 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
14421
14422 2002-01-21 Richard M. Stallman <rms@gnu.org>
14423
14424 * window.c (check_frame_size): Fix minimum height calculation.
14425
14426 2002-01-20 Ken Raeburn <raeburn@gnu.org>
14427
14428 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
14429 height before comparison.
14430 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
14431
14432 2002-01-20 Jason Rumney <jasonr@gnu.org>
14433
14434 * w32term.c (w32_system_caret_width): Remove.
14435 (w32_use_visible_system_caret): New user flag.
14436 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
14437 Windows reports a screen reader running.
14438 (x_update_window_begin): Hide the system caret.
14439 (x_update_window_end): Show the system caret.
14440 (x_display_and_set_cursor): Don't draw a cursor when
14441 w32_use_visible_system_caret is set. Do not adjust width.
14442
14443 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
14444 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
14445 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
14446 the user requests it. Use system default width when creating.
14447 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
14448
14449 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
14450 New window messages.
14451
14452 2002-01-20 Richard M. Stallman <rms@gnu.org>
14453
14454 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
14455
14456 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14457
14458 * doprnt.c (doprnt1): Fix typos in error call.
14459
14460 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
14461
14462 * unexelf.c (unexec) [__sgi]: Support the .got sections.
14463
14464 2002-01-20 Jason Rumney <jasonr@gnu.org>
14465
14466 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
14467 that Windows returns. If a double check fails, try to guess how
14468 ExtTextOut is going to act.
14469
14470 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
14471 in place of stricmp.
14472 (w32_list_synthesized_fonts): Removed.
14473 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
14474 (struct enumfont_t): New element; list.
14475 (enum_font_cb2): List all style and charset variations of a font.
14476 (Fw32_select_font): New optional argument; include_proportional.
14477 Exclude vertical fonts. Exclude proportional fonts unless
14478 include_proportional is non-nil.
14479 (w32_enable_synthesized_fonts): Change to a boolean.
14480 (Fw32_send_sys_command): Doc fix.
14481
14482 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14483
14484 * dispnew.c (update_frame): Move the variable `tem' to the block
14485 where it is used.
14486
14487 2002-01-19 Jason Rumney <jasonr@gnu.org>
14488
14489 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
14490 call to face-set-after-frame-default.
14491
14492 2002-01-18 Richard M. Stallman <rms@gnu.org>
14493
14494 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
14495 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
14496
14497 2002-01-17 Richard M. Stallman <rms@gnu.org>
14498
14499 * window.c (enlarge_window): When exceeding size of parent,
14500 directly delete all the siblings instead of trying to resize it.
14501
14502 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14503
14504 * term.c (set_tty_color_mode): Remove unused variable `tem'.
14505
14506 2002-01-16 Henrik Enberg <henrik@enberg.org>
14507
14508 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
14509
14510 2002-01-16 Kim F. Storm <storm@cua.dk>
14511
14512 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
14513 is invisible. This can happen if cursor is on top line of a
14514 window, and we switch to a buffer with a header line.
14515
14516 * w32term.c (x_erase_phys_cursor): Ditto.
14517
14518 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14519
14520 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
14521 `dont_resize' only when used.
14522
14523 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
14524
14525 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
14526
14527 * xdisp.c (display_mode_element): When computing charpos, depend
14528 on multibyteness of elt, not the text in field.
14529
14530 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14531
14532 * buffer.c (Fkill_all_local_variables):
14533 Increment `update_mode_lines' only once.
14534
14535 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14536
14537 * lisp.h (adjust_after_replace_noundo)
14538 (Fupdate_coding_systems_internal): Add prototypes.
14539
14540 * sound.c (Fplay_sound): Initialize header_size also for :data case.
14541
14542 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
14543
14544 Support for the --color command-line argument and tty-color-mode
14545 frame parameter:
14546
14547 * term.c (tty_default_color_capabilities, tty_setup_colors)
14548 (set_tty_color_mode): New functions.
14549 (term_init): Call tty_default_color_capabilities.
14550 (Qtty_color_mode_alist): New variable.
14551 (syms_of_term): Intern and staticpro it.
14552
14553 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
14554 frames.
14555 (do_switch_frame): For termcap frames, switch the tty
14556 color mode as specified by the frame's parameters.
14557 (Qtty_color_mode): New variable.
14558 (syms_of_frame): Intern and staticpro it.
14559
14560 * emacs.c (USAGE2): Add the --color option.
14561 (standard_args): Ditto.
14562
14563 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14564
14565 * xterm.h (struct x_output): New members want_fullscreen,
14566 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
14567 y_pixels_outer_diff.
14568 New enum for FULLSCREEN_* constants.
14569 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
14570 is NULL.
14571 (x_fullscreen_adjust): Add prototype.
14572
14573 * emacs.c (USAGE2): Add the new full-screen arguments.
14574 (standard_args): Ditto.
14575
14576 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
14577 New variables.
14578 (syms_of_xfns): Intern and staticpro them.
14579 (x_frame_parms) <"fullscreen">: New parameter.
14580 (x_fullscreen_move, x_set_fullscreen): New functions.
14581 (x_set_frame_parameters): Support for Qfullscreen.
14582 (x_real_positions): More accurate computation of the frame position.
14583 (x_figure_window_size): Support full-screen frames.
14584 (Fx_create_frame): Default the fullscreen parameter.
14585
14586 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
14587 (XTread_socket) <Expose>: Call x_check_fullscreen.
14588 <ConfigureNotify>: Don't resize to fullscreen.
14589 Call x_check_fullscreen_move, and set the want_fullscreen member of
14590 output_data.x.
14591
14592 2002-01-13 Jason Rumney <jasonr@gnu.org>
14593
14594 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
14595 for mice with more than 3 buttons.
14596
14597 * w32term.c (parse_button): New parameter xbutton. Callers changed.
14598 (w32_read_socket): Handle new "XBUTTON" messages.
14599
14600 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
14601 (syms_of_w32fns): DEFVAR_BOOL it.
14602 (w32_wnd_proc): Handle new "XBUTTON" messages.
14603
14604 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14605
14606 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
14607
14608 2002-01-13 Andreas Schwab <schwab@suse.de>
14609
14610 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
14611
14612 2002-01-12 Andreas Schwab <schwab@suse.de>
14613
14614 * .gdbinit (xbuffer): Remove address operator since data is now a
14615 pointer.
14616
14617 2002-01-11 Richard M. Stallman <rms@gnu.org>
14618
14619 * insdel.c (adjust_after_replace_noundo): New function.
14620
14621 * coding.c (code_convert_region): Don't copy old text if undo disabled.
14622
14623 2002-01-09 Jason Rumney <jasonr@gnu.org>
14624
14625 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
14626 when checking for multiple frames.
14627
14628 2002-01-08 Richard M. Stallman <rms@gnu.org>
14629
14630 * window.c (delete_window): Rewrite the code for changing the
14631 selected window to handle the case where WINDOW is not a leaf.
14632
14633 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
14634
14635 * process.c (send_process): Set src_multibyte to 1 after the call
14636 top setup_coding_system, not before the call.
14637
14638 2002-01-07 Jason Rumney <jasonr@gnu.org>
14639
14640 * xmenu.c (set_frame_menubar, xmenu_show):
14641 (xdialog_show): Initialize wv->help to Qnil.
14642
14643 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
14644 (w32_dialog_show): Initialize wv->help to Qnil.
14645
14646 2002-01-06 Jason Rumney <jasonr@gnu.org>
14647
14648 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
14649
14650 * w32menu.c (w32_menu_display_help): Revert last change.
14651
14652 * xmenu.c (menu_highlight_callback): Revert last change.
14653
14654 2002-01-06 Andreas Schwab <schwab@suse.de>
14655
14656 * insdel.c (make_gap_larger): Make sure buffer size does not
14657 overflow range of int.
14658
14659 2002-01-05 Jason Rumney <jasonr@gnu.org>
14660
14661 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14662 OVERLAPS_P.
14663
14664 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
14665
14666 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
14667 to the left or to the right of the pointer, put it against
14668 the left screen edge.
14669 (x_frame_parms): Add missing braces around initializer.
14670
14671 * w32term.c (x_setup_relief_colors): Don't compute an image's
14672 background color if it doesn't have a Pixmap.
14673 (notice_overwritten_cursor): Don't depend on
14674 output_cursor and updated_area. Compare pixel coordinates with
14675 window's cursor pixel coordinates.
14676 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14677 Call notice_overwritten_cursor with new arg list.
14678 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14679 unconditionally.
14680 (x_draw_image_relief): Use predefined macro instead of
14681 constant when the value of `tool_bar_button_relief' is negative.
14682
14683 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
14684
14685 2002-01-04 Richard M. Stallman <rms@gnu.org>
14686
14687 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
14688
14689 2002-01-03 Richard M. Stallman <rms@gnu.org>
14690
14691 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
14692 (Fkey_binding): Try the `keymap' property map first.
14693 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
14694 minor mode bindings.
14695
14696 2002-01-03 Kim F. Storm <storm@cua.dk>
14697
14698 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
14699
14700 2002-01-02 Richard M. Stallman <rms@gnu.org>
14701
14702 * keyboard.c (read_key_sequence): Handle the keymap property
14703 before minor mode maps.
14704
14705 * editfns.c (Fformat): Update thissize from field_width
14706 based on the actual width, in the string case.
14707
14708 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14709
14710 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
14711 when used as truth value to prevent gcc warnings.
14712
14713 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
14714 * w32proc.c: Include <config.h>.
14715
14716 2002-01-01 Andreas Schwab <schwab@suse.de>
14717
14718 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
14719 not EMACS_INT, to make them compatible with DEFVAR_INT.
14720 * lisp.h (max_specpdl_size): Adjust declaration.
14721
14722 2002-01-01 Richard M. Stallman <rms@gnu.org>
14723
14724 * print.c (print_object): Test print_escape_nonascii only for
14725 unibyte strings.
14726 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
14727 when outputting to a multibyte buffer.
14728
14729 2001-12-29 Richard M. Stallman <rms@gnu.org>
14730
14731 * print.c (print_object): In multibyte string, use hex escapes.
14732 Use octal only for unibyte strings.
14733 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
14734
14735 * lread.c (read_escape): New arg BYTEREP for reporting whether
14736 escape forces unibyte or multibyte.
14737 (read1): When reading a string, take note of that info.
14738
14739 2001-12-29 Ken Raeburn <raeburn@gnu.org>
14740
14741 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
14742 comparison to test lisp value returned by Fget.
14743
14744 2001-12-29 Richard M. Stallman <rms@gnu.org>
14745
14746 * lisp.h (max_specpdl_size): Add declaration.
14747
14748 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
14749
14750 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
14751 Handle modifier bits. Correct typo in error message.
14752
14753 2001-12-28 Richard M. Stallman <rms@gnu.org>
14754
14755 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
14756 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
14757 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14758 Update calls to Fdefine_abbrev.
14759 (write_abbrev): Update for changed data format.
14760 Don't list "system" abbrevs.
14761 (Fexpand_abbrev): Update use count with new data format.
14762 (describe_abbrev): Update for changed data format.
14763 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
14764
14765 * config.in (HAVE_MBSINIT): Add #undef.
14766
14767 * strftime.c (mbsinit): Define as no-op if not available.
14768
14769 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
14770 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
14771
14772 * keymap.c (Flookup_key): Error message if key has wrong data type.
14773 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
14774 (exclude_key): New variable.
14775
14776 2001-12-28 Gerd Moellmann <gerd@gnu.org>
14777
14778 * xterm.c (x_setup_relief_colors): Don't compute an image's
14779 background color if it doesn't have a Pixmap.
14780
14781 * xterm.c (notice_overwritten_cursor): Don't depend on
14782 output_cursor and updated_area. Compare pixel coordinates with
14783 window's cursor pixel coordinates.
14784 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
14785 Call notice_overwritten_cursor with new arg list.
14786 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
14787 unconditionally.
14788
14789 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
14790 height of the cursor line to the amount to scroll.
14791
14792 2001-12-27 Richard M. Stallman <rms@gnu.org>
14793
14794 * intervals.c (set_point_both): The position after an invisible,
14795 intangible character is not an acceptable stopping point.
14796
14797 2001-12-27 Ken Raeburn <raeburn@gnu.org>
14798
14799 * window.c (enlarge_window): In new preserve_before code, convert
14800 CURBEG from lisp object to integer before doing arithmetic.
14801
14802 2001-12-27 Richard M. Stallman <rms@gnu.org>
14803
14804 * bytecode.c (Fbyte_code): Undo previous change.
14805
14806 2001-12-26 Kim F. Storm <storm@cua.dk>
14807
14808 * keyboard.c (record_char): Ignore duplicate help-echo events only
14809 separated by mouse-movement. When tracking mouse, only record
14810 first and last mouse-movement event in same window.
14811 Don't record mouse-movement events in keyboard macros.
14812
14813 2001-12-25 Richard M. Stallman <rms@gnu.org>
14814
14815 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
14816 (Fenlarge_window): New arg PRESERVE_BEFORE.
14817
14818 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
14819 instead of Fstring_as_unibyte.
14820
14821 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14822
14823 The following changes remove mocklisp support:
14824
14825 * mocklisp.h, mocklisp.c: Files removed.
14826
14827 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
14828 `Qmocklisp' and `Qmocklisp_arguments'.
14829 Remove prototype of syms_of_mocklisp.
14830
14831 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
14832
14833 * callint.c: Do not include mocklisp.h.
14834 (Fcall_interactively): Do not test for mocklisp case.
14835
14836 * eval.c: Remove variables `Qmocklisp_arguments',
14837 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
14838 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
14839 Do not test for mocklisp case.
14840 (Fwhile): Remove unused variable `tem'.
14841 (syms_of_eval): Remove variable `moclisp-arguments'.
14842
14843 * data.c (wrong_type_argument): Remove mocklisp case.
14844
14845 * doc.c (Fdocumentation): Remove mocklisp case.
14846
14847 * emacs.c (main): Do not call syms_of_mocklisp.
14848
14849 2001-12-21 Richard M. Stallman <rms@gnu.org>
14850
14851 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
14852 to the left or to the right of the pointer, put it against
14853 the left screen edge.
14854
14855 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
14856
14857 * Makefile.in (distclean): Remove .gdbinit if we are building
14858 outside the source tree.
14859
14860 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
14861
14862 * w32.c (emacs_root_dir): New function.
14863
14864 * msdos.c (emacs_root_dir): New function.
14865
14866 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
14867 of the current drive as the fallback for default_directory.
14868
14869 * dired.c (file_name_completion): Run the elements of
14870 completion-ignored-extensions through ENCODE_FILE.
14871
14872 * lisp.h (scmp): Remove prototype, since it's now a static
14873 function private to dired.c.
14874
14875 2001-12-18 Richard M. Stallman <rms@gnu.org>
14876
14877 * dired.c (scmp): Function moved from minibuf.c.
14878 Delete multibyte handling--used only on encoded strings.
14879
14880 * minibuf.c (scmp): Function moved to dired.c.
14881
14882 * fns.c (merge): Add QUIT call.
14883
14884 2001-12-18 Dave Love <fx@gnu.org>
14885
14886 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
14887 language/georgian.el.
14888
14889 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
14890
14891 * Makefile.in (lisp, shortlisp): Synchronize with changes to
14892 lisp/Makefile.in:DONTCOMPILE.
14893
14894 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14895
14896 * xdisp.c (window_box_height): Do not return negative values.
14897 From Gerd Moellmann <gerd@gnu.org>.
14898
14899 * keyboard.c (head_table): Add missing braces around initializer.
14900
14901 * term.c (keys): Likewise.
14902
14903 * xfns.c (x_frame_parms, visual_classes): Likewise.
14904
14905 2001-12-17 Sam Steingold <sds@gnu.org>
14906
14907 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
14908 patch (COMPOSING_P, not COMPOSING).
14909
14910 2001-12-17 Richard M. Stallman <rms@gnu.org>
14911
14912 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
14913
14914 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
14915 before calling decode_coding.
14916
14917 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
14918
14919 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
14920 instead of only for COMPOSITION_DISABLED.
14921
14922 2001-12-16 Richard M. Stallman <rms@gnu.org>
14923
14924 * alloc.c (pure_alloc): After overflow, allocate just a small block.
14925
14926 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
14927
14928 * buffer.h (struct buffer): New field `display_error_modiff'.
14929 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
14930
14931 * window.c (Frecenter): Clear display_error_modiff field.
14932
14933 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
14934 Call redisplay_window, but not if display_error_modiff field says no.
14935 (redisplay_window_error): New function.
14936 (displayed_buffer): New variable.
14937 (redisplay_internal, redisplay_windows): Call the new functions
14938 instead of redisplay_window directly.
14939
14940 2001-12-15 Richard M. Stallman <rms@gnu.org>
14941
14942 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
14943
14944 2001-12-14 Andrew Innes <andrewi@gnu.org>
14945
14946 * makefile.w32-in (EMACSLOADPATH): Define.
14947 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
14948 (bootstrap-temacs): Remove dependency on bootstrap-clean.
14949
14950 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
14951
14952 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
14953 parameter have a numeric value all the time.
14954
14955 * w32fns.c (x_report_frame_params): Likewise.
14956
14957 2001-12-12 Richard M. Stallman <rms@gnu.org>
14958
14959 * fileio.c (Fwrite_region): Doc fix.
14960
14961 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
14962 (redisplay_internal): Call clear_image_cache only for window terminals.
14963
14964 2001-12-12 Gerd Moellmann <gerd@gnu.org>
14965
14966 * xdisp.c (move_it_vertically_backward): Change heuristic
14967 for the case that we didn't move far enough initially.
14968
14969 * window.c (Frecenter): Simplify computation in the case of window
14970 system frames and ARG < 0; use window_box_height.
14971
14972 2001-12-11 Richard M. Stallman <rms@gnu.org>
14973
14974 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
14975 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
14976
14977 2001-12-11 Andrew Innes <andrewi@gnu.org>
14978
14979 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
14980 arg is negative.
14981
14982 2001-12-11 Richard M. Stallman <rms@gnu.org>
14983
14984 * m/hp800.h: Split the __hpux conditional into the parts
14985 that are right for GNU/Linux too and the parts that are not.
14986 Use the former if GNU_LINUX.
14987 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
14988
14989 * s/gnu-linux.h (GNU_LINUX): Defined.
14990
14991 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14992
14993 * macros.c, msdos.c, w16select.c: Change doc-string comments to
14994 `new style' [w/`doc:' keyword].
14995
14996 2001-12-10 Jason Rumney <jasonr@gnu.org>
14997
14998 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
14999 before using.
15000
15001 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15002
15003 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
15004 keyword].
15005
15006 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
15007
15008 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
15009
15010 * s/hpux10.h (srand48): Don't undefine.
15011
15012 2001-12-09 Jason Rumney <jasonr@gnu.org>
15013
15014 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
15015 Add comment to explain where the struct came from.
15016 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
15017 (add_menu_item): Process pop-up menus first to avoid memory leak.
15018 (add_menu_item, w32_menu_display_help): Use `help' field as
15019 Lisp_Object.
15020 (w32_free_submenu_strings): Only free owner-drawn strings.
15021
15022 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15023
15024 * COPYING: Moved back.
15025
15026 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
15027 Add parentheses around && within ||.
15028
15029 * indent.c (compute_motion): Likewise.
15030
15031 * intervals.c (merge_properties_sticky): Likewise.
15032
15033 * coding.c (setup_coding_system, shrink_encoding_region)
15034 (Fdecode_sjis_char): Likewise.
15035
15036 2001-12-07 Andreas Schwab <schwab@suse.de>
15037
15038 * xdisp.c (display_mode_element): Don't read past end of string if
15039 it ends with '%'.
15040
15041 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
15042 can hold.
15043
15044 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
15045 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
15046 type changed to Lisp_Object.
15047 (syms_of_data): DEFVAR_LISP them.
15048
15049 2001-12-07 Richard M. Stallman <rms@gnu.org>
15050
15051 * callproc.c (init_callproc): Set Vdata_directory based on the source
15052 location whenever Emacs was run uninstalled.
15053
15054 2001-12-06 Paul Eggert <eggert@twinsun.com>
15055
15056 * config.in (HAVE_WORKING_VFORK): New #undefs.
15057 * process.c (create_process):
15058 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
15059 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
15060 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
15061 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
15062 * m/intel386.h (HAVE_VFORK): Likewise.
15063 * m/mips-siemens.h (HAVE_VFORK): Likewise.
15064 * m/mips.h (HAVE_VFORK): Likewise.
15065 * s/freebsd.h (vfork): Remove #define.
15066 * s/lynxos.h (HAVE_VFORK): Remove #undef.
15067 * s/usg5-4-2.h: Fix comment about vfork.
15068
15069 2001-12-06 Richard M. Stallman <rms@gnu.org>
15070
15071 * s/hpux10.h (random): Add undef.
15072 (HAVE_RANDOM): Define it just once.
15073
15074 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
15075
15076 * eval.c: Undo last change: the standard syntax is not wanted.
15077
15078 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
15079
15080 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
15081 scroll bars of the frame before deleting the frame itself. If the
15082 frame has a widget, delete the frame with XtDestroyWidget, and do
15083 not call XDestroyWindow before that.
15084
15085 2001-12-06 Kim F. Storm <storm@cua.dk>
15086
15087 * xfns.c (x_report_frame_params): Return actual fringe widths.
15088
15089 * w32fns.c (x_report_frame_params): Return actual fringe widths.
15090
15091 2001-12-05 Andrew Innes <andrewi@gnu.org>
15092
15093 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
15094 excessively large.
15095
15096 * insdel.c (make_gap_larger): New function.
15097 (make_gap_smaller): New function.
15098 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
15099 Call make_gap_smaller if arg is negative.
15100
15101 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
15102
15103 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
15104 Pass a dummy argument when calling interrupt_signal.
15105 (parse_menu_item): Mark disabled items before checking for empty def.
15106 (read_char_minibuf_menu_prompt): Make safety more visible.
15107 (read_key_sequence): Add a `first_unbound' variable.
15108 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
15109 unbound prefix as soon as we can detect it.
15110
15111 * doc.c (Fsnarf_documentation): Add prototype.
15112 (get_doc_string): Handle negative arguments.
15113 (Fdocumentation): Use AREF and ASIZE.
15114 Move the calls to get_doc_string to a single place.
15115 Don't confuse an interactive-spec for a docstring reference.
15116 (Fdocumentation_property): Take advantage of the fact that
15117 get_doc_string now ignores the sign of the docstring position.
15118
15119 * eval.c: Use standard syntax for usage in docstrings.
15120
15121 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15122
15123 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
15124
15125 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15126
15127 * xterm.c (x_draw_image_relief): Use predefined macro instead of
15128 constant when the value of `tool_bar_button_relief' is negative.
15129
15130 2001-12-02 Richard M. Stallman <rms@gnu.org>
15131
15132 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
15133 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
15134
15135 * fileio.c (read_non_regular): Delete Fsignal call.
15136
15137 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
15138
15139 * lisp.h (run_hook_list_with_args): Undo last change.
15140
15141 2001-12-01 Gerd Moellmann <gerd@gnu.org>
15142
15143 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
15144
15145 2001-12-01 Jason Rumney <jasonr@gnu.org>
15146
15147 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
15148
15149 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
15150 [!WM_MOUSELEAVE]: Define.
15151
15152 * w32menu.c (current_popup_menu, get_menu_item_info):
15153 (set_menu_item_info): New vars.
15154 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
15155 (w32_menu_show): Set current_popup_menu.
15156 (add_menu_item): Allocate new strings for owner-drawn menu items
15157 and help strings.
15158 Use owner-draw for disabled menu items again.
15159 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
15160 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
15161
15162 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
15163 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
15164 <WM_EXITMENULOOP>: Free menu strings.
15165 <WM_MOUSELEAVE>: Stop tracking mouse.
15166 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
15167
15168 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
15169 and mouse face.
15170
15171 2001-12-01 Kim F. Storm <storm@cua.dk>
15172
15173 The following changes add left-fringe and right-fringe
15174 frame parameters to adjust fringe widths, or remove one or
15175 both fringes.
15176
15177 * frame.h (struct frame): Remove trunc_area_pixel_width and
15178 trunc_area_cols fields.
15179 (Qleft_fringe, Qright_fringe): Declare.
15180 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
15181
15182 * frame.c (Qleft_fringe, Qright_fringe): New vars.
15183 (syms_of_frame): Initialize them.
15184
15185 * window.c (coordinates_in_window): Handle separate left and right
15186 fringe widths.
15187
15188 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
15189 and fringe_cols fields.
15190 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
15191 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
15192 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
15193 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
15194 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
15195 (x_compute_fringe_widths): Add prototype.
15196
15197 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
15198 fill fringe evenly with small dashes.
15199 (x_draw_fringe_bitmap): Clear background if necessary. Align and
15200 clip the new ZV bitmap to avoid jitter between rows.
15201 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
15202 background. Don't draw fringe bitmaps if fringe width is zero.
15203 (x_compute_fringe_widths): New function.
15204 (x_new_font, x_set_window_size_1): Use it.
15205
15206 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
15207 (x_set_frame_parameters): Process `font' parameter before other
15208 parameters as fringe widths depend on it.
15209 (x_set_fringe_width): New function.
15210 (x_figure_window_size): Use x_compute_fringe_widths.
15211 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
15212 parameters.
15213
15214 * widget.c (set_frame_size): Use x_compute_fringe_widths.
15215 (EmacsFrameSetCharSize): Ditto.
15216
15217 * w32term.h: Merged changes from xterm.h.
15218 * w32term.c: Merged changes from xterm.c.
15219 * w32fns.c: Merged changes from xfns.c.
15220
15221 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15222
15223 * COPYING: Removed.
15224
15225 2001-11-29 Dave Love <fx@gnu.org>
15226
15227 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
15228 extra extra slot.
15229 (detect_coding_mask): Fix call of detect_coding_iso2022.
15230
15231 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15232
15233 * fileio.c (file-name-coding-system)
15234 (default-file-name-coding-system): Doc fix (links to referenced
15235 variables added).
15236
15237 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15238
15239 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
15240 Add dummy uses of gcproN variables.
15241
15242 * category.c (describe_category, describe_category_1)
15243 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
15244 (syms_of_category): Don't defsubr Sdescribe_categories.
15245
15246 2001-11-28 Richard M. Stallman <rms@gnu.org>
15247
15248 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
15249
15250 * Makefile.in (lispdir): New variable, referring to build dir.
15251 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
15252
15253 2001-11-28 Andrew Innes <andrewi@gnu.org>
15254
15255 * w32menu.c (w32_menu_display_help): Actually add the new argument
15256 OWNER.
15257
15258 2001-11-28 Jason Rumney <jasonr@gnu.org>
15259
15260 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
15261 menu items. From David Ponce <dponce@wanadoo.fr>.
15262 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
15263 conditionally.
15264 (w32_menu_display_help): New argument OWNER. Rewritten to store a
15265 help event in the owner frame's keyboard buffer.
15266
15267 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
15268 (Fx_show_tip): Don't subtract last width from row width.
15269
15270 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
15271 (w32_read_socket): Use EQ to compare frames.
15272
15273 2001-11-28 Gerd Moellmann <gerd@gnu.org>
15274
15275 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15276 OVERLAPS_P.
15277
15278 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15279
15280 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
15281 `gcpro3' and `gcpro4'.
15282
15283 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
15284
15285 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
15286
15287 * ccl.c: Use AREF and ASIZE.
15288
15289 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
15290
15291 * lisp.h (run_hook_list_with_args): Remove.
15292 (LIST_END_P): Fix call to wrong_type_argument.
15293 (make_fixnum_or_float): Use EMACS_INT rather than int.
15294
15295 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
15296
15297 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
15298 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
15299
15300 * eval.c: Use AREF and ASIZE.
15301 (Ffetch_bytecode): Add the file name to the error message.
15302
15303 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
15304 which match the end of the file-name.
15305 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
15306 is not a valid env var, but leave it as is instead.
15307
15308 * keymap.c (access_keymap): Handle t bindings like nil bindings.
15309 Make nil bindings in char-tables transparent.
15310 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
15311
15312 2001-11-26 Richard M. Stallman <rms@gnu.org>
15313
15314 * textprop.c (set_text_properties_1): Allow START, END in either order.
15315 Do nothing if range is empty.
15316
15317 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
15318
15319 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
15320 (clean): Not here.
15321
15322 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
15323
15324 * textprop.c (set_text_properties_1): Clearly mark that the
15325 interval should not be empty.
15326
15327 * intervals.c (graft_intervals_into_buffer):
15328 Don't call set_text_properties_1 on an empty interval.
15329
15330 2001-11-25 Richard M. Stallman <rms@gnu.org>
15331
15332 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
15333
15334 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
15335 don't lose the data in it.
15336
15337 2001-11-25 Juanma Barranquero <lektu@terra.es>
15338
15339 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
15340
15341 * buffer.c (Fkill_buffer): Likewise.
15342
15343 * print.c (temp_output_buffer_setup): Likewise.
15344
15345 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
15346
15347 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
15348
15349 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
15350
15351 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
15352 Niemitalo <kon@iki.fi>.
15353
15354 2001-11-25 Jason Rumney <jasonr@gnu.org>
15355
15356 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
15357
15358 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
15359 (Fx_show_tip): Block input during frame creation.
15360 (Fx_show_tip, Fx_hide_tip): Enable.
15361
15362 2001-11-24 Richard M. Stallman <rms@gnu.org>
15363
15364 * lread.c (Fload): Detect recursive load error for more than 3
15365 nestings of the same file.
15366 (Vrecursive_load_depth_limit): Variable deleted.
15367 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
15368
15369 2001-11-24 Jason Rumney <jasonr@gnu.org>
15370
15371 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
15372 mouse position if either left or top is not specified.
15373
15374 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
15375 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
15376 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
15377 (my_create_tip_window): Assign tip_window.
15378 (x_create_tip_frame): Use same defaults as X.
15379 (compute_tip_xy): Remove unused variable. Use full screen width.
15380 (Fx_show_tip): Do not double height. Call ShowWindow directly.
15381
15382 * w32term.c (x_after_update_window_line): Doc fix.
15383 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
15384 frames.
15385 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
15386
15387 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
15388 for all Windowed systems.
15389
15390 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
15391
15392 * msdos.c (IT_clear_screen): If the frame's faces are not yet
15393 realized, use the initial screen colors to clear the screen.
15394
15395 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15396
15397 * textprop.c (Fset_text_properties): Remove unused variables
15398 `unchanged', `prev_changed', `s' and `len'.
15399
15400 * search.c (Freplace_match): Remove unused variable `inslen'.
15401
15402 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
15403
15404 2001-11-22 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
15407 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
15408 (my_create_tip_window): New function.
15409 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
15410 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
15411
15412 2001-11-20 Jason Rumney <jasonr@gnu.org>
15413
15414 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
15415 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
15416
15417 * w32fns.c (Vw32_system_coding_system): Remove.
15418 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
15419
15420 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
15421
15422 * fileio.c (Fwrite_region): Move choose_write_coding_system to
15423 after build_annotations.
15424
15425 * syntax.c (describe_syntax): Add dummy arg.
15426 (describe_syntax_1): Update call to describe_vector.
15427
15428 * category.c (describe_category): Add dummy arg.
15429 (describe_category_1): Update call to describe_vector.
15430
15431 * keymap.c (Fdescribe_vector): Add `describer' parameter.
15432 (describe_command, describe_translation): Add dummy second param.
15433 (describe_map): Call elt_describer with two arguments.
15434 (describe_vector_princ): Add `fun' parameter.
15435 Call it instead of the hardcoded `princ'.
15436 (describe_vector): Add arg `args'.
15437 Pass it as a new second argument to elt_describer.
15438
15439 * keymap.h (describe_vector): Update prototype.
15440
15441 * frame.c: Don't include keymap.h any more.
15442 (keys_of_frame): Remove.
15443
15444 * lisp.h (keys_of_frame): Remove declaration.
15445
15446 * emacs.c (main): Don't call `keys_of_frame' any more.
15447
15448 2001-11-14 Andreas Schwab <schwab@suse.de>
15449
15450 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
15451 if defined, 0 otherwise.
15452 (MAP_FAILED): Define if not defined and use it to test mmap failure.
15453 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
15454
15455 2001-11-19 Richard M. Stallman <rms@gnu.org>
15456
15457 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
15458
15459 2001-11-18 Jason Rumney <jasonr@gnu.org>
15460
15461 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
15462 (x_draw_bar_cursor): If the background color of the glyph under
15463 the cursor equals the frame's cursor color, use the glyph's
15464 foreground color for drawing the bar cursor.
15465 (x_after_update_window_line): Clear internal border in different
15466 circumstances.
15467 (w32_set_vertical_scroll_bar): Check for width and height > 0.
15468 (w32_draw_relief_rect): Correct relief by 1 pixel.
15469 (x_set_glyph_string_background_width):
15470 Set extends_to_end_of_line_p if the row's fill_line_p is set and
15471 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
15472 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
15473 if cursor_in_non_selected_windows is false.
15474 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
15475 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
15476 Notice if cursor gets overwritten.
15477 (notice_overwritten_cursor): Renamed from
15478 note_overwritten_text_cursor. Rewritten to take glyph widths
15479 into account, and to take X positions as parameters.
15480 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15481 around call to x_draw_glyphs.
15482 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15483 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15484 color to use for image glyph reliefs.
15485 (x_draw_image_relief): Accept zero tool_bar_button_relief.
15486 (glyph_rect): Remove unused variable `area'.
15487
15488 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
15489 some items.
15490 (x_set_internal_border_width): Set frame garbaged when window
15491 doesn't exist yet.
15492 (Fx_create_frame): Accept zero tool_bar_button_relief.
15493 (x_clear_image_1, four_corners_best, image_background)
15494 (image_background_transparent): New functions.
15495 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
15496 (gs_format): Add `:background' entry.
15497 (lookup_image): Set IMG's background color if specified.
15498 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15499 when appropriate.
15500 (x_clear_image_1): Reset `background_valid' and
15501 `background_transparent_valid' fields.
15502 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15503 calculating it here. Set IMG's background_transparent field.
15504 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15505 (enum png_keyword_index): Add PNG_BACKGROUND.
15506 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15507 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15508 (enum gif_keyword_index): Add GIF_BACKGROUND.
15509 (enum gs_keyword_index): Add GS_BACKGROUND.
15510 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
15511 Pre-calculate image background color where necessary.
15512 (x_create_x_image_and_pixmap, xbm_load, gs_load):
15513 Use display info's n_cbits entry for screen depth.
15514 (Fx_show_tip): Remove unused variables `buffer', `top',
15515 `left', `max_width' and `max_height'.
15516
15517 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
15518
15519 2001-11-18 Gerd Moellmann <gerd@gnu.org>
15520
15521 * puresize.h (BASE_PURESIZE): Increase to 750000.
15522
15523 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15524
15525 * frame.c (Fframe_live_p): Doc fix.
15526
15527 2001-11-18 Richard M. Stallman <rms@gnu.org>
15528
15529 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
15530 (message_dolog_marker3): New static variables hold three markers.
15531 (syms_of_xdisp): Initialize and staticpro them.
15532 (message_dolog): Use message_dolog_marker1..3 instead of
15533 allocating markers each time. Unchain them when done.
15534
15535 2001-11-17 Richard M. Stallman <rms@gnu.org>
15536
15537 * doc.c (Fsnarf_documentation): Doc fix.
15538
15539 2001-11-17 Andreas Schwab <schwab@suse.de>
15540
15541 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
15542
15543 2001-11-17 Richard M. Stallman <rms@gnu.org>
15544
15545 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
15546
15547 2001-11-17 Jason Rumney <jasonr@gnu.org>
15548
15549 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
15550
15551 2001-11-17 Gerd Moellmann <gerd@gnu.org>
15552
15553 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
15554 with invalid position.
15555
15556 2001-11-16 Richard M. Stallman <rms@gnu.org>
15557
15558 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
15559
15560 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
15561 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
15562 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
15563
15564 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
15565
15566 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
15567
15568 * fileio.c (build_annotations): Split off the tail.
15569 (build_annotations_2): New fun. Extracted from build_annotations.
15570 (Fwrite_region): Split the call to build_annotations into two
15571 calls to build_annotations and build_annotations_2.
15572
15573 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15574
15575 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
15576 clear_waiting_for_input with argument.
15577
15578 * xterm.h (x_update_cursor): Remove duplicated prototype.
15579
15580 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
15581
15582 * xterm.c (waiting_for_input): Remove unnecessary declaration.
15583
15584 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
15585
15586 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
15587
15588 * fileio.c (choose_write_coding_system): New fun, extracted
15589 from Fwrite_region.
15590 (Fwrite_region): Use it.
15591
15592 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
15593 (funcall_lambda, run_hook_with_args): Make static and add prototype.
15594 (ml_apply, find_handler_clause): Add prototype.
15595
15596 2001-11-16 Eli Zaretskii <eliz@gnu.org>
15597
15598 * config.in: Add #undef HAVE_COFF_H.
15599
15600 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
15601 Required for ISC 4.1.
15602
15603 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
15604
15605 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
15606 Andrew Wiseman <a.wiseman@btclick.com>.
15607
15608 2001-11-16 Kim F. Storm <storm@cua.dk>
15609
15610 The following changes are made to clean up the various internal
15611 references to the fringes to actually use the term `fringe' for
15612 them. Previously, they were called `flags areas', `bitmap areas',
15613 `left/right side of windows', or implicitly as `flags' or
15614 `bitmaps':
15615
15616 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
15617 Comments fixed. Use renamed symbols.
15618
15619 * dispnew.c: Comment fix. Use renamed symbols.
15620
15621 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
15622 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
15623 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
15624
15625 * msdos.c: Comment fix.
15626
15627 * w32fns.c: Use renamed symbols.
15628
15629 * w32term.c: Comment fixes. Use renamed symbols.
15630 (fringe_bitmap_type): Renamed from bitmap_type.
15631 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15632 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
15633 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
15634
15635 * w32term.h: Comment fixes. Use renamed symbols.
15636 (fringes_extra): Renamed from flags_areas_extra.
15637 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15638 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15639 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15640 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15641 (FRAME_X_LEFT_FRINGE_WIDTH):
15642 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15643 (FRAME_X_RIGHT_FRINGE_WIDTH):
15644 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15645
15646 * widget.c: Use renamed symbols.
15647
15648 * window.c: Comment fixes. Use renamed symbols.
15649 (coordinates-in-window-p): Doc fix.
15650
15651 * xdisp.c: Comment fixes. Use renamed symbols.
15652
15653 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
15654
15655 * xfns.c: Use renamed symbols.
15656
15657 * xterm.c: Comment fixes. Use renamed symbols.
15658 (fringe_bitmap_type): Renamed from bitmap_type.
15659 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
15660 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
15661 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
15662
15663 * xterm.h: Comment fixes. Use renamed symbols.
15664 (fringes_extra): Renamed from flags_areas_extra.
15665 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
15666 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
15667 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
15668 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
15669 (FRAME_X_LEFT_FRINGE_WIDTH):
15670 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
15671 (FRAME_X_RIGHT_FRINGE_WIDTH):
15672 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
15673
15674 2001-11-15 Jason Rumney <jasonr@gnu.org>
15675
15676 * w32menu.c (add-menu-item): Make help_echo and radio buttons
15677 work for most menu items. From David Ponce
15678 <david.ponce@wanadoo.fr>.
15679
15680 2001-11-15 Gerd Moellmann <gerd@gnu.org>
15681
15682 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
15683 Some x_set_* function expect to be called even if old and new
15684 value are equal.
15685
15686 * xdisp.c (build_desired_tool_bar_string): Accept zero
15687 tool_bar_button_relief.
15688
15689 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
15690
15691 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
15692
15693 * xterm.c (x_draw_bar_cursor): If the background color of the
15694 glyph under the cursor equals the frame's cursor color, use
15695 the glyph's foreground color for drawing the bar cursor.
15696
15697 * dispnew.c (direct_output_forward_char): Fix character/byte
15698 position comparison.
15699
15700 2001-11-15 Miles Bader <miles@gnu.org>
15701
15702 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
15703 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
15704 Update arguments to find_field.
15705 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
15706 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
15707 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
15708 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
15709
15710 2001-11-14 Richard M. Stallman <rms@gnu.org>
15711
15712 * editfns.c (Fpropertize): Allow call with 1 arg.
15713
15714 * dispextern.h (image_background, image_background_transparent):
15715 Conditionalize on HAVE_X_WINDOWS.
15716
15717 2001-11-13 Richard M. Stallman <rms@gnu.org>
15718
15719 * print.c (Fprin1_to_string): Doc fix.
15720
15721 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
15722
15723 * floatfns.c (Fceiling, Ffloor): Doc fixes.
15724
15725 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
15726
15727 * fileio.c (Ffile_accessible_directory_p): Doc fix.
15728
15729 * eval.c (syms_of_eval): Doc fix.
15730
15731 * coding.c (syms_of_coding): Doc fix.
15732
15733 * doc.c (Fsnarf_documentation): Doc fix.
15734
15735 * dispnew.c (syms_of_display): Doc fix.
15736
15737 * category.c (Fget_unused_category): Doc fix.
15738
15739 * buffer.c (syms_of_buffer): Doc fixes.
15740
15741 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
15742
15743 * print.c (prin1, print): Doc fix.
15744
15745 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15746
15747 * fontset.h: Remove declarations of variables
15748 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
15749
15750 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
15751 `Vclip_large_size_font'.
15752
15753 2001-11-13 Jason Rumney <jasonr@gnu.org>
15754
15755 * w32fns.c: Doc fix.
15756
15757 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15758
15759 * xfaces.c (Fface_attributes_as_vector): Doc fix.
15760
15761 * fns.c: Doc fix.
15762
15763 * emacs.c: Doc fix.
15764
15765 * coding.c: Doc fix.
15766
15767 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
15768 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
15769 `new style' [w/`doc:' keyword].
15770
15771 2001-11-12 Richard M. Stallman <rms@gnu.org>
15772
15773 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
15774 LeaveNotify events. Only FocusIn and FocusOut do that now.
15775 (x_display_and_set_cursor): Do display hollow cursors in active
15776 minibuffer windows when they are not selected.
15777
15778 2001-11-12 Jason Rumney <jasonr@gnu.org>
15779
15780 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
15781 * w32term.c: Change doc-string comments to `new style'
15782 [w/`doc:' keyword]. Doc fixes.
15783
15784 * w32fns.c: Don't define max.
15785 (Fx_open_connection): Only execute once.
15786
15787 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15788
15789 * ccl.c: Change macros to use do-while block instead of if-else.
15790 Use braces to follow GNU Coding Standards.
15791
15792 2001-11-11 Richard M. Stallman <rms@gnu.org>
15793
15794 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
15795
15796 * lread.c (read_escape): Use end_of_file_error for reporting eof.
15797
15798 * insdel.c (replace_range): Use adjust_markers_for_replace
15799 instead of adjust_markers_for_delete and adjust_markers_for_insert.
15800
15801 * intervals.h (set_text_properties, set_text_properties_1): Declare.
15802
15803 * textprop.c (set_text_properties_1): New subroutine
15804 broken out of set_text_properties.
15805 (set_text_properties): Use set_text_properties_1.
15806
15807 * intervals.c (graft_intervals_into_buffer):
15808 Use set_text_properties_1 to clear out properties.
15809
15810 * search.c (Freplace_match): Use replace_range to insert
15811 and delete. Don't request property inheritance from
15812 surrounding text.
15813
15814 2001-11-10 Jason Rumney <jasonr@gnu.org>
15815
15816 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
15817 vertical fonts. Allow them if face name is explicitly specified.
15818 Do not give up if we find a font that cannot be converted to an xlfd.
15819
15820 2001-11-10 Gerd Moellmann <gerd@gnu.org>
15821
15822 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
15823 instead of malloc/free.
15824
15825 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15826
15827 * xfaces.c (merge_face_vectors): Use braces to follow GNU
15828 Coding Standards.
15829 (Finternal_set_lisp_face_attribute): Likewise.
15830
15831 * buffer.c (Fbury_buffer): Likewise.
15832
15833 * indent.c (current_column_1): Remove unused variable `prev_col'.
15834
15835 * coding.c (encode_coding): Use precomputed value of `src'.
15836 (encode_coding): Remove unused variable `src_end'.
15837 (code_convert_region): Remove unused variables `count'.
15838
15839 2001-11-07 Jason Rumney <jasonr@gnu.org>
15840
15841 * w32term.c (x_display_and_set_cursor): Do not move system caret
15842 if cursor_glyph is NULL.
15843
15844 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15845
15846 * keymap.c (access_keymap): Fix compilation error.
15847
15848 2001-11-07 Miles Bader <miles@gnu.org>
15849
15850 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
15851
15852 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15853
15854 * intervals.c (graft_intervals_into_buffer):
15855 Remove #ifdef'd-out code.
15856 (graft_intervals_into_buffer): Remove unused variable `middle'.
15857
15858 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
15859 code (eval-current-buffer).
15860 Change doc-string comments to `new style' [w/`doc:' keyword].
15861
15862 2001-11-06 Richard M. Stallman <rms@gnu.org>
15863
15864 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
15865
15866 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
15867
15868 * lread.c (read1): Fix behavior with nested backquoting.
15869
15870 * keyboard.c (make_lispy_event): Check integerness and fix
15871 Lisp_Object/int mixup.
15872
15873 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15874
15875 * fns.c (copy_hash_table): Remove unused variable `v'.
15876
15877 * fontset.c (fontset_font_pattern): Remove unused variable
15878 `family_registry'.
15879
15880 * indent.c (current_column_1): Remove unused variable `prev_col'.
15881
15882 2001-11-05 Richard M. Stallman <rms@gnu.org>
15883
15884 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
15885
15886 * buffer.c (Fkill_buffer): Don't delete auto save file
15887 if buffer is modified.
15888
15889 2001-11-05 Andrew Innes <andrewi@gnu.org>
15890
15891 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
15892 CHECK_NUMBER_CDR.
15893
15894 2001-11-05 Richard M. Stallman <rms@gnu.org>
15895
15896 * unexelf.c (unexec): Minor changes; clean up comments.
15897
15898 2001-11-05 Sam Steingold <sds@gnu.org>
15899
15900 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
15901
15902 2001-11-05 Andreas Schwab <schwab@suse.de>
15903
15904 * sound.c (sound_perror): Save errno from being clobbered.
15905
15906 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
15907
15908 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
15909 the program image directly.
15910
15911 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15912
15913 * buffer.h (Fbuffer_local_value): Add prototype.
15914
15915 2001-11-04 Richard M. Stallman <rms@gnu.org>
15916
15917 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
15918 and CHECK_BUFFER.
15919
15920 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
15921 (record_char): Likewise.
15922
15923 * keyboard.c (make_lispy_event): Don't insist a drag event must
15924 move to a different buffer position. Instead, check for moving at
15925 least double_click_fuzz.
15926
15927 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
15928
15929 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
15930
15931 * indent.c (current_column_1, Fmove_to_column): Separate the code
15932 for display-table glyphs from the code for buffer text, to fix
15933 bugs in the former.
15934
15935 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
15936
15937 * buffer.c (Fbuffer_local_value): New function.
15938 (syms_of_buffer): Defsubr it.
15939
15940 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
15941 value of `cursor-in-non-selected-windows'.
15942
15943 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
15944 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
15945 (syms_of_xdisp): Initialize it.
15946
15947 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15948
15949 * xfns.c (Fx_create_frame): Doc fix.
15950
15951 * coding.c: Change doc-string comments to `new style' [w/`doc:'
15952 keyword].
15953
15954 * eval.c (top_level_value, top_level_set): Remove commented and
15955 #ifdef'd-out code.
15956 (Fdefvar): Fix usage in doc-string.
15957
15958 2001-11-03 Richard M. Stallman <rms@gnu.org>
15959
15960 * xfns.c: Include unistd.h, if it exists.
15961
15962 * editfns.c: Move the include of ctype.h after unistd.h.
15963
15964 * gmalloc.c: Test BROKEN_PROTOTYPES.
15965
15966 2001-11-03 Ken Raeburn <raeburn@gnu.org>
15967
15968 * lisp.h (CHECK_STRING_CAR): New macro.
15969 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
15970 treating XCAR and XCDR as lvalues.
15971 (openp): Use CHECK_STRING_CAR.
15972 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
15973
15974 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
15975
15976 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
15977 (SIGMASKTYPE): Define.
15978
15979 * syssignal.h (sigunblock): Don't define if already defined.
15980
15981 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15982
15983 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
15984 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
15985 Fix typos in comments.
15986
15987 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
15988 and #ifdef'd-out code.
15989 Fix and reindent comments.
15990
15991 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
15992
15993 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
15994 argument `i' in macros.
15995
15996 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
15997 `i' in macros.
15998
15999 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
16000 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
16001 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
16002 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
16003 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
16004 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
16005 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
16006 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
16007 in macros.
16008
16009 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
16010 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
16011 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
16012 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
16013 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
16014 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
16015 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
16016 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
16017 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
16018 (remove unused second argument).
16019
16020 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
16021
16022 * syntax.c (describe_syntax): New wrapper.
16023 (Finternal_describe_syntax_value): Rename from describe_syntax.
16024 Don't insert space at front and \n at the end.
16025 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
16026
16027 * regex.c (re_wctype): Try to fix some warnings.
16028 (regcomp, regexec): Don't forget the __restrict.
16029
16030 2001-11-02 Richard M. Stallman <rms@gnu.org>
16031
16032 * textprop.c (Fget_char_property): Doc fix.
16033
16034 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16035
16036 * process.c (Fstart_process): Add usage to doc-string.
16037
16038 * data.c (Fsetq_default): Ditto.
16039
16040 * callint.c (Finteractive): Ditto.
16041
16042 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
16043
16044 * macros.c: Don't include keymap.h any more.
16045
16046 2001-11-01 Richard M. Stallman <rms@gnu.org>
16047
16048 * data.c (Fmake_local_variable): Doc fix.
16049
16050 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
16051 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
16052
16053 * keymap.c (Fdescribe_buffer_bindings): Print character property
16054 bindings along with or instead of the buffer local map.
16055 Make the overriding maps override what they should.
16056
16057 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16058
16059 * window.c (grow_mini_window): Fix typo in comment.
16060
16061 2001-11-01 Gerd Moellmann <gerd@gnu.org>
16062
16063 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
16064 (XTset_vertical_scroll_bar): Likewise.
16065
16066 * xfns.c (x_build_heuristic_mask): Use four_corners_best
16067 instead of IMAGE_BACKGROUND.
16068
16069 * xfns.c (four_corners_best): Reindent.
16070
16071 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
16072 Handle :box so that it is possible to specify sexprs.
16073
16074 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
16075
16076 * s/hpux11.h: New file.
16077
16078 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16079
16080 * emacs.c (USAGE1): Show command line option --no-window-system
16081 instead of --no-windows in usage.
16082 (standard_args): Rename --no-windows to --no-window-system.
16083 (bug_reporting_address): Follow Emacs coding conventions.
16084
16085 * eval.c (Fcommandp): Doc fix.
16086 Change doc-string comments to `new style' [w/`doc:' keyword].
16087
16088 * frame.c (Fframe_live_p): Doc fix.
16089
16090 * buffer.c (selective-display-ellipses): Doc fix.
16091
16092 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16093
16094 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
16095
16096 * xfaces.c (realize_x_face): If C is not a single-byte character,
16097 set the face's colors_copied_bitwise_p instead of the defaulted_p
16098 members which have a different meaning.
16099 (free_face_colors): Do nothing for a face whose colors have been
16100 copied bitwise.
16101
16102 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
16103
16104 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16105
16106 * marker.c, mocklisp.c: Change doc-string comments to `new style'
16107 [w/`doc:' keyword].
16108
16109 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16110
16111 * fns.c (require_unwind): Return Lisp_Object.
16112
16113 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16114
16115 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
16116 (last-input-char): Revert doc-string to be the same as the
16117 doc-string of `last-input-event'.
16118
16119 * xdisp.c: Fix typos in comments.
16120
16121 2001-10-31 Gerd Moellmann <gerd@gnu.org>
16122
16123 * window.c (grow_mini_window): Handle case that the root
16124 window is already smaller than the nominal mininum height.
16125
16126 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
16127
16128 * emacs.c (main): Don't call keys_of_macros any more.
16129
16130 * lisp.h (keys_of_macros): Remove.
16131
16132 * macros.c (keys_of_macros): Remove.
16133
16134 * xfaces.c (Fface_attribute_relative_p): Declare args.
16135
16136 2001-10-30 Jason Rumney <jasonr@gnu.org>
16137
16138 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
16139 (enum_font_cb2): Ignore fonts with vertical orientation.
16140
16141 2001-10-30 Richard M. Stallman <rms@gnu.org>
16142
16143 * keyboard.c (Finput_pending_p): Doc fix.
16144
16145 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16146
16147 * xterm.c (x_after_update_window_line): Don't run the code
16148 clearing in borders for rows whose visible height is 0.
16149
16150 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
16151 resized_p flag is set. If not set, use the much less flickering
16152 method previously used.
16153
16154 * dispnew.c (change_frame_size_1): Set frame's resized_p.
16155
16156 * frame.h (struct frame) <resized_p>: New member.
16157
16158 * lread.c (to_multibyte): Ensure read_buffer is at least twice
16159 as large as the number of bytes to convert.
16160
16161 * lread.c (to_multibyte): New function.
16162 (read1): Use it.
16163
16164 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
16165
16166 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
16167
16168 2001-10-30 Gerd Moellmann <gerd@gnu.org>
16169
16170 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
16171 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
16172 if the row's fill_line_p is set and drawing the last glyph with
16173 DRAW_IMAGE_{RAISED,SUNKEN}.
16174
16175 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
16176
16177 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
16178
16179 * xmenu.c: Include coding.h and charset.h.
16180 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
16181 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
16182 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
16183 Explicitly set wv->help. Use `TRUE' rather than `True'.
16184 (menu_help_callback): Use empty_string.
16185
16186 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
16187 (Fx_popup_dialog): Explicitly init f.
16188 (w32_menu_display_help): Use empty_string.
16189
16190 2001-10-29 Richard M. Stallman <rms@gnu.org>
16191
16192 * fns.c (Frequire): Detect recursive try to require the same
16193 feature 3 or more levels deep, and get error.
16194 (require_unwind): New subroutine.
16195 (require_nesting_list): New variable.
16196 (syms_of_fns): Init and staticpro it.
16197
16198 * print.c (print_object): Clarify indication of insertion type.
16199
16200 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
16201
16202 * coding.c (syms_of_coding): Document that locale-coding-system is
16203 used for decoding input on X.
16204
16205 * window.c (Fscroll_left, Fscroll_right): Doc fix.
16206
16207 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16208
16209 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
16210 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
16211
16212 2001-10-29 Gerd Moellmann <gerd@gnu.org>
16213
16214 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
16215 use NO_CURSOR if cursor_in_non_selected_windows is false.
16216
16217 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
16218 the slant attribute if FRAME is t.
16219
16220 * xfns.c (x_set_internal_border_width): Set frame garbaged
16221 when X window doesn't exist yet.
16222
16223 * xterm.c (x_after_update_window_line): Clear internal border
16224 in different circumstances.
16225
16226 * xterm.c (XTread_socket) <KeyPress>: Don't use
16227 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
16228 <handa@etl.go.jp>.
16229
16230 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
16231
16232 * m/ibms390.h: New file. From Adam Thornton
16233 <athornton@sinenomine.net>.
16234
16235 2001-10-28 Gerd Moellmann <gerd@gnu.org>
16236
16237 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
16238
16239 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
16240 a loop counter.
16241
16242 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16243
16244 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
16245
16246 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
16247 keyword].
16248 Fix typos in comments.
16249
16250 * emacs.c (bug_reporting_address): New function.
16251 Use it when displaying usage message.
16252
16253 * minibuf.c (read_minibuf): Remove unused external declaration of
16254 variable `Qread_only'.
16255
16256 * keymap.c (access_keymap): Remove unused variable `charset'.
16257
16258 2001-10-28 Miles Bader <miles@gnu.org>
16259
16260 * xfaces.c (merge_face_heights): Handle TO being relative as well.
16261 Remove #ifdef'd-out code.
16262 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
16263 (syms_of_xfaces): Initialize them.
16264
16265 2001-10-27 Jason Rumney <jasonr@gnu.org>
16266
16267 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
16268 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
16269 position using the system caret.
16270
16271 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
16272 (w32_system_caret_height, w32_system_caret_x)
16273 (w32_system_caret_y): New variables for tracking system caret.
16274 (w32_initialize): Initialize them.
16275 (x_display_and_set_cursor): Make system caret follow the active cursor.
16276
16277 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
16278 New messages types.
16279
16280 * w32term.c (note_mouse_highlight): Clear old help_echo.
16281
16282 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16283
16284 * xterm.c: Fix typo in a comment.
16285
16286 * emacs.c: Fix typos in comments.
16287 Remove unnecessary spaces.
16288 Change doc-string comments to `new style' [w/`doc:' keyword].
16289 (USAGE2): Fix typos in usage string.
16290
16291 * xterm.c: Fix typo in a comment.
16292
16293 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
16294 emacs.c.
16295
16296 2001-10-27 Gerd Moellmann <gerd@gnu.org>
16297
16298 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
16299 instead of 1/2 line_height in the heuristic for skipping
16300 farther backward when target_y was not reached.
16301
16302 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
16303 Display errno only if non-zero.
16304 (sound_warning): New function.
16305 (vox_configure): Don't treat failing to set sample rate as error.
16306 (various places): Improve error messages.
16307
16308 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
16309
16310 * fileio.c (Faccess_file): Run the argument filename through
16311 Fexpand_file_name, before using it.
16312
16313 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
16314 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
16315
16316 2001-10-26 Gerd Moellmann <gerd@gnu.org>
16317
16318 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
16319
16320 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16321 Fix clearing in the case of scroll bars on the right.
16322
16323 2001-10-26 Juanma Barranquero <lektu@terra.es>
16324
16325 * w32gui.h (XImage): Add a dummy typedef.
16326
16327 2001-10-26 Gerd Moellmann <gerd@gnu.org>
16328
16329 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
16330
16331 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
16332
16333 * frame.c (Fframe_parameter): Fix last change.
16334
16335 * fileio.c: Revert last change (which removed old commented-out
16336 version of expand-file-name). Add a comment that explains why
16337 this old version should not be removed.
16338
16339 2001-10-25 Gerd Moellmann <gerd@gnu.org>
16340
16341 * frame.c (Fframe_parameter): Fix a bug whereby some
16342 ``artificial'' frame parameters, like `minibuffer' were not
16343 obtained by calling Fframe_parameters.
16344
16345 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
16346 cursor differently.
16347
16348 * xdisp.c (move_it_vertically_backward): Compute line height
16349 differently. Add heuristic to try to be more compatible to 20.x.
16350
16351 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
16352
16353 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
16354
16355 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
16356 boolean.
16357
16358 2001-10-25 Miles Bader <miles@gnu.org>
16359
16360 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
16361 BG is a pointer to a structure, not a structure.
16362 (gif_format, png_format): Add missing commas.
16363
16364 2001-10-24 Richard M. Stallman <rms@gnu.org>
16365
16366 * xfaces.c (Fface_attributes_as_vector): New function.
16367 (syms_of_xfaces): Defsubr it.
16368
16369 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16370
16371 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
16372 variable `area'.
16373
16374 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16375
16376 * search.c (scan_newline): Remove unused variable `selective_display'.
16377
16378 2001-10-25 Miles Bader <miles@gnu.org>
16379
16380 * dispextern.h (struct image): Add `background',
16381 `background_valid', and `background_transparent' fields.
16382 (image_background, image_background_transparent): New declarations.
16383 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
16384 * xfns.c (image_background, image_background_transparent)
16385 (four_corners_best): New functions.
16386 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16387 (gs_format): Add `:background' entry.
16388 (lookup_image): Set IMG's background color if specified.
16389 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16390 when appropriate.
16391 (x_clear_image_1): Reset `background_valid' and
16392 `background_transparent_valid' fields.
16393 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16394 calculating it here. Set IMG's background_transparent field.
16395 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16396 (enum png_keyword_index): Add PNG_BACKGROUND.
16397 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16398 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16399 (enum gif_keyword_index): Add GIF_BACKGROUND.
16400 (enum gs_keyword_index): Add GS_BACKGROUND.
16401 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16402 Pre-calculate image background color where necessary.
16403 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16404 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16405 color to use for image glyph reliefs.
16406
16407 2001-10-24 Gerd Moellmann <gerd@gnu.org>
16408
16409 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
16410 in full-width rows.
16411
16412 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
16413 Fix clearing of area not covered by scroll bar.
16414
16415 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16416
16417 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
16418 and `real_start'.
16419 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
16420 (glyph_rect): Remove unused variable `area'.
16421
16422 2001-10-24 Gerd Moellmann <gerd@gnu.org>
16423
16424 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
16425
16426 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
16427 (row_containing_pos): Take additional argument DY.
16428 Treat rows ending in middle of char differently.
16429 (display_line): Handle tabs on window systems differently.
16430
16431 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
16432 with additional argument.
16433
16434 * dispextern.h (row_containing_pos): Adjust prototype.
16435
16436 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
16437 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
16438 (try_window_id, try_window_reusing_current_matrix)
16439 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
16440 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
16441
16442 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16443
16444 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
16445 gnuemacs).
16446 (HAVE_BOXES): Fix typo in comment.
16447 (push_menu_pane): Fix typo in comment.
16448
16449 * xdisp.c: (display_prop_string_p): Remove unused local declaration
16450 of `Qwhen'.
16451 (single_display_prop_string_p): Remove unused local declarations
16452 of `Qwhen' and `Qmargin'.
16453 (string_buffer_position): Remove unused variable `around'.
16454 (store_frame_title): Remove unused variable `width'.
16455
16456 * window.c: Don't define max.
16457 (coordinates_in_window): Remove unused variable `uy'.
16458
16459 * widget.c: Don't define max.
16460
16461 * process.c: Don't define max.
16462 (create_process): Remove unused variable `buffer'.
16463
16464 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16465
16466 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
16467
16468 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
16469
16470 * xfaces.c (Finternal_set_lisp_face_attribute)
16471 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
16472 frame is on a windowed display.
16473
16474 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16475
16476 * dispnew.c (sync_window_with_frame_matrix_rows):
16477 Fix handling of windows which aren't full-width, fix handling
16478 of marginal areas.
16479
16480 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
16481
16482 2001-10-23 Andreas Schwab <schwab@suse.de>
16483
16484 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
16485 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
16486
16487 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16488
16489 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
16490 REAL_END. Notice if cursor gets overwritten.
16491 (notice_overwritten_cursor): Take X positions as parameters.
16492 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16493 around call to x_draw_glyphs.
16494
16495 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16496
16497 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
16498 instead of C) and usage.
16499
16500 * editfns.c (char-to-string): Fix argument names (use CHAR instead
16501 of C) and usage.
16502
16503 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
16504 `left', `max_width' and `max_height'.
16505
16506 2001-10-23 Gerd Moellmann <gerd@gnu.org>
16507
16508 * xdisp.c (display_line): For a tab continued to the next line,
16509 set row's ends_in_middle_of_char_p.
16510
16511 2001-10-22 Gerd Moellmann <gerd@gnu.org>
16512
16513 * xdisp.c (display_line): Fix computation of continuation lines
16514 width for TABs.
16515
16516 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16517
16518 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
16519 `Qlaplace'.
16520
16521 * fileio.c: Remove unused code.
16522
16523 2001-10-22 Miles Bader <miles@gnu.org>
16524
16525 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
16526 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
16527 Remove `DOC_STRINGS_IN_COMMENTS' cases.
16528
16529 2001-10-21 Jason Rumney <jasonr@gnu.org>
16530
16531 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
16532
16533 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
16534
16535 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
16536 (Finsert_string): Avoid the multi-line string literals warning.
16537
16538 2001-10-22 Miles Bader <miles@gnu.org>
16539
16540 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
16541 (Fdocumentation): Don't use it.
16542 (syms_of_doc): Don't initialize it.
16543
16544 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
16545 * print.c (Fwith_output_to_temp_buffer): Likewise.
16546 * window.c (Fsave_window_excursion): Likewise.
16547 * editfns.c (Fsave_excursion, Fsave_current_buffer)
16548 (Fsave_restriction): Likewise.
16549 * eval.c (Frun_hooks, Frun_hook_with_args)
16550 (Frun_hook_with_args_until_failure)
16551 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
16552 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
16553 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
16554 (Funwind_protect, Fcondition_case): Likewise.
16555 * coding.c (Ffind_operation_coding_system): Likewise.
16556 * keyboard.c (Ftrack_mouse): Likewise.
16557
16558 2001-10-21 Miles Bader <miles@gnu.org>
16559
16560 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
16561 (Fmake_hash_table): Add usage: string to doc string.
16562 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
16563 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
16564 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
16565 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
16566 (Fml_prefix_argument_loop): Likewise.
16567
16568 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16569
16570 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
16571
16572 * sysdep.c (init_sys_modes): Change doc-string comments to `new
16573 style' [w/`doc:' keyword].
16574
16575 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
16576 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
16577 comments to `new style' [w/`doc:' keyword].
16578
16579 2001-10-21 Jason Rumney <jasonr@gnu.org>
16580
16581 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
16582
16583 * w32term.c (remember_mouse_glyph): New function.
16584 (w32_mouse_position): Use it.
16585 (note_mouse_movement): If the mouse moved off the glyph, remember
16586 its new position.
16587
16588 * w32term.h (struct w32_output): Correct spelling of x_compatible.
16589 (w32_display_info): Add mouse_face_overlay.
16590
16591 * w32term.c (notice_overwritten_cursor): Renamed from
16592 note_overwritten_text_cursor. Rewritten to take glyph widths into
16593 account.
16594 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
16595 (fast_find_string_pos): New function.
16596 (fast_find_position): Return the correct vpos. Add parameter
16597 STOP. In the final row, stop before glyphs having STOP as object.
16598 Don't consider glyphs that are not from a buffer.
16599 (fast_find_position) [0]: Add a presumably more correct version
16600 for after 21.1.
16601 (expose_window_tree, expose_frame): Don't compute intersections here.
16602 (expose_window): Do it here instead.
16603 (expose_window_tree, expose_window, expose_line): Return 1 when
16604 overwriting mouse-face.
16605 (expose_window): If W is the window currently being updated, mark
16606 the frame garbaged.
16607 (expose_frame): If mouse-face was overwritten, redo it.
16608 (x_use_underline_position_properties): New variable.
16609 (syms_of_xterm): DEFVAR_BOOL it.
16610 (x_draw_glyph_string): Add comment to use it in future.
16611 (x_draw_glyph_string): Restore clipping after drawing box.
16612 Fix a computation of the underline position.
16613 (w32_get_glyph_string_clip_rect): Minor cleanup.
16614 (x_fill_stretch_glyph_string): Remove an assertion.
16615 (x_produce_glyphs): Don't convert multibyte characters
16616 to unibyte characters in unibyte buffers.
16617 (cursor_in_mouse_face_p): New function.
16618 (x_draw_stretch_glyph_string): Use it to choose a different GC
16619 when drawing a cursor within highlighted text. Don't draw
16620 background again if it has already been drawn.
16621 (x_draw_glyph_string_box): Don't draw a full-width
16622 box just because the glyph row's full_width_p flag is set.
16623 (x_draw_glyphs): Fix computation of rightmost x for
16624 full-width rows.
16625 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
16626 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
16627 change bottom shadow accordingly. Some cleanup.
16628 (x_update_window_end): Handle overwritten mouse face
16629 also for tool bar windows.
16630 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
16631 DRAW is DRAW_IMAGE_RAISED.
16632 (clear_mouse_face): Return 1 if text with mouse face was
16633 actually redrawn. Make the function static.
16634 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
16635 optimize away highlighting if we pass over that same overlay again.
16636 (note_mouse_highlight): Call mouse_face_overlay_overlaps
16637 to detect a case where we have to highlight a different region
16638 despite not having left the currently highlighted region.
16639 Set mouse_face_overlay in the x_display_info. Avoid changing the
16640 mouse pointer shape when show_mouse_face has already done it, or
16641 there is no need. Handle mouse-face and help-echo in strings.
16642 (glyph_rect): New function.
16643 (w32_mouse_position): Use it to raise the threshold for mouse
16644 movement event generation.
16645 (w32_initialize_display_info): Initialize the x_display_info's
16646 mouse_face_overlay.
16647 (w32_set_vertical_scroll_bar): Don't clear a zero height
16648 or width area.
16649 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
16650 a widget to zero height.
16651
16652 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
16653 Protect unibyte strings created by replacing their multibyte
16654 equivalents in menu_items.
16655 (w32_menu_show): Don't overwrite an item's name with its key
16656 description in case the description is a multibyte string.
16657 (single_submenu): Some cleanup.
16658
16659 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
16660 (postprocess_image): New function.
16661 (lookup_image): Call it for all image types except PostScript.
16662 (x_kill_gs_process): Call postprocess_image.
16663 (tiff_error_handler, tiff_warning_handler): New functions.
16664 (tiff_load): Install them as handlers.
16665 (x_kill_gs_process): Recognize if someone has cleared the image
16666 cache under us.
16667 (valid_image_p): Protect better against invalid image
16668 specifications. Previous code could signal an error.
16669 (Fx_hide_tip, Fshow_tip): Doc fix.
16670 (Fv_max_tooltip_size): New variable.
16671 (syns_of_xfns): DEFVAR_LISP it.
16672 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
16673 window buffer to *tip* right after creating the frame. Set frame's
16674 window_width. Use a maximum tooltip size specified by
16675 Vx_max_tooltip_size, if that has valid contents.
16676 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
16677 Make sure the tooltip is completely visible.
16678 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
16679 (Fx_create_frame): Adjust the frame's height for presence
16680 of the tool bar before calling x_figure_window_size.
16681 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
16682 when the window gets smaller.
16683 (x_set_foreground_color): Set frame's cursor_pixel.
16684 (x_set_foreground_color, x_set_background_color): Cleaned up.
16685 (x_set_font): Handle case of x_new_fontset returning the same name
16686 as before, although there was a change in fontsets.
16687
16688 2001-10-21 Miles Bader <miles@gnu.org>
16689
16690 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
16691 (Flogxor): Add usage: string to doc string.
16692 * charset.c (Fstring): Likewise.
16693 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
16694 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
16695
16696 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16697
16698 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
16699
16700 * alloc.c: Reindent DEFUNs with doc: keywords.
16701
16702 * abbrev.c (Finsert_abbrev_table_description): Reindent.
16703
16704 * frame.c: Change doc-string comments to `new style' [w/`doc:'
16705 keyword].
16706
16707 See ChangeLog.9 for earlier changes.
16708
16709 ;; Local Variables:
16710 ;; coding: iso-2022-7bit
16711 ;; End:
16712
16713 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
16714 Copying and distribution of this file, with or without modification,
16715 are permitted provided the copyright notice and this notice are preserved.
16716
16717 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4